/* Loves Dasha - main stylesheet
   Palette: ink #170A1C, plum #26122C, Dasha pink #FF4F8B, ticket yellow #FFD23F, arcade teal #2EE6C5, cream #FFF4EC
   Type: Bricolage Grotesque (display), Figtree (body) - both self-hosted in /assets/fonts/ */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

:root {
  /* Light "sage paper" theme: pale sage page, white cards, forest-green type, tangerine actions, sunny yellow + fresh green accents */
  --ink: #f3f7ee;        /* page background */
  --ink-2: #e7efdf;      /* alternate bands, footer */
  --plum: #ffffff;       /* cards and panels */
  --plum-2: #e4eddb;     /* soft fills inside cards */
  --plum-3: #cfdcc2;
  --line: rgba(20, 38, 28, .12);
  --line-2: rgba(20, 38, 28, .22);
  --text: #14261c;       /* deep forest */
  --muted: #4a6152;
  --dim: #6c8273;
  --pink: #ff6a13;       /* tangerine: buttons, fills */
  --pink-deep: #c94a00;
  --link: #c2410c;       /* tangerine dark enough for text */
  --yellow: #ffc72c;
  --gold: #a35f00;       /* coin numbers on light surfaces */
  --teal: #2bb673;       /* fresh green fills */
  --green: #11704f;      /* green text */
  --danger: #c62828;
  --ok: #11704f;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 28px;
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 17px/1.6 var(--body); font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #9a3412; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; margin: 0 0 .4em; line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(42px, 6.2vw, 82px); line-height: .96; letter-spacing: -.035em; }
h2 { font-size: clamp(30px, 4vw, 50px); letter-spacing: -.03em; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.15; }
h4 { font-size: 18px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 700 16px/1.1 var(--display); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-pink { background: var(--pink); color: #2a0e00; box-shadow: 0 6px 0 var(--pink-deep); }
.btn-pink:hover { background: #ff8238; color: #2a0e00; }
.btn-pink:active { box-shadow: 0 3px 0 var(--pink-deep); transform: translateY(3px); }
.btn-yellow { background: var(--yellow); color: #231700; box-shadow: 0 6px 0 #c99a00; }
.btn-yellow:hover { background: #ffdc66; color: #231700; }
.btn-yellow:active { box-shadow: 0 3px 0 #c99a00; transform: translateY(3px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-dark { background: var(--plum-2); color: var(--text); }
.btn-dark:hover { background: var(--plum-3); color: var(--text); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(198,40,40,.45); }
.btn-danger:hover { background: rgba(198,40,40,.08); color: var(--danger); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-google { background: #fff; color: #1f1f1f; border-color: var(--line-2); font-family: var(--body); font-weight: 600; }
.btn-google:hover { background: #f1f1f1; color: #1f1f1f; }
.g-logo { width: 20px; height: 20px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(243, 247, 238, .9); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
.brand-word { font: 800 23px/1 var(--display); letter-spacing: -.035em; }
.brand-word span { color: var(--pink-deep); }
.brand:hover { color: var(--text); }
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 16px; padding: 10px 14px; border-radius: 999px; }
.main-nav a:hover { color: var(--text); background: rgba(20,38,28,.06); }
.main-nav a[aria-current="page"] { color: var(--text); background: var(--plum-2); }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hdr-link { color: var(--text); text-decoration: none; font-weight: 600; padding: 10px 14px; }
.hdr-link:hover { color: var(--link); }
.coin-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--plum-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; font: 700 15px/1 var(--display);
}
.coin-pill img { width: 28px; height: 28px; }
.coin-pill:hover { border-color: var(--yellow); color: var(--text); }
.user-chip { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: conic-gradient(from 200deg, var(--pink), var(--yellow), var(--teal), var(--pink)); color: var(--text);
  font: 800 15px/1 var(--display); position: relative;
}
.avatar::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--plum); z-index: 0; }
.avatar span { position: relative; z-index: 1; color: var(--text); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; padding: 0; }
.menu-btn span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px auto; border-radius: 2px; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink); z-index: 49; padding: 24px 16px 120px;
  display: none; flex-direction: column; gap: 4px; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--text); text-decoration: none; font: 700 26px/1.2 var(--display); padding: 12px 4px; border-bottom: 1px solid var(--line); }
.mobile-nav .btn { margin-top: 16px; font-size: 17px; border-bottom: 0; }

/* bottom tab bar on phones */
.tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 48;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(4, 1fr);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; color: var(--dim); text-decoration: none; font-size: 12px; font-weight: 600; }
.tabbar a img { width: 26px; height: 26px; filter: grayscale(.7); opacity: .7; }
.tabbar a[aria-current="page"] { color: var(--text); }
.tabbar a[aria-current="page"] img { filter: none; opacity: 1; }

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 56ch; }
.see-all { font-weight: 700; color: var(--text); text-decoration: none; padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; white-space: nowrap; }
.see-all:hover { border-color: var(--link); color: var(--link); }
.tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--muted); }
.tag img { width: 24px; height: 24px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 80px) clamp(56px, 7vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 199, 44, .35), rgba(255, 106, 19, .12) 40%, transparent 65%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 30px; max-width: 28em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 15px; font-weight: 600; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts img { width: 24px; height: 24px; }
.age-chip { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--plum); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); }
.age-chip b { background: var(--yellow); color: #231700; font: 800 13px/1 var(--display); padding: 6px 8px; border-radius: 999px; }

/* the fanned hand of game cards */
.fan { position: relative; height: clamp(360px, 44vw, 560px); }
.fan-card {
  --rot: 0deg; --x: 0px; --y: 0px;
  position: absolute; left: 50%; top: 50%; width: clamp(130px, 13vw, 192px); aspect-ratio: 3 / 4;
  margin: calc(clamp(130px, 13vw, 192px) * -0.666) 0 0 calc(clamp(130px, 13vw, 192px) * -0.5);
  border-radius: 20px; overflow: hidden; display: block;
  transform-origin: 50% 120%; transform: translate(var(--x), var(--y)) rotate(var(--rot));
  box-shadow: 0 26px 50px -18px rgba(20, 38, 28, .45), 0 0 0 1px rgba(20,38,28,.08);
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
  animation: deal .9s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 70ms + 100ms);
}
.fan-card img { width: 100%; height: 100%; object-fit: cover; }
.fan-card:hover, .fan-card:focus-visible { transform: translate(var(--x), calc(var(--y) - 26px)) rotate(var(--rot)); z-index: 10; }
.fan-card:nth-child(1) { --rot: -19deg; --x: -84%; --y: 34px; --i: 0; z-index: 1; }
.fan-card:nth-child(2) { --rot: -10deg; --x: -50%; --y: 6px; --i: 1; z-index: 2; }
.fan-card:nth-child(3) { --rot: 0deg; --x: 0%; --y: -6px; --i: 2; z-index: 3; }
.fan-card:nth-child(4) { --rot: 10deg; --x: 50%; --y: 6px; --i: 3; z-index: 2; }
.fan-card:nth-child(5) { --rot: 19deg; --x: 84%; --y: 34px; --i: 4; z-index: 1; }
@keyframes deal { from { transform: translate(0, 60px) rotate(0deg); opacity: 0; } 30% { opacity: 1; } }
.fan-label {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); z-index: 12;
  background: var(--yellow); color: #231700; border-radius: 999px; padding: 8px 16px; font: 700 14px/1 var(--display); white-space: nowrap;
  box-shadow: 0 8px 20px rgba(20,38,28,.2);
}

