/* ==========================================================================
   BUCC Dino Runner & Boss Shooter - Master Styling
   Theme: BRAC University Computer Club Cyber-Arcade Aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800;900&family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-deep: #060913;
  --bg-dark: #0a1128;
  --bg-surface: #101c3d;
  --bg-glass: rgba(16, 28, 61, 0.75);
  --bg-glass-card: rgba(13, 23, 50, 0.85);
  
  --border-neon: rgba(0, 240, 255, 0.35);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-glow: 0 0 15px rgba(0, 240, 255, 0.3);
  
  --color-primary: #00f0ff;
  --color-primary-dark: #0077b6;
  --color-gold: #ffd166;
  --color-gold-glow: #ffb703;
  --color-accent: #ff007f;
  --color-purple: #9b5de5;
  --color-green: #00f5d4;
  --color-danger: #ff3366;
  
  --text-main: #f0f6fc;
  --text-muted: #8b9bb4;
  --text-dim: #5c6c84;
  
  --font-arcade: 'Orbitron', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-tech: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-elevated: 0 12px 35px rgba(0, 0, 0, 0.65);
  --shadow-neon-cyan: 0 0 20px rgba(0, 240, 255, 0.45);
  --shadow-neon-gold: 0 0 20px rgba(255, 209, 102, 0.45);
}

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

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(0, 240, 255, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 85% 90%, rgba(155, 93, 229, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #060913 0%, #0a1128 100%);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
}

/* Background Cyber Grid Lines */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  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: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Header Bar
   ========================================================================== */
.site-header {
  width: 100%;
  max-width: min(96vw, 1380px);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-neon);
  background: rgba(10, 17, 40, 0.75);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 20;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.6));
  animation: pulseLogo 4s ease-in-out infinite;
}

.brand-text h1 {
  font-family: var(--font-arcade);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-text .sub {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--color-gold);
  text-transform: uppercase;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-neon);
  color: var(--color-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 1.1rem;
}

.icon-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--color-primary);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
}

.icon-btn.muted {
  color: var(--text-dim);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   Main Game Container
   ========================================================================== */
.game-viewport-wrapper {
  width: 100%;
  max-width: min(96vw, 1380px);
  margin: 10px auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 10;
}

.canvas-container {
  width: min(95vw, 1360px, calc((88vh - 75px) * 2));
  height: auto;
  aspect-ratio: 2 / 1;
  max-height: calc(88vh - 75px);
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #030712;
  box-shadow: 
    0 0 0 2px rgba(0, 240, 255, 0.25),
    0 15px 40px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(0, 240, 255, 0.15);
}

@media (max-width: 1024px) {
  .canvas-container {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    max-height: none;
  }
}

#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
  background-color: #030712;
}

/* ==========================================================================
   HUD Overlay (In-Game Top Overlay)
   ========================================================================== */
.hud-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none;
  z-index: 15;
  transition: opacity 0.3s ease;
}

.hud-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.hud-left, .hud-center, .hud-right {
  display: flex;
  gap: 12px;
  align-items: center;
  pointer-events: auto;
}

/* Player Profile Card in HUD */
.hud-profile-card {
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hud-badge-img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.5));
}

.hud-profile-info {
  display: flex;
  flex-direction: column;
}

.hud-player-name {
  font-family: var(--font-arcade);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hud-player-rank {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Coin Counter */
.hud-coin-pill {
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-gold);
  font-family: var(--font-arcade);
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(255, 209, 102, 0.2);
}

.coin-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe494 0%, #ffb703 100%);
  border: 2px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #633800;
  box-shadow: 0 0 8px rgba(255, 209, 102, 0.8);
  animation: coinSpin 3s linear infinite;
}

/* Health & Energy Shield Bars in HUD */
.hud-health-wrap {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-md);
  padding: 6px 12px;
}

.hud-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-shield-track {
  width: 110px;
  height: 9px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.45);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hud-shield-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #0077b6 0%, #00f0ff 100%);
  border-radius: var(--radius-full);
  transition: width 0.15s ease-out;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
}

.hud-shield-fill.broken {
  background: linear-gradient(90deg, #ff0055 0%, #ff3366 100%);
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.9);
  animation: pulseDamage 0.5s infinite alternate;
}

.hud-hp-track {
  width: 110px;
  height: 9px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 245, 212, 0.45);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
}

