/* MoYagi Games marketing site. Dark-first, matching the app's palette. */

:root {
  --ink: #0d130f;
  --ink-2: #12190f;
  --ink-3: #172119;
  --panel: #1a2620;
  --line: rgba(245, 193, 69, 0.14);
  --cream: #f2ecdc;
  --cream-2: #cfd8cd;
  --sage: #8b9a8d;
  --gold: #f5c145;
  --gold-2: #ffe9a8;
  --gold-3: #e8ab2b;
  --green: #17d97a;
  --red: #e0393e;
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap--wide { width: min(1400px, 100% - 2 * var(--gutter)); }
.wrap--narrow { width: min(880px, 100% - 2 * var(--gutter)); }

/* Type */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(23, 217, 122, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(23, 217, 122, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(23, 217, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(23, 217, 122, 0); } }
.section__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 4.6vw, 52px);
  letter-spacing: -0.01em;
  color: #fff6dd;
  margin-bottom: 14px;
}
.section__lede { color: var(--cream-2); font-size: clamp(17px, 1.5vw, 20px); max-width: 60ch; margin-bottom: 40px; }
.shimmer {
  background: linear-gradient(100deg, var(--gold-3) 0%, var(--gold-2) 30%, var(--gold) 50%, #fff6dd 65%, var(--gold-3) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: -250% 0; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 45%, var(--gold-3));
  color: #2a1d05; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 14px;
  box-shadow: 0 10px 30px rgba(245, 193, 69, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(245, 193, 69, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6); color: #2a1d05; filter: saturate(1.1); }
.btn:active { transform: translateY(0); }
.btn--small { padding: 10px 18px; font-size: 12px; }
.btn--ghost { background: transparent; color: var(--gold); box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn--ghost:hover { background: rgba(245, 193, 69, 0.1); color: var(--gold-2); box-shadow: inset 0 0 0 1.5px var(--gold-2); }

.store-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 16px; border-radius: 14px; min-width: 200px;
  background: #000; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.22);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.store svg { width: 30px; height: 30px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.1; }
.store small { font-size: 11px; opacity: 0.8; }
.store strong { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.store:hover { color: #fff; transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); }
.store.is-soon { border-style: dashed; }
.store.is-soon strong { color: var(--gold-2); }

/* Segmented control */
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.segmented button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; cursor: pointer; color: var(--cream-2); font-weight: 600; transition: background 0.2s, color 0.2s; }
.segmented button[aria-selected="true"] { background: var(--gold); color: #2a1d05; }
.segmented--small button { padding: 5px 12px; font-size: 13px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px var(--gutter);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  background: linear-gradient(180deg, rgba(13, 19, 15, 0.85), rgba(13, 19, 15, 0.6));
  border-bottom: 1px solid rgba(245, 193, 69, 0.08);
}
.nav__brand { display: inline-flex; align-items: center; gap: 10px; color: #fff6dd; font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: 0.02em; }
.nav__brand img { border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.nav__brand em { font-style: normal; color: var(--gold); }
.nav__links { display: flex; align-items: center; gap: 22px; }
.nav__links a:not(.btn) { color: var(--cream-2); font-weight: 600; font-size: 15px; position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav__links a:not(.btn):hover { color: #fff; }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--cream); margin-inline: auto; transition: transform 0.25s, opacity 0.25s; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 70% -10%, #1f3a2b 0%, transparent 60%), linear-gradient(180deg, #122019 0%, var(--ink) 100%); }
.hero__coins { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px 400px at 20% 30%, rgba(245, 193, 69, 0.14), transparent 60%), radial-gradient(500px 500px at 85% 70%, rgba(23, 168, 101, 0.16), transparent 60%); }
.hero__inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(24px, 4vw, 60px);
  width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: clamp(40px, 7vw, 96px) 0 clamp(40px, 6vw, 80px);
}
.hero__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(42px, 6.2vw, 84px); line-height: 0.98; color: #fff6dd; margin: 0 0 22px; letter-spacing: -0.015em; }
.hero__title .line { display: block; opacity: 0; transform: translateY(30px); animation: rise 0.9s var(--ease) forwards; }
.hero__title .line:nth-child(2) { animation-delay: 0.15s; }
.hero__title .line:nth-child(3) { animation-delay: 0.3s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--cream-2); max-width: 54ch; margin-bottom: 28px; opacity: 0; animation: rise 0.9s 0.45s var(--ease) forwards; }
.store-buttons--hero { opacity: 0; animation: rise 0.9s 0.6s var(--ease) forwards; margin-bottom: 30px; }

.reel-strip {
  position: relative; display: inline-grid; grid-template-columns: repeat(3, 84px); gap: 8px; padding: 10px;
  border-radius: 18px; background: linear-gradient(180deg, #2a3a2f, #131c16); border: 1px solid rgba(245, 193, 69, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  margin-bottom: 28px; opacity: 0; animation: rise 0.9s 0.7s var(--ease) forwards;
}
.reel { width: 84px; height: 84px; overflow: hidden; border-radius: 12px; background: radial-gradient(circle at 50% 30%, #2f4a3a, #101a14); border: 1px solid rgba(255, 255, 255, 0.08); position: relative; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.45)); pointer-events: none; }
.reel__track { display: flex; flex-direction: column; animation: reel 2.6s cubic-bezier(0.2, 0.9, 0.2, 1) var(--delay) forwards; will-change: transform; }
.reel__track img { width: 84px; height: 84px; object-fit: contain; padding: 6px; }
@keyframes reel { from { transform: translateY(0); } to { transform: translateY(calc(-84px * 10)); } }
.reel-strip__win {
  position: absolute; right: -16px; top: -16px; padding: 6px 12px; border-radius: 999px; background: var(--gold); color: #2a1d05;
  font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; transform: scale(0); animation: pop 0.5s 3.6s var(--ease) forwards, glow 1.6s 4.1s ease-in-out infinite;
}
@keyframes pop { to { transform: scale(1) rotate(-6deg); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 193, 69, 0.6); } 50% { box-shadow: 0 0 24px 6px rgba(245, 193, 69, 0.35); } }

.hero__stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 26px 36px; opacity: 0; animation: rise 0.9s 0.85s var(--ease) forwards; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--font-mono); font-size: clamp(22px, 2.4vw, 30px); color: var(--gold); font-weight: 700; letter-spacing: -0.02em; }
.hero__stats span { font-size: 13px; color: var(--sage); text-transform: uppercase; letter-spacing: 0.12em; }

.hero__devices { position: relative; min-height: 520px; display: grid; place-items: center; perspective: 1200px; }
.device { margin: 0; position: absolute; border-radius: 34px; background: #0a0d0b; padding: 12px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.06); will-change: transform; }
.device img { border-radius: 24px; }
.device--tablet { width: min(74%, 440px); transform: rotate(-4deg) translate(-16%, 0); opacity: 0; animation: settle-tab 1.2s 0.3s var(--ease) forwards; }
.device--phone { width: min(40%, 230px); border-radius: 44px; transform: rotate(5deg) translate(70%, 8%); z-index: 2; opacity: 0; animation: settle-phone 1.2s 0.55s var(--ease) forwards; }
.device--phone img { border-radius: 32px; }
@keyframes settle-tab { from { opacity: 0; transform: rotate(-10deg) translate(-16%, 40px) scale(0.94); } to { opacity: 1; transform: rotate(-4deg) translate(-16%, 0) scale(1); } }
@keyframes settle-phone { from { opacity: 0; transform: rotate(12deg) translate(70%, 60px) scale(0.9); } to { opacity: 1; transform: rotate(5deg) translate(70%, 8%) scale(1); } }
.hero__badge { position: absolute; left: 2%; bottom: 6%; width: 110px; border-radius: 26px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15); z-index: 3; }
.float { animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
.hero__scroll { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.25); border-radius: 14px; display: none; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: scrollhint 1.8s infinite; }
@keyframes scrollhint { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* Ticker */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0a0f0c; padding: 12px 0; }
.ticker__track { display: flex; gap: 40px; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item { white-space: nowrap; font-size: 15px; color: var(--cream-2); display: inline-flex; gap: 10px; align-items: baseline; }
.ticker__item b { font-family: var(--font-display); color: var(--accent); font-weight: 700; letter-spacing: 0.02em; }
.ticker__item i { font-style: normal; color: var(--sage); }
.ticker__item em { font-style: normal; color: var(--accent); opacity: 0.6; margin-left: 14px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--why { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); }
.section--machines { background: radial-gradient(900px 500px at 50% 0%, rgba(245, 193, 69, 0.06), transparent 60%), var(--ink-2); }
.section--screens { background: var(--ink); overflow: hidden; }
.section--fair { background: linear-gradient(180deg, var(--ink) 0%, #0f1a13 100%); }
.section--coins { background: radial-gradient(800px 500px at 50% 100%, rgba(245, 193, 69, 0.08), transparent 60%), var(--ink-2); }
.section--notify { background: var(--ink); }
.section--faq { background: var(--ink-2); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.feature {
  padding: 26px 24px; border-radius: var(--radius); background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); border: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s; position: relative; overflow: hidden;
}
.feature::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(245, 193, 69, 0.14), transparent 40%); opacity: 0; transition: opacity 0.35s; pointer-events: none; }
.feature:hover { transform: translateY(-4px); border-color: rgba(245, 193, 69, 0.35); }
.feature:hover::before { opacity: 1; }
.feature__icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(245, 193, 69, 0.12); color: var(--gold); margin-bottom: 16px; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; color: #fff6dd; }
.feature p { margin: 0; color: var(--cream-2); font-size: 15.5px; }

/* Games */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.game {
  --glow: color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 26px; overflow: hidden; position: relative;
  background: linear-gradient(165deg, var(--bg1), var(--bg2) 70%); border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform-style: preserve-3d; transition: box-shadow 0.4s var(--ease), border-color 0.4s;
}
.game:hover { box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent), 0 0 50px var(--glow); border-color: var(--accent); }
.game__art { position: relative; aspect-ratio: 5 / 4; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 65%); }
.game__card { width: 78%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55)); transition: transform 0.6s var(--ease); }
.game:hover .game__card { transform: scale(1.06) translateY(-4px); }
.game__title { position: absolute; left: 10px; bottom: 10px; width: 46%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6)); }
.game__grid { position: absolute; top: 14px; right: 14px; padding: 6px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.55); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); backdrop-filter: blur(6px); }
.game__body { padding: 20px 22px 24px; background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.4)); }
.game__body h3 { font-family: var(--font-display); font-size: 26px; font-weight: 900; color: #fff6dd; }
.game__tagline { color: var(--accent); font-weight: 600; margin: 4px 0 10px; }
.game__blurb { color: var(--cream-2); font-size: 15px; margin-bottom: 14px; }
.game__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 14px; padding: 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.07); }
.game__stats div { display: flex; flex-direction: column; min-width: 0; }
.game__stats dt { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); }
.game__stats dd { margin: 0; font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; }
.chips { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: #fff6dd; }
.game__open { width: 100%; }
.game__soon { display: block; text-align: center; padding: 12px; border-radius: 999px; border: 1.5px dashed rgba(255, 255, 255, 0.2); color: var(--sage); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }

/* Gallery */
.gallery { position: relative; margin-top: 10px; }
.gallery__track {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px var(--gutter) 30px; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; cursor: grab;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.shot { margin: 0; flex: none; scroll-snap-align: center; text-align: center; }
.shot--phone { width: min(78vw, 260px); }
.shot--ipad { width: min(88vw, 440px); }
.shot__button { border: 0; padding: 0; background: transparent; cursor: zoom-in; border-radius: 30px; overflow: hidden; display: block; box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.shot--ipad .shot__button { border-radius: 20px; }
.shot__button:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 34px 70px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--gold); }
.shot figcaption { margin-top: 12px; font-size: 14px; color: var(--sage); }
.gallery__arrow {
  position: absolute; top: 45%; z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(13, 19, 15, 0.7); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); transition: background 0.2s, transform 0.2s;
}
.gallery__arrow:hover { background: var(--gold); color: #2a1d05; transform: scale(1.06); }
.gallery__arrow--prev { left: max(12px, calc(var(--gutter) - 24px)); }
.gallery__arrow--next { right: max(12px, calc(var(--gutter) - 24px)); }

/* Fairness */
.fair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.fair__copy p { color: var(--cream-2); }
.fair__copy strong { color: #fff6dd; }
.fair__table { border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); padding: 10px; overflow-x: auto; }
.fair__table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.fair__table caption { caption-side: top; text-align: left; padding: 10px 12px 14px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); }
.fair__table th, .fair__table td { padding: 12px; text-align: left; border-top: 1px solid rgba(255, 255, 255, 0.07); white-space: nowrap; }
.fair__table thead th { border-top: 0; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); font-weight: 600; }
.fair__table tbody th { font-weight: 700; color: #fff6dd; display: flex; align-items: center; gap: 10px; }
.fair__table td { font-family: var(--font-mono); color: var(--cream); }
.fair__table tbody tr { transition: background 0.2s; }
.fair__table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }
.swatch { width: 12px; height: 12px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; }
.fair__note { margin: 12px 12px 6px; font-size: 13px; color: var(--sage); }

