/* ═══════════════════════════════════════════════
   RESET + DESIGN TOKENS
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080808;
  --surface:   #111111;
  --surface-2: #1a1a1a;
  --border:    rgba(255,255,255,0.07);
  --text:      #F5F0E8;
  --muted:     #888;
  --gold:      #C9A84C;
  --accent:    #C9A84C;   /* kept for JS compat */
  --red:       #e63946;
  --green:     #06d6a0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Noise overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9000;
  opacity: 0.45;
}

/* ═══════════════════════════════════════════════
   SITE NAV
═══════════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 26px 0;
  transition: background 0.35s, backdrop-filter 0.35s, padding 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(8,8,8,0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 16px 0;
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 26px;
  letter-spacing: 0.2em;
  color: var(--text);
  text-decoration: none;
  text-shadow: 0 0 40px rgba(201,168,76,.3);
  flex-shrink: 0;
}
.nav-logo em { color: var(--gold); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  font-size: 13px; font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 3px; left: 14px; right: 14px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); }

.nav-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 500;
  padding: 9px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: none;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  margin-left: 4px;
}
.nav-btn:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.05); }
.nav-btn--cta {
  background: var(--gold);
  border-color: var(--gold);
  color: #000; font-weight: 700;
}
.nav-btn--cta:hover { filter: brightness(1.1); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  margin-left: auto; flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 130px 40px 80px;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-glow {
  position: absolute;
  top: 8%; left: 42%;
  width: 900px; height: 700px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.09) 0%, transparent 60%);
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  bottom: 0; right: 5%;
  width: 600px; height: 500px;
  background: radial-gradient(ellipse, rgba(6,214,160,0.025) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: center;
  position: relative;
}

/* ── Hero Text (left) ── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 28px;
  opacity: 0;
  animation: heroFadeUp 0.7s ease forwards 0.1s;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold);
  opacity: 0.3;
}
.hero-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(76px, 9vw, 102px);
  line-height: 0.88;
  letter-spacing: 0.025em;
  color: var(--text);
  text-shadow: 0 0 120px rgba(201,168,76,.08);
  margin-bottom: 8px;
  opacity: 0;
  animation: heroFadeUp 0.7s ease forwards 0.25s;
}
.hero-title-gold {
  display: block;
  color: var(--gold);
  font-size: clamp(88px, 10.5vw, 118px);
  letter-spacing: 0.035em;
}
.hero-subtitle {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(19px, 2.2vw, 23px);
  font-style: italic;
  color: rgba(201,168,76,0.6);
  line-height: 1.6;
  margin-bottom: 42px;
  max-width: 420px;
  opacity: 0;
  animation: heroFadeUp 0.7s ease forwards 0.4s;
}
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  opacity: 0;
  animation: heroFadeUp 0.7s ease forwards 0.55s;
}
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 16px 38px;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s;
  border: none;
  white-space: nowrap;
}
.hero-btn--primary {
  background: var(--gold); color: #000;
  box-shadow: 0 4px 28px rgba(201,168,76,.22);
  letter-spacing: 0.02em;
}
.hero-btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 44px rgba(201,168,76,.32);
}
.hero-btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
  font-weight: 500; font-size: 14px;
  padding: 16px 28px;
}
.hero-btn--ghost:hover {
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.03);
  transform: translateY(-2px);
}

/* ── Social Proof ── */
.social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: heroFadeUp 0.7s ease forwards 0.7s;
}
.proof-avatars { display: flex; }
.proof-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  background: var(--av, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px; font-weight: 600;
  color: rgba(255,255,255,0.6);
}
.proof-avatar:first-child { margin-left: 0; }
.proof-text {
  font-size: 12px;
  color: #555;
  line-height: 1.5;
}
.proof-text strong { color: #999; font-weight: 500; }

/* ── Hero Visual (right side) ── */
.hero-visual {
  position: relative;
  height: 540px;
  opacity: 0;
  animation: heroFadeUp 0.8s ease forwards 0.5s;
}

/* Poster fan stack */
.poster-fan {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-38%, -50%);
  width: 280px; height: 360px;
  z-index: 3;
}
.pf-card {
  position: absolute;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}
.pf-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.pf-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.55) 100%);
}
.pf-1 { width: 125px; height: 185px; top: 55px; left: -55px; transform: rotate(-10deg) scale(0.82); opacity: 0.4; z-index: 1; }
.pf-2 { width: 135px; height: 200px; top: 30px; left: 5px;   transform: rotate(-4.5deg) scale(0.91); opacity: 0.68; z-index: 2; }
.pf-3 { width: 158px; height: 232px; top: 8px;  left: 60px;  transform: rotate(1.5deg); z-index: 4; box-shadow: 0 24px 64px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.12); }
.pf-4 { width: 135px; height: 200px; top: 30px; left: 150px; transform: rotate(6deg) scale(0.91); opacity: 0.68; z-index: 2; }
.pf-5 { width: 125px; height: 185px; top: 55px; left: 200px; transform: rotate(11deg) scale(0.82); opacity: 0.4; z-index: 1; }

/* Floating score cards */
.float-card {
  position: absolute;
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 20px 52px rgba(0,0,0,0.55);
  z-index: 6;
}
.float-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: 14px 14px 0 0;
}
.fc-movie {
  font-family: 'Bebas Neue', cursive;
  font-size: 15px; letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.fc-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px; font-style: italic;
  color: var(--muted); line-height: 1.4; margin-bottom: 14px;
}
.fc-score {
  font-family: 'Bebas Neue', cursive;
  font-size: 42px; line-height: 1;
}
.fc-score sup { font-size: 18px; opacity: 0.6; }
.fc-label {
  font-size: 8px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--muted); margin-top: 2px;
}

.fc-1 {
  top: 15px; right: 30px; width: 180px;
  animation: heroFloat1 4.5s ease-in-out infinite;
}
.fc-1::before { background: var(--green); }
.fc-1 .fc-movie { color: var(--green); }
.fc-1 .fc-score { color: var(--green); }

.fc-2 {
  bottom: 75px; right: -5px; width: 192px;
  animation: heroFloat2 5.5s ease-in-out infinite 0.5s;
}
.fc-2::before { background: var(--gold); }
.fc-2 .fc-movie { color: var(--gold); }
.fc-2 .fc-score { color: var(--gold); }

.fc-3 {
  top: 200px; left: -25px; width: 170px;
  animation: heroFloat3 4s ease-in-out infinite 1s;
}
.fc-3::before { background: #ffd166; }
.fc-3 .fc-movie { color: #ffd166; }
.fc-3 .fc-score { color: #ffd166; }

@keyframes heroFloat1 { 0%,100%{transform:translateY(0) rotate(-1.5deg)}   50%{transform:translateY(-14px) rotate(0.5deg)} }
@keyframes heroFloat2 { 0%,100%{transform:translateY(0) rotate(0.5deg)}    50%{transform:translateY(-18px) rotate(-1deg)} }
@keyframes heroFloat3 { 0%,100%{transform:translateY(0) rotate(1.5deg)}    50%{transform:translateY(-10px) rotate(-0.5deg)} }
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════
   STATS BAR
═══════════════════════════════════════════════ */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 30px 32px;
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.stat-item {
  display: flex; flex-direction: column;
  align-items: center; padding: 0 56px;
}
.stat-val {
  font-family: 'Bebas Neue', cursive;
  font-size: 38px; letter-spacing: 0.07em;
  color: var(--gold); line-height: 1;
}
.stat-lbl {
  font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted); margin-top: 5px;
}
.stat-sep { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

/* ═══════════════════════════════════════════════
   SECTION SHARED
═══════════════════════════════════════════════ */
.section-wrap { max-width: 100%; padding: 0 48px; }

.section-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.44em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.section-heading {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(46px, 6vw, 80px);
  letter-spacing: 0.05em;
  color: var(--text); margin-bottom: 56px; line-height: 1;
}

/* Fade-up scroll animation */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════ */
.hiw-section { padding: 120px 0; }

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hiw-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid transparent;
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  transition: border-top-color 0.3s, transform 0.3s;
  overflow: hidden;
}
.hiw-card:hover { border-top-color: var(--gold); transform: translateY(-4px); }

.hiw-num {
  position: absolute;
  top: 20px; right: 24px;
  font-family: 'Bebas Neue', cursive;
  font-size: 86px; line-height: 1;
  color: rgba(255,255,255,0.025);
  letter-spacing: 0.05em;
  user-select: none; pointer-events: none;
}
.hiw-icon {
  width: 52px; height: 52px;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); margin-bottom: 22px;
}
.hiw-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 24px; letter-spacing: 0.08em;
  color: var(--text); margin-bottom: 12px;
}
.hiw-desc { font-size: 14px; color: var(--muted); line-height: 1.65; }

/* ═══════════════════════════════════════════════
   LEVELS
═══════════════════════════════════════════════ */
.levels-section { padding: 120px 0; background: var(--surface); }

.lvl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.lvl-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
}
.lvl-card:hover { transform: translateY(-4px); }