.hud-hp-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #00f5d4 0%, #00b4d8 100%);
  border-radius: var(--radius-full);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(0, 245, 212, 0.6);
}

.hud-hp-fill.danger {
  background: linear-gradient(90deg, #ff0055 0%, #ff3366 100%);
  box-shadow: 0 0 12px rgba(255, 0, 85, 0.8);
  animation: pulseDamage 0.6s infinite alternate;
}

.hud-bar-info {
  font-family: var(--font-tech);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  width: 75px;
}

.hud-bar-label {
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

/* Level Objective Banner (Center HUD) */
.hud-objective-pill {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-md);
  padding: 6px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.hud-obj-title {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-primary);
}

.hud-obj-detail {
  font-family: var(--font-arcade);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

/* Weapon HUD Widget (Level 3 & 4) */
.hud-weapon-widget {
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-weapon-img {
  width: 38px;
  height: 22px;
  object-fit: contain;
}

.hud-cooldown-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-tech);
  font-size: 0.65rem;
  font-weight: 700;
}

/* Boss Health Bar Container (Level 4 HUD) */
.boss-hud-overlay {
  position: absolute;
  top: 75px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 80%;
  max-width: 600px;
  pointer-events: none;
  z-index: 16;
}

.boss-bar-row {
  background: rgba(10, 15, 30, 0.85);
  border: 1px solid rgba(255, 51, 102, 0.4);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  display: grid;
  grid-template-columns: 140px 1fr 50px;
  align-items: center;
  gap: 8px;
}

.boss-bar-name {
  font-family: var(--font-tech);
  font-size: 0.78rem;
  font-weight: 700;
  color: #ff5e7e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boss-bar-track {
  height: 8px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.boss-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff0055, #ff5e7e);
  border-radius: var(--radius-full);
  transition: width 0.15s ease;
}

.boss-bar-hp-text {
  font-family: var(--font-arcade);
  font-size: 0.7rem;
  color: #ffffff;
  text-align: right;
}

/* ==========================================================================
   Announcement Banner Popup (Level Starts & Department Warnings)
   ========================================================================== */
.announcement-popup {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 22;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  background: radial-gradient(circle at center, rgba(6, 12, 28, 0.45) 0%, rgba(3, 7, 18, 0.75) 100%);
  backdrop-filter: blur(4px);
}

.announcement-popup.hidden {
  opacity: 0;
  visibility: hidden;
}

.announcement-card {
  background: rgba(10, 19, 44, 0.94);
  border: 2px solid var(--announcement-color, var(--color-primary));
  box-shadow: 
    0 0 35px var(--announcement-glow, rgba(0, 240, 255, 0.5)),
    inset 0 0 25px rgba(0, 0, 0, 0.8),
    0 15px 45px rgba(0, 0, 0, 0.9);
  border-radius: var(--radius-md);
  padding: 22px 38px;
  max-width: 620px;
  width: 85%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  animation: announcePopIn 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.announcement-glow-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--announcement-color, var(--color-primary)), transparent);
  box-shadow: 0 0 12px var(--announcement-color, var(--color-primary));
}

.announcement-badge {
  font-family: var(--font-arcade);
  font-size: 0.72rem;
  letter-spacing: 2.5px;
  color: var(--announcement-color, var(--color-gold));
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--announcement-color, rgba(255, 209, 102, 0.4));
  border-radius: var(--radius-full);
  padding: 4px 14px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.announcement-title {
  font-family: var(--font-arcade);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: #ffffff;
  text-shadow: 0 0 15px var(--announcement-color, rgba(0, 240, 255, 0.75));
  margin-bottom: 6px;
  text-transform: uppercase;
}

.announcement-sub {
  font-family: var(--font-tech);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--announcement-color, var(--color-primary));
  text-transform: uppercase;
}

@keyframes announcePopIn {
  0% {
    transform: scale(0.8) translateY(-10px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   Modals & Screens (Start, Promotion, Store, Game Over, Victory)
   ========================================================================== */
.overlay-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 9, 19, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 25;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 12px;
  overflow-y: auto;
}

.overlay-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  max-width: 580px;
  width: 100%;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(0, 240, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  animation: modalScaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  margin: auto;
}

/* Compact Start Screen Card */
.start-modal-card {
  max-width: 490px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: 
    0 12px 35px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(0, 240, 255, 0.25);
}

.start-badge-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-bottom: 6px;
  justify-content: center;
}

.start-badge-img {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.6));
  animation: pulseLogo 3s ease-in-out infinite;
  flex-shrink: 0;
}

