@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --bg-deep: #0a0a0f;
  --bg-card: #12121c;
  --bg-card-hover: #1a1a2e;
  --neon-cyan: #00f0ff;
  --neon-magenta: #ff00aa;
  --neon-gold: #ffd000;
  --neon-green: #00ff88;
  --text-primary: #e8e6f0;
  --text-dim: #6b6888;
  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.4), 0 0 60px rgba(0, 240, 255, 0.15);
  --glow-magenta: 0 0 20px rgba(255, 0, 170, 0.4), 0 0 60px rgba(255, 0, 170, 0.15);
  --glow-gold: 0 0 20px rgba(255, 208, 0, 0.4), 0 0 60px rgba(255, 208, 0, 0.15);
  --radius: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Scanline overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.08) 2px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* Animated background grid */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
  z-index: 0;
}

@keyframes gridShift {
  0% { transform: perspective(500px) rotateX(0deg) translateY(0); }
  100% { transform: perspective(500px) rotateX(0deg) translateY(60px); }
}

/* Floating particles */
.particle {
  position: fixed;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: particleFloat linear infinite;
  opacity: 0;
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.container {
  position: relative;
  z-index: 10;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── INTRO SCREEN ── */
.intro {
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.intro h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(16px, 4vw, 28px);
  line-height: 1.8;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.3));
}

.intro .subtitle {
  font-size: 18px;
  color: var(--text-dim);
  font-weight: 300;
  letter-spacing: 0.5px;
  margin-bottom: 40px;
}

.intro .character-preview {
  font-size: 40px;
  letter-spacing: 12px;
  margin-bottom: 48px;
  animation: characterBounce 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

@keyframes characterBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.btn-start {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  padding: 20px 48px;
  background: transparent;
  color: var(--neon-cyan);
  border: 2px solid var(--neon-cyan);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.btn-start::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--neon-cyan);
  transform: translateX(-101%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.btn-start:hover {
  color: var(--bg-deep);
  box-shadow: var(--glow-cyan);
}

.btn-start:hover::before {
  transform: translateX(0);
}

/* ── SHARE SECTION ── */
.share-section {
  margin-top: 32px;
  text-align: center;
}

.share-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  color: #fff;
  letter-spacing: 0.5px;
}

.share-instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.share-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(225, 48, 108, 0.4);
}

.share-discord {
  background: #5865F2;
}

.share-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

/* Share toast notification */
.share-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neon-green);
  color: var(--bg-deep);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  z-index: 99999;
  animation: toastIn 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-toast-out {
  animation: toastOut 0.4s ease-in forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* ── ROSTER BUTTON ── */
.btn-roster {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 12px 24px;
  margin-top: 24px;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-roster:hover {
  color: var(--neon-gold);
  border-color: var(--neon-gold);
}

/* ── ROSTER LIST ── */
.roster-list {
  width: 100%;
  margin-top: 20px;
  animation: fadeInUp 0.5s ease-out;
}

.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.roster-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: var(--transition);
}

.roster-card:hover {
  border-color: rgba(0, 240, 255, 0.2);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}

.roster-emoji {
  font-size: 20px;
  flex-shrink: 0;
}

.roster-name {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
}

.roster-game {
  font-size: 10px;
  color: var(--text-dim);
  margin-left: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

.roster-stats {
  text-align: center;
  padding: 16px;
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* ── PROGRESS BAR ── */
.progress-container {
  width: 100%;
  margin-bottom: 40px;
  animation: fadeInUp 0.5s ease-out;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.progress-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--neon-cyan);
  letter-spacing: 1px;
}

.progress-count {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--text-dim);
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 10px;
  height: 10px;
  background: var(--neon-magenta);
  border-radius: 50%;
  box-shadow: var(--glow-magenta);
}

/* ── QUESTION CARD ── */
.question-card {
  width: 100%;
  animation: questionEnter 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.question-card.exiting {
  animation: questionExit 0.3s ease-in forwards;
}

@keyframes questionEnter {
  0% { opacity: 0; transform: translateX(60px) scale(0.95); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes questionExit {
  0% { opacity: 1; transform: translateX(0) scale(1); }
  100% { opacity: 0; transform: translateX(-60px) scale(0.95); }
}

.question-number {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--neon-magenta);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.question-text {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.choice-btn {
  width: 100%;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
}

.choice-btn .choice-key {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--text-dim);
  min-width: 20px;
  transition: color 0.3s;
}

.choice-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--neon-cyan);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.choice-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 240, 255, 0.2);
  transform: translateX(6px);
}

.choice-btn:hover::before {
  transform: scaleY(1);
}

.choice-btn:hover .choice-key {
  color: var(--neon-cyan);
}

.choice-btn.selected {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.choice-btn.selected::before {
  transform: scaleY(1);
  background: var(--neon-gold);
}

.choice-btn.selected .choice-key {
  color: var(--neon-gold);
}

/* ── RESULT SCREEN ── */
.result-screen {
  width: 100%;
  text-align: center;
  animation: resultReveal 1s ease-out;
}

@keyframes resultReveal {
  0% { opacity: 0; transform: scale(0.8); filter: blur(10px); }
  50% { opacity: 1; filter: blur(0); }
  100% { transform: scale(1); }
}

.result-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--neon-gold);
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.result-portrait {
  font-size: 80px;
  margin-bottom: 24px;
  animation: portraitFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 32px rgba(0, 240, 255, 0.3));
  position: relative;
}

