/* ======================================================== */
/* TWIN CITIES MINI-GAMES · RETRO ARCADE & DRAGONKIND THEMES */
/* ======================================================== */

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

:root {
  /* Futuristic-Retro Arcade Palette (Clean, decluttered, no harsh yellow) */
  --retro-bg-dark: #07090e;
  --retro-bg-surface: #0c0f17;
  --retro-bg-card: rgba(13, 17, 26, 0.94);
  --retro-bg-card-hover: rgba(20, 26, 40, 0.98);
  --retro-cyan: #00f0ff;
  --retro-blue: #38bdf8;
  --retro-magenta: #ec4899;
  --retro-green: #10b981;
  --retro-purple: #8b5cf6;
  --retro-border: rgba(0, 240, 255, 0.25);
  --retro-border-subtle: rgba(255, 255, 255, 0.08);
  --font-pixel: 'Press Start 2P', monospace;
  --font-retro-sans: 'Outfit', -apple-system, sans-serif;

  /* Medieval Dragonkind Palette (Active inside Dragonkind game view) */
  --dragon-bg-deep: #08090c;
  --dragon-surface: #101218;
  --gold-primary: #d4af37;
  --gold-bright: #fbf1c7;
  --gold-dim: #997a15;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --ember-flame: #e8521f;
  --font-display: 'Cinzel', serif;
  --font-decorative: 'Cinzel Decorative', cursive;

  /* Global */
  --radius-sm: 4px;
  --radius-md: 10px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--retro-bg-dark);
  color: #e2e8f0;
  font-family: var(--font-retro-sans);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Background Retro Grid */
.bg-retro-grid {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  perspective: 500px;
  pointer-events: none;
  z-index: 0;
}

#embers-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.app-container {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

/* ======================================================== */
/* 1. RETRO ARCADE HOMEPAGE STYLING                         */
/* ======================================================== */

