/* ==========================================================================
   DINO NEON OVERDRIVE - DESIGN SYSTEM & UI THEME
   Directly inspired by the official Cyber Evolution & Overdrive Art Direction
   ========================================================================== */

:root {
  --bg-dark: #04050e;
  --bg-gradient: radial-gradient(circle at 50% 20%, #150a2e 0%, #060714 60%, #030408 100%);
  --panel-bg: rgba(10, 13, 30, 0.88);
  --panel-border: rgba(0, 240, 255, 0.22);
  --panel-border-bright: rgba(0, 240, 255, 0.55);
  --panel-glow: 0 8px 32px rgba(0, 0, 0, 0.6), inset 0 0 16px rgba(0, 240, 255, 0.05);

  --neon-cyan: #00f0ff;
  --neon-magenta: #ff007f;
  --neon-pink: #ff2a85;
  --neon-purple: #9d4edd;
  --neon-gold: #ffd700;
  --neon-green: #00ff66;
  --neon-orange: #ff6b00;
  --neon-diamond: #00d4ff;

  --text-white: #ffffff;
  --text-muted: #8d99ae;
  --text-dim: #5c677d;

  --glow-cyan: 0 0 15px rgba(0, 240, 255, 0.55);
  --glow-magenta: 0 0 15px rgba(255, 0, 127, 0.55);
  --glow-gold: 0 0 15px rgba(255, 215, 0, 0.55);
  --glow-diamond: 0 0 15px rgba(0, 212, 255, 0.55);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

body {
  background: var(--bg-gradient);
  color: var(--text-white);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow-x: hidden;
}

/* MAIN CONTAINER GRID (1280px MAX) */
.game-master-wrapper {
  width: 100%;
  max-width: 1300px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* TOP STATUS BAR (COMMON ACROSS SCREENS) */
.global-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 10px 22px;
  backdrop-filter: blur(14px);
  box-shadow: var(--panel-glow);
}

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

.brand-logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}

.brand-badge {
  background: linear-gradient(135deg, var(--neon-magenta), #7b2cbf);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: var(--glow-magenta);
}

.top-currencies {
  display: flex;
  align-items: center;
  gap: 12px;
}

.currency-capsule {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 5px 14px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: bold;
}

.currency-capsule.gold {
  color: var(--neon-gold);
  border-color: rgba(255, 215, 0, 0.25);
  text-shadow: var(--glow-gold);
}

.currency-capsule.diamond {
  color: var(--neon-diamond);
  border-color: rgba(0, 212, 255, 0.25);
  text-shadow: var(--glow-diamond);
}

.icon-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--panel-border);
  color: var(--neon-cyan);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.icon-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: var(--glow-cyan);
  transform: scale(1.05);
}

/* ==========================================================================
   VIEW SCREENS CONTAINER
   ========================================================================== */
.view-screens-container {
  position: relative;
  width: 100%;
  height: 580px;
  min-height: 580px;
  border-radius: 18px;
  border: 2px solid var(--panel-border);
  background: #04050d;
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.15), inset 0 0 25px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

/* Each screen view */
.screen-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  z-index: 5;
  overflow: hidden;
}

.screen-view.active {
  display: flex;
}

/* ==========================================================================
   1. MAIN MENU SCREEN (TELA INICIAL)
   ========================================================================== */
.menu-view-layout {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 580px;
  display: flex;
  justify-content: space-between;
  padding: 35px 45px;
  background: radial-gradient(circle at 65% 40%, rgba(157, 78, 221, 0.25) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(0, 240, 255, 0.15) 0%, transparent 50%),
              #050614;
}

.menu-hero-area {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 600px;
  z-index: 2;
}

.menu-hero-logo h1 {
  font-size: 3.8rem;
  font-weight: 900;
  font-style: italic;
  line-height: 0.95;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-shadow: 0 0 25px var(--neon-cyan);
}

.menu-hero-logo h2 {
  font-size: 3.4rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--neon-magenta);
  text-shadow: 0 0 25px var(--neon-magenta);
}

