/* ==========================================================================
   MathClash — Landing v2 ("Own the board" · immersive scroll landing)
   --------------------------------------------------------------------------
   Runtime replacement layer for the React-rendered Home Screen
   (.landing-screen). Loaded by landing-v2.js which hides the React home
   screen and mounts #mc-landing in the same wrapper.

   Everything is namespaced under #mc-landing / .mc2-* so it cannot
   collide with the app's own class system (btn, card, landing-*...).

   Palette (per approved direction, harmonized with the app):
     bg glass      #0B1120 (rgba fills, app aurora shows through)
     neon cyan     #00E5FF (primary accent / CTAs / focus)
     app mint      #7ee6e0 (secondary accent, ties into game UI)
     gold          #f6c76a (points, streak, rank)
     text          #e8f1ff / dim #93a7c9

   Fonts: DM Sans (display + body), Space Mono (numbers, labels, meta) —
   both self-hosted by the app (assets/fonts.css), CSP-safe.

   Motion contract: entrance reveals are opt-in (.mc2-reveal starts
   hidden, [data-shown="1"] reveals). prefers-reduced-motion: reduce
   force-reveals everything and freezes all loops. Every animated layer
   is aria-hidden="true".
   ========================================================================== */

/* ---------- 0. Tokens & base ---------- */
#mc-landing {
  --mc2-bg: #0b1120;
  --mc2-bg-2: #0d1526;
  --mc2-panel: #111a30;
  --mc2-glass: rgba(17, 26, 48, 0.55);
  --mc2-glass-2: rgba(13, 21, 38, 0.72);
  --mc2-line: rgba(120, 160, 220, 0.16);
  --mc2-line-hi: rgba(0, 229, 255, 0.38);
  --mc2-neon: #00e5ff;
  --mc2-neon-soft: rgba(0, 229, 255, 0.14);
  --mc2-mint: #7ee6e0;
  --mc2-blue: #6aa7ff;
  --mc2-violet: #b9a4ff;
  --mc2-gold: #f6c76a;
  --mc2-red: #ff7f87;
  --mc2-green: #67d5ac;
  --mc2-text: #e8f1ff;
  --mc2-dim: #93a7c9;
  --mc2-dim-2: #8aa0c6;
  --mc2-font: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --mc2-mono: "Space Mono", ui-monospace, monospace;
  --mc2-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --mc2-r: 18px;

  position: relative;
  z-index: 1;               /* above #mc-aurora (z:0), under grain (z:75) */
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  color: var(--mc2-text);
  font-family: var(--mc2-font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#mc-landing *,
#mc-landing *::before,
#mc-landing *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#mc-landing ::selection {
  background: rgba(0, 229, 255, 0.28);
  color: #ffffff;
}

#mc-landing :focus-visible {
  outline: 2px solid var(--mc2-neon);
  outline-offset: 3px;
  border-radius: 6px;
}

#mc-landing a {
  color: inherit;
  text-decoration: none;
}

/* ---------- 1. Reveal system ----------
   NOTE: [data-shown] MUST stay the LAST rule in this block — it carries
   the same specificity as the [data-from] variants, so source order is
   what clears the entrance transform once revealed. (v2.1 bugfix: the
   from-right offset used to win forever and shoved the daily problem
   card 56px off-screen on phones.) */
#mc-landing .mc2-reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  filter: blur(3px);
  transition:
    opacity 0.5s var(--mc2-ease),
    transform 0.5s var(--mc2-ease),
    filter 0.5s var(--mc2-ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform, filter;
}
#mc-landing .mc2-reveal[data-from="left"] {
  transform: translate3d(-28px, 0, 0) rotate(-0.5deg);
}
#mc-landing .mc2-reveal[data-from="right"] {
  transform: translate3d(28px, 0, 0) rotate(0.5deg);
}
#mc-landing .mc2-reveal[data-from="pop"] {
  transform: scale(0.9);
  filter: blur(4px);
}
#mc-landing .mc2-reveal[data-shown="1"] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
  will-change: auto;
}

/* ---------- 2. Section shell ---------- */
#mc-landing .mc2-section {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(84px, 11vw, 150px) clamp(18px, 4.5vw, 44px);
}
#mc-landing .mc2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mc2-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mc2-neon);
}
#mc-landing .mc2-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--mc2-neon));
  flex: none;
}
#mc-landing .mc2-h2 {
  font-size: clamp(1.9rem, 4.6vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: #f4f8ff;
  margin: 14px 0 0 0;
  text-wrap: balance;
}
#mc-landing .mc2-h2 em {
  font-style: normal;
  background: linear-gradient(96deg, #00e5ff 10%, #7ee6e0 55%, #6aa7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#mc-landing .mc2-lead {
  margin-top: 18px;
  max-width: 58ch;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.72;
  color: var(--mc2-dim);
}
#mc-landing .mc2-lead strong {
  color: var(--mc2-text);
  font-weight: 600;
}