/* ---------- category chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; margin-bottom: 8px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent;
  color: var(--muted); font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"], .chip.active { background: var(--text); color: var(--ink); border-color: var(--text); }

/* ---------- game cards (ticket style) ---------- */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(164px, 19vw, 220px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: thin; scrollbar-color: var(--plum-3) transparent; }
.rail > * { scroll-snap-align: start; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px 18px; }
.gc { --notch: var(--ink); position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--text); border-radius: var(--r); background: var(--plum); box-shadow: 0 1px 0 var(--line), 0 12px 24px -16px rgba(20,38,28,.35); }
.gc-art { position: relative; border-radius: var(--r) var(--r) 0 0; overflow: hidden; aspect-ratio: 3 / 4; background: var(--plum-2); }
.gc-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gc:hover .gc-art img, .gc:focus-visible .gc-art img { transform: scale(1.05); }
.gc-body { position: relative; padding: 14px 16px 16px; border-top: 2px dashed var(--line-2); }
.gc-body::before, .gc-body::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--notch); }
.gc-body::before { left: -10px; }
.gc-body::after { right: -10px; }
.gc-name { display: block; font: 700 17px/1.2 var(--display); letter-spacing: -.01em; }
.gc-meta { display: block; font-size: 13px; color: var(--dim); margin-top: 4px; }
.gc-play {
  position: absolute; right: 12px; bottom: 12px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pink); color: #2a0e00; opacity: 0; transform: scale(.8); transition: .2s;
}
.gc-play svg { width: 20px; height: 20px; margin-left: 3px; }
.gc:hover .gc-play, .gc:focus-visible .gc-play { opacity: 1; transform: none; }
.badge { position: absolute; left: 10px; top: 10px; z-index: 2; padding: 5px 10px; border-radius: 999px; font: 700 12px/1 var(--display); }
.badge-new { background: var(--teal); color: #052a18; }
.badge-hot { background: var(--yellow); color: #231700; }
.empty-note { padding: 40px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); }

/* ---------- account promo / wallet ---------- */
.wallet-band { position: relative; background: linear-gradient(160deg, #ffe9d2 0%, var(--ink-2) 100%); border-block: 1px solid var(--line); overflow: hidden; }
.wallet-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.steps { list-style: none; padding: 0; margin: 28px 0 32px; counter-reset: s; display: grid; gap: 18px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.steps li::before {
  content: counter(s); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--plum); border: 2px solid var(--pink); color: var(--link); font: 800 22px/1 var(--display);
}
.steps b { display: block; font: 700 19px/1.3 var(--display); margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 16px; }
.wallet-card {
  position: relative; border-radius: var(--r-lg); padding: 28px; background: var(--plum);
  border: 1px solid var(--line-2); box-shadow: 0 40px 80px -30px rgba(201, 74, 0, .4);
  transform: rotate(2deg);
}
.wallet-card .wc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.wallet-card .wc-top b { display: block; font: 700 19px/1.2 var(--display); }
.wallet-card .wc-top small { color: var(--dim); font-size: 14px; }
.wc-coins { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--ink); margin-bottom: 18px; }
.wc-coins img { width: 56px; height: 56px; }
.wc-coins small { display: block; color: var(--muted); font-size: 14px; }
.wc-coins strong { font: 800 36px/1 var(--display); letter-spacing: -.02em; color: var(--gold); }
.lvl-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.lvl-row b { color: var(--text); }
.meter { height: 14px; border-radius: 999px; background: var(--plum-2); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--p, 30%); border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--yellow)); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.wc-bonus { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px dashed var(--line-2); font-size: 15px; color: var(--muted); }
.wc-bonus b { color: var(--green); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.feature { border-radius: var(--r-lg); padding: 30px; background: var(--plum); border: 1px solid var(--line); }
.feature img { width: 64px; height: 64px; margin-bottom: 18px; }
.feature p { color: var(--muted); margin: 0; }
.feature:nth-child(1) { grid-column: span 7; background: linear-gradient(135deg, #ffe3cc, var(--plum)); }
.feature:nth-child(2) { grid-column: span 5; }
.feature:nth-child(3) { grid-column: span 5; }
.feature:nth-child(4) { grid-column: span 7; background: linear-gradient(135deg, #d6f1e2, var(--plum)); }
.feature-wide { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; }
.feature-wide img { margin: 0; }

/* ---------- play-safe band ---------- */
.safe-band { border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); background: var(--text); color: #eaf5ec; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.safe-band h2 { color: #fff8ef; }
.safe-band p { color: #c7dccd; }
.safe-band a:not(.btn) { color: var(--yellow); font-weight: 700; }
.safe-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.safe-list li { background: rgba(255,255,255,.08); color: #eaf5ec; border-radius: var(--r); padding: 14px 18px; font-weight: 600; display: flex; gap: 12px; align-items: center; }
.safe-list img { width: 30px; height: 30px; }
.safe-band .btn-dark { background: var(--yellow); color: #231700; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative; font: 700 clamp(18px, 1.8vw, 21px)/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 30px/1 var(--display); color: var(--link); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* ---------- CTA ---------- */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(38px, 6vw, 72px); }
.cta-final .lead { margin-inline: auto; margin-bottom: 30px; }
.cta-final .hero-ctas { justify-content: center; margin: 0; }

/* ---------- page heads ---------- */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 40px); position: relative; }
.page-head h1 { font-size: clamp(40px, 5.6vw, 72px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--dim); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--link); }

/* ---------- games page tools ---------- */
.tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search input { width: 100%; min-height: 48px; padding: 12px 16px 12px 46px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--plum); }
.search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--dim); }
.tools .chips { flex: 1 1 100%; margin: 0; }
.result-count { color: var(--dim); font-size: 14px; margin-bottom: 16px; }

/* ---------- single game ---------- */
.game-stage { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: 0 40px 80px -30px rgba(20,38,28,.6), 0 0 0 1px var(--line); }
.game-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.game-cover { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer; background: #000; }
.game-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.game-cover span { position: relative; display: inline-flex; align-items: center; gap: 12px; }
.play-orb { width: 92px; height: 92px; border-radius: 50%; background: var(--pink); color: #2a0e00; display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(255,106,19,.3), 0 20px 40px rgba(0,0,0,.5); }
.play-orb svg { width: 34px; height: 34px; margin-left: 6px; }
.game-cover em { font: 800 22px/1 var(--display); font-style: normal; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.game-stage:fullscreen { border-radius: 0; aspect-ratio: auto; }
.game-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.game-bar .note { color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.game-bar .note img { width: 26px; height: 26px; }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; margin-top: 48px; }
.game-about p { color: var(--muted); }
.game-about h2 { font-size: clamp(26px, 3vw, 34px); }
.info-card { border-radius: var(--r-lg); background: var(--plum); border: 1px solid var(--line); padding: 26px; align-self: start; }
.info-card dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px 18px; font-size: 15px; }
.info-card dt { color: var(--dim); }
.info-card dd { margin: 0; font-weight: 600; text-align: right; }
.how-list { padding-left: 20px; color: var(--muted); }
.how-list li { margin-bottom: 8px; }

/* ---------- forms ---------- */
.form-card { border-radius: var(--r-lg); background: var(--plum); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.field .hint { display: block; font-weight: 400; font-size: 13px; color: var(--dim); margin-top: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--ink); color: var(--text); font-size: 16px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,106,19,.25); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: var(--plum-2); border: 0; border-radius: 8px; padding: 6px 10px; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 15px; color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--pink); flex-shrink: 0; }
.hp { position: absolute !important; left: -9999px !important; }
.form-msg { margin-top: 16px; padding: 0; border-radius: 12px; font-weight: 600; font-size: 15px; }
.form-msg:empty { display: none; }
.form-msg.ok { padding: 14px 16px; background: rgba(43, 182, 115, .12); color: var(--ok); border: 1px solid rgba(43,182,115,.35); }
.form-msg.err { padding: 14px 16px; background: rgba(198, 40, 40, .08); color: var(--danger); border: 1px solid rgba(198,40,40,.3); }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--dim); font-size: 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.form-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 22px; font-size: 15px; color: var(--muted); }
.inline-row { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 20px; font-size: 14px; }
.g-note { font-size: 13px; color: var(--dim); text-align: center; margin: 10px 0 0; }
.gsi-slot { display: flex; justify-content: center; }
.gsi-slot:empty { display: none; }