.start-title-wrap {
  text-align: left;
}

.start-title {
  font-size: 1.25rem !important;
  margin-bottom: 2px !important;
  line-height: 1.2;
}

.start-sub {
  font-size: 0.78rem !important;
  margin-bottom: 0 !important;
  color: var(--color-gold);
  letter-spacing: 1.2px;
}

.start-hierarchy-chart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin: 6px 0 12px 0;
  font-family: var(--font-tech);
  font-size: 0.8rem;
  font-weight: 700;
}

.hierarchy-main-flow {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hierarchy-fork-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 1px;
}

.hierarchy-fork-svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.45));
}

.hierarchy-branch-targets {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
}

.rank-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-arcade);
  font-size: 0.74rem;
  letter-spacing: 0.8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.rank-step.active {
  background: rgba(0, 240, 255, 0.2);
  color: var(--color-primary);
  border-color: var(--border-neon);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.rank-step.rank-eb {
  color: #d18eff;
  border-color: rgba(199, 125, 255, 0.45);
  background: rgba(155, 93, 229, 0.14);
}

.rank-step.gold,
.rank-step.rank-gb {
  color: var(--color-gold);
  border-color: rgba(255, 209, 102, 0.5);
  background: rgba(255, 209, 102, 0.14);
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.25);
}

.start-hierarchy-chart .arrow {
  color: var(--text-dim);
  font-size: 0.72rem;
}

.start-input-group {
  margin-bottom: 10px !important;
}

.start-input-group .input-label {
  font-size: 0.76rem !important;
  margin-bottom: 4px !important;
}

.start-input {
  padding: 8px 14px !important;
  font-size: 0.95rem !important;
}

.tutorial-row-compact {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
  justify-content: center;
}

.tut-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 18, 42, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 6px 12px;
  flex: 1;
  justify-content: center;
}

.tut-pill .tut-key {
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-family: var(--font-arcade);
  font-size: 0.7rem;
  color: var(--color-primary);
  font-weight: 700;
  white-space: nowrap;
}

.tut-pill .tut-text {
  font-family: var(--font-tech);
  font-size: 0.78rem;
  color: var(--text-main);
  font-weight: 600;
  white-space: nowrap;
}

.btn-start-prominent {
  width: 100%;
  max-width: 320px;
  font-size: 1.15rem !important;
  padding: 12px 32px !important;
  justify-content: center;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6) !important;
  animation: pulseStartBtn 2.5s infinite alternate;
  letter-spacing: 2px !important;
}

.btn-start-prominent .play-icon {
  font-size: 0.95rem;
}

@keyframes pulseStartBtn {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(0, 240, 255, 0.5); }
  100% { transform: scale(1.02); box-shadow: 0 0 35px rgba(0, 240, 255, 0.85); }
}

.modal-badge-wrapper {
  margin-bottom: 10px;
  position: relative;
}

.modal-badge-large {
  width: 70px;
  height: 70px;
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.6));
  animation: floatBadge 3s ease-in-out infinite;
}

.modal-title {
  font-family: var(--font-arcade);
  font-size: 1.55rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.modal-subtitle {
  font-family: var(--font-tech);
  font-size: 1.05rem;
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.modal-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Form controls */
.input-group {
  width: 100%;
  margin-bottom: 20px;
  text-align: left;
}

.input-label {
  display: block;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-primary);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.cyber-input {
  width: 100%;
  background: rgba(8, 14, 33, 0.85);
  border: 1.5px solid var(--border-neon);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  color: #ffffff;
  font-family: var(--font-arcade);
  font-size: 1rem;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.cyber-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.45);
  background: rgba(14, 25, 58, 0.95);
}

/* Tutorial Grid on Start Screen */
.tutorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
  text-align: left;
}

.tut-card {
  background: rgba(10, 18, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.tut-key {
  display: inline-block;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  font-family: var(--font-arcade);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.tut-desc {
  font-family: var(--font-tech);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Action Buttons */
.btn-cta {
  background: linear-gradient(135deg, #00f0ff 0%, #0077b6 100%);
  color: #060913;
  font-family: var(--font-arcade);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 34px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.7);
  background: linear-gradient(135deg, #33f3ff 0%, #0096c7 100%);
}

.btn-cta:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--font-tech);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  padding: 10px 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

/* ==========================================================================
   Intermission: Promotion Store Styles
   ========================================================================== */
.store-modal-card {
  max-width: 760px;
  padding: 28px 32px;
}

.store-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-neon);
  padding-bottom: 14px;
}

.store-weapon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  margin-bottom: 24px;
}

@media (max-width: 700px) {
  .store-weapon-grid {
    grid-template-columns: 1fr;
  }
}

.weapon-card {
  background: rgba(13, 23, 50, 0.85);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
}

.weapon-card.equipped {
  border-color: var(--color-primary);
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.25);
}