.menu-hero-subtitle {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 8px;
  color: #fff;
  margin-top: 4px;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.menu-tagline-box {
  background: rgba(10, 13, 30, 0.7);
  border-left: 3px solid var(--neon-cyan);
  padding: 12px 18px;
  border-radius: 0 10px 10px 0;
  backdrop-filter: blur(10px);
}

.menu-tagline-box .tagline-pills {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.menu-tagline-box .tagline-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  margin-top: 3px;
}

/* MENU ACTION BUTTONS (VERTICAL STACK ON RIGHT) */
.menu-nav-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 250px;
  justify-content: center;
  z-index: 2;
}

.btn-primary-play {
  background: linear-gradient(135deg, #ff007f 0%, #d90429 100%);
  border: 2px solid #ff2a85;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 16px 24px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 25px rgba(255, 0, 127, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
}

.btn-primary-play:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 40px rgba(255, 0, 127, 0.9);
}

.btn-menu-option {
  background: rgba(12, 16, 38, 0.85);
  border: 1px solid var(--panel-border);
  color: #e2e8f0;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.btn-menu-option .btn-icon {
  font-size: 1.1rem;
  color: var(--neon-cyan);
}

.btn-menu-option:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: translateX(-4px);
}

/* ==========================================================================
   2. IN-GAME SCREEN (GAMEPLAY & HUD)
   ========================================================================== */
#gameplayScreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#game,
#gameCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* IN-GAME TOP HUD BAR (MATCHING IMAGE TOP-LEFT) */
.hud-top-overlay {
  position: absolute;
  top: 14px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 10;
}