.lvl-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}
.lvl-beginner     .lvl-top-bar { background: var(--green); }
.lvl-intermediate .lvl-top-bar { background: var(--gold); }
.lvl-advanced     .lvl-top-bar { background: #f4a261; }
.lvl-native       .lvl-top-bar { background: var(--red); }

.lvl-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 100px; border: 1px solid currentColor;
  display: inline-block; margin-bottom: 14px;
}
.lvl-beginner     .lvl-badge { color: var(--green); border-color: rgba(6,214,160,.3);   background: rgba(6,214,160,.08); }
.lvl-intermediate .lvl-badge { color: var(--gold);  border-color: rgba(201,168,76,.3);  background: rgba(201,168,76,.08); }
.lvl-advanced     .lvl-badge { color: #f4a261;      border-color: rgba(244,162,97,.3);  background: rgba(244,162,97,.08); }
.lvl-native       .lvl-badge { color: var(--red);   border-color: rgba(230,57,70,.3);   background: rgba(230,57,70,.08); }

.lvl-name {
  font-family: 'Bebas Neue', cursive;
  font-size: 32px; letter-spacing: 0.08em;
  color: var(--text); margin-bottom: 10px;
}
.lvl-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }

.lvl-scenes { list-style: none; padding: 0; margin-bottom: 16px; }
.lvl-scenes li {
  font-size: 12px; color: var(--text); padding: 5px 0;
  border-bottom: 1px solid var(--border);
}
.lvl-scenes li:last-child { border-bottom: none; }

.lvl-lock {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--muted); margin-top: 8px;
}

/* ═══════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════ */
.pricing-section { padding: 120px 0; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 36px;
  position: relative;
}
.pricing-card--pro {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201,168,76,.25), 0 32px 80px rgba(201,168,76,.07);
}
.pricing-popular {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold); color: #000;
  font-size: 9px; font-weight: 800; letter-spacing: 0.22em;
  padding: 5px 18px; border-radius: 100px;
  white-space: nowrap;
}
.pricing-tier {
  font-family: 'Bebas Neue', cursive;
  font-size: 18px; letter-spacing: 0.14em;
  color: var(--muted); margin-bottom: 10px;
}
.pricing-price {
  font-family: 'Bebas Neue', cursive;
  font-size: 66px; line-height: 1;
  color: var(--text); margin-bottom: 16px; letter-spacing: 0.02em;
}
.pricing-price span { font-size: 18px; color: var(--muted); }
.pricing-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 28px; }

.pricing-features { list-style: none; padding: 0; margin-bottom: 36px; }
.pricing-features li {
  font-size: 13px; color: var(--text);
  padding: 9px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '→'; color: var(--gold); font-weight: 700; flex-shrink: 0; }

.pricing-btn {
  width: 100%; padding: 14px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text);
  cursor: pointer; transition: all 0.2s;
}
.pricing-btn:hover { border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.pricing-btn--gold {
  background: var(--gold); border-color: var(--gold); color: #000;
}
.pricing-btn--gold:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 10px 34px rgba(201,168,76,.3);
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
}
.footer-logo { font-family: 'Bebas Neue', cursive; font-size: 22px; letter-spacing: 0.2em; color: var(--text); }
.footer-logo em { color: var(--gold); font-style: normal; }
.footer-copy { font-size: 12px; color: var(--muted); }

/* ═══════════════════════════════════════════════
   AUTH MODAL (overlays landing page)
═══════════════════════════════════════════════ */
.auth-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 8500;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.auth-modal-overlay.open { opacity: 1; pointer-events: all; }

.auth-modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%; max-width: 420px;
  position: relative;
  transform: translateY(22px) scale(.98);
  transition: transform 0.3s;
}
.auth-modal-overlay.open .auth-modal-box { transform: translateY(0) scale(1); }

.auth-modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none;
  color: var(--muted); font-size: 26px; line-height: 1;
  cursor: pointer; transition: color 0.2s; padding: 2px 6px;
}
.auth-modal-close:hover { color: var(--text); }

.auth-modal-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 50px; letter-spacing: 0.22em; line-height: 1;
  color: var(--text); text-shadow: 0 0 50px rgba(201,168,76,.2);
  margin-bottom: 4px;
}
.auth-modal-logo em { color: var(--gold); font-style: normal; }
.auth-modal-tagline {
  font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 32px;
}

/* ─── AUTH FORMS ─── */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}
.shake { animation: shake .35s ease; }

.auth-tabs {
  display: flex; gap: 4px;
  background: var(--surface-2); border-radius: 10px;
  padding: 4px; margin-bottom: 24px;
}
.auth-tab-btn {
  flex: 1; padding: 9px; border: none; border-radius: 7px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  background: none; color: var(--muted); transition: all .2s;
  font-family: 'DM Sans', sans-serif;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.auth-tab-btn.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.4); }

.auth-form { display: grid; gap: 12px; }
.auth-form.hidden { display: none; }

.auth-input {
  width: 100%; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; font-size: 14px; color: var(--text);
  font-family: 'DM Sans', sans-serif; outline: none; transition: border-color .2s;
}
.auth-input::placeholder { color: var(--muted); }
.auth-input:focus { border-color: rgba(255,255,255,.22); }

.auth-error { font-size: 12px; color: var(--red); min-height: 18px; padding-top: 2px; }

.auth-submit {
  width: 100%; padding: 13px;
  background: var(--gold); color: #000;
  font-size: 14px; font-weight: 700; border: none;
  border-radius: 8px; cursor: pointer;
  transition: filter .2s, opacity .2s;
  letter-spacing: .05em; font-family: 'DM Sans', sans-serif; margin-top: 4px;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; min-height: 44px;
}
.auth-submit:hover { filter: brightness(1.12); }
.auth-submit:disabled { opacity: .45; pointer-events: none; }

/* ═══════════════════════════════════════════════
   APP SCREEN — HEADER
═══════════════════════════════════════════════ */
header {
  text-align: center;
  padding: 72px 20px 52px;
  position: relative;
}
.logo {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(68px, 14vw, 136px);
  letter-spacing: 0.22em; line-height: 1; color: var(--text);
  text-shadow: 0 0 100px rgba(201,168,76,.25);
}
.logo em { color: var(--gold); font-style: normal; }
.tagline {
  margin-top: 14px; font-size: 12px; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--muted);
}
.user-chip {
  position: absolute; top: 24px; right: 24px;
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 14px 7px 10px;
}
.user-chip svg { color: var(--muted); flex-shrink: 0; }
.user-chip-name { font-size: 13px; font-weight: 500; }
.btn-logout {
  font-size: 11px; color: var(--muted);
  background: none; border: none;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: color .2s; padding: 0; margin-left: 4px;
}
.btn-logout:hover { color: var(--red); }

/* ─── LAYOUT ─── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px 80px; }
.section-label {
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 24px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ─── SCENE CARDS ─── */
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px; margin-bottom: 40px;
}
.level-group { margin-bottom: 56px; }
.level-group-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.level-group-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 22px; letter-spacing: .12em;
  text-transform: uppercase;
}
.level-group-title.beginner     { color: var(--green); }
.level-group-title.intermediate { color: var(--gold);  }
.level-group-title.advanced     { color: #e63946;      }
.level-group-lock {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: var(--border);
  padding: 3px 10px; border-radius: 100px;
}
.scene-card {
  --c: var(--gold);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.scene-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, var(--c) 0%, transparent 65%);
  opacity: .05; transition: opacity .28s;
}
.scene-card:not(.locked):hover {
  transform: translateY(-5px); border-color: var(--c);
  box-shadow: 0 24px 64px rgba(0,0,0,.55), 0 0 0 1px var(--c);
}
.scene-card:not(.locked):hover::before { opacity: .13; }

.card-top   { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.movie-year { font-size: 11px; color: var(--muted); }

.badge {
  font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 100px; border: 1px solid currentColor;
}
.badge.beginner     { color: var(--green); background: rgba(6,214,160,.08);   border-color: rgba(6,214,160,.3); }
.badge.intermediate { color: var(--gold);  background: rgba(201,168,76,.08);  border-color: rgba(201,168,76,.3); }
.badge.advanced     { color: var(--red);   background: rgba(230,57,70,.08);   border-color: rgba(230,57,70,.3); }
.badge.mature       { color: #ff6b35;      background: rgba(255,107,53,.08);  border-color: rgba(255,107,53,.3); }

.card-movie { font-family: 'Bebas Neue', cursive; font-size: 30px; letter-spacing: .1em; color: var(--c); margin-bottom: 12px; line-height: 1.1; }
.card-quote { font-family: 'Cormorant Garamond', serif; font-size: 16px; font-style: italic; color: var(--text); line-height: 1.55; margin-bottom: 22px; }
.card-foot  { display: flex; justify-content: space-between; align-items: center; }
.card-actor { font-size: 12px; color: var(--muted); }
.card-cta   { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--c); letter-spacing: .04em; }

/* ─── MODAL ─── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(10px);
  z-index: 99999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  padding-bottom: 80px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.overlay.open { opacity: 1; pointer-events: all; }

.modal {
  --mc: var(--gold);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; width: 100%; max-width: 700px;
  max-height: 92vh; overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  transform: translateY(22px) scale(.98); transition: transform .3s;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.overlay.open .modal { transform: translateY(0) scale(1); }

.modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 26px 28px 0; }
.modal-year  { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.modal-title { font-family: 'Bebas Neue', cursive; font-size: 34px; letter-spacing: .1em; color: var(--mc); }

.btn-close {
  background: none; border: none; color: var(--muted);
  font-size: 26px; line-height: 1; cursor: pointer; padding: 2px 6px;
  transition: color .2s; flex-shrink: 0;
}
.btn-close:hover { color: var(--text); }

.video-wrap {
  margin: 20px 28px; border-radius: 10px; overflow: hidden;
  aspect-ratio: 16/9; background: #000; position: relative;
}
/* YT IFrame API creates an <iframe> inside #videoFrame div */
#videoFrame { width: 100%; height: 100%; }
.video-wrap iframe { width: 100%; height: 100%; border: none; }
/* Replay Line button — appears below the video after auto-pause */
.replay-line-wrap {
  margin: -8px 28px 10px; display: flex; justify-content: center;
}
.btn-replay-line {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px; border-radius: 8px;
  background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.4);
  color: var(--gold); font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .2s, border-color .2s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn-replay-line:hover { background: rgba(201,168,76,.22); border-color: var(--gold); }
.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--muted); font-size: 13px;
}
.video-placeholder svg { opacity: .35; }