.weapon-card.purchased {
  border-color: var(--color-green);
}

.weapon-icon-box {
  width: 100%;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.weapon-icon-box img {
  max-width: 90px;
  max-height: 55px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.weapon-name {
  font-family: var(--font-arcade);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.weapon-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 12px;
  flex-grow: 1;
}

.weapon-stat-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-tech);
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 6px;
  margin-bottom: 4px;
}

.weapon-stat-row .val {
  color: var(--color-gold);
  font-weight: 700;
}

.btn-weapon-action {
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-arcade);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-weapon-action.btn-buy {
  background: var(--color-gold);
  color: #060913;
}

.btn-weapon-action.btn-buy:hover {
  background: #ffe494;
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.6);
}

.btn-weapon-action.btn-equip {
  background: rgba(0, 240, 255, 0.2);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-weapon-action.btn-equip:hover {
  background: var(--color-primary);
  color: #060913;
}

.btn-weapon-action.btn-equipped {
  background: rgba(0, 245, 212, 0.15);
  border-color: var(--color-green);
  color: var(--color-green);
  cursor: default;
}

/* ==========================================================================
   Score Summary & Leaderboard Preview
   ========================================================================== */
.stats-summary-card {
  background: rgba(8, 14, 33, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  width: 100%;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

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

.stat-lbl {
  font-family: var(--font-tech);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-val {
  font-family: var(--font-arcade);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--color-primary);
}

.stat-val.gold {
  color: var(--color-gold);
}

/* Leaderboard Drawer / Preview */
.leaderboard-section {
  width: 100%;
  max-width: 860px;
  margin: 12px auto 6px auto;
  background: var(--bg-glass);
  border: 1px solid var(--border-neon);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.leaderboard-title {
  font-family: var(--font-arcade);
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leaderboard-table th {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.leaderboard-table td {
  padding: 5px 8px;
  font-size: 0.8rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.leaderboard-table tr:hover {
  background: rgba(0, 240, 255, 0.05);
}

.rank-cell {
  font-family: var(--font-arcade);
  font-weight: 900;
  color: var(--color-gold);
}

.score-cell {
  font-family: var(--font-arcade);
  font-weight: 700;
  color: #ffffff;
}

/* Footer Credits */
.site-footer {
  width: 100%;
  max-width: 1100px;
  padding: 16px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-family: var(--font-tech);
  letter-spacing: 1px;
  margin-top: auto;
}

.site-footer a {
  color: var(--color-primary);
  text-decoration: none;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes pulseLogo {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(0, 240, 255, 0.5)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.9)); }
}

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

@keyframes coinSpin {
  0% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}

@keyframes pulseDamage {
  from { opacity: 0.8; }
  to { opacity: 1; filter: brightness(1.3); }
}

@keyframes modalScaleUp {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Confetti canvas */
#confettiCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
}

/* ==========================================================================
   Noticeable Developer Credit Links & Mandatory Name Input
   ========================================================================== */

/* Header controls notice button */
.nav-credit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(155, 93, 229, 0.2));
  border: 1.5px solid var(--color-cyan);
  color: var(--color-cyan);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-arcade);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25);
  margin-right: 8px;
  animation: glowPulse 2.8s infinite ease-in-out;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.3), inset 0 0 8px rgba(0, 240, 255, 0.1);
    border-color: var(--color-cyan);
  }
  50% {
    box-shadow: 0 0 22px rgba(0, 240, 255, 0.7), inset 0 0 14px rgba(0, 240, 255, 0.25);
    border-color: #ffffff;
  }
}

.nav-credit-btn:hover {
  background: var(--color-cyan);
  color: #030712;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.85);
  transform: translateY(-2px) scale(1.03);
}

.nav-credit-btn .credit-icon {
  font-size: 1.1rem;
}

/* Leaderboard Navigation Button (Gold Accent) */
.nav-lb-btn {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.15), rgba(255, 159, 28, 0.2));
  animation: glowPulseGold 2.8s infinite ease-in-out;
}

