/* ScamAI University — Custom styles */

:root {
  --navy-950: #0a0f1e;
  --navy-900: #0d1625;
  --navy-800: #111827;
  --navy-700: #1f2937;
  --red: #ef4444;
  --green: #22c55e;
  --amber: #f59e0b;
  --blue: #3b82f6;
}

/* Dark-theme contrast overrides — Tailwind's default gray-500/600/700
   are designed for light backgrounds; on navy they fail WCAG AA.
   Override globally since every page uses a dark navy background. */
.text-gray-700 { color: #9ca3af; } /* #374151 → gray-400 */
.text-gray-600 { color: #9ca3af; } /* #4b5563 → gray-400 */
.text-gray-500 { color: #b0b7c3; } /* #6b7280 → lighter mid-gray */


/* Pulse-red animation (replaces glitch) */
@keyframes pulse-red {
  0%, 100% { text-shadow: 0 0 10px #ef4444, 0 0 20px #ef4444, 0 0 40px #ef4444; }
  50%       { text-shadow: 0 0 2px #ef4444, 0 0 4px #ef4444; }
}
.glitch {
  animation: pulse-red 3s ease-in-out infinite;
}

/* Neon glow effects */
.glow-red    { box-shadow: 0 0 20px rgba(239, 68,  68,  0.4); }
.glow-green  { box-shadow: 0 0 20px rgba(34,  197, 94,  0.4); }
.glow-amber  { box-shadow: 0 0 20px rgba(245, 158, 11,  0.4); }
.glow-blue   { box-shadow: 0 0 20px rgba(59,  130, 246, 0.4); }
.glow-orange { box-shadow: 0 0 20px rgba(249, 115, 22,  0.4); }
.glow-yellow { box-shadow: 0 0 20px rgba(234, 179, 8,   0.4); }
.text-glow-red { text-shadow: 0 0 10px rgba(239, 68, 68, 0.7); }
.text-glow-green { text-shadow: 0 0 10px rgba(34, 197, 94, 0.7); }

/* Course card hover */
.course-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #1f2937;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Choice button */
.choice-btn {
  transition: all 0.2s ease;
  border: 1px solid #374151;
  background: rgba(17, 24, 39, 0.8);
}
.choice-btn:hover {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.05);
  transform: translateX(4px);
}
.choice-btn.selected {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
}

/* Professor speech bubble */
.professor-speech {
  background: rgba(13, 22, 37, 0.95);
  border-left: 3px solid #f59e0b;
  border-radius: 0 8px 8px 0;
}

/* Score bar */
.score-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, #ef4444, #f59e0b);
}

/* Terminal-style text */
.terminal {
  font-family: 'Courier New', 'Courier', monospace;
  background: #050810;
  border: 1px solid #1f2937;
  border-radius: 8px;
}

/* Verdict badge */
.verdict-villain { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }
.verdict-warn { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.verdict-safe { background: rgba(34, 197, 94, 0.15); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }

/* Progress tracker dots */
.progress-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid #374151;
  transition: all 0.3s ease;
}
.progress-dot.done { background: #22c55e; border-color: #22c55e; }
.progress-dot.active { background: #f59e0b; border-color: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,0.5); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #111827; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4b5563; }

/* Pulse red */
@keyframes pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}
.pulse-red { animation: pulse-red 2s ease-in-out 0.8s 3 forwards; }

/* Typewriter cursor */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.cursor::after { content: '▮'; animation: blink 1s step-end infinite; color: #22c55e; }

/* Hide Alpine x-cloak elements until initialized */
[x-cloak] { display: none !important; }

/* ── Sidebar ───────────────────────────────────────────────────────────── */

/* Sidebar height: use dvh where available (fixes iOS Safari chrome) */
.sidebar {
  height: calc(100vh - 56px);
  will-change: transform;   /* GPU-accelerated slide animation */
}
@supports (height: 100dvh) {
  .sidebar {
    height: calc(100dvh - 56px);
  }
}

/* Inner scroll area for the step list */
.sidebar-scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* iOS momentum scrolling */
}

/* Body scroll-lock on mobile when drawer is open.
   We restrict to <lg so desktop users can still scroll the page. */
@media (max-width: 1023px) {
  body.sidebar-open {
    overflow: hidden;
  }
}

/* ── Sidebar item base ─────────────────────────────────────────────────── */
.sidebar-item {
  color: #6b7280;  /* was #4b5563, lifted to gray-500 for dark bg */
  text-decoration: none;
}
.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #d1d5db;  /* was #9ca3af, brighter on hover */
}

/* Completed — green */
.sidebar-item-done {
  color: #22c55e;
}
.sidebar-item-done:hover {
  background: rgba(34, 197, 94, 0.07);
  color: #4ade80;
}
.sidebar-item-done .fa-check {
  color: #22c55e;
}

/* Active / current — amber */
.sidebar-item-active {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  font-weight: 700;
}
.sidebar-item-active:hover {
  background: rgba(245, 158, 11, 0.13);
}

/* Not yet reached — muted */
.sidebar-item-locked {
  color: #4b5563;  /* was #374151, lifted slightly */
}
.sidebar-item-locked:hover {
  color: #6b7280;  /* was #4b5563 */
}

/* ── Easter Egg Styles ─────────────────────────────────────────────────── */

/* EE-4: Pulse-red class applied briefly to sidebar */
.ee-glitch {
  animation: pulse-red 1.5s ease-in-out;
}

/* EE-4: Recruiter modal overlay */
#ee-recruiter-modal {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.15s ease-out;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.ee-recruiter-inner {
  text-align: center;
  padding: 3rem 2rem;
}
.ee-recruiter-title {
  font-family: ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: 900;
  color: #ef4444;
  text-shadow: 3px 0 #dc2626, -3px 0 #dc2626;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.ee-recruiter-sub {
  font-family: ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 1rem;
  color: #f59e0b;
  font-style: italic;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}
.ee-recruiter-btn {
  font-family: ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 0.75rem;
  color: #ef4444;
  border: 1px solid #ef4444;
  background: transparent;
  padding: 0.5rem 1.5rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.ee-recruiter-btn:hover {
  background: #ef4444;
  color: #0a0f1e;
}

/* EE-5: Villain playlist slide-in panel */
#ee-playlist-panel {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateX(-110%) translateY(-50%);
  opacity: 0;
  z-index: 198;
  width: 280px;
  background: #0d1625;
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-left: none;
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  box-shadow: 6px 0 30px rgba(245, 158, 11, 0.15);
  transition: transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 350ms ease;
}
.ee-playlist-caption {
  font-family: ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 0.7rem;
  color: #f59e0b;
  font-style: italic;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}
.ee-playlist-tracks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ee-playlist-tracks li {
  font-family: ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 0.75rem;
  color: #d1d5db;
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.15s;
}
.ee-playlist-tracks li:hover {
  background: rgba(245, 158, 11, 0.07);
}

/* EE-12: Custom context menu */
#ee-context-menu {
  position: absolute;
  z-index: 9998;
  background: #0d1625;
  border: 1px solid #1f2937;
  border-radius: 6px;
  padding: 4px 0;
  min-width: 190px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  font-family: ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 0.8rem;
  animation: ctxFadeIn 0.1s ease-out;
}
@keyframes ctxFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.ee-context-item {
  padding: 0.5rem 1rem;
  color: #d1d5db;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.ee-context-item:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

/* EE-13: Dev tools badge */
#ee-devtools-badge {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9997;
  background: #ef4444;
  color: #fff;
  font-family: ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
  animation: ee-wiggle 0.6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes ee-wiggle {
  0%   { transform: rotate(-2deg) scale(1); }
  50%  { transform: rotate(1deg) scale(1.04); }
  100% { transform: rotate(-1deg) scale(1.01); }
}

/* ── Game-Feel: Professor Phish Talking Animation ──────────────────────────── */

@keyframes prof-talk {
  0%, 100% { transform: scale(1.00); }
  50%       { transform: scale(1.02) translateY(-2px); }
}
.prof-talking {
  animation: prof-talk 0.2s steps(2) infinite;
  outline: 2px solid rgba(245, 158, 11, 0.6);
  outline-offset: 2px;
}

/* Professor emotional state filters */
.prof-impressed { filter: brightness(1.2) saturate(1.4); }
.prof-skeptical { filter: brightness(0.85) hue-rotate(200deg) saturate(0.6); }
.prof-excited   { filter: brightness(1.35) contrast(1.15); }

/* ── Game-Feel: Countdown Timer Bar ────────────────────────────────────────── */

@keyframes countdown-shrink {
  from { width: 100%; }
  to   { width: 0%; }
}

.node-timer-bar {
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
  border-radius: 2px;
  animation: countdown-shrink 45s linear forwards;
  transform-origin: left;
}
.node-timer-bar.urgent {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* ── Game-Feel: Verdict Flash ───────────────────────────────────────────────── */

@keyframes verdict-flash-in {
  0%   { opacity: 0; transform: scale(1.4); }
  20%  { opacity: 1; transform: scale(1); }
  80%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.9); }
}
#verdict-flash {
  animation: none;
}
#verdict-flash.active {
  animation: verdict-flash-in 1.2s ease forwards;
}

