/* ================================================
   SECRET AGENT BIRTHDAY ESCAPE ROOM
   Complete Stylesheet
   ================================================ */

/* ── CSS Custom Properties ────────────────────── */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0d1117;
  --bg-terminal: #0c1018;
  --bg-terminal-header: #161b22;

  --neon-green: #00ff41;
  --neon-green-dim: #00cc33;
  --neon-green-glow: rgba(0, 255, 65, 0.3);
  --neon-cyan: #00d4ff;
  --neon-cyan-glow: rgba(0, 212, 255, 0.3);
  --neon-red: #ff0040;
  --neon-red-glow: rgba(255, 0, 64, 0.3);
  --neon-amber: #ffaa00;

  --gold: #ffd700;
  --gold-dark: #b8860b;
  --gold-light: #fff3b0;

  --text-primary: #e0e0e0;
  --text-secondary: #999;
  --text-dim: #555;

  --font-mono: "Share Tech Mono", "Fira Code", "Courier New", monospace;
  --font-serif: "Playfair Display", "Georgia", serif;
  --font-sans: "Outfit", "Inter", system-ui, sans-serif;

  --transition-speed: 0.6s;
  --border-terminal: 1px solid rgba(0, 255, 65, 0.15);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-mono);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

::selection {
  background: var(--neon-green);
  color: var(--bg-primary);
}

/* ── Canvas & Overlays ────────────────────────── */
#matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.scanline-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  animation: scanline-flicker 8s ease-in-out infinite;
}

@keyframes scanline-flicker {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.6;
  }
}

/* ── Screen System ────────────────────────────── */
.screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-speed) ease,
    visibility var(--transition-speed) ease;
  padding: 1.5rem;
  overflow-y: auto;
}

.screen.active {
  opacity: 1;
  visibility: visible;
}

/* ── Utility ──────────────────────────────────── */
.hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(10px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.hidden.show {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0);
}

/* ================================================
   SCREEN 1: BOOT SEQUENCE
   ================================================ */
.boot-container {
  text-align: left;
  max-width: 600px;
  width: 100%;
}

.boot-logo {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: pulse-glow 2s ease-in-out infinite;
}

.boot-text {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--neon-green);
  white-space: pre-wrap;
  min-height: 120px;
  text-shadow: 0 0 8px var(--neon-green-glow);
}

.boot-text .ok-text {
  color: var(--neon-cyan);
}

.boot-text .fail-text {
  color: var(--neon-red);
}

.boot-cursor {
  display: inline-block;
  color: var(--neon-green);
  font-size: 0.85rem;
  animation: blink-cursor 0.8s step-end infinite;
}

@keyframes blink-cursor {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(0, 255, 65, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(0, 255, 65, 0.6));
  }
}

/* ================================================
   SCREEN 2: MISSION BRIEFING / INTRO
   ================================================ */
.intro-container {
  text-align: center;
  max-width: 650px;
  width: 100%;
  position: relative;
}

/* Classified Stamp */
.classified-stamp {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--neon-red);
  border: 3px solid var(--neon-red);
  padding: 0.3rem 1.2rem;
  transform: rotate(-5deg);
  margin-bottom: 1.5rem;
  position: relative;
  text-shadow: 0 0 10px var(--neon-red-glow);
  box-shadow: 0 0 15px var(--neon-red-glow);
  animation: stamp-appear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0.9;
}

@keyframes stamp-appear {
  0% {
    transform: rotate(-5deg) scale(3);
    opacity: 0;
  }
  60% {
    transform: rotate(-5deg) scale(0.95);
    opacity: 1;
  }
  100% {
    transform: rotate(-5deg) scale(1);
    opacity: 0.9;
  }
}

/* Glitch Title Effect */
.glitch {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--neon-green);
  position: relative;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px var(--neon-green-glow);
  animation: glitch-text 3s infinite;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  color: var(--neon-cyan);
  animation: glitch-shift-1 2s infinite;
  clip-path: inset(0 0 70% 0);
}

.glitch::after {
  color: var(--neon-red);
  animation: glitch-shift-2 2.5s infinite;
  clip-path: inset(70% 0 0 0);
}

@keyframes glitch-text {
  0%,
  95%,
  100% {
    opacity: 1;
  }
  96% {
    opacity: 0.8;
  }
}

@keyframes glitch-shift-1 {
  0%,
  90%,
  100% {
    transform: translateX(0);
  }
  92% {
    transform: translateX(-3px);
  }
  94% {
    transform: translateX(3px);
  }
  96% {
    transform: translateX(-1px);
  }
}

