/* Layout: a friendly game-store shelf. Big cover cards with medals, a featured
   pick up top, one rounded type family. Clean white and navy with gold details;
   a matching dark navy version follows the visitor's device setting. */
@font-face { font-family: 'Rubik'; src: url('fonts/rubik.woff2') format('woff2'); font-weight: 300 900; font-display: swap; }

:root {
  --bg: #F6F7FB;          /* soft paper white */
  --bg-2: #ECEFF6;
  --card: #FFFFFF;
  --card-2: #F1F3F9;
  --line: #DDE1EC;
  --ink: #0E1B3D;         /* navy */
  --muted: #59627F;
  --gold: #F2B526;        /* medal + coin */
  --gold-text: #8F6100;   /* gold used as text */
  --gold-ink: #3A2600;    /* text on gold */
  --btn: #0E1B3D;         /* main buttons */
  --btn-ink: #FFFFFF;
  --btn-hover: #213467;
  --silver: #8792A7;
  --silver-text: #5E6A80;
  --bronze: #B4652F;
  --free: #0E8455;
  --warn: #C2410C;
  --focus: #2F55D4;
  --on-cover: #FFFFFF;
  --shadow: 0 1px 2px rgba(14, 27, 61, .06), 0 12px 28px -18px rgba(14, 27, 61, .28);
  --font: 'Rubik', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --r: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1222; --bg-2: #101A2F; --card: #15203A; --card-2: #1D2A48; --line: #2A3858;
    --ink: #EEF2F9; --muted: #9CA8C4; --gold: #F2B526; --gold-text: #F5C451; --gold-ink: #3A2600;
    --btn: #F2B526; --btn-ink: #3A2600; --btn-hover: #F7C64F;
    --silver: #C3CCDC; --silver-text: #C3CCDC; --bronze: #E59A63; --free: #3DD598; --warn: #FF9466; --focus: #8EB0FF;
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 30px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1222; --bg-2: #101A2F; --card: #15203A; --card-2: #1D2A48; --line: #2A3858;
  --ink: #EEF2F9; --muted: #9CA8C4; --gold: #F2B526; --gold-text: #F5C451; --gold-ink: #3A2600;
  --btn: #F2B526; --btn-ink: #3A2600; --btn-hover: #F7C64F;
  --silver: #C3CCDC; --silver-text: #C3CCDC; --bronze: #E59A63; --free: #3DD598; --warn: #FF9466; --focus: #8EB0FF;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 30px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--font); font-variant-numeric: tabular-nums; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--btn); color: var(--btn-ink); padding: 10px 14px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

main { max-width: var(--max); margin: 0 auto; padding: 20px var(--gutter) 72px; display: grid; gap: 56px; }
main > * { min-width: 0; }
.preview-bar { background: var(--ink); color: var(--bg); font-size: .875rem; font-weight: 500; text-align: center; padding: 8px var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 0;
  font: 600 .9375rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-gold, .btn-claim { background: var(--btn); color: var(--btn-ink); }
.btn-gold:hover, .btn-claim:hover { background: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 1.0625rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.linklike { background: none; border: 0; padding: 0; color: var(--gold-text); font: inherit; text-decoration: underline; cursor: pointer; }

/* Header */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-in { max-width: var(--max); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1875rem; letter-spacing: -.01em; text-decoration: none; }
.brand b { color: var(--gold-text); font-weight: 800; }
.brand-coin { display: block; width: 32px; height: 32px; flex: none; }
.brand-coin svg { display: block; width: 100%; height: 100%; }
.nav { display: flex; gap: 4px; margin-right: auto; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .9375rem; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--card-2); }
@media (max-width: 760px) {
  .head-in { padding-block: 10px 6px; }
  .nav { order: 3; width: calc(100% + 12px); margin-left: -12px; }
  .head-cta { margin-left: auto; }
}
.stale { max-width: var(--max); margin: 12px auto 0; padding: 10px var(--gutter); color: var(--warn); font-weight: 500; }

/* Medals */
.medal { display: inline-flex; align-items: center; gap: 8px; --m: var(--muted); }
.medal-disc {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, color-mix(in srgb, var(--m) 30%, #fff), var(--m) 58%, color-mix(in srgb, var(--m) 70%, #000));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--m) 60%, #000), 0 2px 6px -2px color-mix(in srgb, var(--m) 70%, transparent);
}
.medal-disc svg { width: 15px; height: 15px; fill: color-mix(in srgb, var(--m) 35%, #000); color: color-mix(in srgb, var(--m) 30%, #000); }
.medal-label { font-weight: 700; font-size: .8125rem; color: var(--mt, var(--muted)); }
.medal-gold { --m: var(--gold); --mt: var(--gold-text); }
.medal-silver { --m: var(--silver); --mt: var(--silver-text); }
.medal-bronze { --m: var(--bronze); --mt: var(--bronze); }
.medal-ungraded, .medal-loot { --m: #8A8EAE; }
.medal-lg .medal-disc { width: 40px; height: 40px; }
.medal-lg .medal-disc svg { width: 22px; height: 22px; }
.medal-lg .medal-label { font-size: 1rem; }
.medal-xs .medal-disc { width: 18px; height: 18px; }
.medal-xs .medal-disc svg { width: 11px; height: 11px; }

/* Cover art: generated colour block, real artwork laid on top when available */
.cover { position: relative; display: block; aspect-ratio: 460 / 215; overflow: hidden; background: hsl(var(--h) 40% 24%); }
.cover-art {
  position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 85% 10%, hsl(calc(var(--h) + 50) 80% 62% / .55), transparent 55%),
    radial-gradient(90% 80% at 10% 100%, hsl(calc(var(--h) - 30) 70% 30% / .9), transparent 60%),
    linear-gradient(135deg, hsl(var(--h) 55% 38%), hsl(calc(var(--h) + 35) 60% 20%));
}
.cover-art span { font-weight: 800; font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -.04em; color: rgba(255, 255, 255, .88); text-shadow: 0 4px 24px rgba(0, 0, 0, .3); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Pills */
.pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.pill-store { background: rgba(10, 10, 25, .62); color: #fff; backdrop-filter: blur(6px); }
.pill-new { background: var(--free); color: #04281A; }
.pill-time { background: rgba(10, 10, 25, .62); color: #fff; backdrop-filter: blur(6px); }
.pill-time.soon { background: var(--warn); color: #2B0D00; }
.pill-inline { background: var(--card-2); color: var(--muted); backdrop-filter: none; }
.pill-inline.soon { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 256px), 1fr)); gap: 20px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--muted) 50%, var(--line)); }
.card-gold { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.card-cover { position: relative; display: block; }
.card-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.card-cover .pill-time { position: absolute; top: 10px; right: 10px; }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 12px; flex: 1; }
.card-title { margin: 0; font-size: 1.0625rem; font-weight: 650; line-height: 1.3; }
.card-title a { text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.price { display: inline-flex; align-items: baseline; gap: 8px; }
.price s { color: var(--muted); font-size: .875rem; }
.price b { color: var(--free); font-size: 1.125rem; font-weight: 750; }
.btn-claim { min-height: 40px; padding: 0 14px; font-size: .875rem; }

.rating { margin: 0; display: grid; gap: 6px; font-size: .8125rem; color: var(--muted); }
.rating b { color: var(--ink); font-weight: 650; }
.bar { display: block; height: 6px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: inherit; background: var(--free); }

/* "I already have it" */
.mark { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; min-height: 32px; padding: 0; background: none; border: 0; color: var(--muted); font: 500 .8125rem var(--font); cursor: pointer; }
.mark:hover { color: var(--ink); }
.mark-box { width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px currentColor; display: grid; place-items: center; }
.mark[aria-pressed="true"] { color: var(--free); }
.mark[aria-pressed="true"] .mark-box { background: var(--free); box-shadow: none; }
.mark[aria-pressed="true"] .mark-box::after { content: ''; width: 8px; height: 4px; border: solid #04281A; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.card.is-mine .card-cover, .card.is-mine .card-title, .card.is-mine .rating { opacity: .45; }
.card.is-ended { opacity: .5; }
.card.is-ended .btn-claim { pointer-events: none; background: var(--card-2); color: var(--muted); }

/* Rail (horizontal scroll) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
.rail .card { scroll-snap-align: start; }
@media (min-width: 1000px) { .rail { grid-auto-columns: calc((100% - 48px) / 4); } }

/* Section heads */
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 18px; }
.sec-h { margin: 0; font-size: clamp(1.375rem, 2.6vw, 1.75rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
.sec-sub { margin: 0; color: var(--muted); font-size: .9375rem; }
.sec-sub a { color: var(--gold-text); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding-top: clamp(8px, 3vw, 28px); }
.hero h1 { margin: 0; font-size: clamp(2.375rem, 5.6vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.hero-sub { margin: 16px 0 0; font-size: 1.125rem; color: var(--muted); max-width: 46ch; }
.stats { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.stats li { display: grid; }
.stats b { font-size: 1.875rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.stats span { font-size: .875rem; color: var(--muted); }
.stat-gold b { color: var(--gold-text); }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); } }

/* Featured pick */
.feature { display: grid; background: var(--card); border-radius: 20px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--gold) 50%, var(--line)); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--gold) 10%, transparent); }
.feature-cover { display: block; }
.feature-body { display: grid; gap: 10px; padding: 20px 22px 22px; }
.feature-kicker { margin: 0; font-size: .8125rem; font-weight: 600; color: var(--gold-text); }
.feature-title { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.feature-title a { text-decoration: none; }
.feature-meta { margin: 0; color: var(--muted); font-size: .9375rem; }
.feature-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.feature .btn-lg { margin-top: 4px; }

/* Trust strip */
.trust { list-style: none; margin: -24px 0 0; padding: 14px 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; background: var(--bg-2); border-radius: 14px; font-size: .9375rem; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust-ic svg { width: 16px; height: 16px; fill: var(--gold); display: block; }

/* Toolbar */
.toolbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 10; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 10px; margin: 0 0 20px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 14px; border: 1px solid var(--line); }
@media (max-width: 760px) { .toolbar { top: calc(env(safe-area-inset-top, 0px) + 104px); } }
.segs { border: 0; margin: 0; padding: 4px; display: flex; gap: 2px; background: var(--card); border-radius: 11px; }
.seg input, .tog input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 14px; border-radius: 8px; font-size: .875rem; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg input:checked + span { background: var(--card-2); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.seg input:focus-visible + span, .tog input:focus-visible + .tog-ui { outline: 3px solid var(--focus); outline-offset: 2px; }
.togs { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tog { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; font-weight: 500; cursor: pointer; }
.tog-ui { width: 34px; height: 20px; border-radius: 999px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); position: relative; transition: background-color .15s; }
.tog-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform .15s, background-color .15s; }
.tog input:checked + .tog-ui { background: var(--btn); }
.tog input:checked + .tog-ui::after { transform: translateX(14px); background: var(--btn-ink); }

.empty { color: var(--muted); margin: 0; padding: 18px; background: var(--bg-2); border-radius: 12px; }

/* Explainer */
.explain-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.explain-list li { display: grid; gap: 10px; align-content: start; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.explain-list p { margin: 0; color: var(--muted); }

/* Coming next */
.next { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.next li { display: grid; gap: 2px; padding: 14px 16px; background: var(--card); border-radius: 12px; border: 1px dashed var(--line); }
.next-name { font-weight: 600; }
.next-when { color: var(--muted); font-size: .875rem; }

/* Alerts */
.alerts { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 32px; align-items: center; padding: clamp(22px, 4vw, 40px); border-radius: 22px; background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 55%), var(--card); border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--line)); }
.alerts h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.alerts-text p { margin: 8px 0 0; color: var(--muted); max-width: 44ch; }
.alerts-action p { margin: 0; }
.alert-form { display: flex; flex-wrap: wrap; gap: 8px; }
.alert-form input { flex: 1 1 12rem; min-width: 0; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; }
.alerts-action .alert-fine { margin-top: 8px; font-size: .8125rem; color: var(--muted); }
@media (max-width: 760px) { .alerts { grid-template-columns: minmax(0, 1fr); } }

/* Inner pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--muted); margin-bottom: -36px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head { display: grid; gap: 12px; padding-top: clamp(8px, 2vw, 20px); }
.page-head h1 { margin: 0; font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.page-head p { margin: 0; color: var(--muted); font-size: 1.0625rem; max-width: 62ch; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.history { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.history th { text-align: left; font-weight: 500; color: var(--muted); font-size: .8125rem; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.history td { padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.history tr:last-child td { border-bottom: 0; }
.history .num { text-align: right; }
.cell-game { display: inline-flex; align-items: center; gap: 10px; white-space: normal; min-width: 12rem; }
.cell-game a { font-weight: 600; text-decoration: none; }
.cell-game a:hover { text-decoration: underline; }
.tag-live { color: var(--free); font-weight: 650; }
.search { display: grid; gap: 8px; max-width: 32rem; margin-top: -24px; }
.search label { font-weight: 600; }
.search input { min-height: 50px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; font-size: 1.0625rem; }
.search input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); }

/* Game page */
.game { display: grid; gap: 32px; }
.game-hero-text h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.game-hero .medal-label { color: var(--on-cover); }
.game-verdict { margin: 0; font-size: 1.0625rem; opacity: .9; }
.game-hero .rating { color: rgba(255, 255, 255, .8); max-width: 26rem; }
.game-hero .rating b { color: #fff; }
.game-hero .bar { background: rgba(255, 255, 255, .2); }
.game-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.game-main { display: grid; gap: 36px; }
.game-main .sec-h { margin-bottom: 14px; }
.game-summary { margin: 0; font-size: 1.0625rem; line-height: 1.7; max-width: 64ch; }
.game-side { display: grid; gap: 20px; position: sticky; top: 84px; }
.claim-box { display: grid; gap: 12px; padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.claim-live { border-color: color-mix(in srgb, var(--free) 45%, var(--line)); }
.claim-box p { margin: 0; }
.claim-h { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.claim-live .claim-h { color: var(--free); }
.claim-off p:not(.claim-h) { color: var(--muted); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--free); box-shadow: 0 0 0 4px color-mix(in srgb, var(--free) 22%, transparent); }
.claim-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.claim-box .claim-fine { font-size: .8125rem; color: var(--muted); }
.howto { font-size: .875rem; color: var(--muted); }
.howto summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.claim-box .howto p { margin-top: 8px; }
.facts { margin: 0; padding: 4px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.facts div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 860px) {
  .game-grid { grid-template-columns: minmax(0, 1fr); }
  .game-side { order: -1; position: static; }
}

/* Prose */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -.01em; margin: 36px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; color: color-mix(in srgb, var(--ink) 88%, var(--muted)); }
.prose a { color: var(--gold-text); }
.select { user-select: all; font-weight: 600; }
.explain-wide { margin-top: -24px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 44px var(--gutter) 32px; font-size: .9375rem; color: var(--muted); }
.foot-in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.foot-about p { margin: 12px 0 0; max-width: 40ch; }
.foot-in nav { display: grid; gap: 7px; align-content: start; }
.foot-h { margin: 0 0 4px; color: var(--ink); font-weight: 600; }
.foot-in nav a { text-decoration: none; }
.foot-in nav a:hover { color: var(--ink); text-decoration: underline; }
.credit { max-width: var(--max); margin: 32px auto 0; font-size: .8125rem; }
@media (max-width: 760px) { .foot-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-about { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.game-main > *, .game-side, .game-grid > * { min-width: 0; }

/* Ads (only rendered when AdSense is configured) */
.ad { min-height: 120px; display: grid; gap: 6px; }
.ad-label { margin: 0; font-size: .75rem; color: var(--muted); }

/* Support page */
.alerts-action .alert-support { margin-top: 14px; font-size: .9375rem; color: var(--muted); }
.alert-support a, .warn-box a { color: var(--gold-text); }
.tip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.tip .sec-sub { margin-top: 4px; }
.warn-box { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); max-width: 72ch; }
.coins { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.coin { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.coin-qr { background: #FFFFFF; border-radius: 10px; padding: 4px; line-height: 0; }
.qr { width: 104px; height: 104px; }
.coin-main { display: grid; gap: 6px; min-width: 0; }
.coin-main p { margin: 0; }
.coin-name { font-weight: 650; font-size: 1.0625rem; }
.coin-name span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.coin-net { font-size: .875rem; color: var(--muted); }
.coin-net strong { color: var(--ink); font-weight: 600; }
.addr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.addr code { flex: 1 1 16rem; min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--card-2); font: 500 .875rem/1.4 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
@media (max-width: 520px) { .coin { grid-template-columns: minmax(0, 1fr); } .coin-qr { justify-self: start; } }

/* Weekly roundups */
.week-range { margin: 0; font-weight: 600; color: var(--gold-text); }
.weeks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.weeks li { display: grid; gap: 2px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.weeks a { font-weight: 600; text-decoration: none; }
.weeks a:hover { text-decoration: underline; }
.weeks span { font-size: .875rem; color: var(--muted); }
.weeks-all { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }

.site-foot .brand { color: var(--ink); }

/* Phones: compact side-by-side cards so the list stays easy to scan */
@media (max-width: 560px) {
  .grid { gap: 12px; }
  .grid .card { flex-direction: row; }
  .grid .card-cover { width: 108px; flex: none; }
  .grid .cover { height: 100%; aspect-ratio: auto; min-height: 100%; }
  .grid .cover-art span { font-size: 1.625rem; }
  .grid .card-badges { top: 8px; left: 8px; right: 8px; }
  .grid .pill-store { display: none; }
  .grid .card-cover .pill-time { top: auto; bottom: 8px; left: 8px; right: auto; font-size: .6875rem; padding: 0 7px; }
  .grid .card-body { padding: 12px 12px 8px; gap: 6px; min-width: 0; }
  .grid .card-title { font-size: 1rem; }
  .grid .btn-claim { min-height: 36px; padding: 0 12px; }
  .grid .price b { font-size: 1rem; }
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.card-store { display: none; font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .grid .card-store { display: block; } }

/* Language */
.head-tools { display: flex; align-items: center; gap: 10px; }
.lang-link { padding: 8px 10px; border-radius: 10px; font-size: .875rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.lang-link:hover { color: var(--ink); background: var(--bg-2); }
.lang-suggest { margin: 0; padding: 10px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; background: var(--card-2); border-bottom: 1px solid var(--line); font-size: .9375rem; text-align: center; }
.lang-suggest a { font-weight: 600; color: var(--gold-text); }
.lang-suggest .linklike { color: var(--muted); text-decoration: none; font-size: 1.25rem; line-height: 1; padding: 0 6px; }
@media (max-width: 760px) { .head-tools { margin-left: auto; } }
@media (max-width: 760px) { .head-cta { display: none; } }
.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

/* Email signup */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alerts-action .alert-msg { margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 500; background: color-mix(in srgb, var(--free) 14%, var(--card)); color: var(--ink); }
.alerts-action .alert-msg.is-error { background: color-mix(in srgb, var(--warn) 14%, var(--card)); }

/* Game page header: sharp image at its natural size on a blurred backdrop of itself */
.game-hero { position: relative; overflow: hidden; border-radius: 22px; background: linear-gradient(135deg, hsl(var(--h) 45% 24%), hsl(calc(var(--h) + 40) 50% 12%)); }
.game-hero-bg { position: absolute; inset: 0; }
.game-hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(36px) saturate(1.2) brightness(.42); transform: scale(1.25); }
.game-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(18px, 3vw, 36px); align-items: center; padding: clamp(16px, 3vw, 32px); }
.cover-media { aspect-ratio: 16 / 9; border-radius: 14px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .7); }
.game-hero-text { display: grid; gap: 10px; color: var(--on-cover); min-width: 0; }
.game-hero-text h1 { margin: 0; font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
@media (max-width: 860px) { .game-hero-in { grid-template-columns: minmax(0, 1fr); } }

/* Loot page */
.loot-tools { flex-direction: column; align-items: stretch; }
.segs-wrap { flex-wrap: wrap; background: transparent; padding: 0; gap: 6px; }
.segs-wrap .seg span { background: var(--card); border: 1px solid var(--line); }
.segs-wrap .seg input:checked + span { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.seg em { font-style: normal; font-size: .75rem; opacity: .7; margin-left: 4px; }
.loot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.field-search { flex: 1 1 14rem; min-width: 0; }
.field-search input, .field-sort select { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: .9375rem; }
.field-sort { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); }
.field-sort select { width: auto; }
.loot-group + .loot-group { margin-top: 32px; }
.loot-h { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 1.125rem; font-weight: 700; }
.loot-h em { font-style: normal; font-weight: 500; color: var(--muted); }
@media (max-width: 760px) { .loot-tools { position: static; } }
@media (max-width: 760px) {
  .segs-wrap { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -10px; padding-inline: 10px; }
  .segs-wrap .seg span { white-space: nowrap; }
}

/* Discord page */
.feeds { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px 24px; align-items: center; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.feed p { margin: 0; }
.feed-name { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.feed-about { color: var(--muted); font-size: .9375rem; margin-top: 2px !important; }
.steps { padding-left: 1.25rem; display: grid; gap: 8px; margin: 0 0 12px; }
@media (max-width: 760px) { .feed { grid-template-columns: minmax(0, 1fr); } }
