:root {
  --blue: #1e7cff;
  --blue-2: #2e90ff;
  --blue-deep: #0a4ec9;
  --blue-dark: #062a73;
  --blue-darker: #021a4d;
  --blue-glow: #4fa1ff;
  --blue-cyan: #38b6ff;
  --yellow: #ffd60a;
  --yellow-bright: #ffe34d;
  --violet: #8b5cf6;
  --pink: #ff4d8d;
  --green: #22c55e;
  --red: #ef4444;
  --youtube-red: #ff0033;
  --youtube-red-hover: #cc0029;
  --white: #ffffff;
  --shadow-card: 0 18px 50px rgba(2, 18, 60, 0.45);
  --shadow-hard-y: 0 5px 0 #c79900;
  --shadow-hard-r: 0 5px 0 #a30021;
  --radius: 22px;
  --font-head: "Bricolage Grotesque", "Fredoka", system-ui, sans-serif;
  --font-body: "Inter", "Fredoka", system-ui, sans-serif;
  --font-ui: "Fredoka", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  background: #177eea;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01", "cv11";
  position: relative;
  font-weight: 500;
}

/* ===================== ATMOSPHERIC BACKGROUND ===================== */
.bg-gradient {
  position: fixed; inset: 0;
  z-index: -4;
  background:
    radial-gradient(ellipse 78% 54% at 72% 12%, rgba(82,190,255,0.72) 0%, rgba(51,159,241,0.36) 42%, transparent 68%),
    radial-gradient(ellipse 62% 46% at 18% 2%, rgba(255,214,10,0.22) 0%, transparent 48%),
    radial-gradient(ellipse 60% 46% at 86% 68%, rgba(56,182,255,0.48) 0%, transparent 62%),
    radial-gradient(ellipse 86% 66% at 34% 96%, rgba(2,26,77,0.86) 0%, rgba(4,44,112,0.55) 48%, transparent 72%),
    linear-gradient(180deg, #2495ff 0%, #167de8 35%, #0d62ca 64%, #073d91 100%);
  background-attachment: fixed;
}

/* Hexagon mesh pattern (from logo 2) */
.bg-hex {
  position: fixed; inset: 0;
  z-index: -3;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='92' viewBox='0 0 80 92'><polygon points='40,2 76,23 76,69 40,90 4,69 4,23' fill='none' stroke='rgba(255,255,255,0.105)' stroke-width='1.5'/></svg>");
  background-size: 80px 92px;
  opacity: 0.72;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,1) 38%, rgba(0,0,0,0.58) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,1) 38%, rgba(0,0,0,0.58) 100%);
}

/* Halftone dot overlay */
.bg-halftone {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.12) 1.2px, transparent 1.6px),
    radial-gradient(circle, rgba(255,255,255,0.075) 1px, transparent 1.4px);
  background-size: 26px 26px, 38px 38px;
  background-position: 0 0, 13px 13px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.82), rgba(0,0,0,0.5));
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.82), rgba(0,0,0,0.5));
}

/* Animated neural-network particles canvas */
.bg-fx {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.78;
}

/* Aurora shimmer at top */
.bg-aurora {
  position: fixed;
  top: -34%;
  left: -8%;
  width: 124%;
  height: 86%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 46% at 28% 44%, rgba(116,203,255,0.48) 0%, transparent 65%),
    radial-gradient(ellipse 54% 38% at 74% 38%, rgba(255,214,10,0.16) 0%, transparent 60%),
    radial-gradient(ellipse 48% 36% at 52% 62%, rgba(56,182,255,0.26) 0%, transparent 62%);
  filter: blur(26px);
  mix-blend-mode: screen;
  opacity: 0.82;
  animation: auroraShift 18s ease-in-out infinite;
}
@keyframes auroraShift {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 0.7; }
  25%      { transform: translate(40px, 30px) scale(1.05) rotate(2deg); opacity: 0.85; }
  50%      { transform: translate(-30px, 50px) scale(1.1) rotate(-1deg); opacity: 0.9; }
  75%      { transform: translate(20px, -20px) scale(1.03) rotate(1deg); opacity: 0.8; }
}

/* Twinkling stars */
.bg-stars {
  position: fixed; inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-stars span {
  position: absolute;
  width: 3px; height: 3px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255,255,255,0.8), 0 0 12px rgba(79,161,255,0.6);
  opacity: 0;
  animation: twinkle 4s ease-in-out infinite;
}
.bg-stars span:nth-child(1)  { top: 6%;  left: 8%;  animation-delay: 0s;    width: 2px; height: 2px; }
.bg-stars span:nth-child(2)  { top: 14%; left: 22%; animation-delay: 0.7s;  }
.bg-stars span:nth-child(3)  { top: 9%;  left: 41%; animation-delay: 1.5s;  width: 2px; height: 2px; }
.bg-stars span:nth-child(4)  { top: 22%; left: 58%; animation-delay: 2.2s;  }
.bg-stars span:nth-child(5)  { top: 5%;  left: 72%; animation-delay: 3s;    width: 4px; height: 4px; }
.bg-stars span:nth-child(6)  { top: 18%; left: 88%; animation-delay: 0.4s;  width: 2px; height: 2px; }
.bg-stars span:nth-child(7)  { top: 31%; left: 12%; animation-delay: 1.1s;  }
.bg-stars span:nth-child(8)  { top: 28%; left: 35%; animation-delay: 2.8s;  width: 2px; height: 2px; }
.bg-stars span:nth-child(9)  { top: 36%; left: 49%; animation-delay: 1.7s;  width: 4px; height: 4px; }
.bg-stars span:nth-child(10) { top: 33%; left: 66%; animation-delay: 0.9s;  }
.bg-stars span:nth-child(11) { top: 25%; left: 80%; animation-delay: 2.4s;  width: 2px; height: 2px; }
.bg-stars span:nth-child(12) { top: 44%; left: 5%;  animation-delay: 3.5s;  }
.bg-stars span:nth-child(13) { top: 48%; left: 25%; animation-delay: 0.2s;  width: 2px; height: 2px; }
.bg-stars span:nth-child(14) { top: 52%; left: 44%; animation-delay: 1.8s;  width: 4px; height: 4px; }
.bg-stars span:nth-child(15) { top: 50%; left: 62%; animation-delay: 2.6s;  }
.bg-stars span:nth-child(16) { top: 56%; left: 78%; animation-delay: 0.6s;  width: 2px; height: 2px; }
.bg-stars span:nth-child(17) { top: 62%; left: 14%; animation-delay: 1.3s;  }
.bg-stars span:nth-child(18) { top: 68%; left: 33%; animation-delay: 3.2s;  width: 2px; height: 2px; }
.bg-stars span:nth-child(19) { top: 64%; left: 52%; animation-delay: 2s;    width: 4px; height: 4px; }
.bg-stars span:nth-child(20) { top: 71%; left: 71%; animation-delay: 0.5s;  }
.bg-stars span:nth-child(21) { top: 66%; left: 92%; animation-delay: 1.6s;  width: 2px; height: 2px; }
.bg-stars span:nth-child(22) { top: 78%; left: 8%;  animation-delay: 2.9s;  }
.bg-stars span:nth-child(23) { top: 82%; left: 28%; animation-delay: 0.8s;  width: 2px; height: 2px; }
.bg-stars span:nth-child(24) { top: 79%; left: 46%; animation-delay: 2.1s;  width: 4px; height: 4px; }
.bg-stars span:nth-child(25) { top: 86%; left: 64%; animation-delay: 1.4s;  }
.bg-stars span:nth-child(26) { top: 88%; left: 82%; animation-delay: 3.4s;  width: 2px; height: 2px; }
.bg-stars span:nth-child(27) { top: 92%; left: 18%; animation-delay: 0.3s;  }
.bg-stars span:nth-child(28) { top: 95%; left: 38%; animation-delay: 1.9s;  width: 2px; height: 2px; }
.bg-stars span:nth-child(29) { top: 94%; left: 57%; animation-delay: 2.7s;  width: 4px; height: 4px; }
.bg-stars span:nth-child(30) { top: 90%; left: 75%; animation-delay: 1.2s;  }
@keyframes twinkle {
  0%, 100% { opacity: 0;   transform: scale(0.6); }
  50%      { opacity: 1;   transform: scale(1.4); }
}

/* Shooting stars */
.bg-stars::before, .bg-stars::after {
  content: "";
  position: absolute;
  width: 140px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.95), rgba(79,161,255,0.7), transparent);
  border-radius: 2px;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
  transform: rotate(-22deg);
  opacity: 0;
}
.bg-stars::before {
  top: 18%; left: -15%;
  animation: shoot 9s linear infinite;
  animation-delay: 3s;
}
.bg-stars::after {
  top: 58%; left: -15%;
  animation: shoot 11s linear infinite;
  animation-delay: 7.5s;
}
@keyframes shoot {
  0%   { transform: translate(0, 0) rotate(-22deg); opacity: 0; }
  6%   { opacity: 1; }
  18%  { opacity: 1; }
  24%  { transform: translate(140vw, 60vh) rotate(-22deg); opacity: 0; }
  100% { transform: translate(140vw, 60vh) rotate(-22deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-fx, .bg-aurora, .bg-stars { display: none; }
}

/* Floating "Play a Game" button */
.floating-play {
  position: fixed;
  left: clamp(14px, 2.4vw, 28px);
  top: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 14px;
  background: linear-gradient(135deg, #ffd60a 0%, #ffb800 100%);
  color: #0a2150;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: 0;
  border-radius: 100px;
  z-index: 55;
  cursor: pointer;
  opacity: 1;
  transform: translate(0, -50%);
  animation:
    fpDrift 6s ease-in-out infinite,
    fpGlow 2.6s ease-in-out infinite;
  transition: opacity 0.4s ease, filter 0.3s;
}
.floating-play .fp-orb {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #ffffff, #ffd60a 55%, #ff9500 100%);
  box-shadow: inset 0 -3px 6px rgba(0,0,0,0.2);
}
.floating-play .fp-emoji {
  font-size: 24px;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.18));
}
.floating-play .fp-spark {
  position: absolute;
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.9));
  opacity: 0;
}
.floating-play .fp-spark--1 { top: -2px; right: 6px; animation: fpSpark 2.4s 0s ease-in-out infinite; }
.floating-play .fp-spark--2 { bottom: 0; left: -3px; animation: fpSpark 2.4s 0.8s ease-in-out infinite; }
.floating-play .fp-spark--3 { top: 50%; right: -5px; animation: fpSpark 2.4s 1.6s ease-in-out infinite; }
.floating-play:hover {
  filter: brightness(1.05);
}
.floating-play:active { filter: brightness(0.96); }
.floating-play.fp-hidden,
.floating-play.fp-hidden-view { opacity: 0.58 !important; pointer-events: auto; transform: translate(0, -50%) !important; }
.floating-play.fp-dim { opacity: 0.58 !important; }
.floating-play.fp-dim:hover { opacity: 1 !important; }