@keyframes glitch-shift-2 {
  0%,
  88%,
  100% {
    transform: translateX(0);
  }
  90% {
    transform: translateX(3px);
  }
  92% {
    transform: translateX(-3px);
  }
  94% {
    transform: translateX(2px);
  }
}

/* ================================================
   TERMINAL WINDOW COMPONENT
   ================================================ */
.terminal-window {
  background: var(--bg-terminal);
  border: var(--border-terminal);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow:
    0 0 20px rgba(0, 255, 65, 0.05),
    0 8px 32px rgba(0, 0, 0, 0.5);
  width: 100%;
}

.terminal-header {
  background: var(--bg-terminal-header);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
  display: flex;
  gap: 6px;
  margin-right: 0.5rem;
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background: #ff5f57;
}
.dot-yellow {
  background: #febc2e;
}
.dot-green {
  background: #28c840;
}

.terminal-title {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 1.5rem;
  min-height: 100px;
}

/* ── Typewriter Text ──────────────────────────── */
.typewriter-target,
.question-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--neon-green);
  margin-bottom: 1rem;
  min-height: 2em;
  text-shadow: 0 0 6px var(--neon-green-glow);
}

.typewriter-target::after,
.question-text.typing::after {
  content: "▋";
  animation: blink-cursor 0.8s step-end infinite;
  margin-left: 2px;
  color: var(--neon-green);
}

.question-text.done::after {
  display: none;
}

/* ── Input Styling ────────────────────────────── */
.input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.textarea-group {
  flex-direction: column;
  align-items: stretch;
}

.input-prefix {
  color: var(--neon-cyan);
  font-size: 1rem;
  text-shadow: 0 0 8px var(--neon-cyan-glow);
  flex-shrink: 0;
}

.terminal-input {
  flex: 1;
  background: rgba(0, 255, 65, 0.03);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: 4px;
  padding: 0.7rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--neon-green);
  outline: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  caret-color: var(--neon-green);
}

.terminal-input:focus {
  border-color: var(--neon-green);
  box-shadow:
    0 0 12px var(--neon-green-glow),
    inset 0 0 8px rgba(0, 255, 65, 0.05);
}

.terminal-input::placeholder {
  color: var(--text-dim);
}

.terminal-textarea {
  resize: vertical;
  min-height: 80px;
  max-height: 200px;
  line-height: 1.6;
}

.terminal-input.error {
  border-color: var(--neon-red);
  box-shadow: 0 0 12px var(--neon-red-glow);
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.terminal-input.success {
  border-color: var(--neon-green);
  box-shadow: 0 0 20px var(--neon-green-glow);
}

/* ── Feedback Messages ────────────────────────── */
.feedback {
  font-size: 0.8rem;
  min-height: 1.6em;
  margin: 0.5rem 0;
  opacity: 0;
  transition: opacity 0.3s ease;
  letter-spacing: 0.05em;
}

.feedback.show {
  opacity: 1;
}

.feedback.error {
  color: var(--neon-red);
  text-shadow: 0 0 8px var(--neon-red-glow);
}

.feedback.success {
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--neon-green-glow);
}

/* ── Shake Animation ──────────────────────────── */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10% {
    transform: translateX(-8px);
  }
  20% {
    transform: translateX(8px);
  }
  30% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  50% {
    transform: translateX(-4px);
  }
  60% {
    transform: translateX(4px);
  }
  70% {
    transform: translateX(-2px);
  }
  80% {
    transform: translateX(2px);
  }
}

/* ================================================
   NEON BUTTON
   ================================================ */
.btn-neon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--neon-green);
  background: transparent;
  border: 1px solid var(--neon-green);
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
  margin-top: 1rem;
  text-transform: uppercase;
}

.btn-neon:hover {
  background: rgba(0, 255, 65, 0.08);
  box-shadow:
    0 0 15px var(--neon-green-glow),
    0 0 30px rgba(0, 255, 65, 0.1),
    inset 0 0 15px rgba(0, 255, 65, 0.05);
  text-shadow: 0 0 8px var(--neon-green-glow);
  transform: translateY(-1px);
}

.btn-neon:active {
  transform: translateY(0);
  background: rgba(0, 255, 65, 0.12);
}

.btn-neon .btn-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 65, 0.1) 0%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-neon:hover .btn-glow {
  opacity: 1;
}

.btn-neon:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-neon:disabled:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
  text-shadow: none;
}

/* ================================================
   LEVEL SCREENS
   ================================================ */
.level-container {
  max-width: 600px;
  width: 100%;
}

.level-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.level-badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 0.2rem 1rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 8px var(--neon-cyan-glow);
}

.level-number {
  font-family: var(--font-sans);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.3rem 0;
}

.level-sep {
  color: var(--text-dim);
  font-weight: 300;
}

