/* Otaku Strikeout — shared styles */
:root {
  --ink: #130f26;
  --ink-2: #1c1638;
  --ink-3: #2a2152;
  --line: #3a2f6b;
  --paper: #fff6e3;
  --muted: #b9b0d6;
  --pink: #ff2e7e;
  --yellow: #ffd23f;
  --cyan: #36e0e6;
  --display: "Dela Gothic One", "Arial Black", Impact, sans-serif;
  --body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); }
a:hover { color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--yellow); color: var(--ink); padding: 8px 12px; z-index: 99; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); margin-bottom: .9em; }
.lede { font-size: 1.2rem; color: #e9e1ff; max-width: 60ch; }
.muted { color: var(--muted); }
.yen { font-variant-numeric: tabular-nums; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(19, 15, 38, .92); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { font-family: var(--display); font-size: 1.15rem; color: var(--paper); text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand:hover { color: var(--paper); }
.brand-x { display: grid; place-items: center; width: 34px; height: 34px; background: var(--pink); color: var(--ink); border-radius: 7px; transform: rotate(-6deg); font-size: 1.2rem; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { color: var(--paper); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: var(--ink-3); }
.nav a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.nav a.nav-cta { background: var(--pink); color: #fff; }
.nav a.nav-cta:hover { background: var(--yellow); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 2px solid var(--line); color: var(--paper); border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ink-2); border-bottom: 2px solid var(--line); padding: 12px 16px 16px; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; text-decoration: none; padding: 13px 22px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background .12s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 5px 0 #a80f4a; }
.btn-primary:hover { background: #ff4b90; color: #fff; }
.btn-ghost { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }

/* Sections */
section { padding: clamp(48px, 8vw, 96px) 0; }
.band { background: var(--ink-2); border-block: 2px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.more { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Hero */
.hero { padding-top: clamp(36px, 6vw, 72px); background:
  radial-gradient(900px 420px at 85% 0%, rgba(255, 46, 126, .22), transparent 60%),
  radial-gradient(700px 400px at 0% 100%, rgba(54, 224, 230, .12), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 .x { color: var(--pink); }
.hero h1 .y { color: var(--yellow); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); background: radial-gradient(800px 320px at 90% 0%, rgba(255, 46, 126, .2), transparent 60%); }
.page-hero h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); }

/* Game board */
.board { background: var(--ink-2); border: 2px solid var(--line); border-radius: 18px; padding: clamp(14px, 2.4vw, 22px); box-shadow: 10px 10px 0 var(--pink); }
.board-q { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.board-tag { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.board-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0; font-weight: 700; }
.lives { letter-spacing: 4px; color: var(--pink); font-size: 1.2rem; }
.lives .lost { color: var(--line); }
.bank { color: var(--yellow); font-family: var(--display); font-size: 1.2rem; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { font: inherit; font-weight: 700; font-size: clamp(.82rem, 1.6vw, .98rem); color: var(--paper); background: var(--ink-3); border: 2px solid var(--line); border-radius: 10px; min-height: 62px; padding: 6px; cursor: pointer; line-height: 1.2; transition: transform .12s ease, border-color .12s ease; }
.tile:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--cyan); }
.tile:disabled { cursor: default; }
.tile small { display: block; font-size: .72rem; letter-spacing: .08em; font-weight: 700; margin-top: 2px; }
.tile.hit { background: var(--yellow); border-color: var(--yellow); color: var(--ink); animation: pop .3s ease; }
.tile.miss { background: var(--pink); border-color: var(--pink); color: #fff; animation: shake .35s ease; }
.tile.dim { opacity: .45; }
@keyframes pop { 50% { transform: scale(1.08); } }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.board-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; min-height: 40px; }
.board-msg { font-size: .95rem; color: #e9e1ff; }
.board-reset { font: inherit; font-weight: 700; font-size: .85rem; background: none; color: var(--cyan); border: 2px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; white-space: nowrap; }
.board-reset:hover { border-color: var(--cyan); }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--ink-2); border: 2px solid var(--line); border-radius: 16px; padding: 24px; }
.band .card { background: var(--ink); }
.card h3 { color: var(--yellow); }
.card p:last-child { margin-bottom: 0; }
.step-num { font-family: var(--display); font-size: 2.4rem; color: var(--pink); line-height: 1; margin-bottom: 10px; }

/* Episodes */
.ep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.ep { display: block; text-decoration: none; color: var(--paper); background: var(--ink-2); border: 2px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .14s ease, border-color .14s ease; }
.band .ep { background: var(--ink); }
.ep:hover { transform: translateY(-4px); border-color: var(--pink); color: var(--paper); }
.ep-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--ink-3); }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-thumb::after { content: "▶"; position: absolute; inset: auto 12px 12px auto; width: 44px; height: 44px; display: grid; place-items: center; background: var(--pink); color: #fff; border-radius: 50%; font-size: 1rem; padding-left: 3px; }
.ep-body { padding: 14px 16px 18px; }
.ep-num { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.ep-title { font-weight: 700; font-size: 1.05rem; line-height: 1.3; margin-top: 4px; }
.player { aspect-ratio: 16 / 9; width: 100%; border: 2px solid var(--line); border-radius: 16px; overflow: hidden; background: #000; box-shadow: 10px 10px 0 var(--pink); }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.player a { position: relative; display: block; height: 100%; }
.player a img { width: 100%; height: 100%; object-fit: cover; }
.player a span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--pink); color: #fff; font-weight: 700; padding: 14px 24px; border-radius: 999px; white-space: nowrap; }

/* Tables */
.table-scroll { overflow-x: auto; border: 2px solid var(--line); border-radius: 14px; background: var(--ink-2); }
.band .table-scroll { background: var(--ink); }
table { border-collapse: collapse; width: 100%; min-width: 560px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
thead th { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); background: var(--ink-3); border-bottom: 2px solid var(--line); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.seed { font-family: var(--display); color: var(--pink); font-size: 1.2rem; }
.lb-name { font-weight: 700; font-size: 1.08rem; }
.lb-con { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; }
.open-row td { color: var(--muted); font-style: italic; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--cyan); color: var(--ink); }
.pill.bye { background: var(--yellow); }
.pill.r1 { background: var(--ink-3); color: var(--paper); }

/* Jackpot */
.jackpot { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 5vw, 56px); align-items: center; }
@media (max-width: 760px) { .jackpot { grid-template-columns: 1fr; } }
.jackpot-amt { font-family: var(--display); font-size: clamp(4rem, 13vw, 8rem); line-height: 1; color: var(--yellow); text-shadow: 6px 6px 0 var(--pink); }
.meter { height: 14px; background: var(--ink-3); border-radius: 999px; overflow: hidden; border: 2px solid var(--line); margin: 14px 0 6px; max-width: 420px; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--yellow)); }
.meter-labels { display: flex; justify-content: space-between; max-width: 420px; font-size: .85rem; color: var(--muted); }

/* Bracket */
.bracket { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: center; }
@media (max-width: 860px) { .bracket { grid-template-columns: 1fr; } }
.round h3 { color: var(--cyan); font-family: var(--body); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 10px; }
.match { background: var(--ink); border: 2px solid var(--line); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.match div { display: flex; gap: 10px; padding: 10px 14px; font-weight: 700; }
.match div + div { border-top: 1px solid var(--line); }
.match b { color: var(--pink); font-family: var(--display); font-weight: 400; min-width: 1.6em; }
.match .tbd { color: var(--muted); font-weight: 400; font-style: italic; }
.match.final { border-color: var(--yellow); }

/* Timeline */
.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: ph; }
@media (max-width: 960px) { .phases { grid-template-columns: 1fr; } }
.phases li { counter-increment: ph; background: var(--ink-2); border: 2px solid var(--line); border-radius: 14px; padding: 18px; position: relative; }
.phases li::before { content: counter(ph); font-family: var(--display); color: var(--pink); font-size: 1.6rem; display: block; line-height: 1; margin-bottom: 8px; }
.phases strong { display: block; color: var(--yellow); margin-bottom: 4px; }
.phases span { font-size: .93rem; color: #dcd4f5; }
.phases li.done { border-color: var(--cyan); }

/* Prose (rules, privacy, news) */
.doc { display: grid; grid-template-columns: 230px 1fr; gap: clamp(24px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; } .toc { position: static !important; } }
.doc > *, .grid-2 > *, .hero-grid > * { min-width: 0; }
.toc { position: sticky; top: 88px; border-left: 2px solid var(--line); padding-left: 16px; font-size: .93rem; }
.toc a { display: block; color: var(--muted); text-decoration: none; padding: 5px 0; font-weight: 600; }
.toc a:hover { color: var(--yellow); }
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2em; padding-top: .3em; scroll-margin-top: 90px; color: var(--yellow); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--body); font-weight: 700; font-size: 1.15rem; margin-top: 1.6em; color: var(--cyan); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose .table-scroll { margin: 1.2em 0; }
.note { border-left: 4px solid var(--pink); background: var(--ink-2); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 1.2em 0; }
.note p:last-child { margin: 0; }
.credit { font-size: .9rem; color: var(--muted); }

.post { border-bottom: 2px solid var(--line); padding: 32px 0; scroll-margin-top: 90px; }
.post:first-child { padding-top: 0; }
.post:last-child { border-bottom: 0; }
.post time { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.post h2, .post h3 { font-size: clamp(1.3rem, 2.8vw, 1.8rem); margin: .3em 0 .6em; font-family: var(--display); color: var(--paper); }

/* Footer */
.site-footer { border-top: 2px solid var(--line); padding: 40px 0 48px; background: var(--ink-2); font-size: .95rem; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 8px 22px; flex-wrap: wrap; }
.footer-links a { color: var(--paper); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--yellow); }
.site-footer p { margin: 6px 0 0; color: var(--muted); max-width: 46ch; }

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