/* Floating merch shirt */
.floating-merch-mic {
  position: fixed;
  right: clamp(14px, 2.6vw, 30px);
  top: 48%;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
  z-index: 56;
  opacity: 1;
  transform: translate(0, -50%) rotate(2deg);
  animation: fmmFloat 4.4s ease-in-out infinite;
  filter: drop-shadow(0 16px 28px rgba(0,0,0,0.38));
}
.fmm-orb {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,0.98), rgba(255,255,255,0.22) 28%, transparent 42%),
    linear-gradient(145deg, #ffd60a 0%, #ff9f1c 54%, #2563eb 100%);
  border: 2px solid rgba(255,255,255,0.72);
  box-shadow:
    inset 0 -8px 14px rgba(0,0,0,0.24),
    0 0 0 8px rgba(255,214,10,0.12);
}
.fmm-emoji {
  font-size: 42px;
  line-height: 1;
  transform: rotate(-11deg);
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.25));
}
.fmm-logo {
  position: absolute;
  right: -7px;
  top: 8px;
  width: 31px;
  height: 31px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  box-shadow: 0 7px 16px rgba(0,0,0,0.28);
}
.fmm-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(255,214,10,0.35);
  animation: fmmPulse 2.8s ease-in-out infinite;
}
.fmm-text {
  padding: 5px 10px;
  border-radius: 100px;
  background: rgba(2,26,77,0.72);
  border: 1px solid rgba(255,255,255,0.22);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(0,0,0,0.26);
}
.floating-merch-mic:hover {
  filter: drop-shadow(0 18px 34px rgba(0,0,0,0.44)) brightness(1.05);
}
.floating-merch-mic:active {
  transform: translate(0, -50%) scale(0.96);
}
.floating-merch-mic.fmm-hidden {
  opacity: 0.58 !important;
  pointer-events: auto;
  transform: translate(0, -50%) rotate(2deg) !important;
}
.floating-merch-mic.fmm-dim { opacity: 0.58 !important; }
.floating-merch-mic.fmm-dim:hover { opacity: 1 !important; }
.floating-merch-mic.fmm-hidden,
.floating-merch-mic.fmm-hidden.fmm-dim {
  opacity: 0.58 !important;
}
@keyframes fpEnter {
  to { opacity: 1; transform: translate(0, -50%); }
}
@keyframes fpDrift {
  0%, 100% { transform: translate(0, -50%) rotate(-2deg); }
  25%      { transform: translate(8px, calc(-50% - 14px)) rotate(2deg); }
  50%      { transform: translate(-4px, calc(-50% + 12px)) rotate(-3deg); }
  75%      { transform: translate(10px, calc(-50% - 6px)) rotate(2deg); }
}
@keyframes fpGlow {
  0%, 100% {
    box-shadow:
      0 8px 22px rgba(0,0,0,0.45),
      0 0 0 2px rgba(255,255,255,0.7),
      0 0 30px rgba(255,214,10,0.55);
  }
  50% {
    box-shadow:
      0 12px 32px rgba(0,0,0,0.5),
      0 0 0 2.5px rgba(255,255,255,0.95),
      0 0 50px rgba(255,214,10,0.85);
  }
}
@keyframes fpSpark {
  0%, 60%, 100% { opacity: 0; transform: scale(0.6); }
  30%           { opacity: 1; transform: scale(1.2); }
}
@keyframes fmmEnter {
  to { opacity: 1; transform: translate(0, -50%) rotate(2deg); }
}
@keyframes fmmFloat {
  0%, 100% { transform: translate(0, -50%) rotate(2deg); }
  33%      { transform: translate(-6px, calc(-50% - 12px)) rotate(-2deg); }
  66%      { transform: translate(5px, calc(-50% + 9px)) rotate(4deg); }
}
@keyframes fmmPulse {
  0%, 100% { opacity: 0.26; transform: scale(0.9); }
  50%      { opacity: 0.62; transform: scale(1.08); }
}
@media (max-width: 700px) {
  .floating-play {
    left: max(10px, env(safe-area-inset-left));
    top: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
    display: grid;
    padding: 8px;
    transform: translate(0, 0);
    animation:
      fpGlow 2.6s ease-in-out infinite;
  }
  .floating-play .fp-text { display: none; }
  .floating-play .fp-orb {
    width: 38px;
    height: 38px;
  }
  .floating-play.fp-hidden,
  .floating-play.fp-hidden-view {
    transform: translate(0, 0) !important;
  }
  .floating-merch-mic {
    right: max(10px, env(safe-area-inset-right));
    top: auto;
    bottom: max(92px, calc(env(safe-area-inset-bottom) + 92px));
    transform: rotate(2deg);
    animation: fmmFloatMobile 4.4s ease-in-out infinite;
  }
  .fmm-orb {
    width: 58px;
    height: 58px;
  }
  .fmm-emoji { font-size: 32px; }
  .fmm-logo {
    width: 25px;
    height: 25px;
    right: -5px;
    top: 3px;
  }
  .fmm-text { display: none; }
  .floating-merch-mic.fmm-hidden {
    transform: rotate(2deg) !important;
  }
}
@keyframes fpEnterMobile {
  from { opacity: 0; transform: translate(-90px, 0); }
  to { opacity: 1; transform: translate(0, 0); }
}
@keyframes fmmFloatMobile {
  0%, 100% { transform: translate(0, 0) rotate(2deg); }
  33%      { transform: translate(-5px, -10px) rotate(-2deg); }
  66%      { transform: translate(4px, 8px) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .floating-play {
    animation: none;
  }
  .floating-play .fp-spark { display: none; }
  .floating-merch-mic {
    animation: none;
  }
  .fmm-ring { animation: none; }
}

/* Scroll-to-top button */
.scroll-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(20px, 4vw, 36px);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(145deg, #ffd60a 0%, #ffb800 100%);
  color: #0a2150;
  display: grid;
  place-items: center;
  z-index: 60;
  box-shadow:
    0 8px 22px rgba(0,0,0,0.45),
    0 0 0 2px rgba(255,255,255,0.8),
    0 0 28px rgba(255,214,10,0.55);
  opacity: 0;
  transform: translateY(20px) scale(0.7);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s;
}
.scroll-top:not([hidden]).visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: scrollBob 2.6s ease-in-out infinite;
}
.scroll-top:hover {
  box-shadow:
    0 12px 30px rgba(0,0,0,0.5),
    0 0 0 2.5px rgba(255,255,255,1),
    0 0 40px rgba(255,214,10,0.85);
}
.scroll-top:active { transform: translateY(2px) scale(0.95); }
.scroll-top svg { display: block; }
@keyframes scrollBob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-top:not([hidden]).visible { animation: none; }
}

.badge-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 240;
  width: min(360px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  color: var(--white);
  background:
    radial-gradient(circle at 8% 10%, rgba(255,214,10,0.42), transparent 32%),
    linear-gradient(135deg, rgba(3,26,76,0.96), rgba(13,75,160,0.94));
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 18px 48px rgba(0,20,70,0.38), inset 0 1px 0 rgba(255,255,255,0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.22s, transform 0.22s;
}
.badge-toast[hidden] {
  display: none;
}
.badge-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.badge-toast__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #fff9bf, #ffd60a 52%, #ff1744 100%);
  box-shadow: 0 0 24px rgba(255,214,10,0.26);
  font-size: 23px;
}
.badge-toast__copy {
  min-width: 0;
}
.badge-toast__copy strong,
.badge-toast__copy em {
  display: block;
}
.badge-toast__copy strong {
  color: var(--yellow-bright);
  font: 900 11px/1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0;
}
.badge-toast__copy em {
  margin-top: 4px;
  color: var(--white);
  font: 900 16px/1.08 var(--font-head);
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.badge-toast a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  color: #071a43;
  background: linear-gradient(135deg, #fff277, #ffd60a 62%, #ffb800);
  text-decoration: none;
  font: 900 12px/1 var(--font-ui);
}

@media (max-width: 700px) {
  .badge-toast {
    left: 14px;
    right: 14px;
    bottom: 18px;
    width: auto;
  }
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

/* ===================== HEADER ===================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 60px) 8px;
  max-width: 1320px;
  margin: 0 auto;
}

.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--white);
}
.logo-img {
  height: 96px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45)) drop-shadow(0 0 28px rgba(79,161,255,0.45));
  transition: filter 0.3s;
  animation: logoFloat 4.2s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
}
.logo:hover .logo-img {
  animation: logoFloat 4.2s ease-in-out infinite, logoWobble 0.7s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.5)) drop-shadow(0 0 40px rgba(79,161,255,0.85)) drop-shadow(0 0 60px rgba(255,214,10,0.35));
}
.logo-img--footer {
  height: 64px;
  animation-duration: 5.5s;
  animation-delay: -1.3s;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-6px) rotate(-1.2deg); }
  50%      { transform: translateY(-10px) rotate(0deg); }
  75%      { transform: translateY(-4px) rotate(1.2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-img { animation: none; }
}
.logo-badge {
  width: 78px; height: 78px;
  display: grid; place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px rgba(255,255,255,1),
    0 8px 22px rgba(0,0,0,0.5),
    0 0 32px rgba(79,161,255,0.55);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
  cursor: pointer;
}
.logo-badge img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.logo:hover .logo-badge {
  animation: logoWobble 0.7s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,1),
    0 12px 28px rgba(0,0,0,0.5),
    0 0 50px rgba(79,161,255,0.85),
    0 0 80px rgba(255,214,10,0.25);
}
.logo:hover .logo-text {
  animation: textNudge 0.7s ease both;
}
.logo-badge.small {
  width: 40px; height: 40px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.75),
    0 4px 12px rgba(0,0,0,0.35),
    0 0 18px rgba(79,161,255,0.3);
}

@keyframes logoWobble {
  0%   { transform: rotate(0) scale(1); }
  15%  { transform: rotate(-14deg) scale(1.1); }
  30%  { transform: rotate(12deg) scale(1.12); }
  45%  { transform: rotate(-8deg) scale(1.1); }
  60%  { transform: rotate(6deg) scale(1.08); }
  75%  { transform: rotate(-3deg) scale(1.05); }
  100% { transform: rotate(0) scale(1.05); }
}
@keyframes textNudge {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 3px 0 rgba(0,0,0,0.25);
}

.subscriber-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  max-width: max-content;
  min-width: 0;
  min-height: 40px;
  padding: 0;
  margin-left: clamp(12px, 2.4vw, 32px);
  margin-right: auto;
  border: 0;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  opacity: 0.98;
  transform: translateY(0);
  transition: opacity 0.18s, transform 0.18s, filter 0.18s;
  flex-shrink: 0;
  position: relative;
  animation: subscriberFloat 4.8s ease-in-out infinite;
}
.subscriber-badge:hover {
  opacity: 1;
  color: var(--white);
  filter: brightness(1.08) saturate(1.08);
  transform: translateY(-2px) scale(1.02);
}
.subscriber-badge__pulse {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255,255,255,0.95) 0 12%, rgba(255,255,255,0.16) 13% 26%, transparent 27%),
    linear-gradient(145deg, #ff1748, #d9002c);
  box-shadow:
    0 0 0 7px rgba(255,0,51,0.13),
    0 0 22px rgba(255,0,51,0.72),
    inset 0 1px 0 rgba(255,255,255,0.36),
    inset 0 -5px 10px rgba(120,0,25,0.36);
  position: relative;
  flex-shrink: 0;
  align-self: center;
  animation: subscriberPulseButton 1.45s ease-in-out infinite;
}
.subscriber-badge__pulse::after,
.subscriber-badge__pulse::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: inherit;
  border: 1px solid rgba(255,0,51,0.55);
  animation: subscriberRing 1.8s ease-out infinite;
}
.subscriber-badge__pulse::before {
  inset: -15px;
  opacity: 0.45;
  animation-delay: 0.55s;
}
.subscriber-badge__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  line-height: 1;
  min-width: max-content;
  height: 38px;
  align-self: center;
  text-align: center;
}
.subscriber-badge__text strong {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  line-height: 0.9;
  text-shadow: 0 3px 12px rgba(0,0,0,0.38), 0 0 18px rgba(255,0,51,0.22);
}
.subscriber-badge__kicker {
  color: var(--yellow-bright);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 7px rgba(0,0,0,0.32);
}
.subscriber-badge.is-live .subscriber-badge__kicker,
.subscriber-badge.is-exact .subscriber-badge__kicker {
  color: #28f08b;
}
.subscriber-badge.is-loading .subscriber-badge__text strong {
  color: rgba(255,255,255,0.65);
}
@keyframes subscriberFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes subscriberPulseButton {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.1); filter: brightness(1.14); }
}
@keyframes subscriberRing {
  0% { transform: scale(0.45); opacity: 0.92; }
  100% { transform: scale(1.65); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .subscriber-badge,
  .subscriber-badge__pulse,
  .subscriber-badge__pulse::before,
  .subscriber-badge__pulse::after { animation: none; }
}

.site-nav { display: flex; gap: 22px; align-items: center; margin-left: clamp(12px, 2vw, 24px); }
.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  opacity: 0.88;
  transition: opacity 0.15s, color 0.15s;
}
.site-nav a:hover { opacity: 1; color: var(--yellow); }

.btn-sub {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: linear-gradient(120deg,
    #ffd60a 0%,
    #ffae00 22%,
    #ff7a1a 44%,
    #ff0033 60%,
    #ff7a1a 78%,
    #ffae00 90%,
    #ffd60a 100%);
  background-size: 250% 100%;
  background-position: 0% 50%;
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  opacity: 1 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  box-shadow: 0 4px 0 #b58400, 0 0 26px rgba(255,170,0,0.55);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.2s;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  animation: subShift 5.5s ease-in-out infinite;
}
.btn-sub::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 70%; height: 100%;
  background: linear-gradient(110deg, transparent, rgba(255,255,255,0.65), transparent);
  transform: skewX(-22deg);
  animation: lightning 2.6s infinite;
  pointer-events: none;
  z-index: 1;
}
.btn-sub > * { position: relative; z-index: 2; }
.btn-sub:hover {
  color: var(--white) !important;
  transform: translateY(-2px);
  filter: brightness(1.08) saturate(1.15);
  box-shadow: 0 6px 0 #8c2c00, 0 0 36px rgba(255,100,30,0.85);
}
.btn-sub:active { transform: translateY(2px); box-shadow: 0 2px 0 #8c2c00, 0 0 16px rgba(255,100,30,0.5); }

@keyframes lightning {
  0%   { left: -100%; }
  60%  { left: -100%; }
  80%  { left: 120%; }
  100% { left: 120%; }
}
@keyframes subShift {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-sub { animation: none; background-position: 30% 50%; }
}

@media (max-width: 1180px) {
  .site-header {
    padding-left: 28px;
    padding-right: 28px;
  }
  .subscriber-badge {
    min-width: 0;
    min-height: 40px;
    padding: 0;
    margin-left: 10px;
  }
  .subscriber-badge__pulse {
    width: 19px;
    height: 19px;
  }
  .subscriber-badge__text strong {
    font-size: 19px;
  }
  .subscriber-badge__kicker {
    font-size: 9px;
  }
  .site-nav {
    gap: 14px;
    margin-left: 12px;
  }
  .site-nav a {
    font-size: 14px;
  }
  .btn-sub--header {
    padding: 9px 14px;
  }
}

.sound-toggle {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  color: var(--white);
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: grid; place-items: center;
  transition: background 0.15s, transform 0.15s;
}
.sound-toggle:hover { background: rgba(255,255,255,0.2); transform: scale(1.08); }

@media (max-width: 900px) {
  .site-nav a:not(.btn-sub) { display: none; }
  .subscriber-badge {
    min-width: 0;
    min-height: 40px;
    padding: 0;
    margin-left: 8px;
  }
  .btn-sub--header { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 24px 4px 14px;
    gap: 8px;
  }
  .logo-img {
    height: 72px;
  }
  .subscriber-badge {
    min-width: 0;
    gap: 6px;
    min-height: 38px;
    padding: 0;
    margin-left: 2px;
  }
  .subscriber-badge__pulse {
    width: 16px;
    height: 16px;
  }
  .subscriber-badge__text strong {
    font-size: 15px;
  }
  .subscriber-badge__text {
    height: 32px;
  }
  .subscriber-badge__kicker {
    display: block;
    font-size: 7px;
  }
  .site-nav {
    gap: 8px;
    min-width: 0;
  }
  .sound-toggle {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
  .btn-sub--header {
    display: none !important;
  }
}

/* ===================== HERO ===================== */
.hero {
  max-width: 1100px;
  margin: 0 auto 70px;
  padding: clamp(8px, 1.5vw, 16px) clamp(20px, 5vw, 60px) clamp(40px, 6vw, 60px);
  text-align: center;
  scroll-margin-top: 118px;
}

.daily-quest,
.weekly-quest,
.achievement-vault,
.challenge-builder,
.quizzes,
.channel-packs,
.about,
.leaderboard,
.arcade,
.videos,
.merch-strip {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

.eyebrow {
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  background: rgba(255, 214, 10, 0.18);
  color: var(--yellow-bright);
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 214, 10, 0.4);
  box-shadow: 0 0 25px rgba(255, 214, 10, 0.2);
  overflow-wrap: anywhere;
}
.hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(44px, 8.5vw, 92px);
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 22px;
}
.hero h1 .hl-mg {
  background: linear-gradient(135deg, #ffffff 0%, #b8d9ff 50%, #4fa1ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero h1 .hl-y {
  background: linear-gradient(135deg, #fff277 0%, #ffd60a 45%, #ffae00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.lede {
  font-size: clamp(15px, 1.6vw, 19px);
  max-width: 640px;
  margin: 0 auto 36px;
  opacity: 0.94;
}

.hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 50px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  user-select: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--yellow);
  color: var(--blue-dark);
  box-shadow: var(--shadow-hard-y);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 #c79900; background: var(--yellow-bright); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #c79900; }
.btn-primary:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.btn-red {
  background: var(--youtube-red);
  color: var(--white);
  box-shadow: var(--shadow-hard-r);
}
.btn-red:hover { background: var(--youtube-red-hover); transform: translateY(-2px); box-shadow: 0 7px 0 var(--youtube-red-hover); }
.btn-red:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--youtube-red-hover); }

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); border-color: var(--yellow); color: var(--yellow); }