/* Pulse-red effect for verdict text */
@keyframes verdict-pulse-red {
  0%   { text-shadow: 0 0 30px #ef4444, 0 0 60px #ef4444; clip-path: inset(0 0 95% 0); }
  10%  { text-shadow: 0 0 5px #ef4444;                    clip-path: inset(20% 0 60% 0); }
  20%  { text-shadow: 0 0 40px #ef4444, 0 0 80px #ef4444; clip-path: inset(0 0 95% 0); }
  30%  { text-shadow: 0 0 5px #ef4444;                    clip-path: inset(40% 0 40% 0); }
  40%  { text-shadow: 0 0 30px #ef4444, 0 0 60px #ef4444; clip-path: inset(0 0 95% 0); }
  50%  { text-shadow: 0 0 5px #ef4444;                    clip-path: inset(60% 0 20% 0); }
  60%  { text-shadow: 0 0 40px #ef4444, 0 0 80px #ef4444; clip-path: inset(0 0 95% 0); }
  70%  { text-shadow: 0 0 5px #ef4444;                    clip-path: inset(80% 0 5% 0); }
  80%  { text-shadow: 0 0 30px #ef4444, 0 0 60px #ef4444; clip-path: inset(0 0 95% 0); }
  90%  { text-shadow: 0 0 5px #ef4444;                    clip-path: inset(30% 0 50% 0); }
  100% { text-shadow: 0 0 40px #ef4444, 0 0 80px #ef4444; clip-path: inset(0 0 95% 0); }
}
#flash-text {
  animation: verdict-pulse-red 0.08s steps(1) infinite;
}

/* ── Game-Feel: Choice Image Grid ─────────────────────────────────────────── */

.choice-img-btn {
  transition: all 0.2s ease;
  border: 2px solid transparent;
  background: #111827;
}
.choice-img-btn:hover {
  border-color: #f59e0b;
  transform: scale(1.01);
}
.choice-img-btn.selected {
  border-color: #22c55e;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.4);
  transform: scale(1.02);
}

/* ── EE-14: Selection tooltip */
#ee-selection-tip {
  position: absolute;
  z-index: 9996;
  background: #f59e0b;
  color: #0a0f1e;
  font-family: ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, -100%) translateY(-8px);
  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.4);
}
#ee-selection-tip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #f59e0b;
}
.ee-selection-tip {
  /* alias class for external use */
  background: #f59e0b;
  color: #0a0f1e;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
}

/* EE-12 / Shared: Toast notification */
#ee-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  z-index: 9995;
  background: #111827;
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #f3f4f6;
  font-family: ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 0.78rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms ease;
  max-width: min(90vw, 420px);
  text-align: center;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════════
   VISUAL NOVEL GAME ENGINE — Full-screen immersive course mode
   ══════════════════════════════════════════════════════════════════ */

/* Root container — covers entire viewport */
.vn-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  font-family: ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  background: #050810;
  cursor: default;
}

/* Scene background layers (A/B for crossfade) */
.vn-scene-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 1.5s ease;
  will-change: opacity, transform;
  /* Ken Burns: gentle slow pan+zoom — adds life to static backgrounds */
  animation: vn-ken-burns 28s ease-in-out alternate infinite;
}
#vn-bg-b {
  /* Offset the animation phase so A and B move in different directions */
  animation-direction: alternate-reverse;
  animation-duration: 32s;
}
@keyframes vn-ken-burns {
  from { transform: scale(1.00) translate(0%, 0%); }
  to   { transform: scale(1.06) translate(-1.5%, -0.8%); }
}

/* Bottom vignette — darkens scene near textbox */
.vn-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,8,16,0.15) 0%,
    rgba(5,8,16,0.05) 50%,
    rgba(5,8,16,0.75) 75%,
    rgba(5,8,16,0.97) 100%
  );
  pointer-events: none;
}