/* ---------- 3. Nav ---------- */
#mc-landing .mc2-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 66px;
  padding: 0 clamp(16px, 4vw, 34px);
  transition: background 0.45s ease, border-color 0.45s ease, backdrop-filter 0.45s ease;
  border-bottom: 1px solid transparent;
}
#mc-landing .mc2-nav[data-scrolled="1"] {
  background: rgba(7, 11, 22, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--mc2-line);
}
#mc-landing .mc2-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: #f2f7ff;
  flex: none;
}
#mc-landing .mc2-nav-brand i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #062028;
  font-style: normal;
  font-weight: 800;
  background: linear-gradient(135deg, #00e5ff, #46b9ff 60%, #7ee6e0);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.45);
}
#mc-landing .mc2-nav-brand b {
  font-weight: 800;
  color: var(--mc2-neon);
}
#mc-landing .mc2-nav-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mc2-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mc2-dim);
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--mc2-line);
  background: rgba(13, 21, 38, 0.5);
  white-space: nowrap;
}
#mc-landing .mc2-nav-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mc2-green);
  box-shadow: 0 0 10px var(--mc2-green);
  animation: mc2-blink 2.2s ease-in-out infinite;
  flex: none;
}
@keyframes mc2-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
#mc-landing .mc2-nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mc2-mono);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #04141a;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, #00e5ff, #35c8ff);
  box-shadow: 0 0 22px rgba(0, 229, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.25s var(--mc2-ease), box-shadow 0.25s ease, opacity 0.4s ease;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  flex: none;
}
#mc-landing .mc2-nav-cta[data-on="1"] {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#mc-landing .mc2-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 34px rgba(0, 229, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ---------- 4. Hero ---------- */
#mc-landing .mc2-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px clamp(18px, 4.5vw, 44px) 76px;
  overflow: clip;
  isolation: isolate;
}
/* background stack: gradient veil + perspective grid + cyan core glow */
#mc-landing .mc2-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
#mc-landing .mc2-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 42% at 50% 34%, rgba(0, 229, 255, 0.13), transparent 70%),
    radial-gradient(42% 38% at 18% 78%, rgba(110, 167, 255, 0.10), transparent 72%),
    radial-gradient(46% 40% at 84% 22%, rgba(126, 230, 224, 0.08), transparent 70%);
}
#mc-landing .mc2-hero-grid {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 8%;
  bottom: -18%;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(110, 160, 230, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 160, 230, 0.09) 1px, transparent 1px);
  background-size: 62px 62px;
  transform: perspective(760px) rotateX(58deg);
  transform-origin: 50% 0%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 26%, rgba(0, 0, 0, 0.5) 64%, transparent 92%);
  mask-image: linear-gradient(to bottom, transparent, #000 26%, rgba(0, 0, 0, 0.5) 64%, transparent 92%);
  animation: mc2-grid-drift 26s linear infinite;
}
@keyframes mc2-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 62px, 62px 0; }
}
/* floating math glyphs (√ π ∫ Σ …) */
#mc-landing .mc2-hero-glyphs {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
#mc-landing .mc2-hero-glyphs span {
  position: absolute;
  display: block;
  font-family: var(--mc2-mono);
  font-weight: 700;
  color: rgba(0, 229, 255, 0.34);
  text-shadow: 0 0 22px rgba(0, 229, 255, 0.35);
  animation: mc2-glyph-float var(--t, 16s) ease-in-out var(--dl, 0s) infinite alternate;
  will-change: transform;
}
#mc-landing .mc2-hero-glyphs span:nth-child(odd) {
  color: rgba(126, 230, 224, 0.30);
  text-shadow: 0 0 20px rgba(126, 230, 224, 0.3);
}
@keyframes mc2-glyph-float {
  from { transform: translate3d(0, 0, 0) rotate(-4deg); }
  to { transform: translate3d(14px, -34px, 0) rotate(5deg); }
}

#mc-landing .mc2-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 900px;
}
#mc-landing .mc2-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mc2-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mc2-mint);
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(126, 230, 224, 0.3);
  background: rgba(126, 230, 224, 0.07);
  box-shadow: 0 0 26px rgba(126, 230, 224, 0.12) inset;
}
#mc-landing .mc2-hero-eyebrow i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mc2-mint);
  box-shadow: 0 0 10px var(--mc2-mint);
  animation: mc2-blink 2.2s ease-in-out infinite;
  flex: none;
}
#mc-landing .mc2-hero-title {
  margin-top: 30px;
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  font-weight: 800;
  line-height: 1.015;
  letter-spacing: -0.045em;
  color: #f6faff;
  text-wrap: balance;
}
#mc-landing .mc2-hero-title .mc2-line2 {
  display: block;
  background: linear-gradient(94deg, #00e5ff 5%, #59e6d8 40%, #6aa7ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 34px rgba(0, 229, 255, 0.28));
}
#mc-landing .mc2-hero-sub {
  margin-top: 24px;
  max-width: 62ch;
  font-size: clamp(1.04rem, 1.8vw, 1.26rem);
  line-height: 1.7;
  color: var(--mc2-dim);
}
#mc-landing .mc2-hero-sub strong {
  color: #dcebff;
  font-weight: 600;
}

/* the big glowing PLAY NOW */
#mc-landing .mc2-hero-cta-wrap {
  position: relative;
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
#mc-landing .mc2-cta-core {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 58px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--mc2-mono);
  font-size: clamp(0.98rem, 1.6vw, 1.18rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #031016;
  background: linear-gradient(135deg, #25eaff 0%, #00c8ff 55%, #35d5e8 100%);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.55) inset,
    0 0 44px rgba(0, 229, 255, 0.5),
    0 18px 60px rgba(0, 229, 255, 0.28),
    0 8px 22px rgba(2, 6, 16, 0.6);
  transition: transform 0.3s var(--mc2-ease), box-shadow 0.3s ease;
  overflow: hidden;
}
#mc-landing .mc2-cta-core::after {
  /* light sweep */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 44%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  transform: skewX(-18deg);
  animation: mc2-cta-sweep 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes mc2-cta-sweep {
  0%, 55% { left: -80%; }
  85%, 100% { left: 150%; }
}
#mc-landing .mc2-cta-core:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.8) inset,
    0 0 70px rgba(0, 229, 255, 0.65),
    0 24px 80px rgba(0, 229, 255, 0.35),
    0 8px 22px rgba(2, 6, 16, 0.6);
}
#mc-landing .mc2-cta-core:active {
  transform: translateY(-1px) scale(0.99);
}
#mc-landing .mc2-cta-core svg {
  flex: none;
}
#mc-landing .mc2-cta-halo {
  position: absolute;
  inset: -34px;
  border-radius: 999px;
  pointer-events: none;
  background: radial-gradient(50% 60% at 50% 50%, rgba(0, 229, 255, 0.22), transparent 70%);
  animation: mc2-halo-pulse 3.2s ease-in-out infinite;
}
@keyframes mc2-halo-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.97); }
  50% { opacity: 1; transform: scale(1.05); }
}
#mc-landing .mc2-cta-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--mc2-dim-2);
  font-family: var(--mc2-mono);
  letter-spacing: 0.06em;
}
#mc-landing .mc2-cta-note b {
  color: var(--mc2-mint);
  font-weight: 700;
}

