/* Golden Radiance Club: radiant gold and prism light. Fonts: Cinzel and Jost (SIL Open Font License). */

@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-600-normal.woff2?v=20261023-grc") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/cinzel-latin-700-normal.woff2?v=20261023-grc") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2?v=20261023-grc") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-italic.woff2?v=20261023-grc") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2?v=20261023-grc") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-600-normal.woff2?v=20261023-grc") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink-0: #05070f;
  --ink-1: #090c1c;
  --ink-2: #10142b;
  --ink-3: #181d3a;
  --line: rgba(255, 226, 168, 0.16);
  --line-strong: rgba(255, 226, 168, 0.34);
  --text: #f7efe1;
  --text-soft: #d6cab5;
  --text-dim: #b3a790;
  --white-gold: #fff4dc;
  --gold: #f2c76e;
  --gold-deep: #c8913a;
  --amber: #f0a04b;
  --rose-gold: #e9a48f;
  --rose-deep: #c97a6a;
  --success: #9fe3bf;
  --danger: #ff9e8c;
  --prism: linear-gradient(100deg, #ffe7a6 0%, #ffc9a8 22%, #f7b8d4 42%, #c7c9ff 60%, #b8f0e4 78%, #ffe7a6 100%);
  --gold-grad: linear-gradient(135deg, #fff6df 0%, #f6d58c 28%, #e3a94f 58%, #f7d7a0 78%, #c98d3c 100%);
  --rose-grad: linear-gradient(135deg, #ffe3d6 0%, #eeb39f 45%, #c97a6a 100%);
  --glass: rgba(16, 20, 43, 0.62);
  --glass-strong: rgba(10, 13, 30, 0.86);
  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 24px 60px rgba(0, 0, 0, 0.5);
  --glow: 0 0 0 1px rgba(255, 226, 168, 0.18), 0 18px 50px rgba(240, 160, 75, 0.16);
  --r-s: 10px;
  --r-m: 16px;
  --r-l: 26px;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: min(1320px, 100% - var(--gutter) * 2);
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --body: "Jost", "Segoe UI", system-ui, sans-serif;
  --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;
  --t-slow: 520ms;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(240, 160, 75, 0.14), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(233, 164, 143, 0.09), transparent 60%),
    linear-gradient(180deg, var(--ink-1) 0%, var(--ink-0) 100%);
  background-attachment: fixed;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--white-gold); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; letter-spacing: 0.01em; margin: 0 0 0.5em; color: var(--white-gold); }