.btn-big { padding: 20px 40px; font-size: 18px; }

.hero-stats {
  display: flex; justify-content: center; gap: clamp(24px, 6vw, 70px);
  flex-wrap: wrap;
}
.hero-stats div { display: flex; flex-direction: column; align-items: center; }
.hero-stats strong {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  color: var(--yellow);
  line-height: 1;
  text-shadow: 0 0 30px rgba(255, 214, 10, 0.4);
}
.hero-stats span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
  opacity: 0.75;
  margin-top: 6px;
  font-weight: 600;
}
.mission-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(860px, 100%);
  margin: 26px auto 0;
}
.mission-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon title"
    "icon meta";
  gap: 0 8px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
  transition: transform 0.18s, background 0.18s, border-color 0.18s;
}
.mission-chip:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,214,10,0.42);
}
.mission-chip:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
  border-color: rgba(255,214,10,0.62);
}
.mission-chip span {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,214,10,0.18);
}
.mission-chip strong {
  grid-area: title;
  font: 900 13px var(--font-ui);
  line-height: 1.1;
}
.mission-chip em {
  grid-area: meta;
  color: rgba(255,255,255,0.72);
  font: 800 11px var(--font-ui);
  line-height: 1.2;
  font-style: normal;
}
.install-card {
  width: min(860px, 100%);
  margin: 12px auto 0;
  min-height: 62px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  border-radius: 8px;
  background:
    radial-gradient(circle at 6% 12%, rgba(255,214,10,0.22), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,214,10,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.13), 0 14px 34px rgba(0,43,115,0.14);
}
.install-card__copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.install-card__copy > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255,214,10,0.2);
}
.install-card__copy strong,
.install-card__copy em {
  display: block;
}
.install-card__copy strong {
  color: var(--white);
  font: 900 14px/1.05 var(--font-ui);
}
.install-card__copy em {
  margin-top: 4px;
  color: rgba(255,255,255,0.74);
  font: 800 11px/1.25 var(--font-ui);
  font-style: normal;
}
.install-card__btn,
.install-card__close {
  min-height: 38px;
  border-radius: 999px;
  border: 0;
  font: 900 12px/1 var(--font-ui);
  cursor: pointer;
}
.install-card__btn {
  padding: 10px 14px;
  color: #071a43;
  background: linear-gradient(135deg, #fff277, #ffd60a 62%, #ffb800);
  box-shadow: 0 10px 20px rgba(255,184,0,0.2);
}
.install-card__close {
  width: 38px;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
}
.install-card__btn:hover,
.install-card__close:hover {
  filter: brightness(1.05);
}
.install-card__btn:focus-visible,
.install-card__close:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.passport-card {
  width: min(860px, 100%);
  margin: 14px auto 0;
  padding: 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  border-radius: 8px;
  background:
    radial-gradient(circle at 11% 0%, rgba(255,214,10,0.28), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,0.17), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 18px 46px rgba(0,43,115,0.22), inset 0 1px 0 rgba(255,255,255,0.16);
  overflow: hidden;
}
.passport-orb {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 25%, #fff9bf, #ffd60a 48%, #ff3b30 100%);
  box-shadow: inset 0 -5px 10px rgba(0,0,0,0.2), 0 0 24px rgba(255,214,10,0.28);
}
.passport-orb span {
  font: 900 17px/1 var(--font-head);
  color: #05245e;
}
.passport-orb em {
  position: absolute;
  right: -7px;
  bottom: -3px;
  font-style: normal;
  font-size: 23px;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.28));
}
.passport-main {
  min-width: 0;
}
.passport-kicker {
  display: block;
  color: var(--yellow-bright);
  font: 900 10px/1.1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0;
}
.passport-name {
  display: block;
  margin-top: 4px;
  font: 900 clamp(21px, 3vw, 30px)/1 var(--font-head);
  color: var(--white);
  overflow-wrap: anywhere;
}
.passport-rank {
  width: fit-content;
  max-width: 100%;
  margin-top: 9px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255,214,10,0.14);
  border: 1px solid rgba(255,214,10,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.passport-rank b,
.passport-rank em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.passport-rank b {
  color: var(--yellow-bright);
  font: 900 12px/1 var(--font-ui);
}
.passport-rank em {
  color: rgba(255,255,255,0.78);
  font: 800 11px/1 var(--font-ui);
  font-style: normal;
}
.passport-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.passport-stat {
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(3,26,76,0.24);
  border: 1px solid rgba(255,255,255,0.12);
}
.passport-stat strong,
.passport-stat span {
  display: block;
}
.passport-stat strong {
  color: var(--yellow-bright);
  font: 900 18px/1 var(--font-head);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.passport-stat span {
  margin-top: 4px;
  color: rgba(255,255,255,0.76);
  font: 800 10px/1.1 var(--font-ui);
  text-transform: uppercase;
}
.passport-side {
  width: min(260px, 28vw);
  display: grid;
  gap: 10px;
}
.passport-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.passport-badge {
  min-width: 0;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.16);
  font: 900 11px/1.12 var(--font-ui);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.passport-badge.is-locked {
  opacity: 0.48;
  filter: grayscale(0.45);
}
.passport-next {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #071a43;
  background: linear-gradient(135deg, #fff277, #ffd60a 62%, #ffb800);
  text-decoration: none;
  font: 900 13px/1.1 var(--font-ui);
  box-shadow: 0 10px 22px rgba(255,184,0,0.24);
  transition: transform 0.18s, filter 0.18s;
}
.passport-next:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}
.channel-pulse {
  width: min(860px, 100%);
  margin: 14px auto 0;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0,130,255,0.28), rgba(3,26,76,0.24)),
    rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.13);
}
.channel-pulse__head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.88);
  font: 900 11px/1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0;
}
.channel-pulse__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff1744;
  box-shadow: 0 0 0 0 rgba(255,23,68,0.55);
  animation: channelPulseDot 1.7s ease-out infinite;
}
.channel-pulse__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.42fr) auto;
  gap: 10px;
  align-items: stretch;
  margin-top: 10px;
}
.channel-pulse__item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  background: rgba(2,18,60,0.22);
  border: 1px solid rgba(255,255,255,0.14);
  transition: transform 0.18s, background 0.18s, border-color 0.18s;
}
.channel-pulse__item:hover {
  transform: translateY(-2px);
  background: rgba(2,18,60,0.31);
  border-color: rgba(255,214,10,0.42);
}
.channel-pulse__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: #ff1744;
  box-shadow: 0 0 18px rgba(255,23,68,0.32);
  font-size: 11px;
  line-height: 1;
}
.channel-pulse__icon--play {
  font-size: 14px;
  padding-left: 2px;
}
.channel-pulse__copy {
  min-width: 0;
  display: block;
}
.channel-pulse__copy strong,
.channel-pulse__copy em {
  display: block;
}
.channel-pulse__copy strong {
  font: 900 18px/1.08 var(--font-head);
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.channel-pulse__copy em {
  margin-top: 4px;
  color: rgba(255,255,255,0.72);
  font: 800 11px/1.15 var(--font-ui);
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.channel-pulse__refresh {
  min-width: 92px;
  border: 0;
  border-radius: 8px;
  color: #071a43;
  background: linear-gradient(135deg, #fff277, #ffd60a 64%, #ffb800);
  font: 900 13px/1 var(--font-ui);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255,184,0,0.2);
  transition: transform 0.18s, filter 0.18s;
}
.channel-pulse__refresh:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}
.channel-pulse__refresh.is-loading {
  filter: grayscale(0.2) brightness(0.92);
  cursor: wait;
}
.fan-mission {
  width: min(860px, 100%);
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
  color: var(--white);
  background:
    radial-gradient(circle at 0% 0%, rgba(255,214,10,0.22), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.14), rgba(2,18,60,0.22));
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.13), 0 16px 34px rgba(0,43,115,0.16);
}
.fan-mission__main {
  min-width: 0;
}
.fan-mission__main span,
.fan-mission__main strong,
.fan-mission__main em {
  display: block;
}
.fan-mission__kicker {
  color: var(--yellow-bright);
  font: 900 10px/1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0;
}
.fan-mission__main strong {
  margin-top: 5px;
  color: var(--white);
  font: 900 clamp(21px, 2.7vw, 32px)/1 var(--font-head);
}
.fan-mission__main em {
  margin-top: 5px;
  color: rgba(255,255,255,0.72);
  font: 800 12px/1.25 var(--font-ui);
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fan-mission__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
}
.fan-mission__steps a,
.fan-mission__steps button {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(2,18,60,0.22);
  border: 1px solid rgba(255,255,255,0.14);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s, background 0.18s, border-color 0.18s;
}
.fan-mission__steps button {
  font-family: inherit;
}
.fan-mission__steps a:hover,
.fan-mission__steps button:hover {
  transform: translateY(-2px);
  background: rgba(2,18,60,0.32);
  border-color: rgba(255,214,10,0.44);
}
.fan-mission__steps span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #071a43;
  background: linear-gradient(135deg, #fff277, #ffd60a 62%, #ffb800);
  font: 900 12px/1 var(--font-ui);
}
.fan-mission__steps b {
  min-width: 0;
  color: var(--white);
  font: 900 12px/1.08 var(--font-ui);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@keyframes channelPulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255,23,68,0.58); }
  100% { box-shadow: 0 0 0 11px rgba(255,23,68,0); }
}
.daily-quest {
  max-width: 1120px;
  margin: 0 auto 86px;
  padding: 0 clamp(20px, 5vw, 60px);
}
.daily-quest__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 1.15fr) minmax(190px, 0.72fr);
  gap: 14px;
  align-items: stretch;
}
.daily-quest__main,
.daily-quest__week,
.daily-quest__stats {
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 16px 36px rgba(0,43,115,0.18);
}
.daily-quest__main {
  padding: 18px;
}
.daily-quest__kicker {
  display: inline-flex;
  color: var(--yellow-bright);
  font: 900 11px/1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0;
}
.daily-quest__main h3 {
  margin-top: 8px;
  font-family: var(--font-head);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1;
}
.daily-quest__main p {
  margin-top: 10px;
  color: rgba(255,255,255,0.78);
  font: 700 14px/1.45 var(--font-ui);
}
.daily-quest__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.daily-quest__actions .btn {
  padding: 13px 22px;
}
.daily-quest__link {
  color: var(--yellow-bright);
  font: 900 13px/1 var(--font-ui);
  text-decoration: none;
}
.daily-quest__link:hover {
  text-decoration: underline;
}
.weekly-quest {
  max-width: 1120px;
  margin: 0 auto 86px;
  padding: 0 clamp(20px, 5vw, 60px);
}
.weekly-quest__panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.56fr) minmax(0, 1.44fr);
  gap: 14px;
  align-items: stretch;
}
.weekly-quest__summary,
.weekly-task {
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 16px 36px rgba(0,43,115,0.16);
}
.weekly-quest__summary {
  padding: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,214,10,0.28), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,0.16), rgba(2,18,60,0.22));
}
.weekly-quest__kicker {
  display: inline-flex;
  color: var(--yellow-bright);
  font: 900 11px/1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0;
}
.weekly-quest__summary strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font: 900 clamp(27px, 3.4vw, 40px)/1 var(--font-head);
}
.weekly-quest__summary p {
  margin-top: 10px;
  color: rgba(255,255,255,0.78);
  font: 800 14px/1.42 var(--font-ui);
}
.weekly-quest__next {
  margin-top: 18px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  color: #071a43;
  background: linear-gradient(135deg, #fff277, #ffd60a 62%, #ffb800);
  text-decoration: none;
  font: 900 13px/1.1 var(--font-ui);
  box-shadow: 0 12px 26px rgba(255,184,0,0.24);
  transition: transform 0.18s, filter 0.18s;
}
.weekly-quest__next:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}
.weekly-quest__tasks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.weekly-task {
  min-width: 0;
  min-height: 116px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 10px;
  padding: 13px;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.18s, background 0.18s, border-color 0.18s;
}
.weekly-task:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,214,10,0.42);
}
.weekly-task:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
  border-color: rgba(255,214,10,0.62);
}
.weekly-task.is-done {
  background: linear-gradient(145deg, rgba(34,197,94,0.22), rgba(255,255,255,0.12));
  border-color: rgba(34,197,94,0.34);
}
.weekly-task__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,214,10,0.18);
}
.weekly-task.is-done .weekly-task__icon {
  background: radial-gradient(circle at 35% 25%, #fff9bf, #ffd60a 52%, #22c55e 100%);
}
.weekly-task__copy {
  min-width: 0;
}
.weekly-task__copy strong,
.weekly-task__copy em {
  display: block;
}
.weekly-task__copy strong {
  color: var(--white);
  font: 900 14px/1.12 var(--font-ui);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weekly-task__copy em {
  margin-top: 5px;
  color: rgba(255,255,255,0.72);
  font: 800 11px/1.26 var(--font-ui);
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.weekly-task__meter {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}
.weekly-task__meter i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(2,18,60,0.28);
}
.weekly-task__meter i::before {
  content: "";
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4fa1ff, #ffd60a 72%, #22c55e);
}
.weekly-task__meter b {
  color: rgba(255,255,255,0.76);
  font: 900 10px/1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0;
}
.achievement-vault {
  max-width: 1120px;
  margin: 0 auto 86px;
  padding: 0 clamp(20px, 5vw, 60px);
}
.achievement-vault__panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: 14px;
  align-items: stretch;
}
.achievement-vault__summary {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 20px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,214,10,0.32), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,0.18), rgba(2,18,60,0.23));
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), 0 16px 36px rgba(0,43,115,0.18);
}
.achievement-vault__kicker {
  display: inline-flex;
  color: var(--yellow-bright);
  font: 900 11px/1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0;
}
.achievement-vault__summary strong {
  display: block;
  margin-top: 8px;
  font: 900 clamp(28px, 3.8vw, 42px)/0.98 var(--font-head);
  color: var(--white);
}
.achievement-vault__summary p {
  margin-top: 12px;
  color: rgba(255,255,255,0.78);
  font: 800 14px/1.42 var(--font-ui);
}
.rank-meter {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(3,26,76,0.24);
  border: 1px solid rgba(255,255,255,0.13);
}
.rank-meter__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,0.82);
  font: 900 11px/1 var(--font-ui);
  text-transform: uppercase;
}
.rank-meter__top b {
  color: var(--yellow-bright);
  font-size: 14px;
}
.rank-meter > i {
  position: relative;
  display: block;
  height: 9px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
}
.rank-meter > i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--rank-p, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd60a, #ff3b30);
  box-shadow: 0 0 16px rgba(255,214,10,0.3);
}
.rank-meter small {
  display: block;
  margin-top: 9px;
  color: rgba(255,255,255,0.75);
  font: 800 12px/1.35 var(--font-ui);
}
.rank-ladder {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.rank-ladder span {
  max-width: 100%;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  font: 900 10px/1 var(--font-ui);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-ladder span.is-earned {
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.15);
}
.rank-ladder span.is-current {
  color: #071a43;
  background: linear-gradient(135deg, #fff277, #ffd60a);
  border-color: rgba(255,214,10,0.5);
}
.achievement-vault__next {
  margin-top: 18px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  color: #071a43;
  background: linear-gradient(135deg, #fff277, #ffd60a 62%, #ffb800);
  text-decoration: none;
  font: 900 13px/1.1 var(--font-ui);
  box-shadow: 0 12px 26px rgba(255,184,0,0.24);
  transition: transform 0.18s, filter 0.18s;
}
.achievement-vault__next:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}
.achievement-vault__next b {
  min-width: 0;
  overflow-wrap: anywhere;
}
.achievement-vault__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.achievement-card {
  min-width: 0;
  min-height: 116px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 10px;
  padding: 13px;
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.13);
  transition: transform 0.18s, background 0.18s, border-color 0.18s;
}
.achievement-card:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,214,10,0.42);
}
.achievement-card:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
  border-color: rgba(255,214,10,0.62);
}
.achievement-card.is-locked {
  background: rgba(2,18,60,0.18);
}
.achievement-card__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,214,10,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.achievement-card.is-earned .achievement-card__icon {
  background: radial-gradient(circle at 35% 25%, #fff9bf, #ffd60a 52%, #ff1744 100%);
  box-shadow: 0 0 22px rgba(255,214,10,0.24);
}
.achievement-card__copy {
  min-width: 0;
}
.achievement-card__copy strong,
.achievement-card__copy em {
  display: block;
}
.achievement-card__copy strong {
  color: var(--white);
  font: 900 14px/1.1 var(--font-ui);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.achievement-card__copy em {
  margin-top: 5px;
  color: rgba(255,255,255,0.72);
  font: 800 11px/1.26 var(--font-ui);
  font-style: normal;
}
.achievement-card__progress {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
}
.achievement-card__progress i {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(2,18,60,0.28);
}
.achievement-card__progress i::before {
  content: "";
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #ffd60a 70%, #ff1744);
}
.achievement-card__progress b {
  color: rgba(255,255,255,0.76);
  font: 900 10px/1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0;
}
.daily-quest__week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}
.daily-day {
  min-width: 0;
  min-height: 82px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 7px;
  border-radius: 8px;
  color: rgba(255,255,255,0.76);
  background: rgba(3,26,76,0.26);
  border: 1px solid rgba(255,255,255,0.12);
}
.daily-day strong,
.daily-day em {
  display: block;
}
.daily-day strong {
  font: 900 12px/1 var(--font-ui);
  text-transform: uppercase;
}
.daily-day em {
  max-width: 100%;
  color: rgba(255,255,255,0.62);
  font: 900 11px/1 var(--font-ui);
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.daily-day.is-today {
  border-color: rgba(255,214,10,0.5);
  box-shadow: 0 0 0 1px rgba(255,214,10,0.18), inset 0 1px 0 rgba(255,255,255,0.18);
}
.daily-day.is-done {
  color: var(--white);
  background: linear-gradient(145deg, rgba(255,214,10,0.22), rgba(255,255,255,0.11));
}
.daily-day.is-passed em {
  color: var(--yellow-bright);
}
.daily-quest__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}
.daily-quest__stats div {
  min-width: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 12px 8px;
  background: rgba(3,26,76,0.2);
}
.daily-quest__stats strong {
  color: var(--yellow-bright);
  font: 900 24px/1 var(--font-head);
}
.daily-quest__stats span {
  margin-top: 5px;
  color: rgba(255,255,255,0.7);
  font: 900 10px/1 var(--font-ui);
  text-transform: uppercase;
}
.challenge-builder {
  max-width: 1120px;
  margin: 0 auto 88px;
  padding: 0 clamp(20px, 5vw, 60px);
}
.challenge-builder__panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 14px;
  align-items: stretch;
}
.challenge-builder__controls,
.challenge-builder__share {
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.13), 0 16px 36px rgba(0,43,115,0.18);
}
.challenge-builder__controls {
  display: grid;
  gap: 10px;
  padding: 16px;
}
.challenge-builder__controls label,
.challenge-builder__controls > span {
  color: var(--yellow-bright);
  font: 900 11px/1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0;
}
.challenge-builder__controls select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--white);
  background: rgba(3,26,76,0.42);
  font: 900 14px var(--font-ui);
}
.challenge-builder__controls select option {
  color: #071a43;
}
.challenge-difficulty {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.challenge-difficulty button {
  min-height: 42px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  font: 900 13px/1 var(--font-ui);
  cursor: pointer;
}
.challenge-difficulty button.is-active {
  color: #071a43;
  background: linear-gradient(135deg, #fff277, #ffd60a 62%, #ffb800);
  border-color: rgba(255,214,10,0.7);
}
.challenge-builder__share {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}
.challenge-builder__share span,
.challenge-builder__share strong,
.challenge-builder__share em {
  display: block;
}
.challenge-builder__share span {
  color: var(--yellow-bright);
  font: 900 11px/1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0;
}
.challenge-builder__share strong {
  margin-top: 6px;
  font: 900 clamp(24px, 3vw, 34px)/1.04 var(--font-head);
  color: var(--white);
}
.challenge-builder__share em {
  margin-top: 6px;
  color: rgba(255,255,255,0.76);
  font: 800 13px/1.3 var(--font-ui);
  font-style: normal;
}
.challenge-builder__share code {
  display: block;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,0.78);
  background: rgba(2,18,60,0.28);
  border: 1px solid rgba(255,255,255,0.13);
  font: 800 12px/1.3 var(--font-ui);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.challenge-builder__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .hero {
    padding-inline: 18px;
    margin-bottom: 54px;
  }
  .eyebrow {
    display: block;
    width: fit-content;
    max-width: min(310px, calc(100vw - 48px));
    margin-inline: auto;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
  }
  .hero h1 {
    font-size: 40px;
    line-height: 1.04;
    max-width: 10ch;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: normal;
  }
  .hero h1 .hl-mg {
    display: block;
  }
  .lede {
    font-size: 15px;
    max-width: 34ch;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-stats div { min-width: 0; }
  .hero-stats strong {
    font-size: 22px;
    line-height: 1;
  }
  .hero-stats span {
    font-size: 9px;
    letter-spacing: 0;
  }
  .mission-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
  }
  .mission-chip {
    min-height: 54px;
    padding: 9px 10px;
  }
  .mission-chip span {
    width: 30px;
    height: 30px;
  }
  .mission-chip strong { font-size: 12px; }
  .mission-chip em { font-size: 10px; }
  .install-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .install-card__copy {
    grid-column: 1 / -1;
  }
  .install-card__btn {
    width: 100%;
  }
  .passport-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    padding: 12px;
    gap: 12px;
    width: 100%;
  }
  .passport-orb {
    width: 50px;
    height: 50px;
  }
  .passport-orb span { font-size: 15px; }
  .passport-name { font-size: 22px; }
  .passport-rank {
    width: 100%;
    justify-content: space-between;
  }
  .passport-rank em {
    white-space: normal;
    text-align: right;
  }
  .passport-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .passport-side {
    grid-column: 1 / -1;
    width: 100%;
  }
  .passport-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .passport-next {
    width: 100%;
  }
  .channel-pulse {
    width: 100%;
  }
  .channel-pulse__grid {
    grid-template-columns: 1fr;
  }
  .channel-pulse__refresh {
    min-height: 42px;
  }
  .fan-mission {
    width: 100%;
    grid-template-columns: 1fr;
  }
  .fan-mission__steps {
    grid-template-columns: 1fr;
  }
  .daily-quest {
    margin-bottom: 68px;
    padding-inline: 18px;
  }
  .daily-quest__panel {
    grid-template-columns: 1fr;
  }
  .daily-quest__week {
    grid-template-columns: repeat(7, minmax(42px, 1fr));
    gap: 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .daily-day {
    min-height: 68px;
    scroll-snap-align: center;
  }
  .daily-day strong {
    font-size: 10px;
  }
  .daily-day em {
    font-size: 10px;
  }
  .daily-quest__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .daily-quest__stats strong {
    font-size: 20px;
  }
  .daily-quest__stats span {
    font-size: 9px;
  }
  .weekly-quest {
    margin-bottom: 70px;
    padding-inline: 18px;
  }
  .weekly-quest__panel,
  .weekly-quest__tasks {
    grid-template-columns: 1fr;
  }
  .weekly-task {
    min-height: 104px;
  }
  .achievement-vault {
    margin-bottom: 70px;
    padding-inline: 18px;
  }
  .achievement-vault__panel,
  .achievement-vault__grid {
    grid-template-columns: 1fr;
  }
  .achievement-card {
    min-height: 104px;
  }
  .challenge-builder {
    margin-bottom: 70px;
    padding-inline: 18px;
  }
  .challenge-builder__panel {
    grid-template-columns: 1fr;
  }
  .challenge-builder__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .challenge-builder__actions .btn {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .hero-cta {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .hero-cta .btn {
    width: min(100%, 280px);
  }
  .lede {
    max-width: 31ch;
  }
}

/* ===================== SECTION HEADERS ===================== */
.section-head { text-align: center; margin-bottom: 44px; }
.section-tag {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 14px;
  backdrop-filter: blur(6px);
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 8px;
  text-shadow: 0 4px 0 rgba(0,0,0,0.2), 0 0 50px rgba(79, 161, 255, 0.3);
  letter-spacing: 0;
  line-height: 1.05;
}
.section-head p { opacity: 0.85; font-size: 17px; }

/* ===================== QUIZ GRID ===================== */
.quizzes { max-width: 1320px; margin: 0 auto 90px; padding: 0 clamp(20px, 5vw, 60px); }

.quiz-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  max-width: 900px;
  margin: -18px auto 28px;
}
.quiz-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.quiz-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 16px;
  background: rgba(255,255,255,0.13);
  border: 2px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
}
.quiz-search-wrap span {
  color: var(--yellow);
  font-size: 24px;
  line-height: 1;
}
#quizSearch {
  width: 100%;
  min-width: 0;
  color: var(--white);
  background: transparent;
  border: 0;
  outline: 0;
  font: 700 15px var(--font-body);
}
#quizSearch::placeholder { color: rgba(255,255,255,0.55); }
.quiz-search-wrap:focus-within {
  border-color: var(--yellow);
  box-shadow: 0 16px 36px rgba(0,0,0,0.28), 0 0 0 4px rgba(255,214,10,0.16);
}
.quiz-count-pill {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 13px;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  background: rgba(255,255,255,0.1);
  font-size: 13px;
  font-weight: 700;
}
.quiz-count-pill strong { color: var(--yellow); }

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}
.quiz-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 170px;
  padding: 28px;
  text-align: center;
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.1);
  border: 2px dashed rgba(255,255,255,0.28);
  border-radius: var(--radius);
}
.quiz-empty strong {
  font-family: var(--font-head);
  font-size: 26px;
}
.quiz-empty span { opacity: 0.78; }