/* hero proof stats strip */
#mc-landing .mc2-hero-stats {
  margin-top: 58px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(10px, 3vw, 18px);
  flex-wrap: wrap;
}
#mc-landing .mc2-stat {
  min-width: 148px;
  padding: 16px 22px;
  border-radius: 16px;
  border: 1px solid var(--mc2-line);
  background: var(--mc2-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-align: center;
}
#mc-landing .mc2-stat strong {
  display: block;
  font-family: var(--mc2-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
}
#mc-landing .mc2-stat strong[data-accent="neon"] { color: var(--mc2-neon); text-shadow: 0 0 18px rgba(0, 229, 255, 0.5); }
#mc-landing .mc2-stat strong[data-accent="mint"] { color: var(--mc2-mint); text-shadow: 0 0 18px rgba(126, 230, 224, 0.45); }
#mc-landing .mc2-stat span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mc2-dim-2);
}

/* scroll cue */
#mc-landing .mc2-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--mc2-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mc2-dim-2);
}
#mc-landing .mc2-scroll-cue i {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--mc2-neon), transparent);
  position: relative;
  overflow: hidden;
}
#mc-landing .mc2-scroll-cue i::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: #ffffff;
  animation: mc2-cue-run 1.8s ease-in-out infinite;
}
@keyframes mc2-cue-run {
  0% { top: -40%; }
  70%, 100% { top: 110%; }
}

/* ---------- 5. Daily Challenge section ---------- */
#mc-landing .mc2-split {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
#mc-landing .mc2-split[data-flip="1"] {
  grid-template-areas: "a b";
}
#mc-landing .mc2-split[data-flip="1"] > .mc2-copy { order: 2; }
#mc-landing .mc2-split[data-flip="1"] > .mc2-visual { order: 1; }
#mc-landing .mc2-fact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--mc2-line);
  background: var(--mc2-glass-2);
  font-size: 0.92rem;
  color: var(--mc2-dim);
}
#mc-landing .mc2-fact svg {
  flex: none;
  color: var(--mc2-gold);
}
#mc-landing .mc2-fact b {
  color: #f4f8ff;
  font-weight: 600;
}
#mc-landing .mc2-facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
}

/* the glass problem card */
#mc-landing .mc2-card {
  position: relative;
  border-radius: var(--mc2-r);
  border: 1px solid var(--mc2-line);
  background: linear-gradient(160deg, rgba(23, 34, 62, 0.72), rgba(11, 17, 32, 0.82));
  -webkit-backdrop-filter: blur(16px) saturate(1.25);
  backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 30px 80px rgba(1, 5, 14, 0.55), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
  padding: 26px clamp(18px, 2.6vw, 30px);
  overflow: hidden;
}
#mc-landing .mc2-card::before {
  /* top neon hairline */
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.65), transparent);
  pointer-events: none;
}
#mc-landing .mc2-card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 46% at 74% 8%, rgba(0, 229, 255, 0.10), transparent 70%);
}
#mc-landing .mc2-problem-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#mc-landing .mc2-problem-kicker {
  font-family: var(--mc2-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mc2-dim-2);
}
#mc-landing .mc2-problem-kicker b {
  display: block;
  margin-top: 3px;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: #f2f7ff;
}
#mc-landing .mc2-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mc2-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--mc2-green);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(103, 213, 172, 0.35);
  background: rgba(103, 213, 172, 0.08);
  white-space: nowrap;
}
#mc-landing .mc2-live-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mc2-green);
  box-shadow: 0 0 8px var(--mc2-green);
  animation: mc2-blink 1.8s ease-in-out infinite;
  flex: none;
}
#mc-landing .mc2-problem-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--mc2-line);
  font-family: var(--mc2-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--mc2-dim-2);
}
#mc-landing .mc2-problem-timer {
  color: var(--mc2-neon);
  font-weight: 700;
  font-size: 0.86rem;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}
