/* Card Cloud Club: a sunlit cloud salon. Sky wash, cloud white, soft gold and one sharp electric periwinkle. Self-hosted OFL fonts. */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-normal.woff2?v=20261026-ccc") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-600-normal.woff2?v=20261026-ccc") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2?v=20261026-ccc") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-400-normal.woff2?v=20261026-ccc") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-500-normal.woff2?v=20261026-ccc") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-600-normal.woff2?v=20261026-ccc") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-700-normal.woff2?v=20261026-ccc") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --sky: #eaf3fd;
  --sky-2: #d9e8fa;
  --sky-3: #c3d9f5;
  --cloud: #ffffff;
  --mist: #f6f9fe;
  --ink: #1d2a5c;
  --ink-2: #44507a;
  --line: #d8e4f4;
  --line-strong: #b4c7e4;
  --gold: #d6aa4a;
  --gold-soft: #f8edcf;
  --gold-deep: #7d5a0e;
  --peri: #4c4cf5;
  --peri-deep: #3333c2;
  --peri-soft: #e7e8ff;
  --sky-btn: #1f5fc4;
  --halo: linear-gradient(90deg, #f6e2a4, #d6aa4a 40%, #4c4cf5 75%, #9fc3f2);
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --body: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-lg: 30px;
  --r-md: 20px;
  --r-sm: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --wrap: 1440px;
  --lift: 0 18px 50px rgba(40, 70, 140, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; min-width: 320px; font-family: var(--body); font-size: 1.0625rem; line-height: 1.62; color: var(--ink); background-color: var(--sky); background-image: linear-gradient(180deg, #f4f8fe 0%, var(--sky) 40%, #e3eefc 100%); }
img, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--peri-deep); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; color: var(--ink); margin: 0 0 0.45em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.8rem); }
p { margin: 0 0 1em; }
code { font-size: 0.92em; }
:focus-visible { outline: 3px solid var(--peri); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 400; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.kicker { margin: 0 0 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--peri-deep); }
.fine { font-size: 0.88rem; color: var(--ink-2); }
html.is-leaving main { opacity: 0; transition: opacity 180ms ease; }
[hidden] { display: none !important; }