/* Progress strip at top of screen */
.vn-progress-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255,255,255,0.04);
  z-index: 50;
  cursor: default;
}
/* Widen the hover target without changing visual height */
.vn-progress-strip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 16px;
}
.vn-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f59e0b);
  transition: width 0.8s ease;
  border-radius: 0 2px 2px 0;
}

/* Tooltip shown on hover of the progress strip */
.vn-progress-tooltip {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5,8,16,0.92);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 5px;
  padding: 0.28rem 0.7rem;
  font-size: 0.58rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 51;
}
.vn-progress-strip:hover .vn-progress-tooltip {
  opacity: 1;
}

/* Skip Intro button — top-left, appears for returning users during intro */
.vn-skip-intro-btn {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 0.3rem 0.9rem;
  background: rgba(5,8,16,0.75);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  color: rgba(255,255,255,0.35);
  font-size: 0.6rem;
  font-family: ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.vn-skip-intro-btn:hover {
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.35);
  color: rgba(245,158,11,0.8);
}

/* HUD: top-left course info */
.vn-hud {
  position: absolute;
  top: 0.75rem;
  left: 1rem;
  z-index: 50;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.6;
}

/* Shared HUD button base */
.vn-hud-btn {
  position: absolute;
  top: 0.75rem;
  z-index: 60;
  width: 34px;
  height: 34px;
  background: rgba(5,8,16,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(6px);
  line-height: 1;
}

/* Menu button — top right */
.vn-menu-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 60;
  width: 34px;
  height: 34px;
  background: rgba(5,8,16,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(6px);
  line-height: 1;
}
.vn-menu-btn:hover {
  background: rgba(239,68,68,0.18);
  border-color: rgba(239,68,68,0.4);
  color: #ef4444;
}

/* Mute button — sits to the left of menu button */
.vn-mute-btn {
  position: absolute;
  top: 0.75rem;
  right: 3.5rem; /* 0.75rem right edge + 34px menu btn + 0.5rem gap */
  z-index: 60;
  width: 34px;
  height: 34px;
  background: rgba(5,8,16,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(6px);
}
.vn-mute-btn:hover {
  background: rgba(245,158,11,0.15);
  border-color: rgba(245,158,11,0.4);
  color: #f59e0b;
}

/* ── Professor Phish — large standing character sprite ─────────── */
.vn-prof-sprite {
  position: absolute;
  /* Sit just above the textbox, left side of the screen */
  left: clamp(1rem, 3vw, 4rem);
  bottom: 27vh;
  /* Portrait-style crop from the landscape image */
  width: clamp(180px, 28vw, 360px);
  height: clamp(260px, 50vh, 500px);
  object-fit: cover;
  object-position: center 10%; /* crop toward the face/upper body */
  z-index: 32; /* behind textbox (z:40), above vignette (z:3) */
  pointer-events: none;
  /* Fade out at bottom and sides — professor emerges cleanly from scene */
  -webkit-mask-image:
    linear-gradient(to bottom, black 0%, black 55%, transparent 100%),
    linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, black 0%, black 55%, transparent 100%),
    linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-composite: intersect;
  transition: filter 0.35s ease, opacity 0.4s ease, transform 0.25s ease;
  /* Slight drop shadow to ground the sprite in the scene */
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.7));
}