.result-portrait-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--neon-cyan);
  box-shadow: var(--glow-cyan), inset 0 0 30px rgba(0, 240, 255, 0.1);
  animation: portraitFloat 3s ease-in-out infinite;
  transition: opacity 0.6s ease;
}

.result-portrait-emoji {
  font-size: 80px;
  transition: opacity 0.4s ease;
}

.result-portrait-loading {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 3px solid rgba(0, 240, 255, 0.2);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}

.result-portrait-loading::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--neon-cyan);
  animation: spinLoader 1s linear infinite;
}

@keyframes spinLoader {
  to { transform: rotate(360deg); }
}

.wiki-section {
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-left: 3px solid var(--neon-cyan);
  padding: 20px 24px;
  margin-bottom: 24px;
  text-align: left;
  position: relative;
}

.wiki-section .wiki-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--neon-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wiki-section .wiki-label img {
  width: 20px;
  height: 20px;
}

.wiki-section .wiki-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  opacity: 0.85;
}

.wiki-section .wiki-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--neon-cyan);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.wiki-section .wiki-link:hover {
  opacity: 1;
  text-decoration: underline;
}

@keyframes portraitFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-6px) rotate(1deg); }
  75% { transform: translateY(4px) rotate(-1deg); }
}

.result-name {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(18px, 5vw, 32px);
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
}

.result-game {
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 32px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.result-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px;
  text-align: left;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta), var(--neon-gold));
}

.result-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-weight: 300;
}

.result-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.trait-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: var(--neon-cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.result-quote {
  border-left: 3px solid var(--neon-magenta);
  padding: 16px 20px;
  font-style: italic;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  background: rgba(255, 0, 170, 0.03);
}

.result-quote .quote-attr {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 11px;
  color: var(--neon-magenta);
  font-family: 'Press Start 2P', monospace;
}

/* ── EXTRA INFO CARDS ── */
.result-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.extra-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.extra-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--neon-cyan);
}

.extra-card.magenta::before { background: var(--neon-magenta); }
.extra-card.gold::before { background: var(--neon-gold); }
.extra-card.green::before { background: var(--neon-green); }

.extra-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.extra-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 400;
  line-height: 1.5;
}

.result-funfact {
  background: rgba(255, 208, 0, 0.03);
  border: 1px solid rgba(255, 208, 0, 0.15);
  padding: 20px 24px;
  margin-top: 24px;
  text-align: left;
  position: relative;
}

.result-funfact::before {
  content: '💡';
  position: absolute;
  top: -12px;
  left: 16px;
  font-size: 20px;
  background: var(--bg-deep);
  padding: 0 8px;
}

.funfact-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--neon-gold);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.funfact-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 300;
}

.result-weakness {
  background: rgba(255, 0, 170, 0.03);
  border: 1px solid rgba(255, 0, 170, 0.15);
  padding: 20px 24px;
  margin-top: 16px;
  text-align: left;
  position: relative;
}

.result-weakness::before {
  content: '⚠️';
  position: absolute;
  top: -12px;
  left: 16px;
  font-size: 20px;
  background: var(--bg-deep);
  padding: 0 8px;
}

.weakness-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--neon-magenta);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.weakness-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 300;
}

/* ── SCORE BARS ── */
.score-bar-container {
  margin-top: 32px;
  text-align: left;
}

.score-bar-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--text-dim);
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  opacity: 0;
  animation: scoreReveal 0.4s ease-out forwards;
}

.score-row .score-char {
  font-size: 12px;
  min-width: 100px;
  text-align: right;
  color: var(--text-dim);
  font-weight: 300;
}

.score-row .score-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.score-row .score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0;
}

.score-row.winner .score-char {
  color: var(--neon-gold);
  font-weight: 600;
}

.score-row.winner .score-bar-fill {
  background: linear-gradient(90deg, var(--neon-gold), var(--neon-cyan));
}