.retro-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: rgba(12, 16, 24, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid var(--retro-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 240, 255, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.retro-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pixel-icon {
  font-size: 26px;
  filter: drop-shadow(0 0 8px var(--retro-cyan));
}

.pixel-title {
  font-family: var(--font-pixel);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--retro-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.pixel-sub {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--retro-blue);
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.retro-nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Retro Player Pill */
.retro-player-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.retro-player-pill:hover {
  background: rgba(139, 92, 246, 0.25);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
  border-color: var(--retro-purple);
}

.player-icon {
  font-size: 16px;
}

.player-meta {
  display: flex;
  flex-direction: column;
}

.player-tag {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--retro-cyan);
  letter-spacing: 1px;
}

.player-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.retro-caret {
  font-size: 12px;
  color: var(--retro-purple);
}

/* Retro Buttons */
.retro-btn {
  background: rgba(14, 18, 28, 0.9);
  border: 1px solid var(--retro-border);
  color: var(--retro-cyan);
  font-family: var(--font-pixel);
  font-size: 9px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.retro-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--retro-cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

.retro-btn-action {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-pixel);
  font-size: 10px;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
  transition: var(--transition);
}

.retro-btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
  background: linear-gradient(135deg, #a855f7 0%, #4f46e5 100%);
}

.retro-btn-action.ext-btn {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
}

.retro-btn-action.ext-btn:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
}

/* Retro Hero & Compact Minimal Header */
.retro-hero {
  text-align: center;
  margin-bottom: 36px;
}

.arcade-hero-compact {
  display: inline-block;
  padding: 20px 36px;
  background: rgba(12, 16, 26, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--retro-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 240, 255, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.hero-chip {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--retro-cyan);
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 20px;
}

.arcade-banner-text {
  font-family: var(--font-pixel);
  font-size: clamp(18px, 3.2vw, 28px);
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.arcade-subtitle {
  font-family: var(--font-pixel);
  font-size: 9px;
  color: #94a3b8;
  letter-spacing: 1.5px;
}

/* Retro HUD Ribbon */
.retro-hud-ribbon {
  display: inline-flex;
  gap: 20px;
  background: rgba(12, 16, 26, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--retro-border-subtle);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  margin-bottom: 26px;
  flex-wrap: wrap;
  justify-content: center;
}

.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hud-label {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #64748b;
  letter-spacing: 1px;
}

.hud-val {
  font-family: var(--font-pixel);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
}

.highlight-green { color: var(--retro-green); }
.highlight-purple { color: var(--retro-purple); }
.highlight-cyan { color: var(--retro-cyan); }

/* Retro Search & Filters */
.retro-filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.retro-search {
  display: flex;
  align-items: center;
  background: rgba(12, 16, 26, 0.85);
  border: 1px solid var(--retro-border);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  width: 220px;
  transition: var(--transition);
}

.retro-search:focus-within {
  border-color: var(--retro-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.35);
}

.retro-search-icon {
  font-size: 12px;
  margin-right: 8px;
}

.retro-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 8px;
  width: 100%;
}

.filter-tabs-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  background: rgba(12, 16, 26, 0.85);
  border: 1px solid var(--retro-border-subtle);
  color: #94a3b8;
  font-family: var(--font-pixel);
  font-size: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover {
  color: #fff;
  border-color: var(--retro-cyan);
  background: rgba(0, 240, 255, 0.08);
}

.filter-tab.active {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--retro-cyan);
  color: var(--retro-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

/* Retro Section Header */
.retro-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 2px dashed var(--retro-border);
  padding-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.retro-section-title {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--retro-cyan);
  letter-spacing: 1px;
}

.retro-section-hint {
  font-family: var(--font-pixel);
  font-size: 8px;
  color: var(--retro-magenta);
}

/* Retro Game Grid & Cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.retro-card {
  background: var(--retro-bg-card);
  border: 2px solid var(--retro-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.retro-card:hover {
  transform: translateY(-5px);
  border-color: var(--retro-cyan);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.3);
}

.card-media-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.retro-card:hover .card-img {
  transform: scale(1.04);
}

.card-overlay-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
}

.badge-retro {
  font-family: var(--font-pixel);
  font-size: 8px;
  padding: 4px 8px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.badge-play {
  background: var(--retro-green);
  color: #000;
  font-weight: 700;
}

.badge-ext {
  background: var(--retro-cyan);
  color: #000;
  font-weight: 700;
}

.badge-type {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.retro-card .game-title {
  font-family: var(--font-pixel);
  font-size: 13px;
  color: var(--retro-yellow);
  margin-bottom: 6px;
  line-height: 1.4;
}

.retro-card .game-tagline {
  font-size: 13px;
  color: var(--retro-cyan);
  font-style: italic;
  margin-bottom: 10px;
}

.retro-card .game-desc {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 18px;
  flex-grow: 1;
  line-height: 1.5;
}

.card-footer {
  margin-top: auto;
}

.w-full {
  width: 100%;
}

.retro-footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--retro-border);
  font-family: var(--font-pixel);
  font-size: 8px;
  color: #64748b;
  letter-spacing: 1px;
}

/* ======================================================== */
/* 2. DRAGONKIND IN-GAME STYLING (Fourth Wing Medieval)    */
/* ======================================================== */

.dragon-game-view {
  animation: fadeIn 0.4s ease forwards;
}

.dragon-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: rgba(16, 18, 24, 0.95);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 20px var(--gold-glow);
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.dragon-brand-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dragon-crest {
  font-size: 22px;
}

.dragon-nav-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-bright);
}

.dragon-nav-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dragon-nav-btn {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dragon-nav-btn:hover {
  background: rgba(212, 175, 55, 0.25);
  box-shadow: 0 0 12px var(--gold-glow);
}

.dragon-nav-btn.return-btn {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.dragon-nav-btn.return-btn:hover {
  border-color: #fff;
}

/* Ornate Medieval Frame */
.ornate-frame {
  position: relative;
  background: var(--dragon-surface);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
  padding: 30px;
}

.ornate-frame::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: calc(var(--radius-md) - 3px);
  pointer-events: none;
}

/* Conscription & Manifest */
.conscription-screen {
  max-width: 720px;
  margin: 0 auto;
}

.herald-header {
  text-align: center;
  margin-bottom: 28px;
}

.filigree-badge {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.conscription-title {
  font-family: var(--font-decorative);
  font-size: clamp(30px, 5.5vw, 48px);
  color: var(--gold-bright);
  line-height: 1.15;
  margin-bottom: 14px;
}

.conscription-title span { display: block; }

.conscription-subtitle {
  font-size: 15px;
  color: #94a3b8;
}

.card-heading {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-bright);
  margin-bottom: 18px;
  text-align: center;
  letter-spacing: 1px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.form-group input, .form-group select {
  width: 100%;
  background: rgba(10, 11, 14, 0.85);
  border: 1px solid var(--gold-primary);
  color: #fff;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
  box-shadow: 0 0 15px var(--gold-glow);
}

.roster-preview-pill {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-primary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--gold-bright);
}

.btn-primary {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #0b0c10;
  border: 1px solid #ffd700;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--gold-primary);
  color: var(--gold-bright);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.15);
  box-shadow: 0 0 12px var(--gold-glow);
}