/* Dim and desaturate when narrator is speaking */
.vn-prof-sprite.is-narrator {
  opacity: 0.35;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.7)) grayscale(0.7) brightness(0.7);
}

/* Subtle bob when talking */
@keyframes prof-sprite-talk {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-4px); }
}
.vn-prof-sprite.is-talking {
  animation: prof-sprite-talk 0.22s steps(2) infinite;
}

/* Mood effects on the large sprite */
.vn-prof-sprite.prof-impressed {
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.7)) brightness(1.18) saturate(1.35);
}
.vn-prof-sprite.prof-skeptical {
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.7)) brightness(0.8) hue-rotate(200deg) saturate(0.55);
}
.vn-prof-sprite.prof-excited {
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.7)) brightness(1.35) contrast(1.12) saturate(1.25);
}

/* ── Textbox (dialogue area at bottom) ───────────────────────────── */
.vn-textbox {
  position: absolute;
  bottom: 4vh;
  left: clamp(1.5rem, 6vw, 8rem);
  right: clamp(1.5rem, 6vw, 8rem);
  min-height: auto;
  padding: 1.75rem 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 40;
  cursor: pointer;
  user-select: none;
  background: rgba(5, 8, 16, 0.82);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
/* Glow when typewriter is done and waiting for input */
.vn-textbox.vn-textbox-ready {
  border-top-color: rgba(245,158,11,0.18);
  box-shadow: 0 -12px 40px rgba(245,158,11,0.06);
}

.vn-textbox-inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-end;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

/* Character portrait inside textbox — now a compact nameplate avatar */
/* The large vn-prof-sprite handles the main visual presence */
.vn-portrait {
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: center 10%;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1px solid rgba(245,158,11,0.3);
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  transition: filter 0.3s ease;
  opacity: 0.85;
}

/* Narrator icon (for situation/context lines) */
.vn-narrator-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(245,158,11,0.06);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 6px;
}