.score-row .score-pct {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--text-dim);
  min-width: 36px;
}

@keyframes scoreReveal {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── BUTTONS ── */
.btn-restart {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  padding: 16px 40px;
  margin-top: 40px;
  background: transparent;
  color: var(--neon-magenta);
  border: 2px solid var(--neon-magenta);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.btn-restart::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--neon-magenta);
  transform: translateX(-101%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.btn-restart:hover {
  color: var(--bg-deep);
  box-shadow: var(--glow-magenta);
}

.btn-restart:hover::before {
  transform: translateX(0);
}

/* ── UTILITIES ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }

/* ── MOBILE ── */
/* ── NPC OVERLAY ── */
.npc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: npcFadeIn 0.4s ease-out;
  backdrop-filter: blur(8px);
}

@keyframes npcFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.npc-popup {
  background: var(--bg-card);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 40px 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: npcSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.npc-popup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
}

@keyframes npcSlideIn {
  from { opacity: 0; transform: translateY(30px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.npc-portrait {
  font-size: 56px;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 20px rgba(0, 255, 136, 0.3));
}

.npc-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--neon-green);
  margin-bottom: 4px;
}

.npc-game {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.npc-line {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  font-style: italic;
  padding: 16px;
  background: rgba(0, 255, 136, 0.04);
  border-left: 3px solid var(--neon-green);
  text-align: left;
  margin-bottom: 24px;
}

.npc-dismiss {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  padding: 14px 32px;
  background: transparent;
  color: var(--neon-green);
  border: 2px solid var(--neon-green);
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
}

.npc-dismiss::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--neon-green);
  transform: translateX(-101%);
  transition: transform 0.4s ease;
  z-index: -1;
}

.npc-dismiss:hover {
  color: var(--bg-deep);
}

.npc-dismiss:hover::before {
  transform: translateX(0);
}

/* ── RECAP ── */
.recap-container {
  margin-top: 40px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg-card);
  overflow: hidden;
}

.recap-header {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.recap-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--neon-cyan);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.recap-subtitle-main {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 300;
}

/* Profile */
.recap-profile {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 240, 255, 0.02);
}

.recap-profile-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.recap-profile-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  color: var(--neon-gold);
  margin-bottom: 8px;
}

.recap-profile-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 300;
  margin-bottom: 16px;
}

.recap-profile-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recap-profile-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recap-bar-label {
  font-size: 11px;
  color: var(--text-dim);
  min-width: 70px;
  text-align: right;
}

.recap-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.recap-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-gold), var(--neon-cyan));
  transition: width 0.6s ease;
}

.recap-bar-count {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--text-dim);
  min-width: 30px;
}

/* NPC recap */
.recap-section {
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.recap-section:last-child {
  border-bottom: none;
}

.recap-subtitle {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--neon-green);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.recap-npc {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  margin-bottom: 8px;
  background: rgba(0, 255, 136, 0.03);
  border-left: 2px solid var(--neon-green);
}

.recap-npc-emoji {
  font-size: 24px;
  flex-shrink: 0;
}

.recap-npc-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recap-npc-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--neon-green);
}

.recap-npc-line {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.5;
}

/* Answer history */
.recap-answer {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.recap-answer:last-child {
  border-bottom: none;
}

.recap-q-number {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--text-dim);
  min-width: 28px;
  padding-top: 3px;
  flex-shrink: 0;
}

.recap-q-content {
  flex: 1;
}

.recap-q-text {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
  line-height: 1.4;
}

.recap-a-text {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.recap-a-letter {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.08);
  padding: 3px 6px;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 600px) {
  .container { padding: 24px 16px; }
  .question-text { font-size: 18px; }
  .choice-btn { padding: 14px 16px; font-size: 14px; }
  .result-card { padding: 24px 18px; }
  .result-portrait-emoji { font-size: 60px; }
  .result-portrait-img { width: 140px; height: 140px; }
  .result-portrait-loading { width: 140px; height: 140px; font-size: 50px; }
  .score-row .score-char { min-width: 70px; font-size: 11px; }
  .result-extras { grid-template-columns: 1fr; }
  .npc-popup { padding: 28px 20px; }
  .npc-portrait { font-size: 44px; }
  .recap-answer { gap: 8px; }
  .recap-section { padding: 16px; }
  .roster-grid { grid-template-columns: 1fr; }
  .roster-game { max-width: 80px; }
  .share-buttons { flex-direction: column; align-items: center; }
  .share-btn { width: 100%; max-width: 220px; justify-content: center; }
  .share-toast { font-size: 12px; padding: 12px 20px; white-space: normal; text-align: center; }
  .btn-start { padding: 18px 36px; font-size: 12px; }
}