/* Zone Progression */
.zone-screen {
  max-width: 840px;
  margin: 0 auto;
}

.zone-header {
  margin-bottom: 24px;
  text-align: center;
}

.progress-bar-container {
  max-width: 480px;
  margin: 0 auto 14px;
}

.progress-label {
  font-size: 11px;
  color: var(--gold-dim);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d4af37, #f59e0b);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.zone-badge {
  display: inline-block;
  font-size: 13px;
  color: var(--gold-primary);
  font-style: italic;
  margin-bottom: 4px;
}

.zone-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold-bright);
  letter-spacing: 2px;
}

.narrative-intro {
  font-size: 16px;
  margin-bottom: 18px;
  line-height: 1.7;
}

.narrative-prompt {
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--gold-primary);
  padding: 12px 18px;
  margin-bottom: 22px;
  font-size: 15px;
  color: var(--gold-bright);
}

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

.choice-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: var(--transition);
  font-size: 15px;
}

.choice-btn:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-bright);
  transform: translateX(4px);
  box-shadow: 0 0 15px var(--gold-glow);
}

.choice-btn.selected {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold-bright);
  box-shadow: 0 0 20px var(--gold-glow);
}

.choice-btn:disabled:not(.selected) {
  opacity: 0.45;
  cursor: not-allowed;
}

.choice-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold-primary);
  min-width: 22px;
}

.choice-feedback {
  margin-top: 22px;
  padding: 18px;
  background: rgba(10, 11, 14, 0.9);
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  text-align: center;
}

.choice-feedback p {
  color: var(--gold-bright);
  font-size: 15px;
  margin-bottom: 14px;
}

/* Torched Screen */
.torched-screen {
  max-width: 760px;
  margin: 0 auto;
}

.torched-banner-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  border: 2px solid var(--ember-flame);
  box-shadow: 0 0 30px rgba(232, 82, 31, 0.5);
}

.torched-banner-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.torched-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(10, 11, 14, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  text-align: center;
}

.torched-headline {
  font-family: var(--font-decorative);
  font-size: 40px;
  color: #ff4d4d;
  letter-spacing: 4px;
  text-shadow: 0 0 25px rgba(255, 77, 77, 0.8);
}

.torched-sub {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 3px;
  color: #ff9900;
}

.torched-card {
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  text-align: center;
}

.torched-message {
  font-size: 16px;
  color: #fca5a5;
  margin-bottom: 18px;
}

.cadet-epitaph {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 22px;
}

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

/* Bonded Screen */
.bonded-screen {
  max-width: 820px;
  margin: 0 auto;
}

.bonded-banner-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  overflow: hidden;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 35px var(--gold-glow);
  background: #050608;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bonded-banner-img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  background: radial-gradient(circle at center, #1e1930 0%, #08090c 100%);
  display: block;
}

.bonded-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 11, 14, 0.96) 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  text-align: center;
}

/* Valley Bestiary Details Modal: Whole Dragon Showing (No Clipping) */
.dragon-full-modal {
  padding: 0 !important;
  overflow: hidden;
  max-width: 820px !important;
}

.preview-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  background: #050608;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  background: radial-gradient(circle at center, #1e1930 0%, #08090c 100%);
  display: block;
}

.preview-hero-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 11, 15, 0.96) 80%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 24px;
  text-align: left;
}

.preview-hero-overlay .badge-rarity {
  align-self: flex-start;
  margin-bottom: 4px;
}

.preview-hero-overlay .preview-title {
  font-family: var(--font-decorative);
  font-size: 32px;
  letter-spacing: 2px;
  margin-bottom: 2px;
}

.preview-hero-overlay .preview-tagline {
  font-size: 14px;
  color: var(--gold-bright);
  font-style: italic;
}

