@import 'ui.css';

/* CSS setup & primary containers for Unicorn mobile runner, keeping files small (< 300 lines) */
:root {
  --neon-cyan: #00f2ff;
  --neon-pink: #ff00ff;
  --neon-yellow: #ffee00;
  --neon-blue: #390099;
  --void-deep: #05040d;
}

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

body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  background-color: #030308;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Quicksand', -apple-system, system-ui, sans-serif;
  color: #fff;
  overflow: hidden;
}

/* Explicit device viewport targeting Apple iPhone constraints (430px by 745px) */
.mobile-container {
  width: 430px;
  height: 745px;
  background-color: var(--void-deep);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.9), 0 0 2px rgba(255, 255, 255, 0.25) inset;
  border-radius: 40px;
  border: 10px solid #14121e;
}

#game-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(180deg, #090616 0%, #110925 50%, #030207 100%);
}

/* HUD elements */
.hud {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 8, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.hud-stat {
  align-items: flex-start;
}

.hud-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
}

.hud-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 5px rgba(255,255,255,0.2);
}

.text-gold {
  color: var(--neon-yellow) !important;
  text-shadow: 0 0 8px rgba(255, 238, 0, 0.4) !important;
}

.energy-bar-outer {
  width: 75px;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.energy-bar-inner {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan));
  box-shadow: 0 0 8px var(--neon-pink);
  transition: width 0.1s linear;
}

.weapon-indicator {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 8, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 4px 10px;
}

.ammo-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: bold;
}

.ammo-pills {
  display: flex;
  gap: 4px;
}

.ammo-pill {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
}

.ammo-pill.active {
  background-color: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

/* Action controls trigger button placed exactly for thumb */
.action-trigger-area {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  z-index: 6;
}

.blast-trigger-btn {
  width: 100%;
  height: 54px;
  border-radius: 18px;
  border: none;
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.95), rgba(180, 0, 255, 0.95));
  box-shadow: 0 6px 20px rgba(255, 0, 128, 0.4), inset 0 2px 2px rgba(255,255,255,0.3);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 0.82rem;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s, filter 0.2s;
  box-shadow: 0 0 12px rgba(255, 0, 128, 0.5);
}

.blast-trigger-btn:active {
  transform: scale(0.96);
  filter: brightness(1.2);
}