h1 { font-size: clamp(2.1rem, 5.2vw, 4.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
strong { color: var(--white-gold); font-weight: 600; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--gold); color: var(--ink-1); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: transform var(--t-fast) var(--ease-out); }
.skip-link:focus { transform: translateY(72px); }
.gilded { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.prism-text { background: var(--prism); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font-family: var(--body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.9em; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--gold-grad); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-soft); max-width: 62ch; }

/* ---------- page transitions ---------- */
main, .site-footer { animation: page-in 560ms var(--ease-out) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
html.is-leaving main, html.is-leaving .site-footer { opacity: 0; transform: translateY(-6px); transition: opacity 200ms ease-in, transform 200ms ease-in; }

/* ---------- notice ribbon (every page) ---------- */
.notice-bar { position: relative; z-index: 60; background: linear-gradient(90deg, #1a1408, #2a1d0b 30%, #2a1712 70%, #1a1408); border-bottom: 1px solid var(--line-strong); color: var(--white-gold); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; }
.notice-list { list-style: none; margin: 0 auto; padding: 7px 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 0; }
.notice-list li { display: inline-flex; align-items: center; white-space: nowrap; }
.notice-list li + li::before { content: ""; width: 5px; height: 5px; margin: 0 12px; border-radius: 50%; background: var(--prism); box-shadow: 0 0 8px rgba(255, 215, 150, 0.8); }
.notice-list .age { background: var(--gold-grad); color: var(--ink-1); font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.notice-list .excluded { color: var(--rose-gold); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 10px 0; transition: background var(--t-med) ease; }
.site-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 7, 15, 0.92), rgba(5, 7, 15, 0.7)); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); z-index: -1; }
.header-inner { display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white-gold); flex: 0 0 auto; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line-strong), 0 0 24px rgba(242, 199, 110, 0.35); }
.brand-name { display: flex; flex-direction: column; font-family: var(--display); font-weight: 700; font-size: 1.12rem; line-height: 1.1; letter-spacing: 0.04em; }
.brand-name small { font-family: var(--body); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }
.site-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.site-nav a { position: relative; padding: 10px 11px; color: var(--text-soft); text-decoration: none; font-size: 0.92rem; font-weight: 500; border-radius: 10px; white-space: nowrap; transition: color var(--t-fast) ease; }
.site-nav a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 5px; height: 1px; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease-out); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--white-gold); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.credit-pill { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(242, 199, 110, 0.08); border: 1px solid var(--line-strong); font-size: 0.8rem; color: var(--text-soft); white-space: nowrap; }
.credit-pill strong { font-variant-numeric: tabular-nums; font-size: 0.98rem; color: var(--white-gold); }
.credit-pill .gem { width: 10px; height: 10px; transform: rotate(45deg); background: var(--prism); border-radius: 2px; box-shadow: 0 0 10px rgba(255, 220, 160, 0.8); }
[hidden] { display: none !important; }
.header-tools .menu-toggle { display: none; }

