/* ─────────────────────────────────────────────────────
   REACTR — Cyberpunk Red Theme
   ───────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600&display=swap');

/* ── VARIABLES ────────────────────────────────────── */
:root {
  --red:        #e30000;
  --red-dim:    #8b0000;
  --red-glow:   rgba(227, 0, 0, 0.25);
  --red-subtle: rgba(227, 0, 0, 0.08);
  --bg:         #060608;
  --bg2:        #0d0d11;
  --bg3:        #111118;
  --border:     rgba(255,255,255,0.07);
  --border-red: rgba(227,0,0,0.35);
  --text:       #ffffff;
  --text-dim:   #d4d4d7;
  --text-bright:#f0f0ff;
  --font-title: 'Orbitron', monospace;
  --font-body:  'Rajdhani', sans-serif;
  --font-mono:  'Share Tech Mono', monospace;
}

/* ── RESET & BASE ─────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ── OVERLAYS: SCANLINES + GRAIN ──────────────────── */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.07) 3px,
    rgba(0,0,0,0.07) 4px
  );
}

.grain {
  position: fixed;
  inset: -200%;
  width: 400%;
  height: 400%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-move 0.5s steps(2) infinite;
}
@keyframes grain-move {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-5%,-5%); }
  50%  { transform: translate(5%,5%); }
  75%  { transform: translate(-5%,5%); }
  100% { transform: translate(5%,-5%); }
}

/* ── BLINK CURSOR ─────────────────────────────────── */
.blink {
  animation: blink 1s step-end infinite;
  color: var(--red);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── NAVIGATION ───────────────────────────────────── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(6,6,8,0.92);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.nav-logo {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-bright);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 1px;
  background: var(--red);
}

/* ── BUTTONS ──────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-primary:hover {
  background: #ff1111;
  box-shadow: 0 0 20px var(--red-glow), 0 0 40px rgba(227,0,0,0.1);
  transform: translateY(-1px);
}

.btn-primary.big-btn {
  font-size: 0.9rem;
  padding: 1rem 2.5rem;
  margin-top: 1.5rem;
}

.btn-ghost {
  display: inline-block;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.btn-ghost:hover {
  color: var(--text-bright);
  border-color: rgba(255,255,255,0.25);
}

.back-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
  text-decoration: none;
}

.back-btn:hover { color: var(--red); }

/* ── ACCENT COLOR ─────────────────────────────────── */
.accent { color: var(--red); }
.mono   { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-dim); }

/* ── FOOTER ───────────────────────────────────────── */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 3rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ════════════════════════════════════════════════════
   HOME PAGE
   ════════════════════════════════════════════════════ */

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 4rem 3rem;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(227,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227,0,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 30%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.18em;
  margin-bottom: 1.5rem;
}

.tag-bracket { color: var(--text-dim); }

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: 0.05em;
  color: var(--text-bright);
  margin-bottom: 1.5rem;
}

.title-line { display: block; }
.title-line.accent {
  color: var(--red);
  text-shadow: 0 0 30px rgba(227,0,0,0.4);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  max-width: 500px;
  font-weight: 300;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Decorative rings */
.hero-deco {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  pointer-events: none;
}

.deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-red);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.ring-1 { width: 200px; height: 200px; opacity: 0.6; animation: spin 20s linear infinite; }
.ring-2 { width: 350px; height: 350px; opacity: 0.3; animation: spin 35s linear infinite reverse; border-style: dashed; }
.ring-3 { width: 500px; height: 500px; opacity: 0.15; animation: spin 50s linear infinite; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.deco-cross {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 20px; height: 20px;
}
.deco-cross::before, .deco-cross::after {
  content: '';
  position: absolute;
  background: var(--red);
}
.deco-cross::before { width: 1px; height: 100%; left: 50%; transform: translateX(-50%); }
.deco-cross::after  { height: 1px; width: 100%; top: 50%; transform: translateY(-50%); }

/* Scroll hint */
.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  padding: 2rem;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse { 0%,100%{opacity:0.4} 50%{opacity:1} }

/* Teaser section */
.teaser {
  padding: 5rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.teaser-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.15em;
  margin-bottom: 2.5rem;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 3rem;
}

.teaser-card {
  background: var(--bg);
  padding: 2.5rem;
  position: relative;
  transition: background 0.2s;
}

.teaser-card:hover {
  background: var(--bg3);
}

.teaser-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--red);
  transition: height 0.3s;
}
.teaser-card:hover::before { height: 100%; }

.card-num {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
}
.teaser-card h3 {
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}
.teaser-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.teaser-cta { text-align: center; }

/* ════════════════════════════════════════════════════
   ABOUT PAGE
   ════════════════════════════════════════════════════ */

.page-hero {
  padding: 4rem 3rem 2rem;
  border-bottom: 1px solid var(--border);
}

.page-hero-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.page-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--text-bright);
}

.about-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem;
}

.about-block {
  margin-bottom: 2rem;
}

.about-block-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--red);
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-red);
  display: inline-block;
}

.about-block p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.8;
  font-weight: 300;
}

.about-divider {
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.how-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.how-num {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
}

.how-item h4 {
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--text-bright);
  margin-bottom: 0.4rem;
}

.how-item p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.hw-card {
  background: var(--bg);
  padding: 1.5rem;
  transition: background 0.2s;
}
.hw-card:hover { background: var(--bg3); }
.hw-icon { font-size: 1.25rem; margin-bottom: 0.75rem; }
.hw-card h4 {
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-bright);
  margin-bottom: 0.5rem;
}
.hw-card p { font-size: 0.8rem; color: var(--text-dim); line-height: 1.6; }