.target-quote {
  margin: 0 28px 22px; padding: 14px 18px;
  background: var(--surface-2);
  border-left: 3px solid var(--mc); border-radius: 0 10px 10px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-style: italic; line-height: 1.55;
}
.target-quote small {
  display: block; font-style: normal; font-size: 9px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}

/* ─── RECORDING ─── */
.rec-section { padding: 0 28px 28px; }
.rec-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px; border-radius: 8px; font-size: 13px; font-weight: 500;
  cursor: pointer; border: none; transition: all .2s;
  letter-spacing: .03em; white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn:disabled { opacity: .3; pointer-events: none; }
.btn-record   { background: var(--red); color: #fff; }
.btn-record:hover { background: #f55; }
.btn-stop     { background: #1e1e28; color: var(--text); }
.btn-stop:hover { background: #2a2a38; }
.btn-playback { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-playback:hover { background: #222; }
.btn-analyze  { background: var(--mc); color: #000; font-weight: 700; margin-left: auto; }
.btn-analyze:hover { filter: brightness(1.18); }

.rec-indicator { display: none; align-items: center; gap: 8px; font-size: 12px; color: var(--red); }
.rec-indicator.on { display: flex; }
.rec-dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.3;transform:scale(.8)} }

.spinner {
  display: none; width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,.25); border-top-color: #000;
  border-radius: 50%; animation: spin .65s linear infinite;
}
.spinner.on { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── SCORE PANEL ─── */
.score-panel { display: none; margin-top: 22px; padding: 24px; background: var(--surface-2); border-radius: 14px; }
.score-panel.on { display: block; }
.score-top  { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.score-lbl  { font-size: 9px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.score-num  { font-family: 'Bebas Neue', cursive; font-size: 62px; line-height: 1; color: var(--score-color, var(--gold)); }
.score-num sup { font-size: 28px; opacity: .7; }
.score-msg  { font-size: 14px; font-weight: 600; color: var(--score-color, var(--gold)); text-align: right; }
.score-bar-track { height: 5px; background: var(--border); border-radius: 100px; overflow: hidden; margin-bottom: 22px; }
.score-bar-fill  { height: 100%; width: 0; border-radius: 100px; background: var(--score-color, var(--gold)); transition: width 1.1s cubic-bezier(.22,1,.36,1); }

.compare     { display: grid; gap: 12px; }
.compare-row { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: start; }
.compare-lbl { font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.compare-val { font-size: 14px; line-height: 1.55; }
.compare-val.dim { color: var(--muted); font-style: italic; }

/* ─── WAVEFORM ─── */
.waveform-wrap {
  display: none;
  align-items: flex-end; justify-content: center;
  gap: 3px; height: 56px; margin: 14px 0 0;
  padding: 4px 0;
}
.waveform-wrap.on { display: flex; }
.waveform-bar {
  width: 4px; border-radius: 3px;
  background: var(--gold);
  height: 3px;
  flex-shrink: 0;
}
/* Animation only plays when recording (.on class is present on the wrap).
   Each bar gets a randomised --wh (max height), duration, and delay via JS. */
@keyframes wave-dance {
  0%, 100% { height: 3px; opacity: 0.5; }
  50%       { height: var(--wh, 20px); opacity: 1; }
}
.waveform-wrap.on .waveform-bar {
  animation: wave-dance var(--wd, 0.8s) ease-in-out var(--wdl, 0s) infinite;
}

/* ─── PHONEME BREAKDOWN ─── */
.phon-section { margin-bottom: 18px; }
.phon-label {
  font-size: 9px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.phon-words { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
/* Flip card outer — perspective container, min-width keeps layout stable */
.phon-word {
  position: relative;
  display: inline-block;
  perspective: 500px;
  min-width: 44px;
}
/* Rotating inner — both faces ride on this */
.phon-inner {
  position: relative;
  display: block;
  transform-style: preserve-3d;
  transition: transform 0.25s ease;
}
.phon-word.flipped .phon-inner { transform: rotateY(180deg); }
/* Shared face styles */
.phon-face {
  display: block;
  padding: 5px 11px; border-radius: 7px; border: 1px solid transparent;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-style: italic; line-height: 1;
  text-align: center; white-space: nowrap;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
/* Back face — absolutely overlaid, pre-rotated 180deg */
.phon-back {
  position: absolute; inset: 0;
  transform: rotateY(180deg);
  color: var(--gold); background: rgba(201,168,76,.12); border-color: rgba(201,168,76,.35);
  font-style: normal; display: flex; align-items: center; justify-content: center; gap: 3px;
}
/* Color coding stays on the front face only */
.phon-word.good  .phon-front { color: #06d6a0; background: rgba(6,214,160,.1);  border-color: rgba(6,214,160,.28); }
.phon-word.close .phon-front { color: #ffd166; background: rgba(255,209,102,.1); border-color: rgba(255,209,102,.28); }
.phon-word.miss  .phon-front { color: #e63946; background: rgba(230,57,70,.1);   border-color: rgba(230,57,70,.28); }
.phon-legend { display: flex; gap: 14px; }
.phon-legend-item { display: flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); }
.phon-legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.phon-legend-dot.good  { background: #06d6a0; }
.phon-legend-dot.close { background: #ffd166; }
.phon-legend-dot.miss  { background: #e63946; }

/* ─── LEADERBOARD ─── */
.lb-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.lb-tab {
  padding: 8px 18px; border-radius: 100px; font-size: 12px; font-weight: 500;
  cursor: pointer; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); transition: all .2s; white-space: nowrap;
  font-family: 'DM Sans', sans-serif;
}
.lb-tab:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.lb-tab.active { background: var(--tab-color, var(--gold)); border-color: var(--tab-color, var(--gold)); color: #000; font-weight: 700; }
.lb-panel        { display: none; }
.lb-panel.active { display: block; }

.lb-table { width: 100%; border-collapse: collapse; }
.lb-table th {
  font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.lb-table td { padding: 14px 14px; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.lb-table tr:hover td { background: var(--surface-2); }

.chip { display: inline-block; padding: 3px 11px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.rank-num        { font-family: 'Bebas Neue', cursive; font-size: 20px; text-align: center; color: var(--muted); }
.rank-num.gold   { color: #ffd700; }
.rank-num.silver { color: #b8b8b8; }
.rank-num.bronze { color: #cd7f32; }

/* ─── ONBOARDING ─── */
@keyframes onb-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.onboard-screen {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at 50% 15%, rgba(201,168,76,.07) 0%, transparent 55%), var(--bg);
  z-index: 8000; display: none; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; transition: opacity .55s ease;
}
.onboard-screen.visible { opacity: 1; }
.onboard-screen.out     { opacity: 0; pointer-events: none; }
.onboard-inner { max-width: 740px; width: 100%; text-align: center; }
.onboard-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(64px, 14vw, 118px); letter-spacing: 0.22em; line-height: 1;
  color: var(--text); text-shadow: 0 0 100px rgba(201,168,76,.28);
  animation: onb-rise .7s ease both;
}
.onboard-logo em { color: var(--gold); font-style: normal; }
.onboard-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(14px, 2vw, 17px); font-style: italic;
  color: var(--muted); line-height: 1.7; margin: 18px auto 52px; max-width: 500px;
  animation: onb-rise .7s .18s ease both;
}
.onboard-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-bottom: 44px; }
.onboard-step {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 22px 24px; text-align: center;
  opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s ease;
}
.onboard-step.in { opacity: 1; transform: translateY(0); }
.step-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.step-icon.watch  { background: rgba(72,149,239,.1);  color: #4895ef; border: 1px solid rgba(72,149,239,.22); }
.step-icon.record { background: rgba(230,57,70,.1);   color: var(--red); border: 1px solid rgba(230,57,70,.22); }
.step-icon.unlock { background: rgba(201,168,76,.1);  color: var(--gold); border: 1px solid rgba(201,168,76,.22); }
.step-num   { font-size: 9px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.step-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.step-desc  { font-size: 12px; color: var(--muted); line-height: 1.6; }
.onboard-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: #000;
  font-size: 15px; font-weight: 700; letter-spacing: .06em;
  padding: 15px 44px; border: none; border-radius: 10px;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: filter .2s, transform .2s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  animation: onb-rise .5s .6s ease both;
}
.onboard-cta:hover { filter: brightness(1.14); transform: translateY(-2px); }

/* ─── LEVEL BAR ─── */
.level-bar {
  display: flex; align-items: center; gap: 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 24px; margin-bottom: 32px;
}
.level-col { flex-shrink: 0; text-align: center; padding-right: 20px; border-right: 1px solid var(--border); }
.level-lbl { font-size: 9px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.level-num { font-family: 'Bebas Neue', cursive; font-size: 52px; line-height: 1; color: var(--gold); }
.level-details { flex: 1; }
.level-next-text { font-size: 12px; color: var(--muted); margin-bottom: 10px; line-height: 1.55; }
.level-next-text strong { color: var(--text); }
.level-track { height: 4px; background: var(--border); border-radius: 100px; overflow: hidden; margin-bottom: 7px; }
.level-fill  { height: 100%; width: 0; background: var(--gold); border-radius: 100px; transition: width 1s cubic-bezier(.22,1,.36,1); }
.level-score-text { font-size: 11px; color: var(--muted); }
.level-score-text strong { color: var(--text); }
.level-maxed { font-size: 13px; color: var(--green); font-weight: 500; }

/* ─── LOCKED CARDS ─── */
.scene-card.locked { cursor: default; opacity: 0.52; }
.scene-card.locked:hover { transform: none; border-color: var(--border); box-shadow: none; }
.scene-card.locked::before { opacity: 0 !important; }
.lock-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  background: rgba(8,8,8,.74); backdrop-filter: blur(2px);
  border-radius: 14px; z-index: 10; color: var(--muted);
}
.lock-overlay span { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }

/* ─── LEVEL-UP TOAST ─── */
.level-up-toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(24px);
  background: var(--surface); border: 1px solid var(--gold);
  border-radius: 14px; padding: 18px 36px;
  text-align: center; z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity .35s, transform .35s;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px var(--gold);
}
.level-up-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.level-up-title { font-family: 'Bebas Neue', cursive; font-size: 30px; letter-spacing: .1em; color: var(--gold); }
.level-up-sub   { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .lvl-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 400px; }
  .poster-fan { transform: translate(-50%, -50%); }
  .hiw-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }

  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(80vw, 320px);
    background: rgba(8,8,8,.97);
    backdrop-filter: blur(24px);
    flex-direction: column; align-items: flex-start;
    padding: 100px 32px 40px; gap: 6px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    border-left: 1px solid var(--border);
    z-index: 999;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 18px; padding: 12px 0; }
  .nav-btn { width: 100%; text-align: center; justify-content: center; margin-left: 0; }

  .stats-inner { flex-wrap: wrap; gap: 24px; }
  .stat-item { padding: 0 20px; }
  .stat-sep { display: none; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 580px) {
  /* iOS font-size zoom fix */
  .auth-input { font-size: 16px; }

  .auth-modal-box { padding: 32px 20px; }
  .hero { padding: 100px 20px 60px; }
  .hero-title { font-size: clamp(56px, 14vw, 76px); }
  .hero-visual { height: 340px; }
  .poster-fan { width: 220px; }
  .pf-3 { width: 120px; height: 180px; }
  .float-card { display: none; }
  .hero-btns { flex-direction: column; gap: 10px; }
  .hero-btn--primary, .hero-btn--ghost { width: 100%; justify-content: center; }
  .section-wrap { padding: 0 20px; }
  .hiw-section, .levels-section, .pricing-section { padding: 80px 0; }
  .lvl-grid { grid-template-columns: 1fr; }
  .stat-item { padding: 0 14px; }

  /* Modal — bottom sheet */
  .overlay { align-items: flex-end; padding: 0; padding-bottom: 80px; }
  .modal { border-radius: 20px 20px 0 0; max-height: 94vh; transform: translateY(40px); }
  .overlay.open .modal { transform: translateY(0); }
  .modal::before {
    content: ''; display: block; width: 36px; height: 4px;
    background: rgba(255,255,255,.13); border-radius: 100px;
    margin: 14px auto 2px; flex-shrink: 0;
  }
  .modal-head { padding: 14px 20px 0; }
  .modal-title { font-size: 26px; }
  .video-wrap { margin: 12px 20px; }
  .target-quote { margin: 0 20px 14px; font-size: 15px; padding: 12px 14px; }
  .rec-section { padding: 0 20px 28px; }
  .rec-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .rec-controls .btn { width: 100%; justify-content: center; min-height: 44px; }
  .rec-indicator { grid-column: 1 / -1; justify-content: center; padding: 2px 0; }
  .btn-analyze { margin-left: 0; }
  .score-panel { padding: 18px; margin-top: 16px; }
  .score-top { flex-direction: column; gap: 6px; align-items: flex-start; margin-bottom: 12px; }
  .score-msg { text-align: left; }
  .score-num { font-size: 52px; }
  .compare-row { grid-template-columns: 54px 1fr; gap: 8px; }
  .compare-val { font-size: 13px; }
  .lb-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-bottom: 16px; }
  .lb-tabs::-webkit-scrollbar { display: none; }
  .lb-tab { font-size: 11px; padding: 7px 14px; white-space: nowrap; }
  .lb-table th:last-child, .lb-table td:last-child { display: none; }
  .lb-table td { padding: 11px 9px; font-size: 12px; }
  .lb-table th { padding: 9px 9px; font-size: 8px; }
  .rank-num { font-size: 17px; }
  .chip { font-size: 11px; padding: 3px 9px; }
  .level-bar { padding: 14px 16px; gap: 12px; margin-bottom: 20px; }
  .level-col { padding-right: 12px; }
  .level-num { font-size: 38px; }
  .level-next-text { font-size: 11px; }
  .level-up-toast { padding: 14px 24px; bottom: 20px; width: calc(100% - 32px); }
  header { padding: 18px 16px 26px; }
  .user-chip { top: 16px; right: 16px; padding: 6px 10px 6px 8px; gap: 5px; }
  .user-chip-name { font-size: 12px; max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .container { padding: 0 16px 60px; }
  .scenes-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 48px; }
  .scene-card { padding: 20px; }
  .card-movie { font-size: 24px; }
  .card-quote { font-size: 14px; margin-bottom: 16px; }
  .onboard-tagline { margin-bottom: 36px; }
  .onboard-steps { grid-template-columns: 1fr; gap: 10px; margin-bottom: 32px; }
  .onboard-step { display: flex; align-items: center; gap: 16px; padding: 16px 18px; text-align: left; }
  .step-icon { flex-shrink: 0; margin: 0; width: 44px; height: 44px; }
  .onboard-cta { width: 100%; justify-content: center; padding: 15px; }
}

/* ═══════════════════════════════════════════════
   PROGRESS DASHBOARD
═══════════════════════════════════════════════ */
.progress-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 8000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.progress-overlay.open { opacity: 1; pointer-events: all; }

.progress-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%; max-width: 680px;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(22px) scale(.98);
  transition: transform 0.3s;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.progress-overlay.open .progress-modal { transform: translateY(0) scale(1); }

.progress-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 32px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--surface); z-index: 10;
  border-radius: 20px 20px 0 0;
}
.progress-modal-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 28px; letter-spacing: 0.12em; color: var(--text);
}
.progress-modal-title em { color: var(--gold); font-style: normal; }
.progress-modal-body { padding: 28px 32px 32px; }

.prog-stats-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px; margin-bottom: 32px;
  align-items: center;
}
.prog-circle-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.prog-circle-wrap svg { display: block; }
.prog-circle-lbl {
  font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted); text-align: center;
}

.prog-stat-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.prog-stat-card {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
}
.prog-stat-val {
  font-family: 'Bebas Neue', cursive;
  font-size: 36px; line-height: 1; letter-spacing: 0.04em;
  color: var(--gold); margin-bottom: 4px;
}
.prog-stat-val.green { color: var(--green); }
.prog-stat-val.red   { color: var(--red); }
.prog-stat-lbl { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.history-section-label {
  font-size: 9px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 10px;
  border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.history-list { display: flex; flex-direction: column; gap: 6px; }
.history-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px;
  transition: border-color 0.2s;
}
.history-item.improved { border-color: rgba(6,214,160,.3); }
.history-movie {
  flex: 1; font-size: 13px; font-weight: 500; color: var(--text);
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.history-date { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.history-score { font-family: 'Bebas Neue', cursive; font-size: 20px; line-height: 1; flex-shrink: 0; }
.history-improved-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green); background: rgba(6,214,160,.1); border: 1px solid rgba(6,214,160,.25);
  border-radius: 100px; padding: 3px 9px; flex-shrink: 0;
}
.history-empty { text-align: center; color: var(--muted); padding: 36px 0; font-size: 13px; font-style: italic; }

/* My Progress button in app header */
.btn-my-progress {
  position: absolute; top: 24px; left: 24px;
  display: flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 14px 7px 12px;
  font-size: 12px; font-weight: 500; color: var(--text);
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
.btn-my-progress:hover { border-color: var(--gold); color: var(--gold); }
.btn-my-progress svg { color: var(--gold); flex-shrink: 0; }

/* Playback compare in score panel */
.pb-compare { display: none; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.pb-compare.on { display: block; }
.pb-lbl { font-size: 9px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.pb-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-hear {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 8px;
  font-size: 12px; font-weight: 500; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); transition: all .2s;
  font-family: 'DM Sans', sans-serif;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn-hear:hover { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.05); }
.btn-hear:disabled { opacity: .3; pointer-events: none; }
.btn-hear-actor { border-color: rgba(201,168,76,.3); color: var(--gold); }
.btn-hear-actor:hover { border-color: var(--gold); background: rgba(201,168,76,.08); }
.btn-hear-self  { border-color: rgba(72,149,239,.3); color: #4895ef; }
.btn-hear-self:hover  { border-color: #4895ef; background: rgba(72,149,239,.08); }

@media (max-width: 580px) {
  .btn-my-progress { top: 16px; left: 16px; padding: 6px 10px 6px 8px; font-size: 11px; }
  .progress-modal-head { padding: 20px 20px 16px; }
  .progress-modal-body { padding: 20px; }
  .prog-stats-row { grid-template-columns: 1fr; }
  .prog-circle-wrap { flex-direction: row; gap: 20px; align-items: center; }
  .prog-stat-cards { grid-template-columns: 1fr 1fr; }
  .history-item { padding: 10px 12px; }
  .history-movie { font-size: 12px; }
  .pb-btns { flex-direction: column; }
  .btn-hear { justify-content: center; }
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  @media (max-width: 580px) {
    .modal { padding-bottom: env(safe-area-inset-bottom); }
    .auth-modal-box { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
    .auth-screen { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  }
}

/* ─── GAMIFICATION ─── */
.div-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; margin-left: 2px;
}
@keyframes pts-pop {
  from { opacity: 0; transform: scale(.88) translateY(6px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}
.perfect-badge {
  display: none; margin-top: 10px; padding: 9px 14px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(201,168,76,.15), rgba(201,168,76,.06));
  border: 1px solid rgba(201,168,76,.4);
  text-align: center; font-size: 13px; color: var(--gold); font-weight: 600;
  animation: pts-pop .45s .1s cubic-bezier(0.34,1.56,0.64,1) both;
}
.perfect-badge.on { display: block; }
.pts-earned {
  display: none; margin-top: 12px; padding: 13px 16px; border-radius: 10px;
  border: 1px solid rgba(201,168,76,.3); background: rgba(201,168,76,.07);
  animation: pts-pop .4s cubic-bezier(0.34,1.56,0.64,1) both;
}
.pts-earned.on { display: flex; align-items: center; gap: 12px; }
.pts-earned-left { flex: 1; }
.pts-earned-amount { font-family: 'Bebas Neue', cursive; font-size: 26px; color: var(--gold); line-height: 1; }
.pts-earned-amount span { font-size: 13px; opacity: .7; }
.pts-earned-label { font-size: 10px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }
.pts-total { font-size: 11px; color: var(--muted); text-align: right; }
.pts-total strong { display: block; font-size: 17px; color: var(--text); font-weight: 600; }
.div-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 100px;
  font-size: 10px; font-weight: 700; letter-spacing: .05em; vertical-align: middle;
}
.trans-reveal {
  display: none; margin-top: 14px; padding: 15px 16px; border-radius: 10px;
  border: 1px solid rgba(103,232,249,.3); background: rgba(103,232,249,.05);
  animation: pts-pop .4s .15s cubic-bezier(0.34,1.56,0.64,1) both;
}
.trans-reveal.on { display: block; }
.trans-reveal-label { font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: #67e8f9; margin-bottom: 8px; }
.trans-text { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-style: italic; color: var(--text); line-height: 1.5; }
.trans-earn { font-size: 11px; color: var(--muted); margin-top: 6px; }
.div-card {
  margin-bottom: 18px; padding: 16px 18px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface-2);
  display: none; align-items: center; gap: 14px;
}
.div-card.on { display: flex; }
.div-card-badge {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', cursive; font-size: 12px; letter-spacing: .1em;
  border: 2px solid currentColor;
}
.div-card-info { flex: 1; }
.div-card-name { font-family: 'Bebas Neue', cursive; font-size: 20px; letter-spacing: .08em; }
.div-card-pts { font-size: 12px; color: var(--muted); margin-top: 2px; }
.div-card-next { font-size: 11px; color: var(--muted); text-align: right; }
.div-card-next strong { display: block; font-size: 15px; color: var(--text); font-weight: 600; }

/* ─── DAILY CHALLENGE ─── */
@keyframes shimmer-sweep {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes fire-flicker {
  0%,100% { transform: scale(1.0) skewX(0deg);  filter: brightness(1); }
  20%      { transform: scale(1.12) skewX(-3deg); filter: brightness(1.2); }
  40%      { transform: scale(0.96) skewX(1deg);  filter: brightness(0.9); }
  65%      { transform: scale(1.06) skewX(2deg);  filter: brightness(1.1); }
  80%      { transform: scale(1.0) skewX(-1deg);  filter: brightness(1.05); }
}
@keyframes dot-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(251,146,60,.7); transform: scale(1); }
  50%      { box-shadow: 0 0 0 5px rgba(251,146,60,0); transform: scale(1.2); }
}
@keyframes complete-in {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}

/* Daily section wrapper — two-column on desktop, stacked on mobile */
.daily-section {
  display: none; grid-template-columns: 1fr 240px; gap: 14px; margin-bottom: 24px;
}
.daily-section.on { display: grid; }
@media (max-width: 700px) {
  .daily-section { grid-template-columns: 1fr; }
}

/* ── DC Card ── */
.dc-card {
  position: relative; overflow: hidden; border-radius: 14px;
  background: linear-gradient(160deg, rgba(201,168,76,.09) 0%, var(--surface) 55%);
  border: 1px solid rgba(201,168,76,.35);
  padding: 20px 22px 18px;
}
/* animated shimmer line across the top */
.dc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: 1;
  background: linear-gradient(90deg,
    transparent 0%, rgba(201,168,76,.3) 20%, #c9a84c 40%, #fff8dc 50%, #c9a84c 60%,
    rgba(201,168,76,.3) 80%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer-sweep 2.8s linear infinite;
}
/* radial gold glow */
.dc-glow {
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 340px; height: 180px;
  background: radial-gradient(ellipse, rgba(201,168,76,.14) 0%, transparent 70%);
  pointer-events: none;
}
.dc-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 8px; }
.dc-badge-daily {
  font-family: 'Bebas Neue', cursive; font-size: 11px; letter-spacing: .16em;
  color: #000; background: var(--gold); padding: 4px 10px; border-radius: 5px;
  white-space: nowrap;
}
.dc-badge-2x {
  font-family: 'Bebas Neue', cursive; font-size: 11px; letter-spacing: .14em;
  color: #000; background: #fb923c; padding: 4px 10px; border-radius: 5px;
  white-space: nowrap;
}
.dc-movie {
  font-family: 'Bebas Neue', cursive; font-size: clamp(24px, 5vw, 34px);
  letter-spacing: .06em; color: var(--text); line-height: 1; margin-bottom: 6px;
}
.dc-quote {
  font-family: 'Cormorant Garamond', serif; font-size: 15px; font-style: italic;
  color: rgba(245,240,232,.75); line-height: 1.5; margin-bottom: 10px;
}
.dc-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.dc-actor { font-size: 12px; color: var(--muted); }
.dc-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
}
.dc-timer { display: flex; flex-direction: column; gap: 1px; }
.dc-timer-lbl { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.dc-countdown {
  font-family: 'Bebas Neue', cursive; font-size: 22px; letter-spacing: .12em;
  color: var(--gold); line-height: 1;
}
.dc-open-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 8px;
  background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.4);
  color: var(--gold); font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .2s, border-color .2s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.dc-open-btn:hover { background: rgba(201,168,76,.25); border-color: var(--gold); }
/* Completion overlay */
.dc-complete-overlay {
  position: absolute; inset: 0; border-radius: 14px;
  background: rgba(6,214,160,.12); border: 1px solid rgba(6,214,160,.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: complete-in .4s cubic-bezier(0.34,1.56,0.64,1) both;
}
.dc-complete-check {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(6,214,160,.2); border: 2px solid #06d6a0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #06d6a0; font-weight: 700;
}
.dc-complete-title { font-family: 'Bebas Neue', cursive; font-size: 20px; letter-spacing: .1em; color: #06d6a0; }
.dc-complete-pts { font-size: 13px; color: rgba(245,240,232,.7); }

/* ── Streak Card ── */
.streak-card {
  border-radius: 14px; background: var(--surface);
  border: 1px solid var(--border); padding: 20px 18px;
  display: flex; flex-direction: column; gap: 14px;
}
.streak-top { display: flex; align-items: center; gap: 12px; }
.streak-fire-emoji { font-size: 36px; display: block; animation: fire-flicker .85s ease-in-out infinite; }
.streak-number {
  font-family: 'Bebas Neue', cursive; font-size: 52px; line-height: 1;
  color: #fb923c; letter-spacing: -.02em;
}
.streak-unit { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
/* 7-day dot row */
.streak-dots-wrap { display: flex; flex-direction: column; gap: 6px; }
.streak-dot-row { display: flex; justify-content: space-between; gap: 4px; }
.streak-dot-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.streak-dot {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border);
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-size: 11px; transition: all .2s;
}
.streak-dot.done  { background: rgba(251,146,60,.2); border-color: #fb923c; color: #fb923c; }
.streak-dot.today { background: rgba(251,146,60,.25); border-color: #fb923c; animation: dot-pulse .9s ease-in-out infinite; }
.streak-dot-lbl   { font-size: 9px; color: var(--muted); }
.streak-msg { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* Badge kept on scene card + leaderboard row */
.daily-card-badge {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  font-family: 'Bebas Neue', cursive; font-size: 9px; letter-spacing: .16em;
  color: #000; background: var(--gold); padding: 3px 8px; border-radius: 4px;
  white-space: nowrap; z-index: 2;
}
.scene-card.daily { border-color: rgba(201,168,76,.55); }
.scene-card.daily::before { opacity: .08; }
/* 2× pill in recording modal */
.daily-modal-badge {
  display: none; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 6px;
  background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.4);
  font-family: 'Bebas Neue', cursive; font-size: 13px; letter-spacing: .1em;
  color: var(--gold);
}
.daily-modal-badge.on { display: flex; }
/* Streak badge in leaderboard */
.streak-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 700; color: #fb923c;
  background: rgba(251,146,60,.12); border: 1px solid rgba(251,146,60,.3);
  padding: 2px 8px; border-radius: 100px;
}

/* ─── TRY AGAIN ─── */
.btn-try-again {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; margin-top: 16px; padding: 12px;
  border-radius: 10px; border: 1px solid var(--border);
  background: transparent; color: var(--muted);
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: color .2s, border-color .2s, background .2s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn-try-again:hover { color: var(--text); border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.04); }

/* ══════════════════════════════════════════════
   PERSONAL BEST
══════════════════════════════════════════════ */
/* PB badge on scene card */
.pb-badge-row { margin: -6px 0 10px; }
.pb-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  color: var(--gold); background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.3);
  padding: 3px 9px; border-radius: 100px;
}

/* PB banner inside score panel */
.pb-banner {
  display: none; margin-bottom: 14px; padding: 10px 16px;
  background: rgba(201,168,76,.1); border: 1px solid rgba(201,168,76,.4);
  border-radius: 10px; color: var(--gold);
  font-family: 'Bebas Neue', cursive; font-size: 20px; letter-spacing: .08em;
  text-align: center;
}
.pb-banner.on { display: block; animation: pb-in .45s cubic-bezier(.175,.885,.32,1.275); }
@keyframes pb-in { 0%{transform:scale(.85);opacity:0} 100%{transform:scale(1);opacity:1} }

/* Confetti blast overlay */
.pb-blast { position: fixed; inset: 0; pointer-events: none; z-index: 10001; overflow: hidden; }
.pb-blast-text {
  position: absolute; top: 28%; left: 50%; transform: translateX(-50%);
  font-family: 'Bebas Neue', cursive; font-size: 48px; letter-spacing: .12em; white-space: nowrap;
  color: var(--gold); text-shadow: 0 0 60px rgba(201,168,76,.9), 0 2px 0 rgba(0,0,0,.5);
  animation: pb-text-pop .7s cubic-bezier(.175,.885,.32,1.275) forwards;
}
@media (max-width:480px) { .pb-blast-text { font-size: 32px; } }
@keyframes pb-text-pop {
  0%   { opacity:0; transform:translateX(-50%) scale(.4); }
  70%  { opacity:1; transform:translateX(-50%) scale(1.08); }
  100% { opacity:1; transform:translateX(-50%) scale(1); }
}
.pb-confetti { position: absolute; width: 8px; height: 8px; border-radius: 2px; animation: pb-fall linear forwards; }
@keyframes pb-fall {
  0%   { opacity:1; transform:translateY(-10px) rotate(0deg); }
  100% { opacity:0; transform:translateY(100vh) rotate(720deg); }
}

/* Personal Bests in Progress modal */
.pb-section-label {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 24px 0 10px;
}
.pb-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.pb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--surface-2);
  border-radius: 10px; border: 1px solid var(--border);
}
.pb-rank  { font-family: 'Bebas Neue', cursive; font-size: 16px; color: var(--muted); width: 22px; flex-shrink: 0; text-align: center; }
.pb-movie { flex: 1; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-arrow { font-size: 12px; color: var(--green); flex-shrink: 0; }
.pb-score { font-family: 'Bebas Neue', cursive; font-size: 20px; flex-shrink: 0; }
.pb-score sup { font-size: 11px; opacity: .65; }
.pb-empty { font-size: 13px; color: var(--muted); text-align: center; padding: 16px 0 8px; }

/* ══════════════════════════════════════════════
   CHALLENGE SYSTEM
══════════════════════════════════════════════ */
/* ── Challenge button in score panel ── */
.btn-challenge {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; margin-top: 10px; padding: 11px 16px;
  background: transparent; border: 1px solid rgba(201,168,76,.4);
  color: var(--gold); border-radius: 10px; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 500;
  transition: background .2s, border-color .2s;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn-challenge:hover { background: rgba(201,168,76,.1); border-color: var(--gold); }

/* ── Share panel ── */
.challenge-share { display: none; margin-top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.challenge-share.on { display: block; }
.chlg-share-title { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.chlg-link-row { display: flex; gap: 8px; margin-bottom: 10px; }
.chlg-link-input {
  flex: 1; min-width: 0;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 8px 10px; color: var(--muted); font-size: 11px; font-family: monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-copy-link {
  padding: 8px 12px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 12px; cursor: pointer;
  white-space: nowrap; transition: background .2s;
}
.btn-copy-link:hover { background: rgba(255,255,255,.08); }
.btn-whatsapp {
  width: 100%; padding: 10px; background: #25d366; border: none; border-radius: 8px;
  color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .2s;
}
.btn-whatsapp:hover { opacity: .9; }

/* ── Challenge result (won / lost) ── */
.challenge-result { display: none; margin-top: 14px; border-radius: 14px; padding: 22px; text-align: center; border: 2px solid transparent; }
.challenge-result.won { display: block; background: rgba(6,214,160,.07); border-color: var(--green); animation: chlg-pop .5s cubic-bezier(.175,.885,.32,1.275); }
.challenge-result.lost { display: block; background: rgba(244,162,97,.05); border-color: rgba(244,162,97,.35); animation: chlg-pop .4s ease-out; }
@keyframes chlg-pop { 0%{transform:scale(.8);opacity:0} 100%{transform:scale(1);opacity:1} }
.chlg-result-icon { font-size: 38px; margin-bottom: 6px; }
.chlg-result-title { font-family: 'Bebas Neue', cursive; font-size: 30px; letter-spacing: .08em; margin-bottom: 4px; }
.challenge-result.won  .chlg-result-title { color: var(--green); }
.challenge-result.lost .chlg-result-title { color: #f4a261; }
.chlg-result-sub { font-size: 12px; color: var(--muted); }

/* ── Full-page challenge screen ── */
#challengeScreen {
  display: none; min-height: 100vh;
  align-items: center; justify-content: center;
  padding: 32px 20px; background: var(--bg);
}
#challengeScreen.on { display: flex; }
.chlg-inner { max-width: 440px; width: 100%; text-align: center; }
.chlg-logo { font-family: 'Bebas Neue', cursive; font-size: 30px; letter-spacing: .25em; color: var(--gold); margin-bottom: 8px; }
.chlg-logo em { color: var(--text); font-style: normal; }
.chlg-vs { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.chlg-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 36px 28px; margin-bottom: 24px; position: relative; overflow: hidden;
}
.chlg-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,.08) 0%, transparent 60%);
  pointer-events: none;
}
.chlg-challenger { font-family: 'Bebas Neue', cursive; font-size: 26px; color: var(--gold); letter-spacing: .06em; }
.chlg-text { color: var(--muted); font-size: 13px; margin: 3px 0; }
.chlg-score-big { font-family: 'Bebas Neue', cursive; font-size: 80px; line-height: 1; color: var(--text); margin: 6px 0; }
.chlg-score-big sup { font-size: 32px; }
.chlg-movie { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-style: italic; color: var(--text); margin-bottom: 12px; }
.chlg-beat { font-size: 15px; color: var(--text); font-weight: 600; }
.btn-accept {
  width: 100%; padding: 16px; background: var(--gold); color: #000;
  font-family: 'Bebas Neue', cursive; font-size: 18px; letter-spacing: .1em;
  border: none; border-radius: 12px; cursor: pointer; margin-bottom: 12px;
  transition: opacity .2s; touch-action: manipulation;
}
.btn-accept:hover { opacity: .85; }
.chlg-auth-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.chlg-auth-note a { color: var(--gold); cursor: pointer; text-decoration: none; }

/* ═══════════════════════════════════════════════
   LEVEL COLLECTION CARDS (App Screen)
═══════════════════════════════════════════════ */
.collection-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.collection-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.23,1,0.32,1), border-color 0.35s, box-shadow 0.35s;
}
.collection-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

/* ── Coverflow Poster Area ── */
.coverflow {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, var(--bg) 100%);
}
.coverflow-track {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  perspective: 900px;
  width: 580px; height: 220px;
}
.coverflow-poster {
  position: absolute;
  width: 120px; height: 175px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  transition: all 0.5s cubic-bezier(0.23,1,0.32,1);
  border: 1px solid rgba(255,255,255,0.08);
}
.coverflow-poster img,
.coverflow-poster-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.coverflow-poster-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.7) 100%);
}
.coverflow-label {
  position: absolute;
  bottom: 8px; left: 8px; right: 8px;
  font-family: 'Bebas Neue', cursive;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
  line-height: 1.2;
}

/* Positions */
.coverflow-pos--far-left {
  left: 5px; top: 50%;
  transform: translateY(-50%) rotateY(18deg) scale(0.72);
  opacity: 0.4; z-index: 1;
}
.coverflow-pos--left {
  left: 100px; top: 50%;
  transform: translateY(-50%) rotateY(10deg) scale(0.85);
  opacity: 0.65; z-index: 2;
}
.coverflow-pos--center {
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1; z-index: 5;
  width: 135px; height: 195px;
  border-radius: 10px;
  box-shadow: 0 14px 42px rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.15);
}
.coverflow-pos--center .coverflow-label {
  font-size: 13px;
}
.coverflow-pos--right {
  right: 100px; left: auto; top: 50%;
  transform: translateY(-50%) rotateY(-10deg) scale(0.85);
  opacity: 0.65; z-index: 2;
}
.coverflow-pos--far-right {
  right: 5px; left: auto; top: 50%;
  transform: translateY(-50%) rotateY(-18deg) scale(0.72);
  opacity: 0.4; z-index: 1;
}

/* Solo poster for Level 3 */
.coverflow--single { height: 200px; }
.coverflow-pos--solo {
  width: 150px; height: 210px;
}

/* Bottom fade */
.coverflow-fade-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50px;
  background: linear-gradient(to top, var(--surface), transparent);
  z-index: 8;
}

/* Top accent line */
.coverflow-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px; z-index: 10;
}
.coverflow-accent--beg { background: linear-gradient(90deg, transparent, rgba(6,214,160,0.5), transparent); }
.coverflow-accent--int { background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5), transparent); }
.coverflow-accent--adv { background: linear-gradient(90deg, transparent, rgba(230,57,70,0.5), transparent); }

/* Hover lift on posters */
.collection-card:hover .coverflow-pos--center {
  box-shadow: 0 18px 52px rgba(0,0,0,0.75);
}

/* Card hover color accents */
.collection-card--beg:hover { border-color: rgba(6,214,160,0.22); }
.collection-card--int:hover { border-color: rgba(201,168,76,0.22); }
.collection-card--adv:hover { border-color: rgba(230,57,70,0.18); }

/* ── Card Info Area ── */
.collection-info {
  padding: 24px 28px 28px;
}
.collection-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.collection-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.collection-num {
  font-family: 'Bebas Neue', cursive;
  font-size: 48px;
  line-height: 1;
  opacity: 0.15;
}
.collection-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 4px;
  border: 1px solid; margin-bottom: 5px;
}
.collection-badge--beg { color: var(--green); background: rgba(6,214,160,0.1); border-color: rgba(6,214,160,0.25); }
.collection-badge--int { color: var(--gold);  background: rgba(201,168,76,0.1); border-color: rgba(201,168,76,0.25); }
.collection-badge--adv { color: var(--red);   background: rgba(230,57,70,0.1);  border-color: rgba(230,57,70,0.2); }

.collection-title {
  font-family: 'Bebas Neue', cursive;
  font-size: 32px; letter-spacing: 0.08em;
  color: var(--text); margin: 0; line-height: 1;
}
.collection-right { text-align: right; }
.collection-scenes-count {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: rgba(255,255,255,0.3);
  justify-content: flex-end;
}
.collection-status {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: rgba(255,255,255,0.3);
  margin-top: 4px; justify-content: flex-end;
}
.collection-status--open { color: var(--green); }

.collection-desc {
  font-size: 13px; color: var(--muted);
  line-height: 1.6; margin: 0 0 18px;
}

/* Movie name pills */
.collection-movies {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.collection-pill {
  font-size: 10px; color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 4px 10px; border-radius: 100px;
}

/* CTA Button */
.collection-cta {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; width: 100%; padding: 13px;
  border: none; border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.8px; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s ease;
}
.collection-cta svg { transition: transform 0.3s ease; }
.collection-card:hover .collection-cta svg:last-child { transform: translateX(3px); }

.collection-cta--beg {
  background: rgba(6,214,160,0.1); color: var(--green);
  border: 1px solid rgba(6,214,160,0.2);
}
.collection-card--beg:hover .collection-cta--beg { background: rgba(6,214,160,0.18); }

.collection-cta--int {
  background: rgba(201,168,76,0.1); color: var(--gold);
  border: 1px solid rgba(201,168,76,0.2);
  opacity: 0.7;
}
.collection-card--int:hover .collection-cta--int { background: rgba(201,168,76,0.18); }

.collection-cta--adv {
  background: rgba(230,57,70,0.1); color: var(--red);
  border: 1px solid rgba(230,57,70,0.18);
  opacity: 0.7;
}
.collection-card--adv:hover .collection-cta--adv { background: rgba(230,57,70,0.18); }

/* ── Responsive ── */
@media (max-width: 580px) {
  .coverflow { height: 200px; }
  .coverflow-track { width: 380px; height: 170px; }
  .coverflow-poster { width: 90px; height: 140px; }
  .coverflow-pos--center { width: 105px; height: 155px; }
  .coverflow-pos--far-left { left: 0; }
  .coverflow-pos--left { left: 60px; }
  .coverflow-pos--right { right: 60px; }
  .coverflow-pos--far-right { right: 0; }
  .collection-info { padding: 18px 20px 22px; }
  .collection-header { flex-direction: column; gap: 10px; }
  .collection-right { text-align: left; display: flex; gap: 14px; align-items: center; }
  .collection-scenes-count { justify-content: flex-start; }
  .collection-status { margin-top: 0; justify-content: flex-start; }
}

/* ── CINEMATIC LEVEL CARDS ── */
.clv-section { padding: 120px 0 80px; background: var(--bg); }
.clv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.clv-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4;
  transition: transform .35s cubic-bezier(.25,.46,.45,.94), box-shadow .35s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
.clv-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 24px 56px rgba(0,0,0,.7); }
.clv-card-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform .6s ease;
  transform-origin: center;
}
.clv-card:hover .clv-card-bg { transform: scale(1.08); }
.clv-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.05) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.88) 80%, rgba(0,0,0,.96) 100%);
}
.clv-card-body {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; padding: 28px 24px;
}
.clv-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px; border: 1px solid;
  margin-bottom: 10px; width: fit-content;
}
.clv-badge.beg { color: var(--green); border-color: rgba(6,214,160,.4); background: rgba(6,214,160,.12); }
.clv-badge.int { color: var(--gold);  border-color: rgba(201,168,76,.4);  background: rgba(201,168,76,.12); }
.clv-badge.adv { color: #f4a261;      border-color: rgba(244,162,97,.4);  background: rgba(244,162,97,.12); }
.clv-title { font-size: clamp(22px,3vw,32px); font-weight: 800; color: #fff; margin: 0 0 6px; letter-spacing: -.02em; }
.clv-subtitle { font-size: 13px; color: rgba(255,255,255,.6); margin: 0 0 14px; line-height: 1.5; }
.clv-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.clv-count  { font-size: 12px; color: rgba(255,255,255,.45); }
.clv-pb-avg { font-size: 12px; color: var(--gold); font-weight: 600; }
.clv-lock {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: rgba(255,255,255,.4); margin-bottom: 12px;
}
.clv-cta { font-size: 13px; font-weight: 600; color: #fff; letter-spacing: .04em; opacity: .75; transition: opacity .2s; }
.clv-card:hover .clv-cta { opacity: 1; }
/* ── LEVEL PANEL (Horizontal Scene Cards) ── */
.clv-panel {
  position: fixed; bottom: 0;
  left: 50%; transform: translateX(-50%) translateY(100%);
  width: min(900px, 96vw); max-height: 85vh;
  background: var(--surface); border-radius: 20px 20px 0 0;
  border: 1px solid var(--border); border-bottom: none;
  z-index: 1200;
  transition: transform .4s cubic-bezier(.25,.46,.45,.94);
  display: flex; flex-direction: column;
}
.clv-panel.open { transform: translateX(-50%) translateY(0); }
.clv-panel-inner { overflow-y: auto; padding: 28px 32px 36px; position: relative; }

/* Panel header */
.clv-panel-head-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px;
}
.clv-panel-head-left { display: flex; align-items: center; gap: 14px; }
.clv-panel-num {
  font-family: 'Bebas Neue', cursive;
  font-size: 48px; line-height: 1;
  opacity: 0.12;
}
.clv-panel-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: none;
  color: var(--muted); font-size: 15px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: color 0.2s;
}
.clv-panel-close:hover { color: var(--text); }

.clv-panel-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 4px; border: 1px solid; margin-bottom: 6px;
}
.clv-panel-badge.beg { color: var(--green); border-color: rgba(6,214,160,.4); background: rgba(6,214,160,.12); }
.clv-panel-badge.int { color: var(--gold);  border-color: rgba(201,168,76,.4);  background: rgba(201,168,76,.12); }
.clv-panel-badge.adv { color: #f4a261;      border-color: rgba(244,162,97,.4);  background: rgba(244,162,97,.12); }
.clv-panel-title { font-family: 'Bebas Neue', cursive; font-size: 28px; letter-spacing: 0.08em; color: var(--text); margin: 0; }
.clv-panel-sub   { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.clv-panel-meta  { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.clv-panel-count { font-size: 12px; color: rgba(255,255,255,0.35); }
.clv-panel-count strong { color: var(--green); font-size: 14px; }
.clv-panel-avg   { font-size: 12px; color: var(--gold); font-weight: 600; }

/* Scene cards grid — horizontal */
.clv-clip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.sc-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}
.sc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.sc-card.locked {
  opacity: 0.4;
  cursor: default;
}
.sc-card.locked:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}

/* Poster area */
.sc-poster {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--surface-2);
}
.sc-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.sc-card:hover .sc-poster img { transform: scale(1.06); }
.sc-card.locked:hover .sc-poster img { transform: none; }
.sc-poster-ph { width: 100%; height: 100%; }
.sc-poster-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.75) 100%);
}
.sc-year {
  position: absolute; top: 8px; left: 10px;
  font-size: 9px; font-weight: 600; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.4); z-index: 2;
}
.sc-score {
  position: absolute; top: 8px; right: 8px;
  font-size: 11px; font-weight: 800;
  padding: 2px 8px; border-radius: 100px;
  letter-spacing: 0.03em; z-index: 2;
  border: 1px solid;
}
.sc-lock-badge {
  position: absolute; top: 8px; right: 8px;
  color: rgba(255,255,255,0.3); z-index: 2;
}
.sc-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s; z-index: 2;
}
.sc-play svg { margin-left: 2px; }
.sc-card:hover .sc-play { opacity: 1; }
.sc-card.locked:hover .sc-play { opacity: 0; }

