/* ==========================================================================
   CYBER DUCK - IMMERSIVE FULLSCREEN ARCADE STYLESHEET
   Design: Borderless Fullscreen Retro Arcade, Neon Accents, Clean Minimal HUD
   ========================================================================== */

:root {
  --bg-primary: #050811;
  --bg-modal: rgba(10, 15, 29, 0.92);
  
  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.4);
  --accent-purple: #8b5cf6;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --grad-brand: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 50%, #ec4899 100%);
  --grad-arcade: linear-gradient(135deg, #ec4899 0%, #8b5cf6 50%, #06b6d4 100%);
  --grad-btn: linear-gradient(135deg, #ec4899, #8b5cf6);
  --grad-btn-hover: linear-gradient(135deg, #f43f5e, #a855f7);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --tr-fast: 0.15s ease;
}

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

html, body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  user-select: none;
  -webkit-user-select: none;
}

/* Fullscreen Canvas Container */
.game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #030712;
  cursor: pointer;
  overflow: hidden;
}

#arcade-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* CRT Scanlines Overlay */
.crt-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.35) 50%
  );
  background-size: 100% 4px;
  z-index: 10;
  opacity: 0.75;
}

.crt-scanlines.off {
  display: none;
}

/* Floating HUD */
.floating-hud {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 15;
  pointer-events: none;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.score-chip {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.best-chip {
  border-color: rgba(245, 158, 11, 0.35);
  color: #fde68a;
  background: rgba(245, 158, 11, 0.12);
}


.hud-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f1f5f9;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all var(--tr-fast);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hud-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent-cyan);
}

.hud-btn.sound-on {
  border-color: var(--accent-green);
  color: #a7f3d0;
}

/* Modal Overlays (Start & Game Over) */
.arcade-screen-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.88);
  backdrop-filter: blur(12px);
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.overlay-modal {
  background: var(--bg-modal);
  border: 2px solid rgba(236, 72, 153, 0.4);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  max-width: 580px;
  width: 100%;
  text-align: center;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(236, 72, 153, 0.3);
  animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.arcade-mascot-icon {
  font-size: 3.2rem;
  animation: bounceMini 1s infinite alternate;
}

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

.arcade-game-title {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--grad-arcade);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
  line-height: 1.1;
}

.game-subtitle {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 700;
  margin: 0.25rem 0 0.75rem;
}

.game-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.controls-pill-box {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  background: rgba(16, 24, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
}

.ctrl-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #f1f5f9;
}

.key-tag {
  background: #1e293b;
  border: 1px solid #475569;
  box-shadow: 0 3px 0 #0f172a;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

.click-tag {
  color: #f472b6;
  font-weight: 700;
}


.btn-play-hero {
  font-size: 1.05rem;
  font-weight: 800;
  padding: 0.95rem 2.2rem;
  background: var(--grad-btn);
  border: none;
  border-radius: var(--radius-full);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.6);
  transition: all var(--tr-fast);
  animation: pulseBtn 2s infinite alternate;
  width: 100%;
}

@keyframes pulseBtn {
  0% { transform: scale(1); box-shadow: 0 0 20px rgba(236, 72, 153, 0.4); }
  100% { transform: scale(1.03); box-shadow: 0 0 35px rgba(236, 72, 153, 0.8); }
}

.btn-play-hero:hover {
  background: var(--grad-btn-hover);
}

/* Game Over Modal Elements */
.gameover-icon {
  font-size: 3rem;
  margin-bottom: 0.35rem;
}

.gameover-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: #ef4444;
  margin-bottom: 0.25rem;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

.gameover-reason {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fca5a5;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.gameover-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.go-stat-card {
  background: rgba(16, 24, 39, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.4rem;
}

.go-stat-label {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  display: block;
}

.go-stat-val {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #ffffff;
}
