/* Card Velvet Club: bright cream base, coral, sunflower, turquoise and magenta accents. Self-hosted OFL fonts. */
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-400-normal.woff2?v=20261026-cvc") 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-cvc") 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-cvc") 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-cvc") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-800-normal.woff2?v=20261026-cvc") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif-display-latin-400-normal.woff2?v=20261026-cvc") 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-cvc") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --cream: #fff8ec;
  --paper: #ffffff;
  --blush: #fff0ea;
  --ink: #2b1838;
  --ink-2: #57425f;
  --ink-3: #6e5a76;
  --line: #ecdcd3;
  --line-strong: #d9c2b8;
  --coral: #ff6f61;
  --coral-deep: #c73a2c;
  --sun: #ffc93c;
  --sun-soft: #fff1c2;
  --teal: #14b8b8;
  --teal-deep: #0a7578;
  --teal-soft: #d8f6f3;
  --magenta: #ff3d9a;
  --magenta-deep: #b0124f;
  --magenta-soft: #ffe1ef;
  --rainbow: linear-gradient(90deg, #ff6f61, #ffc93c 30%, #14b8b8 62%, #ff3d9a);
  --display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --body: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --wrap: 1480px;
  --shadow-1: 0 10px 30px rgba(120, 60, 60, 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.6; color: var(--ink); background: var(--cream); background-image: radial-gradient(1200px 520px at 100% -10%, rgba(255, 201, 60, 0.18), transparent 60%), radial-gradient(900px 480px at -10% 10%, rgba(255, 61, 154, 0.1), transparent 60%); background-repeat: no-repeat; }
img, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--magenta-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.12; color: var(--ink); margin: 0 0 0.5em; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; 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 6px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--magenta-deep); }
.fine { font-size: 0.88rem; color: var(--ink-2); }
html.is-leaving main { opacity: 0; transition: opacity 180ms ease; }

