@charset "UTF-8";

/* ==========================================================================
   CYBER PUCK: OVERDRIVE - Cyberpunk Neon Styling
   ========================================================================== */

:root {
  --neon-cyan: #00f0ff;
  --neon-pink: #ff0077;
  --neon-yellow: #ffea00;
  --neon-green: #00ff66;
  --bg-dark: #05060e;
  --bg-panel: rgba(10, 13, 28, 0.88);
  --border-neon: rgba(0, 240, 255, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

body {
  background-color: var(--bg-dark);
  color: #e0f2fe;
  font-family: 'Rajdhani', 'Orbitron', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  position: fixed;
}

/* CRT スキャンライン & ビネット効果 */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
              radial-gradient(circle at center, transparent 65%, rgba(0, 0, 0, 0.65) 100%);
  background-size: 100% 4px, 100% 100%;
}

/* ネオンテキスト */
.text-neon-cyan {
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.8), 0 0 24px rgba(0, 240, 255, 0.4);
}

.text-neon-pink {
  color: var(--neon-pink);
  text-shadow: 0 0 12px rgba(255, 0, 119, 0.8), 0 0 24px rgba(255, 0, 119, 0.4);
}

.text-neon-yellow {
  color: var(--neon-yellow);
  text-shadow: 0 0 12px rgba(255, 234, 0, 0.8);
}

/* ネオンボタン */
.btn-cyber {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(255, 0, 119, 0.15) 100%);
  border: 1px solid var(--neon-cyan);
  color: #ffffff;
  padding: 10px 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
  transition: all 0.2s ease-in-out;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-cyber:hover {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.35) 0%, rgba(255, 0, 119, 0.35) 100%);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
  border-color: #ffffff;
  transform: translateY(-1px);
}

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

.btn-cyber-pink {
  border-color: var(--neon-pink);
  box-shadow: 0 0 15px rgba(255, 0, 119, 0.25);
}

.btn-cyber-pink:hover {
  box-shadow: 0 0 25px rgba(255, 0, 119, 0.6);
}

/* サイバーパネル */
.cyber-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-neon);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 15px rgba(0, 240, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* アスペクト比1:1.6のCanvasラッパー */
#arena-wrapper {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #04050a;
  overflow: hidden;
}

#game-canvas {
  display: block;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
  border-radius: 6px;
}

/* 各画面オーバーレイ */
.state-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 20;
}

/* HUDレイアウト */
.hud-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 16px;
}

.hud-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 8, 18, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 10px;
  padding: 6px 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.hud-bottombar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

/* スピードメーター */
.speed-meter-bar {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.5);
  border-radius: 9999px;
  overflow: hidden;
  height: 8px;
}

.speed-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #00f0ff 0%, #ffea00 65%, #ff0077 100%);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
  transition: width 0.15s ease-out;
}

/* ユーティリティ */
.hidden {
  display: none !important;
}

.flex {
  display: flex !important;
}

/* QRコードラッパー (高コントラスト白背景 & ネオングロー枠) */
.qr-container {
  padding: 10px;
  background: #ffffff;
  border: 2px solid var(--neon-cyan);
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
  display: inline-block;
}
