/* ============================================
   HIRE ME: THE GAME - CSS
   A retro RPG experience
   ============================================ */

:root {
  --bg: #0a0a12;
  --bg-light: #12121f;
  --surface: #1a1a2e;
  --card: #0f0f1a;
  --primary: #e94560;
  --secondary: #0fffaf;
  --accent: #ffc947;
  --purple: #a855f7;
  --cyan: #22d3ee;
  --text: #eaeaea;
  --text-muted: #7a8599;
  --border: #2a2a4a;

  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'Space Grotesk', sans-serif;
}

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

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: var(--bg);
  padding: 12px 24px;
  font-family: var(--font-pixel);
  font-size: 10px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 2000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 60px;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}

/* Navigation */
.main-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 18, 0.95);
  border-bottom: 3px solid var(--primary);
  padding: 0.5rem 1rem;
}

.main-navigation ul {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
}

.main-navigation a {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem;
  transition: all 0.2s;
}

.main-navigation a:hover {
  color: var(--secondary);
  text-shadow: 0 0 10px var(--secondary);
}

/* CRT Overlay Effect */
.crt-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.1) 0px,
      rgba(0, 0, 0, 0.1) 1px,
      transparent 1px,
      transparent 2px
    );
}

.crt-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* Game Screens */
.game-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  flex-direction: column;
  padding-top: 50px;
}

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

/* ============================================
   TITLE SCREEN
   ============================================ */

#title-screen {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(233, 69, 96, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-light) 100%);
  justify-content: center;
  align-items: center;
}

.title-content {
  text-align: center;
  z-index: 10;
  animation: fadeInUp 1s ease;
}

.title-logo {
  margin-bottom: 2rem;
}

.title-main {
  display: block;
  font-family: var(--font-pixel);
  font-size: 4rem;
  color: var(--primary);
  text-shadow:
    4px 4px 0 var(--bg),
    8px 8px 0 rgba(233, 69, 96, 0.3),
    0 0 50px rgba(233, 69, 96, 0.5);
  animation: titlePulse 2s ease-in-out infinite;
}

.title-sub {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  color: var(--secondary);
  margin-top: 1rem;
  letter-spacing: 2px;
}

.title-tagline {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.title-tagline-small {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 3rem;
}

.menu-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 3rem;
}

.menu-btn {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  background: var(--surface);
  color: var(--text);
  border: 3px solid var(--border);
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.15s;
  min-width: 320px;
  text-align: left;
  position: relative;
}

.menu-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateX(10px);
  box-shadow: -5px 5px 0 var(--bg), -5px 5px 0 2px var(--primary);
}

.menu-btn .btn-icon {
  color: var(--secondary);
  margin-right: 0.5rem;
  animation: blink 1s step-end infinite;
}

.title-footer {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--text-muted);
}

.title-footer p {
  margin: 0.5rem 0;
}

.copyright {
  color: var(--purple);
}

/* ============================================
   GAME HUD
   ============================================ */

.game-hud {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  border-bottom: 2px solid var(--border);
}

.hud-left, .hud-right {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.stat-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-label {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--text-muted);
  min-width: 100px;
}

.bar-container {
  width: 150px;
  height: 16px;
  background: var(--bg);
  border: 2px solid var(--border);
  position: relative;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  transition: width 0.5s ease;
}

.hire-bar {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
}

.interest-bar {
  background: linear-gradient(90deg, var(--cyan), var(--secondary));
  width: 50%;
}

.stat-value {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--accent);
  min-width: 40px;
}

.inventory-preview {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--secondary);
}

.location-display {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--purple);
  padding: 0.5rem 1rem;
  background: var(--card);
  border: 2px solid var(--purple);
}

/* ============================================
   MAIN GAME AREA
   ============================================ */

.game-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem 2rem;
  overflow: hidden;
}

.scene-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.scene-image {
  width: 100%;
  max-width: 600px;
  height: 250px;
  background: var(--card);
  border: 4px solid var(--border);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  image-rendering: pixelated;
}

.character-sprite {
  font-size: 80px;
  animation: bounce 0.5s ease-in-out infinite;
}

.scene-description {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
  max-width: 600px;
  line-height: 1.6;
}

/* Dialogue Box */
.dialogue-container {
  background: var(--card);
  border: 4px solid var(--primary);
  padding: 1.5rem;
  margin: 0 auto;
  max-width: 800px;
  width: 100%;
  position: relative;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 30px rgba(233, 69, 96, 0.2);
}

.dialogue-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 20px;
  right: 20px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