@keyframes glowPulseGold {
  0%, 100% {
    box-shadow: 0 0 12px rgba(255, 209, 102, 0.3), inset 0 0 8px rgba(255, 209, 102, 0.1);
    border-color: var(--color-gold);
  }
  50% {
    box-shadow: 0 0 22px rgba(255, 209, 102, 0.7), inset 0 0 14px rgba(255, 209, 102, 0.25);
    border-color: #ffffff;
  }
}

.nav-lb-btn:hover {
  background: var(--color-gold);
  color: #030712;
  box-shadow: 0 0 25px rgba(255, 209, 102, 0.85);
}

/* Start screen external link row (Leaderboard & Developer side-by-side) */
.start-external-links-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.start-external-links-row .btn-credits-start {
  flex: 1;
  margin-top: 0;
  padding: 8px 12px;
  font-size: 0.76rem;
}

/* Start screen credit link */
.btn-credits-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1.5px dashed rgba(0, 240, 255, 0.5);
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-arcade);
  font-size: 0.82rem;
  letter-spacing: 1px;
  font-weight: 700;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.btn-credits-start:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--color-cyan);
  border-style: solid;
  color: var(--color-cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
  transform: translateY(-1px);
}

.btn-lb-start {
  border-color: rgba(255, 209, 102, 0.6);
  color: var(--color-gold);
}

.btn-lb-start:hover {
  background: rgba(255, 209, 102, 0.2);
  border-color: var(--color-gold);
  border-style: solid;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 209, 102, 0.5);
}

/* Modal View Leaderboard Button */
.btn-modal-lb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 18px;
  background: rgba(255, 209, 102, 0.1);
  border: 1.5px solid var(--color-gold);
  border-radius: var(--radius-md);
  color: var(--color-gold);
  font-family: var(--font-arcade);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.btn-modal-lb:hover {
  background: var(--color-gold);
  color: #030712;
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.6);
  transform: translateY(-2px);
}

/* Mandatory Name Input validation styling */
.required-star {
  color: #ff0055;
  font-weight: bold;
}

.cyber-input.input-error {
  border-color: #ff0055 !important;
  box-shadow: 0 0 15px rgba(255, 0, 85, 0.6) !important;
  animation: shakeInput 0.35s ease;
}