/* ---------- buttons ---------- */
.btn { --h: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-family: var(--body); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.02em; text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate; transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-med) ease, opacity var(--t-fast) ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(0.97); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--gold-grad); color: #1b1206; box-shadow: 0 8px 26px rgba(240, 160, 75, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn-primary::after { content: ""; position: absolute; inset: -2px; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.7) 48%, transparent 66%); transform: translateX(-120%); transition: transform 700ms var(--ease-out); z-index: -1; }
.btn-primary:hover { color: #1b1206; box-shadow: 0 12px 34px rgba(240, 160, 75, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: rgba(255, 244, 220, 0.04); color: var(--white-gold); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(255, 244, 220, 0.1); color: var(--white-gold); border-color: var(--gold); }
.btn-rose { background: var(--rose-grad); color: #2a120c; }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 0.86rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92svh, 980px); display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate; padding: 96px 0 150px; }
.hero-media { position: absolute; inset: 0; z-index: -2; background: var(--ink-1); }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero-media video { opacity: 0; transition: opacity 900ms ease; }
.hero-media video.is-playing { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 60% at 50% 48%, rgba(5, 7, 15, 0.6), rgba(5, 7, 15, 0.25) 60%, transparent 80%), linear-gradient(180deg, rgba(5, 7, 15, 0.55) 0%, rgba(5, 7, 15, 0.1) 30%, rgba(5, 7, 15, 0.35) 70%, var(--ink-0) 100%); }
.hero-halo { position: absolute; left: 50%; top: 44%; width: min(900px, 120vw); aspect-ratio: 1; margin: calc(min(900px, 120vw) / -2) 0 0 calc(min(900px, 120vw) / -2); z-index: -1; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 8%, rgba(255, 220, 150, 0.12) 10%, transparent 14% 30%, rgba(247, 184, 212, 0.1) 33%, transparent 37% 55%, rgba(199, 201, 255, 0.1) 58%, transparent 62% 80%, rgba(255, 231, 166, 0.12) 83%, transparent 87%); animation: halo-turn 60s linear infinite; pointer-events: none; }
@keyframes halo-turn { to { transform: rotate(360deg); } }
.hero-content { max-width: 920px; margin-inline: auto; }
.hero h1 { margin-bottom: 0.3em; text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5); }
.hero h1 .title-main { display: block; font-size: clamp(2.6rem, 7.6vw, 6.4rem); letter-spacing: 0.04em; line-height: 1.02; }
.hero h1 .title-sub { display: block; margin-top: 0.35em; font-family: var(--body); font-weight: 400; font-style: italic; font-size: clamp(1.05rem, 2.2vw, 1.6rem); letter-spacing: 0.06em; color: var(--white-gold); }
.hero .lede { margin: 0 auto 1.6em; color: #efe4cf; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 26px; }
.chip-row { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; }
.chip-row li { padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 500; background: rgba(5, 7, 15, 0.55); border: 1px solid var(--line-strong); color: var(--white-gold); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.chip-row li.hot { background: var(--gold-grad); color: #1b1206; border-color: transparent; font-weight: 700; }
.chip-row li.rose { border-color: rgba(233, 164, 143, 0.6); color: #ffd9cc; }
.hero-ribbon { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 2; }
.ribbon-grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ribbon-grid a { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: rgba(9, 12, 28, 0.66); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text); text-decoration: none; text-align: left; transition: transform var(--t-med) var(--ease-out), border-color var(--t-med) ease, background var(--t-med) ease; }
.ribbon-grid a:hover { transform: translateY(-4px); border-color: var(--gold); background: rgba(16, 20, 43, 0.85); color: var(--text); }
.ribbon-grid img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; }
.ribbon-grid b { display: block; font-family: var(--display); font-size: 0.9rem; color: var(--white-gold); line-height: 1.2; }
.ribbon-grid small { display: block; font-size: 0.74rem; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .kicker::after { content: ""; width: 26px; height: 1px; background: var(--gold-grad); }
.section-head p { color: var(--text-soft); }
.divider { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 60ms; }
.reveal.d2 { transition-delay: 120ms; }
.reveal.d3 { transition-delay: 180ms; }
.reveal.d4 { transition-delay: 240ms; }

/* ---------- lobby bento ---------- */
.lobby { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "sun sun cas" "sun sun rou" "bj bj bj"; gap: 18px; perspective: 1400px; }
.lobby .g-sun { grid-area: sun; min-height: 640px; }
.lobby .g-cas { grid-area: cas; }
.lobby .g-rou { grid-area: rou; }
.lobby .g-bj { grid-area: bj; min-height: 300px; }
.game-card { --rx: 0deg; --ry: 0deg; --gx: 50%; position: relative; min-height: 270px; border-radius: var(--r-l); overflow: hidden; isolation: isolate; background: var(--ink-2); border: 1px solid var(--line); box-shadow: var(--shadow-1); transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform 420ms var(--ease-out), box-shadow var(--t-med) ease, border-color var(--t-med) ease; }
.game-card:hover { box-shadow: var(--shadow-2), 0 0 0 1px rgba(242, 199, 110, 0.5), 0 0 60px rgba(240, 160, 75, 0.18); border-color: rgba(242, 199, 110, 0.5); }
.game-card .art { position: absolute; inset: 0; z-index: -2; }
.game-card .art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 900ms var(--ease-out); }
.game-card:hover .art img { transform: scale(1.08); }
.game-card { display: flex; flex-direction: column; justify-content: flex-end; }
.game-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 7, 15, 0) 18%, rgba(5, 7, 15, 0.7) 48%, rgba(5, 7, 15, 0.97) 82%); }
.game-card::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(420px circle at var(--gx) 0%, rgba(255, 236, 190, 0.18), transparent 60%); opacity: 0; transition: opacity var(--t-med) ease; }
.game-card:hover::after { opacity: 1; }
.game-card .body { position: relative; padding: clamp(18px, 2.4vw, 30px); padding-top: 90px; display: flex; flex-direction: column; gap: 6px; transform: translateZ(30px); text-shadow: 0 1px 12px rgba(5, 7, 15, 0.9); }
.game-card .tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; background: rgba(5, 7, 15, 0.65); border: 1px solid var(--line-strong); color: var(--gold); }
.game-card h3 { margin: 4px 0 0; font-size: clamp(1.2rem, 2vw, 1.6rem); }
.g-sun h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.game-card h3 a { color: var(--white-gold); text-decoration: none; }
.game-card h3 a::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.game-card .meta { margin: 0; font-size: 0.86rem; color: var(--gold); letter-spacing: 0.04em; }
.game-card p.desc { margin: 2px 0 8px; color: var(--text-soft); font-size: 0.96rem; max-width: 56ch; }
.game-card .cta { position: relative; z-index: 3; align-self: flex-start; }
.game-card .host { position: absolute; top: 16px; right: 16px; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(242, 199, 110, 0.75); box-shadow: 0 0 24px rgba(242, 199, 110, 0.35); transform: translateZ(40px); }
.game-card .host img { width: 100%; height: 100%; object-fit: cover; }
.g-bj .body { right: auto; width: min(560px, 100%); }