/* notice bar: in normal flow at the very top, never fixed over controls */
.notice-bar { position: relative; z-index: 2; background: var(--sun); color: var(--ink); border-bottom: 2px solid #f0b21a; }
.notice-list { list-style: none; margin: 0 auto; padding: 7px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 0.84rem; font-weight: 600; text-align: center; }
.notice-list li { white-space: nowrap; }
.notice-list .age { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; }
.notice-list .excluded { color: var(--magenta-deep); font-weight: 700; }

/* cookie bar: also in normal flow, above the header */
.cookie-bar { position: relative; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line-strong); }
[hidden] { display: none !important; }
.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(--paper); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--rainbow); }
.header-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 72px; }
.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.42rem; line-height: 1.05; white-space: nowrap; }
.brand-name small { font-family: var(--body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep); }
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 0.96rem; text-decoration: none; transition: background var(--t-fast) ease, color var(--t-fast) ease; }
.site-nav a:hover { background: var(--magenta-soft); color: var(--magenta-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: 7px 14px; border-radius: 999px; background: var(--sun-soft); border: 1.5px solid #f0b21a; font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.credit-pill strong { font-variant-numeric: tabular-nums; font-weight: 800; }
.credit-pill .gem { width: 14px; height: 14px; border-radius: 4px; transform: rotate(45deg); background: linear-gradient(135deg, var(--magenta), var(--coral)); }
.credit-pill.is-tick { animation: tick 520ms var(--ease-spring); }
@keyframes tick { 40% { transform: scale(1.08); } }
.btn.menu-toggle { display: none; }

/* buttons: solid colour, white text only on deep saturated fills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font-family: var(--body); font-size: 1rem; font-weight: 700; line-height: 1.1; 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(--magenta-deep); background-image: linear-gradient(180deg, #d02a6c, #a80f4b); border-color: #8f0c40; }
.btn-primary:hover { color: #fff; background-image: linear-gradient(180deg, #db3577, #b0124f); }
.btn-teal { color: #fff; background-color: var(--teal-deep); background-image: linear-gradient(180deg, #0e8b8e, #096a6d); border-color: #075b5e; }
.btn-teal:hover { color: #fff; background-image: linear-gradient(180deg, #11999c, #0a7578); }
.btn-ghost { color: var(--ink); background: var(--paper); 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[disabled] { cursor: not-allowed; transform: none; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: var(--magenta-deep); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.pause-banner { margin: 0; padding: 10px 20px; background: var(--teal-soft); color: var(--ink); text-align: center; font-weight: 600; border-bottom: 1px solid #a9e5df; }
.pause-banner[hidden] { display: none; }
.toast { position: fixed; left: 50%; top: 92px; 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 { padding: clamp(28px, 4vw, 56px) 0 clamp(24px, 3vw, 40px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.hero-copy h1 em { font-style: italic; color: var(--magenta-deep); }
.hero-copy .lede { font-size: clamp(1.08rem, 1.4vw, 1.26rem); color: var(--ink-2); max-width: 38em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero-actions .btn { min-height: 54px; padding: 0 28px; font-size: 1.06rem; }
.tag-row { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tag-row li { padding: 5px 12px; border-radius: 999px; font-size: 0.86rem; font-weight: 700; }
.tag-row li:nth-child(4n + 1) { background: var(--magenta-soft); color: var(--magenta-deep); }
.tag-row li:nth-child(4n + 2) { background: var(--teal-soft); color: var(--teal-deep); }
.tag-row li:nth-child(4n + 3) { background: var(--sun-soft); color: #7a4f00; }
.tag-row li:nth-child(4n + 4) { background: var(--blush); color: var(--coral-deep); }
.hero-art { position: relative; border-radius: var(--r-lg); padding: 10px; background: var(--rainbow); }
.hero-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; }
.hero-badge { position: absolute; left: 26px; bottom: 26px; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: var(--paper); font-weight: 700; box-shadow: var(--shadow-1); }
.hero-badge img { width: 44px; height: 44px; }

.section { padding: clamp(30px, 4vw, 60px) 0; }
.section-head { display: grid; gap: 4px; max-width: 60em; margin-bottom: 22px; }
.section-head p { color: var(--ink-2); margin: 0; }
.lobby-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.game-card { position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); background: var(--paper); border: 1.5px solid var(--line); overflow: hidden; color: var(--ink); text-decoration: none; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 260ms var(--ease-out), border-color var(--t-fast) ease; }
.game-card:hover { color: var(--ink); border-color: var(--magenta); }
.game-card img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; }
.game-card .body { display: grid; align-content: start; gap: 6px; padding: 16px 18px 18px; }
.game-card h3 { margin: 0; }
.game-card p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }
.game-card .type { justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: var(--ink); color: #fff; }
.game-card .go { justify-self: start; margin-top: 6px; font-weight: 800; color: var(--magenta-deep); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.feature { padding: 22px; border-radius: var(--r-md); background: var(--paper); border: 1.5px solid var(--line); border-top: 6px solid var(--coral); }
.feature:nth-child(2) { border-top-color: var(--sun); }
.feature:nth-child(3) { border-top-color: var(--teal); }
.feature:nth-child(4) { border-top-color: var(--magenta); }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-2); }
.band { border-radius: var(--r-lg); padding: clamp(22px, 3vw, 40px); background: var(--teal-soft); border: 1.5px solid #a9e5df; }
.band.sun { background: var(--sun-soft); border-color: #f4d77c; }

/* inner pages */
.page-head { padding: clamp(26px, 4vw, 48px) 0 10px; }
.page-head p { color: var(--ink-2); max-width: 52em; }
.updated { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line-strong); font-size: 0.88rem; font-weight: 600; }
.doc-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 50px; }
.toc { position: sticky; top: 96px; padding: 18px; border-radius: var(--r-md); background: var(--paper); border: 1.5px solid var(--line); font-size: 0.92rem; }
.toc h2 { font-family: var(--body); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-deep); }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--magenta-deep); text-decoration: underline; }
.doc { min-width: 0; padding: clamp(20px, 3vw, 40px); border-radius: var(--r-lg); background: var(--paper); border: 1.5px solid var(--line); max-width: 920px; }
.doc h2 { margin-top: 1.4em; font-size: clamp(1.35rem, 2vw, 1.75rem); scroll-margin-top: 96px; }
.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(--magenta-soft); color: var(--magenta-deep); font-size: 0.92em; overflow-wrap: anywhere; }
.summary { padding: 18px 22px; border-radius: var(--r-md); background: var(--sun-soft); border: 1.5px solid #f4d77c; margin-bottom: 10px; }
.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(--teal-soft); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border-radius: var(--r-md); background: var(--paper); border: 1.5px solid var(--line); padding: 0 20px; }
.faq-list summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 1.06rem; }
.faq-list details[open] summary { color: var(--magenta-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: 16px; margin: 10px 0 24px; }
.contact-card { padding: 20px; border-radius: var(--r-md); background: var(--blush); border: 1.5px solid #f6cfc3; }
.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; }

/* footer */
.site-footer { margin-top: 40px; background: var(--paper); border-top: 1px solid var(--line); position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--rainbow); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 28px; padding: 40px 0 24px; }
.footer-grid h2 { font-family: var(--body); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal-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(--magenta-deep); text-decoration: underline; }
.foot-notice { padding: 20px; border-radius: var(--r-md); background: var(--sun-soft); border: 1.5px solid #f4d77c; }
.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 11px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line-strong); font-size: 0.84rem; font-weight: 700; }
.phrase-list .hot { background: var(--ink); border-color: var(--ink); color: #fff; }
.phrase-list .rose { background: var(--magenta-soft); border-color: #f5a9cb; color: var(--magenta-deep); }
.foot-help { margin: 20px 0 0; padding: 20px; border-radius: var(--r-md); background: var(--teal-soft); border: 1.5px solid #a9e5df; }
.foot-help h2 { font-size: 1.3rem; }
.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(--paper); border: 1px solid #bfe9e4; 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: 700; color: var(--teal-deep); overflow-wrap: anywhere; }
.copyright { margin: 0; padding: 20px 0 30px; font-size: 0.86rem; color: var(--ink-2); }

/* age gate: fully opaque, two big buttons */
.age-gate { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; overflow-y: auto; background-color: var(--cream); background-image: radial-gradient(800px 400px at 50% 0%, rgba(255, 201, 60, 0.35), transparent 70%), radial-gradient(700px 400px at 50% 100%, rgba(255, 61, 154, 0.18), transparent 70%); }
.age-gate[hidden] { display: none; }
html.age-ok .age-gate { display: none; }
html.age-pending body { overflow: hidden; }
.age-card { width: min(100%, 560px); padding: clamp(22px, 4vw, 38px); border-radius: var(--r-lg); background: var(--paper); border: 2px solid var(--line-strong); text-align: center; box-shadow: var(--shadow-1); }
.age-card img { width: 96px; height: 96px; margin: 0 auto 10px; }
.age-card h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.age-card .phrase-list { justify-content: center; margin: 14px 0 18px; }
.age-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.age-btn { min-height: 62px; font-size: 1.15rem; }
.age-card .leave { display: none; }
.age-gate.is-leaving .ask { display: none; }
.age-gate.is-leaving .leave { display: block; }
.leave ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.leave a { font-weight: 700; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1280px) {
  .header-inner { grid-template-columns: auto minmax(0, 1fr) auto; }
  .site-nav a { padding: 8px 9px; font-size: 0.92rem; }
}
@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 20px 16px; background: var(--paper); 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; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; }
  .cookie-inner { grid-template-columns: minmax(0, 1fr); }
}
@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.16rem; }
  .brand-name small { font-size: 0.64rem; }
  .header-inner { min-height: 62px; gap: 10px; }
  .credit-pill { padding: 6px 10px; font-size: 0.84rem; }
  .credit-pill > span:not(.gem) { 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 10px; font-size: 0.78rem; }
  .hero-badge { left: 18px; bottom: 18px; font-size: 0.9rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 380px) {
  .brand-name small { display: none; }
  .age-actions { grid-template-columns: minmax(0, 1fr); }
  .menu-toggle { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
  .game-card { transform: none; }
}