/* Card info area */
.sc-info { padding: 12px 14px 14px; }
.sc-accent { width: 100%; height: 2px; border-radius: 1px; margin-bottom: 8px; }
.sc-movie {
  font-family: 'Bebas Neue', cursive;
  font-size: 16px; letter-spacing: 0.06em;
  color: var(--text); margin-bottom: 4px; line-height: 1.1;
}
.sc-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px; font-style: italic;
  color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* Start Level button */
.clv-panel-play-btn {
  width: 100%; padding: 15px;
  background: var(--gold); color: #000;
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
  border: none; border-radius: 12px; cursor: pointer;
  transition: opacity .2s;
  font-family: 'DM Sans', sans-serif;
}
.clv-panel-play-btn:hover { opacity: .88; }

/* Backdrop */
.clv-panel-backdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.65); z-index: 1199;
}
.clv-panel-backdrop.open { display: block; }

@media (max-width: 768px) {
  .clv-grid { grid-template-columns: 1fr; gap: 16px; }
  .clv-card { aspect-ratio: 16/9; }
  .clv-card-bg { background-position: center center; }
  .clv-panel { width: 100vw; border-radius: 16px 16px 0 0; }
  .clv-clip-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .clv-panel-inner { padding: 22px 18px 30px; }
  .clv-panel-head-row { flex-direction: column; gap: 12px; }
  .clv-panel-close { position: absolute; top: 16px; right: 16px; }
}
@media (max-width: 480px) {
  .clv-clip-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sc-movie { font-size: 14px; }
}