/* ===================== CHANNEL CHALLENGE PACKS ===================== */
.channel-packs {
  max-width: 1220px;
  margin: 0 auto 90px;
  padding: 0 clamp(20px, 5vw, 60px);
}
.channel-pack-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.channel-pack-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: 132px 1fr;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}
.channel-pack-card:hover,
.channel-pack-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255,214,10,0.5);
  background: rgba(255,255,255,0.16);
}
.channel-pack-card:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}
.channel-pack-thumb {
  position: relative;
  min-width: 0;
  background: rgba(2,18,60,0.36);
}
.channel-pack-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.92;
}
.channel-pack-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2,18,60,0.04), rgba(2,18,60,0.54));
}
.channel-pack-thumb span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--youtube-red);
  box-shadow: 0 8px 18px rgba(0,0,0,0.32);
}
.channel-pack-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px;
}
.channel-pack-badge {
  align-self: flex-start;
  color: var(--yellow-bright);
  font: 900 10px var(--font-ui);
  letter-spacing: 0;
}
.channel-pack-body h3 {
  margin-top: 5px;
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.02;
}
.channel-pack-body p {
  margin-top: 8px;
  color: rgba(255,255,255,0.78);
  font: 700 13px/1.35 var(--font-ui);
}
.channel-pack-body em {
  margin-top: 10px;
  color: rgba(255,255,255,0.6);
  font: 800 11px/1.25 var(--font-ui);
  font-style: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.channel-pack-actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.channel-pack-actions strong {
  color: var(--yellow-bright);
  font: 900 12px var(--font-ui);
}
.channel-pack-watch {
  color: var(--white);
  text-decoration: none;
  font: 900 12px var(--font-ui);
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.18);
}
.channel-pack-watch:hover {
  background: var(--youtube-red);
  border-color: rgba(255,255,255,0.3);
}
@media (max-width: 1120px) {
  .channel-pack-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .channel-packs {
    margin-bottom: 70px;
  }
  .channel-pack-grid {
    grid-template-columns: 1fr;
  }
  .channel-pack-card {
    grid-template-columns: 118px 1fr;
    grid-template-rows: auto;
  }
  .channel-pack-thumb {
    min-height: 142px;
  }
  .channel-pack-body h3 {
    font-size: 18px;
  }
}
@media (max-width: 440px) {
  .channel-pack-card {
    grid-template-columns: 1fr;
  }
  .channel-pack-thumb {
    min-height: 138px;
  }
}

