/* Dice Rivals website. Design: Claude Design „Website – Bausteine“ (2026-10-24),
   values from the app design system (dice_rivals lib/ui/theme). */

@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/app/BricolageGrotesque-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/app/BricolageGrotesque-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/app/Figtree-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/app/Figtree-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/app/Figtree-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
    --bg: #0F1114;
    --bg-alt: #14161A;
    --surface-1: #171A1F;
    --surface-1-hover: #1A1D23;
    --surface-2: #1F232A;
    --surface-3: #292E37;
    --line: #2E333C;
    --line-strong: #3C424D;
    --text: #F3F1EC;
    --text-soft: #C7CBD2;
    --text-body: #D9DCE1;
    --text-2: #A9AEB8;
    --text-3: #6F7581;
    --ivory: #EFE8DA;
    --ivory-hover: #FFF8EA;
    --ivory-pressed: #E3DCCE;
    --on-ivory: #15171B;
    --on-ivory-2: #3E424A;
    --success: #4CC38A;
    --gold-soft: #F0D378;
    --gold-tint: rgba(232, 193, 74, 0.16);

    --classic: #5B9BF0;  --classic-soft: #8DBAF6;  --classic-tint: rgba(91, 155, 240, 0.10);
    --blitz: #F2A93B;    --blitz-soft: #F6C677;    --blitz-tint: rgba(242, 169, 59, 0.10);
    --extreme: #EF5A4F;  --extreme-soft: #F58A82;  --extreme-tint: rgba(239, 90, 79, 0.10);
    --chaos: #B48CF2;    --chaos-soft: #C9AEF7;    --chaos-tint: rgba(180, 140, 242, 0.10);

    --r-common-fg: #C7CBD2;    --r-common-bg: rgba(169, 174, 184, 0.14);    --r-common-tint: rgba(169, 174, 184, 0.07);
    --r-rare-fg: #8DBAF6;      --r-rare-bg: rgba(91, 155, 240, 0.16);       --r-rare-tint: rgba(91, 155, 240, 0.07);
    --r-epic-fg: #C9AEF7;      --r-epic-bg: rgba(180, 140, 242, 0.16);      --r-epic-tint: rgba(180, 140, 242, 0.07);
    --r-legendary-fg: #F0D378; --r-legendary-bg: rgba(232, 193, 74, 0.16); --r-legendary-tint: rgba(232, 193, 74, 0.07);

    --die-ivory: #EFE8DA; --die-pip: #17191D; --die-edge: #C9BFAA;

    --radius-xs: 6px; --radius-s: 10px; --radius-m: 14px; --radius-l: 20px; --radius-xl: 28px; --radius-pill: 999px;
    --shadow-phone: 0 20px 56px rgba(0, 0, 0, 0.55);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);
    --max: 1200px;
    --gutter: 20px;
    --header-h: 68px;
    --section-y: clamp(56px, 9vw, 112px);

    --font-display: "Bricolage Grotesque", Figtree, system-ui, sans-serif;
    --font-body: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;

    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--font-body); font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ivory); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2.5px solid var(--ivory); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button { font: inherit; }
.icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ivory); color: var(--on-ivory); padding: 10px 16px; border-radius: var(--radius-s); font-weight: 700; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) var(--gutter); }
.section > .inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 40px; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.top-line { border-top: 1px solid var(--line); }
[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.eyebrow.extreme { color: var(--extreme-soft); } .eyebrow.extreme .dot { background: var(--extreme); }
.eyebrow.chaos { color: var(--chaos-soft); } .eyebrow.chaos .dot { background: var(--chaos); }

.head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.h2 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.04; letter-spacing: -0.03em; }
.lead { font-size: 17px; line-height: 1.55; color: var(--text-2); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .bar { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; border-radius: var(--radius-s); }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav a { height: 40px; padding: 0 14px; display: flex; align-items: center; border-radius: var(--radius-pill); text-decoration: none; font-size: 15px; font-weight: 600; color: var(--text-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: transparent; color: var(--text); align-items: center; justify-content: center; cursor: pointer; padding: 0; font-size: 22px; }
.menu-btn .close { display: none; }
.menu-btn[aria-expanded="true"] .open { display: none; }
.menu-btn[aria-expanded="true"] .close { display: inline-block; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 12px var(--gutter) 20px; flex-direction: column; gap: 4px; background: var(--bg); }
.mobile-nav a { min-height: 52px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); }
.mobile-nav a .icon { font-size: 22px; color: var(--text-3); }
@media (max-width: 899px) {
    .nav { display: none; }
    .menu-btn { display: flex; }
    .site-header.open .mobile-nav { display: flex; }
}

/* ---------- Buttons ---------- */
.btn { height: 52px; padding: 0 24px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.btn .icon { font-size: 20px; }
.btn-small { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-primary { background: var(--ivory); color: var(--on-ivory); }
.btn-primary:hover { background: var(--ivory-hover); color: var(--on-ivory); }
.btn-primary:active { background: var(--ivory-pressed); transform: scale(0.98); }
.btn-secondary { background: transparent; color: var(--text); border: 1.5px solid var(--line-strong); }
.btn-secondary:hover { border-color: var(--ivory); color: var(--text); }
.btn-dark { background: var(--on-ivory); color: var(--text); height: 48px; padding: 0 20px; font-size: 15px; }
.btn-dark:hover { background: #2A2D33; color: #fff; }

/* Store badges: placeholders until the official artwork is used. */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { width: 172px; height: 52px; border-radius: var(--radius-s); display: flex; align-items: center; gap: 10px; padding: 0 14px; text-decoration: none; flex: none; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); cursor: default; }
.badge .glyph { width: 26px; height: 26px; flex: none; border-radius: var(--radius-xs); border: 1.5px dashed var(--text-3); }
.badge .txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.badge small { font-size: 11px; font-weight: 600; color: var(--text-2); }
.badge strong { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
a.badge { background: #000; border-color: #A6A6A6; color: #fff; cursor: pointer; }
a.badge small { color: #fff; }
a.badge:hover { background: #1A1A1A; color: #fff; }

.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.checks li { display: flex; align-items: center; gap: 6px; }
.checks .icon { font-size: 18px; color: var(--success); }

/* ---------- Phone frame & die ---------- */
.phone { border-radius: 42px; padding: 9px; background: var(--surface-2); border: 1px solid var(--line-strong); }
.phone img { width: 100%; border-radius: 34px; aspect-ratio: 1320 / 2868; object-fit: cover; }
.phone.sm { border-radius: 38px; padding: 8px; }
.phone.sm img { border-radius: 30px; }
.shadow { box-shadow: var(--shadow-phone); }

.die { --s: 34px; width: var(--s); height: var(--s); border-radius: calc(var(--s) * 0.22); background: var(--die-ivory); box-shadow: 0 2px 0 var(--die-edge), 0 6px 14px rgba(0, 0, 0, 0.35); position: relative; flex: none; }
.die i { position: absolute; width: calc(var(--s) * 0.17); height: calc(var(--s) * 0.17); border-radius: 50%; background: var(--die-pip); transform: translate(-50%, -50%); }
.die.line { background: transparent; box-shadow: none; border: 1.5px solid var(--text-2); }
.die.line i { background: var(--text-2); }

/* ---------- Hero (B) ---------- */
.hero { padding: clamp(48px, 8vw, 104px) var(--gutter) 0; overflow: hidden; }
.hero .inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.hero .app-icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow-card); }
.hero h1 { font-weight: 800; font-size: clamp(48px, 8.4vw, 104px); line-height: 0.95; letter-spacing: -0.04em; max-width: 900px; }
.hero .sub { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--text-soft); max-width: 600px; }
.hero .badges, .hero .checks { justify-content: center; }
.hero-stage { position: relative; width: 100%; max-width: 880px; height: clamp(380px, 56vw, 560px); margin-top: 28px; }
.hero-stage .monster { position: absolute; z-index: 0; }
.hero-stage .m-left { left: clamp(0px, 6%, 80px); bottom: clamp(120px, 22vw, 220px); width: clamp(70px, 11vw, 120px); transform: rotate(-12deg); }
.hero-stage .m-right { right: clamp(0px, 5%, 70px); bottom: clamp(150px, 26vw, 260px); width: clamp(80px, 12vw, 140px); transform: rotate(10deg); }
.hero-stage .phone { position: absolute; left: 50%; }
.hero-stage .p-left { top: 12%; width: clamp(150px, 20vw, 220px); transform: translateX(-128%) rotate(-9deg); z-index: 1; }
.hero-stage .p-right { top: 12%; width: clamp(150px, 20vw, 220px); transform: translateX(28%) rotate(9deg); z-index: 1; }
.hero-stage .p-center { top: 0; width: clamp(180px, 24vw, 260px); transform: translateX(-50%); z-index: 2; }
@media (max-width: 520px) {
    .hero-stage .p-left { transform: translateX(-112%) rotate(-9deg); }
    .hero-stage .p-right { transform: translateX(12%) rotate(9deg); }
}

/* ---------- Cards ---------- */
.card { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-l); }
.grid { display: grid; gap: 16px; }
.grid-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); list-style: none; margin: 0; padding: 0; }
.step { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.step .top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.step .num { font-family: var(--font-display); font-weight: 700; font-size: 40px; color: var(--line-strong); line-height: 1; }
.step h3 { font-size: 24px; letter-spacing: -0.02em; }
.step p { color: var(--text-2); }
.dice-row { display: flex; gap: 6px; }
.chip-score { height: 34px; padding: 0 12px; border-radius: 8px; background: var(--classic-tint); border: 1.5px solid var(--classic); display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; }
.chip-score span { font-family: var(--font-display); color: var(--classic-soft); font-size: 17px; }
.chip-gold { height: 34px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--gold-tint); color: var(--gold-soft); display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.chip-gold .icon { font-size: 18px; }

/* Mode cards */
.grid-modes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.mode { --c: var(--classic); --soft: var(--classic-soft); --tint: var(--classic-tint); background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.mode.blitz { --c: var(--blitz); --soft: var(--blitz-soft); --tint: var(--blitz-tint); }
.mode.extreme { --c: var(--extreme); --soft: var(--extreme-soft); --tint: var(--extreme-tint); }
.mode.chaos { --c: var(--chaos); --soft: var(--chaos-soft); --tint: var(--chaos-tint); }
.mode .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mode .bar { width: 28px; height: 4px; border-radius: 2px; background: var(--c); }
.mode .tag { padding: 4px 10px; border-radius: var(--radius-pill); background: var(--tint); border: 1px solid var(--c); color: var(--soft); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.mode h3 { font-size: 30px; letter-spacing: -0.02em; }
.mode p { color: var(--text-soft); line-height: 1.5; }
.mode ul { list-style: none; margin: auto 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-soft); }
.mode li { display: flex; gap: 8px; align-items: flex-start; }
.mode li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-top: 7px; flex: none; }

/* Items */
.items-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 48px; align-items: center; }
.items-intro .copy { display: flex; flex-direction: column; gap: 16px; }
.items-intro h2 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1; letter-spacing: -0.035em; }
.items-intro .lead { font-size: 18px; color: var(--text-soft); max-width: 480px; }
.items-intro .phone { width: clamp(200px, 24vw, 260px); }
.items-intro .media { display: flex; justify-content: center; }
.rarity { padding: 3px 8px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--r-common-bg); color: var(--r-common-fg); }
.rarity.rare { background: var(--r-rare-bg); color: var(--r-rare-fg); }
.rarity.epic { background: var(--r-epic-bg); color: var(--r-epic-fg); }
.rarity.legendary { background: var(--r-legendary-bg); color: var(--r-legendary-fg); }
.rarities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.item-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
.item { --tint: var(--r-common-tint); height: 100%; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.item:hover { border-color: var(--line-strong); background: var(--surface-1-hover); }
.item.rare { --tint: var(--r-rare-tint); } .item.epic { --tint: var(--r-epic-tint); } .item.legendary { --tint: var(--r-legendary-tint); }
.item .art { aspect-ratio: 1; border-radius: var(--radius-s); background: var(--tint); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.item .art img { width: 88%; height: 88%; object-fit: contain; }
.item .body { display: flex; flex-direction: column; gap: 6px; padding: 0 2px 2px; }
.item .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.item .cat { font-size: 12px; font-weight: 600; color: var(--text-2); }
.item h3 { font-size: 18px; letter-spacing: -0.01em; line-height: 1.2; }
.item p { font-size: 14px; line-height: 1.45; color: var(--text-2); }
.item[hidden] { display: none; }

/* Teaser: always full rows. 2 rows (3 on phones), columns by width. */
.item-grid.teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.item-grid.teaser > :nth-child(n + 7) { display: none; }
@media (min-width: 560px) { .item-grid.teaser { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) {
    .item-grid.teaser { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .item-grid.teaser > :nth-child(n + 7) { display: flex; }
    .item-grid.teaser > :nth-child(n + 9) { display: none; }
}
@media (min-width: 980px) {
    .item-grid.teaser { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .item-grid.teaser > :nth-child(n + 9) { display: flex; }
    .item-grid.teaser > :nth-child(n + 11) { display: none; }
}
@media (min-width: 1180px) {
    .item-grid.teaser { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .item-grid.teaser > :nth-child(n + 11) { display: flex; }
    .item-grid.teaser > :nth-child(n + 13) { display: none; }
}

/* Events */
.event-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.event { height: 100%; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px 16px 12px 12px; display: flex; align-items: center; gap: 14px; }
.event .art { width: 72px; height: 72px; flex: none; border-radius: var(--radius-s); background: rgba(180, 140, 242, 0.08); display: flex; align-items: center; justify-content: center; }
.event .art img { width: 64px; height: 64px; object-fit: contain; }
.event .body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.event h3 { font-size: 17px; letter-spacing: -0.01em; line-height: 1.2; }
.event p { font-size: 14px; line-height: 1.4; color: var(--text-2); }

/* Play your way */
.grid-play { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.play { overflow: hidden; display: flex; flex-direction: column; }
.play .visual { height: 200px; background: var(--surface-2); display: flex; justify-content: center; align-items: center; overflow: hidden; position: relative; }
.play .visual.peek { align-items: flex-start; padding-top: 24px; }
.play .peek-phone { width: 200px; border-radius: 30px 30px 0 0; padding: 7px 7px 0; background: var(--surface-3); border: 1px solid var(--line-strong); border-bottom: 0; }
.play .peek-phone img { border-radius: 24px 24px 0 0; aspect-ratio: 1320 / 1200; object-fit: cover; object-position: top; width: 100%; }
.play .bots { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 20px; }
.play .bot { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 84px; font-size: 13px; font-weight: 700; }
.play .bot img { width: 64px; height: 64px; object-fit: contain; }
.play .hotseat { width: 84px; height: 150px; border-radius: 20px; border: 1.5px solid var(--line-strong); background: var(--surface-1); display: flex; align-items: center; justify-content: center; }
.play .hotseat .die { --s: 36px; transform: rotate(8deg); }
.play .seat { position: absolute; }
.play .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.play h3 { font-size: 22px; letter-spacing: -0.01em; }
.play p { font-size: 15px; color: var(--text-2); }

/* Collect: three equal cards with full screenshots */
.grid-collect { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.collect { padding: 28px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.collect h3 { font-size: 24px; letter-spacing: -0.02em; }
.collect p { font-size: 16px; color: var(--text-2); }
.collect .media { margin-top: auto; padding-top: 20px; display: flex; justify-content: center; }
.collect .phone { width: min(78%, 250px); }

/* Gallery */
.gallery-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; padding: 0; font-size: 22px; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { border-color: var(--ivory); }
.gallery { margin-top: 32px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 20px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; flex: none; width: clamp(200px, 22vw, 240px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px; }
.gallery figcaption { font-size: 15px; font-weight: 600; color: var(--text-soft); padding: 0 4px; }

/* Fair play band */
.fair { max-width: var(--max); margin: 0 auto; border-radius: 24px; background: var(--ivory); color: var(--on-ivory); padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
.fair div { display: flex; flex-direction: column; gap: 8px; }
.fair .icon { font-size: 28px; }
.fair h3 { font-size: 21px; letter-spacing: -0.01em; }
.fair p { font-size: 15px; line-height: 1.5; color: var(--on-ivory-2); }

/* FAQ */
.faq-layout { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; align-items: start; }
.faq-layout .head p { color: var(--text-2); }
.faq { border-top: 1px solid var(--line); grid-column: span 2; min-width: 0; }
@media (max-width: 719px) { .faq { grid-column: auto; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; min-height: 64px; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 18px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq .pm { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.faq .pm .minus { display: none; }
.faq details[open] .pm .plus { display: none; }
.faq details[open] .pm .minus { display: inline-block; }
.faq details p { padding: 0 48px 20px 0; font-size: 16px; line-height: 1.6; color: var(--text-soft); }

/* CTA */
.cta { max-width: var(--max); margin: 0 auto; border-radius: var(--radius-xl); background: var(--surface-1); border: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.cta .monsters { display: flex; align-items: flex-end; gap: 4px; }
.cta h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1; letter-spacing: -0.035em; }
.cta p { font-size: 17px; color: var(--text-2); max-width: 480px; }
.cta .badges { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.site-footer .inner { max-width: var(--max); margin: 0 auto; padding: 56px var(--gutter) 40px; display: flex; flex-direction: column; gap: 48px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 32px 24px; }
.site-footer .about { display: flex; flex-direction: column; gap: 14px; }
.site-footer .about .brand img { width: 40px; height: 40px; border-radius: 11px; }
.site-footer .about .brand span { font-size: 20px; }
.site-footer .about p { font-size: 14px; color: var(--text-2); max-width: 240px; }
.site-footer .col { display: flex; flex-direction: column; gap: 6px; }
.site-footer .col h2 { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.site-footer .col a { min-height: 32px; display: flex; align-items: center; font-size: 15px; color: var(--text); text-decoration: none; width: fit-content; }
.site-footer .col a:hover { color: var(--ivory); text-decoration: underline; }
.site-footer .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-2); }

/* ---------- Guide ---------- */
.page { max-width: var(--max); margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(64px, 9vw, 112px); }
.page-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.crumbs { font-size: 14px; color: var(--text-2); display: flex; gap: 8px; }
.crumbs a { color: var(--text-2); }
.crumbs [aria-current] { color: var(--text); }
.page-head h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1; letter-spacing: -0.035em; }
.page-head .lead { font-size: 18px; color: var(--text-soft); }
.note-line { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.note-line .icon { font-size: 18px; }

.guide { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; align-items: start; }
@media (min-width: 900px) { .guide { grid-template-columns: 220px minmax(0, 1fr); } }
.toc { position: sticky; top: calc(var(--header-h) + 32px); display: none; flex-direction: column; gap: 2px; }
.toc .label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); padding: 0 12px 10px; }
.toc a { min-height: 40px; padding: 0 12px; border-radius: var(--radius-s); display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; text-decoration: none; color: var(--text-2); }
.toc a::before { content: ""; width: 3px; height: 16px; border-radius: 2px; background: transparent; }
.toc a:hover { background: var(--surface-1); color: var(--text); }
.toc a.active { background: var(--surface-1); color: var(--text); }
.toc a.active::before { background: var(--ivory); }
@media (min-width: 900px) { .toc { display: flex; } }
.toc-chips { position: sticky; top: var(--header-h); z-index: 5; background: var(--bg); margin: 0 calc(var(--gutter) * -1) 24px; padding: 10px var(--gutter); border-bottom: 1px solid var(--line); display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.toc-chips::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .toc-chips { display: none; } }
.chip { flex: none; height: 36px; padding: 0 14px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; font-size: 14px; font-weight: 700; text-decoration: none; background: transparent; color: var(--text); border: 1px solid var(--line-strong); cursor: pointer; white-space: nowrap; }
.chip:hover { color: var(--text); border-color: var(--ivory); }
.chip.active, .chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ivory); color: var(--on-ivory); border-color: var(--ivory); }
.chip.lg { height: 40px; padding: 0 16px; }
.chip .n { opacity: 0.7; font-weight: 600; margin-left: 4px; }

.guide-body { display: flex; flex-direction: column; gap: clamp(56px, 7vw, 88px); min-width: 0; }
.guide-body section { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 96px; }
.guide-body h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.025em; }
.guide-body h3 { font-size: 22px; letter-spacing: -0.01em; margin-top: 12px; }
.guide-body .lead { font-size: 16px; max-width: 640px; }
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.title-row .count { font-size: 14px; color: var(--text-2); }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rule-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.rule-steps li { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.rule-steps .n { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text-2); }
.rule-steps .t { font-weight: 700; font-size: 16px; }
.rule-steps .d { font-size: 14px; color: var(--text-2); }
.tips { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tips li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tips .n { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--text-3); }
.tips .t { font-weight: 700; font-size: 17px; display: block; margin-bottom: 4px; }
.tips .d { font-size: 15px; color: var(--text-2); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-m); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
thead tr { background: var(--surface-1); text-align: left; }
thead th { padding: 12px 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); text-align: left; }
tbody tr { border-top: 1px solid var(--line); }
tbody th { padding: 12px 16px; text-align: left; font-weight: 600; }
tbody td { padding: 12px 16px; color: var(--text-soft); vertical-align: top; }
td.num, th.num { text-align: right; font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
tr.sub { background: var(--bg-alt); }
tr.sub th { font-weight: 700; color: var(--text-2); }
td.none { color: var(--text-3); }
td.yes { color: var(--text); font-weight: 700; }
td.val { color: var(--text); font-weight: 600; }
.t-score { min-width: 480px; }
.t-modes { min-width: 560px; }
.t-modes thead th { font-family: var(--font-display); font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--text); padding: 14px 16px; }
.t-modes thead th span { display: inline-flex; align-items: center; gap: 8px; }
.t-modes thead th i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.t-modes tbody th { color: var(--text-2); width: 22%; }
.level { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.level.easy { color: var(--success); } .level.medium { color: var(--blitz); } .level.hard { color: var(--extreme-soft); }
.level span { letter-spacing: 1px; }

/* ---------- Text pages ---------- */
.text-page { padding: clamp(32px, 5vw, 64px) var(--gutter) clamp(64px, 9vw, 112px); }
.text-page .inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.text-head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.text-head h1 { font-size: clamp(36px, 5.4vw, 52px); line-height: 1.02; letter-spacing: -0.035em; }
.text-head p { font-size: 18px; color: var(--text-soft); }
.text-head .meta { font-size: 13px; color: var(--text-2); }
.prose { display: flex; flex-direction: column; gap: 18px; font-size: 17px; line-height: 1.7; color: var(--text-body); }
.prose section { display: flex; flex-direction: column; gap: 14px; }
.prose h2 { margin: 12px 0 0; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; color: var(--text); }
.prose h3 { margin: 8px 0 0; font-size: 20px; letter-spacing: -0.01em; color: var(--text); }
.prose p, .prose ul, .prose ol { margin: 0; }
.prose ul, .prose ol { padding-left: 24px; display: flex; flex-direction: column; gap: 6px; }
.prose strong { color: var(--text); }
.prose a { word-break: break-word; }
.prose .small, .prose .hint { font-size: 15px; color: var(--text-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0 8px; width: 100%; }
.aside { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px 18px; display: flex; gap: 12px; font-size: 15px; line-height: 1.55; color: var(--text-soft); }
.aside .icon { font-size: 22px; color: var(--text-2); margin-top: 1px; }
.contact-box { background: var(--ivory); color: var(--on-ivory); border-radius: var(--radius-l); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.contact-box h2 { font-size: 24px; letter-spacing: -0.02em; }
.contact-box p { font-size: 16px; color: var(--on-ivory-2); }
.contact-box .btn { align-self: flex-start; }

/* ---------- Invite & 404 ---------- */
.invite { min-height: 100dvh; padding: 20px 20px 24px; display: flex; flex-direction: column; align-items: center; }
.invite .inner { width: 100%; max-width: 420px; flex: 1; display: flex; flex-direction: column; gap: 20px; }
.invite .brand { align-self: flex-start; }
.invite .brand img { width: 28px; height: 28px; border-radius: 8px; }
.invite .brand span { font-size: 16px; }
.invite .center { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 20px; text-align: center; align-items: center; }
.invite .trio { position: relative; width: 200px; height: 150px; }
.invite .trio img { position: absolute; bottom: 0; }
.invite .trio .a { left: 0; bottom: 6px; width: 76px; transform: rotate(-8deg); }
.invite .trio .b { right: 0; bottom: 4px; width: 82px; transform: rotate(8deg); }
.invite .trio .c { left: 50%; width: 96px; transform: translateX(-50%); }
.invite h1 { font-size: clamp(30px, 8.6vw, 38px); line-height: 1.05; letter-spacing: -0.03em; }
.invite .center p { font-size: 16px; color: var(--text-soft); max-width: 340px; }
.invite .badges { justify-content: center; gap: 10px; }
.find { background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.find .label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.find ol { margin: 0; padding: 0; list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 700; }
.find .pill { height: 34px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--surface-2); display: flex; align-items: center; gap: 6px; }
.find .pill .icon { font-size: 18px; color: var(--text-2); }
.find .sep { font-size: 18px; color: var(--text-3); display: flex; }
.find .who { background: var(--ivory); color: var(--on-ivory); }
.invite .more { align-self: center; min-height: 44px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--text-2); }

.notfound { min-height: calc(100dvh - var(--header-h) - 1px); padding: 48px var(--gutter); display: flex; align-items: center; justify-content: center; }
.notfound .inner { max-width: 440px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.notfound .art { display: flex; align-items: flex-end; gap: 10px; }
.notfound .die { --s: 56px; }
.notfound .code { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; color: var(--text-2); }
.notfound h1 { font-size: clamp(32px, 6vw, 44px); line-height: 1.05; letter-spacing: -0.03em; }
.notfound p { font-size: 17px; color: var(--text-soft); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Legacy content inside text pages (FAQ blocks) */
.prose section > div { display: flex; flex-direction: column; gap: 20px; }
.prose section > div > div { display: flex; flex-direction: column; gap: 6px; }
.prose .contact-box { margin: 4px 0; }
.prose .contact-box ul { color: var(--on-ivory-2); font-size: 16px; }
.prose .contact-box p { color: var(--on-ivory-2); }
.prose > div[lang] { gap: 18px; }
.prose .contact-box h2 { color: var(--on-ivory); margin: 0; }
