:root {
  --tile: #D9EEE7; --grout: #BCD8CF; --tile-hi: #EAF7F2;
  --ink: #2E1F16; --ink-soft: #5E4A3C; --cream: #FFF8EE; --card: #FFFBF4;
  --poop: #7A4A22; --gold: #FFD23F; --tomato: #E4572E; --royal: #3957C8; --mat: #A58BC0; --mat-dark: #7B5E96; --water: #4FB3DF;
  --display: "Lilita One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --body: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5;
  background-color: var(--tile);
  background-image:
    linear-gradient(var(--grout) 5px, transparent 5px),
    linear-gradient(90deg, var(--grout) 5px, transparent 5px);
  background-size: 88px 88px; background-position: -2px -2px;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--royal); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: 0.01em; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(1160px, 100%); margin: 0 auto; padding-inline: var(--gutter); }

/* sticker primitives */
.sticker { background: var(--card); border: 4px solid var(--ink); border-radius: 22px; box-shadow: 7px 7px 0 var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  font-family: var(--display); font-size: clamp(22px, 3.2vw, 30px); line-height: 1; color: var(--ink);
  background: var(--gold); border: 4px solid var(--ink); border-radius: 18px; box-shadow: 6px 6px 0 var(--ink);
  padding: 16px 28px 13px; transition: transform .12s ease, box-shadow .12s ease; cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.btn.small { font-size: 18px; padding: 9px 16px 7px; border-width: 3px; border-radius: 12px; box-shadow: 4px 4px 0 var(--ink); }
.btn .arrow { font-size: 0.8em; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 4px solid var(--ink); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px; }
.bar img { height: 40px; width: auto; }
.bar nav { display: flex; align-items: center; gap: clamp(10px, 2.2vw, 26px); }
.bar nav a.link { font-weight: 800; text-decoration: none; font-size: 15px; }
.bar nav a.link:hover { text-decoration: underline; text-decoration-thickness: 3px; }
@media (max-width: 640px) {
  /* phones: logo + Play on the first row, the page links in a second row underneath */
  .bar .wrap { flex-wrap: wrap; row-gap: 4px; padding-block: 6px; }
  .bar img { height: 34px; }
  .bar nav { display: contents; }
  .bar nav .btn { order: 1; }
  .bar nav a.link { order: 2; font-size: 14px; }
  .bar nav a.link:first-of-type { margin-left: 0; }
  .bar .wrap::after { content: ''; order: 1; flex-basis: 100%; height: 0; }
  .bar nav a.link.hide-sm { display: inline; }
}

/* hero */
.hero { padding-block: clamp(28px, 6vw, 64px) clamp(36px, 7vw, 80px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 18px; justify-items: start; }
.hero-copy .logo { width: min(520px, 100%); margin-left: -10px; filter: drop-shadow(0 6px 0 rgba(46,31,22,.18)); }
.hero-copy .pitch { font-family: var(--display); font-size: clamp(30px, 4.6vw, 52px); line-height: 1.02; }
.hero-copy .pitch em { font-style: normal; color: var(--tomato); }
.hero-copy .lede { font-size: clamp(17px, 1.9vw, 20px); font-weight: 600; color: var(--ink-soft); max-width: 36ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.cta-note { font-weight: 800; font-size: 14px; color: var(--ink-soft); }
.tv { position: relative; padding: 10px; border-radius: 26px; background: var(--ink); box-shadow: 10px 10px 0 var(--poop); transform: rotate(1.2deg); }
.tv video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: #1b120d; object-fit: cover; }
.sound {
  position: absolute; right: 22px; bottom: 22px; font: 800 14px var(--body); color: var(--ink); background: var(--cream);
  border: 3px solid var(--ink); border-radius: 999px; padding: 5px 14px 3px; box-shadow: 3px 3px 0 var(--ink); cursor: pointer;
}
.badge-free { position: absolute; left: -18px; top: -22px; width: 104px; height: 104px; display: grid; place-items: center; text-align: center;
  font-family: var(--display); font-size: 25px; line-height: .9; color: var(--ink); background: var(--gold); border: 4px solid var(--ink); border-radius: 50%;
  box-shadow: 4px 4px 0 var(--ink); transform: rotate(-12deg); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { justify-items: center; text-align: center; }
  .hero-copy .logo { margin-left: 0; }
  .hero-copy .lede { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .tv { transform: none; }
  .badge-free { width: 84px; height: 84px; font-size: 20px; left: -6px; top: -18px; }
}

/* facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fact { padding: 16px 16px 14px; text-align: center; display: grid; gap: 2px; }
.fact b { font-family: var(--display); font-weight: 400; font-size: clamp(38px, 5vw, 56px); line-height: 1; color: var(--poop); font-variant-numeric: tabular-nums; }
.fact span { font-weight: 800; font-size: 15px; line-height: 1.2; }
.fact:nth-child(2) { transform: rotate(-1.5deg); } .fact:nth-child(3) { transform: rotate(1deg); }
@media (max-width: 720px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact:nth-child(n) { transform: none; } }

/* sections */
section.block { padding-block: clamp(44px, 8vw, 96px) 0; }
.head { display: grid; gap: 10px; margin-bottom: clamp(20px, 3vw, 32px); max-width: 720px; }
.eyebrow { justify-self: start; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; background: var(--ink); color: var(--cream); border-radius: 999px; padding: 4px 14px 2px; }
.head h2 { font-size: clamp(36px, 5.6vw, 64px); }
.head p { font-size: clamp(17px, 1.8vw, 19px); font-weight: 600; color: var(--ink-soft); }

/* weapons */
.weapons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.weapon { margin: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.weapon video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #1b120d; border-bottom: 4px solid var(--ink); }
.weapon figcaption { padding: 10px 14px 13px; display: grid; gap: 2px; align-content: start; }
.weapon figcaption b { font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.05; }
.weapon figcaption span { font-size: 14.5px; line-height: 1.35; color: var(--ink-soft); font-weight: 600; }
.weapons-foot { margin-top: 18px; font-weight: 800; }
@media (max-width: 980px) { .weapons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .weapons { grid-template-columns: 1fr; } }

/* split rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 4vw, 48px); align-items: center; }
.split.flip > :first-child { order: 2; }
.frame { padding: 8px; border-radius: 22px; background: var(--ink); box-shadow: 8px 8px 0 var(--poop); }
.frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 15px; background: #1b120d; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.bubbles { display: flex; flex-wrap: wrap; gap: 14px 12px; margin-top: 18px; }
.bubble { position: relative; background: var(--cream); border: 4px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); padding: 8px 16px 6px; font-weight: 800; font-size: 17px; line-height: 1.2; }
.bubble::after { content: ''; position: absolute; left: 22px; bottom: -14px; border: 7px solid transparent; border-top: 9px solid var(--ink); }
.bubble:nth-child(2n) { transform: rotate(-2deg); } .bubble:nth-child(3n) { transform: rotate(1.5deg); }
.fine { margin-top: 14px; font-size: 14.5px; color: var(--ink-soft); font-weight: 600; }

/* ways to play */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mode { padding: 18px 20px 20px; display: grid; gap: 6px; align-content: start; }
.mode h3 { font-size: 26px; }
.mode p { font-size: 16px; color: var(--ink-soft); font-weight: 600; }
.mode .tag { justify-self: start; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 1px 10px 0; border-radius: 999px; border: 2.5px solid var(--ink); }
.tag.live { background: #9FE0B2; } .tag.new { background: var(--gold); } .tag.soon { background: #D9C9F2; }
@media (max-width: 900px) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .modes { grid-template-columns: 1fr; } }

/* faq */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-size: clamp(21px, 2.6vw, 25px); padding: 12px 34px 10px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 8px; font-size: 30px; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding-bottom: 16px; font-weight: 600; color: var(--ink-soft); }

/* finale */
.finale { margin-top: clamp(56px, 9vw, 110px); background: var(--mat); border-top: 5px solid var(--ink); position: relative; }
.finale::before { content: ''; position: absolute; inset: -18px 0 auto; height: 18px; background: radial-gradient(circle at 12px 18px, var(--mat) 11px, transparent 12px) 0 0 / 24px 18px repeat-x; }
.finale .wrap { padding-block: clamp(40px, 7vw, 72px) clamp(34px, 5vw, 56px); display: grid; justify-items: center; text-align: center; gap: 18px; }
.finale h2 { font-size: clamp(40px, 7vw, 84px); color: var(--cream); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); }
.finale p { font-weight: 700; color: #2E1F16; font-size: 18px; }
.follow { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.follow a { font-weight: 800; text-decoration: none; background: var(--cream); border: 3px solid var(--ink); border-radius: 999px; padding: 5px 16px 3px; box-shadow: 3px 3px 0 var(--ink); }
footer { background: var(--water); border-top: 5px solid var(--ink); color: var(--ink); }
footer .wrap { padding-block: 22px calc(22px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 14px; font-weight: 700; }

/* ---- multi-page additions ---- */
.bar nav a.link[aria-current] { text-decoration: underline; text-decoration-thickness: 3px; }
.page-top { padding-top: clamp(24px, 5vw, 48px); }
.page-h1 { font-size: clamp(38px, 6vw, 66px); }
.crumbs { font-size: 14px; font-weight: 700; color: var(--ink-soft); margin-bottom: 14px; }
.crumbs a { color: var(--ink-soft); }
.wrap.narrow { width: min(820px, 100%); }
.lede-sm { font-size: clamp(18px, 2vw, 21px); font-weight: 700; }

/* home: weapon cards are links */
.weapon .wlink { text-decoration: none; color: inherit; display: grid; grid-template-rows: auto 1fr; height: 100%; }
.weapon .wlink:hover b { text-decoration: underline; }

/* coming-soon modes */
.soon { margin-top: 18px; padding: 18px 20px 20px; background: var(--ink); color: var(--cream); border-color: var(--ink); }
.soon h3 { font-size: 26px; color: var(--gold); margin-bottom: 10px; }
.soon ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px 18px; }
.soon li b { display: block; font-family: var(--display); font-weight: 400; font-size: 19px; }
.soon li span { font-size: 14.5px; opacity: .85; }

/* weapons index + pages */
.catjump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.catjump a { font-weight: 800; font-size: 14px; text-decoration: none; background: var(--cream); border: 3px solid var(--ink); border-radius: 999px; padding: 4px 14px 2px; box-shadow: 3px 3px 0 var(--ink); }
.wgroup { margin-bottom: 34px; scroll-margin-top: 80px; }
.wgroup h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.wgroup h2 small { font-family: var(--body); font-size: 16px; color: var(--ink-soft); }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.wcard { display: grid; gap: 4px; align-content: start; text-decoration: none; overflow: hidden; padding-bottom: 12px; }
.wcard img, .wcard video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 4px solid var(--ink); background: #1b120d; }
.wcard b { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.05; padding: 8px 12px 0; }
.wcard span { font-size: 14px; line-height: 1.35; color: var(--ink-soft); font-weight: 600; padding: 0 12px; }
.wcard:hover b { text-decoration: underline; }
.weapon-page { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 44px); align-items: center; }
.wnav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 30px; font-weight: 800; }
.wnav a { text-decoration: none; background: var(--cream); border: 3px solid var(--ink); border-radius: 12px; padding: 6px 14px 4px; box-shadow: 3px 3px 0 var(--ink); }
.more { margin-top: 30px; }
.more h2 { font-size: 26px; margin-bottom: 10px; }
.more-links { display: flex; flex-wrap: wrap; gap: 8px; }
.more-links a { font-weight: 700; background: var(--card); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px 1px; text-decoration: none; }
@media (max-width: 820px) { .weapon-page { grid-template-columns: 1fr; } }

/* blog */
.plist { display: grid; gap: 16px; }
.pcard { display: grid; gap: 6px; padding: 18px 20px; text-decoration: none; }
.pcard h2 { font-size: clamp(24px, 3vw, 32px); }
.pcard p { color: var(--ink-soft); font-weight: 600; }
.pcard:hover h2 { text-decoration: underline; }
.meta { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.post header { display: grid; gap: 10px; margin-bottom: 22px; }
.prose { background: var(--card); border: 4px solid var(--ink); border-radius: 22px; box-shadow: 7px 7px 0 var(--ink); padding: clamp(18px, 4vw, 36px); display: grid; gap: 16px; font-size: 18px; line-height: 1.6; }
.prose h2 { font-size: clamp(26px, 3.4vw, 34px); margin-top: 10px; }
.prose h3 { font-size: 22px; }
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose a { color: var(--royal); font-weight: 700; }
.prose kbd { font-family: ui-monospace, Menlo, monospace; font-size: .85em; background: var(--cream); border: 2px solid var(--ink); border-bottom-width: 3px; border-radius: 6px; padding: 0 6px; }
.prose figure { margin: 0; }
.prose figure video { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; border: 3px solid var(--ink); background: #1b120d; }
.prose figcaption { font-size: 14px; color: var(--ink-soft); font-weight: 700; margin-top: 6px; }
.post-cta { margin-top: 24px; justify-content: center; }

/* footer links */
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; }
.foot-links a { font-weight: 800; }

/* Game modes + voices pages */
.tag { display: inline-block; font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 1px 10px 0; border-radius: 999px; border: 2.5px solid var(--ink); color: var(--ink); vertical-align: middle; }
.wcard .tag { justify-self: start; margin: 2px 12px 2px; font-size: 11px; padding: 0 8px; }
.soon li a { color: var(--gold); text-decoration: none; } .soon li a:hover b { text-decoration: underline; }
.mode-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 28px 0 18px; }
.mode-body h2 { font-size: 28px; margin-bottom: 8px; }
.mode-body p, .tips { font-size: 17px; line-height: 1.5; font-weight: 600; }
.tips { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
@media (max-width: 760px) { .mode-body { grid-template-columns: 1fr; } }
.voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin-bottom: 18px; }
.voice { margin: 0; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.voice video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #1b120d; border-bottom: 4px solid var(--ink); display: block; }
.voice figcaption { padding: 10px 14px 13px; display: grid; gap: 2px; }
.voice figcaption b { font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.05; }
.voice figcaption span { font-size: 14.5px; color: var(--ink-soft); font-weight: 600; }
.voice figcaption small { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
@media (max-width: 900px) { .hide-sm { display: none; } }
.cta-alt { font-weight: 800; font-size: 16px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.cta-alt:hover { text-decoration-thickness: 3px; }
.finale .cta-alt { color: inherit; }

/* 404 */
.lost { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.lost-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-weight: 800; }
@media (max-width: 820px) { .lost { grid-template-columns: 1fr; } }