.quiz-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --glow-x: 70%;
  --glow-y: 0%;
  background: linear-gradient(160deg, rgba(255,255,255,0.13), rgba(255,255,255,0.04));
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 28px 24px;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.2s, background 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
}
.quiz-card::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto; height: auto;
  background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255, 214, 10, 0.34), transparent 38%);
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.quiz-card:hover::before { opacity: 1; }
.quiz-card:hover {
  transform: perspective(900px) translateY(-8px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  border-color: var(--yellow);
  background: linear-gradient(160deg, rgba(255,214,10,0.22), rgba(255,255,255,0.07));
  box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,214,10,0.25);
}
.quiz-card:active { transform: perspective(900px) translateY(-4px) scale(0.98); }
.quiz-card:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}
.quiz-card.has-resume {
  border-color: rgba(255,214,10,0.65);
  box-shadow: 0 0 0 1px rgba(255,214,10,0.25), 0 0 22px rgba(255,214,10,0.18);
}
.quiz-card.has-mastery {
  border-color: rgba(79,161,255,0.38);
}
.quiz-card.is-mastered {
  border-color: rgba(34,197,94,0.5);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.2), 0 18px 42px rgba(0,43,115,0.24);
}
.qc-resume {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #ffd60a, #ffb800);
  color: #0a2150;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  padding: 5px 10px;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3), 0 0 0 1.5px rgba(255,255,255,0.6);
  z-index: 2;
  animation: resumePulse 2.4s ease-in-out infinite;
}

/* Mix (featured) quiz card */
.quiz-card--mix {
  grid-column: 1 / -1;
  min-height: 220px;
  background:
    linear-gradient(160deg, rgba(255,214,10,0.18), rgba(168,85,247,0.16), rgba(79,161,255,0.18));
  border: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 32px 30px;
}
.quiz-card--mix::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 3px;
  border-radius: var(--radius);
  background: linear-gradient(120deg,
    #ffd60a 0%,
    #ff6b6b 18%,
    #a855f7 36%,
    #4fa1ff 54%,
    #22c55e 72%,
    #ffd60a 100%);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: mixGradient 6s linear infinite;
  pointer-events: none;
  z-index: 0;
}
.quiz-card--mix > * { position: relative; z-index: 1; }
.quiz-card--mix:hover {
  transform: perspective(900px) translateY(-10px) scale(1.012) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  border: none;
  background:
    linear-gradient(160deg, rgba(255,214,10,0.28), rgba(168,85,247,0.24), rgba(79,161,255,0.26));
  box-shadow:
    0 30px 60px rgba(0,0,0,0.45),
    0 0 60px rgba(255,214,10,0.25),
    0 0 80px rgba(168,85,247,0.2);
}
.quiz-card--mix .qc-emoji {
  font-size: 64px;
  animation: mixSpin 6s ease-in-out infinite;
}
.quiz-card--mix .qc-title {
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.1;
  background: linear-gradient(135deg, #fff277 0%, #ffd60a 35%, #ff6b6b 70%, #a855f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,0.25));
}
.quiz-card--mix .qc-desc { font-size: 15px; opacity: 0.92; max-width: 640px; }
.quiz-card--emoji-challenge {
  grid-column: 1 / -1;
  min-height: 210px;
  padding: 30px;
  border: 2px solid rgba(255,214,10,0.58);
  background:
    radial-gradient(circle at 12% 20%, rgba(255,214,10,0.3), transparent 34%),
    radial-gradient(circle at 88% 22%, rgba(255,0,80,0.18), transparent 28%),
    linear-gradient(145deg, rgba(17,124,234,0.26), rgba(255,255,255,0.12));
  box-shadow: 0 24px 52px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}
.quiz-card--emoji-challenge::before { opacity: 0.75; }
.quiz-card--emoji-challenge:hover {
  border-color: var(--yellow-bright);
  background:
    radial-gradient(circle at 12% 20%, rgba(255,214,10,0.38), transparent 34%),
    radial-gradient(circle at 88% 22%, rgba(255,0,80,0.24), transparent 28%),
    linear-gradient(145deg, rgba(22,149,255,0.32), rgba(255,255,255,0.16));
  box-shadow: 0 30px 64px rgba(0,0,0,0.34), 0 0 34px rgba(255,214,10,0.2);
}
.quiz-card--emoji-challenge .qc-emoji {
  width: clamp(70px, 8.5vw, 96px);
  height: clamp(70px, 8.5vw, 96px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(50px, 6vw, 70px);
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.22));
  transform-origin: center;
  will-change: transform;
}
.quiz-card--emoji-challenge:hover .qc-emoji { transform: scale(1.04) rotate(0deg); }
.quiz-card--emoji-challenge .qc-title {
  font-size: clamp(25px, 3.8vw, 38px);
  line-height: 1;
}
.quiz-card--emoji-challenge .qc-desc {
  max-width: 680px;
  font-size: 16px;
}
.quiz-card--special {
  border-color: rgba(255,255,255,0.28);
  background:
    radial-gradient(circle at 18% 20%, rgba(255,214,10,0.22), transparent 32%),
    radial-gradient(circle at 84% 28%, rgba(40,240,139,0.16), transparent 30%),
    linear-gradient(150deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
}
.quiz-card--daily .qc-emoji,
.quiz-card--benj .qc-emoji {
  font-size: 58px;
}
.quiz-card--daily {
  box-shadow: 0 24px 48px rgba(0,0,0,0.28), 0 0 36px rgba(40,240,139,0.12);
}
.quiz-card--benj {
  box-shadow: 0 24px 48px rgba(0,0,0,0.28), 0 0 36px rgba(255,214,10,0.15);
}
.qc-featured {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(120deg, #ffd60a, #ff6b6b, #a855f7);
  background-size: 200% 100%;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  padding: 6px 12px;
  border-radius: 100px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4), 0 0 0 1.5px rgba(255,255,255,0.85);
  z-index: 3;
  animation: mixGradient 4s linear infinite;
  text-shadow: 0 1px 1px rgba(0,0,0,0.4);
}
@keyframes mixGradient {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}
@keyframes mixSpin {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25%      { transform: rotate(12deg) scale(1.1); }
  50%      { transform: rotate(-8deg) scale(1.05); }
  75%      { transform: rotate(6deg) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-card--mix::after,
  .qc-featured,
  .quiz-card--mix .qc-emoji { animation: none; }
}
.quiz-card .qc-emoji {
  font-size: 50px;
  margin-bottom: 14px;
  display: inline-block;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,0.25));
  transition: transform 0.3s;
}
.quiz-card:hover .qc-emoji { transform: scale(1.15) rotate(-5deg); }
.quiz-card--emoji-challenge:hover .qc-emoji {
  transform: translate3d(0, 0, 0) scale(1.025) rotate(0deg);
}
.quiz-card--emoji-challenge:hover {
  transform: perspective(900px) rotateX(0deg) rotateY(0deg) translateY(-5px);
}
.quiz-card .qc-title {
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.quiz-card .qc-desc {
  font-size: 14px;
  opacity: 0.82;
  margin-bottom: 18px;
  flex: 1;
}
.qc-mastery {
  margin: 0 0 14px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(2,18,60,0.2);
  border: 1px solid rgba(255,255,255,0.13);
}
.qc-mastery__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.qc-mastery__top span {
  color: var(--yellow-bright);
  font: 900 10px/1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0;
}
.qc-mastery__top b {
  color: var(--white);
  font: 900 12px/1 var(--font-ui);
  white-space: nowrap;
}
.qc-mastery__bar {
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}
.qc-mastery__bar i {
  display: block;
  width: var(--p);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4fa1ff, #ffd60a 74%, #22c55e);
}
.qc-mastery__meta {
  margin-top: 7px;
  color: rgba(255,255,255,0.66);
  font: 800 10px/1.15 var(--font-ui);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.qc-mastery.is-mastered .qc-mastery__top span {
  color: #86efac;
}
.quiz-card .qc-meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}
.qc-pill {
  background: rgba(255,214,10,0.2);
  color: var(--yellow);
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,214,10,0.4);
}
.qc-pool {
  font-size: 11px;
  opacity: 0.65;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.qc-go {
  margin-left: auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue-dark);
  display: grid; place-items: center;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 3px 0 #c79900;
  transition: transform 0.2s;
}
.quiz-card:hover .qc-go { transform: translateX(5px); }