@keyframes shakeInput {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.name-error-msg {
  color: #ff5e7e;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

/* Top 5 Leaderboard badges */
.leaderboard-subtitle-badge {
  font-family: var(--font-arcade);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  font-weight: 800;
  color: #030712;
  background: linear-gradient(90deg, var(--color-gold), #ff9f1c);
  padding: 4px 10px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.4);
}

.leaderboard-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 14px;
  background: rgba(5, 10, 25, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-hint {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.leaderboard-credit-link {
  font-family: var(--font-arcade);
  font-size: 0.8rem;
  color: var(--color-gold);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: color 0.2s, text-shadow 0.2s;
}

.leaderboard-credit-link:hover {
  color: #ffffff;
  text-shadow: 0 0 10px var(--color-gold);
}

.current-player-row {
  background: rgba(0, 240, 255, 0.12) !important;
  border-left: 3px solid var(--color-cyan);
}

.you-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  background: var(--color-cyan);
  color: #030712;
  font-family: var(--font-arcade);
  font-size: 0.65rem;
  font-weight: 900;
  border-radius: 3px;
  vertical-align: middle;
}

.top5-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: linear-gradient(90deg, #ffd166, #ff9f1c);
  color: #030712;
  font-family: var(--font-arcade);
  font-size: 0.82rem;
  font-weight: 900;
  border-radius: 6px;
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.6);
  letter-spacing: 1px;
}

/* ==========================================================================
   Google AdSense Dedicated Placement Slots (Safe from Canvas Collision)
   ========================================================================== */
.ad-slot-wrapper {
  width: 100%;
  max-width: 960px;
  margin: 20px auto;
  text-align: center;
  position: relative;
  z-index: 5;
}

.ad-slot-box {
  background: rgba(10, 18, 42, 0.6);
  border: 1px dashed rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 12px;
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ad-label {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

/* ==========================================================================
   Homepage Rich Game Guide & Content (Anti-Thin-Content Architecture)
   ========================================================================== */
.game-info-container {
  width: 100%;
  max-width: min(96vw, 1200px);
  margin: 36px auto 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 5;
  user-select: text; /* Allow readers and crawlers to select and read */
}

.info-card {
  background: rgba(10, 18, 42, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 12px 40px rgba(0, 240, 255, 0.12);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}

.info-card-icon {
  font-size: 1.8rem;
  color: var(--color-cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

.info-card-title {
  font-family: var(--font-arcade);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 30%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.info-p {
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.7;
  color: #c4d1e6;
  margin-bottom: 14px;
}

.info-p:last-child {
  margin-bottom: 0;
}

.info-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

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

.hierarchy-box {
  background: rgba(16, 28, 61, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hierarchy-box:hover {
  transform: translateY(-3px);
  border-color: var(--color-cyan);
}

.hb-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-arcade);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.hb-badge.gm { color: var(--color-cyan); }
.hb-badge.exec { color: #60a5fa; }
.hb-badge.srexec { color: #c084fc; }
.hb-badge.gb { color: var(--color-gold); }
.hb-badge.eb { color: #34d399; }

.hb-title {
  font-family: var(--font-tech);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.hb-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ Accordion Styling */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.faq-item {
  background: rgba(16, 28, 61, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(0, 240, 255, 0.3);
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  color: #ffffff;
  font-family: var(--font-tech);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-question:focus {
  outline: none;
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #b0c2de;
}

/* ==========================================================================
   Universal Rich Footer
   ========================================================================== */
.global-site-footer {
  width: 100%;
  background: rgba(5, 10, 24, 0.92);
  border-top: 1px solid var(--border-neon);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.6);
  margin-top: 48px;
  position: relative;
  z-index: 20;
  user-select: text;
}

.footer-inner {
  max-width: min(96vw, 1200px);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col-brand h3 {
  font-family: var(--font-arcade);
  font-size: 1.1rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-col-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 360px;
}

.footer-col h4 {
  font-family: var(--font-tech);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  color: #c4d1e6;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: var(--font-tech);
  letter-spacing: 0.8px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-nav-list a:hover {
  color: var(--color-cyan);
  transform: translateX(4px);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-badge-tag {
  background: rgba(16, 28, 61, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 0.72rem;
  font-family: var(--font-arcade);
  color: var(--color-cyan);
}

/* ==========================================================================
   Dedicated Legal / Trust Pages Layout (.legal-page-body)
   ========================================================================== */
.legal-main-wrap {
  width: 100%;
  max-width: 960px;
  margin: 32px auto 40px;
  padding: 0 16px;
  box-sizing: border-box;
  user-select: text;
  position: relative;
  z-index: 5;
}

.legal-card {
  background: rgba(10, 18, 42, 0.85);
  backdrop-filter: blur(16px);
  border: 1.5px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8);
}

@media (max-width: 600px) {
  .legal-card {
    padding: 24px 18px;
  }
}

.legal-header {
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  padding-bottom: 20px;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.12);
  border: 1px solid var(--color-cyan);
  padding: 5px 14px;
  border-radius: 20px;
  font-family: var(--font-arcade);
  font-size: 0.75rem;
  color: var(--color-cyan);
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.legal-title {
  font-family: var(--font-arcade);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 2px;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 0%, var(--color-cyan) 60%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.legal-meta {
  font-family: var(--font-tech);
  font-size: 0.95rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.legal-content h2 {
  font-family: var(--font-tech);
  font-size: 1.45rem;
  color: var(--color-gold);
  letter-spacing: 1px;
  margin: 26px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-content h3 {
  font-family: var(--font-tech);
  font-size: 1.15rem;
  color: var(--color-cyan);
  margin: 18px 0 8px;
}

.legal-content p {
  font-size: 0.96rem;
  line-height: 1.75;
  color: #c9d5e8;
  margin-bottom: 14px;
}

.legal-content ul, .legal-content ol {
  margin: 10px 0 16px 24px;
  color: #c9d5e8;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-callout {
  background: rgba(0, 240, 255, 0.08);
  border-left: 3px solid var(--color-cyan);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}

.legal-callout p {
  margin-bottom: 0;
  color: #e0f2fe;
}

/* Contact form styling */
.contact-form-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-tech);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: rgba(6, 12, 28, 0.85);
  border: 1.5px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.form-textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-success-msg {
  background: rgba(0, 245, 212, 0.15);
  border: 1px solid var(--color-green);
  color: var(--color-green);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-tech);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}

