/* BuzzGoing — arcade-flavoured quiz grid. Near-black chrome, electric yellow
   brand mark, per-category accent strips, chunky rounded cards. Built to sit
   apart from any sibling template: dark bands + yellow, not cream or magenta. */

:root {
  --bg: #F7F7FB;
  --ink: #14141C;
  --ink-soft: #62627A;
  --line: #E6E6F0;
  --panel: #FFFFFF;
  --band: #12121A;
  --brand: #FFC93C;
  --brand-ink: #12121A;
  --c-character: #FF4D6D;
  --c-worlds: #00C2A8;
  --c-arcade: #7B5CFF;
  --c-trivia: #FFA400;
  --c-vibe: #2E9BFF;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20,20,28,.05), 0 12px 26px -18px rgba(20,20,28,.35);
  --shadow-lift: 0 14px 30px -12px rgba(20,20,28,.3);
  --disp: "Poppins", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--disp); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- header */
.topbar { background: var(--band); color: #fff; position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; gap: 22px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-weight: 900; font-size: 21px; letter-spacing: -.03em; color: #fff; }
.logo svg { width: 32px; height: 32px; }
.logo b { color: var(--brand); }
.mainnav { display: flex; gap: 2px; margin-left: auto; }
.mainnav a { padding: 8px 13px; border-radius: 9px; font-size: 14px; font-weight: 700; color: #C9C9DA; transition: color .15s, background .15s; }
.mainnav a:hover { color: var(--band); background: var(--brand); }
.mainnav a.is-active { color: var(--band); background: var(--brand); }
.burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid #33334A; border-radius: 10px; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 17px; height: 2.5px; background: #fff; border-radius: 2px; position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.mobilenav { display: none; flex-direction: column; padding: 6px 20px 14px; background: var(--band); }
.mobilenav a { padding: 11px 4px; font-weight: 700; color: #E4E4F0; border-bottom: 1px solid #2A2A3C; }
.mobilenav a:last-child { border-bottom: 0; }
.mobilenav.open { display: flex; }
@media (max-width: 880px) { .mainnav { display: none; } .burger { display: flex; } }

/* ---------------------------------------------------------------- cards */
.tile { position: relative; overflow: hidden; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #EDEDF7, #F8F4E8); }
.tile .tile-emoji { font-size: 42px; }
.tile img { width: 100%; height: 100%; object-fit: cover; }

.qcard { position: relative; background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); transition: transform .16s ease, box-shadow .16s ease; }
.qcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.qcard .tile { border-radius: 0; aspect-ratio: 4 / 3; }
.qcard-body { padding: 12px 15px 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; border-top: 4px solid var(--cat, var(--brand)); }
.qcard-cat { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; color: var(--cat, var(--ink-soft)); }
.qcard-title { font-family: var(--disp); font-size: 15.5px; font-weight: 700; line-height: 1.28; }
.qcard-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-soft); }
.qcard-go { font-weight: 800; font-size: 12px; color: var(--band); background: var(--brand); padding: 5px 12px; border-radius: 999px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 13px; } }

