/* Card Coast Party: a bright coastal card party. Linen and sand, deep-sea ink, coral lanterns, sea-glass green, a little sun. Self-hosted OFL fonts. */
@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif-display-latin-400-normal.woff2?v=20261026-ccp") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif-display-latin-400-italic.woff2?v=20261026-ccp") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-400-normal.woff2?v=20261026-ccp") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-500-normal.woff2?v=20261026-ccp") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-600-normal.woff2?v=20261026-ccp") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-700-normal.woff2?v=20261026-ccp") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-800-normal.woff2?v=20261026-ccp") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --linen: #fbf7f0;
  --sand: #f2e8d8;
  --sand-2: #e7d9c2;
  --shell: #ffffff;
  --ink: #12343b;
  --ink-2: #4a6266;
  --line: #e6dccb;
  --line-strong: #cdbfa6;
  --coral: #e4553f;
  --coral-deep: #c23f2c;
  --coral-soft: #fde4dc;
  --sea: #2f9c86;
  --sea-deep: #1d7565;
  --sea-soft: #dcf1ea;
  --sun: #efb941;
  --sun-soft: #fdf0d0;
  --sun-deep: #8a5f0a;
  --stripe: repeating-linear-gradient(90deg, var(--coral) 0 18px, var(--linen) 18px 36px);
  --display: "DM Serif Display", "Iowan Old Style", Georgia, serif;
  --body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-lg: 28px;
  --r-md: 18px;
  --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: 1480px;
  --lift: 0 22px 48px rgba(18, 52, 59, 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.65; color: var(--ink); background-color: var(--linen); background-image: linear-gradient(180deg, var(--linen) 0%, var(--linen) 55%, #f1f7f3 100%); }
img, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--sea-deep); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--coral-deep); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; color: var(--ink); margin: 0 0 0.45em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.8rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 1.9vw, 1.75rem); }
p { margin: 0 0 1em; }
code { font-size: 0.92em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 56px, 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: 700; }
.skip-link:focus { top: 12px; color: #fff; }
.kicker { margin: 0 0 10px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral-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 20px; font-size: 0.84rem; font-weight: 600; letter-spacing: 0.01em; text-align: center; }
.notice-list li { white-space: nowrap; }
.notice-list .age { display: inline-block; padding: 0 10px; border-radius: 6px; background: var(--coral); color: #fff; font-weight: 800; }
.notice-list .excluded { color: #ffd38a; font-weight: 700; }

.cookie-bar { position: relative; z-index: 2; background: var(--shell); 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 with a cabana-stripe edge */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--linen); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: var(--stripe); }
.header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand img { width: 46px; height: 46px; flex: 0 0 auto; }
.brand-name { display: grid; font-family: var(--display); font-size: 1.7rem; line-height: 1; white-space: nowrap; }
.brand-name small { margin-top: 4px; font-family: var(--body); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sea-deep); }
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.site-nav a { position: relative; padding: 10px 13px; border-radius: 10px; color: var(--ink); font-weight: 600; 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(--sea-soft); color: var(--sea-deep); }
.site-nav a[aria-current="page"] { background: var(--sea-deep); 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: 12px; background: var(--sun-soft); border: 1.5px solid #ecd08c; font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.credit-pill strong { font-variant-numeric: tabular-nums; font-weight: 800; }
.credit-pill .spark { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3c9, var(--sun) 55%, #c98a12); }
.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: 14px; border: 2px solid transparent; font-family: var(--body); font-size: 1rem; font-weight: 700; 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(--coral); background-image: linear-gradient(180deg, #ee6650, #d2472f); border-color: #b33a27; }
.btn-primary:hover { color: #fff; background-image: linear-gradient(180deg, #f37360, #db4f37); }
.btn-sea { color: #fff; background-color: var(--sea-deep); background-image: linear-gradient(180deg, #2a907b, #1b6c5d); border-color: #155a4d; }
.btn-sea:hover { color: #fff; background-image: linear-gradient(180deg, #33a08a, #1f7565); }
.btn-ghost { color: var(--ink); background: var(--shell); border-color: var(--ink); }
.btn-ghost:hover { color: var(--ink); background: var(--sun-soft); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 0.92rem; }
.btn-lg { min-height: 60px; padding: 0 34px; font-size: 1.1rem; }
.btn[disabled] { cursor: not-allowed; transform: none; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.pause-banner { margin: 0; padding: 10px 20px; background: var(--sun-soft); color: var(--ink); text-align: center; font-weight: 700; border-bottom: 1px solid #ecd08c; }
.toast { position: fixed; left: 50%; top: 100px; z-index: 120; max-width: min(92vw, 520px); margin: 0; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; 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 seaside video, copy on the open sky to the left, a solid strip at the foot */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(600px, 82vh, 880px); display: grid; grid-template-rows: 1fr auto; background: var(--sand); }
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(251, 247, 240, 0.95) 0%, rgba(251, 247, 240, 0.86) 30%, rgba(251, 247, 240, 0.25) 56%, rgba(251, 247, 240, 0) 72%); }
.hero-inner { align-self: center; padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 5vw, 70px); }
.hero-copy { max-width: 700px; }
.hero-copy h1 { font-size: clamp(3.1rem, 7vw, 6.6rem); line-height: 0.96; margin-bottom: 0.32em; }
.hero-copy h1 em { display: block; font-style: italic; color: var(--coral-deep); }
.hero-copy .lede { font-size: clamp(1.1rem, 1.4vw, 1.3rem); color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero-strip { padding-bottom: 28px; }
.tag-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tag-row li { padding: 7px 14px; border-radius: 10px; font-size: 0.88rem; font-weight: 700; background: var(--shell); border: 1.5px solid var(--line-strong); color: var(--ink); }
.tag-row li:first-child { background: var(--ink); border-color: var(--ink); color: #fff; }

/* lanterns bob in the breeze: transform only, removed for reduced motion */
.lantern { position: absolute; top: -10px; width: clamp(34px, 3vw, 52px); aspect-ratio: 1 / 1.1; border-radius: 48% 48% 44% 44%; background: radial-gradient(circle at 38% 34%, #ffd6c8, #f07a62 45%, #c94430); opacity: 0.95; transform-origin: 50% -60px; will-change: transform; animation: bob 6s ease-in-out infinite alternate; }
.lantern::before { content: ""; position: absolute; left: 50%; top: -70px; width: 2px; height: 70px; background: rgba(18, 52, 59, 0.35); }
.lantern.l1 { left: 44%; top: 4%; animation-duration: 5.5s; }
.lantern.l2 { left: 50%; top: 11%; width: clamp(26px, 2.2vw, 40px); animation-duration: 7s; animation-delay: -2s; }
.lantern.l3 { left: 39%; top: 14%; width: clamp(22px, 1.8vw, 34px); animation-duration: 6.4s; animation-delay: -4s; }
@keyframes bob { 0% { transform: rotate(-5deg) translate3d(0, 0, 0); } 100% { transform: rotate(5deg) translate3d(0, 6px, 0); } }

.section { padding: clamp(44px, 6vw, 96px) 0; }
.section-head { display: grid; gap: 4px; max-width: 56em; margin-bottom: 32px; }
.section-head p { color: var(--ink-2); margin: 0; font-size: 1.1rem; }

/* lobby */
.lobby-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px; }
.game-card { position: relative; grid-column: span 2; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); background: var(--shell); 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::before { content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 1; height: 6px; background: var(--stripe); }
.game-card:hover { color: var(--ink); border-color: var(--coral); }
.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: 22px 24px 26px; }
.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: 8px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; background: var(--sea-soft); color: var(--sea-deep); }
.game-card .go { justify-self: start; margin-top: 8px; font-weight: 800; color: var(--coral-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: 28px 26px; border-radius: var(--r-md); background: var(--shell); border: 1.5px solid var(--line); border-bottom: 5px solid var(--sea); }
.feature:nth-child(2n) { border-bottom-color: var(--coral); }
.feature .num { display: block; margin-bottom: 10px; font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--sun); }
.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(28px, 4vw, 56px); background-color: var(--sea-soft); border: 1.5px solid #b7dfd2; }
.band p:last-child { margin-bottom: 0; }
.band.gold { grid-template-columns: minmax(0, 1fr); background-color: var(--sun-soft); border-color: #ecd08c; margin-bottom: 24px; }

/* inner pages */
.page-head { padding: clamp(36px, 5vw, 68px) 0 16px; }
.page-head p { color: var(--ink-2); max-width: 52em; }
.updated { display: inline-block; padding: 4px 13px; border-radius: 8px; background: var(--shell); border: 1.5px solid var(--line-strong); font-size: 0.88rem; font-weight: 700; }
.doc-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 36px; align-items: start; padding-bottom: 56px; }
.toc { position: sticky; top: 104px; padding: 20px; border-radius: var(--r-md); background: var(--shell); border: 1.5px solid var(--line); font-size: 0.93rem; }
.toc h2 { font-family: var(--body); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sea-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(--coral-deep); text-decoration: underline; }
.doc { min-width: 0; padding: clamp(22px, 3.4vw, 48px); border-radius: var(--r-lg); background: var(--shell); border: 1.5px solid var(--line); max-width: 960px; }
.doc h2 { margin-top: 1.3em; font-size: clamp(1.6rem, 2.4vw, 2.1rem); scroll-margin-top: 104px; }
.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(--sea-soft); color: var(--sea-deep); overflow-wrap: anywhere; }
.summary { padding: 20px 24px; border-radius: var(--r-md); background: var(--sun-soft); border: 1.5px solid #ecd08c; 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(--sand); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.faq-list { display: grid; gap: 12px; max-width: 1000px; }
.faq-list details { border-radius: var(--r-md); background: var(--shell); border: 1.5px solid var(--line); padding: 0 22px; }
.faq-list summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.08rem; }
.faq-list details[open] summary { color: var(--coral-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(--shell); border: 1.5px solid var(--line); border-top: 6px solid var(--coral); }
.contact-card:nth-child(2) { border-top-color: var(--sea); }
.contact-card:nth-child(3) { border-top-color: var(--sun); }
.contact-card h3 { margin-bottom: 4px; }
.contact-card a { font-weight: 700; overflow-wrap: anywhere; }
.pause-tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.help-panel { margin-top: 24px; }
.help-panel .lines-grid li { background: var(--linen); }

/* footer: deep sea */
.site-footer { position: relative; margin-top: 56px; background: var(--ink); color: #e9f1ef; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--stripe); }
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: #ffd38a; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name small { color: #8fd9c4; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 30px; padding: 50px 0 28px; }
.footer-grid h2 { font-family: var(--body); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #8fd9c4; margin-bottom: 10px; }
.footer-grid p { color: #c9d9d6; 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, .foot-links .link-btn { color: #f4f8f7; text-decoration: none; }
.foot-links a:hover, .foot-links .link-btn:hover { color: #ffd38a; text-decoration: underline; }
.foot-notice { padding: 22px; border-radius: var(--r-md); background: #1c4750; border: 1.5px solid #2e5d66; }
.foot-notice p { margin: 8px 0 0; font-size: 0.94rem; color: #e9f1ef; }
.phrase-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.phrase-list li { padding: 4px 12px; border-radius: 8px; background: var(--linen); color: var(--ink); font-size: 0.84rem; font-weight: 700; }
.phrase-list .hot { background: var(--coral); color: #fff; }
.phrase-list .accent { background: #ffd38a; color: var(--ink); }
.foot-help { margin: 20px 0 0; padding: 22px; border-radius: var(--r-md); background: var(--linen); color: var(--ink); }
.foot-help h2 { font-size: 1.6rem; color: var(--ink); }
.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(--shell); 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, .site-footer .lines-grid a { font-weight: 700; color: var(--sea-deep); overflow-wrap: anywhere; }
.site-footer .lines-grid a:hover { color: var(--coral-deep); }
.copyright { margin: 0; padding: 22px 0 34px; font-size: 0.86rem; color: #b9cdca; }

/* 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(--sand); background-image: url("../assets/img/hero-800.webp?v=20261026-ccp"); background-size: cover; background-position: 60% 50%; }
.age-gate::before { content: ""; position: fixed; inset: 0; background: rgba(251, 247, 240, 0.7); }
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%, 480px); padding: clamp(28px, 5vw, 42px) clamp(20px, 4vw, 38px); border-radius: var(--r-lg); background: var(--shell); border: 1.5px solid var(--line-strong); text-align: center; box-shadow: var(--lift); overflow: hidden; }
.age-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--stripe); }
.age-card img { width: 88px; height: 88px; margin: 0 auto 10px; }
.age-brand { margin: 0 0 4px; font-family: var(--display); font-size: 1.55rem; color: var(--coral-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: 800; }

.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: 1320px) {
  .site-nav a { padding: 8px 9px; font-size: 0.94rem; }
  .brand-name { font-size: 1.5rem; }
}
@media (max-width: 1160px) {
  .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: 16px 28px 18px; background: var(--linen); 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(--linen); }
  .hero-media { position: relative; inset: auto; z-index: 0; aspect-ratio: 16 / 10; }
  .hero-media::after { background: linear-gradient(0deg, rgba(251, 247, 240, 1) 0%, rgba(251, 247, 240, 0) 28%); }
  .hero-inner { padding: 6px 0 24px; }
  .lantern.l1 { left: 22%; } .lantern.l2 { left: 30%; } .lantern.l3 { left: 14%; }
}
@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.32rem; }
  .brand-name small { font-size: 0.6rem; }
  .header-inner { min-height: 66px; 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%; }
  .lantern.l3 { display: none; }
}
@media (max-width: 420px) {
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: 1.1rem; }
  .header-tools { gap: 6px; }
  .credit-pill { padding: 6px 8px; }
  .btn.menu-toggle { padding: 0 12px; }
}
@media (max-width: 380px) {
  .brand-name small { display: none; }
  .brand-name { font-size: 1.02rem; }
  .btn.menu-toggle { padding: 0 10px; }
  .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; }
  .lantern { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .game-card { transform: none; }
}