.preview-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  padding: 0 24px 24px;
  flex-wrap: wrap;
}

.badge-rarity {
  align-self: center;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.badge-rarity.mythic {
  background: linear-gradient(90deg, #d4af37, #fff);
  color: #0b0c10;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.8);
}
.badge-rarity.legendary { background: #3b82f6; color: #fff; }
.badge-rarity.rare { background: #10b981; color: #fff; }
.badge-rarity.uncommon { background: #f97316; color: #fff; }
.badge-rarity.common { background: #a87954; color: #fff; }
.badge-rarity.secret { background: linear-gradient(90deg, #f59e0b, #ec4899); color: #fff; }

.bonded-headline {
  font-family: var(--font-decorative);
  font-size: clamp(24px, 4vw, 36px);
  color: var(--gold-bright);
  text-shadow: 0 0 20px var(--gold-glow);
}

.bonded-proclamation {
  font-style: italic;
  color: var(--gold-primary);
  font-size: 15px;
}

.dragon-result-card {
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.dragon-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  padding-bottom: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 16px;
}

.dragon-prefix {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--gold-dim);
  letter-spacing: 2px;
}

.dragon-title {
  font-family: var(--font-decorative);
  font-size: 38px;
  letter-spacing: 2px;
}

.dragon-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dragon-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
}

.dragon-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.detail-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.signet-box { border-width: 1.5px; }

.detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-dim);
  margin-bottom: 6px;
}

.signet-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

/* ======================================================== */
/* 3. MODALS, BESTIARY DRAWER & CERTIFICATES               */
/* ======================================================== */

.generic-modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1001;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-size: 28px;
  cursor: pointer;
}

.modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.crest-mini {
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
}

.modal-heading {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-bright);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 13px;
  color: #94a3b8;
}

/* Rarity Guide Modal */
.rarity-guide-panel { max-width: 960px; }

.rarity-content-scroll {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.rarity-section-title {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--gold-bright);
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.table-responsive { overflow-x: auto; }

.rarity-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.rarity-table th {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-bright);
  padding: 10px 14px;
  font-family: var(--font-display);
  border-bottom: 1px solid var(--gold-primary);
}

.rarity-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pct-highlight {
  color: #f59e0b;
  font-size: 14px;
}

.apex-box {
  background: rgba(212, 175, 55, 0.06);
  border: 1px solid var(--gold-primary);
  padding: 20px;
}

.apex-title {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-size: 16px;
  margin-bottom: 6px;
}

/* Bestiary Drawer */
.codex-drawer {
  position: fixed;
  top: 0;
  right: -520px;
  width: min(500px, 92vw);
  height: 100vh;
  background: #0f1118;
  border-left: 2px solid var(--gold-primary);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
}

.codex-drawer.open { right: 0; }

.codex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--gold-primary);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.codex-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--gold-bright);
  letter-spacing: 1.5px;
}

.codex-close {
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-size: 24px;
  cursor: pointer;
}

.codex-body {
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clickable-codex {
  cursor: pointer;
  transition: var(--transition);
}

.clickable-codex:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: var(--gold-bright);
  transform: translateX(-4px);
  box-shadow: 0 0 15px var(--gold-glow);
}

.codex-item { padding: 14px; }

.codex-item-content {
  display: flex;
  gap: 14px;
  align-items: center;
}

.codex-thumb-wrapper {
  width: 90px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--gold-primary);
  flex-shrink: 0;
  background: #050608;
}

.codex-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.clickable-codex:hover .codex-thumb-img {
  transform: scale(1.08);
}

.codex-meta-col {
  flex: 1;
  min-width: 0;
}

.tail-config-badge {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold-bright);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--gold-primary);
  border-radius: 20px;
  padding: 4px 14px;
  display: inline-block;
  margin-top: 8px;
  backdrop-filter: blur(6px);
  letter-spacing: 0.5px;
}

.codex-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.codex-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.codex-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 12px;
}

.codex-item-info {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.codex-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--gold-dim);
}

.click-view-hint {
  color: var(--gold-bright);
  font-weight: 600;
}

.empty-codex {
  text-align: center;
  margin: auto;
  color: #94a3b8;
}

.empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

/* Certificate Modal */
.cert-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cert-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}

