﻿/* =========================================================
   CYBER BREAKOUT // TECH REACTOR - ARCADE STYLES
   ========================================================= */

.arcade-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.arcade-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.arcade-title-group {
  max-width: 600px;
}

.arcade-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 5px 14px;
  border-radius: 9999px;
  color: #00f0ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 12px;
}

.arcade-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00f0ff;
  box-shadow: 0 0 8px #00f0ff;
  animation: arcPulse 1.8s infinite ease-in-out;
}

@keyframes arcPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

.arcade-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.arcade-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: #a855f7;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 1px;
}

.arcade-desc {
  font-size: 14px;
  color: var(--text-muted, #94a3b8);
  margin-top: 6px;
  line-height: 1.5;
}

.arcade-actions-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.arcade-stat-badge {
  background: rgba(18, 24, 40, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 10px;
  padding: 6px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.arcade-stat-badge .stat-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #f59e0b;
  font-family: 'JetBrains Mono', monospace;
}

.arcade-stat-badge .stat-val {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.2;
}

.arc-btn-icon {
  background: rgba(18, 24, 40, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.arc-btn-icon:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

/* =========================================================
   ARCADE CABINET & CANVAS
   ========================================================= */

.arcade-cabinet {
  background: #0a0e1a;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(0, 240, 255, 0.08),
    inset 0 0 30px rgba(0, 0, 0, 0.8);
  position: relative;
}

/* Cabinet Header Strip */
.arcade-cabinet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff, #b026ff, #10b981, transparent);
  z-index: 10;
}

/* HUD BAR */
.arcade-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: rgba(10, 14, 26, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: 'JetBrains Mono', monospace;
  position: relative;
  z-index: 5;
}

.hud-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hud-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-muted, #94a3b8);
  text-transform: uppercase;
}

.hud-value {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.1;
}

.hud-cyan { color: #00f0ff; text-shadow: 0 0 10px rgba(0, 240, 255, 0.5); }
.hud-purple { color: #c084fc; text-shadow: 0 0 10px rgba(192, 132, 252, 0.5); }
.hud-amber { color: #f59e0b; text-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }

.hud-lives {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.life-pip {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.life-pip.active {
  background: #10b981;
  border-color: #34d399;
  box-shadow: 0 0 8px #10b981;
}

/* CANVAS WRAPPER */
.arcade-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 480;
  max-height: 520px;
  background: #05070d;
  overflow: hidden;
  cursor: crosshair;
  touch-action: none; /* Prevents page vertical drag while playing on mobile */
  user-select: none;
  -webkit-user-select: none;
}

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

/* CRT SCANLINES & VIGNETTE EFFECT */
.arcade-canvas-wrap::after {
  content:  ;
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at center, transparent 65%, rgba(0, 0, 0, 0.6) 100%),
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 100%, 100% 4px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.65;
}

/* OVERLAY MODAL / SCREENS */
.arcade-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 13, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.arcade-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.overlay-content {
  text-align: center;
  max-width: 520px;
  width: 100%;
  animation: overlayPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.overlay-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #00f0ff;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.overlay-title {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.overlay-msg {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 24px;
}

.overlay-controls-guide {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  text-align: left;
}

.guide-col {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guide-k {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #a855f7;
  font-family: 'JetBrains Mono', monospace;
}

.guide-t {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

.arc-action-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00f0ff 0%, #6366f1 50%, #b026ff 100%);
  color: #ffffff;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 14px 36px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 240, 255, 0.35);
  transition: all 0.25s ease;
  overflow: hidden;
}

.arc-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 240, 255, 0.5);
}

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

/* =========================================================
   TOUCH BAR CONTROLS (MOBILE)
   ========================================================= */

.arcade-touch-bar {
  display: none;
  background: rgba(10, 14, 26, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  gap: 10px;
}

.touch-btn {
  flex: 1;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s ease;
}

.touch-btn:active {
  background: rgba(0, 240, 255, 0.2);
  border-color: #00f0ff;
}

.touch-btn-primary {
  flex: 1.4;
  background: rgba(0, 240, 255, 0.15);
  border-color: rgba(0, 240, 255, 0.4);
  color: #00f0ff;
}

.touch-btn-primary:active {
  background: rgba(0, 240, 255, 0.35);
}

/* LEGEND BAR */
.arcade-legend {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(6, 9, 17, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  font-family: 'JetBrains Mono', monospace;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.badge-laser { background: rgba(0, 240, 255, 0.15); color: #00f0ff; border: 1px solid rgba(0, 240, 255, 0.3); }
.badge-multi { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-expand { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-fire { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

/* =========================================================
   RESPONSIVE DESIGN (TABLETS & SMARTPHONES)
   ========================================================= */

@media (max-width: 768px) {
  .arcade-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .arcade-actions-bar {
    width: 100%;
    justify-content: space-between;
  }
  .arcade-title {
    font-size: 22px;
  }
  .arcade-subtitle {
    font-size: 13px;
  }
  .arcade-touch-bar {
    display: flex;
  }
  .overlay-controls-guide {
    flex-direction: column;
  }
  .overlay-title {
    font-size: 24px;
  }
  .arcade-legend {
    font-size: 10px;
    gap: 8px;
    padding: 10px;
  }
  .hud-value {
    font-size: 15px;
  }
  .hud-label {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .arcade-section {
    margin-top: 36px;
    padding-top: 28px;
  }
  .arcade-touch-bar {
    padding: 8px;
    gap: 6px;
  }
  .touch-btn {
    height: 44px;
    font-size: 11px;
  }
}