#mc-landing .mc2-question {
  margin-top: 20px;
  font-size: clamp(1.04rem, 1.7vw, 1.2rem);
  line-height: 1.65;
  color: #e9f1ff;
}
#mc-landing .mc2-question em {
  font-style: italic;
  color: #fff;
  border-bottom: 1px dotted rgba(0, 229, 255, 0.5);
}
#mc-landing .mc2-answer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 13px;
  border: 1px solid rgba(103, 213, 172, 0.3);
  background: rgba(103, 213, 172, 0.07);
}
#mc-landing .mc2-answer-row .mc2-ans {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
}
#mc-landing .mc2-answer-row .mc2-ans small {
  font-family: var(--mc2-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mc2-dim-2);
}
#mc-landing .mc2-answer-row .mc2-ans strong {
  font-family: var(--mc2-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mc2-green);
  text-shadow: 0 0 16px rgba(103, 213, 172, 0.5);
}
#mc-landing .mc2-lock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mc2-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--mc2-green);
  white-space: nowrap;
}
#mc-landing .mc2-problem-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  font-family: var(--mc2-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--mc2-dim-2);
}
#mc-landing .mc2-problem-foot b {
  color: var(--mc2-gold);
  font-size: 0.9rem;
  text-shadow: 0 0 14px rgba(246, 199, 106, 0.4);
}
/* progress: bar + segment dots */
#mc-landing .mc2-progress {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#mc-landing .mc2-progress-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(120, 160, 220, 0.14);
  overflow: hidden;
}
#mc-landing .mc2-progress-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #00e5ff, #7ee6e0);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.55);
  transition: width 0.9s var(--mc2-ease);
}
#mc-landing .mc2-progress-bar[data-shown="1"] i {
  width: var(--p, 46.7%);
}
#mc-landing .mc2-progress-dots {
  display: flex;
  gap: 6px;
}
#mc-landing .mc2-progress-dots i {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(120, 160, 220, 0.16);
  transition: background 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease;
  transition-delay: var(--d, 0s);
  opacity: 0.5;
}
#mc-landing .mc2-progress-dots[data-shown="1"] i.on {
  background: var(--mc2-neon);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
  opacity: 1;
}
/* pulsing speed-bonus badge */
#mc-landing .mc2-bonus {
  position: absolute;
  top: 84px;
  right: -14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-family: var(--mc2-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #062028;
  background: linear-gradient(135deg, #00e5ff, #46c8ff);
  box-shadow: 0 0 26px rgba(0, 229, 255, 0.55), 0 10px 30px rgba(0, 229, 255, 0.25);
  animation: mc2-bonus-pulse 2.1s ease-in-out infinite;
  transform: rotate(2.5deg);
  z-index: 2;
}
#mc-landing .mc2-bonus b {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
@keyframes mc2-bonus-pulse {
  0%, 100% { transform: rotate(2.5deg) scale(1); box-shadow: 0 0 22px rgba(0, 229, 255, 0.45), 0 10px 30px rgba(0, 229, 255, 0.22); }
  50% { transform: rotate(2.5deg) scale(1.06); box-shadow: 0 0 40px rgba(0, 229, 255, 0.8), 0 14px 44px rgba(0, 229, 255, 0.35); }
}
#mc-landing .mc2-rank-chip {
  position: absolute;
  bottom: 64px;
  left: -14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 12px;
  font-family: var(--mc2-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #2a1e04;
  background: linear-gradient(135deg, #ffd98a, #f6c76a);
  box-shadow: 0 0 22px rgba(246, 199, 106, 0.4), 0 10px 26px rgba(1, 5, 14, 0.5);
  transform: rotate(-2deg);
  z-index: 2;
  animation: mc2-chip-float 5.6s ease-in-out infinite;
}
#mc-landing .mc2-rank-chip b {
  font-size: 0.82rem;
}
@keyframes mc2-chip-float {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-8px); }
}

/* ---------- 6. Duels section ---------- */
#mc-landing .mc2-duel-stage {
  position: relative;
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(12px, 3vw, 30px);
  align-items: stretch;
}
#mc-landing .mc2-vs {
  position: relative;
  z-index: 3;
  align-self: center;
  display: grid;
  place-items: center;
  width: clamp(62px, 7vw, 84px);
  height: clamp(62px, 7vw, 84px);
  border-radius: 50%;
  font-family: var(--mc2-mono);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: #04141a;
  background: conic-gradient(from 210deg, #00e5ff, #7ee6e0, #6aa7ff, #00e5ff);
  box-shadow: 0 0 34px rgba(0, 229, 255, 0.5), 0 14px 40px rgba(1, 5, 14, 0.55);
  transform: scale(0);
  transition: transform 0.45s var(--mc2-ease) 0.2s;
}
#mc-landing .mc2-vs[data-shown="1"] {
  transform: scale(1);
}
#mc-landing .mc2-vs::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 229, 255, 0.45);
  animation: mc2-vs-spin 9s linear infinite;
}
@keyframes mc2-vs-spin {
  to { transform: rotate(360deg); }
}
#mc-landing .mc2-player {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px clamp(16px, 2.4vw, 26px);
  border-radius: var(--mc2-r);
  border: 1px solid var(--mc2-line);
  background: var(--mc2-glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 26px 70px rgba(1, 5, 14, 0.5);
}
#mc-landing .mc2-player[data-side="a"] { border-top: 1px solid rgba(0, 229, 255, 0.4); }
#mc-landing .mc2-player[data-side="b"] { border-top: 1px solid rgba(185, 164, 255, 0.45); }
#mc-landing .mc2-player-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
#mc-landing .mc2-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 1rem;
  color: #04141a;
  flex: none;
}
#mc-landing .mc2-player[data-side="a"] .mc2-avatar {
  background: linear-gradient(135deg, #00e5ff, #46c8ff);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
}
#mc-landing .mc2-player[data-side="b"] .mc2-avatar {
  background: linear-gradient(135deg, #b9a4ff, #7ee6e0);
  box-shadow: 0 0 16px rgba(185, 164, 255, 0.4);
}
#mc-landing .mc2-player-head strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: #f2f7ff;
}
#mc-landing .mc2-player-head small {
  font-family: var(--mc2-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mc2-dim-2);
}
#mc-landing .mc2-player-score {
  margin-left: auto;
  text-align: right;
  font-family: var(--mc2-mono);
}
#mc-landing .mc2-player-score b {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
#mc-landing .mc2-player-score small {
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--mc2-dim-2);
}
#mc-landing .mc2-player[data-side="a"] .mc2-player-score b { color: var(--mc2-neon); text-shadow: 0 0 16px rgba(0, 229, 255, 0.5); }
#mc-landing .mc2-player[data-side="b"] .mc2-player-score b { color: var(--mc2-violet); text-shadow: 0 0 16px rgba(185, 164, 255, 0.5); }
#mc-landing .mc2-typing {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--mc2-line);
  background: rgba(8, 15, 28, 0.72);
  font-family: var(--mc2-mono);
  font-size: 0.92rem;
  color: #cfe3ff;
  white-space: nowrap;
  overflow: hidden;
}
#mc-landing .mc2-typing[data-caret="1"]::after {
  content: "";
  width: 9px;
  height: 1.15em;
  margin-left: 2px;
  background: var(--mc2-neon);
  animation: mc2-caret 0.8s steps(2) infinite;
  align-self: center;
}
@keyframes mc2-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
#mc-landing .mc2-lockstamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--mc2-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--mc2-green);
  border: 1px solid rgba(103, 213, 172, 0.4);
  background: rgba(103, 213, 172, 0.1);
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transition: opacity 0.35s var(--mc2-ease), transform 0.35s var(--mc2-ease);
}
#mc-landing .mc2-lockstamp[data-on="1"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: mc2-stamp-glow 2.4s ease-in-out infinite;
}
@keyframes mc2-stamp-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(103, 213, 172, 0.18); }
  50% { box-shadow: 0 0 26px rgba(103, 213, 172, 0.45); }
}
#mc-landing .mc2-duel-hintbar {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
#mc-landing .mc2-duel-hintbar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--mc2-line);
  background: var(--mc2-glass-2);
  font-family: var(--mc2-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mc2-dim);
}
#mc-landing .mc2-duel-hintbar span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}
#mc-landing .mc2-duel-hintbar span:nth-child(1) i { background: var(--mc2-neon); box-shadow: 0 0 8px var(--mc2-neon); }
#mc-landing .mc2-duel-hintbar span:nth-child(2) i { background: var(--mc2-gold); box-shadow: 0 0 8px var(--mc2-gold); }
#mc-landing .mc2-duel-hintbar span:nth-child(3) i { background: var(--mc2-violet); box-shadow: 0 0 8px var(--mc2-violet); }