/* ---------- hosts (arches) ---------- */
.hosts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.host-card { position: relative; text-align: center; }
.host-card .arch { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 22px 22px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-1); isolation: isolate; transition: transform 500ms var(--ease-out), box-shadow var(--t-med) ease; }
.host-card .arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 6px rgba(5, 7, 15, 0.35), inset 0 0 0 7px rgba(242, 199, 110, 0.45); pointer-events: none; }
.host-card .arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.host-card:hover .arch { transform: translateY(-6px); box-shadow: var(--shadow-2), 0 0 50px rgba(240, 160, 75, 0.2); }
.host-card:hover .arch img { transform: scale(1.06); }
.host-card .role { margin: 16px 0 2px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--rose-gold); }
.host-card h3 { margin: 0 0 6px; }
.host-card p { color: var(--text-soft); font-size: 0.95rem; margin: 0 auto 8px; max-width: 34ch; }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { position: relative; padding: 30px 26px 26px; border-radius: var(--r-l); background: linear-gradient(180deg, rgba(255, 244, 220, 0.05), rgba(255, 244, 220, 0.015)); border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: counter(step, upper-roman); display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 16px; border-radius: 50%; font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: #1b1206; background: var(--gold-grad); box-shadow: 0 0 0 6px rgba(242, 199, 110, 0.1), 0 10px 30px rgba(240, 160, 75, 0.3); }
.steps p { color: var(--text-soft); margin: 0; }

/* ---------- radiance band (disclaimers + help) ---------- */
.radiance-band { position: relative; border-radius: calc(var(--r-l) + 6px); padding: clamp(26px, 4vw, 52px); background: radial-gradient(800px 400px at 0% 0%, rgba(240, 160, 75, 0.14), transparent 60%), radial-gradient(700px 400px at 100% 100%, rgba(233, 164, 143, 0.12), transparent 60%), var(--ink-2); border: 1px solid var(--line-strong); overflow: hidden; }
.radiance-band::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--prism); }
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.phrase-list { list-style: none; padding: 0; margin: 0 0 1.2em; display: flex; flex-wrap: wrap; gap: 8px; }
.phrase-list li { padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 500; border: 1px solid var(--line-strong); background: rgba(255, 244, 220, 0.04); color: var(--white-gold); }
.phrase-list li.hot { background: var(--gold-grad); color: #1b1206; border-color: transparent; font-weight: 700; }
.phrase-list li.rose { border-color: rgba(233, 164, 143, 0.6); color: #ffd9cc; }
.lines-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lines-grid li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r-m); background: rgba(5, 7, 15, 0.45); border: 1px solid var(--line); }
.lines-grid .who { font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.04em; }
.lines-grid a { font-weight: 600; font-size: 1.02rem; color: var(--white-gold); text-decoration: none; overflow-wrap: anywhere; }
.lines-grid a:hover { color: var(--gold); text-decoration: underline; }
.lines-grid li.wide { grid-column: 1 / -1; }