.dialogue-speaker {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px dotted var(--border);
}

.dialogue-text {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text);
  min-height: 60px;
}

.dialogue-choices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.dialogue-choice {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
  padding: 0.75rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.dialogue-choice:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateX(5px);
}

.dialogue-choice .choice-icon {
  color: var(--secondary);
  margin-right: 0.5rem;
}

.dialogue-continue {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: 1rem;
}

.dialogue-continue.hidden {
  display: none;
}

/* Action Menu */
.action-menu {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  border-top: 2px solid var(--border);
}

.action-btn {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  background: var(--surface);
  color: var(--text);
  border: 3px solid var(--border);
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.15s;
}

.action-btn:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--bg);
}

.action-btn .key {
  color: var(--accent);
  text-decoration: underline;
}

.action-btn:hover .key {
  color: var(--bg);
}

/* ============================================
   BATTLE SCREEN
   ============================================ */

.battle-arena {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(233, 69, 96, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-light) 100%);
}

.enemy-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.enemy-sprite {
  font-size: 100px;
  animation: enemyIdle 1s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(233, 69, 96, 0.5));
}

.enemy-name {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--primary);
  margin-top: 1rem;
}

.enemy-hp-container {
  width: 200px;
  height: 12px;
  background: var(--bg);
  border: 2px solid var(--primary);
  margin-top: 0.5rem;
}

.enemy-hp-bar {
  height: 100%;
  background: var(--primary);
  width: 100%;
  transition: width 0.3s ease;
}

.battle-message {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--text);
  text-align: center;
  padding: 1.5rem;
  background: var(--card);
  border: 3px solid var(--border);
  margin: 1rem auto;
  max-width: 600px;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-side {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
}

.player-stats {
  background: var(--card);
  border: 3px solid var(--secondary);
  padding: 1rem;
  min-width: 200px;
}

.player-name {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
}

.stat-row span {
  min-width: 80px;
  color: var(--text-muted);
}

.mini-bar {
  width: 80px;
  height: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.mini-bar-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.mini-bar-fill.hp {
  background: var(--secondary);
  width: 100%;
}

.mini-bar-fill.mp {
  background: var(--purple);
  width: 100%;
}

.battle-menu {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--card);
  border-top: 3px solid var(--border);
}

.battle-btn {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  background: var(--surface);
  color: var(--text);
  border: 3px solid var(--border);
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.15s;
}

.battle-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.battle-submenu {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-light);
}

.battle-submenu.active {
  display: flex;
}

.submenu-btn {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  background: var(--card);
  color: var(--text);
  border: 2px solid var(--border);
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.15s;
}

.submenu-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ============================================
   OVERLAY SCREENS (Stats, Inventory, etc.)
   ============================================ */

#stats-screen, #inventory-screen, #achievements-screen, #resume-screen {
  background: rgba(10, 10, 18, 0.95);
  justify-content: center;
  align-items: center;
}

.stats-container, .inventory-container, .achievements-container, .resume-container {
  background: var(--card);
  border: 4px solid var(--secondary);
  padding: 2rem;
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  z-index: 10;
}

.stats-title, .inventory-title, .achievements-title, .resume-title {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--secondary);
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px dotted var(--border);
}

.stats-grid, .inventory-grid, .achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-card, .inventory-item, .achievement-card {
  background: var(--surface);
  border: 2px solid var(--border);
  padding: 1rem;
  transition: all 0.2s;
}

.stat-card:hover, .inventory-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.stat-card-name, .item-name, .achievement-title {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-card-value {
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  color: var(--secondary);
}

.stat-card-desc, .item-desc, .achievement-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.inventory-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.item-icon {
  font-size: 2rem;
  min-width: 50px;
  text-align: center;
}

.inventory-item.locked {
  opacity: 0.4;
  filter: grayscale(1);
}

.achievement-card {
  text-align: center;
  padding: 1.5rem;
}

.achievement-card.locked {
  opacity: 0.3;
  filter: grayscale(1);
}

.achievement-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.close-btn {
  display: block;
  margin: 2rem auto 0;
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  background: var(--primary);
  color: var(--text);
  border: none;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.15s;
}

.close-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Resume Screen */
.resume-shame {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 2rem;
  animation: shake 0.5s ease-in-out;
}

.resume-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.resume-section h3 {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.resume-section ul {
  list-style: none;
}

.resume-section li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.resume-section li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-family: var(--font-pixel);
}

/* ============================================
   NOTIFICATIONS & ACHIEVEMENTS
   ============================================ */

.notification-container {
  position: fixed;
  top: 70px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notification {
  background: var(--card);
  border: 2px solid var(--secondary);
  border-left: 4px solid var(--secondary);
  padding: 1rem;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--text);
  animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  max-width: 300px;
}

.notification.skill {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.notification.hire {
  border-color: var(--primary);
  border-left-color: var(--primary);
}

.achievement-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: var(--card);
  border: 4px solid var(--accent);
  padding: 2rem 3rem;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 0 50px rgba(255, 201, 71, 0.3);
}

.achievement-popup.show {
  transform: translate(-50%, -50%) scale(1);
}

.achievement-popup .achievement-icon {
  font-size: 3rem;
  color: var(--accent);
  animation: spin 1s ease;
}

.achievement-label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.achievement-popup .achievement-name {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--text);
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

@keyframes titlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

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

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

@keyframes enemyIdle {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.05) rotate(-2deg); }
  75% { transform: scale(0.95) rotate(2deg); }
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes damageFlash {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(2) hue-rotate(180deg); }
}