/* Coins */
.wallet { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 44px; }
.wallet__tile { display: grid; justify-items: center; gap: 6px; padding: 28px 20px; border-radius: var(--radius); background: linear-gradient(165deg, rgba(245, 193, 69, 0.14), rgba(245, 193, 69, 0.03)); border: 1px solid rgba(245, 193, 69, 0.25); text-align: center; }
.wallet__tile strong { font-family: var(--font-mono); font-size: clamp(28px, 3.4vw, 40px); color: var(--gold); font-weight: 700; }
.wallet__tile span { color: var(--cream-2); }
.spin-slow { animation: spin-y 6s linear infinite; }
@keyframes spin-y { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
.packs__title { font-size: 20px; font-weight: 700; color: #fff6dd; margin-bottom: 18px; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 22px; }
.pack { position: relative; display: grid; justify-items: center; gap: 2px; padding: 26px 16px 22px; border-radius: 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.09); text-align: center; transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s; }
.pack:hover { transform: translateY(-6px); border-color: var(--gold); background: rgba(245, 193, 69, 0.07); }
.pack--badged { border-color: rgba(245, 193, 69, 0.5); }
.pack__badge { position: absolute; top: -12px; padding: 4px 12px; border-radius: 999px; background: var(--gold); color: #2a1d05; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.pack__coins { display: flex; height: 36px; margin-bottom: 8px; }
.pack__coins img { margin-left: -8px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5)); animation: bob 2.4s calc(var(--c) * 0.15s) ease-in-out infinite; }
.pack__coins img:first-child { margin-left: 0; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.pack strong { font-family: var(--font-mono); font-size: 24px; color: #fff6dd; }
.pack span { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); }
.pack em { font-style: normal; margin-top: 10px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-weight: 700; color: var(--gold); }
.disclaimer { font-size: 13.5px; color: var(--sage); max-width: 80ch; }

/* Notify */
.notify { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 30px; background: linear-gradient(140deg, #1f2f25, #0f1712); border: 1px solid rgba(245, 193, 69, 0.3); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08); position: relative; overflow: hidden; }
.notify::before { content: ""; position: absolute; inset: -50%; background: conic-gradient(from 0deg, transparent 0 80%, rgba(245, 193, 69, 0.12) 90%, transparent 100%); animation: sweep 12s linear infinite; pointer-events: none; }
@keyframes sweep { to { transform: rotate(360deg); } }
.notify__logo { width: 100%; border-radius: 18px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6)); position: relative; }
.notify__body { position: relative; }
.notify__body .section__title { font-size: clamp(28px, 3.6vw, 40px); }
.notify__body > p { color: var(--cream-2); }
.notify__row { display: flex; gap: 10px; flex-wrap: wrap; }
.notify__row input { flex: 1 1 240px; min-width: 0; padding: 14px 18px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.18); background: rgba(0, 0, 0, 0.35); color: #fff; font-size: 16px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.notify__row input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245, 193, 69, 0.18); }
.notify__platform { border: 0; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--cream-2); }
.notify__platform label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.notify__platform input { accent-color: var(--gold); }
.notify__trap { position: absolute; left: -9999px; top: -9999px; }
.notify__status { min-height: 1.4em; margin: 12px 0 0; font-weight: 600; }
.notify__status[data-state="ok"] { color: var(--green); }
.notify__status[data-state="error"] { color: #ff8a8e; }
.notify__fine { font-size: 13px; color: var(--sage); margin: 10px 0 0; }
.notify__form.is-busy .btn { opacity: 0.6; pointer-events: none; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq__item { border-radius: 16px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08); padding: 0 20px; transition: border-color 0.25s, background 0.25s; }
.faq__item[open] { border-color: rgba(245, 193, 69, 0.4); background: rgba(245, 193, 69, 0.05); }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; color: #fff6dd; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--gold); }
.faq__plus::before, .faq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--gold); transform: translate(-50%, -50%); transition: transform 0.25s; }
.faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq__item p { margin: 0 0 18px; color: var(--cream-2); }