.vn-textbox-content {
  flex: 1;
  min-width: 0;
}

/* Speaker name plate */
.vn-name-plate {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #f59e0b;
  margin-bottom: 0.4rem;
}
.vn-name-plate.narrator {
  color: rgba(245,158,11,0.5);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
}

/* Dialogue text */
.vn-dialogue-text {
  color: #f1f5f9;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  line-height: 1.75;
  min-height: 3.5em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* Continue hint — keyboard badge + arrow */
.vn-continue-hint {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  justify-content: flex-end;
  animation: continue-hint-in 0.35s ease forwards;
}
@keyframes continue-hint-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Keyboard-style badge for CLICK / SPACE */
.vn-continue-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,158,11,0.10);
  border: 1px solid rgba(245,158,11,0.35);
  border-bottom: 2px solid rgba(245,158,11,0.5); /* keycap depth effect */
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(245,158,11,0.85);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  line-height: 1.4;
}

.vn-continue-or {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vn-continue-to {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50%       { opacity: 1;   transform: translateX(5px); }
}
.vn-continue-arrow {
  display: inline-block;
  font-size: 0.75rem;
  color: rgba(245,158,11,0.7);
  animation: hint-pulse 1.1s ease-in-out infinite;
}

/* ── Choice screen ─────────────────────────────────────────────── */
.vn-choices-screen {
  position: absolute;
  inset: 0;
  background: rgba(5,8,16,0.72);
  backdrop-filter: blur(3px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 45;
  padding: 1.5rem 3rem 8vh;
  gap: 1.75rem;
}

.vn-choice-question {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 800;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
  text-shadow: 0 0 24px rgba(245,158,11,0.5);
  flex-shrink: 0;
}

/* Row containing choice panels */
.vn-choice-row {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 1400px;
  flex: 1;
  min-height: 0;
}

/* Individual choice card — accordion: flex-grow animates on hover */
.vn-choice-card {
  flex: 1 1 0;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.06);
  transition: flex-grow 0.42s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s, box-shadow 0.3s;
  background: #111827;
  min-height: 0;
  min-width: 56px; /* never fully collapse */
}

/* When any card in the row is hovered, shrink the others */
.vn-choice-row:has(.vn-choice-card:hover) .vn-choice-card:not(:hover):not(.selected) {
  flex-grow: 0.35;
}

/* Expand the hovered card */
.vn-choice-card:hover {
  flex-grow: 2.5;
  border-color: #f59e0b;
  box-shadow: 0 8px 40px rgba(245,158,11,0.25), 0 0 0 1px rgba(245,158,11,0.15);
}

/* Selected card stays expanded */
.vn-choice-card.selected {
  flex-grow: 2.5;
  border-color: #22c55e;
  box-shadow: 0 8px 40px rgba(34,197,94,0.35);
}

/* Shrink non-selected when a different card is selected */
.vn-choice-row:has(.vn-choice-card.selected) .vn-choice-card:not(.selected) {
  flex-grow: 0.35;
}

/* Keyboard-focused card — same expand treatment as hover but with blue accent */
.vn-choice-card.kbd-focused {
  flex-grow: 2.5;
  border-color: #60a5fa;
  box-shadow: 0 8px 40px rgba(96,165,250,0.3), 0 0 0 2px rgba(96,165,250,0.2);
  outline: none;
}
.vn-choice-row:has(.vn-choice-card.kbd-focused) .vn-choice-card:not(.kbd-focused):not(.selected) {
  flex-grow: 0.35;
}
.vn-choice-card.kbd-focused img {
  transform: scale(1.03);
}

.vn-choice-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.42s ease;
}
.vn-choice-card:hover img,
.vn-choice-card.selected img {
  transform: scale(1.03);
}