/* ---------- 7. Parties section ---------- */
#mc-landing .mc2-party-wrap {
  position: relative;
  border-radius: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(185, 164, 255, 0.22);
  background:
    radial-gradient(80% 90% at 12% 8%, rgba(185, 164, 255, 0.12), transparent 60%),
    radial-gradient(70% 80% at 88% 92%, rgba(0, 229, 255, 0.10), transparent 62%),
    linear-gradient(165deg, rgba(23, 34, 62, 0.7), rgba(11, 17, 32, 0.85));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 34px 90px rgba(1, 5, 14, 0.6);
  padding: clamp(26px, 4vw, 46px);
  overflow: hidden;
  margin-top: 52px;
}
#mc-landing .mc2-party-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 164, 255, 0.7), transparent);
}
#mc-landing .mc2-party-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
#mc-landing .mc2-room-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px dashed rgba(185, 164, 255, 0.5);
  font-family: var(--mc2-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: var(--mc2-violet);
  background: rgba(185, 164, 255, 0.07);
}
#mc-landing .mc2-party-title {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f4f8ff;
}
#mc-landing .mc2-party-title b {
  color: var(--mc2-violet);
}
#mc-landing .mc2-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
#mc-landing .mc2-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px 8px 9px;
  border-radius: 999px;
  border: 1px solid var(--mc2-line);
  background: var(--mc2-glass-2);
  font-size: 0.85rem;
  color: #dcebff;
  opacity: 0;
  transform: scale(0.5) translateY(10px);
  transition: opacity 0.35s var(--mc2-ease), transform 0.38s var(--mc2-ease);
  transition-delay: var(--d, 0s);
}
#mc-landing .mc2-avatars[data-shown="1"] .mc2-chip {
  opacity: 1;
  transform: scale(1) translateY(0);
}
#mc-landing .mc2-chip i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-style: normal;
  font-weight: 800;
  font-size: 0.8rem;
  color: #062028;
  flex: none;
}
#mc-landing .mc2-chip[data-c="0"] i { background: linear-gradient(135deg, #00e5ff, #46c8ff); }
#mc-landing .mc2-chip[data-c="1"] i { background: linear-gradient(135deg, #ffd98a, #f6a676); }
#mc-landing .mc2-chip[data-c="2"] i { background: linear-gradient(135deg, #7ee6e0, #67d5ac); }
#mc-landing .mc2-chip[data-c="3"] i { background: linear-gradient(135deg, #b9a4ff, #6aa7ff); }
#mc-landing .mc2-chip[data-c="4"] i { background: linear-gradient(135deg, #ff9fb0, #ff7f87); }
#mc-landing .mc2-chip[data-host="1"] {
  border-color: rgba(246, 199, 106, 0.5);
  box-shadow: 0 0 18px rgba(246, 199, 106, 0.2);
}
#mc-landing .mc2-chip[data-host="1"]::after {
  content: "HOST";
  font-family: var(--mc2-mono);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: var(--mc2-gold);
}
/* bar race */
#mc-landing .mc2-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2.2vw, 22px);
  margin-top: 34px;
  align-items: end;
  min-height: 170px;
}
#mc-landing .mc2-bar {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  height: 100%;
}
#mc-landing .mc2-bar-v {
  position: relative;
  height: 118px;
  border-radius: 10px 10px 4px 4px;
  background: rgba(120, 160, 220, 0.08);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
#mc-landing .mc2-bar-v i {
  display: block;
  width: 100%;
  height: 0;
  border-radius: 10px 10px 0 0;
  transition: height 0.75s var(--mc2-ease);
  transition-delay: var(--d, 0s);
  position: relative;
}
#mc-landing .mc2-bars[data-shown="1"] .mc2-bar-v i {
  height: var(--h, 60%);
}
#mc-landing .mc2-bar[data-i="0"] .mc2-bar-v i { background: linear-gradient(to top, rgba(0, 229, 255, 0.25), #00e5ff); box-shadow: 0 0 22px rgba(0, 229, 255, 0.35); }
#mc-landing .mc2-bar[data-i="1"] .mc2-bar-v i { background: linear-gradient(to top, rgba(246, 199, 106, 0.25), #f6c76a); box-shadow: 0 0 22px rgba(246, 199, 106, 0.3); }
#mc-landing .mc2-bar[data-i="2"] .mc2-bar-v i { background: linear-gradient(to top, rgba(126, 230, 224, 0.25), #7ee6e0); box-shadow: 0 0 22px rgba(126, 230, 224, 0.3); }
#mc-landing .mc2-bar[data-i="3"] .mc2-bar-v i { background: linear-gradient(to top, rgba(185, 164, 255, 0.25), #b9a4ff); box-shadow: 0 0 22px rgba(185, 164, 255, 0.3); }
#mc-landing .mc2-bar-v i::after {
  /* shimmer streak */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 40%);
  opacity: 0.5;
}
#mc-landing .mc2-bar-n {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--mc2-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--mc2-dim);
}
#mc-landing .mc2-bar-n b {
  font-size: 0.8rem;
  color: #fff;
}
#mc-landing .mc2-party-foot {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  font-family: var(--mc2-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mc2-dim-2);
}
#mc-landing .mc2-party-foot b {
  color: var(--mc2-violet);
}

