:root {
  --ink: #f2f2ef;
  --muted: #898985;
  --line: rgba(242, 242, 239, .19);
  --bg: #101010;
  --panel: #161616;
  --card: #1c1c1c;
  --reel-card-h: 164px;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-width: 320px;
  margin: 0;
  background: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, .075), transparent 30rem), var(--bg);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}

.slot-shell {
  display: flex;
  flex-direction: column;
  width: min(1340px, calc(100% - 48px));
  min-height: calc(100dvh - 98px);
  margin: auto;
  padding: 27px 0;
}

.slot-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.wordmark,
.cart-link {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.065em;
  text-decoration: none;
}

.slot-nav { display: flex; gap: 25px; }
.slot-nav a {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .14em;
  text-decoration: none;
}
.slot-nav a:hover { color: var(--ink); }
.cart-link { text-align: right; font-size: 9px; letter-spacing: .13em; }
.cart-link span { margin-left: 6px; font-size: 15px; }

.slot-hero {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(550px, 1.22fr);
  flex: 1;
  align-items: center;
  gap: clamp(38px, 9vw, 150px);
  padding: 66px 5vw;
}

.eyebrow { margin: 0; color: var(--muted); font-size: 9px; letter-spacing: .18em; }
.intro h1 {
  margin: 18px 0 24px;
  font-size: clamp(76px, 10.5vw, 154px);
  font-weight: 650;
  line-height: .72;
  letter-spacing: -.1em;
}
.intro h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px rgba(242, 242, 239, .83);
}
.lead { max-width: 360px; margin: 0; color: #b5b5b1; font-size: 16px; line-height: 1.55; }

.protocol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 46px 0 0;
  border-block: 1px solid var(--line);
}
.protocol div { display: grid; gap: 22px; padding: 15px 10px 14px 0; border-right: 1px solid var(--line); }
.protocol div + div { padding-left: 12px; }
.protocol div:last-child { border: 0; }
.protocol dt { color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.protocol dd { margin: 0; font-size: 9px; letter-spacing: .08em; }

.machine {
  position: relative;
  overflow: hidden;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, .54);
  background: linear-gradient(145deg, #252525, #151515 48%, #101010);
  box-shadow: 0 28px 72px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.machine::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .065) 49%, transparent 60%);
  transform: translateX(-100%);
  animation: scan 6s ease-in-out infinite;
}

.machine-top,
.machine-line {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .13em;
}

.reels {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0 12px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #0b0b0b;
}
.reels::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 0;
  left: 0;
  content: "";
  border-top: 1px solid rgba(255, 255, 255, .72);
  pointer-events: none;
}
.reel {
  height: var(--reel-card-h);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  background: #171717;
}
.reel-track {
  display: grid;
  grid-auto-rows: var(--reel-card-h);
  transform: translateY(calc(var(--reel-card-h) * -12));
  will-change: transform;
}
.product-card {
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(16px, 2.4vw, 30px);
  border-bottom: 1px solid #111;
  background: radial-gradient(circle at 50% 46%, #292929, var(--card) 68%);
  user-select: none;
}
.product-card img {
  display: block;
  width: 78%;
  height: 78%;
  object-fit: contain;
  object-position: center;
  filter: grayscale(1) contrast(1.04);
  -webkit-user-drag: none;
}
.product-placeholder {
  display: grid;
  place-items: center;
  width: min(76%, 110px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .28);
  color: rgba(255, 255, 255, .46);
  font-size: 34px;
  font-weight: 700;
}
.is-spinning .reel-track { animation: reel 2.25s cubic-bezier(.11, .62, .1, 1) both; }
.is-spinning .reel:nth-child(2) .reel-track { animation-delay: .13s; }
.is-spinning .reel:nth-child(3) .reel-track { animation-delay: .26s; }

.machine-line { align-items: center; min-height: 18px; padding: 0 2px 17px; }
.machine-line > span:last-child { display: flex; gap: 5px; }
.attempt-dot {
  display: block;
  width: 6px;
  height: 6px;
  border: 1px solid #666;
  border-radius: 50%;
}
.attempt-dot.used { border-color: var(--ink); background: var(--ink); }
.attempt-dot.win { box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }

.spin-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  color: #111;
  background: var(--ink);
  font: 700 11px Arial, sans-serif;
  letter-spacing: .15em;
  cursor: pointer;
  transition: transform .2s, background .2s;
}
.spin-button b { font-size: 25px; font-weight: 400; }
.spin-button:hover:not(:disabled) { background: #fff; transform: translateY(-2px); }
.spin-button:disabled { border-color: #3f3f3d; color: #777; background: #272727; cursor: not-allowed; }

.machine-message {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  color: #d4d4d0;
  background: #111;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}
.timer { margin: 14px 2px 2px; color: var(--muted); font-size: 9px; letter-spacing: .12em; text-align: center; }

.reward {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  align-items: center;
  gap: 18px;
  margin: 0 5vw 42px;
  padding: 19px;
  border: 1px solid var(--line);
  background: #181818;
  animation: appear .45s ease both;
}
.reward-mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid var(--ink);
  font-size: 38px;
}
.reward h2 { margin: 5px 0; font-size: clamp(22px, 3vw, 37px); letter-spacing: -.05em; }
.reward p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; }
.reward-action { display: flex; gap: 8px; }
.claim,
.copy {
  padding: 13px 15px;
  border: 1px solid var(--ink);
  color: #111;
  background: var(--ink);
  font: 700 9px Arial, sans-serif;
  letter-spacing: .11em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.copy { border-color: var(--line); color: var(--ink); background: transparent; }
.slot-footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .12em;
}

@keyframes reel {
  from { transform: translateY(0); }
  to { transform: translateY(calc(var(--reel-card-h) * -12)); }
}
@keyframes scan { 48% { transform: translateX(100%); } }
@keyframes appear { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .machine::before { animation: none; }
  .is-spinning .reel-track { animation-duration: .35s; animation-delay: 0s !important; }
}

@media (max-width: 820px) {
  :root { --reel-card-h: 108px; }
  .noise { display: none; }
  .slot-shell { width: min(calc(100% - 28px), 620px); padding-top: 18px; }
  .slot-head { grid-template-columns: 1fr auto; padding-bottom: 16px; }
  .slot-nav { display: none; }
  .slot-hero { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 38px; }
  .intro h1 { font-size: clamp(70px, 23vw, 88px); }
  .lead { max-width: 330px; font-size: 15px; }
  .protocol { margin-top: 30px; }
  .protocol div { gap: 16px; min-width: 0; }
  .protocol dd { line-height: 1.35; }
  .machine { padding: 10px; }
  .reels { gap: 6px; padding: 6px; }
  .product-card { padding: 14px; }
  .product-card img { width: 68%; height: 68%; }
  #attempt-dots { display: none; }
  .machine-line { justify-content: center; }
  .spin-button { min-height: 58px; }
  .reward { grid-template-columns: 52px 1fr; margin: 0 0 24px; }
  .reward-mark { width: 52px; height: 52px; font-size: 29px; }
  .reward-action { grid-column: 1 / -1; }
  .slot-footer { display: grid; gap: 10px; line-height: 1.5; }
}

@media (max-width: 390px) {
  :root { --reel-card-h: 96px; }
  .slot-shell { width: calc(100% - 20px); }
  .slot-hero { padding-top: 38px; }
  .product-card { padding: 12px; }
  .protocol dt { font-size: 7px; }
  .protocol dd { font-size: 8px; }
}