/* ===================== PLAY VIEW ===================== */
.play, .result { max-width: 820px; margin: 30px auto 90px; padding: 0 clamp(16px, 4vw, 40px); }
.hidden { display: none !important; }

@supports (content-visibility: auto) {
  .daily-quest,
  .weekly-quest,
  .achievement-vault,
  .challenge-builder,
  .quizzes,
  .channel-packs,
  .about,
  .leaderboard,
  .admin-health,
  .arcade,
  .videos,
  .merch-strip,
  .cta-strip {
    content-visibility: auto;
    contain-intrinsic-size: auto 760px;
  }

  .quizzes,
  .videos {
    contain-intrinsic-size: auto 1180px;
  }

  .leaderboard,
  .arcade {
    contain-intrinsic-size: auto 880px;
  }
}

.play-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.btn-back {
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.25);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-back:hover { background: rgba(255,255,255,0.2); border-color: var(--yellow); color: var(--yellow); }
.progress {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
}
.progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-bright));
  border-radius: 100px;
  transition: width 0.35s ease;
  box-shadow: 0 0 12px rgba(255, 214, 10, 0.5);
}
.play-meta { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.qnum { font-size: 14px; opacity: 0.85; }
.score {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 214, 10, 0.18);
  border: 1px solid rgba(255, 214, 10, 0.45);
  color: var(--yellow);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 15px;
}
.score-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px var(--yellow);
}

.play-card {
  background: linear-gradient(170deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 44px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.4s ease;
}
.play-cat {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  background: rgba(255, 214, 10, 0.2);
  color: var(--yellow);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.question-diff {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.88);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}
.question-diff[data-level="Medium"] {
  color: var(--yellow-bright);
  border-color: rgba(255,214,10,0.42);
  background: rgba(255,214,10,0.13);
}
.question-diff[data-level="Hard"] {
  color: #ffb4b4;
  border-color: rgba(255,0,51,0.42);
  background: rgba(255,0,51,0.13);
}
.play-q {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 28px;
  text-shadow: 0 3px 0 rgba(0,0,0,0.18);
}
.play-q--emoji {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  margin-bottom: 30px;
}
.emoji-clue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 14px 22px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,0.2), transparent 34%),
    linear-gradient(145deg, rgba(255,214,10,0.24), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 18px 36px rgba(0,0,0,0.2);
  font-size: clamp(42px, 9vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}
.emoji-prompt {
  display: block;
  color: var(--yellow-bright);
  font-family: var(--font-head);
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 3px 0 rgba(0,0,0,0.2);
}
.play-q--bonus .emoji-clue {
  border-color: rgba(255,214,10,0.72);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 20px 42px rgba(0,0,0,0.24),
    0 0 34px rgba(255,214,10,0.22);
}
.play-q--bonus .emoji-prompt {
  color: #28f08b;
}
.play-options { display: grid; gap: 12px; }
.opt {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 16px 20px;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
  display: flex; align-items: center; gap: 14px;
}
.opt .opt-letter {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  display: grid; place-items: center;
  font-weight: 800;
  font-family: var(--font-head);
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.2);
}
.opt:hover:not(:disabled) {
  background: rgba(255,214,10,0.15);
  border-color: var(--yellow);
  transform: translateX(4px);
}
.opt:hover:not(:disabled) .opt-letter { background: var(--yellow); color: var(--blue-dark); border-color: var(--yellow); }
.opt:disabled { cursor: not-allowed; }
.opt.correct {
  background: rgba(34, 197, 94, 0.25);
  border-color: var(--green);
  animation: pulseGreen 0.5s ease;
}
.opt.correct .opt-letter { background: var(--green); color: white; border-color: var(--green); }
.opt.wrong {
  background: rgba(239, 68, 68, 0.22);
  border-color: var(--red);
  animation: shake 0.4s ease;
}
.opt.wrong .opt-letter { background: var(--red); color: white; border-color: var(--red); }
.opt.removed {
  opacity: 0.35;
  filter: grayscale(0.6);
  transform: scale(0.98);
  text-decoration: line-through;
}
.opt.removed .opt-letter { background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.65); }

.play-feedback {
  margin-top: 22px;
  min-height: 28px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s;
}
.play-feedback.show { opacity: 1; }
.play-feedback.correct { color: var(--yellow-bright); }
.play-feedback.wrong { color: #ffb4b4; }
.play-feedback.hint { color: #a7f3d0; }
.feedback-main,
.feedback-explanation {
  display: block;
}
.feedback-explanation {
  max-width: 720px;
  margin: 6px auto 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: rgba(255,255,255,0.86);
}

/* ===================== RESULT ===================== */
.result-card {
  background: linear-gradient(170deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  border: 2px solid rgba(255, 214, 10, 0.4);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.result-emoji {
  font-size: 90px;
  margin-bottom: 12px;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,0.2));
  animation: bounce 1.2s infinite;
}
.result-card h2 {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--yellow);
  text-shadow: 0 4px 0 rgba(0,0,0,0.2);
}
.result-score { font-size: 18px; margin-bottom: 18px; }
.result-score strong {
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--white);
}
.result-accuracy {
  display: inline-flex;
  margin-left: 10px;
  padding: 5px 10px;
  border-radius: 10px;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  font-weight: 800;
  font-size: 14px;
}
.result-bar {
  height: 14px;
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  overflow: hidden;
  margin: 0 auto 24px;
  max-width: 360px;
  border: 1px solid rgba(255,255,255,0.2);
}
.result-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-bright));
  box-shadow: 0 0 12px var(--yellow);
  transition: width 0.8s ease;
}
.result-msg { font-size: 16px; margin-bottom: 28px; opacity: 0.92; }
.result-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -8px auto 18px;
}
.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255,214,10,0.14);
  border: 1px solid rgba(255,214,10,0.32);
  color: var(--yellow-bright);
  font-size: 12px;
  font-weight: 900;
}
.result-share-card {
  max-width: 520px;
  margin: 0 auto 16px;
  padding: 16px 18px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 14% 12%, rgba(255,214,10,0.24), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.result-share-card .share-kicker,
.result-share-card strong,
.result-share-card em {
  display: block;
}
.result-share-card .share-kicker {
  color: var(--yellow-bright);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.result-share-card strong {
  font-family: var(--font-head);
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.05;
}
.result-share-card em {
  margin-top: 6px;
  color: rgba(255,255,255,0.82);
  font-style: normal;
  font-weight: 700;
}
.result-share-card small {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,0.72);
  font-weight: 800;
  line-height: 1.35;
}
.result-share-card code {
  display: block;
  margin-top: 10px;
  padding: 8px 10px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 8px;
  background: rgba(2,18,60,0.38);
  color: rgba(255,255,255,0.82);
  font: 700 11px var(--font-ui);
}
.result-coach-card {
  max-width: 620px;
  margin: 0 auto 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  text-align: left;
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(79,161,255,0.22), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.result-coach-main .coach-kicker,
.result-coach-main strong,
.result-coach-main em {
  display: block;
}
.result-coach-main .coach-kicker {
  color: var(--yellow-bright);
  font: 900 11px/1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0;
}
.result-coach-main strong {
  margin-top: 6px;
  font: 900 clamp(22px, 3vw, 32px)/1 var(--font-head);
  color: var(--white);
}
.result-coach-main em {
  margin-top: 7px;
  color: rgba(255,255,255,0.76);
  font: 800 13px/1.35 var(--font-ui);
  font-style: normal;
}
.result-coach-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.result-coach-stats span {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(3,26,76,0.24);
  border: 1px solid rgba(255,255,255,0.12);
}
.result-coach-stats b,
.result-coach-stats small {
  display: block;
}
.result-coach-stats b {
  color: var(--yellow-bright);
  font: 900 19px/1 var(--font-head);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-coach-stats small {
  margin-top: 4px;
  color: rgba(255,255,255,0.7);
  font: 900 10px/1 var(--font-ui);
  text-transform: uppercase;
}
.result-coach-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.result-coach-start,
.result-coach-watch {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 14px;
  font: 900 12px/1 var(--font-ui);
  text-decoration: none;
  transition: transform 0.18s, filter 0.18s;
}
.result-coach-start {
  border: 0;
  color: #071a43;
  background: linear-gradient(135deg, #fff277, #ffd60a 62%, #ffb800);
  cursor: pointer;
}
.result-coach-watch {
  color: var(--white);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
}
.result-coach-start:hover,
.result-coach-watch:hover {
  transform: translateY(-2px);
}
.result-progress-card {
  max-width: 620px;
  margin: 0 auto 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  text-align: left;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 0%, rgba(255,214,10,0.18), transparent 32%),
    linear-gradient(145deg, rgba(3,26,76,0.42), rgba(255,255,255,0.07));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}
.result-progress-card.is-best {
  border-color: rgba(255,214,10,0.42);
  box-shadow:
    0 12px 34px rgba(255,214,10,0.12),
    inset 0 1px 0 rgba(255,255,255,0.15);
}
.result-progress-main .progress-kicker,
.result-progress-main strong,
.result-progress-main em {
  display: block;
}
.result-progress-main .progress-kicker {
  color: var(--yellow-bright);
  font: 900 11px/1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0;
}
.result-progress-main strong {
  margin-top: 6px;
  font: 900 clamp(20px, 2.6vw, 28px)/1 var(--font-head);
  color: var(--white);
}
.result-progress-main em {
  margin-top: 7px;
  color: rgba(255,255,255,0.76);
  font: 800 13px/1.35 var(--font-ui);
  font-style: normal;
}
.result-progress-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.result-progress-stats span {
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.12);
}
.result-progress-stats b,
.result-progress-stats small {
  display: block;
}
.result-progress-stats b {
  color: var(--yellow-bright);
  font: 900 18px/1 var(--font-head);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-progress-stats small {
  margin-top: 4px;
  color: rgba(255,255,255,0.7);
  font: 900 10px/1 var(--font-ui);
  text-transform: uppercase;
}
.result-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.result-actions--share { margin-bottom: 18px; }
.review-panel {
  max-width: 760px;
  margin: 4px auto 24px;
  text-align: left;
}
.review-panel h3 {
  font-family: var(--font-head);
  font-size: 22px;
  text-align: center;
  margin-bottom: 12px;
}
.review-list {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}
.review-item {
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}
.review-item.is-correct { border-color: rgba(34,197,94,0.38); }
.review-item.is-wrong { border-color: rgba(239,68,68,0.42); }
.review-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.review-top span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  flex-shrink: 0;
  font-weight: 900;
}
.review-item p {
  margin: 4px 0;
  color: rgba(255,255,255,0.82);
  font-size: 14px;
}
.review-item em {
  display: block;
  margin-top: 7px;
  color: rgba(255,255,255,0.72);
  font-style: normal;
  font-size: 13px;
}
.result-share { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 18px; }
.result-sub {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  opacity: 0.92;
  transition: color 0.15s;
}
.result-sub strong { color: var(--youtube-red); margin-left: 4px; }
.result-sub:hover strong { color: #ff4d6d; }

/* ===================== ABOUT ===================== */
.about { max-width: 900px; margin: 0 auto 90px; padding: 0 clamp(20px, 5vw, 60px); }
.about-inner {
  background: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 50px);
  backdrop-filter: blur(8px);
}
.about-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}
.how {
  list-style: none;
  display: grid; gap: 14px;
  max-width: 540px; margin: 0 auto;
}
.how li {
  display: flex; align-items: center; gap: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 500;
  font-size: 16px;
}
.how li span {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue-dark);
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 3px 0 #c79900;
}

/* ===================== VIDEOS SECTION ===================== */
.videos { max-width: 1320px; margin: 0 auto 80px; padding: 0 clamp(20px, 5vw, 60px); }

.videos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 28px;
}

.video-latest {
  animation: latestUploadFloat 6.5s ease-in-out infinite;
  transform-origin: center top;
  will-change: transform;
}

.video-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 14px;
  backdrop-filter: blur(6px);
}
.dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--youtube-red);
  box-shadow: 0 0 12px var(--youtube-red);
  animation: pulseDot 1.6s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

@keyframes latestUploadFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-8px) rotate(-0.35deg); }
  70% { transform: translateY(5px) rotate(0.25deg); }
}