/* notice bar: normal flow at the very top, never fixed over the game */
.notice-bar { position: relative; z-index: 2; background: var(--ink); color: #fff; }
.notice-list { list-style: none; margin: 0 auto; padding: 8px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 0.84rem; font-weight: 500; letter-spacing: 0.01em; text-align: center; }
.notice-list li { white-space: nowrap; }
.notice-list .age { display: inline-block; padding: 0 9px; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 700; }
.notice-list .excluded { color: #f6e2a4; font-weight: 600; }

.cookie-bar { position: relative; z-index: 2; background: var(--cloud); border-bottom: 1px solid var(--line-strong); }
.cookie-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center; padding: 12px 0; }
.cookie-inner p { margin: 0; font-size: 0.92rem; color: var(--ink-2); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--cloud); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--halo); }
.header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: 44px; flex: 0 0 auto; }
.brand-name { display: grid; font-family: var(--display); font-weight: 600; font-size: 1.62rem; line-height: 1; white-space: nowrap; }
.brand-name small { margin-top: 3px; font-family: var(--body); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.site-nav a { padding: 9px 13px; border-radius: 999px; color: var(--ink); font-weight: 500; font-size: 0.98rem; text-decoration: none; transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.site-nav a:hover { background: var(--peri-soft); color: var(--peri-deep); }
.site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.header-tools { display: flex; align-items: center; gap: 8px; }
.credit-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 15px; border-radius: 999px; background: var(--gold-soft); border: 1.5px solid #e6cd8a; font-weight: 500; font-size: 0.92rem; white-space: nowrap; }
.credit-pill strong { font-variant-numeric: tabular-nums; font-weight: 700; }
.credit-pill .spark { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, var(--peri) 55%, var(--peri-deep)); }
.credit-pill.is-tick { animation: tick 520ms var(--ease-spring); }
@keyframes tick { 40% { transform: scale(1.08); } }
.btn.menu-toggle { display: none; }

/* buttons: solid fills, never translucent */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid transparent; font-family: var(--body); font-size: 1rem; font-weight: 600; line-height: 1.1; text-align: center; text-decoration: none; cursor: pointer; touch-action: manipulation; transition: transform var(--t-fast) ease, background-color var(--t-fast) ease, border-color var(--t-fast) ease; }
.btn:active { transform: scale(0.97); }
.btn-primary { color: #fff; background-color: var(--peri-deep); background-image: linear-gradient(180deg, #5656f7, #3434c6); border-color: #2a2aa8; }
.btn-primary:hover { color: #fff; background-image: linear-gradient(180deg, #6262ff, #3a3ad0); }
.btn-sky { color: #fff; background-color: var(--sky-btn); background-image: linear-gradient(180deg, #2b70d8, #1b55b2); border-color: #164a9c; }
.btn-sky:hover { color: #fff; background-image: linear-gradient(180deg, #357ae2, #1f5fc4); }
.btn-ghost { color: var(--ink); background: var(--cloud); border-color: var(--ink); }
.btn-ghost:hover { color: var(--ink); background: var(--gold-soft); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.92rem; }
.btn-lg { min-height: 58px; padding: 0 32px; font-size: 1.08rem; }
.btn[disabled] { cursor: not-allowed; transform: none; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--peri-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.pause-banner { margin: 0; padding: 10px 20px; background: var(--peri-soft); color: var(--ink); text-align: center; font-weight: 600; border-bottom: 1px solid #c6c8ff; }
.toast { position: fixed; left: 50%; top: 96px; z-index: 120; max-width: min(92vw, 520px); margin: 0; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 500; text-align: center; opacity: 0; transform: translate(-50%, -10px); pointer-events: none; transition: opacity var(--t-med) ease, transform var(--t-med) var(--ease-out); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
main { display: block; outline: none; }

/* home hero: full-bleed sky video, copy on the open sky to the left */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(560px, 76vh, 820px); display: grid; align-items: center; background: var(--sky-2); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(246, 250, 255, 0.94) 0%, rgba(246, 250, 255, 0.82) 30%, rgba(246, 250, 255, 0.2) 58%, rgba(246, 250, 255, 0) 75%), linear-gradient(0deg, rgba(234, 243, 253, 1) 0%, rgba(234, 243, 253, 0) 22%); }
.hero-inner { padding: clamp(48px, 8vw, 110px) 0; }
.hero-copy { max-width: 640px; }
.hero-copy h1 { font-size: clamp(3rem, 6.6vw, 6rem); line-height: 0.98; margin-bottom: 0.3em; }
.hero-copy h1 em { font-style: italic; font-weight: 500; color: var(--peri-deep); }
.hero-copy .lede { font-size: clamp(1.08rem, 1.4vw, 1.28rem); color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 20px; }
.tag-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tag-row li { padding: 6px 13px; border-radius: 999px; font-size: 0.86rem; font-weight: 600; background: var(--cloud); border: 1.5px solid var(--line-strong); color: var(--ink); }
.tag-row li:first-child { background: var(--gold-soft); border-color: #e6cd8a; color: var(--gold-deep); }

/* drifting cards: transform only, removed for reduced motion */
.drift { position: absolute; width: clamp(38px, 3.6vw, 58px); aspect-ratio: 3 / 4; border-radius: 6px; border: 2px solid #fff; background: var(--peri) url("../assets/img/cardback.webp?v=20261026-ccc") center / cover no-repeat; box-shadow: 0 10px 24px rgba(40, 70, 140, 0.18); opacity: 0.92; will-change: transform; animation: drift 18s ease-in-out infinite alternate; }
.drift.d1 { left: 48%; top: 14%; animation-duration: 17s; }
.drift.d2 { left: 70%; top: 8%; animation-duration: 22s; animation-delay: -6s; }
.drift.d3 { left: 88%; top: 58%; animation-duration: 19s; animation-delay: -3s; }
.drift.d4 { left: 56%; top: 70%; animation-duration: 24s; animation-delay: -11s; }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) rotate(-12deg); } 50% { transform: translate3d(18px, -26px, 0) rotate(6deg); } 100% { transform: translate3d(-14px, 12px, 0) rotate(-4deg); } }

.section { padding: clamp(40px, 6vw, 88px) 0; }
.section-head { display: grid; gap: 4px; max-width: 54em; margin-bottom: 30px; }
.section-head p { color: var(--ink-2); margin: 0; font-size: 1.08rem; }

/* lobby */
.lobby-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.game-card { position: relative; grid-column: span 2; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); background: var(--cloud); border: 1.5px solid var(--line); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--lift); transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 300ms var(--ease-out), border-color var(--t-fast) ease; }
.game-card:hover { color: var(--ink); border-color: var(--peri); }
.game-card img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.game-card.is-lead { grid-column: span 4; }
.game-card:nth-child(2) { grid-column: span 2; }
.game-card .body { display: grid; align-content: start; gap: 6px; padding: 20px 22px 24px; }
.game-card h3 { margin: 0; }
.game-card p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.game-card .type { justify-self: start; padding: 4px 11px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: var(--peri-soft); color: var(--peri-deep); }
.game-card .go { justify-self: start; margin-top: 8px; font-weight: 700; color: var(--peri-deep); }
.game-card .go span { display: inline-block; transition: transform var(--t-med) var(--ease-out); }
.game-card:hover .go span { transform: translateX(5px); }
.lobby-grid > .game-card:only-child, .page .lobby-grid .game-card { grid-column: span 2; }

.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 22px; }
.feature { padding: 26px 24px; border-radius: var(--r-md); background: var(--cloud); border: 1.5px solid var(--line); }
.feature .num { display: block; margin-bottom: 10px; font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--gold); }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-2); }
.band { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center; border-radius: var(--r-lg); padding: clamp(26px, 4vw, 52px); background: var(--cloud); border: 1.5px solid var(--line); background-image: linear-gradient(120deg, #ffffff 40%, #eef0ff); }
.band p:last-child { margin-bottom: 0; }
.band.gold { grid-template-columns: minmax(0, 1fr); background-image: none; background-color: var(--gold-soft); border-color: #ead49a; margin-bottom: 24px; }

/* inner pages */
.page-head { padding: clamp(32px, 5vw, 64px) 0 14px; }
.page-head p { color: var(--ink-2); max-width: 52em; }
.updated { display: inline-block; padding: 4px 13px; border-radius: 999px; background: var(--cloud); border: 1.5px solid var(--line-strong); font-size: 0.88rem; font-weight: 600; }
.doc-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: start; padding-bottom: 56px; }
.toc { position: sticky; top: 100px; padding: 20px; border-radius: var(--r-md); background: var(--cloud); border: 1.5px solid var(--line); font-size: 0.93rem; }
.toc h2 { font-family: var(--body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--peri-deep); text-decoration: underline; }
.doc { min-width: 0; padding: clamp(22px, 3.4vw, 46px); border-radius: var(--r-lg); background: var(--cloud); border: 1.5px solid var(--line); max-width: 940px; }
.doc h2 { margin-top: 1.3em; font-size: clamp(1.6rem, 2.4vw, 2.1rem); scroll-margin-top: 100px; }
.doc h2:first-child { margin-top: 0; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: 0.4em; }
.doc code { padding: 1px 6px; border-radius: 6px; background: var(--peri-soft); color: var(--peri-deep); overflow-wrap: anywhere; }
.summary { padding: 20px 24px; border-radius: var(--r-md); background: var(--gold-soft); border: 1.5px solid #ead49a; margin-bottom: 12px; }
.summary h2 { margin-top: 0; }
.key-table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 0.95rem; }
.key-table th, .key-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.key-table th { background: var(--sky); font-weight: 600; }
.table-scroll { overflow-x: auto; }
.faq-list { display: grid; gap: 12px; max-width: 980px; }
.faq-list details { border-radius: var(--r-md); background: var(--cloud); border: 1.5px solid var(--line); padding: 0 22px; }
.faq-list summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 1.08rem; }
.faq-list details[open] summary { color: var(--peri-deep); }
.faq-list details p { color: var(--ink-2); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; margin: 10px 0 24px; }
.contact-card { padding: 22px; border-radius: var(--r-md); background: var(--cloud); border: 1.5px solid var(--line); border-top: 4px solid var(--peri); }
.contact-card h3 { margin-bottom: 4px; }
.contact-card a { font-weight: 600; overflow-wrap: anywhere; }
.pause-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.help-panel { margin-top: 24px; }

/* footer */
.site-footer { margin-top: 48px; background: var(--cloud); border-top: 1px solid var(--line); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--halo); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 30px; padding: 44px 0 26px; }
.footer-grid h2 { font-family: var(--body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px; }
.footer-grid p { color: var(--ink-2); font-size: 0.94rem; margin-top: 12px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.96rem; }
.foot-links a { color: var(--ink); text-decoration: none; }
.foot-links a:hover { color: var(--peri-deep); text-decoration: underline; }
.foot-notice { padding: 22px; border-radius: var(--r-md); background: var(--sky); border: 1.5px solid var(--line-strong); }
.foot-notice p { margin: 8px 0 0; font-size: 0.94rem; }
.phrase-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.phrase-list li { padding: 4px 12px; border-radius: 999px; background: var(--cloud); border: 1.5px solid var(--line-strong); font-size: 0.84rem; font-weight: 600; }
.phrase-list .hot { background: var(--ink); border-color: var(--ink); color: #fff; }
.phrase-list .accent { background: var(--peri-soft); border-color: #babcff; color: var(--peri-deep); }
.foot-help { margin: 20px 0 0; padding: 22px; border-radius: var(--r-md); background: var(--gold-soft); border: 1.5px solid #ead49a; }
.foot-help h2 { font-size: 1.6rem; }
.lines-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.lines-grid li { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--cloud); border: 1px solid var(--line); min-width: 0; }
.lines-grid .wide { grid-column: span 2; }
.lines-grid .who { font-size: 0.82rem; color: var(--ink-2); }
.lines-grid a { font-weight: 600; color: var(--peri-deep); overflow-wrap: anywhere; }
.copyright { margin: 0; padding: 22px 0 32px; font-size: 0.86rem; color: var(--ink-2); }

/* age gate: a short opaque card, two big buttons, one line */
.age-gate { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; overflow-y: auto; background-color: var(--sky); background-image: url("../assets/img/hero-800.webp?v=20261026-ccc"); background-size: cover; background-position: 62% 50%; }
.age-gate::before { content: ""; position: fixed; inset: 0; background: rgba(234, 243, 253, 0.72); }
html.age-ok .age-gate, html.age-open .age-gate { display: none; }
html.age-pending body { overflow: hidden; }
.age-card { position: relative; width: min(100%, 470px); padding: clamp(26px, 5vw, 40px) clamp(20px, 4vw, 36px); border-radius: var(--r-lg); background: var(--cloud); border: 1.5px solid var(--line-strong); text-align: center; box-shadow: var(--lift); }
.age-card img { width: 88px; height: 88px; margin: 0 auto 10px; }
.age-brand { margin: 0 0 4px; font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--gold-deep); }
.age-card h2 { font-size: clamp(2.1rem, 6vw, 2.8rem); margin-bottom: 22px; }
.age-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.age-btn { min-height: 62px; font-size: 1.15rem; width: 100%; }
.age-line { margin: 18px 0 0; font-size: 0.95rem; color: var(--ink-2); }
.age-card .leave { display: none; }
.age-gate.is-leaving .ask { display: none; }
.age-gate.is-leaving .leave { display: block; }
.leave .age-line { margin: 0; font-size: 1.12rem; color: var(--ink); }
.leave a { font-weight: 700; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1280px) {
  .site-nav a { padding: 8px 9px; font-size: 0.94rem; }
  .brand-name { font-size: 1.45rem; }
}
@media (max-width: 1120px) {
  .btn.menu-toggle { display: inline-flex; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 60; padding: 12px 24px 16px; background: var(--cloud); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 1rem; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .lobby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-card, .game-card:nth-child(2), .page .lobby-grid .game-card { grid-column: span 1; }
  .game-card.is-lead { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .cookie-inner { grid-template-columns: minmax(0, 1fr); }
  .band { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; display: block; background: var(--sky); }
  .hero-media { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; }
  .hero-media::after { background: linear-gradient(0deg, rgba(234, 243, 253, 1) 0%, rgba(234, 243, 253, 0) 30%); }
  .hero-inner { padding: 4px 0 36px; }
}
@media (max-width: 700px) {
  .lobby-grid { grid-template-columns: minmax(0, 1fr); }
  .game-card.is-lead { grid-column: auto; }
}
@media (max-width: 600px) {
  .wrap { width: min(100% - 28px, var(--wrap)); }
  body { font-size: 1rem; }
  .brand img { width: 38px; height: 38px; }
  .brand-name { font-size: 1.3rem; }
  .brand-name small { font-size: 0.62rem; }
  .header-inner { min-height: 64px; gap: 10px; }
  .credit-pill { padding: 6px 10px; font-size: 0.84rem; }
  .credit-pill > span:not(.spark) { display: none; }
  .header-tools [data-refill] { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .lines-grid .wide { grid-column: auto; }
  .notice-list { gap: 2px 12px; font-size: 0.78rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .drift.d1, .drift.d4 { display: none; }
}
@media (max-width: 380px) {
  .brand-name small { display: none; }
  .brand-name { font-size: 1.18rem; }
  .menu-toggle { padding: 0 12px; }
  .age-btn { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .drift { display: none; }
  .reveal { opacity: 1; transform: none; }
  .game-card { transform: none; }
}