/* ═══════════════════════════════════════════════
   CINEMATIC ASTRAL — APP NAV BAR
═══════════════════════════════════════════════ */
.app-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.app-nav-inner {
  max-width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.app-nav-logo {
  font-family: 'Space Grotesk', 'Bebas Neue', sans-serif;
  font-size: 18px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--gold); text-decoration: none;
  text-shadow: 0 0 30px rgba(201,168,76,.25);
}
.app-nav-logo em { font-style: normal; color: var(--text); }
.app-nav-right { display: flex; align-items: center; gap: 10px; }
.app-nav-progress {
  position: static;
  font-size: 11px; padding: 6px 12px 6px 9px;
}

/* ═══════════════════════════════════════════════
   CINEMATIC FEATURED HERO
═══════════════════════════════════════════════ */
.hero-featured {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 24px 32px;
}

/* Poster background */
.hero-featured-poster {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-featured-poster img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  display: block;
}
.hero-featured-gradient {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(8,8,8,0.15) 0%,
      rgba(8,8,8,0.35) 30%,
      rgba(8,8,8,0.75) 60%,
      rgba(8,8,8,0.96) 85%,
      #080808 100%
    ),
    linear-gradient(to right,
      rgba(8,8,8,0.7) 0%,
      transparent 50%
    );
}