@keyframes latestUploadGlow {
  0%, 100% {
    box-shadow:
      0 22px 50px rgba(2, 18, 60, 0.5),
      0 0 0 rgba(255,214,10,0);
  }
  50% {
    box-shadow:
      0 28px 58px rgba(2, 18, 60, 0.54),
      0 0 28px rgba(255,214,10,0.2);
  }
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 22px 50px rgba(2, 18, 60, 0.5);
  border: 2px solid rgba(255,255,255,0.15);
  animation: latestUploadGlow 4.8s ease-in-out infinite;
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.latest-video-card {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--white);
  text-decoration: none;
  background:
    radial-gradient(circle at 50% 40%, rgba(255,255,255,0.14), transparent 36%),
    linear-gradient(145deg, rgba(10,33,80,0.95), rgba(2,20,58,0.98));
}
.latest-video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.78;
  transform: scale(1.01);
  transition: transform 0.35s ease, opacity 0.25s ease;
}
.latest-video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.42)),
    radial-gradient(circle at 50% 50%, transparent 28%, rgba(0,0,0,0.34) 100%);
}
.latest-video-card:hover img {
  opacity: 0.9;
  transform: scale(1.045);
}
.latest-video-card--playlist {
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(255,214,10,0.38), transparent 30%),
    radial-gradient(circle at 76% 72%, rgba(255,0,51,0.28), transparent 32%),
    linear-gradient(145deg, rgba(19,126,234,0.96), rgba(8,39,116,0.98));
}
.latest-video-card--playlist::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid rgba(255,255,255,0.16);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.42;
}
.latest-video-card--playlist::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 18%, rgba(0,0,0,0.2) 100%),
    linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.3));
}
.latest-playlist-mark {
  position: absolute;
  z-index: 1;
  width: min(42%, 190px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16), 0 22px 60px rgba(0,0,0,0.28);
  transform: translateY(-10px);
}
.latest-playlist-mark img {
  width: 58%;
  height: auto;
  object-fit: contain;
  opacity: 0.96;
  transform: none;
}
.latest-video-card--playlist:hover .latest-playlist-mark {
  transform: translateY(-12px) scale(1.03);
}
.latest-video-card--playlist:hover .latest-playlist-mark img {
  opacity: 0.96;
  transform: none;
}
.latest-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--youtube-red);
  box-shadow: 0 12px 34px rgba(0,0,0,0.42), 0 0 0 8px rgba(255,255,255,0.18);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.latest-video-card:hover .latest-play {
  transform: translate(-50%, -50%) scale(1.08);
  filter: brightness(1.08);
}
.latest-open {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  transform: translateX(-50%);
  padding: 9px 14px;
  border-radius: 100px;
  color: #fff;
  background: rgba(0,0,0,0.58);
  border: 1px solid rgba(255,255,255,0.2);
  font-weight: 800;
  font-size: 14px;
  backdrop-filter: blur(8px);
}
.video-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(18px, 2vw, 24px);
  margin-top: 16px;
  line-height: 1.25;
}
.video-meta {
  opacity: 0.78;
  font-size: 14px;
  margin-top: 6px;
}
.latest-playalong {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255,214,10,0.22), transparent 34%),
    rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.13);
}
.latest-playalong__copy {
  min-width: 0;
}
.latest-playalong__copy span,
.latest-playalong__copy strong,
.latest-playalong__copy em {
  display: block;
}
.latest-playalong__copy span {
  color: var(--yellow-bright);
  font: 900 11px/1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0;
}
.latest-playalong__copy strong {
  margin-top: 5px;
  color: var(--white);
  font: 900 22px/1.05 var(--font-head);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.latest-playalong__copy em {
  margin-top: 5px;
  color: rgba(255,255,255,0.74);
  font: 800 12px/1.25 var(--font-ui);
  font-style: normal;
}
.latest-playalong__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.latest-playalong__start,
.latest-playalong__link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 14px;
  font: 900 12px/1 var(--font-ui);
  text-decoration: none;
  transition: transform 0.18s, filter 0.18s;
}
.latest-playalong__start {
  border: 0;
  color: #071a43;
  background: linear-gradient(135deg, #fff277, #ffd60a 62%, #ffb800);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(255,184,0,0.18);
}
.latest-playalong__link {
  color: var(--white);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
}
.latest-playalong__start:hover,
.latest-playalong__link:hover {
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .video-latest,
  .video-frame { animation: none; }
}

.video-popular { display: flex; flex-direction: column; }
.popular-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 12px;
  flex: 1;
}
.popular-list a {
  display: flex;
  gap: 14px;
  align-items: stretch;
  text-decoration: none;
  color: var(--white);
  background: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 14px;
  padding: 10px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
  backdrop-filter: blur(6px);
}
.popular-list a:hover {
  transform: translateX(4px);
  border-color: var(--yellow);
  background: linear-gradient(160deg, rgba(255,214,10,0.15), rgba(255,255,255,0.05));
}
.popular-thumb {
  position: relative;
  flex-shrink: 0;
  width: 130px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}
.popular-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.popular-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 100%);
}
.popular-thumb .play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px;
  background: rgba(255,0,51,0.92);
  border-radius: 50%;
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.popular-list a:hover .play-icon { opacity: 1; }
.popular-thumb .duration {
  position: absolute;
  bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.popular-info {
  display: flex; flex-direction: column; justify-content: center;
  flex: 1; min-width: 0;
}
.popular-info h4 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popular-info .pop-meta {
  font-size: 12px;
  opacity: 0.7;
  display: flex; gap: 8px; align-items: center;
}
.popular-info .views {
  color: var(--yellow);
  font-weight: 700;
}
.popular-more {
  display: inline-block;
  margin-top: 16px;
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
  align-self: flex-start;
}
.popular-more:hover { color: var(--yellow-bright); }

@media (max-width: 900px) {
  .videos-layout { grid-template-columns: 1fr; }
  .latest-playalong {
    grid-template-columns: 1fr;
  }
  .latest-playalong__actions {
    justify-content: flex-start;
  }
}
@media (max-width: 440px) {
  .latest-playalong__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .latest-playalong__start,
  .latest-playalong__link {
    width: 100%;
  }
  .popular-thumb { width: 110px; }
}

/* ===================== MERCH STRIP ===================== */
.merch-strip {
  max-width: 1320px;
  margin: 0 auto 70px;
  padding: 0 clamp(20px, 5vw, 60px);
}
.merch-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 30px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 214, 10, 0.18), rgba(255,255,255,0.06));
  border: 2px solid rgba(255, 214, 10, 0.45);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(2, 18, 60, 0.4), 0 0 60px rgba(255, 214, 10, 0.12);
  position: relative;
  overflow: hidden;
}
.merch-inner::before {
  content: "";
  position: absolute;
  inset: -50% -20% auto auto;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 214, 10, 0.25), transparent 65%);
  pointer-events: none;
}
.merch-art {
  position: relative;
  height: 200px;
  display: grid;
  place-items: center;
}
.merch-emoji {
  position: absolute;
  font-size: clamp(56px, 7vw, 90px);
  filter: drop-shadow(0 8px 0 rgba(0,0,0,0.25));
  animation: merchFloat 4.5s ease-in-out infinite;
}
.merch-emoji--1 { top: 0; left: 18%; animation-delay: 0s; }
.merch-emoji--2 { top: 40%; right: 10%; animation-delay: -1.2s; }
.merch-emoji--3 { bottom: 0; left: 28%; animation-delay: -2.4s; }
.merch-emoji--4 { top: 8%; right: 32%; animation-delay: -3.4s; font-size: clamp(48px, 6vw, 72px); }

@keyframes merchFloat {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
}

.merch-copy {
  position: relative;
  z-index: 1;
}
.merch-tag {
  display: inline-block;
  background: rgba(255, 214, 10, 0.25);
  border: 1px solid rgba(255, 214, 10, 0.5);
  color: var(--yellow);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 14px;
}
.merch-copy h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 12px;
  text-shadow: 0 4px 0 rgba(0,0,0,0.22);
  letter-spacing: 0;
}
.merch-copy p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 22px;
  max-width: 520px;
}

@media (max-width: 760px) {
  .merch-inner { grid-template-columns: 1fr; text-align: center; }
  .merch-art { height: 140px; }
  .merch-emoji--1 { left: 12%; }
  .merch-emoji--2 { right: 12%; }
  .merch-emoji--3 { left: 30%; }
  .merch-emoji--4 { right: 30%; }
  .merch-copy p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 760px) {
  .quiz-toolbar {
    grid-template-columns: 1fr;
    margin-top: -8px;
  }
  .quiz-toolbar .btn {
    width: 100%;
  }
  .quiz-count-pill {
    justify-self: stretch;
    justify-content: center;
  }
}

/* ===================== CTA STRIP ===================== */
.cta-strip {
  max-width: 1100px;
  margin: 0 auto 90px;
  padding: 0 clamp(20px, 5vw, 60px);
}
.cta-inner {
  background: linear-gradient(135deg, rgba(255,0,51,0.18), rgba(255,214,10,0.12));
  border: 2px solid rgba(255,0,51,0.35);
  border-radius: var(--radius);
  padding: clamp(34px, 5vw, 52px);
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 60px rgba(255, 0, 51, 0.15);
}
.cta-inner h2 {
  font-family: var(--font-head);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 4px 0 rgba(0,0,0,0.2);
}
.cta-inner p { opacity: 0.88; margin-bottom: 24px; font-size: 16px; }

/* ===================== FOOTER ===================== */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.12);
  background: rgba(2, 26, 77, 0.4);
  backdrop-filter: blur(6px);
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px clamp(20px, 5vw, 60px);
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}
.footer-text { opacity: 0.85; margin-bottom: 16px; font-size: 15px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  opacity: 0.85;
  transition: opacity 0.15s, color 0.15s;
}
.footer-links a:hover { opacity: 1; color: var(--yellow); }
.footer-copy { opacity: 0.6; font-size: 13px; }