/* ---------------------------------------------------------------- hero */
.hero { background: var(--band); color: #fff; padding: 44px 0 38px; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 34px; align-items: center; }
@media (max-width: 880px) { .hero-inner { grid-template-columns: 1fr; gap: 22px; } }
.hero-kicker { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--band); background: var(--brand); border-radius: 999px; padding: 5px 12px; margin-bottom: 15px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 900; margin-bottom: 13px; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-lead { font-size: 16.5px; color: #B9B9CE; max-width: 480px; margin-bottom: 20px; }
.hero-cta { display: inline-block; background: var(--brand); color: var(--band); font-family: var(--disp); font-weight: 800; font-size: 15.5px; padding: 13px 25px; border-radius: 12px; transition: transform .1s; }
.hero-cta:hover { transform: translateY(-2px); }
.hero-feature { border-radius: 18px; overflow: hidden; border: 3px solid #26263A; position: relative; }
.hero-feature .tile { aspect-ratio: 4 / 3; border-radius: 0; }
.hero-feature .tile-emoji { display: none; }
.hero-feature-cap { position: absolute; inset: auto 0 0 0; padding: 38px 18px 15px; background: linear-gradient(transparent, rgba(8,8,14,.92)); }
.hero-feature-cap .tag { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.hero-feature-cap h2 { color: #fff; font-size: 19px; margin-top: 4px; }

/* category pill strip (buzz-style tab row) */
.catstrip { display: flex; flex-wrap: wrap; gap: 9px; }
.catchip { display: inline-flex; align-items: center; gap: 7px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--brand)); border-radius: 11px; padding: 9px 15px; font-weight: 700; font-size: 14px; transition: transform .12s, box-shadow .12s; }
.catchip:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.catchip-emoji { font-size: 17px; }

/* ---------------------------------------------------------------- sections */
.section { padding: 32px 0 6px; }
.section-head { display: flex; align-items: baseline; gap: 11px; margin-bottom: 15px; }
.section-head h2 { font-size: 21px; }
.section-head .kicker { font-size: 13px; color: var(--ink-soft); }
.section-head .see-all { margin-left: auto; font-weight: 700; font-size: 13.5px; color: var(--ink-soft); }
.page-pad { height: 40px; }

/* ---------------------------------------------------------------- detail */
.crumbs { padding: 18px 0 0; font-size: 13px; color: var(--ink-soft); display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.crumbs .sep { opacity: .5; }
.detail-layout { display: grid; grid-template-columns: 1fr 296px; gap: 30px; margin: 0 auto; max-width: 1140px; align-items: start; }
@media (max-width: 940px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-main { min-width: 0; }
.quiz-head { margin: 14px 0 14px; }
.quiz-head h1 { font-size: clamp(24px, 3.6vw, 34px); }
.quiz-sub { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.pill { font-size: 12px; font-weight: 700; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; color: var(--ink-soft); }
.quiz-hero { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.quiz-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.quiz-hero--slim img { aspect-ratio: 4 / 3; }
.quiz-intro { margin: 18px 0 0; }
.quiz-intro p { margin-bottom: 12px; font-size: 16.5px; }

.qblock { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 16px; margin-top: 16px; border-top: 4px solid var(--accent, var(--brand)); }
.qblock-num { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent, var(--ink-soft)); }
.qblock-q { font-family: var(--disp); font-weight: 700; font-size: 17.5px; margin: 6px 0 13px; line-height: 1.3; }
.opts { display: grid; gap: 9px; }
.opt { text-align: left; background: #FBFBFE; border: 1.5px solid var(--line); border-radius: 11px; padding: 12px 14px; font: inherit; font-size: 15px; cursor: pointer; transition: border-color .12s, background .12s, transform .12s; }
.opt:hover { border-color: var(--accent, var(--brand)); background: #fff; }
.opt[aria-pressed="true"] { border-color: var(--accent, var(--brand)); background: #fff; box-shadow: inset 0 0 0 2px var(--accent, var(--brand)); }
.quiz-input { width: 100%; padding: 13px 15px; font: inherit; font-size: 16px; border: 1.5px solid var(--line); border-radius: 11px; background: #FBFBFE; }
.quiz-input.needs-answer { border-color: #FF4D6D; }
.quiz-submit-area { margin-top: 20px; }
.bigbtn { display: inline-block; background: var(--brand); color: var(--band); font-family: var(--disp); font-weight: 800; font-size: 16px; padding: 14px 28px; border: 0; border-radius: 12px; cursor: pointer; transition: transform .1s; }
.bigbtn:hover { transform: translateY(-2px); }
.bigbtn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }

/* result */
.rcard { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-top: 16px; }
.rcard-emoji { font-size: 40px; }
.rcard h2 { font-size: 23px; margin: 8px 0 9px; }
.rcard p { font-size: 16.5px; }
.rshare { margin-top: 13px; font-size: 14.5px; color: var(--ink-soft); font-style: italic; }
.result-locked .rcard { opacity: 1; }

.result-guide { margin: 22px 0 4px; font-size: 15.5px; }
.result-guide a { font-weight: 700; color: #7B5CFF; border-bottom: 2px solid rgba(123,92,255,.28); padding-bottom: 2px; }
.result-guide a:hover { border-bottom-color: #7B5CFF; }

/* editorial body */
.editorial { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--line); }
.editorial h1, .editorial h2 { font-size: 20.5px; margin: 24px 0 9px; }
.editorial h1:first-child, .editorial h2:first-child { margin-top: 0; }
.editorial p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.74; }
.editorial-note { background: #FFF8E4; border-left: 3px solid var(--brand); padding: 12px 15px; border-radius: 0 9px 9px 0; font-size: 15.5px; }

/* sidebar */
.detail-rail { position: sticky; top: 84px; }
.side-box { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 15px; margin-bottom: 16px; }
.side-box h3 { font-size: 14.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); margin-bottom: 11px; }
.side-item { display: flex; gap: 11px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.side-item:last-child { border-bottom: 0; }
.side-item-cover { flex: none; width: 64px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; }
.side-item-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
@media (max-width: 940px) { .detail-rail { position: static; } }

/* article + category hero */
.article { max-width: 720px; margin: 0 auto; padding: 26px 0 10px; }
.article h1 { font-size: clamp(25px, 4vw, 35px); margin-bottom: 14px; }
.article-body p { margin-bottom: 14px; font-size: 17px; }
.article-body h2 { font-size: 21px; margin: 26px 0 10px; }
.article-body ul { margin: 0 0 14px 20px; }
.article-body li { margin-bottom: 7px; font-size: 17px; }
.article-meta { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }
.article-sources { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.article-sources h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); margin-bottom: 9px; }
.article-sources li { font-size: 14.5px; margin-bottom: 5px; }
.article-sources a { color: #7B5CFF; }

.cat-hero { max-width: 760px; padding: 34px 0 6px; }
.cat-hero-emoji { font-size: 34px; }
.cat-hero h1 { font-size: clamp(26px, 4vw, 36px); margin: 8px 0 9px; }
.cat-hero p { color: var(--ink-soft); font-size: 17px; }

.post-list { display: grid; gap: 14px; }
.post-card { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; transition: transform .12s, box-shadow .12s; }
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-date { font-size: 12px; color: var(--ink-soft); }
.post-card h3 { font-size: 17.5px; margin: 4px 0 6px; }
.post-card p { font-size: 15px; color: var(--ink-soft); }

/* ads */
.ad-box { margin: 20px 0; text-align: center; }
.ad-tag { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #9A9AB2; margin-bottom: 5px; }

/* footer */
.footer { background: var(--band); color: #C4C4D6; margin-top: 42px; padding: 34px 20px 22px; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 26px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
.footer .logo { color: #fff; margin-bottom: 10px; }
.footer-blurb { font-size: 14.5px; max-width: 380px; }
.footer h4 { font-family: var(--disp); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 9px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 6px; font-size: 14.5px; }
.footer a:hover { color: var(--brand); }
.footer-base { max-width: 1140px; margin: 24px auto 0; padding-top: 16px; border-top: 1px solid #2A2A3C; font-size: 13px; color: #8C8CA6; }

.notfound { text-align: center; padding: 60px 20px 20px; }
.nf-emoji { font-size: 52px; }
.notfound h1 { font-size: 30px; margin: 10px 0; }
.notfound p { color: var(--ink-soft); margin-bottom: 18px; }

.lp-top { padding: 26px 0 4px; text-align: center; }
.lp-grid-wrap { padding: 20px 0 36px; }

/* ---------------------------------------------------------------- interaction */
.opt.picked { border-color: var(--accent, var(--brand)); background: #fff;
  box-shadow: inset 0 0 0 2px var(--accent, var(--brand)); }
.opt.needs-answer, .qblock.needs-answer { border-color: var(--c-character); }

.handoff-overlay { position: fixed; inset: 0; z-index: 999; display: flex;
  align-items: center; justify-content: center; background: rgba(18,18,26,.94);
  opacity: 0; transition: opacity .18s ease; }
.handoff-overlay.on { opacity: 1; }
.handoff-box { text-align: center; color: #fff; }
.handoff-spin { width: 40px; height: 40px; margin: 0 auto 14px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.22); border-top-color: var(--brand);
  animation: hspin .7s linear infinite; }
@keyframes hspin { to { transform: rotate(360deg); } }
.handoff-text { font-family: var(--disp); font-weight: 700; font-size: 16px; letter-spacing: .01em; }

.result-stage .rcard.dimmed { opacity: .55; }
.result-stage .rcard.revealed { border-color: var(--brand); box-shadow: 0 12px 30px -14px rgba(20,20,28,.45); }
.result-banner { display: none; margin-top: 18px; font-family: var(--disp); font-weight: 800;
  font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); }
.others-head { display: none; margin-top: 26px; font-family: var(--disp); font-weight: 800;
  font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft); }

.feedback { display: none; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.feedback-q { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 9px; }
.fb { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 14px;
  font: inherit; font-size: 14px; cursor: pointer; margin-right: 7px; }
.fb:hover { border-color: var(--brand); }
.fb.on { background: var(--brand); border-color: var(--brand); font-weight: 700; }
.feedback-thanks { display: none; margin-top: 9px; font-size: 14px; color: var(--ink-soft); }

@media (prefers-reduced-motion: reduce) {
  .handoff-overlay, .handoff-spin { animation: none; transition: none; }
}