/* Content layer */
.hero-featured-content {
  position: relative; z-index: 2;
  max-width: 1180px; margin: 0 auto; width: 100%;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px;
}

/* Movie info */
.hero-featured-info { flex: 1; max-width: 560px; }
.hero-featured-title {
  font-family: 'Space Grotesk', 'Bebas Neue', sans-serif;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 700; line-height: 0.95;
  color: #fff; letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.hero-featured-year {
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  font-size: 14px; color: rgba(255,255,255,.45);
  margin-bottom: 20px; letter-spacing: 0.05em;
}
.hero-featured-quote-wrap { margin-bottom: 18px; }
.hero-featured-quote-label {
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,.4); margin-bottom: 6px;
  display: block; letter-spacing: 0.06em;
}
.hero-featured-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-style: italic;
  color: rgba(255,255,255,.82);
  line-height: 1.5;
}

/* Mini Player */
.hero-mini-player {
  display: flex; align-items: center; gap: 12px;
  max-width: 260px;
}
.hero-play-btn {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(201,168,76,.2);
  border: 1.5px solid rgba(201,168,76,.5);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.hero-play-btn:hover {
  background: rgba(201,168,76,.35);
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(201,168,76,.3);
}
.hero-play-btn svg { margin-left: 2px; }
.hero-progress-track {
  flex: 1; height: 4px;
  background: rgba(255,255,255,.12);
  border-radius: 100px;
  overflow: hidden;
}
.hero-progress-fill {
  height: 100%; width: 35%;
  background: linear-gradient(90deg, var(--gold), #e8c55a);
  border-radius: 100px;
  transition: width 0.3s ease;
}

/* ═══════════════════════════════════════════════
   WEAK WORDS PANEL (Glassmorphism)
═══════════════════════════════════════════════ */
.weak-words-panel {
  width: 260px; flex-shrink: 0;
  background: rgba(20,20,25,0.65);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,.4);
}
.weak-words-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.weak-words-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.85);
}
.weak-words-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: none;
  color: rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.weak-words-arrow:hover {
  background: rgba(255,255,255,.14);
  color: var(--gold);
}
.weak-words-table { width: 100%; border-collapse: collapse; }
.weak-words-table th {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.06em; color: rgba(255,255,255,.35);
  text-align: left; padding: 0 0 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.weak-words-table th:last-child { text-align: right; }
.weak-words-table td {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,.85);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.weak-words-table td:last-child {
  text-align: right; font-weight: 500;
  color: rgba(255,255,255,.4); font-size: 13px;
}
.weak-words-table tr:last-child td { border-bottom: none; }
.weak-words-empty {
  text-align: center; color: rgba(255,255,255,.25);
  font-size: 12px; font-style: italic; padding: 16px 0 !important;
}
/* Progress bar behind weak word score */
.weak-word-bar {
  display: inline-block; position: relative;
  width: 48px; height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 100px;
  overflow: hidden;
  vertical-align: middle; margin-left: 6px;
}
.weak-word-bar-fill {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--gold), #e8c55a);
}

