// shared/arcade.css - SHOT Clubhouse Brand & Shared Arcade Game Theme
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@700;800;900&display=swap');

:root {
  --teal: #1ABC9C;
  --teal-glow: rgba(26, 188, 156, 0.35);
  --purple: #6B00DB;
  --purple-glow: rgba(107, 0, 219, 0.4);
  --gold: #F7B613;
  --gold-glow: rgba(247, 182, 19, 0.35);
  --dark-bg: #0B0E14;
  --panel-bg: rgba(15, 23, 42, 0.95);
  --card-bg: rgba(30, 41, 59, 0.8);
  --card-hover: rgba(51, 65, 85, 0.9);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text-muted: #94A3B8;
  --min-touch-target: 44px;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  background-color: var(--dark-bg);
  color: #fff;
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Header & Top Bar */
.arcade-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: rgba(11, 14, 20, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 4px 14px var(--purple-glow);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-title span {
  color: var(--teal);
}

.brand-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 700;
  display: block;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  min-height: var(--min-touch-target);
  min-width: var(--min-touch-target);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--teal);
}

/* Game Frame Shell */
.game-viewport-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  width: 100%;
}

.game-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 9 / 16;
  max-height: 820px;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 0 2px var(--panel-border);
  display: flex;
  flex-direction: column;
}

canvas.game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

/* Modals & Overlays */
.overlay-screen {
  position: absolute;
  inset: 0;
  background: rgba(11, 14, 20, 0.94);
  backdrop-filter: blur(12px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.overlay-screen.hidden {
  display: none !important;
}

.modal-box {
  width: 100%;
  max-width: 380px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.modal-title.gold {
  color: var(--gold);
}

.modal-title.teal {
  color: var(--teal);
}

.modal-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 8px 0;
}

.stat-item {
  background: var(--card-bg);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-val {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #fff;
  margin-top: 2px;
}

/* Primary Action Buttons */
.btn-primary {
  min-height: var(--min-touch-target);
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, var(--teal), #16a085);
  color: #0b0e14;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px var(--teal-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--teal-glow);
}

.btn-secondary {
  min-height: var(--min-touch-target);
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* In-Game HUD overlay */
.game-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 20;
}

.hud-item {
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--panel-border);
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-item .label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hud-item .val {
  font-size: 16px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #fff;
}

.hud-btn {
  pointer-events: auto;
  min-width: var(--min-touch-target);
  min-height: var(--min-touch-target);
  background: rgba(11, 14, 20, 0.85);
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}

/* Control Helpers Footer */
.controls-hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.key-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--panel-border);
  color: #fff;
  font-family: monospace;
  font-size: 11px;
}