/* Gradient overlay for legend readability */
.vn-choice-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 35%,
    rgba(5,8,16,0.55) 65%,
    rgba(5,8,16,0.97) 100%
  );
}

/* Text legend at bottom of each card */
.vn-choice-legend {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1rem 0.875rem;
}

/* Letter badge — always visible, acts as collapsed-state indicator */
.vn-choice-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(245,158,11,0.88);
  font-size: 0.65rem;
  font-weight: 800;
  color: #0a0f1e;
  letter-spacing: 0;
  margin-bottom: 0.4rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.vn-choice-card:hover .vn-choice-letter,
.vn-choice-card.selected .vn-choice-letter {
  transform: scale(1.15);
}

/* Label — hidden while collapsed, revealed on expand */
.vn-choice-label {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 700;
  color: #f3f4f6;
  line-height: 1.3;
  margin-bottom: 0.25rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease 0.12s, opacity 0.25s ease 0.12s;
}
.vn-choice-card:hover .vn-choice-label,
.vn-choice-card.selected .vn-choice-label {
  max-height: 4em;
  opacity: 1;
}

/* Detail — hidden while collapsed, revealed on expand with slight delay */
.vn-choice-detail {
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  color: #9ca3af;
  line-height: 1.4;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease 0.18s, opacity 0.25s ease 0.18s;
}
.vn-choice-card:hover .vn-choice-detail,
.vn-choice-card.selected .vn-choice-detail {
  max-height: 4em;
  opacity: 1;
}

/* Checkmark on selected */
.vn-choice-check {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 28px;
  height: 28px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  box-shadow: 0 2px 8px rgba(34,197,94,0.5);
}

/* ── Timer bar (top of screen, choices phase) ─────────────────── */
.vn-timer-strip {
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 55;
}

/* ── Menu overlay ─────────────────────────────────────────────── */
.vn-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,8,16,0.96);
  backdrop-filter: blur(8px);
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.vn-menu-title {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.vn-menu-item {
  width: 280px;
  padding: 0.875rem 1.5rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  color: #9ca3af;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  text-align: left;
}
.vn-menu-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(239,68,68,0.4);
  color: #ef4444;
}
.vn-menu-item.primary {
  border-color: rgba(245,158,11,0.35);
  color: #f59e0b;
  background: rgba(245,158,11,0.06);
}
.vn-menu-item.primary:hover {
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.6);
  color: #fbbf24;
}
.vn-menu-alias {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.15);
  margin-top: 2rem;
  letter-spacing: 0.1em;
}