/* ═══════════════════════════════════════════════
   HERO CHIPS (Daily + Streak)
═══════════════════════════════════════════════ */
.hero-chips {
  position: relative; z-index: 2;
  display: flex; gap: 10px;
  max-width: 1180px; margin: 16px auto 0; width: 100%;
  padding: 0 0 8px;
}
.hero-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(17,17,17,0.75);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 100px;
  padding: 8px 16px;
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 500;
  color: rgba(255,255,255,.6);
}
.hero-chip-icon { font-size: 14px; }
.hero-chip--daily { border-color: rgba(201,168,76,.2); }
.hero-chip-timer {
  font-family: 'Space Grotesk', monospace;
  font-size: 13px; font-weight: 600;
  color: var(--gold); letter-spacing: 0.05em;
}
.hero-chip--streak { border-color: rgba(251,146,60,.2); }
.hero-chip-streak-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 700;
  color: #fb923c;
}

/* ═══════════════════════════════════════════════
   POSTER CAROUSEL
═══════════════════════════════════════════════ */
.carousel-section {
  margin-bottom: 40px;
}
.carousel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.carousel-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.55);
}
.carousel-arrows { display: flex; gap: 6px; }
.carousel-arrow {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.4);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.carousel-arrow:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}

.carousel-track-wrap {
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -24px; padding: 0 24px;
}
.carousel-track-wrap::-webkit-scrollbar { display: none; }
.carousel-track {
  display: flex; gap: 16px;
  padding-bottom: 8px;
}