/* auth pages */
.auth { padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.auth-grid { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.auth-side h1 { font-size: clamp(40px, 5vw, 68px); }
.auth-fan { position: relative; height: 300px; margin-top: 24px; }
.auth-fan .fan-card { width: 150px; margin: -100px 0 0 -75px; }
.perks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.perks img { width: 30px; height: 30px; }

/* ---------- account page ---------- */
.acct-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.acct-head .avatar { width: 84px; height: 84px; font-size: 30px; }
.acct-head .avatar::after { inset: 5px; }
.acct-head h1 { font-size: clamp(36px, 5vw, 60px); margin: 0; }
.acct-head p { margin: 4px 0 0; color: var(--muted); }
.acct-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: 36px; }
.panel { border-radius: var(--r-lg); background: var(--plum); border: 1px solid var(--line); padding: 26px; }
.panel h2 { font-size: 24px; margin-bottom: 14px; }
.panel-coins { grid-column: span 5; background: linear-gradient(150deg, #fff0c2, var(--plum) 70%); }
.panel-level { grid-column: span 7; }
.panel-bonus { grid-column: span 5; }
.panel-recent { grid-column: span 7; }
.panel-profile { grid-column: span 6; }
.panel-security { grid-column: span 6; }
.panel-danger { grid-column: span 12; border-color: rgba(198,40,40,.3); }
.big-num { font: 800 clamp(44px, 5vw, 64px)/1 var(--display); letter-spacing: -.03em; color: var(--gold); display: flex; align-items: center; gap: 14px; margin: 6px 0 10px; }
.big-num img { width: 60px; height: 60px; }
.lvl-badge { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.lvl-badge b { width: 54px; height: 54px; border-radius: 16px; background: var(--pink); color: #2a0e00; display: grid; place-items: center; font: 800 26px/1 var(--display); transform: rotate(-6deg); }
.lvl-badge span { font: 700 22px/1.1 var(--display); }
.ladder { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ladder li { border-radius: 12px; padding: 10px; background: var(--ink); font-size: 13px; color: var(--dim); border: 1px solid transparent; }
.ladder li b { display: block; color: var(--muted); font: 700 14px/1.2 var(--display); }
.ladder li.done { border-color: rgba(255,106,19,.45); }
.ladder li.done b { color: var(--text); }
.ladder li.now { background: var(--pink); color: #4a1a00; }
.ladder li.now b { color: #2a0e00; }
.mini-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.mini-rail a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 3/4; }
.mini-rail img { width: 100%; height: 100%; object-fit: cover; }
.signed-out-box { text-align: center; max-width: 560px; margin: 0 auto; }
.signed-out-box img { width: 96px; height: 96px; margin: 0 auto 18px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0 0 18px; font-size: 15px; }
.kv dt { color: var(--dim); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }

/* ---------- content / legal pages ---------- */
.doc-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); border-radius: var(--r); background: var(--plum); border: 1px solid var(--line); padding: 20px; font-size: 15px; }
.toc b { display: block; font: 700 16px/1.2 var(--display); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--link); }
.doc { max-width: 74ch; }
.doc h2 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 48px; padding-top: 8px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 20px; margin-top: 28px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--text); font-family: var(--display); font-weight: 700; background: var(--plum); }
.doc td { color: var(--muted); }
.table-scroll { overflow-x: auto; }
.updated { display: inline-block; margin-top: 10px; color: var(--dim); font-size: 14px; }
.callout { border-radius: var(--r); padding: 18px 20px; background: var(--plum); border-left: 4px solid var(--yellow); margin: 20px 0; }
.callout p:last-child { margin: 0; }

/* support / about blocks */
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.help-card { display: block; border-radius: var(--r-lg); background: var(--plum); border: 1px solid var(--line); padding: 26px; text-decoration: none; color: var(--text); }
.help-card:hover { border-color: var(--link); color: var(--text); }
.help-card img { width: 52px; height: 52px; margin-bottom: 14px; }
.help-card p { color: var(--muted); margin: 0; font-size: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.collage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: rotate(-3deg); }
.collage img { border-radius: 14px; aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.collage img:nth-child(3n+2) { transform: translateY(24px); }
.stat-row { display: flex; flex-wrap: wrap; gap: 28px 48px; margin-top: 28px; }
.stat-row div b { display: block; font: 800 46px/1 var(--display); color: var(--gold); letter-spacing: -.03em; }
.stat-row div span { color: var(--muted); font-size: 15px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: start; }
.contact-side { display: grid; gap: 18px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 40px; background: var(--ink-2); border-top: 1px solid var(--line); padding-top: 64px; }
.f-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.f-brand p { color: var(--muted); font-size: 15px; margin-top: 16px; max-width: 34ch; }
.f-col h3 { font-size: 16px; margin-bottom: 14px; color: var(--text); }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.f-col a, .f-col button { color: var(--muted); text-decoration: none; font-size: 15px; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.f-col a:hover, .f-col button:hover { color: var(--link); }
.notice { margin-top: 48px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line-2); }
.seal { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; text-align: center; border: 3px solid var(--pink); color: var(--link); font: 800 24px/1 var(--display); }
.seal small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .02em; margin-top: 2px; }
.notice p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.notice .links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.notice .links a { color: var(--text); }
.f-bottom { margin-top: 36px; padding: 20px 0 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--dim); }
.f-bottom .timer { color: var(--green); font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---------- modals, cookie bar, toast ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(20, 38, 28, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal.open { display: flex; }
.modal-box { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; border-radius: var(--r-lg); background: var(--plum); border: 1px solid var(--line-2); padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 100px rgba(20,38,28,.35); }
.modal-close { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text); }
.modal-close:hover { border-color: var(--text); }
.age-gate { background: rgba(231, 239, 223, .97); }
.age-gate .modal-box { text-align: center; width: min(500px, 100%); }
.age-ring { width: 120px; height: 120px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--pink), var(--yellow), var(--teal), var(--pink)); }
.age-ring div { width: 104px; height: 104px; border-radius: 50%; background: var(--plum); display: grid; place-content: center; }
.age-ring b { font: 800 38px/1 var(--display); }
.age-ring em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.age-gate h2 { font-size: clamp(28px, 4vw, 38px); }
.age-gate p { color: var(--muted); }
.age-actions { display: grid; gap: 12px; margin: 24px 0 16px; }
.age-fine { font-size: 13px; color: var(--dim); margin: 0; }
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 760px; margin: 0 auto;
  display: flex; gap: 18px; align-items: center; padding: 18px 20px; border-radius: var(--r);
  background: var(--plum); border: 1px solid var(--line-2); box-shadow: 0 20px 60px rgba(20,38,28,.25);
}
.cookie-bar p { margin: 0; font-size: 14px; color: var(--muted); }
.cookie-bar .ctas { display: flex; gap: 10px; flex-shrink: 0; }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 140%); max-width: calc(100% - 32px);
  padding: 14px 22px; border-radius: 999px; background: var(--text); color: var(--ink); font-weight: 700; font-size: 15px;
  box-shadow: 0 20px 50px rgba(20,38,28,.3); transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility .3s; pointer-events: none; text-align: center; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding-block: clamp(60px, 10vw, 140px); }
