:root {
  --bg: #1a1222; --bg-2: #221830; --panel: #2a1f3a; --panel-2: #33264a; --line: #4a3a63;
  --ink: #f4ead8; --ink-2: #cfc1dd; --muted: #a998bd;
  --lime: #b6f24a; --lime-deep: #8bc32a; --lilac: #c69cff; --violet: #7a3fd1; --gold: #ffc93c; --rose: #ff7a8a; --teal: #1aa597;
  --murky: #7c7a3a; --bubbly: #3d8fe0; --glowing: #b6dd2c; --enchanted: #9a55e8; --primordial: #ffb92e;
  --pixel: 'Jersey 10', ui-monospace, monospace; --body: 'Nunito Sans', system-ui, sans-serif;
  --radius: 4px; --wrap: 1180px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; font: 17px/1.65 var(--body); color: var(--ink); background-color: var(--bg);
  background-image: repeating-linear-gradient(90deg, transparent 0 118px, rgba(0,0,0,.22) 118px 122px), linear-gradient(180deg, #241933 0, var(--bg) 640px);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: #d7ff8a; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--pixel); font-weight: 400; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .02em; }
h2 { font-size: clamp(2rem, 4vw, 2.7rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 860px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px;
  font: 400 1.2rem/1 var(--pixel); letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  background: var(--panel-2); border: 3px solid #120c19; border-radius: var(--radius); box-shadow: inset 0 -4px 0 rgba(0,0,0,.35); cursor: pointer;
}
.button:hover { color: var(--ink); filter: brightness(1.15); }
.button-primary { background: var(--lime); color: #17200a; }
.button-primary:hover { color: #17200a; }
.button-small { min-height: 38px; padding: 6px 12px; font-size: 1.1rem; white-space: nowrap; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0; }

/* Header */
.masthead { position: sticky; top: 0; z-index: 10; background: rgba(20,13,28,.94); backdrop-filter: blur(8px); border-bottom: 3px solid #0e0914; }
.masthead-inner { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.brand { display: inline-flex; align-items: baseline; text-decoration: none; font: 400 2.04rem/1 var(--pixel); letter-spacing: .04em; }
.brand-jinx { color: var(--lime); text-shadow: 3px 3px 0 var(--violet); }
.brand-ed { color: var(--lilac); text-shadow: 3px 3px 0 #4b2585; }
.brand-game { margin-left: 8px; font-size: 1.05rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .12em; }
.primary { display: flex; gap: 4px; margin-left: auto; }
.primary a { color: var(--ink-2); text-decoration: none; font: 400 1.2rem var(--pixel); padding: 8px 12px; border-radius: var(--radius); }
.primary a:hover, .primary a[aria-current] { color: var(--ink); background: var(--panel); }
.button-play { min-height: 42px; background: var(--lime); color: #17200a; }
.button-play:hover { color: #17200a; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 480px); grid-template-areas: "title game" "copy game"; grid-template-rows: auto 1fr; column-gap: 48px; align-items: start; padding: 40px 0 56px; }
.hero-title { grid-area: title; } .hero-copy { grid-area: copy; } .game { grid-area: game; }
.eyebrow { font: 400 1.05rem/1.3 var(--pixel); color: var(--gold); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(3.4rem, 9vw, 6.6rem); color: var(--lime); text-shadow: 5px 5px 0 var(--violet); margin-bottom: .3em; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.lede em { color: var(--lilac); font-style: normal; font-weight: 800; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.facts div { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); padding: 10px 16px; min-width: 110px; }
.facts dt { font-size: .875rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: 0; font: 400 1.92rem/1.2 var(--pixel); color: var(--ink); }
.daily-pill { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; max-width: 460px; padding: 14px 18px; background: #1b4f8f; border: 3px solid #0d2a4e; border-radius: var(--radius); box-shadow: inset 0 -4px 0 rgba(0,0,0,.3); color: #fff; text-decoration: none; font: 400 1.26rem var(--pixel); }
.daily-pill:hover { color: #fff; filter: brightness(1.1); }
.daily-pill strong { color: var(--gold); }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.quick-start { margin: 28px 0 0; padding: 18px 20px; background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); max-width: 560px; }
.quick-start h2 { font-size: 1.6rem; color: var(--gold); margin-bottom: 10px; }
.quick-start ol { margin: 0; padding-left: 22px; color: var(--ink-2); }
.quick-start li { margin: 6px 0; }
.quick-start strong { color: var(--ink); }

/* Game window */
.game { background: #120c19; border: 3px solid #0b0710; border-radius: 8px; box-shadow: 0 0 0 3px var(--line), 0 24px 60px rgba(0,0,0,.55); overflow: hidden; scroll-margin-top: 76px; }
.game-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 14px; background: var(--panel); }
.game-title { margin: 0; font: 400 1.14rem var(--pixel); color: var(--ink); display: flex; align-items: center; gap: 8px; }
.live-dot { width: 10px; height: 10px; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.game-actions { display: flex; gap: 8px; }
.game-screen { position: relative; height: min(820px, calc(100svh - 130px)); min-height: 620px; background: var(--bg); }
.game-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.game-screen:fullscreen { height: 100%; }
.game-credit { margin: 0; padding: 8px 14px; font-size: .875rem; color: var(--muted); background: var(--panel); }

/* Bands on home */
.band { padding: 48px 0; border-top: 3px dashed rgba(198,156,255,.18); }
.band-more { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-weight: 700; }
.step-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-grid li { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step-grid strong { display: block; font: 400 1.38rem var(--pixel); margin: 10px 0 6px; }
.step-grid p { color: var(--ink-2); margin: 0; font-size: 1rem; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; background: var(--lime); color: #17200a; font: 400 1.44rem var(--pixel); }
.shelf { list-style: none; margin: 24px 0 0; padding: 0 12px 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; border-bottom: 14px solid #6b4426; box-shadow: 0 6px 0 #3b2414; }
.shelf li { text-align: center; display: grid; justify-items: center; gap: 2px; }
.shelf img { width: 84px; image-rendering: pixelated; border-radius: 6px; }
.shelf strong { font: 400 1.26rem var(--pixel); }
.shelf span { font: 400 1.56rem var(--pixel); color: var(--gold); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; }
.teaser { display: grid; gap: 12px; }
.teaser-item { background: var(--panel); border-left: 6px solid var(--lilac); padding: 14px 16px; border-radius: var(--radius); }
.teaser-item p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.teaser-prompt { font: 400 1.32rem var(--pixel); color: var(--ink) !important; margin-bottom: 4px !important; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: inset 0 -4px 0 rgba(0,0,0,.25); }
.cards a:hover { border-color: var(--lime); color: var(--ink); }
.card-kicker { font: 400 1.05rem var(--pixel); color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.cards strong { font: 400 1.5rem/1.2 var(--pixel); }
.card-text { color: var(--ink-2); font-size: 1rem; }

/* FAQ, sources */
.faq { margin: 40px 0 24px; }
.faq details { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 800; list-style-position: outside; }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--ink-2); }
.sources { margin-top: 36px; font-size: 1rem; }
.sources h2 { font-size: 1.6rem; }
.sources ul { padding-left: 20px; }
.disclaimer { color: var(--muted); font-size: .95rem; padding-bottom: 48px; }

/* Articles */
.article { padding: 24px 0 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .95rem; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--ink-2); }
.article-head { max-width: 820px; }
.article-head h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); color: var(--lime); text-shadow: 4px 4px 0 var(--violet); }
.updated { font-size: .95rem; color: var(--muted); }
.key-points { max-width: 820px; background: var(--panel); border: 2px solid var(--line); border-left: 6px solid var(--gold); border-radius: var(--radius); padding: 14px 20px; margin: 16px 0 32px; }
.key-points ul { margin: 0; padding-left: 20px; }
.key-points li { margin: 4px 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.article-layout.wide { grid-template-columns: minmax(0, 1fr); }
.article-body { min-width: 0; max-width: 820px; }
.article-layout.wide .article-body { max-width: none; }
.article-body > section { margin-bottom: 40px; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin: 6px 0; }
.steps { padding-left: 0 !important; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; margin: 14px 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; background: var(--lime); color: #17200a; font: 400 1.32rem var(--pixel); }
.side { position: sticky; top: 90px; display: grid; gap: 16px; }
.toc, .side-play { background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.toc-head, .side-play p { font: 400 1.2rem var(--pixel); margin: 0 0 8px; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 6px 0; font-size: .95rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--lime); }
.related { margin-top: 24px; }
.shot { margin: 24px 0; max-width: 280px; }
.shot img { display: block; border: 3px solid #0b0710; border-radius: 8px; box-shadow: 0 0 0 3px var(--line); }
.shot figcaption { font-size: .95rem; color: var(--muted); margin-top: 10px; }
.table-wrap { overflow-x: auto; margin: 16px 0 20px; border: 2px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
caption { text-align: left; padding: 10px 14px; color: var(--muted); font-size: .95rem; caption-side: top; }
th, td { padding: 10px 14px; text-align: left; border-top: 1px solid var(--line); vertical-align: middle; }
thead th { background: var(--panel-2); font: 400 1.14rem var(--pixel); text-transform: uppercase; letter-spacing: .05em; border-top: 0; }
tbody th { font-weight: 800; }
.picks td:last-child { min-width: 240px; color: var(--ink-2); }
.potion { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -1px; border: 2px solid #0b0710; }
.potion-murky { background: var(--murky); } .potion-bubbly { background: var(--bubbly); } .potion-glowing { background: var(--glowing); }
.potion-enchanted { background: var(--enchanted); } .potion-primordial { background: #111; box-shadow: inset 0 3px 0 var(--primordial); }
.chip { display: inline-flex; align-items: center; white-space: nowrap; font: 400 1.05rem var(--pixel); text-transform: uppercase; letter-spacing: .04em; }
.chip-murky { color: #d8d48a; } .chip-bubbly { color: #8cc4ff; } .chip-glowing { color: var(--lime); } .chip-enchanted { color: var(--lilac); } .chip-primordial { color: var(--primordial); }
.today-card { background: linear-gradient(135deg, #1b4f8f, #2a1f3a); border: 3px solid #0d2a4e; border-radius: 8px; padding: 22px; }
.today-card p { margin: 0 0 6px; }
.today-num { font: 400 1.92rem var(--pixel); }
.today-num strong, .today-reset strong { color: var(--gold); }
.today-reset { font: 400 1.44rem var(--pixel); }
.today-local { color: var(--ink-2); }

/* Answers */
.brews-tools { position: relative; margin-bottom: 24px; }
.today-note { background: var(--panel); border-left: 6px solid var(--lilac); padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; }
.today-note p { margin: 4px 0; }
.filter { display: grid; gap: 6px; max-width: 520px; font-weight: 800; }
.filter input { font: inherit; font-weight: 400; color: var(--ink); background: #120c19; border: 3px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-height: 50px; }
.filter input:focus { border-color: var(--lime); outline: none; }
.filter-status { min-height: 1.5em; color: var(--muted); margin: 8px 0; font-size: .95rem; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { font: 400 1.14rem var(--pixel); text-decoration: none; padding: 6px 10px; background: var(--panel); border: 2px solid var(--line); border-radius: var(--radius); color: var(--ink-2); }
.jump a:hover { color: var(--lime); border-color: var(--lime); }
.brew-day { background: rgba(42,31,58,.75); border: 2px solid var(--line); border-radius: 8px; padding: 22px; margin-bottom: 24px; scroll-margin-top: 84px; }
.brew-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; border-bottom: 2px dashed var(--line); margin-bottom: 18px; }
.brew-head h2 { font-size: 2rem; color: var(--lime); margin-bottom: 8px; }
.brew-head h2 span { display: inline-block; color: var(--ink-2); font-size: 1.3rem; margin-left: 8px; }
.brew-head p { margin-bottom: 12px; color: var(--ink-2); font-size: 1rem; }
.brew-prompt { margin-bottom: 22px; }
.brew-prompt h3 { display: flex; gap: 12px; align-items: baseline; font-size: 1.55rem; }
.prompt-num { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; background: var(--lilac); color: #1a1222; font-size: 1rem; }
.brew-prompt > p { color: var(--ink-2); font-size: 1rem; }
.brew-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.answers { list-style: none; margin: 0; padding: 0 !important; }
.answers li { display: grid; grid-template-columns: minmax(0, 1fr) auto 72px; align-items: center; gap: 10px; padding: 7px 10px; margin: 0 !important; border-bottom: 1px solid rgba(74,58,99,.6); font-size: 1rem; }
.answer-name { font-weight: 700; overflow-wrap: anywhere; }
.answer-count { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* 404 */
.missing { text-align: center; padding: 72px 0; }
.missing img { width: 90px; image-rendering: pixelated; }
.missing h1 { font-size: clamp(2.6rem, 7vw, 4rem); color: var(--lime); text-shadow: 4px 4px 0 var(--violet); }
.missing .lede { margin-inline: auto; }
.missing .actions { justify-content: center; }

/* Footer */
.footer { border-top: 3px solid #0e0914; background: #120c19; padding: 40px 0 24px; font-size: 1rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand { font: 400 1.8rem var(--pixel); color: var(--lime); }
.footer-brand span { color: var(--ink-2); font-size: 1.05rem; margin-left: 8px; text-transform: uppercase; letter-spacing: .1em; }
.footer-about p:last-child { color: var(--muted); }
.footer nav { display: grid; gap: 8px; align-content: start; }
.footer nav a { color: var(--ink-2); }
.footer-head { font: 400 1.2rem var(--pixel); color: var(--gold); text-transform: uppercase; letter-spacing: .08em; margin: 0; }
.footer-base { margin-top: 24px; color: var(--muted); font-size: .95rem; }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "title" "game" "copy"; row-gap: 20px; }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .article-layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .toc { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .primary { display: none; }
  .masthead-inner { justify-content: space-between; min-height: 58px; }
  .hero { padding-top: 16px; row-gap: 14px; }
  .hero h1 { font-size: 3.1rem; text-shadow: 3px 3px 0 var(--violet); }
  .hero-title .eyebrow { margin-bottom: 6px; }
  .game { margin-inline: -16px; border-radius: 0; box-shadow: none; border-inline: 0; }
  .game-screen { height: calc(100svh - 170px); min-height: 560px; }
  .game-bar { padding: 6px 8px 6px 12px; }
  .game-title-long { display: none; }
  .hero h1 { margin-bottom: 0; }
  .step-grid { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding-inline: 0; }
  .shelf img { width: 56px; }
  .shelf strong { font-size: 1.05rem; }
  .shelf span { font-size: 1.2rem; }
  .brew-day { padding: 16px; }
  .brew-cols { grid-template-columns: 1fr; gap: 8px; }
  .answers li { grid-template-columns: minmax(0, 1fr) auto 60px; padding: 7px 4px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .shot { max-width: 300px; }
}
.game-title-long { color: var(--muted); }
