/* ============================================================
   THE REAL LIFE GAME — Design System & Styles
   ============================================================ */

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

:root {
  --bg: #000000;
  --surface: #080C08;
  --surface-border: rgba(0, 255, 136, 0.12);
  --neon: #00FF88;
  --neon-dim: rgba(0, 255, 136, 0.5);
  --neon-glow: rgba(0, 255, 136, 0.15);
  --neon-glow-strong: rgba(0, 255, 136, 0.35);
  --red: #FF4455;
  --red-dim: rgba(255, 68, 85, 0.12);
  --text: #E8E8E8;
  --text-dim: #777777;
  --text-muted: #383838;
  --font-pixel: 'Press Start 2P', monospace;
  --font-mono: 'Share Tech Mono', monospace;
  --font-number: 'Space Mono', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--neon-dim);
  border-radius: 2px;
}

input,
textarea,
button {
  font-family: inherit;
}

/* ============================================================
   RETROWAVE PERSPECTIVE GRID BACKGROUND
   ============================================================ */
.retrowave-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.grid-surface {
  position: absolute;
  left: -200%;
  width: 500%;
  height: 40%;
  background:
    repeating-linear-gradient(90deg,
      transparent 0,
      transparent calc(17px - 1px),
      rgba(0, 255, 136, 0.055) calc(17px - 1px),
      rgba(0, 255, 136, 0.055) 17px),
    repeating-linear-gradient(0deg,
      transparent 0,
      transparent calc(17px - 1px),
      rgba(0, 255, 136, 0.055) calc(17px - 1px),
      rgba(0, 255, 136, 0.055) 17px);
  will-change: background-position;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.grid-bottom {
  bottom: 0;
  transform-origin: center top;
  transform: perspective(500px) rotateX(70deg);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 65%, transparent 100%);
  animation: gridDriveDown 1.8s linear infinite;
}

.grid-top {
  top: 0;
  transform-origin: center bottom;
  transform: perspective(500px) rotateX(-70deg);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 15%, black 65%, transparent 100%);
  mask-image: linear-gradient(to top, transparent 0%, black 15%, black 65%, transparent 100%);
  animation: gridDriveUp 1.8s linear infinite;
}

.horizon-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--neon);
  opacity: 0.18;
  box-shadow: 0 0 20px var(--neon-glow-strong), 0 0 60px var(--neon-glow);
}

@keyframes gridDriveDown {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 17px;
  }
}

@keyframes gridDriveUp {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 -17px;
  }
}

/* ============================================================
   SCREEN SYSTEM
   ============================================================ */
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 350ms ease, visibility 0s linear 350ms;
  will-change: opacity;
}

.screen.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 350ms ease, visibility 0s linear 0s;
}

.screen-content {
  width: 100%;
  max-width: 430px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.screen-scroll {
  width: 100%;
  max-width: 430px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  height: 100%;
  padding-bottom: 60px;
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
#screen-landing .screen-content {
  justify-content: space-between;
  align-items: flex-start;
  text-align: center;
  padding-top: 52px;
  padding-bottom: 0;
}

.game-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: #ffffff;
  margin-bottom: 0;
  opacity: 0.85;
}

@keyframes blinkCursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.landing-middle {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding-bottom: 40px;
}

.trophy {
  font-size: 52px;
  filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.35));
  animation: trophyFloat 3s ease-in-out infinite;
}

@keyframes trophyFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.landing-title {
  font-family: var(--font-pixel);
  font-size: 18px;
  color: var(--neon);
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.5), 0 0 60px rgba(0, 255, 136, 0.2);
  letter-spacing: 2px;
}