.lost h1 { font-size: clamp(90px, 18vw, 220px); color: var(--link); margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .main-nav a { padding: 10px 10px; font-size: 15px; }
  .f-grid { grid-template-columns: repeat(3, 1fr); }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .main-nav, .hdr-right .hdr-link, .hdr-right .btn-join { display: none; }
  .menu-btn { display: block; }
  .tabbar { display: grid; }
  body { padding-bottom: 72px; }
  .cookie-bar { bottom: 84px; }
  .toast { bottom: 90px; }
  .hero-grid, .wallet-grid, .split, .auth-grid, .contact-grid, .safe-band { grid-template-columns: 1fr; }
  .hero-grid .fan { order: -1; }
  .fan { height: clamp(300px, 62vw, 460px); }
  .fan-card { width: clamp(120px, 26vw, 190px); margin: calc(clamp(120px, 26vw, 190px) * -0.666) 0 0 calc(clamp(120px, 26vw, 190px) * -0.5); }
  .game-layout { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .features .feature { grid-column: span 12 !important; }
  .help-grid { grid-template-columns: 1fr 1fr; }
  .acct-grid > .panel { grid-column: span 12; }
  .wallet-card { transform: none; }
  .auth-side { order: 2; }
  .auth-fan { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --header-h: 66px; }
  .brand img { width: 34px; height: 34px; }
  .brand-word { font-size: 20px; }
  .coin-pill { padding-right: 10px; font-size: 14px; }
  .coin-pill img { width: 24px; height: 24px; }
  .user-chip .uname { display: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .fan-card:nth-child(1), .fan-card:nth-child(5) { display: none; }
  .fan-card:nth-child(2) { --x: -58%; }
  .fan-card:nth-child(4) { --x: 58%; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .gc-body { padding: 12px; }
  .gc-name { font-size: 15px; }
  .field-row { grid-template-columns: 1fr; }
  .help-grid { grid-template-columns: 1fr; }
  .ladder { grid-template-columns: repeat(2, 1fr); }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .notice { grid-template-columns: 1fr; }
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .cookie-bar .ctas .btn { flex: 1; }
  .game-stage { aspect-ratio: 4 / 5; border-radius: var(--r); }
  .play-orb { width: 72px; height: 72px; }
  .feature-wide { grid-template-columns: 1fr; }
  .stat-row div b { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