/* ---------- 8. Leaderboard section ---------- */
#mc-landing .mc2-board {
  margin-top: 52px;
  border-radius: var(--mc2-r);
  border: 1px solid var(--mc2-line);
  background: linear-gradient(170deg, rgba(23, 34, 62, 0.72), rgba(9, 14, 27, 0.86));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 34px 90px rgba(1, 5, 14, 0.6);
  overflow: hidden;
}
#mc-landing .mc2-board::before {
  content: "";
  position: absolute;
}
#mc-landing .mc2-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px clamp(16px, 2.4vw, 28px) 0;
}
#mc-landing .mc2-board-title {
  font-family: var(--mc2-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mc2-dim-2);
}
#mc-landing .mc2-board-season {
  font-family: var(--mc2-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--mc2-mint);
}
#mc-landing .mc2-tabs {
  display: inline-flex;
  gap: 4px;
  margin: 18px clamp(16px, 2.4vw, 28px) 0;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid var(--mc2-line);
  background: rgba(8, 15, 28, 0.72);
}
#mc-landing .mc2-tab {
  border: 0;
  cursor: pointer;
  font-family: var(--mc2-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mc2-dim);
  padding: 9px 16px;
  border-radius: 999px;
  background: transparent;
  transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
#mc-landing .mc2-tab:hover {
  color: var(--mc2-text);
}
#mc-landing .mc2-tab[aria-selected="true"] {
  color: #04141a;
  background: linear-gradient(135deg, #00e5ff, #46c8ff);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.4);
}
#mc-landing .mc2-rows {
  padding: 18px clamp(12px, 2vw, 22px) 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#mc-landing .mc2-row {
  display: grid;
  grid-template-columns: 74px 1fr auto auto;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  padding: 13px clamp(12px, 1.8vw, 20px);
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(16, 25, 46, 0.35);
  opacity: 0;
  transform: translate3d(0, -16px, 0) scale(0.985);
  transition: opacity 0.42s var(--mc2-ease), transform 0.42s var(--mc2-ease), border-color 0.3s ease, background 0.3s ease;
  transition-delay: var(--d, 0s);
}
#mc-landing .mc2-rows[data-shown="1"] .mc2-row {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
#mc-landing .mc2-row:hover {
  border-color: var(--mc2-line-hi);
  background: rgba(20, 32, 58, 0.55);
}
#mc-landing .mc2-row[data-top="1"] {
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.12), rgba(126, 230, 224, 0.07) 55%, transparent),
    rgba(16, 25, 46, 0.5);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
#mc-landing .mc2-row-rank {
  font-family: var(--mc2-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--mc2-dim-2);
}
#mc-landing .mc2-row[data-top="1"] .mc2-row-rank {
  color: var(--mc2-neon);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
}
#mc-landing .mc2-row-rank b {
  font-size: 1rem;
  letter-spacing: 0.02em;
}
#mc-landing .mc2-row-user {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
#mc-landing .mc2-row-user i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-style: normal;
  font-weight: 800;
  font-size: 0.86rem;
  color: #062028;
  flex: none;
}
#mc-landing .mc2-row[data-u="0"] .mc2-row-user i { background: linear-gradient(135deg, #00e5ff, #46c8ff); }
#mc-landing .mc2-row[data-u="1"] .mc2-row-user i { background: linear-gradient(135deg, #ffd98a, #f6a676); }
#mc-landing .mc2-row[data-u="2"] .mc2-row-user i { background: linear-gradient(135deg, #7ee6e0, #67d5ac); }
#mc-landing .mc2-row[data-u="3"] .mc2-row-user i { background: linear-gradient(135deg, #b9a4ff, #6aa7ff); }
#mc-landing .mc2-row[data-u="4"] .mc2-row-user i { background: linear-gradient(135deg, #ff9fb0, #ff7f87); }
#mc-landing .mc2-row-user span {
  font-weight: 600;
  font-size: 0.94rem;
  color: #e9f1ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#mc-landing .mc2-row[data-top="1"] .mc2-row-user span {
  color: #ffffff;
  font-weight: 700;
}
#mc-landing .mc2-row-user em {
  font-style: normal;
  font-family: var(--mc2-mono);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--mc2-gold);
  border: 1px solid rgba(246, 199, 106, 0.45);
  border-radius: 6px;
  padding: 2px 7px;
  flex: none;
}
#mc-landing .mc2-row-pts {
  font-family: var(--mc2-mono);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-align: right;
  white-space: nowrap;
}
#mc-landing .mc2-row[data-top="1"] .mc2-row-pts {
  color: var(--mc2-neon);
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.5);
}
#mc-landing .mc2-row-pts small {
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: var(--mc2-dim-2);
  margin-left: 6px;
}
#mc-landing .mc2-row-trend {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mc2-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--mc2-green);
  white-space: nowrap;
}
#mc-landing .mc2-row-trend[data-down="1"] {
  color: var(--mc2-red);
}
#mc-landing .mc2-board-foot {
  padding: 0 clamp(16px, 2.4vw, 28px) 20px;
  text-align: center;
  font-family: var(--mc2-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mc2-dim-2);
}
#mc-landing .mc2-board-foot b {
  color: var(--mc2-neon);
}