/* ── Progress Bar ─────────────────────────────── */
.progress-bar {
  width: 100%;
  max-width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin: 0.8rem auto 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
  border-radius: 2px;
  width: 0%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--neon-green-glow);
}

/* ================================================
   SCREEN 6: TRANSITION
   ================================================ */
.transition-container {
  text-align: center;
}

.transition-icon {
  font-size: 3rem;
  width: 80px;
  height: 80px;
  line-height: 80px;
  text-align: center;
  border-radius: 50%;
  border: 2px solid var(--neon-green);
  color: var(--neon-green);
  margin: 0 auto 1.5rem;
  box-shadow:
    0 0 20px var(--neon-green-glow),
    inset 0 0 20px rgba(0, 255, 65, 0.05);
  animation: pulse-ring 1.5s ease-in-out infinite;
  text-shadow: 0 0 10px var(--neon-green-glow);
}

@keyframes pulse-ring {
  0%,
  100% {
    box-shadow:
      0 0 20px var(--neon-green-glow),
      inset 0 0 20px rgba(0, 255, 65, 0.05);
  }
  50% {
    box-shadow:
      0 0 40px var(--neon-green-glow),
      0 0 60px rgba(0, 255, 65, 0.1),
      inset 0 0 20px rgba(0, 255, 65, 0.05);
  }
}

.transition-text {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--neon-green);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px var(--neon-green-glow);
}

.transition-subtext {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-green);
  animation: dot-bounce 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.15s;
}
.loading-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dot-bounce {
  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.3;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ================================================
   SCREEN 7: VAULT
   ================================================ */
.vault-container {
  text-align: center;
}

.vault-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neon-green);
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px var(--neon-green-glow);
  animation: pulse-text 1.5s ease-in-out infinite;
}

@keyframes pulse-text {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.vault-subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
}

.vault-wrapper {
  position: relative;
  width: 280px;
  height: 200px;
  margin: 0 auto;
  perspective: 800px;
}

.vault-door {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  transition: transform 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.vault-door-left {
  left: 0;
  transform-origin: left center;
}

.vault-door-right {
  right: 0;
  transform-origin: right center;
}

.vault-surface {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2a35, #1a1a25, #2a2a35);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.vault-door-left .vault-surface {
  border-radius: 8px 0 0 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.vault-door-right .vault-surface {
  border-radius: 0 8px 8px 0;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.vault-handle-ring {
  width: 40px;
  height: 40px;
  border: 3px solid var(--neon-amber);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.3);
  transition: transform 1.5s ease;
}

.vault-bolts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vault-bolts span {
  width: 18px;
  height: 4px;
  background: var(--text-dim);
  border-radius: 2px;
  transition:
    transform 1s ease,
    background 1s ease;
}

/* Vault Opening Animation States */
.vault-wrapper.opening .vault-handle-ring {
  transform: rotate(360deg);
}

.vault-wrapper.opening .vault-bolts span {
  transform: translateX(-8px);
  background: var(--neon-green);
}

.vault-wrapper.opening .vault-door-left {
  transform: rotateY(-110deg);
}

.vault-wrapper.opening .vault-door-right {
  transform: rotateY(110deg);
}

.vault-light {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    var(--gold) 0%,
    rgba(255, 215, 0, 0.3) 40%,
    transparent 70%
  );
  transition:
    width 2s ease 0.5s,
    height 2s ease 0.5s;
  pointer-events: none;
}

.vault-wrapper.opening .vault-light {
  width: 300px;
  height: 300px;
}

/* ================================================
   SCREEN 8: VOUCHER / FINALE
   ================================================ */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

#voucher-screen {
  z-index: 20;
}

#voucher-screen.active {
  background: radial-gradient(
    ellipse at center,
    rgba(30, 20, 10, 0.8) 0%,
    var(--bg-primary) 70%
  );
}

.voucher-wrapper {
  text-align: center;
  max-width: 750px;
  width: 100%;
  padding: 1rem 0;
}

/* ── Birthday Title ───────────────────────────── */
.birthday-title {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--gold),
    var(--gold-light),
    var(--gold)
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer-text 3s ease-in-out infinite;
  margin-bottom: 0.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.birthday-title.reveal {
  opacity: 1;
  transform: translateY(0);
}

@keyframes shimmer-text {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.birthday-subtitle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-weight: 300;
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 0.8s ease 0.2s,
    transform 0.8s ease 0.2s;
}

