@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@600;700;800&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
  --ink: #1d1730;
  --paper: #fffdf7;
  --lavender: #f4efff;
  --purple: #7c5cff;
  --purple-soft: #e7deff;
  --yellow: #ffd84d;
  --yellow-deep: #f5b800;
  --cyan: #66e3d2;
  --pink: #ff8fb1;
  --green: #8ee36b;
  --orange: #ff9f43;
  --muted: #6f6780;
  --line: 3px solid var(--ink);
  --shadow: 7px 7px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 24px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --display: "Baloo 2", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--lavender);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }

.page-dots {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(#c8b8f4 1.6px, transparent 1.7px);
  background-size: 22px 22px;
  opacity: .75;
  pointer-events: none;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .5;
  pointer-events: none;
}
body::before { top: -160px; right: -120px; background: #ffd84d; }
body::after { bottom: -200px; left: -140px; background: #9d8aff; opacity: .34; }

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 247, .95);
  border-bottom: var(--line);
  backdrop-filter: blur(12px);
}
.topbar-inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--purple), #a48cff);
  color: var(--yellow);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-5deg);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -.3px; }
.brand-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .22em; }

.main-nav { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.nav-pill {
  padding: 8px 14px;
  border: 2px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}
.nav-pill:hover { color: var(--ink); background: #fff; border-color: var(--ink); transform: translateY(-2px); }
.nav-pill.active { background: var(--yellow); border-color: var(--ink); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.top-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.guest-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}
.guest-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); border: 1.5px solid var(--ink); }
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: var(--line);
  border-radius: 12px;
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  padding: 10px;
}
.menu-btn span { display: block; height: 3px; margin: 4px 0; border-radius: 3px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ────────────────────────────────────────────── */
.ink-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 22px;
  border: var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.ink-btn:hover { transform: translate(-1px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.ink-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.ink-btn.small { min-height: 38px; padding: 7px 14px; font-size: 12px; border-radius: 11px; }
.ink-btn.wide { flex: 1; min-height: 50px; font-size: 15px; }
.ink-btn.yellow { background: var(--yellow); }
.ink-btn.yellow:hover { background: #ffdf73; }
.ink-btn.ghost { background: #fff; }
.ink-btn.ghost:hover { background: var(--purple-soft); }
.text-link { color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { color: #5b3ee8; }

/* ── Marquee ────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-bottom: var(--line);
  background: var(--purple);
  color: #fff;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
.marquee-track { display: flex; align-items: center; gap: 26px; width: max-content; padding: 9px 0; animation: marquee 26s linear infinite; }
.marquee-track i { color: var(--yellow); font-style: normal; font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Layout ─────────────────────────────────────────────── */
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section { padding: 44px 0 10px; scroll-margin-top: 92px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 4px 0 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; font-weight: 900; letter-spacing: -.8px; }
.eyebrow { display: inline-block; padding: 5px 9px; border: 2px solid var(--ink); border-radius: 7px; background: #fff; box-shadow: 2px 2px 0 var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.count-chip { padding: 7px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cyan); font-size: 12px; font-weight: 800; box-shadow: 2px 2px 0 var(--ink); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; padding: 58px 0 34px; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 700;
  transform: rotate(-1deg);
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); border: 1.5px solid var(--ink); box-shadow: 0 0 0 4px rgba(142, 227, 107, .25); }
.hero h1 {
  margin: 24px auto 0;
  max-width: 900px;
  font-size: clamp(45px, 7vw, 84px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -2.5px;
}
.hero h1 .hl {
  position: relative;
  display: inline-block;
  z-index: 0;
  padding: 0 .08em;
}
.hero h1 .hl::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2%;
  right: -2%;
  bottom: .04em;
  height: .52em;
  border: var(--line);
  border-radius: 8px;
  background: var(--yellow);
  transform: rotate(-1.2deg);
}
.hero-sub { margin: 24px auto 0; max-width: 640px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.desktop-break { display: inline; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-stats > div { min-width: 118px; padding: 10px 18px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.hero-stats strong { display: block; font-family: var(--display); font-size: 26px; line-height: 1; }
.hero-stats span { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 700; }
.hero-sticker {
  position: absolute;
  z-index: 1;
  padding: 8px 12px;
  border: var(--line);
  border-radius: 12px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  box-shadow: 4px 4px 0 var(--ink);
  pointer-events: none;
}
.sticker-a { top: 74px; left: 4%; background: var(--pink); transform: rotate(-7deg); animation: floaty 5s ease-in-out infinite; }
.sticker-b { top: 118px; right: 3%; background: var(--cyan); transform: rotate(6deg); animation: floaty 6.5s ease-in-out infinite reverse; }
.sticker-c { bottom: 26px; right: 12%; background: var(--yellow); font-size: 20px; transform: rotate(9deg); animation: wiggle 4s ease-in-out infinite; }
@keyframes floaty { 50% { translate: 0 -9px; } }
@keyframes wiggle { 50% { rotate: 14deg; scale: 1.06; } }

/* ── Featured ───────────────────────────────────────────── */
.featured-card {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: 0;
  overflow: hidden;
  border: var(--line);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--ink);
}
.featured-media { padding: 16px; background: #efe8ff; border-right: var(--line); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #fff;
  font-size: 10px;
}
.browser-dots { display: flex; gap: 4px; }
.browser-dots i { width: 8px; height: 8px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--pink); }
.browser-dots i:nth-child(2) { background: var(--yellow); }
.browser-dots i:nth-child(3) { background: var(--green); }
.browser-url { flex: 1; min-width: 0; padding: 3px 8px; border-radius: 5px; background: var(--lavender); color: var(--muted); font-family: ui-monospace, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-tag { padding: 2px 5px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--yellow); font-size: 9px; font-weight: 800; }
.media-frame { position: relative; display: block; overflow: hidden; border: var(--line); border-radius: 0 0 12px 12px; background: #10202b; }
.media-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .45s cubic-bezier(.22, 1, .36, 1); }
.media-frame:hover img { transform: scale(1.025); }
.play-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.play-tri { width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid var(--ink); }
.media-strip { display: flex; align-items: center; gap: 7px; margin-top: 9px; }
.media-strip img { width: 74px; height: 46px; object-fit: cover; border: 2px solid var(--ink); border-radius: 8px; background: #fff; }
.media-note { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 700; }
.featured-copy { display: flex; flex-direction: column; justify-content: center; padding: 30px 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; padding: 4px 9px; border: 2px solid var(--ink); border-radius: 999px; font-size: 10px; font-weight: 800; }
.chip.purple { background: var(--purple-soft); }
.chip.cyan { background: var(--cyan); }
.chip.yellow { background: var(--yellow); }
.chip.dashed { border-style: dashed; background: #fff; color: var(--muted); }
.featured-copy h3 { margin: 13px 0 9px; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; font-weight: 900; letter-spacing: -1px; }
.featured-copy > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.mini-facts { display: flex; gap: 18px; margin: 18px 0; padding: 14px 0; border-top: 2px dashed #d4c9e8; border-bottom: 2px dashed #d4c9e8; }
.mini-facts div { min-width: 0; }
.mini-facts strong { display: block; font-family: var(--display); font-size: 22px; line-height: 1.05; }
.mini-facts span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 700; }
.game-actions { display: flex; gap: 9px; }
.game-actions .ink-btn { min-width: 0; }
.game-footnote { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 13px; }
.status-chip { padding: 3px 8px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--green); font-size: 9px; font-weight: 800; }
.status-chip.muted { background: #f0ecf7; color: var(--muted); border-color: #b9afc9; }
.footnote-note { color: var(--muted); font-size: 10px; }

/* ── Feature cards ──────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { padding: 24px; border: var(--line); border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
.feature-card:hover { transform: translate(-2px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.f-yellow { background: #fff3bd; }
.f-cyan { background: #d8fbf5; }
.f-pink { background: #ffe1ea; }
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 2.5px solid var(--ink); border-radius: 13px; background: #fff; box-shadow: 2px 2px 0 var(--ink); font-family: var(--display); font-size: 20px; font-weight: 800; }
.feature-card h3 { margin: 15px 0 6px; font-size: 19px; font-weight: 900; }
.feature-card p { margin: 0; color: #5f5870; font-size: 13px; line-height: 1.75; }

/* ── Library ────────────────────────────────────────────── */
.library-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.game-card { display: flex; flex-direction: column; overflow: hidden; border: var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.game-card:hover { transform: translate(-2px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.game-cover { position: relative; display: block; overflow: hidden; border-bottom: var(--line); background: #10202b; }
.game-cover img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s ease; }
.game-card:hover .game-cover img { transform: scale(1.04); }
.cover-badge { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border: 2px solid var(--ink); border-radius: 7px; background: var(--yellow); font-size: 10px; font-weight: 800; box-shadow: 2px 2px 0 var(--ink); }
.cover-play { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 36px; height: 36px; padding-left: 2px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; box-shadow: 2px 2px 0 var(--ink); font-size: 13px; }
.game-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.game-body h3 { margin: 10px 0 6px; font-size: 20px; line-height: 1.3; font-weight: 900; letter-spacing: -.3px; }
.game-body p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.game-meta { display: flex; gap: 9px; flex-wrap: wrap; margin: 13px 0 15px; color: #8b8399; font-size: 10px; font-weight: 700; }
.game-meta span::before { content: "• "; }
.card-actions { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.placeholder-card { border-style: dashed; box-shadow: 4px 4px 0 rgba(29, 23, 48, .22); background: rgba(255, 253, 247, .68); }
.placeholder-card:hover { transform: none; box-shadow: 4px 4px 0 rgba(29, 23, 48, .22); }
.placeholder-art { display: grid; place-items: center; aspect-ratio: 16 / 10; border-bottom: 2px dashed #b9afc9; background: repeating-linear-gradient(135deg, #efe8ff 0 12px, #f7f2ff 12px 24px); }
.placeholder-art span { display: grid; place-items: center; width: 62px; height: 62px; border: var(--line); border-radius: 18px; background: #fff; box-shadow: 4px 4px 0 var(--ink); font-family: var(--display); font-size: 32px; font-weight: 800; transform: rotate(-6deg); }
.submit-card { background: #fff7d6; }
.submit-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 16 / 10; border-bottom: var(--line); background: linear-gradient(145deg, #7c5cff, #a48cff); color: #fff; }
.submit-art .plus { display: grid; place-items: center; width: 52px; height: 52px; border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--display); font-size: 30px; font-weight: 800; box-shadow: 3px 3px 0 var(--ink); }
.submit-label { font-family: var(--display); font-size: 11px; font-weight: 800; letter-spacing: .2em; }

/* ── How to play ────────────────────────────────────────── */
.how-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 17px; }
.how-card, .steps-card { padding: 28px; border: var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.how-card { background: #fff; }
.how-card h2 { margin: 12px 0 6px; font-size: 30px; font-weight: 900; }
.how-card p { margin: 0; color: var(--muted); font-size: 13px; }
.keys { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.key-group { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.key { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border: 2.5px solid var(--ink); border-radius: 9px; background: var(--paper); box-shadow: 0 3px 0 var(--ink); font-family: var(--display); font-size: 15px; font-weight: 800; }
.key-group small { flex-basis: 100%; margin-top: 7px; color: var(--muted); font-size: 10px; }
.or { color: #a49ab5; font-size: 11px; font-weight: 700; padding-bottom: 20px; }
.steps-card { background: #efe8ff; }
.steps { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; }
.step-no { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border: 2px solid var(--ink); border-radius: 10px; background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); font-family: var(--display); font-size: 12px; font-weight: 800; }
.steps strong { display: block; font-size: 14px; }
.steps p { margin: 1px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

/* ── Footer ─────────────────────────────────────────────── */
.footer { margin-top: 52px; border-top: var(--line); background: var(--ink); color: #fff; }
.footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 34px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.small-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 21px; box-shadow: none; }
.footer-brand strong { display: block; font-family: var(--display); font-size: 16px; }
.footer-brand small { display: block; color: #aaa2bd; font-size: 10px; }
.footer-links { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.footer-links a { color: #d8d3e4; font-size: 12px; font-weight: 600; }
.footer-links a:hover { color: var(--yellow); }
.copyright { width: 100%; margin: 8px 0 0; padding-top: 15px; border-top: 1px solid #3b3450; color: #8e86a2; font-size: 10px; }

/* ── Reveal ─────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1040px) {
  .main-nav { display: none; position: absolute; top: 74px; left: 20px; right: 20px; flex-direction: column; align-items: stretch; padding: 12px; border: var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .nav-pill { text-align: center; }
  .menu-btn { display: block; }
  .guest-pill { display: none; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-media { border-right: 0; border-bottom: var(--line); }
  .featured-copy { padding: 24px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .library-grid { grid-template-columns: 1fr 1fr; }
  .how-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  main, .topbar-inner, .footer-inner { width: min(100% - 24px, 1180px); }
  .topbar-inner { min-height: 66px; gap: 12px; }
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 17px; }
  .brand-mark { width: 38px; height: 38px; font-size: 24px; }
  .top-actions .ink-btn { display: none; }
  .main-nav { top: 66px; left: 12px; right: 12px; }
  .hero { padding: 40px 0 22px; }
  .hero h1 { font-size: clamp(38px, 11vw, 54px); letter-spacing: -1.5px; margin-top: 18px; }
  .hero-sub { font-size: 13px; }
  .desktop-break { display: none; }
  .hero-sticker { display: none; }
  .hero-stats > div { min-width: 96px; padding: 8px 12px; }
  .hero-stats strong { font-size: 22px; }
  .section { padding-top: 32px; }
  .section-head { align-items: flex-start; }
  .section-head h2 { font-size: 26px; }
  .feature-grid, .library-grid { grid-template-columns: 1fr; }
  .featured-card { border-radius: 20px; box-shadow: 6px 6px 0 var(--ink); }
  .featured-copy { padding: 20px 17px; }
  .featured-copy h3 { font-size: 27px; }
  .media-strip img { width: 58px; height: 38px; }
  .game-actions { flex-wrap: wrap; }
  .game-actions .wide { flex-basis: 100%; }
  .mini-facts { gap: 14px; }
  .how-card, .steps-card { padding: 20px; }
  .footer-links { margin-left: 0; }
  .marquee-track { animation-duration: 18s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── In-page game player ───────────────────────────────── */
button.game-launch { appearance: none; -webkit-appearance: none; }

.media-frame {
  width: 100%;
  padding: 0;
  border: var(--line);
  border-radius: 0 0 12px 12px;
  background: #10202b;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
button.game-cover {
  width: 100%;
  padding: 0;
  border: 0;
  border-bottom: var(--line);
  background: #10202b;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.card-actions { flex-wrap: wrap; }
.card-actions .text-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
.game-actions { flex-wrap: wrap; }

.player-modal[hidden] { display: none; }
.player-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(12, 20, 26, .78);
  backdrop-filter: blur(9px);
}
.player-shell {
  width: min(1180px, 100%);
  height: min(92dvh, 860px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 20px;
  background: #07141b;
  box-shadow: 10px 10px 0 var(--ink);
}
.player-head {
  height: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 3px solid var(--ink);
  background: var(--paper);
  font-size: 13px;
}
.player-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); border: 1.5px solid var(--ink); flex-shrink: 0; }
.player-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; }
.player-tag { padding: 3px 7px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--cyan); font-size: 9px; font-weight: 800; flex-shrink: 0; }
.player-close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}
.player-close:hover { background: #ffe582; }
.player-stage { position: relative; flex: 1; min-height: 0; background: #07141b; }
#game-frame { display: block; width: 100%; height: 100%; border: 0; background: #07141b; }
.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at 50% 16%, #1f3b4b, #07141b 66%);
  color: #fff;
  text-align: center;
}
.player-overlay[hidden] { display: none; }
.player-card { width: min(430px, 100%); }
.loader-logo { font-family: var(--display); font-size: 44px; line-height: 1; letter-spacing: -2px; color: #dbe7ee; }
.loader-logo em { color: var(--yellow); font-style: normal; }
#player-status { margin: 14px 0 6px; font-size: 20px; line-height: 1.3; font-weight: 900; }
#player-sub { margin: 0 auto 18px; max-width: 350px; color: #aebcc4; font-size: 11px; line-height: 1.7; }
.loader-progress { height: 12px; overflow: hidden; border: 2px solid #fff; border-radius: 999px; background: #22343f; }
.loader-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--yellow), var(--orange)); transition: width .12s linear; }
.loader-meta { display: flex; justify-content: space-between; margin-top: 6px; color: #8fa2ad; font-size: 10px; }
.unlock-box { margin-top: 18px; padding: 14px; border: 2px solid #fff; border-radius: 12px; background: #122732; text-align: center; }
.unlock-box[hidden] { display: none; }
.unlock-price { margin: 0; font-size: 15px; font-weight: 800; }
.unlock-price strong { color: var(--yellow); }
.unlock-note { margin: 5px 0 0; color: #aebcc4; font-size: 10px; line-height: 1.6; }
.unlock-box .ink-btn { margin-top: 11px; color: var(--ink); }
.unlock-box .ink-btn[disabled] { opacity: .55; cursor: wait; }
.login-link { display: block; margin-top: 10px; color: var(--yellow); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.login-link[hidden] { display: none; }
.player-error { min-height: 16px; margin: 10px 0 0; color: #ff9b8a; font-size: 11px; line-height: 1.5; }
.player-cancel { margin-top: 8px; border: 0; background: none; color: #8fa2ad; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
body.player-open { overflow: hidden; }

@media (max-width: 700px) {
  .player-modal { padding: 0; }
  .player-shell { width: 100%; height: 100dvh; border: 0; border-radius: 0; box-shadow: none; }
  .player-head { height: 50px; }
  .loader-logo { font-size: 36px; }
  #player-status { font-size: 17px; }
  .game-actions .ink-btn { flex: 1 1 auto; }
}