/* ---------- 9. Final CTA ---------- */
#mc-landing .mc2-final {
  position: relative;
  text-align: center;
  padding: clamp(96px, 12vw, 170px) clamp(18px, 4.5vw, 44px) clamp(96px, 12vw, 150px);
  overflow: clip;
  isolation: isolate;
}
#mc-landing .mc2-final-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 40% at 50% 46%, rgba(0, 229, 255, 0.14), transparent 72%),
    radial-gradient(30% 26% at 50% 88%, rgba(126, 230, 224, 0.1), transparent 70%);
}
#mc-landing .mc2-final-rings {
  position: absolute;
  left: 50%;
  top: 54%;
  z-index: -1;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
#mc-landing .mc2-final-rings i {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(0, 229, 255, 0.22);
  animation: mc2-ring-grow 3.6s ease-out infinite;
  animation-delay: var(--d, 0s);
  opacity: 0;
}
#mc-landing .mc2-final-rings i:nth-child(1) { width: 260px; height: 260px; }
#mc-landing .mc2-final-rings i:nth-child(2) { width: 420px; height: 420px; --d: 1.2s; }
#mc-landing .mc2-final-rings i:nth-child(3) { width: 580px; height: 580px; --d: 2.4s; }
@keyframes mc2-ring-grow {
  0% { transform: scale(0.72); opacity: 0; }
  16% { opacity: 0.9; }
  100% { transform: scale(1.18); opacity: 0; }
}
#mc-landing .mc2-final-title {
  font-size: clamp(2.1rem, 5.4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #f6faff;
  text-wrap: balance;
}
#mc-landing .mc2-final-title em {
  font-style: normal;
  background: linear-gradient(96deg, #00e5ff, #7ee6e0 60%, #6aa7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
#mc-landing .mc2-final-sub {
  margin-top: 18px;
  color: var(--mc2-dim);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}
#mc-landing .mc2-final-note {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mc2-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mc2-dim-2);
}
#mc-landing .mc2-final-note i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mc2-mint);
  box-shadow: 0 0 10px var(--mc2-mint);
}
#mc-landing .mc2-final-note b {
  color: var(--mc2-mint);
}

/* ---------- 10. Footer ---------- */
#mc-landing .mc2-footer {
  border-top: 1px solid var(--mc2-line);
  padding: 34px clamp(18px, 4.5vw, 44px) 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  max-width: 1180px;
  margin: 0 auto;
}
#mc-landing .mc2-footer-tag {
  font-family: var(--mc2-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--mc2-dim-2);
}
#mc-landing .mc2-footer-tag b {
  color: var(--mc2-text);
}
#mc-landing .mc2-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 0.84rem;
}
#mc-landing .mc2-footer-links a,
#mc-landing .mc2-footer-links button {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: var(--mc2-dim);
  transition: color 0.25s ease, text-shadow 0.25s ease;
}
#mc-landing .mc2-footer-links a:hover,
#mc-landing .mc2-footer-links button:hover {
  color: var(--mc2-neon);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.5);
}
#mc-landing .mc2-footer-links i {
  font-style: normal;
  color: var(--mc2-dim-2);
}