.birthday-subtitle.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ── Voucher Card ─────────────────────────────── */
.voucher-card {
  position: relative;
  background: linear-gradient(160deg, #1a1510 0%, #0f0d0a 50%, #1a1510 100%);
  border: 2px solid var(--gold-dark);
  border-radius: 12px;
  padding: 3px;
  margin: 0 auto 2rem;
  max-width: 400px;
  overflow: hidden;
  box-shadow:
    0 0 30px rgba(255, 215, 0, 0.15),
    0 10px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition:
    opacity 1s ease 0.5s,
    transform 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s;
}

.voucher-card.reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Shimmer sweep */
.voucher-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 215, 0, 0.06) 40%,
    rgba(255, 215, 0, 0.12) 50%,
    rgba(255, 215, 0, 0.06) 60%,
    transparent 100%
  );
  z-index: 5;
  pointer-events: none;
  animation: shimmer-sweep 4s ease-in-out infinite 1.5s;
}

@keyframes shimmer-sweep {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}

/* Corner Ornaments */
.voucher-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  z-index: 2;
}

.voucher-corner::before,
.voucher-corner::after {
  content: "";
  position: absolute;
  background: var(--gold);
}

.corner-tl {
  top: 8px;
  left: 8px;
}
.corner-tr {
  top: 8px;
  right: 8px;
}
.corner-bl {
  bottom: 8px;
  left: 8px;
}
.corner-br {
  bottom: 8px;
  right: 8px;
}

.corner-tl::before {
  top: 0;
  left: 0;
  width: 20px;
  height: 1px;
}
.corner-tl::after {
  top: 0;
  left: 0;
  width: 1px;
  height: 20px;
}

.corner-tr::before {
  top: 0;
  right: 0;
  width: 20px;
  height: 1px;
}
.corner-tr::after {
  top: 0;
  right: 0;
  width: 1px;
  height: 20px;
}

.corner-bl::before {
  bottom: 0;
  left: 0;
  width: 20px;
  height: 1px;
}
.corner-bl::after {
  bottom: 0;
  left: 0;
  width: 1px;
  height: 20px;
}

.corner-br::before {
  bottom: 0;
  right: 0;
  width: 20px;
  height: 1px;
}
.corner-br::after {
  bottom: 0;
  right: 0;
  width: 1px;
  height: 20px;
}

/* Inner content */
.voucher-inner {
  background: linear-gradient(160deg, #1a1510, #12100d, #1a1510);
  border: 1px dashed rgba(255, 215, 0, 0.25);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

.voucher-header-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.voucher-star {
  color: var(--gold);
  font-size: 1rem;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.voucher-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--gold);
  font-weight: 600;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.voucher-divider-line {
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold-dark),
    transparent
  );
  margin: 0.8rem auto;
}

.voucher-body-section {
  padding: 1rem 0;
}

.voucher-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--gold-light),
    var(--gold),
    var(--gold-dark)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.voucher-or {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin: 0.6rem 0;
  font-weight: 300;
  letter-spacing: 0.1em;
}

.voucher-alt {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1.5;
}

.voucher-footer-section {
  margin-top: 0.5rem;
}

.voucher-validity {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 0.4rem;
}

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

/* ── Closing Message ──────────────────────────── */
.closing-message {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 1200px;
  margin: 0 auto;
  font-weight: 300;
  min-height: 3em;
  text-shadow: 0 0 4px rgba(255, 215, 0, 0.1);
}

.closing-message::after {
  content: "▋";
  animation: blink-cursor 0.8s step-end infinite;
  margin-left: 2px;
  color: var(--gold);
  opacity: 0.6;
}

.closing-message.done::after {
  display: none;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 640px) {
  html {
    font-size: 14px;
  }

  .glitch {
    font-size: 1.3rem;
    letter-spacing: 0.1em;
  }

  .level-number {
    font-size: 2rem;
  }

  .terminal-body {
    padding: 1rem;
  }

  .voucher-inner {
    padding: 1.5rem 1rem;
  }

  .voucher-title {
    font-size: 1.5rem;
  }

  .voucher-alt {
    font-size: 1rem;
  }

  .birthday-title {
    font-size: 1.5rem;
  }

  .vault-wrapper {
    width: 220px;
    height: 160px;
  }

  .btn-neon {
    padding: 0.7rem 2rem;
    font-size: 0.8rem;
  }

  .classified-stamp {
    font-size: 0.9rem;
    padding: 0.25rem 1rem;
  }
}

@media (max-width: 380px) {
  .screen {
    padding: 1rem;
  }

  .voucher-inner {
    padding: 1.2rem 0.8rem;
  }

  .voucher-title {
    font-size: 1.3rem;
  }
}

/* ── Skip Button (Dev Mode) ───────────────────── */
.dev-skip-btn {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 9999;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(255, 0, 64, 0.15);
  color: var(--neon-red);
  border: 1px solid rgba(255, 0, 64, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.1em;
}

.dev-skip-btn:hover {
  background: rgba(255, 0, 64, 0.25);
}