/* Poster card in carousel */
.carousel-card {
  flex-shrink: 0;
  width: 135px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.carousel-card:hover { transform: translateY(-5px); }

.carousel-poster {
  position: relative;
  width: 135px; height: 200px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
  margin-bottom: 10px;
}
.carousel-poster img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.carousel-card:hover .carousel-poster img { transform: scale(1.06); }
.carousel-poster-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.7) 100%);
}

.carousel-card-label {
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 500;
  color: rgba(255,255,255,.35); letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.carousel-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.85);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.carousel-card-actors {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 10px; color: rgba(255,255,255,.3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — CINEMATIC DASHBOARD
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-featured { min-height: 450px; }
  .hero-featured-content { flex-direction: column; align-items: flex-start; }
  .weak-words-panel { width: 100%; max-width: 280px; align-self: flex-end; }
  .hero-featured-title { font-size: clamp(36px, 10vw, 56px); }
}

@media (max-width: 580px) {
  .hero-featured { min-height: 400px; padding: 0 16px 24px; }
  .hero-featured-title { font-size: clamp(32px, 11vw, 48px); }
  .weak-words-panel { width: 100%; max-width: 100%; }
  .hero-chips { flex-wrap: wrap; padding: 0 16px; }
  .carousel-track-wrap { margin: 0 -16px; padding: 0 16px; }
  .carousel-card { width: 115px; }
  .carousel-poster { width: 115px; height: 170px; }
  .app-nav { padding: 0 16px; }
  .app-nav-progress { display: none; }
}