@keyframes victoryBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.1); }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .title-main {
    font-size: 2rem;
  }

  .title-sub {
    font-size: 0.6rem;
  }

  .menu-btn {
    min-width: 250px;
    font-size: 0.6rem;
    padding: 0.75rem 1rem;
  }

  .game-hud {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
  }

  .hud-left, .hud-right {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .bar-container {
    width: 100px;
  }

  .action-menu {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .action-btn {
    font-size: 0.5rem;
    padding: 0.5rem 0.75rem;
  }

  .dialogue-container {
    padding: 1rem;
  }

  .dialogue-text {
    font-size: 0.95rem;
  }

  .battle-menu {
    flex-wrap: wrap;
  }

  .battle-btn {
    font-size: 0.6rem;
    padding: 0.75rem 1rem;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Selection */
::selection {
  background: var(--primary);
  color: var(--text);
}

/* Hidden utility */
.hidden {
  display: none !important;
}

/* Quick Navigation Modal */
.quick-nav-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 18, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.quick-nav-content {
  background: var(--card);
  border: 4px solid var(--secondary);
  padding: 2rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.quick-nav-content h3 {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.quick-nav-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.quick-nav-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.quick-nav-btn {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.15s;
}

.quick-nav-btn:hover {
  background: var(--secondary);
  color: var(--bg);
  border-color: var(--secondary);
}

.close-nav-btn {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  background: var(--primary);
  color: var(--text);
  border: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
}

.close-nav-btn:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Text effects */
.text-glow {
  text-shadow: 0 0 10px currentColor;
}

.text-shake {
  animation: shake 0.3s ease-in-out;
}

/* Typing effect */
.typing-cursor::after {
  content: '|';
  animation: blink 0.7s step-end infinite;
  color: var(--secondary);
}

/* ============================================
   GAME COMPLETE POPUP
   ============================================ */
.game-complete-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 18, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  animation: fadeInUp 0.5s ease;
}

.game-complete-popup.active {
  display: flex;
}

.game-complete-content {
  background: var(--surface);
  border: 4px solid var(--secondary);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 0 60px rgba(15, 255, 175, 0.3);
  animation: popIn 0.4s ease 0.2s both;
}

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

.game-complete-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: victoryBounce 1s ease-in-out infinite;
}

.game-complete-title {
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  color: var(--secondary);
  text-shadow: 0 0 20px rgba(15, 255, 175, 0.5);
  margin-bottom: 1rem;
}

.game-complete-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.game-complete-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

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

.complete-stat .stat-value {
  display: block;
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(255, 201, 71, 0.5);
}

.complete-stat .stat-label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.game-complete-subtext {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--cyan);
  margin-bottom: 1.5rem;
}

.game-complete-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.complete-btn {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.complete-btn.primary {
  background: var(--secondary);
  color: var(--bg);
}

.complete-btn.primary:hover {
  background: var(--accent);
  box-shadow: 0 0 30px rgba(255, 201, 71, 0.5);
  transform: translateY(-2px);
}

.complete-btn.secondary {
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border);
}

.complete-btn.secondary:hover {
  border-color: var(--text);
  color: var(--text);
}

@media (max-width: 768px) {
  .game-complete-content {
    padding: 1.5rem;
  }

  .game-complete-title {
    font-size: 1rem;
  }

  .game-complete-stats {
    gap: 1rem;
  }

  .complete-stat .stat-value {
    font-size: 1.2rem;
  }
}