.landing-subtitle {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.avatar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0A3D2A, #00FF88);
  border: 1px solid var(--neon-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.avatar-info {
  text-align: left;
}

.avatar-name {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: bold;
  color: var(--text);
}

.avatar-role {
  font-size: 10px;
  color: var(--text-dim);
}

.dream-badge {
  font-size: 9px;
  color: var(--neon);
  border: 1px solid var(--surface-border);
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  background: rgba(0, 255, 136, 0.04);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin: 6px 0;
}

.stat-panel {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: inset 0 0 20px rgba(0, 255, 136, 0.03);
}

.stat-label {
  font-size: 7px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stat-value {
  font-family: var(--font-number);
  font-size: 14px;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon-glow);
  white-space: nowrap;
}

.stat-sub {
  font-size: 7px;
  color: var(--text-muted);
}

.quadrant-badge {
  font-size: 9px;
  color: var(--neon-dim);
  letter-spacing: 0.5px;
}

/* CTA Button */
.cta-btn {
  width: 100%;
  padding: 18px 24px;
  background: transparent;
  border: 1px solid var(--neon);
  color: var(--neon);
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 2px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 300ms var(--ease);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.cta-btn:active {
  transform: scale(0.97);
  background: rgba(0, 255, 136, 0.08);
}

.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 10px var(--neon-glow), 0 0 30px rgba(0, 255, 136, 0.06);
  }

  50% {
    box-shadow: 0 0 20px var(--neon-glow-strong), 0 0 50px var(--neon-glow);
  }
}

.cta-filled {
  background: var(--neon) !important;
  color: #000 !important;
  font-family: var(--font-mono) !important;
  font-size: 15px !important;
  font-weight: bold;
  letter-spacing: 1px;
  border-color: var(--neon);
  animation: none;
}

.cta-filled:active {
  background: #00CC6A !important;
}

.landing-text {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

.landing-subtext {
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   ONBOARDING
   ============================================================ */
#screen-onboarding .screen-content {
  padding-top: env(safe-area-inset-top, 16px);
}

.onboarding-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 6px;
  min-height: 48px;
}

.back-btn {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--neon);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 300ms;
  flex-shrink: 0;
}

.back-btn.visible {
  opacity: 1;
}

.progress-track {
  flex: 1;
  height: 2px;
  background: var(--text-muted);
  border-radius: 1px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--neon);
  border-radius: 1px;
  transition: width 500ms var(--ease);
  box-shadow: 0 0 8px var(--neon-glow);
}

.onboarding-titles {
  text-align: center;
  padding: 16px 0 8px;
}

.onboarding-title {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--neon);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.onboarding-subtitle {
  font-size: 12px;
  color: var(--text-dim);
}

.question-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 80px;
  position: relative;
}

/* Question Slide */
.question-slide {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeSlideUp 400ms var(--ease) both;
}

.question-slide.exit {
  animation: fadeSlideDown 300ms ease-in both;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.question-text {
  font-size: 18px;
  color: var(--text);
  line-height: 1.4;
}

.question-helper {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  opacity: 0.8;
}

.question-subtext {
  font-size: 11px;
  color: var(--text-muted);
}

/* Text / number inputs — bottom border only */
.q-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--text-muted);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  padding: 12px 0;
  width: 100%;
  outline: none;
  transition: border-color 300ms;
  -webkit-appearance: none;
  border-radius: 0;
}

.q-input:focus {
  border-bottom-color: var(--neon);
}

.q-input::placeholder {
  color: var(--text-muted);
}

/* Currency input wrapper */
.currency-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
}

.currency-prefix {
  font-family: var(--font-number);
  font-size: 22px;
  color: var(--neon-dim);
  font-weight: 700;
}

.currency-wrap .q-input {
  font-family: var(--font-number);
  font-size: 22px;
  font-weight: 700;
}

/* Tag input (occupations, skills) */
.tag-input-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tags-display {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 10px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--neon);
  border-radius: 20px;
  font-size: 13px;
  color: var(--neon);
  background: rgba(0, 255, 136, 0.06);
  animation: fadeSlideUp 200ms var(--ease);
}

.tag-remove {
  cursor: pointer;
  opacity: 0.5;
  font-size: 14px;
  line-height: 1;
}

.tag-remove:hover {
  opacity: 1;
}

/* Binary choice (overwhelm question) */
.binary-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.choice-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 300ms var(--ease);
  display: flex;
  flex-direction: column;
  gap: 8px;
  -webkit-tap-highlight-color: transparent;
}

.choice-card:active,
.choice-card.selected {
  border-color: var(--neon);
  background: rgba(0, 255, 136, 0.06);
  box-shadow: 0 0 20px var(--neon-glow);
}

.choice-label {
  font-size: 13px;
  color: var(--text);
  font-weight: bold;
}

