:root { --night:#111413; --ink:#161d19; --mint:#79edb8; --coral:#ff765b; --paper:#f7f8f5; --muted:#67746b; --line:#dde2dc; --teal:#19734e; --blue:#19734e; }
* { letter-spacing:0; }
body,body.quiz-mode { background:var(--paper); font-family:Inter,Arial,sans-serif; }
h1,h2,h3,.brand,.footer-brand { font-family:'Space Grotesk',Inter,Arial,sans-serif; }
a,button { touch-action:manipulation; }
svg.lucide { width:20px; height:20px; flex-shrink:0; }
.topbar,body.quiz-mode .topbar { position:relative; display:flex; height:80px; padding:0 max(24px,calc((100% - 1200px)/2)); gap:36px; background:var(--night); color:white; border-bottom:1px solid #ffffff20; backdrop-filter:none; }
.brand,.brand span,body.quiz-mode .brand span { display:inline-flex; font-size:27px; font-weight:700; }
.brand { gap:8px; }
.brand-accent { color:var(--mint); }
.brand img,body.quiz-mode .brand img { width:44px; height:44px; }
.topnav { display:flex; height:100%; gap:24px; margin-left:40px; }
.topnav a { min-height:44px; height:100%; border-radius:0; border-bottom:2px solid transparent; padding:0; color:#a5afa8; font-size:13px; font-weight:600; }
.topnav a.active { border-color:var(--mint); color:white; }
.topnav a:hover { color:var(--mint); background:none; }
.header-actions { margin-left:auto; display:flex; align-items:center; gap:20px; }
.icon-link { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; padding:0; border-radius:5px; }
.admin-link { background:none; color:white; border:1px solid #ffffff40; border-radius:5px; font-size:12px; font-weight:600; gap:10px; }
.app-shell,body.quiz-mode .app-shell { width:100%; max-width:none; }
.brand-container,.quiz-wall,.footer-inner,.about-page { width:min(1200px,calc(100% - 48px)); margin:auto; }
.brand-hero { position:relative; isolation:isolate; min-height:434px; overflow:hidden; background:#101211; color:white; }
.brand-hero-art { position:absolute; z-index:-1; right:max(0px,calc((100% - 1600px)/2)); top:0; height:100%; width:auto; max-width:none; }
.brand-hero .brand-container { min-height:434px; display:flex; align-items:center; }
.brand-hero-copy { padding:36px 0 42px; max-width:510px; }
.brand-hero .eyebrow { color:var(--mint); font-size:11px; margin-bottom:18px; }
.brand-hero h1 { font-size:84px; line-height:1; font-weight:700; margin:0 0 24px; }
.brand-hero h1 span { color:var(--mint); }
.brand-hero-copy>p:not(.eyebrow) { font-size:16px; line-height:1.7; color:#b6bfb8; }
.hero-actions { display:flex; align-items:center; gap:22px; margin-top:25px; }
.round-action,.round-action.alt { display:inline-flex; gap:14px; min-height:48px; padding:14px 20px; border-radius:5px; background:var(--mint); color:var(--night); border:0; box-shadow:none; font-size:13px; font-weight:700; }
.round-action:hover { background:#a1f9d1; transform:none; }
.text-action { display:inline-flex; align-items:center; min-height:44px; gap:8px; font-size:12px; font-weight:600; }
.brand-hero-copy .hero-count { font-size:12px!important; color:#98a69d!important; margin-top:24px; }
.brand-ticker { background:var(--mint); }
.brand-ticker .brand-container { display:flex; justify-content:space-between; gap:24px; overflow:hidden; height:42px; align-items:center; }
.brand-ticker span { display:flex; align-items:center; gap:10px; white-space:nowrap; font-size:10px; font-weight:700; }
.brand-ticker svg { width:14px; height:14px; }
.quiz-wall { padding:36px 0; scroll-margin-top:16px; }
.section-head { align-items:center; }
.section-head .eyebrow { color:var(--muted); font-size:10px; margin:0 0 10px; }
.section-head h2 { font-size:30px; font-weight:700; }
.cortex-shortcut { font-size:12px; font-weight:600; }
.control-deck { gap:12px; margin-bottom:26px; }
.search-card { max-width:420px; }
.search-card label { font-size:12px; }
.search-card input { height:44px; font-size:14px; }
.category-rail { flex-wrap:nowrap; overflow:auto; border-bottom:1px solid var(--line); gap:24px; scrollbar-width:thin; }
.category-rail .small-pill { flex-shrink:0; white-space:nowrap; border:0; border-bottom:2px solid transparent; border-radius:0; min-height:48px; padding:0 0 12px; font-size:12px; font-weight:600; }
.category-rail .small-pill.active { color:var(--ink); background:none; border-color:var(--ink); }
.round-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px 26px; }
.quiz-disc { background:none; border:0; box-shadow:none; border-radius:0; }
.disc-media { aspect-ratio:1.65; border-radius:8px; }
.disc-count { top:13px; left:13px; bottom:auto; background:var(--paper); text-transform:uppercase; font-size:10px; border-radius:3px; max-width:calc(100% - 26px); white-space:normal; }
.play-icon { position:absolute; bottom:12px; right:12px; width:40px; height:40px; background:var(--mint); color:var(--night); display:grid; place-items:center; border-radius:5px; }
.disc-category { margin:15px 0 8px; color:var(--teal); font-size:10px; }
.quiz-disc h3 { margin:0; font-size:21px; line-height:1.3; font-weight:600; }
.quiz-card-footer { padding:0; border:0; margin:12px 0 0; font-size:12px; }
.quiz-card-footer svg { width:15px; height:15px; }
.fallback-image { object-fit:contain!important; padding:24px; background:#e4ede5; }
.cortex-strip { display:grid; grid-template-columns:1fr 1fr auto; align-items:center; gap:30px; margin:10px 0 0; padding:36px max(24px,calc((100% - 1200px)/2)); background:#e8ede8; border:0; }
.cortex-strip h2 { font-size:32px; margin:8px 0; }
.cortex-strip p { font-size:13px; color:#637267; line-height:1.6; }
.cortex-strip .eyebrow { font-size:10px; }
.cortex-strip .round-action { background:var(--night); color:white; }
.mini-puzzle { display:flex; gap:9px; justify-content:center; transform:rotate(-4deg); }
.mini-puzzle span { display:grid; place-items:center; width:57px; height:62px; background:var(--night); color:white; font-size:24px; border-radius:6px; box-shadow:0 5px #c4cec6; }
.mini-puzzle span:last-child { background:var(--coral); color:var(--night); }
.site-footer,body.quiz-mode .site-footer { background:var(--paper); padding:26px 0; }
.footer-inner { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:20px; }
.footer-brand { font-size:20px; }
.footer-brand img { width:30px; height:30px; }
.footer-nav { gap:18px; }
.footer-nav a,.footer-credit { font-size:12px; font-weight:500; }
.mobile-nav { display:none; }
.about-page { max-width:800px; padding:54px 0; line-height:1.8; }
.about-page h1 { font-size:36px; line-height:1.15; }
.about-page h2 { font-size:24px; margin-top:30px; }
body.quiz-mode,body.cortex-mode { background:var(--night); color:#f4f7f3; }
.quiz-play-screen,.cortex-page,.cortex-test { height:auto; min-height:calc(100svh - 80px); overflow:visible; width:min(1000px,calc(100% - 48px)); margin:auto; padding:32px 0 50px; }
.cortex-page { display:block; max-width:760px; }
.cortex-test { max-width:800px; display:block; }
.play-topline,.cortex-topline { display:flex; align-items:center; gap:18px; margin-bottom:28px; }
.play-topline .small-pill,.cortex-topline .small-pill { background:none; border:1px solid #ffffff30; color:white; }
.game-name { font-family:'Space Grotesk',sans-serif; font-size:20px; }
.play-progress,.cortex-timer { margin-left:auto; background:none; border:1px solid #ffffff30; color:var(--mint); box-shadow:none; border-radius:5px; width:min(440px,70%); }
.cortex-timer span { color:var(--mint); }
.progress-track { background:#ffffff20; }
.progress-fill { background:var(--mint); }
.play-stage { grid-template-columns:minmax(150px,240px) minmax(0,1fr); gap:32px; }
.play-identity h1 { font-size:22px; color:white; }
.play-identity .eyebrow,.question-kicker { color:var(--mint); }
.play-card,.cortex-card,.cortex-intro,.cortex-result { display:flex; flex-direction:column; gap:24px; background:none; padding:0; border:0; border-radius:0; box-shadow:none; overflow:visible; min-height:0; }
.cortex-card::before { display:none; }
.cortex-card h1,.cortex-card.long-question h1,.cortex-card.very-long-question h1,.cortex-card.has-visual h1,.cortex-card.has-visual.long-question h1,.cortex-card.has-visual.very-long-question h1,.play-card h2,.play-card.long-question h2,.play-card.very-long-question h2 { color:white; font-size:30px; line-height:1.3; margin:8px 0; }
.question-kicker { font-size:12px; }
.answers-grid.single,.cortex-answers { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; gap:14px; }
.answer-button,.answers-grid.single .answer-button:nth-child(n),.cortex-answers .answer-button { background:#1a211c; border:1px solid #3c4840; color:#f4f7f3; border-radius:6px; min-height:76px; height:auto; padding:18px; font-size:17px; font-weight:500; justify-content:flex-start; text-align:left; box-shadow:none; gap:16px; overflow-wrap:anywhere; }
.answer-button:hover,.answers-grid.single .answer-button:hover { background:#253f30; border-color:var(--mint); transform:none; }
.answer-letter,.answers-grid.single .answer-letter { width:28px; height:28px; min-width:28px; background:#303c33; border-radius:4px; color:#c0d1c5; font-size:12px; }
.cortex-visual { background:#f7f8f5; border:0; border-radius:8px; padding:12px; }
.cortex-visual svg { max-height:220px; fill:#161d19; }
.cortex-intro h1,.cortex-result h1 { font-size:42px; line-height:1.15; }
.cortex-intro .eyebrow,.cortex-result .eyebrow { color:var(--mint); }
.cortex-intro>p:not(.eyebrow),.cortex-result>p:not(.eyebrow) { color:#a7b6ac; font-size:15px; font-weight:400; margin:0; }
.cortex-form { margin:0; }
.cortex-form label { color:#d5e0d9; font-weight:500; font-size:14px; }
.cortex-form input,.cortex-form select { background:#1a211c; border-color:#3c4840; color:white; border-radius:5px; font-size:16px; }
.mode-grid label { background:none; border-color:#3c4840; border-radius:6px; padding:14px; }
.mode-grid label:has(input:checked) { border-color:var(--mint); background:#1c3024; }
.mode-grid small { color:#a7b6ac; font-size:12px; font-weight:400; line-height:1.6; }
.mode-grid input { accent-color:var(--mint); }
.cortex-result { text-align:center; }
.cortex-score { font-family:'Space Grotesk',sans-serif; font-size:100px; line-height:1.1; color:var(--mint); }
.cortex-score span { font-size:36px; color:#7b8c81; }
.cortex-result-grid { margin:0; border-bottom:1px solid #ffffff25; padding-bottom:24px; }
.cortex-result-grid div { border:0; border-radius:0; background:none; min-height:70px; padding:8px; }
.cortex-result-grid strong { font-size:23px; }
.cortex-result-grid span { color:#9baa9f; font-size:12px; font-weight:400; }
.skill-results { text-align:left; }
.skill-results h2 { font-size:22px; }
.skill-row { margin:20px 0; }
.skill-row>div { display:flex; justify-content:space-between; font-size:14px; margin-bottom:8px; }
.skill-row progress { appearance:none; border:0; width:100%; height:6px; background:#29362e; }
.skill-row progress::-webkit-progress-bar { background:#29362e; }
.skill-row progress::-webkit-progress-value { background:var(--mint); }
.skill-row progress::-moz-progress-bar { background:var(--mint); }
.cortex-result .result-actions { justify-content:center; }
.generation-status { background:none; border:0; color:#b7c7bd; }
.quiz-editorial,.quiz-corrections { color:#b7c7bd; border-color:#ffffff25; }
.quiz-editorial a { color:var(--mint); }
.source-credits { color:#a7b6ac; border-color:var(--mint); }
.result-card strong { color:var(--mint); }
.result-card p,.play-progress span { color:#b7c7bd; }
body.quiz-mode .eyebrow { color:var(--mint); }
body.cortex-mode .site-footer,body.quiz-mode .site-footer { color:var(--ink); }
.ghost-button { background:none; border:1px solid #718479; color:inherit; border-radius:5px; padding:12px 18px; font-size:14px; }
body.in-game .topbar,body.in-game .site-footer,body.in-game .mobile-nav { display:none; }
body.in-game .quiz-play-screen,body.in-game .cortex-test { min-height:100svh; }
@media(max-width:1000px) { .topnav { margin-left:0; gap:18px; } .header-actions .admin-link { display:none; } .brand-hero h1 { font-size:68px; } .brand-hero-art { right:-120px; } .cortex-strip { grid-template-columns:1fr auto; } .mini-puzzle { display:none; } }
@media(max-width:600px) {
  body { padding-bottom:calc(70px + env(safe-area-inset-bottom)); }
  body.in-game { padding-bottom:0; }
  .topbar,body.quiz-mode .topbar { height:66px; min-height:66px; padding:0 20px; gap:12px; }
  .brand,.brand span,body.quiz-mode .brand span { font-size:24px; }
  .brand img,body.quiz-mode .brand img { width:36px; height:36px; }
  .topnav,.header-actions .admin-link { display:none; }
  .brand-container,.quiz-wall,.footer-inner,.about-page { width:calc(100% - 40px); }
  .brand-hero,.brand-hero .brand-container { min-height:365px; }
  .brand-hero-art { top:88px; height:277px; right:-85px; }
  .brand-hero .brand-container { align-items:flex-start; }
  .brand-hero-copy { padding:26px 0; max-width:100%; }
  .brand-hero .eyebrow { font-size:9px; margin-bottom:14px; }
  .brand-hero h1 { font-size:48px; margin-bottom:12px; }
  .brand-hero-copy>p:not(.eyebrow) { font-size:12px; max-width:160px; line-height:1.7; }
  .hero-actions { flex-direction:column; align-items:flex-start; gap:2px; margin-top:18px; }
  .hero-actions .round-action { min-height:44px; font-size:12px; padding:12px 14px; }
  .text-action { font-size:11px; }
  .hero-count { display:none; }
  .brand-ticker .brand-container { width:100%; padding:0 20px; }
  .brand-ticker span { font-size:9px; }
  .quiz-wall { padding:28px 0; }
  .section-head { flex-wrap:nowrap; }
  .section-head h2 { font-size:25px; }
  .section-head .eyebrow { font-size:9px; }
  .cortex-shortcut { display:none; }
  .round-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 14px; margin:0; padding:0; }
  .quiz-disc { min-width:0; }
  .disc-media { aspect-ratio:1.6; }
  .disc-count { font-size:8px; top:8px; left:8px; padding:5px; max-width:calc(100% - 16px); }
  .play-icon { width:32px; height:32px; right:8px; bottom:8px; }
  .quiz-disc h3 { font-size:16px; line-height:1.4; overflow-wrap:anywhere; }
  .disc-category { font-size:9px; }
  .quiz-card-footer { font-size:11px; }
  .cortex-strip { display:flex; flex-direction:column; align-items:flex-start; padding:28px 20px; }
  .cortex-strip h2 { font-size:30px; }
  .footer-inner { align-items:flex-start; flex-direction:column; }
  .mobile-nav { position:fixed; z-index:60; bottom:0; left:0; right:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); background:#111813; border-top:1px solid #ffffff25; padding:6px 10px calc(6px + env(safe-area-inset-bottom)); }
  .mobile-nav a { display:flex; flex-direction:column; gap:6px; align-items:center; justify-content:center; min-height:54px; color:#96a69b; font-size:11px; }
  .mobile-nav a.active { color:var(--mint); }
  .mobile-nav svg { width:19px; height:19px; }
  .quiz-play-screen,.cortex-page,.cortex-test { width:calc(100% - 40px); padding:24px 0 40px; }
  .play-stage { display:block; }
  .play-identity { grid-template-columns:56px 1fr; margin-bottom:26px; }
  .play-identity .quiz-cover { width:56px; }
  .play-identity h1 { font-size:18px; }
  .cortex-topline { gap:12px; }
  .cortex-timer { width:auto; min-width:0; flex:1; padding:0 10px; gap:8px; }
  .game-name { font-size:17px; }
  .cortex-card h1,.cortex-card.long-question h1,.cortex-card.very-long-question h1,.cortex-card.has-visual h1,.cortex-card.has-visual.long-question h1,.cortex-card.has-visual.very-long-question h1,.play-card h2,.play-card.long-question h2,.play-card.very-long-question h2 { font-size:24px; line-height:1.3; }
  .answers-grid.single,.cortex-answers { grid-template-columns:1fr; }
  .answer-button,.answers-grid.single .answer-button:nth-child(n),.cortex-answers .answer-button { min-height:64px; font-size:16px; padding:16px; }
  .cortex-intro h1,.cortex-result h1 { font-size:34px; }
  .mode-grid { grid-template-columns:1fr; }
  .mode-grid label { min-height:68px; }
  .cortex-result-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
  .cortex-result-grid strong { font-size:19px; }
  .about-page h1 { font-size:30px; }
}
@media(min-width:601px) and (max-height:600px) {
  .brand-hero-art { right:0; }
  .brand-hero,.brand-hero .brand-container { min-height:230px; }
  .brand-hero-copy { padding:16px 0; }
  .brand-hero h1 { font-size:48px; margin-bottom:10px; }
  .brand-hero .eyebrow { margin:0 0 10px; }
  .brand-hero-copy>p:not(.eyebrow) { font-size:13px; }
  .hero-actions { margin-top:12px; }
  .hero-count { display:none; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { transition:none!important; animation:none!important; } }

.catalogue-count { margin:24px 0 18px; color:#526259; font-size:14px; }
.catalogue-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; margin:32px 0 8px; }
.catalogue-pagination button { display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid #c6cec8; border-radius:6px; background:transparent; color:var(--ink); font:inherit; cursor:pointer; }
.catalogue-pagination button[aria-current="page"] { background:var(--night); border-color:var(--night); color:var(--mint); }
.catalogue-pagination button:disabled { opacity:.35; cursor:default; }
.catalogue-pagination svg { width:20px; height:20px; }
.catalogue-pagination button:focus-visible,.back-to-top:focus-visible { outline:3px solid #d75e49; outline-offset:4px; }
.back-to-top { position:fixed; z-index:55; right:20px; bottom:calc(100px + env(safe-area-inset-bottom)); display:grid; place-items:center; width:48px; height:48px; padding:0; border:1px solid #2b4638; border-radius:50%; background:var(--mint); color:var(--night); box-shadow:0 3px 15px #11141326; cursor:pointer; }
.back-to-top[hidden],body.in-game .back-to-top { display:none; }
.back-to-top svg { width:22px; height:22px; }