/* ── Debrief overlay ──────────────────────────────────────────── */
.vn-debrief-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,8,16,0.94);
  backdrop-filter: blur(4px);
  z-index: 48;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 3rem 1.5rem;
}
.vn-debrief-inner {
  max-width: 680px;
  margin: 0 auto;
}

/* ── Briefing screen (Intel Dossier panel) ───────────────────── */
.vn-briefing-screen {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3,5,12,0.88);
  backdrop-filter: blur(6px);
  padding: 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.vn-briefing-panel {
  width: 100%;
  max-width: 740px;
  background: rgba(8,12,24,0.97);
  border: 1px solid rgba(239,68,68,0.45);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(239,68,68,0.12), 0 20px 60px rgba(0,0,0,0.6);
}
.vn-briefing-header {
  background: rgba(239,68,68,0.07);
  border-bottom: 1px solid rgba(239,68,68,0.25);
  padding: 1rem 1.25rem 0.85rem;
}
.vn-briefing-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 0.6rem;
  color: rgba(239,68,68,0.75);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.vn-briefing-classified {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  color: rgba(239,68,68,0.6);
  border: 1px solid rgba(239,68,68,0.35);
  padding: 1px 6px;
  border-radius: 2px;
}
.vn-briefing-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.01em;
}
.vn-briefing-body {
  max-height: 55vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(239,68,68,0.3) transparent;
}
.vn-briefing-body::-webkit-scrollbar { width: 4px; }
.vn-briefing-body::-webkit-scrollbar-thumb { background: rgba(239,68,68,0.3); border-radius: 2px; }
.vn-briefing-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.vn-briefing-row:last-child { border-bottom: none; }
.vn-briefing-row:hover { background: rgba(239,68,68,0.04); }
.vn-briefing-row-num {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 0.6rem;
  color: rgba(239,68,68,0.45);
  min-width: 1.6rem;
  padding-top: 0.2rem;
  flex-shrink: 0;
  user-select: none;
}
.vn-briefing-row-text {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.75;
}
/* Inline highlights within briefing rows */
.hi-red   { color: #f87171; font-weight: 600; }
.hi-amber { color: #fbbf24; font-weight: 600; }
.hi-quote { color: #fbbf24; font-style: italic; font-weight: normal; }
.vn-briefing-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background: rgba(3,5,12,0.6);
  border-top: 1px solid rgba(239,68,68,0.2);
}
.vn-briefing-rowcount {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 0.58rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Keyboard hint badge inside briefing proceed button */
.vn-kbd-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.6rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
  border: 1px solid rgba(239,68,68,0.4);
  border-radius: 3px;
  background: rgba(239,68,68,0.1);
  color: rgba(248,113,113,0.7);
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Floating keyboard hint at top of choices screen */
.vn-choice-kbd-hint {
  position: absolute;
  top: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  pointer-events: none;
  white-space: nowrap;
}
.vn-choice-kbd-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.6rem;
  padding: 0.1rem 0.3rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.35);
  line-height: 1;
}

.vn-briefing-proceed {
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f87171;
  background: transparent;
  border: 1px solid rgba(239,68,68,0.5);
  border-radius: 6px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.vn-briefing-proceed:hover {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.8);
  transform: translateX(2px);
}
@media (max-width: 640px) {
  .vn-briefing-screen { padding: 0.75rem; align-items: flex-start; padding-top: 3.5rem; }
  .vn-briefing-panel { border-radius: 8px; }
  .vn-briefing-body { max-height: 50vh; }
  .vn-briefing-title { font-size: 1rem; }
  .vn-briefing-row { padding: 0.6rem 0.9rem; gap: 0.6rem; }
  .vn-briefing-row-text { font-size: 0.85rem; }
  .vn-briefing-footer { flex-direction: column; gap: 0.65rem; align-items: flex-end; }
}

/* ── Transition animations ────────────────────────────────────── */
@keyframes vn-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.vn-fadein {
  animation: vn-fadein 0.4s ease forwards;
}

/* Node title flash (cinematic) */
@keyframes vn-node-title {
  0%   { opacity: 0; transform: scale(1.08) translateY(-10px); }
  20%  { opacity: 1; transform: scale(1) translateY(0); }
  80%  { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(0.96) translateY(4px); }
}
.vn-node-title-flash {
  position: absolute;
  top: 38%;
  left: 0; right: 0;
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 30px rgba(239,68,68,0.6), 0 2px 8px rgba(0,0,0,0.8);
  letter-spacing: 0.05em;
  z-index: 42;
  pointer-events: none;
  animation: vn-node-title 2s ease forwards;
}
.vn-node-subtitle-flash {
  position: absolute;
  top: calc(38% + 3.5rem);
  left: 0; right: 0;
  text-align: center;
  font-size: 0.7rem;
  color: #f59e0b;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 42;
  pointer-events: none;
  animation: vn-node-title 2s ease forwards;
}

/* Fallback bg color when no image */
.vn-scene-bg.no-image {
  background-color: #050810;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(239,68,68,0.03) 0px,
    rgba(239,68,68,0.03) 1px,
    transparent 1px,
    transparent 40px
  );
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .vn-choice-row {
    flex-direction: column;
    gap: 0.5rem;
  }
  /* Disable accordion on mobile — all cards equal height */
  .vn-choice-card,
  .vn-choice-row:has(.vn-choice-card:hover) .vn-choice-card:not(:hover):not(.selected),
  .vn-choice-row:has(.vn-choice-card.selected) .vn-choice-card:not(.selected) {
    flex-grow: 1;
    min-height: 140px;
    height: 140px;
  }
  .vn-choice-label,
  .vn-choice-detail {
    max-height: 4em;
    opacity: 1;
  }
  .vn-textbox {
    padding: 1rem 1rem 1.25rem;
    min-height: 32vh;
  }
  .vn-portrait {
    width: 44px;
    height: 44px;
  }
  .vn-choices-screen {
    padding: 1rem;
    gap: 0.75rem;
  }
  /* On mobile the sprite moves to center, smaller */
  .vn-prof-sprite {
    left: 50%;
    transform: translateX(-50%);
    width: clamp(140px, 55vw, 220px);
    height: clamp(180px, 35vh, 300px);
    bottom: 30vh;
  }
  /* Continue hint simplified on mobile */
  .vn-continue-hint {
    justify-content: center;
  }
  .vn-mute-btn {
    right: 3.25rem;
  }
}