.choice-sub {
  font-size: 10px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Multi-select chips (vision) */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 10px 16px;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 200ms var(--ease);
  background: var(--surface);
  -webkit-tap-highlight-color: transparent;
}

.chip.selected {
  border-color: var(--neon);
  color: var(--neon);
  background: rgba(0, 255, 136, 0.08);
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.08);
}

.chip-custom-input {
  flex-basis: 100%;
  margin-top: 4px;
}

/* Segmented control (timeline) */
.segment-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  overflow: hidden;
}

.segment-option {
  flex: 1;
  padding: 14px 4px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 200ms var(--ease);
  border-right: 1px solid var(--surface-border);
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

.segment-option:last-child {
  border-right: none;
}

.segment-option.selected {
  background: rgba(0, 255, 136, 0.1);
  color: var(--neon);
  box-shadow: inset 0 0 20px rgba(0, 255, 136, 0.06);
}

/* Textarea (dream day, happiness, annoyances) */
.q-textarea {
  background: transparent;
  border: 1px solid var(--text-muted);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  padding: 14px;
  width: 100%;
  min-height: 110px;
  outline: none;
  resize: none;
  transition: border-color 300ms;
  -webkit-appearance: none;
  line-height: 1.5;
}

.q-textarea:focus {
  border-color: var(--neon);
}

.q-textarea::placeholder {
  color: var(--text-muted);
}

/* Next button (→) */
.next-btn {
  position: absolute;
  bottom: 24px;
  right: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--neon);
  color: var(--neon);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms var(--ease);
  box-shadow: 0 0 15px var(--neon-glow);
  -webkit-tap-highlight-color: transparent;
}

.next-btn:active {
  transform: scale(0.92);
  background: rgba(0, 255, 136, 0.1);
}

.next-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Location detected badge */
.location-detected {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--neon);
  opacity: 0;
  animation: fadeIn 500ms 300ms both;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Shake for validation */
.shake {
  animation: shakeInput 300ms ease-out;
}

@keyframes shakeInput {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-8px);
  }

  40% {
    transform: translateX(8px);
  }

  60% {
    transform: translateX(-5px);
  }

  80% {
    transform: translateX(5px);
  }
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#screen-loading .screen-content {
  justify-content: center;
  padding-bottom: 60px;
}

.loading-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 70vh;
  overflow: hidden;
}

.loading-msg {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  opacity: 0;
  transform: translateY(10px);
  animation: msgAppear 400ms var(--ease) forwards;
}

.loading-msg.past {
  color: var(--text-muted);
  transition: color 800ms;
}

.loading-msg.final {
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--neon);
  text-shadow: 0 0 20px var(--neon-glow-strong);
  justify-content: center;
  margin-top: 12px;
}

@keyframes msgAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  flex-shrink: 0;
  margin-top: 7px;
  animation: blinkDot 800ms ease-in-out infinite;
  box-shadow: 0 0 8px var(--neon-glow);
}

.msg-dot.done {
  animation: none;
  opacity: 0.3;
}

@keyframes blinkDot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.15;
  }
}

.loading-progress {
  position: absolute;
  bottom: 30px;
  right: 24px;
  font-family: var(--font-number);
  font-size: 11px;
  color: var(--text-muted);
}

/* Scan line */
.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--neon);
  opacity: 0.12;
  box-shadow: 0 0 15px var(--neon-glow-strong);
  animation: scanSweep 3.5s linear infinite;
}

@keyframes scanSweep {
  0% {
    top: 20%;
    opacity: 0;
  }

  10% {
    opacity: 0.12;
  }

  90% {
    opacity: 0.12;
  }

  100% {
    top: 80%;
    opacity: 0;
  }
}

/* Center glow (intensifies during loading) */
.loading-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--neon-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 1s;
  pointer-events: none;
}

/* ============================================================
   GAMEPLAN SCREEN
   ============================================================ */
#screen-gameplan {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.gameplan-content {
  padding-top: 40px !important;
  padding-bottom: 80px !important;
  gap: 20px;
  height: auto !important;
  min-height: 100%;
}

.section-title {
  font-family: var(--font-pixel);
  font-size: 12px;
  color: var(--neon);
  letter-spacing: 2px;
  text-align: center;
}