/* SCORE CAPSULE */
.hud-score-card {
  background: rgba(8, 11, 26, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 12px;
  padding: 8px 16px;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.score-details-col {
  display: flex;
  flex-direction: column;
}

.hud-lbl {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hud-score-val {
  font-family: 'Courier New', monospace;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.hud-recorde-val {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.multiplier-badge {
  background: linear-gradient(135deg, #7b2cbf, var(--neon-magenta));
  border: 1px solid var(--neon-pink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: var(--glow-magenta);
  font-style: italic;
}

/* SPEEDOMETER IN CENTER */
.hud-speedometer-card {
  background: rgba(8, 11, 26, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 12px;
  padding: 6px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
}

.speedo-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.speedo-kmh {
  font-family: 'Courier New', monospace;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}

.speedo-bar-frame {
  width: 140px;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.speedo-bar-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #00f0ff, #ff007f);
  box-shadow: 0 0 8px #00f0ff;
  transition: width 0.1s linear;
}

/* RIGHT STATS & PAUSE */
.hud-right-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-capsule-stat {
  background: rgba(8, 11, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: bold;
}

.hud-capsule-stat.gold {
  color: var(--neon-gold);
  border-color: rgba(255, 215, 0, 0.3);
  text-shadow: var(--glow-gold);
}

.hud-capsule-stat.diamond {
  color: var(--neon-diamond);
  border-color: rgba(0, 212, 255, 0.3);
  text-shadow: var(--glow-diamond);
}

.btn-pause-ingame {
  pointer-events: auto;
  background: rgba(8, 11, 26, 0.9);
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-cyan);
  transition: all 0.2s ease;
}

.btn-pause-ingame:hover {
  background: var(--neon-cyan);
  color: #000;
  transform: scale(1.05);
}

/* BOTTOM-LEFT: OVERDRIVE CAPSULE */
.hud-bottom-overlay {
  position: absolute;
  bottom: 18px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  pointer-events: none;
}

.overdrive-badge-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(8, 11, 26, 0.9);
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-cyan);
}

.overdrive-bar-wrapper {
  background: rgba(8, 11, 26, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 5px 12px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overdrive-title-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.overdrive-progress-slot {
  width: 130px;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.overdrive-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff007f, #ffd700, #00f0ff);
  box-shadow: 0 0 10px var(--neon-cyan);
  transition: width 0.15s ease-out;
}

.overdrive-badge-icon.dash-badge {
  border-color: var(--neon-magenta);
  color: var(--neon-magenta);
  box-shadow: var(--glow-magenta);
  font-size: 1.1rem;
}

.dash-fill {
  background: linear-gradient(90deg, var(--neon-cyan), #ffffff);
  box-shadow: 0 0 8px var(--neon-cyan);
}

.hud-controls-footer {
  position: absolute;
  bottom: 18px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  background: rgba(8, 11, 26, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.hud-controls-footer b {
  color: var(--neon-cyan);
  font-family: 'Orbitron', monospace;
  font-weight: 700;
}

.hud-controls-footer .divider {
  color: var(--neon-magenta);
  opacity: 0.6;
}

/* ==========================================================================
   3. GARAGEM (SKINS & PEDESTAL) SCREEN
   ========================================================================== */
.subview-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(10, 13, 30, 0.6);
}

.back-btn-title {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.back-btn-title span {
  font-size: 1.3rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.subview-tabs-strip {
  display: flex;
  gap: 8px;
}

.subtab-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.subtab-pill.active {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.4);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* GARAGE MAIN BODY: 3 COLUMNS */
.garage-body-grid {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  height: calc(100% - 65px);
  padding: 16px;
  gap: 16px;
}

.skins-side-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 6px;
}

.skin-row-card {
  background: rgba(14, 18, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.skin-row-card:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.3);
}

.skin-row-card.selected {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.12);
  box-shadow: var(--glow-cyan);
}

.skin-dot-bullet {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.skin-icon {
  width: 72px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 70%, rgba(0, 240, 255, 0.14), rgba(4, 6, 20, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.skin-row-card.locked .skin-icon {
  filter: brightness(0.5) saturate(0.55);
}

.skin-row-card.selected .skin-icon {
  border-color: var(--neon-cyan);
}

.skin-card-text {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.skin-card-name {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

.skin-card-species {
  font-size: 0.66rem;
  color: var(--neon-cyan);
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}

.skin-card-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

#menuDinoCanvas {
  width: 100%;
  max-width: 560px;
  height: auto;
  align-self: flex-start;
  filter: drop-shadow(0 0 18px rgba(0, 240, 255, 0.18));
}


/* CENTER PEDESTAL STAGE */
.garage-pedestal-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(circle at 50% 60%, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
}

#pedestalCanvas {
  width: 100%;
  max-width: 440px;
  height: 320px;
}

/* RIGHT SKIN SPECS CARD */
.skin-specs-card {
  background: rgba(12, 16, 38, 0.85);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(12px);
}

.specs-title {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}

.rarity-pill {
  display: inline-block;
  background: rgba(157, 78, 221, 0.25);
  border: 1px solid var(--neon-purple);
  color: #d8b4fe;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  margin: 6px 0 10px 0;
}

.specs-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.4;
}

.specs-perks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: #e2e8f0;
}

.btn-buy-equip {
  background: linear-gradient(135deg, #ff007f 0%, #7b2cbf 100%);
  border: 1px solid var(--neon-magenta);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--glow-magenta);
  transition: all 0.2s ease;
  width: 100%;
  margin-top: 15px;
}

.btn-buy-equip:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--neon-magenta);
}

.btn-buy-equip.equipped {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

/* ==========================================================================
   4. MELHORIAS (TECH UPGRADES) SCREEN
   ========================================================================== */
.upgrades-view-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: calc(100% - 65px);
  padding: 18px;
  gap: 18px;
}

.upgrades-category-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upg-cat-btn {
  background: rgba(14, 18, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upg-cat-btn.active, .upg-cat-btn:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.upgrades-cards-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding-right: 8px;
}

.upg-item-card {
  background: rgba(12, 16, 38, 0.85);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.upg-card-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.upg-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-cyan);
}

.upg-card-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.upg-card-name {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.upg-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.upg-pips-row {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.upg-pip {
  width: 16px;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

.upg-pip.filled {
  background: var(--neon-cyan);
  box-shadow: 0 0 6px var(--neon-cyan);
}

.btn-upg-action {
  background: rgba(255, 215, 0, 0.12);
  border: 1px solid var(--neon-gold);
  color: var(--neon-gold);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-upg-action:hover:not(:disabled) {
  background: var(--neon-gold);
  color: #000;
  box-shadow: var(--glow-gold);
}

.btn-upg-action:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   5. MISSÕES (CONTRATOS) SCREEN
   ========================================================================== */
.missions-view-layout {
  padding: 20px;
  height: calc(100% - 65px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mission-row-card {
  background: rgba(12, 16, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mission-row-card.done {
  border-color: var(--neon-green);
  background: rgba(0, 255, 102, 0.05);
}

.mission-meta-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mission-title-line {
  font-size: 0.88rem;
  font-weight: 700;
}

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

.mission-progress-bar {
  height: 100%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  width: 0%;
  transition: width 0.3s ease;
}

.mission-reward-tag {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--neon-gold);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-mission-action {
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 7px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mission-action:hover {
  background: var(--neon-cyan);
  color: #000;
}

.btn-mission-action.claimable {
  background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
  border-color: var(--neon-gold);
  color: #000;
  box-shadow: 0 0 15px var(--neon-gold);
  animation: pulseClaim 1s infinite alternate;
}

@keyframes pulseClaim {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

/* ==========================================================================
   6. MODAIS: GAME OVER & PAUSA (MATCHING IMAGE BOTTOM-LEFT & MIDDLE-RIGHT)
   ========================================================================== */
.modal-backdrop-layer {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 12, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-backdrop-layer.active {
  opacity: 1;
  pointer-events: auto;
}

/* GAME OVER MODAL */
.gameover-cyber-dialog {
  background: rgba(10, 13, 30, 0.95);
  border: 2px solid var(--neon-pink);
  box-shadow: 0 0 45px rgba(255, 42, 133, 0.35);
  border-radius: 18px;
  padding: 28px 36px;
  width: 90%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popIn 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.gameover-header-title {
  font-size: 2.6rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 4px;
  color: var(--neon-pink);
  text-shadow: var(--glow-magenta);
  text-align: center;
  text-transform: uppercase;
}

.gameover-data-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 20px;
}

.go-stat-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.go-stat-field .go-lbl {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.go-stat-field .go-val {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
}

.go-new-record-pill {
  display: inline-block;
  background: var(--neon-gold);
  color: #000;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 1px;
}

.gameover-actions-strip {
  display: flex;
  gap: 12px;
}

.btn-retry-magenta {
  flex: 1;
  background: linear-gradient(135deg, var(--neon-magenta) 0%, #d90429 100%);
  border: 2px solid var(--neon-pink);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 2px;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: var(--glow-magenta);
  transition: all 0.2s ease;
}

.btn-retry-magenta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px var(--neon-magenta);
}

.btn-exit-cyan {
  flex: 1;
  background: rgba(0, 240, 255, 0.1);
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 14px;
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn-exit-cyan:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: var(--glow-cyan);
}

/* PAUSE MODAL (MATCHING IMAGE MIDDLE-RIGHT) */
.pause-cyber-dialog {
  background: rgba(10, 13, 30, 0.95);
  border: 2px solid var(--neon-cyan);
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.35);
  border-radius: 18px;
  padding: 30px 40px;
  width: 90%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.pause-title-neon {
  font-size: 2.2rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 3px;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}

.pause-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pause-nav-btn {
  background: rgba(14, 18, 42, 0.85);
  border: 1px solid rgba(0, 240, 255, 0.3);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.pause-nav-btn:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: var(--glow-cyan);
}

.pause-nav-btn.primary {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--neon-cyan);
}

/* ==========================================================================
   7. ESTATÍSTICAS SCREEN (TELEMETRIA CYBERNETICA)
   ========================================================================== */
.stats-view-layout {
  padding: 24px 30px;
  height: calc(100% - 65px);
  overflow-y: auto;
}

.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.stat-metric-card {
  background: rgba(12, 16, 38, 0.85);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.stat-metric-card:hover {
  border-color: rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.15);
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card-icon {
  font-size: 1.4rem;
}

.stat-card-lbl {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-card-val {
  font-family: 'Courier New', monospace;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.stat-card-val.cyan {
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}

.stat-card-val.gold {
  color: var(--neon-gold);
  text-shadow: var(--glow-gold);
}

.stat-card-val.magenta {
  color: var(--neon-magenta);
  text-shadow: var(--glow-magenta);
}

.stat-card-val.diamond {
  color: var(--neon-diamond);
  text-shadow: var(--glow-diamond);
}