/* ── Portrait / Rotate overlay ─────────────────────────────────── */
#rotate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #050810;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
  padding: 2rem;
}
@media (pointer: coarse) and (orientation: portrait) {
  #rotate-overlay { display: flex; }
}
.rotate-phone-icon {
  font-size: 4rem;
  animation: rotate-phone-anim 1.5s ease-in-out infinite alternate;
}
@keyframes rotate-phone-anim {
  from { transform: rotate(-15deg); }
  to   { transform: rotate(15deg); }
}
.rotate-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
  font-family: ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
}
.rotate-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  max-width: 260px;
  line-height: 1.5;
}
#rotate-play-anyway {
  margin-top: 1rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
  font-family: ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
}
#rotate-play-anyway:hover, #rotate-play-anyway:active {
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.4);
  color: rgba(245,158,11,0.8);
}

/* ── Touch choice confirmation ──────────────────────────────────── */
.vn-choice-card.tap-pending {
  border: 2px solid rgba(245,158,11,0.75);
  box-shadow: 0 0 28px rgba(245,158,11,0.2), inset 0 0 0 1px rgba(245,158,11,0.15);
}
.vn-tap-confirm-hint {
  position: absolute;
  bottom: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(245,158,11,0.92);
  color: #0a0e1a;
  font-size: 0.6rem;
  font-weight: 800;
  font-family: ui-monospace, Menlo, Monaco, Consolas, 'Courier New', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 12px;
  white-space: nowrap;
  pointer-events: none;
}

/* ── Landscape mobile: touch target improvements ────────────────── */
@media (max-width: 900px) and (orientation: landscape) and (pointer: coarse) {
  .vn-menu-btn, .vn-mute-btn {
    width: 44px;
    height: 44px;
  }
  .vn-mute-btn {
    right: 3.75rem;
  }
  .vn-briefing-proceed {
    min-height: 44px;
    padding: 0.65rem 1.25rem;
  }
}