.section-subtitle {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

.reflection-text {
  font-style: italic;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.6;
  padding: 0 8px;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--neon);
  margin: 4px auto;
  box-shadow: 0 0 10px var(--neon-glow);
}

.here-text {
  text-align: center;
  font-size: 14px;
  color: var(--text);
}

/* Metrics grid */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  padding: 12px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 0 15px rgba(0, 255, 136, 0.03);
}

.metric-label {
  font-size: 7px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.metric-value {
  font-family: var(--font-number);
  font-size: 14px;
  font-weight: 700;
  color: var(--neon);
  text-shadow: 0 0 8px var(--neon-glow);
  white-space: nowrap;
}

.metric-note {
  font-size: 7px;
  color: var(--text-muted);
}

/* Chart */
.chart-container {
  width: 100%;
  height: 220px;
  position: relative;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 10px;
  color: var(--text-dim);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 3px;
  border-radius: 1px;
}

.legend-green {
  background: var(--neon);
}

.legend-red {
  background: var(--red);
}

/* Stats block */
.stats-block {
  text-align: center;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  line-height: 1.8;
  font-size: 12px;
  color: var(--text-dim);
}

.stats-block .highlight {
  color: var(--neon);
  font-family: var(--font-number);
  font-weight: 700;
}

.stats-explanation {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
  padding: 0 8px;
}

/* Milestones timeline */
.milestones {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 16px;
  border-left: 1px solid var(--surface-border);
}

.milestone {
  position: relative;
  padding: 12px 0 12px 20px;
}

.milestone::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 16px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 10px var(--neon-glow-strong);
}

.milestone-period {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--neon);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.milestone-text {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Philosophy */
.philosophy {
  text-align: center;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.philosophy p {
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.7;
}

.philosophy .final-line {
  font-family: var(--font-pixel);
  font-size: 10px;
  color: var(--neon);
  font-style: normal;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
  letter-spacing: 1px;
  margin-top: 4px;
}

.cta-subtext {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}

/* ============================================================
   CAPTURE / EMAIL SCREEN
   ============================================================ */
#screen-capture {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#screen-capture .screen-content {
  justify-content: center;
  height: auto;
  min-height: 100%;
  padding-top: 60px;
  padding-bottom: 60px;
  gap: 20px;
}

.capture-headline {
  font-size: 16px;
  color: var(--text);
  text-align: center;
  line-height: 1.5;
}

.capture-sub {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
}

#capture-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 0;
  font-size: 16px;
}

.input-group .q-input.has-prefix {
  padding-left: 28px;
}

.fine-print {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

/* Thank you */
.thank-you {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  animation: fadeSlideUp 600ms var(--ease);
}

.thank-check {
  font-size: 48px;
  color: var(--neon);
  text-shadow: 0 0 30px var(--neon-glow-strong);
}

.thank-name {
  font-size: 16px;
  color: var(--text);
}

.thank-sub {
  font-size: 12px;
  color: var(--text-dim);
}

/* Referral section */
.referral-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--surface-border);
  animation: fadeSlideUp 400ms var(--ease);
}

.referral-check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

.referral-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--neon);
  cursor: pointer;
}

.referral-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeSlideUp 300ms var(--ease);
}

.referral-explain {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.6;
}

.referral-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 12px;
  overflow: hidden;
}

.referral-link-text {
  flex: 1;
  font-size: 11px;
  color: var(--neon);
  word-break: break-all;
  font-family: var(--font-mono);
}

.copy-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid var(--neon);
  border-radius: 4px;
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  transition: all 200ms;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.copy-btn:active {
  background: rgba(0, 255, 136, 0.2);
}

.copy-btn.copied {
  background: var(--neon);
  color: #000;
}

/* ============================================================
   UTILITY
   ============================================================ */
.hidden {
  display: none !important;
}

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

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

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

/* Prevent body scroll when screens don't need it */
body.no-scroll {
  overflow: hidden;
}

/* Terminal blink with quick fade */
.cursor {
  display: inline-block;
  animation: terminalBlink 1s infinite;
}

@keyframes terminalBlink {

  0%,
  40% {
    opacity: 1;
  }

  50%,
  90% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}