/* ---------- 11. Responsive ---------- */
@media (max-width: 1020px) {
  #mc-landing .mc2-nav-live { display: none; }
}
@media (max-width: 880px) {
  #mc-landing .mc2-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  #mc-landing .mc2-split[data-flip="1"] > .mc2-copy { order: 1; }
  #mc-landing .mc2-split[data-flip="1"] > .mc2-visual { order: 2; }
  #mc-landing .mc2-duel-stage {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  #mc-landing .mc2-vs {
    margin: -4px auto;
  }
  #mc-landing .mc2-bars {
    grid-template-columns: repeat(2, 1fr);
    min-height: 0;
  }
  #mc-landing .mc2-row {
    grid-template-columns: 58px 1fr auto;
  }
  #mc-landing .mc2-row-trend { display: none; }
  #mc-landing .mc2-hero-stats {
    gap: 10px;
  }
  #mc-landing .mc2-stat {
    min-width: calc(50% - 5px);
    flex: 1;
  }
}
@media (max-width: 560px) {
  #mc-landing .mc2-section {
    padding: 58px 18px;
  }
  #mc-landing .mc2-nav {
    height: 58px;
  }
  #mc-landing .mc2-nav-cta {
    padding: 9px 14px;
    font-size: 0.66rem;
  }
  #mc-landing .mc2-cta-note {
    font-size: 0.72rem;
  }
  #mc-landing .mc2-typing {
    font-size: 0.8rem;
    min-height: 46px;
  }
  #mc-landing .mc2-progress-dots i:nth-child(n+9) { display: none; }
  #mc-landing .mc2-cta-core {
    padding: 17px 40px;
    gap: 10px;
  }
  #mc-landing .mc2-tabs {
    width: 100%;
    justify-content: center;
  }
  #mc-landing .mc2-tab {
    flex: 1;
    text-align: center;
    padding: 9px 6px;
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }

  /* ---- problem card: phone-safe layout ---- */
  #mc-landing .mc2-card {
    padding: 20px 16px;
    border-radius: 18px;
  }
  /* floating stickers become small, flat, static chips that hug the
     card edges WITHOUT rotating, pulsing, or covering any text */
  #mc-landing .mc2-bonus {
    top: -16px;
    right: 10px;
    padding: 6px 10px;
    gap: 6px;
    border-radius: 9px;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    transform: none;
    animation: none;
    box-shadow: 0 6px 18px rgba(0, 229, 255, 0.3);
  }
  #mc-landing .mc2-bonus b {
    font-size: 0.72rem;
  }
  #mc-landing .mc2-bonus svg {
    width: 12px;
    height: 12px;
  }
  #mc-landing .mc2-rank-chip {
    bottom: -14px;
    left: 10px;
    padding: 5px 9px;
    gap: 6px;
    border-radius: 9px;
    font-size: 0.54rem;
    letter-spacing: 0.1em;
    transform: none;
    animation: none;
    box-shadow: 0 6px 16px rgba(1, 5, 14, 0.5);
  }
  #mc-landing .mc2-rank-chip b {
    font-size: 0.68rem;
  }
  #mc-landing .mc2-rank-chip svg {
    width: 11px;
    height: 11px;
  }
  #mc-landing .mc2-problem-head {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  #mc-landing .mc2-problem-kicker {
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }
  #mc-landing .mc2-problem-kicker b {
    font-size: 0.92rem;
  }
  #mc-landing .mc2-live-pill {
    padding: 5px 10px;
    font-size: 0.56rem;
  }
  #mc-landing .mc2-problem-meta {
    margin-top: 14px;
    padding-bottom: 12px;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }
  #mc-landing .mc2-problem-timer {
    font-size: 0.78rem;
  }
  #mc-landing .mc2-question {
    margin-top: 14px;
    font-size: 0.98rem;
    line-height: 1.6;
  }
  #mc-landing .mc2-answer-row {
    flex-wrap: wrap;
    row-gap: 8px;
    margin-top: 16px;
    padding: 12px 14px;
  }
  #mc-landing .mc2-answer-row .mc2-ans strong {
    font-size: 1.28rem;
  }
  #mc-landing .mc2-lock {
    font-size: 0.56rem;
    letter-spacing: 0.1em;
  }
  #mc-landing .mc2-problem-foot {
    margin-top: 14px;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }
  #mc-landing .mc2-problem-foot b {
    font-size: 0.8rem;
  }
  #mc-landing .mc2-progress {
    margin-top: 16px;
    gap: 8px;
  }
  #mc-landing .mc2-progress-dots {
    gap: 4px;
  }

  /* ---- duels: tighter player panels ---- */
  #mc-landing .mc2-player {
    padding: 16px 14px;
    gap: 10px;
  }
  #mc-landing .mc2-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  #mc-landing .mc2-player-head strong {
    font-size: 0.9rem;
  }
  #mc-landing .mc2-player-head small {
    font-size: 0.52rem;
    letter-spacing: 0.1em;
  }
  #mc-landing .mc2-player-score b {
    font-size: 1.1rem;
  }
  #mc-landing .mc2-duel-hintbar span {
    padding: 7px 12px;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
  }

  /* ---- leaderboard rows: compact ---- */
  #mc-landing .mc2-row {
    grid-template-columns: 46px 1fr auto;
    gap: 8px;
    padding: 11px 12px;
  }
  #mc-landing .mc2-row-user {
    gap: 8px;
  }
  #mc-landing .mc2-row-user i {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
  }
  #mc-landing .mc2-row-user em {
    display: none;
  }
  #mc-landing .mc2-row-user span {
    font-size: 0.84rem;
  }
  #mc-landing .mc2-row-pts {
    font-size: 0.88rem;
  }
  #mc-landing .mc2-row-rank b {
    font-size: 0.88rem;
  }

  /* ---- party: tighter ---- */
  #mc-landing .mc2-party-wrap {
    padding: 20px 16px;
  }
  #mc-landing .mc2-party-head {
    gap: 10px;
  }
  #mc-landing .mc2-bar-n {
    font-size: 0.54rem;
  }
}
@media (max-width: 380px) {
  /* very narrow phones: stack the answer row, calm the hero stats */
  #mc-landing .mc2-answer-row {
    flex-direction: column;
    align-items: flex-start;
  }
  #mc-landing .mc2-stat {
    min-width: 100%;
  }
  #mc-landing .mc2-hero-stats {
    margin-top: 44px;
  }
}

/* ---------- 12. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  #mc-landing *,
  #mc-landing *::before,
  #mc-landing *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  #mc-landing .mc2-reveal,
  #mc-landing .mc2-rows .mc2-row,
  #mc-landing .mc2-avatars .mc2-chip,
  #mc-landing .mc2-vs,
  #mc-landing .mc2-lockstamp {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  #mc-landing .mc2-progress-bar i {
    width: var(--p, 46.7%) !important;
  }
  #mc-landing .mc2-bars .mc2-bar-v i {
    height: var(--h, 60%) !important;
  }
  #mc-landing .mc2-hero-glyphs,
  #mc-landing .mc2-hero-grid,
  #mc-landing .mc2-final-rings {
    display: none;
  }
}

/* ==========================================================================
   Round 17 review fixes (appended last so it wins by order)
   - brand mark matches favicon, hero note + proof tiles on phones,
     scroll cue clearance, tighter section rhythm. (Contrast: --mc2-dim-2
     raised above in :root block.)
   ========================================================================== */
#mc-landing .mc2-nav-brand i {
  background: #070b16;
  border: 1px solid #1c2a4a;
  box-shadow: 0 0 16px rgba(126, 230, 224, 0.28);
}
#mc-landing .mc2-nav-brand i svg { display: block; width: 22px; height: 22px; }
#mc-landing .mc2-section {
  padding-top: clamp(60px, 7.5vw, 100px);
  padding-bottom: clamp(60px, 7.5vw, 100px);
}
#mc-landing .mc2-cta-note {
  display: block;
  text-align: center;
  line-height: 1.7;
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 560px) {
  #mc-landing .mc2-hero { padding-bottom: 112px; }
  #mc-landing .mc2-section { padding-top: 46px; padding-bottom: 46px; }
  #mc-landing .mc2-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 36px;
  }
  #mc-landing .mc2-stat { min-width: 0; padding: 12px 6px; border-radius: 14px; }
  #mc-landing .mc2-stat strong { font-size: 1.25rem; }
  #mc-landing .mc2-stat span { font-size: 0.6rem; letter-spacing: 0.05em; line-height: 1.3; }
}