/* ---------- panels and generic ---------- */
.panel { padding: clamp(20px, 3vw, 32px); border-radius: var(--r-l); background: linear-gradient(180deg, rgba(255, 244, 220, 0.05), rgba(255, 244, 220, 0.015)); border: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pause-banner { margin: 0; padding: 10px var(--gutter); text-align: center; background: rgba(233, 164, 143, 0.16); border-bottom: 1px solid rgba(233, 164, 143, 0.4); color: #ffe1d6; font-weight: 500; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 220; max-width: min(520px, 92vw); margin: 0; padding: 12px 18px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); color: var(--white-gold); font-size: 0.94rem; text-align: center; transform: translate(-50%, 20px); opacity: 0; 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); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(36px, 5vw, 60px); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 80% 0%, rgba(240, 160, 75, 0.18), transparent 70%), radial-gradient(500px 260px at 10% 100%, rgba(233, 164, 143, 0.12), transparent 70%); }
.page-hero.with-art .art { position: absolute; inset: 0; z-index: -2; }
.page-hero.with-art .art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; opacity: 0.5; }
.page-hero.with-art::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink-0) 0%, rgba(5, 7, 15, 0.8) 45%, rgba(5, 7, 15, 0.3) 100%), linear-gradient(180deg, transparent 60%, var(--ink-0)); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 20ch; }
.updated { font-size: 0.86rem; color: var(--text-dim); }

/* ---------- documents (legal) ---------- */
.doc-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-bottom: clamp(56px, 8vw, 100px); }
.toc { position: sticky; top: 100px; padding: 20px; border-radius: var(--r-m); background: rgba(255, 244, 220, 0.03); border: 1px solid var(--line); font-size: 0.9rem; max-height: calc(100svh - 130px); overflow: auto; }
.toc h2 { font-family: var(--body); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.toc a { color: var(--text-soft); text-decoration: none; }
.toc a:hover { color: var(--white-gold); text-decoration: underline; }
.doc { max-width: 78ch; }
.doc h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); margin-top: 2.2em; padding-top: 0.6em; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-family: var(--body); font-weight: 600; font-size: 1.08rem; color: var(--gold); margin-top: 1.4em; }
.doc li { margin-bottom: 0.4em; }
.doc .summary { padding: 22px 24px; border-radius: var(--r-m); background: linear-gradient(135deg, rgba(242, 199, 110, 0.1), rgba(233, 164, 143, 0.06)); border: 1px solid var(--line-strong); margin-bottom: 2em; }
.doc .summary h2 { margin-top: 0; border: 0; padding: 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 0.94rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--gold); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.doc code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.9em; padding: 1px 6px; border-radius: 6px; background: rgba(242, 199, 110, 0.1); color: var(--white-gold); }
.table-scroll { overflow-x: auto; }
@media (max-width: 430px) { .doc table { font-size: 0.84rem; } .doc th, .doc td { padding-inline: 6px; overflow-wrap: anywhere; } }