.cert-container {
  position: relative;
  z-index: 1101;
  max-width: 650px;
  width: 100%;
  background: #0f1118;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 50px var(--gold-glow);
  text-align: center;
  padding: 40px 32px;
}

.cert-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--gold-primary);
  font-size: 28px;
  cursor: pointer;
}

.cert-seal {
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.cert-title {
  font-family: var(--font-display);
  font-size: 23px;
  color: var(--gold-bright);
  letter-spacing: 2px;
  margin-bottom: 22px;
}

.cert-text {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.cert-dragon-highlight {
  font-family: var(--font-decorative);
  font-size: 36px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.cert-meta {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 20px;
}

.cert-signet-box {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold-primary);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 28px;
}

.cert-signature-row {
  display: flex;
  justify-content: space-around;
  margin-bottom: 28px;
}

.sig-line {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--gold-bright);
  border-bottom: 1px solid var(--gold-primary);
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.sig-title {
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
}

/* Toast */
.game-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  background: #141228;
  border: 2px solid var(--retro-cyan);
  color: var(--retro-cyan);
  font-family: var(--font-pixel);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  z-index: 2000;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.game-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Common Animations */
.animate-fade-in { animation: fadeIn 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.animate-scale-up { animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes scaleUp { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.shake-screen { animation: shake 0.6s ease; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }

.hidden { display: none !important; }

@media print {
  body * { visibility: hidden; }
  .cert-container, .cert-container * { visibility: visible; }
  .cert-container { position: absolute; left: 0; top: 0; width: 100%; border: 3px solid #000; background: #fff; color: #000; }
  .cert-backdrop, .cert-close { display: none !important; }
}

/* ======================================================== */
/* RESPONSIVE DESIGN (MOBILE, IPAD & DESKTOP OPTIMIZATIONS) */
/* ======================================================== */

/* Tablet & iPad (<= 1024px) */
@media (max-width: 1024px) {
  .app-container {
    padding: 16px 16px 60px;
  }
  
  .game-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .ornate-frame {
    padding: 24px 20px;
  }
  
  .conscription-screen {
    max-width: 100%;
  }

  .dragon-top-nav {
    padding: 12px 16px;
  }

  .rarity-guide-panel {
    max-width: 95vw;
  }
}

/* Mobile Devices & Smartphones (<= 640px) */
@media (max-width: 640px) {
  .app-container {
    padding: 12px 10px 50px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(40px, env(safe-area-inset-bottom));
  }

  /* Retro Nav on Mobile */
  .retro-nav {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .retro-nav-controls {
    justify-content: space-between;
    width: 100%;
  }

  .arcade-hero-compact {
    padding: 16px 18px;
    width: 100%;
  }

  .arcade-banner-text {
    font-size: 16px;
    letter-spacing: 1px;
  }

  .retro-hud-ribbon {
    gap: 12px;
    padding: 10px 14px;
    width: 100%;
  }

  .hud-val {
    font-size: 11px;
  }

  .retro-search {
    width: 100%;
  }

  .filter-tabs-group {
    width: 100%;
    justify-content: center;
  }

  .filter-tab {
    flex: 1 1 auto;
    text-align: center;
    padding: 8px 6px;
    font-size: 7px;
  }

  /* Game Tiles */
  .game-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Dragonkind Game Nav on Mobile */
  .dragon-top-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }

  .dragon-brand-center {
    justify-content: center;
  }

  .dragon-nav-title {
    font-size: 14px;
  }

  .dragon-nav-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
  }

  .dragon-nav-btn {
    flex: 1 1 0;
    justify-content: center;
    font-size: 11px;
    padding: 10px 6px;
    min-height: 44px;
  }

  .dragon-nav-btn.return-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Dragon Stage & Cards on Mobile */
  .ornate-frame {
    padding: 18px 14px;
    border-radius: var(--radius-sm);
  }

  .conscription-title {
    font-size: clamp(22px, 7vw, 32px);
  }

  .encounter-title {
    font-size: clamp(20px, 6vw, 28px);
  }

  /* Touch-friendly Choice Buttons (Minimum 48px hit target) */
  .choice-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .choice-card,
  .choice-btn {
    min-height: 52px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    width: 100%;
    touch-action: manipulation;
  }

  .choice-card:active,
  .choice-btn:active {
    transform: scale(0.98);
    background: rgba(212, 175, 55, 0.2);
  }

  .btn-gold,
  .btn-gold-action,
  .retro-btn-action {
    min-height: 48px;
    padding: 12px 18px;
    font-size: 11px;
    touch-action: manipulation;
  }

  /* Valley Bestiary / Codex Drawer (Full Screen on Mobile) */
  .codex-drawer {
    width: 100vw;
    max-width: 100vw;
    right: -100vw;
    padding: 16px 14px;
    border-left: none;
    box-shadow: none;
  }

  .codex-drawer.open {
    right: 0;
  }

  .codex-header {
    padding-bottom: 12px;
    margin-bottom: 14px;
  }

  .codex-title {
    font-size: 17px;
  }

  .codex-close {
    font-size: 32px;
    padding: 4px 8px;
    min-width: 44px;
    min-height: 44px;
  }

  /* Modals on Mobile */
  .modal-container,
  .cert-container,
  .dragon-full-modal,
  .rarity-guide-panel {
    width: 96vw !important;
    max-width: 96vw !important;
    max-height: 92vh !important;
    overflow-y: auto !important;
    padding: 18px 14px !important;
    margin: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .cert-container {
    padding: 24px 16px !important;
  }

  .cert-dragon-highlight {
    font-size: 26px;
  }

  .cert-signature-row {
    flex-direction: column;
    gap: 16px;
  }

  /* Rarity Guide Table Touch Scroll */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 14px;
  }

  .rarity-table {
    min-width: 480px;
    font-size: 11px;
  }

  .rarity-table th,
  .rarity-table td {
    padding: 8px 10px;
  }

  /* Bestiary Dragon Preview / Banner on Mobile */
  .preview-hero,
  .bonded-banner {
    aspect-ratio: 16 / 9;
    max-height: 240px;
  }

  .preview-hero-overlay .preview-title {
    font-size: 22px;
  }

  .preview-hero-overlay .preview-tagline {
    font-size: 12px;
  }

  .preview-actions {
    padding: 0 14px 18px;
    flex-direction: column;
    gap: 8px;
  }

  .preview-actions button {
    width: 100%;
  }

  /* Stat Meters on Mobile */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}


/* ======================================================== */
/* RETRO ARCADE PLAYER PROFILE MODAL                        */
/* ======================================================== */

.retro-profile-panel {
  background: #090d16 !important;
  border: 1px solid var(--retro-cyan) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 240, 255, 0.25) !important;
  border-radius: 12px;
  padding: 28px 24px;
  max-width: 580px !important;
  color: #e2e8f0;
}

.retro-modal-header {
  text-align: center;
  margin-bottom: 22px;
}

.retro-modal-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--retro-cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.retro-modal-heading {
  font-family: var(--font-display);
  font-size: 24px;
  color: #ffffff;
  letter-spacing: 2px;
  margin: 0 0 6px;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.retro-modal-sub {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

.retro-profiles-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 24px;
}

.retro-profiles-grid::-webkit-scrollbar {
  width: 6px;
}
.retro-profiles-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.3);
  border-radius: 3px;
}

.retro-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.retro-profile-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  background: rgba(15, 23, 42, 0.95);
}

.retro-profile-card.is-active {
  border-color: var(--retro-cyan);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}

.retro-profile-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.retro-profile-avatar {
  font-size: 24px;
  line-height: 1;
}

.retro-profile-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.retro-profile-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.retro-profile-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
}

.retro-pill-active {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #000;
  background: var(--retro-cyan);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.5);
}

.retro-profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.retro-active-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--retro-cyan);
}

.retro-btn-select {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--retro-cyan);
  background: transparent;
  border: 1px solid var(--retro-cyan);
  border-radius: 4px;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.retro-btn-select:hover {
  background: var(--retro-cyan);
  color: #000;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.retro-btn-delete {
  background: transparent;
  border: 1px solid #475569;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.retro-btn-delete:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.retro-new-profile-box {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
}

.retro-input-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.retro-input-row {
  display: flex;
  gap: 10px;
}

.retro-input-row input {
  flex: 1;
  background: #050811;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #ffffff;
  outline: none;
  transition: border-color 0.2s;
}

.retro-input-row input:focus {
  border-color: var(--retro-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.retro-input-row .retro-btn-action {
  white-space: nowrap;
  padding: 10px 18px;
}