/* ===================== CONFETTI ===================== */
#confettiCanvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ===================== DIFFICULTY SELECT ===================== */
.difficulty { max-width: 820px; margin: 30px auto 90px; padding: 0 clamp(16px, 4vw, 40px); }
.diff-card {
  background: linear-gradient(170deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
  border: 2px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 48px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
  text-align: center;
  animation: fadeUp 0.4s ease;
}
.diff-cat {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  background: rgba(255, 214, 10, 0.2);
  color: var(--yellow);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.diff-card h2 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 6px;
}
.resume-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  margin: 4px auto 22px;
  max-width: 540px;
  background: linear-gradient(135deg, rgba(255,214,10,0.18), rgba(255,214,10,0.06));
  border: 2px solid rgba(255,214,10,0.55);
  border-radius: 16px;
  box-shadow: 0 0 24px rgba(255,214,10,0.2);
  animation: resumePulse 2.4s ease-in-out infinite;
  text-align: left;
}
.resume-banner.hidden { display: none; }
.resume-info { display: flex; align-items: center; gap: 12px; }
.resume-emoji { font-size: 28px; }
.resume-info strong {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  margin-bottom: 2px;
  color: var(--white);
}
.resume-meta {
  font-size: 13px;
  opacity: 0.85;
  color: var(--white);
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
@keyframes resumePulse {
  0%, 100% { box-shadow: 0 0 24px rgba(255,214,10,0.2); }
  50%      { box-shadow: 0 0 36px rgba(255,214,10,0.45); }
}
@media (max-width: 520px) {
  .resume-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .resume-info { justify-content: center; }
}
.diff-sub { opacity: 0.85; margin-bottom: 14px; }
.diff-hint {
  width: min(560px, 100%);
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
}
.diff-hint strong {
  color: var(--yellow-bright);
  font: 900 12px/1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0;
}
.diff-hint span {
  color: rgba(255,255,255,0.78);
  font: 800 12px/1.25 var(--font-ui);
}
.diff-hint[data-level="hard"] strong { color: #ff8aa2; }
.diff-hint[data-level="medium"] strong { color: #ffbf69; }
.diff-hint[data-level="easy"] strong { color: #86efac; }
.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.diff-btn {
  position: relative;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.2);
  color: var(--white);
  border-radius: 16px;
  padding: 22px 16px;
  cursor: pointer;
  font-family: inherit;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.diff-btn.is-recommended {
  border-color: rgba(255,214,10,0.72);
  background: rgba(255,214,10,0.14);
  box-shadow: 0 0 0 1px rgba(255,214,10,0.22), 0 16px 32px rgba(0,0,0,0.22);
}
.diff-rec {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #071a43;
  background: linear-gradient(135deg, #fff277, #ffd60a 62%, #ffb800);
  font: 900 9px/1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(0,0,0,0.22);
}
.diff-btn .diff-emoji { font-size: 38px; }
.diff-btn .diff-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}
.diff-btn .diff-meta {
  font-size: 12px;
  opacity: 0.78;
  font-weight: 600;
}
.diff-btn:hover {
  transform: translateY(-4px);
  border-color: var(--yellow);
  background: rgba(255,214,10,0.15);
  box-shadow: 0 12px 26px rgba(0,0,0,0.3);
}
.diff-btn--medium:hover { border-color: #ff9000; background: rgba(255,144,0,0.15); }
.diff-btn--hard:hover { border-color: var(--youtube-red); background: rgba(255,0,51,0.15); }

/* ===================== PLAY: timer, streak, difficulty pill ===================== */
.play-card-top {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.play-diff {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}
.play-diff[data-level="easy"] { background: rgba(34,197,94,0.18); border-color: rgba(34,197,94,0.5); color: #4ade80; }
.play-diff[data-level="medium"] { background: rgba(255,144,0,0.18); border-color: rgba(255,144,0,0.5); color: #ffb454; }
.play-diff[data-level="hard"] { background: rgba(255,0,51,0.18); border-color: rgba(255,0,51,0.5); color: #ff6080; }
.play-hint {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 900;
  color: #07365a;
  background: linear-gradient(135deg, #a7f3d0, #34d399);
  border: 0;
  border-radius: 100px;
  padding: 7px 12px;
  cursor: pointer;
  box-shadow: 0 3px 0 #059669, 0 0 18px rgba(52,211,153,0.25);
  transition: transform 0.15s, opacity 0.2s, filter 0.2s;
}
.play-hint:hover:not(:disabled) { transform: translateY(-2px); filter: brightness(1.06); }
.play-hint:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 1px 0 #059669; }
.play-hint:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.35);
  box-shadow: none;
}
.play-timer { margin-left: auto; }
.timer-ring { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; }
.timer-num {
  position: absolute;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  color: var(--yellow);
}
#timerCircle { transition: stroke-dashoffset 0.95s linear, stroke 0.2s; }
.timer-ring.danger #timerCircle { stroke: var(--youtube-red); animation: timerPulse 0.6s infinite; }
.timer-ring.danger .timer-num { color: var(--youtube-red); }
@keyframes timerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.play-streak {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255, 100, 0, 0.18);
  border: 1px solid rgba(255, 100, 0, 0.5);
  color: #ffae66;
  padding: 6px 12px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 14px;
}

/* ===================== ARCADE (Brain Flapper) ===================== */
.arcade { max-width: 980px; margin: 0 auto 90px; padding: 0 clamp(20px, 5vw, 60px); }
.arcade-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.arcade-canvas-frame {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top, #4fa1ff 0%, #1f5fcc 60%, #0a2150 100%);
  box-shadow:
    0 30px 60px rgba(0,0,0,0.5),
    0 0 0 2px rgba(255,255,255,0.18),
    0 0 80px rgba(79,161,255,0.35);
  touch-action: manipulation;
  user-select: none;
}
#brainGame {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.arcade-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
  z-index: 2;
}
.hud-pill {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.25);
  letter-spacing: 0;
}
.hud-best { color: var(--yellow); }
.hud-best strong { color: var(--yellow); }
.arcade-level-panel {
  width: 100%;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  background: rgba(0,0,0,0.24);
  backdrop-filter: blur(6px);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}
.arcade-level-text {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
}
.arcade-level-text strong,
.arcade-level-text em {
  color: var(--yellow);
}
.arcade-level-text em {
  font-style: normal;
}
.level-mini {
  display: block;
  flex: 1;
  min-width: 130px;
  height: 7px;
  overflow: hidden;
  border-radius: 100px;
  background: rgba(255,255,255,0.18);
}
.level-mini span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), #34d399, #38b6ff);
  transition: width 0.35s ease;
}
.arcade-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 26, 77, 0.55);
  backdrop-filter: blur(4px);
  z-index: 3;
  transition: opacity 0.25s ease;
}
.arcade-overlay.hidden { display: none; }
.ao-card {
  background: linear-gradient(170deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 28px clamp(20px, 4vw, 40px);
  text-align: center;
  max-width: 360px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.4);
  animation: aoPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ao-card.hidden { display: none; }
.ao-emoji {
  font-size: 64px;
  margin-bottom: 6px;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,0.25));
  animation: aoFloat 2.6s ease-in-out infinite;
}
.ao-emoji--over { animation: aoShake 0.6s ease both; }
.ao-card h3 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--white);
}
.ao-card p {
  font-size: 14px;
  opacity: 0.9;
  color: var(--white);
  margin-bottom: 14px;
}
.ao-card .btn { padding: 12px 28px; font-size: 15px; }
.ao-card kbd {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: monospace;
  font-size: 12px;
  color: var(--white);
}
.ao-msg {
  margin-top: 6px;
  font-style: italic;
  color: var(--yellow);
  font-weight: 600;
}
.arcade-hint {
  font-size: 13px;
  opacity: 0.7;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
@media (max-width: 520px) {
  .arcade-hud {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .hud-pill {
    font-size: 12px;
    padding: 6px 10px;
  }
  .arcade-level-panel {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }
  .arcade-level-text {
    justify-content: space-between;
    width: 100%;
  }
  .level-mini {
    min-width: 0;
    width: 100%;
  }
}
.kbd-inline {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 5px;
  padding: 1px 6px;
  font-family: monospace;
  font-size: 12px;
}
.nav-arcade {
  background: linear-gradient(135deg, rgba(255,214,10,0.18), rgba(168,85,247,0.18));
  padding: 6px 12px !important;
  border-radius: 100px;
  border: 1px solid rgba(255,214,10,0.35);
}
.nav-arcade:hover { opacity: 1 !important; color: var(--yellow) !important; }
@keyframes aoPop {
  0%   { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes aoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes aoShake {
  0%, 100% { transform: translateX(0) rotate(0); }
  20%      { transform: translateX(-8px) rotate(-6deg); }
  40%      { transform: translateX(8px) rotate(6deg); }
  60%      { transform: translateX(-6px) rotate(-4deg); }
  80%      { transform: translateX(4px) rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ao-emoji, .ao-card { animation: none; }
}

/* ===================== LEADERBOARD ===================== */
.leaderboard { max-width: 1100px; margin: 0 auto 90px; padding: 0 clamp(20px, 5vw, 60px); }
.lb-wrap {
  background: linear-gradient(170deg, rgba(255,255,255,0.1), rgba(255,255,255,0.04));
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px);
  backdrop-filter: blur(8px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.lb-controls {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.lb-controls label { font-weight: 600; font-size: 14px; opacity: 0.9; }
#lbFilter {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 8px 16px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
#lbFilter option { background: var(--blue-dark); color: var(--white); }
.btn-sm { padding: 8px 18px !important; font-size: 13px !important; }

.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.lb-table th, .lb-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.lb-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  opacity: 0.7;
  font-weight: 700;
}
.lb-table tbody tr { transition: background 0.15s; }
.lb-table tbody tr:hover { background: rgba(255,255,255,0.05); }
.lb-rank {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
}
.lb-rank-1 { color: var(--yellow); }
.lb-rank-2 { color: #d6d6d6; }
.lb-rank-3 { color: #cd7f32; }
.lb-score {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--yellow);
}
.lb-name { font-weight: 700; }
.lb-empty {
  text-align: center !important;
  padding: 40px 12px !important;
  opacity: 0.7;
  font-style: italic;
}

.admin-health {
  max-width: 1120px;
  margin: 0 auto 90px;
  padding: 0 clamp(20px, 5vw, 60px);
}
.health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.health-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}
.health-card span,
.health-card strong,
.health-card em,
.health-card small {
  display: block;
}
.health-card span {
  color: var(--yellow-bright);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.health-card strong {
  margin-top: 5px;
  font-family: var(--font-head);
  font-size: 24px;
}
.health-card em {
  margin-top: 5px;
  color: rgba(255,255,255,0.72);
  font-style: normal;
  font-size: 13px;
}
.health-card small {
  margin-top: 10px;
  color: rgba(255,255,255,0.66);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}
.health-card.is-ok { border-color: rgba(34,197,94,0.42); }
.health-card.is-warn { border-color: rgba(255,214,10,0.52); }
.health-card.is-bad { border-color: rgba(239,68,68,0.52); }

@media (max-width: 640px) {
  .lb-table { font-size: 12px; min-width: 420px; }
  .lb-table th:nth-child(6), .lb-table td:nth-child(6) { display: none; }
  .health-grid { grid-template-columns: 1fr; }
}

/* ===================== MODAL ===================== */
.modal {
  position: fixed; inset: 0;
  background: rgba(2, 16, 50, 0.75);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal.hidden { display: none; }
.modal-card {
  background: linear-gradient(170deg, #1e7cff, #0a4ec9);
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 40px);
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
  animation: pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-emoji { font-size: 60px; margin-bottom: 8px; }
.modal-card h3 {
  font-family: var(--font-head);
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: 0;
}
.modal-card p { opacity: 0.9; margin-bottom: 20px; font-size: 15px; }
#nickInput {
  width: 100%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 14px 18px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
#nickInput::placeholder { color: rgba(255,255,255,0.45); }
#nickInput:focus { border-color: var(--yellow); background: rgba(255,255,255,0.2); }
#nickInput:focus-visible { outline: 3px solid rgba(255,214,10,0.46); outline-offset: 2px; }
.modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.result-extra {
  font-size: 14px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 18px;
  min-height: 20px;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===================== ANIMATIONS ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pop {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 480px) {
  .play-bar { flex-wrap: wrap; }
  .progress { order: 3; flex-basis: 100%; }
  .hero-cta { gap: 10px; }
  .btn { padding: 14px 22px; font-size: 15px; }
  .result-accuracy { display: flex; width: fit-content; margin: 8px auto 0; }
  .result-coach-stats {
    grid-template-columns: 1fr;
  }
  .result-progress-stats {
    grid-template-columns: 1fr;
  }
  .result-coach-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .result-coach-start,
  .result-coach-watch {
    width: 100%;
  }
}

/* ===================== QUIZ-FIRST HOMEPAGE REFINEMENT ===================== */
main {
  display: flex;
  flex-direction: column;
}

#home { order: 1; }
#quizzes { order: 2; }
#dailyQuest { order: 3; }
#weeklyQuest { order: 4; }
#challengeBuilder { order: 5; }
#leaderboard { order: 6; }
#achievementVault { order: 7; }
#videos { order: 8; }
#arcade { order: 9; }
#merch { order: 10; }
.about { order: 11; }
.cta-strip { order: 12; }
#adminHealth { order: 99; }

.hero {
  margin-bottom: 38px;
}

.hero .mission-rail,
.hero .passport-card,
.hero .channel-pulse,
.hero .fan-mission {
  display: none;
}

.hero-cta {
  margin-bottom: 30px;
}

.hero-stats {
  opacity: 0.82;
  gap: clamp(18px, 4vw, 44px);
}

#quizzes {
  scroll-margin-top: 108px;
}

.daily-quest,
.weekly-quest,
.challenge-builder,
.achievement-vault,
.leaderboard,
.videos,
.arcade,
.merch-strip,
.about {
  margin-bottom: 58px;
}

.daily-quest .section-head,
.weekly-quest .section-head,
.challenge-builder .section-head,
.achievement-vault .section-head,
.leaderboard .section-head,
.videos .section-head,
.arcade .section-head,
.merch-strip .section-head {
  margin-bottom: 24px;
}

.channel-packs {
  display: none;
}

#arcade:not(:target) .arcade-canvas-frame,
#arcade:not(:target) .arcade-level-panel,
#arcade:not(:target) .arcade-hint {
  display: none;
}

#arcade:not(:target) .section-head p::after {
  content: " Open Arcade when you want a bonus break after the quizzes.";
}

#leaderboard .lb-wrap::after {
  content: "Top scores preview. Use the category filter to explore specific quiz rankings.";
  display: block;
  margin-top: 12px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 700px) {
  .hero {
    margin-bottom: 30px;
  }
  .daily-quest,
  .weekly-quest,
  .challenge-builder,
  .achievement-vault,
  .leaderboard,
  .videos,
  .arcade,
  .merch-strip,
  .about {
    margin-bottom: 44px;
  }
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Production overflow guard: full-bleed media must not widen the page. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.bg-fx,
#confettiCanvas {
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
}

.videos {
  width: calc(100vw - 24px);
  max-width: 1320px;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}


/* Mobile header and touch-target polish. */
@media (max-width: 720px) {
  .site-header {
    align-items: center;
  }

  .site-nav {
    margin-left: auto;
    gap: 8px;
  }

  .btn-sub--header {
    display: inline-flex !important;
    min-width: 78px;
    min-height: 44px;
    padding: 0 12px !important;
    font-size: 12px !important;
    justify-content: center;
    white-space: nowrap;
  }

  .sound-toggle {
    width: 44px;
    height: 44px;
  }

  .subscriber-badge {
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  #quizSearch,
  .btn-sm,
  .daily-quest__link,
  .challenge-builder__actions .btn {
    min-height: 44px;
  }

  .btn-sm,
  .daily-quest__link,
  .challenge-builder__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .daily-quest__link {
    padding: 0 4px;
  }
}


/* Secondary mobile links should remain comfortable to tap. */
@media (max-width: 480px) {
  .popular-more,
  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