/* ---------- story ---------- */
.chapter { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: center; padding: clamp(40px, 6vw, 80px) 0; }
.chapter:nth-of-type(even) .chapter-art { order: 2; }
.chapter-art { position: relative; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); aspect-ratio: 16 / 10; }
.chapter-art img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; }
.chapter-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 80px rgba(5, 7, 15, 0.6); }
.chapter .num { font-family: var(--display); font-size: 0.86rem; letter-spacing: 0.3em; color: var(--rose-gold); text-transform: uppercase; margin: 0 0 8px; }
.chapter p { color: var(--text-soft); }
.chapter blockquote { margin: 1.2em 0; padding: 14px 20px; border-left: 2px solid var(--gold); background: rgba(242, 199, 110, 0.06); border-radius: 0 12px 12px 0; font-style: italic; color: var(--white-gold); }
.prologue, .epilogue { max-width: 780px; margin: 0 auto; text-align: center; padding: clamp(40px, 6vw, 80px) 0; }
.prologue p, .epilogue p { color: var(--text-soft); font-size: 1.1rem; }
.prologue .drop { text-align: left; }
.prologue .drop::first-letter { font-family: var(--display); font-size: 3.4em; float: left; line-height: 0.9; margin: 6px 10px 0 0; color: var(--gold); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { border-radius: var(--r-m); background: rgba(255, 244, 220, 0.035); border: 1px solid var(--line); transition: border-color var(--t-med) ease, background var(--t-med) ease; }
.faq details[open] { border-color: var(--line-strong); background: rgba(255, 244, 220, 0.06); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative; font-weight: 600; color: var(--white-gold); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform var(--t-med) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 22px 18px; color: var(--text-soft); animation: answer-in 360ms var(--ease-out); }
@keyframes answer-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- contact ---------- */
.mail-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mail-card { padding: 26px; border-radius: var(--r-l); background: rgba(255, 244, 220, 0.04); border: 1px solid var(--line); }
.mail-card h2 { font-size: 1.2rem; }
.mail-card a { font-weight: 600; overflow-wrap: anywhere; }
.mail-card p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- footer ---------- */
.site-footer { position: relative; margin-top: 40px; padding: 64px 0 34px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35)), var(--ink-0); border-top: 1px solid var(--line); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--prism); opacity: 0.7; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.footer-grid > div > p { color: var(--text-dim); font-size: 0.92rem; margin-top: 14px; }
.site-footer h2 { font-family: var(--body); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 6px 0 14px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.94rem; }
.foot-links a, .foot-links .link-btn { color: var(--text-soft); text-decoration: none; }
.foot-links a:hover, .foot-links .link-btn:hover { color: var(--white-gold); text-decoration: underline; }
.foot-notice { margin-top: 40px; padding: 22px 24px; border-radius: var(--r-m); background: rgba(242, 199, 110, 0.05); border: 1px solid var(--line-strong); }
.foot-notice p { font-size: 0.92rem; color: var(--text-soft); margin: 0 0 0.6em; }
.foot-notice p:last-child { margin: 0; }
.foot-help { margin-top: 24px; }
.foot-help h2 { margin-bottom: 12px; }
.foot-help .lines-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.copyright { margin: 30px 0 0; font-size: 0.82rem; color: var(--text-dim); text-align: center; }

/* ---------- age gate ---------- */
.age-gate { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: radial-gradient(800px 500px at 50% 30%, rgba(240, 160, 75, 0.16), transparent 70%), rgba(3, 4, 10, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow-y: auto; }
.age-gate[hidden] { display: none; }
html.age-ok .age-gate { display: none; }
.age-card { position: relative; width: min(560px, 100%); padding: clamp(26px, 5vw, 44px); border-radius: 30px; text-align: center; background: linear-gradient(180deg, rgba(24, 29, 58, 0.96), rgba(9, 12, 28, 0.98)); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2), 0 0 80px rgba(240, 160, 75, 0.18); animation: gate-in 600ms var(--ease-out) both; }
.age-card::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; background: var(--prism); border-radius: 2px; }
@keyframes gate-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.age-card img { width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 50%; box-shadow: 0 0 40px rgba(242, 199, 110, 0.45); }
.age-card h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
.age-card p { color: var(--text-soft); }
.age-card .phrase-list { justify-content: center; }
.age-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 16px; }
.age-card .leave { display: none; }
.age-gate.is-leaving .ask { display: none; }
.age-gate.is-leaving .leave { display: block; }
.age-card .leave ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.age-card .fine { font-size: 0.84rem; color: var(--text-dim); margin: 0; }