.about-warning {
  background: var(--red-subtle);
  border: 1px solid var(--border-red);
  padding: 1.25rem 1.5rem;
}
.about-warning .about-block-label { color: #ff6666; border-bottom-color: rgba(255,100,100,0.3); }
.about-warning p { color: #cc9999; font-size: 0.875rem; }

.about-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
}

/* ════════════════════════════════════════════════════
   LEVELS PAGE
   ════════════════════════════════════════════════════ */

.levels-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem;
}

.levels-header {
  margin-bottom: 3rem;
}

.levels-header .back-btn {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.levels-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.levels-sub {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
  font-weight: 300;
}

.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.level-card {
  background: var(--bg);
  padding: 2.5rem;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  overflow: hidden;
}

.level-card:hover {
  background: var(--bg3);
}

.level-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.level-easy::after   { background: #22c55e; }
.level-medium::after { background: #f59e0b; }
.level-hard::after   { background: var(--red); }
.level-card:hover::after { transform: scaleX(1); }

.level-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.level-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.level-indicator {
  display: flex;
  gap: 5px;
}

.ind {
  width: 18px;
  height: 4px;
  background: var(--border);
  transition: background 0.2s;
}

.level-easy .ind.active   { background: #22c55e; }
.level-medium .ind.active { background: #f59e0b; }
.level-hard .ind.active   { background: var(--red); }

.level-name {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.level-easy:hover .level-name   { color: #22c55e; }
.level-medium:hover .level-name { color: #f59e0b; }
.level-hard:hover .level-name   { color: var(--red); }

.level-desc {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  min-height: 80px;
}

.level-meta {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.level-select-btn {
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  transition: color 0.2s;
}
.level-card:hover .level-select-btn { color: var(--text-bright); }

.levels-warning {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  padding: 1rem;
  border: 1px solid var(--border);
}

.warn-icon {
  color: var(--red);
  font-weight: bold;
  font-size: 1rem;
}

/* Flash out transition */
@keyframes flash-out {
  0%   { opacity: 1; }
  50%  { opacity: 0; filter: brightness(3); }
  100% { opacity: 0; }
}
body.flash-out { animation: flash-out 0.4s forwards; }

/* ════════════════════════════════════════════════════
   GAME PAGE
   ════════════════════════════════════════════════════ */

.game-body {
  background: #000;
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.9);
  flex-shrink: 0;
}

.game-logo {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.game-level-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--red);
  border: 1px solid var(--border-red);
  padding: 4px 12px;
}

/* Intro screen */
.game-intro {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.intro-content {
  max-width: 480px;
  padding: 2rem;
}

.intro-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.15em;
  margin-bottom: 1.25rem;
}

.intro-content h2 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.intro-content p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.intro-warning {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #cc9900;
  border: 1px solid rgba(200,150,0,0.3);
  padding: 0.6rem 1rem;
  margin-bottom: 0.5rem;
}

/* Game screen */
.game-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.game-progress-bar {
  height: 3px;
  background: var(--bg3);
  flex-shrink: 0;
}
.game-progress-fill {
  height: 100%;
  background: var(--red);
  width: 0%;
  transition: width 0.5s ease;
  box-shadow: 0 0 8px var(--red);
}

.video-wrapper {
  flex: 1;
  position: relative;
  background: #000;
  overflow: hidden;
}

/* ── FIX: #main-video is now a div, not a <video> ── */
#main-video {
  width: 100%;
  height: 100%;
  display: block;
}

/* Force the YouTube iframe to fill the wrapper */
#main-video iframe {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.video-overlay.hidden { display: none; }

.overlay-content { text-align: center; }

.overlay-spinner {
  width: 40px; height: 40px;
  border: 2px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin-loader 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin-loader { to { transform: rotate(360deg); } }

.overlay-msg {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.game-status-bar {
  display: flex;
  align-items: center;
  padding: 0.75rem 2rem;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.95);
  flex-shrink: 0;
  gap: 2rem;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.status-item.center { flex: 1; align-items: center; }
.status-item.right  { align-items: flex-end; }

.status-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.status-val {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-bright);
  letter-spacing: 0.1em;
}

.dot-track {
  display: flex;
  gap: 6px;
  align-items: center;
}

.seq-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, box-shadow 0.3s;
}
.seq-dot.done    { background: var(--red-dim); }
.seq-dot.current { background: var(--red); box-shadow: 0 0 8px var(--red); }

.rec-dot {
  font-size: 0.75rem;
  color: var(--red);
}

/* Stop modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {
  background: var(--bg2);
  border: 1px solid var(--border-red);
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
}

.modal-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 1rem;
}

.modal h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-bright);
  margin-bottom: 0.75rem;
}

.modal p {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.modal-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ════════════════════════════════════════════════════
   END PAGE
   ════════════════════════════════════════════════════ */

.end-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 3rem;
  text-align: center;
}

.end-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--red);
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.end-title {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--text-bright);
  margin-bottom: 1rem;
}

.end-sub {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 3rem;
  font-weight: 300;
}

.end-result-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s, transform 0.5s;
}

.end-result-card.card-visible {
  opacity: 1;
  transform: translateY(0);
}

.result-level-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.result-label-sm {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

.result-level-name {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
}

.result-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 1rem;
}

.result-message {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.8;
  text-align: left;
  font-weight: 300;
}

.end-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.end-data-footer {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.5rem; }
  .hero { padding: 3rem 1.5rem; }
  .hero-deco { display: none; }
  .teaser, .about-body, .levels-section { padding: 2rem 1.5rem; }
  .how-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .hero-cta { flex-direction: column; }
  .end-section { padding: 3rem 1.5rem; }
  .end-data-footer { gap: 1rem; }
  .footer { padding: 1rem 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
}