/* Otaku Millionaire Hot Seat — site styles */
:root {
  --night: #080a1c;
  --stage: #10133a;
  --panel: #171b4a;
  --line: #2b3170;
  --gold: #f6c445;
  --gold-deep: #c9952a;
  --hot: #ff5b3a;
  --ink: #eef0ff;
  --muted: #a6abd2;
  --ok: #58d6a0;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 900; font-stretch: 115%; letter-spacing: -.02em; text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; font-stretch: 110%; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(8, 10, 28, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 900; font-stretch: 115%; text-transform: uppercase; letter-spacing: .02em; font-size: .95rem; line-height: 1.05; margin-right: auto; }
.brand img { width: 48px; height: 48px; flex: none; border-radius: 10px; border: 1px solid var(--gold-deep); }
.hero-logo { display: block; width: clamp(150px, 22vw, 230px); height: auto; border-radius: 22px; border: 2px solid var(--gold-deep); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); margin-bottom: 1.6rem; }
.brand span span { color: var(--gold); display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; }

/* Buttons — lozenge shape, like an answer bar */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; padding: 14px 30px; border: 2px solid var(--gold); color: var(--gold); background: transparent; cursor: pointer; clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 16px 100%, 0 50%); transition: background .15s, color .15s, transform .15s; }
.btn:hover { background: rgba(246, 196, 69, .14); color: #fff; }
.btn.primary { background: var(--gold); color: #17120a; }
.btn.primary:hover { background: #ffe08a; color: #17120a; transform: translateY(-1px); }
.btn.small { padding: 9px 22px; font-size: .8rem; }
.nav .btn { color: #17120a; padding: 9px 22px; font-size: .8rem; margin-left: 8px; border-radius: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.6rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px); background:
  radial-gradient(900px 480px at 78% 0%, rgba(246, 196, 69, .16), transparent 62%),
  radial-gradient(700px 500px at 0% 100%, rgba(255, 91, 58, .13), transparent 60%),
  linear-gradient(180deg, var(--stage), var(--night)); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--gold); display: block; }
.hero .lead { font-size: 1.2rem; }
.page-hero { padding: clamp(44px, 7vw, 84px) 0 clamp(28px, 4vw, 44px); background: radial-gradient(800px 380px at 85% 0%, rgba(246, 196, 69, .13), transparent 62%), linear-gradient(180deg, var(--stage), var(--night)); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); }

/* Money tree */
.tree { background: linear-gradient(180deg, #1a1f58, #0e1136); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.tree-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tree ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column-reverse; gap: 2px; }
.tree li { display: grid; grid-template-columns: 2.2em 1fr auto; align-items: center; gap: 10px; padding: 3px 12px; border-radius: 6px; font-variant-numeric: tabular-nums; font-weight: 600; color: #cfd3f5; font-size: .95rem; transition: opacity .3s, background .3s; }
.tree li .q { color: var(--muted); font-size: .8rem; }
.tree li .tag { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tree li.win { color: var(--gold); }
.tree li.safe { background: rgba(88, 214, 160, .1); color: var(--ok); }
.tree li.safe .tag { color: var(--ok); }
.tree li.top { background: var(--gold); color: #17120a; font-weight: 800; }
.tree li.top .q, .tree li.top .tag { color: #5a4310; }
.tree li.gone { opacity: .32; text-decoration: line-through; background: none; color: var(--muted); }
.tree-status { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); min-height: 3.2em; }
.tree-status strong { color: var(--ink); }
.tree .btn-row { margin-top: 12px; gap: 10px; }
.seats { display: flex; gap: 6px; margin-top: 12px; }
.seats i { flex: 1; height: 8px; border-radius: 99px; background: var(--gold); transition: background .3s; }
.seats i.out { background: #3a3f78; }

/* Sections */
section { padding: clamp(52px, 7vw, 92px) 0; }
section.alt { background: var(--stage); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 2.2rem; }
.grid { display: grid; gap: 18px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card .range { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-deep); border-radius: 99px; padding: 2px 10px; margin-bottom: 12px; }
.card p { color: var(--muted); }
.step-n { font-family: var(--display); font-weight: 900; font-stretch: 120%; font-size: 2.4rem; color: var(--gold); line-height: 1; margin-bottom: 12px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stat { background: var(--night); padding: 26px 22px; }
.stat b { display: block; font-family: var(--display); font-weight: 900; font-stretch: 115%; font-size: clamp(1.6rem, 3.4vw, 2.5rem); color: var(--gold); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .9rem; }

.cta { background: linear-gradient(135deg, #2a1c08, #171b4a 55%); border: 1px solid var(--gold-deep); border-radius: 20px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.cta h2 { margin-bottom: .3em; }
.cta p { color: var(--muted); margin: 0; max-width: 56ch; }

/* Tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: #121540; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.win { color: var(--gold); font-weight: 700; }
td.zero { color: var(--muted); }
tr.season-row td { background: #0d1034; font-family: var(--display); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: var(--gold); }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.live { border-color: var(--hot); color: #ffb3a3; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { font: inherit; font-size: .85rem; font-weight: 700; background: none; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 7px 16px; cursor: pointer; }
.chip:hover { color: #fff; }
.chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: #17120a; }

/* Prose pages */
.prose { max-width: 780px; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; color: var(--gold); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose .table-scroll { margin: 1.2em 0 1.6em; }
.notice { border: 1px solid var(--hot); background: rgba(255, 91, 58, .1); border-radius: 12px; padding: 18px 22px; margin: 1.6em 0; }
.notice strong { color: #ffb3a3; }
details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 14px; }
summary { cursor: pointer; padding: 18px 22px; font-family: var(--display); font-weight: 800; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details > div { padding: 0 22px 22px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.4rem; }
.toc a { font-size: .85rem; font-weight: 700; text-decoration: none; border: 1px solid var(--line); border-radius: 99px; padding: 7px 16px; color: var(--muted); }
.toc a:hover { color: #fff; border-color: var(--gold); }

.post { border-top: 1px solid var(--line); padding: 32px 0; }
.post:first-child { border-top: 0; padding-top: 0; }
.post time { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.post h2 { margin: .3em 0 .6em; font-size: clamp(1.5rem, 3vw, 2.1rem); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #060817; padding: 48px 0 32px; font-size: .92rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h3 { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5em; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.fine { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .8rem; }

@media (max-width: 860px) {
  .hero-grid, .g3, .g2, .cta, .foot-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--night); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 1rem; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
