/* ==========================================================================
   EMINEM ONLINE TRIVIA
   Dark mode only. A midnight mushroom forest: violet-black sky, hot pink
   rim light, slime drips, rainbow tie-dye and a few too many eyeballs.
   ========================================================================== */

@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('fonts/outfit.woff2') format('woff2'); }
@font-face { font-family: 'Bagel Fat One'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/bagel-fat-one.woff2') format('woff2'); }
@font-face { font-family: 'Rubik Wet Paint'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/rubik-wet-paint.woff2') format('woff2'); }

:root {
  color-scheme: dark;

  --bg: #07040f;
  --bg-2: #0f0820;
  --panel: rgba(27, 13, 54, 0.72);
  --panel-solid: #150a2c;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --text: #f6f0ff;
  --muted: #c0b3e0;
  --ink: #1b0830;

  --pink: #ff2e93;
  --orange: #ff8a1f;
  --yellow: #ffd23f;
  --lime: #b6ff3b;
  --teal: #19e3b1;
  --cyan: #25e8ff;
  --violet: #8b5cf6;

  --ok: #5dffb0;
  --bad: #ff5d8f;

  --t1: #3cf0b4;
  --t2: #ffb02e;
  --t3: #ff3d9a;

  --rainbow: linear-gradient(90deg, #ff2e93, #ff8a1f, #ffd23f, #b6ff3b, #25e8ff, #8b5cf6, #ff2e93);
  --hot: linear-gradient(100deg, #ff2e93, #ff8a1f 55%, #ffd23f);
  --cool: linear-gradient(100deg, #25e8ff, #6ee7b7);

  --font-body: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-head: 'Bagel Fat One', 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --font-drip: 'Rubik Wet Paint', 'Bagel Fat One', 'Outfit', system-ui, sans-serif;

  --header-h: 68px;
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
html.no-scroll { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
}

/* the sky: layered blooms of magenta, violet, teal and ember */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60rem 38rem at 88% -8%, rgba(255, 46, 147, 0.42), transparent 62%),
    radial-gradient(52rem 38rem at -6% 8%, rgba(139, 92, 246, 0.48), transparent 62%),
    radial-gradient(46rem 28rem at 52% 112%, rgba(25, 227, 177, 0.28), transparent 62%),
    radial-gradient(32rem 22rem at 104% 68%, rgba(255, 138, 31, 0.2), transparent 62%),
    linear-gradient(180deg, #0c0620, #07040f 60%);
}

/* film grain keeps the gradients from looking plasticky */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  padding: 0.6rem 1rem; border-radius: 10px; background: var(--cyan); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border: 0; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  color: var(--ink);
  background: var(--hot);
  box-shadow: 0 10px 28px -10px rgba(255, 46, 147, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.18s var(--ease), filter 0.18s, box-shadow 0.25s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08) saturate(1.1); box-shadow: 0 16px 34px -10px rgba(255, 46, 147, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn:active { transform: translateY(0); }
.btn.big { padding: 1rem 1.9rem; font-size: 1.12rem; }
.btn.ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn.ghost:hover { background: rgba(255, 46, 147, 0.12); box-shadow: inset 0 0 0 1.5px var(--pink), 0 10px 26px -12px rgba(255, 46, 147, 0.8); }
.btn.alt { background: var(--cool); color: #04202a; box-shadow: 0 10px 28px -10px rgba(37, 232, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn .icon, .t-state .icon { width: 1em; height: 1em; flex: none; }
a[aria-disabled='true'].btn { cursor: not-allowed; }

/* ---------- slime drips ---------- */
.drips {
  height: 48px;
  background: var(--rainbow);
  background-size: 720px 100%;
  -webkit-mask: url('img/drips.svg') 0 0 / 360px 48px repeat-x;
  mask: url('img/drips.svg') 0 0 / 360px 48px repeat-x;
  animation: slime 24s linear infinite;
}
@keyframes slime { to { background-position: 720px 0; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: var(--header-h);
  padding: 0.55rem clamp(1rem, 4vw, 2.6rem);
  background: rgba(9, 4, 20, 0.68);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  transition: background 0.25s;
}
.site-header.scrolled { background: rgba(9, 4, 20, 0.9); }
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--rainbow); background-size: 200% 100%; opacity: 0.85;
  animation: slime 18s linear infinite;
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-mark { width: 40px; height: 41px; flex: none; filter: drop-shadow(0 4px 12px rgba(255, 46, 147, 0.5)); transition: transform 0.4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-word {
  font-family: var(--font-drip); font-size: 1.6rem; line-height: 1; letter-spacing: 0.01em;
  background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-word b { font-weight: 400; background: var(--cool); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-desktop ul { display: flex; gap: 0.35rem; }
.nav-desktop a {
  display: block; padding: 0.5rem 1rem; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; text-decoration: none; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.nav-desktop a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav-desktop a[aria-current='page'] { color: #fff; background: rgba(255, 46, 147, 0.18); box-shadow: inset 0 0 0 1px rgba(255, 46, 147, 0.55); }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--line-strong); border-radius: 14px;
  background: rgba(255, 255, 255, 0.05); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--text); }

.nav-drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.nav-drawer.open { visibility: visible; pointer-events: auto; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(5, 2, 12, 0.72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s; }
.nav-drawer.open .drawer-overlay { opacity: 1; }
.nav-mobile {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(84vw, 340px);
  padding: 5rem 1.5rem 2rem;
  background: linear-gradient(180deg, #1b0d3a, #0d0620);
  border-left: 1px solid var(--line-strong);
  transform: translateX(100%); transition: transform 0.35s var(--ease);
  overflow-y: auto;
}
.nav-drawer.open .nav-mobile { transform: none; }
.nav-mobile li + li { margin-top: 0.3rem; }
.nav-mobile a { display: block; padding: 0.9rem 1rem; border-radius: 14px; font-family: var(--font-head); font-size: 1.25rem; text-decoration: none; }
.nav-mobile a:hover { background: rgba(255, 255, 255, 0.07); }
.drawer-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 14px;
  background: rgba(255, 255, 255, 0.06); color: var(--text); font-size: 1.8rem; line-height: 1; cursor: pointer;
}

/* ---------- section titles ---------- */
.section-title {
  position: relative;
  margin: 0 0 1.4rem;
  padding-bottom: 0.9rem;
  font-family: var(--font-head); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.1;
}
.section-title::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 72px; height: 6px; border-radius: 6px;
  background: var(--rainbow); background-size: 200% 100%; animation: slime 10s linear infinite;
}

/* ---------- tier cards (shared by home + trivia pages) ---------- */
.tier-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; margin-bottom: 2.6rem; }
.tier-card {
  --accent: var(--t1);
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem;
  padding: 1.5rem 1.5rem 1.4rem;
  border-radius: var(--radius);
  background:
    radial-gradient(18rem 10rem at 0% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%),
    linear-gradient(165deg, rgba(38, 18, 76, 0.82), rgba(15, 7, 32, 0.9));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.3s;
}
.tier-card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent 85%);
}
.tier-card.tier-2 { --accent: var(--t2); }
.tier-card.tier-3 { --accent: var(--t3); }
.tier-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--accent) 70%, transparent); }
.tier-card.is-active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 54px -22px color-mix(in srgb, var(--accent) 75%, transparent); }
.tier-card.locked { filter: saturate(0.55); opacity: 0.8; }
.tier-card .num { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.tier-card h3 { font-family: var(--font-head); font-weight: 400; font-size: 2rem; line-height: 1.05; }
.tier-card p { color: var(--muted); font-size: 0.98rem; }
.tier-card .meta { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0 0.6rem; }
.tier-card .meta span { padding: 0.18rem 0.65rem; border-radius: 999px; background: rgba(255, 255, 255, 0.07); font-size: 0.8rem; color: var(--muted); }
.tier-card .btn { margin-top: auto; }

.status-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.18rem 0.7rem; border-radius: 999px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); background: var(--accent, var(--t1));
}
.status-pill.locked { color: var(--muted); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px var(--line-strong); }
.status-pill.passed { background: var(--ok); }

/* ---------- footer ---------- */
.site-footer { margin-top: 3rem; background: linear-gradient(180deg, rgba(12, 5, 26, 0.2), rgba(6, 3, 14, 0.9) 40%); }
.site-footer .drips { margin-top: -1px; }
.footer-container { max-width: 1120px; margin: 0 auto; padding: 1.5rem clamp(1rem, 4vw, 2.6rem) 2.5rem; display: grid; gap: 1.4rem; }
.footer-brand { display: flex; align-items: center; gap: 0.9rem; }
.footer-brand .brand-mark { width: 52px; height: 54px; }
.footer-brand h3 { font-family: var(--font-drip); font-weight: 400; font-size: 1.7rem; line-height: 1.1; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-tagline { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 6px; }
.footer-bottom { padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.84rem; color: #9486bd; max-width: 62rem; }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(1rem, 4vw, 3rem);
  max-width: 1200px; margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.6rem) clamp(1.5rem, 4vw, 3rem);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem;
  padding: 0.35rem 0.95rem 0.35rem 0.8rem; border-radius: 999px;
  background: rgba(25, 227, 177, 0.1); box-shadow: inset 0 0 0 1px rgba(25, 227, 177, 0.4);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8ffbe0;
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(25, 227, 177, 0.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(25, 227, 177, 0); } 100% { box-shadow: 0 0 0 0 rgba(25, 227, 177, 0); } }

.hero h1 { display: flex; flex-direction: column; align-items: flex-start; font-weight: 400; line-height: 0.92; margin-bottom: 1.4rem; }
.h1-top, .h1-bot {
  font-family: var(--font-drip); font-size: clamp(3.9rem, 11.5vw, 8rem); letter-spacing: 0.005em;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.12em;
}
.h1-top { background-image: linear-gradient(100deg, #ff2e93 10%, #ff8a1f 55%, #ffd23f); filter: drop-shadow(0 0 28px rgba(255, 46, 147, 0.45)); }
.h1-bot { margin-top: -0.2em; background-image: linear-gradient(100deg, #25e8ff 10%, #b6ff3b 60%, #ffd23f); filter: drop-shadow(0 0 28px rgba(37, 232, 255, 0.35)); }
.h1-sub {
  margin-top: 0.35rem; padding: 0.3rem 1.1rem 0.4rem; border-radius: 14px; transform: rotate(-2.5deg);
  font-family: var(--font-head); font-size: clamp(1.3rem, 3vw, 1.9rem); letter-spacing: 0.24em; text-transform: uppercase; text-indent: 0.24em;
  color: var(--ink); background: var(--rainbow); background-size: 200% 100%; animation: slime 12s linear infinite;
  box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.8);
}
.lede { max-width: 34rem; font-size: clamp(1.08rem, 2vw, 1.25rem); color: #dfd4f7; }
.lede strong { color: var(--yellow); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.2rem 2.2rem; margin-top: 2.2rem; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--font-head); font-weight: 400; font-size: 2.3rem; line-height: 1; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: 0.85rem; color: var(--muted); max-width: 9rem; line-height: 1.3; margin-top: 0.2rem; }

/* the mushroom shrine */
.hero-art { position: relative; width: min(100%, 520px); aspect-ratio: 1; justify-self: center; }
.art-halo {
  position: absolute; inset: 4%; border-radius: 50%;
  background: conic-gradient(from 0deg, #ff2e93, #ff8a1f, #ffd23f, #b6ff3b, #25e8ff, #8b5cf6, #ff2e93);
  filter: blur(44px); opacity: 0.5; animation: swirl 36s linear infinite;
}
@keyframes swirl { to { transform: rotate(360deg); } }
.art-shroom, .art-eye, .art-skull { position: absolute; height: auto; }
.art-shroom { aspect-ratio: 120 / 124; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 30px rgba(255, 46, 147, 0.3)); animation: bob 7s ease-in-out infinite; }
.art-shroom:not(.art-shroom-b):not(.art-shroom-c) { left: 16%; top: 4%; width: 68%; }
.art-shroom-b { left: 0; bottom: 8%; width: 31%; transform: rotate(-14deg); animation-delay: -2s; animation-duration: 8.5s; }
.art-shroom-c { right: 0; bottom: 14%; width: 26%; transform: rotate(13deg); animation-delay: -4s; animation-duration: 6.5s; }
.art-eye { aspect-ratio: 1; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.5)); animation: bob 5s ease-in-out infinite; }
.art-eye-a { top: 3%; left: 4%; width: 13%; animation-delay: -1s; }
.art-eye-b { top: 13%; right: 3%; width: 10%; animation-delay: -3s; animation-duration: 6s; }
.art-eye-c { bottom: 40%; left: 0; width: 7.5%; animation-delay: -2s; animation-duration: 4.2s; }
.art-skull { left: 39%; bottom: 0; width: 22%; aspect-ratio: 100 / 112; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55)); animation: bob 9s ease-in-out infinite reverse; }
@keyframes bob { 50% { translate: 0 -10px; } }

/* bands */
.band { padding: clamp(2.4rem, 6vw, 4.4rem) clamp(1rem, 4vw, 2.6rem); }
.band-inner { max-width: 1120px; margin: 0 auto; }
.band-sub { max-width: 40rem; margin: -0.4rem 0 2rem; color: var(--muted); }
.band .tier-cards { margin-bottom: 0; }
.band-how { background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.1) 30%, rgba(255, 46, 147, 0.06) 70%, transparent); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; counter-reset: step; }
.steps li { position: relative; padding: 4.2rem 1.4rem 1.5rem; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.steps h3 { font-family: var(--font-head); font-weight: 400; font-size: 1.3rem; line-height: 1.15; margin-bottom: 0.4rem; }
.steps p { color: var(--muted); font-size: 0.97rem; }
.step-n {
  position: absolute; left: 1.2rem; top: 1.1rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  font-family: var(--font-head); font-size: 1.25rem; color: var(--ink); background: var(--hot); box-shadow: 0 8px 20px -8px rgba(255, 46, 147, 0.9);
}
.steps li:nth-child(2) .step-n { background: var(--cool); box-shadow: 0 8px 20px -8px rgba(37, 232, 255, 0.8); }
.steps li:nth-child(3) .step-n { background: linear-gradient(100deg, #b6ff3b, #ffd23f); box-shadow: 0 8px 20px -8px rgba(182, 255, 59, 0.7); }
.steps li:nth-child(4) .step-n { background: linear-gradient(100deg, #8b5cf6, #ff2e93); color: #fff; box-shadow: 0 8px 20px -8px rgba(139, 92, 246, 0.9); }

.verified-inner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(150px, 300px); align-items: center; gap: clamp(1.2rem, 4vw, 3rem);
  padding: clamp(1.6rem, 4vw, 3rem); border-radius: 30px;
  background: radial-gradient(30rem 18rem at 0% 50%, rgba(255, 46, 147, 0.22), transparent 70%), linear-gradient(160deg, rgba(38, 18, 76, 0.85), rgba(14, 6, 30, 0.95));
  border: 1px solid var(--line-strong);
}
.verified-skull { width: clamp(90px, 16vw, 170px); aspect-ratio: 100 / 112; height: auto; filter: drop-shadow(0 0 30px rgba(255, 46, 147, 0.55)); animation: bob 8s ease-in-out infinite; }
.verified-inner .lede { margin: 0 0 1.4rem; }
.verified-inner .section-title { margin-bottom: 1rem; }

/* 404 */
.notfound { min-height: 62vh; display: grid; place-items: center; padding: 3rem 1rem; text-align: center; }
.notfound-layout { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.5rem, 4vw, 3rem); width: 100%; max-width: 62rem; }
.notfound-inner { flex: 1 1 18rem; max-width: 32rem; min-width: 0; }
.notfound-layout .ad-link { flex: 0 1 340px; }

/* Advertisement */
.ad-link { display: block; min-width: 0; max-width: 100%; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-strong), 0 16px 40px -18px rgba(255, 46, 147, 0.6); transition: transform 0.25s var(--ease); }
.ad-link:hover { transform: translateY(-3px); }
.ad-img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1029 / 768; object-fit: contain; }

/* Support */
.support-band { padding: 3rem clamp(0.8rem, 3vw, 1.6rem) 0; margin-top: 3rem; }
.support-box {
  max-width: 880px; margin: 0 auto; padding: clamp(1.4rem, 4vw, 2.4rem); text-align: center; border-radius: 30px;
  background: radial-gradient(26rem 12rem at 50% 0%, rgba(37, 232, 255, 0.14), transparent 70%), radial-gradient(24rem 12rem at 100% 100%, rgba(255, 46, 147, 0.2), transparent 70%), var(--panel);
  border: 1px solid var(--line-strong); box-shadow: 0 0 40px -14px rgba(255, 46, 147, 0.6);
}
.support-box h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin-bottom: 0.8rem; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.support-box p { max-width: 38rem; margin: 0 auto 1.4rem; color: #eadfff; }
.support-band + .site-footer { margin-top: 0; }
.notfound-skull { width: 130px; height: auto; aspect-ratio: 100 / 112; filter: drop-shadow(0 0 30px rgba(255, 46, 147, 0.6)); animation: bob 6s ease-in-out infinite; }
.notfound h1 { font-family: var(--font-drip); font-weight: 400; font-size: clamp(5rem, 18vw, 9rem); line-height: 1; background: var(--rainbow); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: slime 10s linear infinite; }
.notfound .lede { margin: 0 auto; }
.notfound .hero-actions { justify-content: center; }

/* ==========================================================================
   TRIVIA
   ========================================================================== */
.trivia-app { padding: clamp(1.4rem, 4vw, 2.6rem) clamp(0.8rem, 3vw, 1.6rem) 1rem; }
.trivia-wrap { max-width: 980px; margin: 0 auto; }
.noscript { padding: 1rem 1.2rem; border-radius: 14px; background: rgba(255, 93, 143, 0.15); box-shadow: inset 0 0 0 1px var(--bad); margin-bottom: 1.5rem; }

.banner.mastery {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; padding: 1rem 1.3rem; border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(255, 210, 63, 0.22), rgba(255, 46, 147, 0.2), rgba(139, 92, 246, 0.22));
  box-shadow: inset 0 0 0 1px rgba(255, 210, 63, 0.55), 0 14px 40px -18px rgba(255, 210, 63, 0.6);
}
.banner .trophy { font-size: 2.2rem; line-height: 1; }
.banner strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.3rem; }
.banner span:not(.trophy) { color: #eadfff; font-size: 0.97rem; }

.trivia-intro {
  margin-bottom: 2rem; padding: 1.4rem 1.5rem 1.2rem; border-radius: 28px;
  background:
    radial-gradient(26rem 12rem at 100% 0%, rgba(255, 46, 147, 0.2), transparent 70%),
    radial-gradient(24rem 12rem at 0% 100%, rgba(37, 232, 255, 0.13), transparent 70%),
    var(--panel);
  border: 1px solid var(--line);
}
.intro-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.trivia-brand { display: flex; align-items: center; gap: 1rem; }
.trivia-brand .brand-mark { width: 62px; height: 64px; }
.trivia-brand h1 { font-family: var(--font-head); font-weight: 400; font-size: clamp(1.6rem, 4.2vw, 2.5rem); line-height: 1.05; }
.trivia-brand h1 span { background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tagline { color: var(--muted); font-size: 0.98rem; margin-top: 0.15rem; }
.active-tier { padding: 0.45rem 1rem; border-radius: 999px; font-size: 0.92rem; color: var(--muted); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line); }
.active-tier strong { color: #fff; }

.tier-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.tier-tab {
  display: flex; flex-direction: column; gap: 0.1rem; padding: 0.7rem 0.95rem; border-radius: 16px; text-decoration: none;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.tier-tab:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-1px); }
.tier-tab .t-name { font-weight: 700; font-size: 0.98rem; }
.tier-tab .t-state { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.8rem; color: var(--muted); }
.tier-tab[aria-current='page'] { background: linear-gradient(120deg, rgba(255, 46, 147, 0.24), rgba(139, 92, 246, 0.22)); box-shadow: inset 0 0 0 1.5px var(--pink), 0 10px 26px -14px rgba(255, 46, 147, 0.9); }
.tier-tab.passed .t-state { color: var(--ok); }
.tier-tab[aria-disabled='true'] { opacity: 0.6; cursor: not-allowed; }

/* quiz card */
.quiz-card { padding: clamp(1rem, 3vw, 1.8rem); border-radius: 30px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 1rem; }
.quiz-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; margin-bottom: 1.2rem; }
.quiz-head h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
.rule { padding: 0.3rem 0.9rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: #fff0c2; background: rgba(255, 210, 63, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, 0.4); }

.progress {
  position: sticky; top: calc(var(--header-h) + 6px); z-index: 30;
  margin: 0 -0.4rem 1.2rem; padding: 0.8rem 1rem 0.9rem; border-radius: 20px;
  background: rgba(12, 6, 26, 0.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line), 0 14px 30px -18px rgba(0, 0, 0, 0.9);
}
.progress-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.93rem; color: var(--muted); margin-bottom: 0.5rem; }
.progress-row b { color: #fff; }
.bar { height: 9px; border-radius: 9px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bar i { display: block; width: 0; height: 100%; border-radius: 9px; background: var(--rainbow); background-size: 300% 100%; transition: width 0.45s var(--ease); animation: slime 8s linear infinite; }
.dots { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.7rem; }
.dot {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; text-decoration: none;
  font-size: 0.78rem; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 0.15s;
}
.dot:hover { transform: scale(1.12); }
.dot.answered { color: var(--ink); background: var(--cyan); box-shadow: none; }
.dot.right { color: var(--ink); background: var(--ok); box-shadow: none; }
.dot.wrong { color: #fff; background: var(--bad); box-shadow: none; }
.dot.current { outline: 2px solid #fff; outline-offset: 2px; }

.questions { display: grid; gap: 1.1rem; }
.q {
  scroll-margin-top: 220px;
  padding: 1.2rem 1.3rem 1.3rem; border-radius: 22px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line);
  transition: border-color 0.3s, background 0.3s;
}
.q.right { border-color: rgba(93, 255, 176, 0.5); background: rgba(93, 255, 176, 0.04); }
.q.wrong { border-color: rgba(255, 93, 143, 0.55); background: rgba(255, 93, 143, 0.045); }
.q-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.6rem; margin-bottom: 0.8rem; }
.q-num { margin-right: 0.3rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chip { padding: 0.12rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: #ffd3ec; background: rgba(255, 46, 147, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 46, 147, 0.4); }
.chip.alt { color: #bdf7ff; background: rgba(37, 232, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(37, 232, 255, 0.4); }
.q-ctx { margin-bottom: 0.4rem; font-size: 0.9rem; color: var(--muted); }
.q-text { font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.5; margin-bottom: 1.1rem; }
.blank {
  display: inline-block; min-width: 4.6em; margin: 0 0.05em 0 0.15em; text-align: center; vertical-align: baseline;
  color: transparent; border-bottom: 3px solid transparent;
  border-image: var(--rainbow) 1;
}

.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.opt {
  position: relative; display: flex; align-items: center; gap: 0.75rem; min-height: 56px;
  padding: 0.7rem 0.9rem; border-radius: 16px; cursor: pointer;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1.5px var(--line);
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s var(--ease);
}
.opt:hover { background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1.5px rgba(255, 46, 147, 0.6); transform: translateY(-1px); }
.opt input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.opt:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 2px; }
.opt .letter {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-family: var(--font-head); font-size: 0.95rem; color: var(--text); background: rgba(255, 255, 255, 0.1);
  transition: background 0.18s, color 0.18s;
}
.opt .opt-text { flex: 1; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.opt .flag { flex: none; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.03em; text-align: right; }
.opt .flag:empty { display: none; }
.opt.selected { background: rgba(255, 46, 147, 0.16); box-shadow: inset 0 0 0 2px var(--pink), 0 10px 28px -14px rgba(255, 46, 147, 0.9); }
.opt.selected .letter { color: var(--ink); background: var(--hot); }
.opt.correct { background: rgba(93, 255, 176, 0.14); box-shadow: inset 0 0 0 2px var(--ok), 0 10px 28px -16px rgba(93, 255, 176, 0.8); }
.opt.correct .letter { color: var(--ink); background: var(--ok); }
.opt.correct .flag { color: var(--ok); }
.opt.wrong { background: rgba(255, 93, 143, 0.14); box-shadow: inset 0 0 0 2px var(--bad); }
.opt.wrong .letter { color: #fff; background: var(--bad); }
.opt.wrong .flag { color: #ff9dbb; }
.locked-quiz .opt { cursor: default; pointer-events: none; }
.locked-quiz .opt:not(.correct):not(.wrong) { opacity: 0.55; }

.explain { margin-top: 1rem; padding: 0.85rem 1rem; border-radius: 14px; border-left: 4px solid var(--ok); background: rgba(255, 255, 255, 0.04); font-size: 0.98rem; color: #e6dcfa; }
.explain.wrong { border-left-color: var(--bad); }
.explain .verdict { display: block; margin-bottom: 0.2rem; font-weight: 700; color: var(--ok); }
.explain.wrong .verdict { color: #ff9dbb; }
.explain mark { padding: 0 0.3em; border-radius: 0.35em; color: #fff0b3; background: rgba(255, 210, 63, 0.22); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, 0.4); }

.submit-zone { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.1rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px dashed var(--line-strong); }
.submit-note { color: var(--muted); font-size: 0.95rem; }

/* results */
.results { margin-bottom: 1.4rem; padding: 1.3rem 1.4rem; border-radius: 24px; border: 1px solid var(--line); }
.results.pass { background: radial-gradient(24rem 12rem at 0% 0%, rgba(93, 255, 176, 0.2), transparent 70%), rgba(255, 255, 255, 0.04); border-color: rgba(93, 255, 176, 0.55); }
.results.fail { background: radial-gradient(24rem 12rem at 0% 0%, rgba(255, 93, 143, 0.2), transparent 70%), rgba(255, 255, 255, 0.04); border-color: rgba(255, 93, 143, 0.55); }
.results-top { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 0.7rem; }
.score-big { font-family: var(--font-drip); font-size: clamp(3.4rem, 9vw, 5rem); line-height: 1; padding-bottom: 0.08em; background: var(--rainbow); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: slime 8s linear infinite; }
.score-big.ok { background: linear-gradient(100deg, #5dffb0, #b6ff3b); -webkit-background-clip: text; background-clip: text; }
.score-big.bad { background: linear-gradient(100deg, #ff5d8f, #ff8a1f); -webkit-background-clip: text; background-clip: text; }
.verdict-big { font-family: var(--font-head); font-size: 1.5rem; line-height: 1.15; }
.unlock-note { display: inline-block; margin: 0.6rem 0.5rem 0 0; padding: 0.3rem 0.9rem; border-radius: 999px; font-weight: 700; font-size: 0.92rem; color: var(--ink); background: var(--cool); }
.results-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.1rem; }

/* locked tier */
.locked-panel { display: grid; justify-items: center; gap: 0.8rem; padding: 2.4rem 1rem; text-align: center; }
.lock-art { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; color: var(--pink); background: rgba(255, 46, 147, 0.14); box-shadow: inset 0 0 0 1.5px rgba(255, 46, 147, 0.6), 0 0 40px -6px rgba(255, 46, 147, 0.6); }
.lock-art .icon { width: 42px; height: 42px; }
.locked-panel h3 { font-family: var(--font-head); font-weight: 400; font-size: 1.7rem; }
.locked-panel p { max-width: 30rem; color: var(--muted); }

/* dialog + toast */
dialog {
  width: min(92vw, 520px); padding: 0; border: 1px solid var(--line-strong); border-radius: 28px; color: var(--text);
  background: radial-gradient(22rem 12rem at 100% 0%, rgba(255, 46, 147, 0.22), transparent 70%), var(--panel-solid);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 46, 147, 0.25);
}
dialog::backdrop { background: rgba(5, 2, 12, 0.76); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
dialog[open] { animation: pop 0.3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.dlg-body { padding: 1.6rem 1.6rem 1.5rem; display: grid; gap: 0.9rem; }
.dlg-body h2 { font-family: var(--font-head); font-weight: 400; font-size: 1.8rem; line-height: 1.1; }
.dlg-body p { color: #dccff4; }
.dlg-score { display: flex; align-items: center; gap: 1.1rem; }
.dlg-score strong { font-family: var(--font-head); font-weight: 400; font-size: 1.4rem; }
.dlg-score div:last-child { color: var(--muted); }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.4rem; }
.dlg-body .unlock-note { justify-self: start; margin: 0; }

.toast {
  position: fixed; left: 50%; bottom: 1.6rem; z-index: 120; max-width: min(92vw, 520px);
  padding: 0.85rem 1.3rem; border-radius: 16px; font-weight: 600; text-align: center;
  background: #1b0d3a; box-shadow: inset 0 0 0 1.5px var(--pink), 0 20px 50px -14px rgba(0, 0, 0, 0.9);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none; transition: transform 0.35s var(--ease), opacity 0.3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .verified-inner { grid-template-columns: auto minmax(0, 1fr); }
  .verified-inner .ad-link { grid-column: 1 / -1; justify-self: center; width: min(100%, 420px); }
}
@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 1.4rem; }
  .hero-art { order: -1; width: min(78vw, 360px); margin-bottom: -0.5rem; }
  .verified-inner { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .verified-inner .ad-link { justify-self: stretch; width: auto; }
  .notfound-layout .ad-link { flex-basis: 100%; max-width: 420px; }
}
@media (max-width: 640px) {
  :root { --header-h: 62px; }
  body { font-size: 1rem; }
  .brand-word { font-size: 1.35rem; }
  .tier-nav { grid-template-columns: 1fr; }
  .tier-tab { flex-direction: row; align-items: center; justify-content: space-between; }
  .options { grid-template-columns: 1fr; }
  .q { padding: 1rem 1rem 1.1rem; scroll-margin-top: 200px; }
  .progress { margin-left: 0; margin-right: 0; }
  .dot { width: 26px; height: 26px; }
  .results-top { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
  .intro-top { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