/* Footer */
.footer { background: #080b09; border-top: 1px solid var(--line); padding: clamp(50px, 7vw, 90px) 0 30px; }
.footer__cta { text-align: center; margin-bottom: 60px; display: grid; justify-items: center; gap: 22px; }
.footer__cta h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); color: #fff6dd; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.footer__grid p { color: var(--sage); margin-top: 12px; font-size: 15px; max-width: 40ch; }
.footer__grid h3 { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); margin-bottom: 12px; }
.footer__grid > div > a:not(.nav__brand) { display: block; color: var(--cream-2); margin-bottom: 8px; font-size: 15px; }
.footer__grid a:hover { color: var(--gold); }
.footer__legal { margin-top: 24px; font-size: 12.5px; color: #6f7d72; max-width: 100ch; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(5, 8, 6, 0.9); backdrop-filter: blur(10px); animation: fade 0.25s; }
@keyframes fade { from { opacity: 0; } }
.lightbox__panel { position: relative; width: min(96vw, 1100px); max-height: 96vh; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; animation: rise 0.4s var(--ease); }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lightbox__name { font-family: var(--font-display); font-size: 20px; color: #fff6dd; }
.lightbox__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox__close:hover { background: var(--gold); color: #2a1d05; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; }
.lightbox__img { max-height: min(78vh, 900px); width: auto; max-width: 100%; border-radius: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1); }
.lightbox__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(13, 19, 15, 0.75); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox__arrow:hover { background: var(--gold); color: #2a1d05; }
.lightbox__arrow--prev { left: 4px; }
.lightbox__arrow--next { right: 4px; }
.lightbox__caption { text-align: center; color: var(--cream-2); margin: 0; font-size: 15px; }
body.has-lightbox { overflow: hidden; }

/* Responsive */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .lede { max-width: 60ch; }
  .hero__stats { justify-content: center; }
  .hero__devices { min-height: 460px; width: min(100%, 620px); margin-inline: auto; }
  .fair { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__toggle { display: flex; }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--gutter) 20px; background: rgba(13, 19, 15, 0.97); border-bottom: 1px solid var(--line); display: none; }
  .nav__links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .nav__links .btn { margin-top: 14px; }
  .nav.is-open .nav__links { display: flex; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__devices { min-height: 380px; }
  .device--tablet { width: 82%; transform: rotate(-4deg) translate(-8%, 0); }
  .device--phone { width: 42%; transform: rotate(5deg) translate(60%, 10%); }
  @keyframes settle-tab { from { opacity: 0; transform: rotate(-10deg) translate(-8%, 40px) scale(0.94); } to { opacity: 1; transform: rotate(-4deg) translate(-8%, 0) scale(1); } }
  @keyframes settle-phone { from { opacity: 0; transform: rotate(12deg) translate(60%, 60px) scale(0.9); } to { opacity: 1; transform: rotate(5deg) translate(60%, 10%) scale(1); } }
  .hero__badge { width: 76px; left: 0; bottom: 0; }
  .reel-strip { grid-template-columns: repeat(3, 68px); }
  .reel, .reel__track img { width: 68px; height: 68px; }
  @keyframes reel { from { transform: translateY(0); } to { transform: translateY(calc(-68px * 10)); } }
  .game__stats { grid-template-columns: repeat(2, 1fr); }
  .notify { grid-template-columns: 1fr; text-align: center; }
  .notify__logo { width: 180px; margin-inline: auto; }
  .notify__platform { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; }
  .gallery__arrow { display: none; }
  .section__head { flex-direction: column; align-items: flex-start; }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__coins { display: none; }
  .reel__track { transform: translateY(calc(-84px * 10)); }
  .ticker__track { animation: none; }
}