/* ---------- cookie bar ---------- */
.cookie-bar { position: fixed; left: 50%; bottom: 18px; z-index: 210; width: min(860px, calc(100% - 24px)); transform: translateX(-50%); display: flex; align-items: center; gap: 18px; padding: 16px 18px 16px 22px; border-radius: 20px; background: var(--glass-strong); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: bar-in 500ms var(--ease-out) both; }
.cookie-bar[hidden] { display: none; }
@keyframes bar-in { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }
.cookie-bar p { margin: 0; font-size: 0.9rem; color: var(--text-soft); flex: 1 1 auto; }
.cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }
html.age-pending .cookie-bar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .site-nav a { padding: 10px 8px; font-size: 0.88rem; }
  .site-nav a::after { left: 8px; right: 8px; }
}
@media (max-width: 1140px) {
  .header-tools .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 6px); flex-direction: column; align-items: stretch; gap: 2px; padding: 10px; border-radius: 20px; background: var(--glass-strong); border: 1px solid var(--line-strong); box-shadow: var(--shadow-2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden; transition: opacity var(--t-med) ease, transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med); }
  .site-nav.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .site-nav a { padding: 12px 14px; font-size: 1rem; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current="page"] { background: rgba(242, 199, 110, 0.1); }
  .header-tools { margin-left: auto; }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .foot-help .lines-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .lobby { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "sun sun" "cas rou" "bj bj"; }
  .lobby .g-sun { min-height: 480px; }
  .lobby .g-cas, .lobby .g-rou { min-height: 380px; }
  .hosts { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin-inline: auto; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; }
  .ribbon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-bottom: 210px; }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .steps, .grid-3, .mail-cards { grid-template-columns: minmax(0, 1fr); }
  .chapter { grid-template-columns: minmax(0, 1fr); }
  .chapter:nth-of-type(even) .chapter-art { order: 0; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .cookie-bar { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-actions { justify-content: flex-end; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .brand-name { font-size: 0.98rem; }
  .brand-name small { font-size: 0.6rem; letter-spacing: 0.14em; }
  .brand img { width: 40px; height: 40px; }
  .credit-pill { padding: 6px 10px; }
  .credit-pill > span:not(.gem) { display: none; }
  .lobby { grid-template-columns: minmax(0, 1fr); grid-template-areas: "sun" "cas" "rou" "bj"; }
  .lobby .g-sun, .lobby .g-cas, .lobby .g-rou, .lobby .g-bj { min-height: 400px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-help .lines-grid, .lines-grid { grid-template-columns: minmax(0, 1fr); }
  .notice-bar { font-size: 0.7rem; }
  .notice-list li + li::before { margin: 0 7px; width: 4px; height: 4px; }
  .hero { min-height: auto; padding: 64px 0 24px; }
  .hero-ribbon { position: static; margin-top: 28px; }
  .ribbon-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .ribbon-grid a { padding: 8px; gap: 8px; }
  .ribbon-grid img { width: 38px; height: 38px; }
  .ribbon-grid b { font-size: 0.78rem; }
  .ribbon-grid small { font-size: 0.64rem; }
}
@media (max-width: 430px) {
  .hosts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .host-card p { display: none; }
  .host-card h3 { font-size: 1rem; }
  .host-card .role { font-size: 0.62rem; letter-spacing: 0.12em; }
  .header-inner { gap: 8px; }
  .brand { flex: 1 1 auto; min-width: 0; gap: 9px; }
  .brand img { width: 36px; height: 36px; }
  .brand-name { font-size: 0.86rem; max-width: 8.5em; }
  .brand-name small { display: none; }
  .header-tools { gap: 6px; }
  .btn { padding: 0 18px; }
  .menu-toggle { padding: 0 12px; }
}
@media (max-width: 370px) {
  .brand-name { font-size: 0.86rem; }
  .brand img { width: 34px; height: 34px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-halo { animation: none; }
  .hero-media video { display: none; }
  .game-card { transform: none; }
}
