:root {
  --bg-dark: #060911;
  --bg-hud: rgba(8, 12, 22, 0.95);
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.45);
  --pink: #ff0055;
  --gold: #ffb703;
  --purple: #a855f7;
  --emerald: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: #1a253c;
  --card-bg: rgba(13, 19, 34, 0.85);
  --font-main: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  touch-action: manipulation;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* ================= HUD Header ================= */
.game-hud {
  height: 58px;
  background: var(--bg-hud);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  backdrop-filter: blur(16px);
  z-index: 10;
}

.hud-left, .hud-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
}

.brand-pill .dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
}

.stat-pill {
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: #0f1628;
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 6px;
}

.stat-lbl {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.8px;
}

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

.score-pill .stat-val {
  color: var(--cyan);
  text-shadow: 0 0 10px var(--cyan-glow);
}

.best-pill .stat-val {
  color: var(--gold);
}

.hud-center {
  display: flex;
  align-items: center;
  gap: 10px;
}

.powerup-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.powerup-badge.shield { border: 1px solid var(--cyan); color: var(--cyan); box-shadow: 0 0 10px rgba(0, 240, 255, 0.3); }
.powerup-badge.magnet { border: 1px solid var(--purple); color: var(--purple); box-shadow: 0 0 10px rgba(168, 85, 247, 0.3); }
.powerup-badge.speed { border: 1px solid var(--pink); color: var(--pink); box-shadow: 0 0 10px rgba(255, 0, 85, 0.3); }

.hud-btn {
  width: 36px;
  height: 36px;
  background: #0f1628;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hud-btn:hover {
  background: #1b263d;
  color: #fff;
  border-color: var(--cyan);
}

/* ================= Balanced Neon Stage Layout ================= */
.arena-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 16px;
  max-width: 1560px;
  margin: 0 auto;
  width: 100%;
  height: calc(100vh - 58px);
  overflow: hidden;
}

/* Side Panels */
.side-panel {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-ico.cyan { color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }
.header-ico.amber { color: var(--gold); text-shadow: 0 0 8px var(--gold); }
.header-ico.crimson { color: var(--pink); text-shadow: 0 0 8px var(--pink); }
.header-ico.purple { color: var(--purple); text-shadow: 0 0 8px var(--purple); }

/* Left Panel: Telemetry */
.telemetry-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.telemetry-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.t-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
}

.t-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
}

.t-value.highlight {
  color: var(--gold);
}

/* Active Skin Card */
.active-skin-display {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 14px var(--cyan-glow);
}

.skin-avatar.skin-cyber { background: radial-gradient(circle, #00f0ff 0%, #0077aa 100%); }
.skin-avatar.skin-dragon { background: radial-gradient(circle, #ffb703 0%, #b85d00 100%); border-color: #ffb703; box-shadow: 0 0 14px rgba(255, 183, 3, 0.5); }
.skin-avatar.skin-fire { background: radial-gradient(circle, #ff0055 0%, #aa0022 100%); border-color: #ff0055; box-shadow: 0 0 14px rgba(255, 0, 85, 0.5); }
.skin-avatar.skin-galaxy { background: radial-gradient(circle, #a855f7 0%, #4c1d95 100%); border-color: #a855f7; box-shadow: 0 0 14px rgba(168, 85, 247, 0.5); }

.skin-meta {
  display: flex;
  flex-direction: column;
}

.s-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
}

.s-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* Right Panel: Legend */
.legend-list, .powerup-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fruit-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fruit-icon.tomato-ico { background: #ff0055; box-shadow: 0 0 8px #ff0055; }
.fruit-icon.golden-ico { background: #ffb703; box-shadow: 0 0 8px #ffb703; }
.fruit-icon.crystal-ico { background: #00f0ff; box-shadow: 0 0 8px #00f0ff; border-radius: 2px; transform: rotate(45deg); }

.legend-desc, .p-text {
  display: flex;
  flex-direction: column;
}

.legend-desc strong, .p-text strong {
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
}

.legend-desc span, .p-text span {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.powerup-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p-badge {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.p-badge.shield { background: rgba(0, 240, 255, 0.15); border: 1px solid var(--cyan); color: var(--cyan); }
.p-badge.magnet { background: rgba(168, 85, 247, 0.15); border: 1px solid var(--purple); color: var(--purple); }
.p-badge.speed { background: rgba(255, 0, 85, 0.15); border: 1px solid var(--pink); color: var(--pink); }

/* Center Arena with Neon Frame */
.arena-center-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  overflow: hidden;
}

.neon-frame-border {
  position: relative;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.6) 0%, rgba(168, 85, 247, 0.3) 50%, rgba(255, 0, 85, 0.6) 100%);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 240, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 100%;
  max-width: 100%;
}

.canvas-container {
  position: relative;
  background: #060911;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: calc(100vh - 76px);
  max-width: 100%;
}

canvas {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 80px);
  width: auto;
  height: auto;
  aspect-ratio: 900 / 600;
  object-fit: contain;
}

/* Floating Layer */
.floating-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.floating-point {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 1.1rem;
  animation: floatUp 0.8s ease-out forwards;
}

@keyframes floatUp {
  0% { transform: translateY(0) scale(0.8); opacity: 1; }
  100% { transform: translateY(-40px) scale(1.2); opacity: 0; }
}

/* ================= Overlay Screens ================= */
.overlay-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 9, 17, 0.9);
  backdrop-filter: blur(10px);
  display: none !important;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 10px;
  overflow: hidden;
}

.overlay-screen.active {
  display: flex !important;
}

.screen-content {
  max-width: 580px;
  width: 90%;
  max-height: 90%;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #151e36 0%, #0d1222 100%);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 240, 255, 0.2);
}

.screen-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* ================= AAA Arcade Hero Modal (Start Screen) ================= */
.screen-content.arcade-hero-modal {
  max-width: 760px;
  width: 96%;
  max-height: 96%;
  padding: 12px 18px;
  background: radial-gradient(circle at 50% 10%, #111a33 0%, #080d1a 60%, #04070d 100%);
  border: 1.5px solid rgba(0, 240, 255, 0.45);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 240, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  overflow: hidden; /* Zero scrollbar */
}

/* Modal Top Tag */
.modal-top-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--cyan);
  text-transform: uppercase;
}

.live-gem {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  animation: pulseGem 1.5s infinite ease-in-out;
}

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

/* Split Stage */
.hero-split-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-stage-left {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stage-left .game-title {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin: 0;
  line-height: 1.05;
  background: linear-gradient(90deg, #00f0ff 0%, #38bdf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.4));
}

.hero-stage-left .game-subtitle {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 1.3px;
  color: var(--text-muted);
  margin: 0;
}

.quick-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 1px 0;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #e0f2fe;
}

.badge-pill i {
  color: var(--cyan);
}

.legend-mini-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 4px 8px;
}

.l-mini-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.l-mini-item strong {
  color: #fff;
}

.controls-mini-strip {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 700;
}

.controls-mini-strip .sep {
  color: rgba(255, 255, 255, 0.2);
}

/* Right Stage: Snake Artwork Spotlight */
.hero-stage-right {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-snake-artwork-box {
  position: relative;
  width: 170px;
  height: 125px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 240, 255, 0.5);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 240, 255, 0.25);
  background: #090e1a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.hero-snake-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease, transform 0.4s ease;
}

.hero-snake-artwork-box:hover .hero-snake-img {
  transform: scale(1.05);
}

.artwork-glow-ring {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  pointer-events: none;
  box-shadow: inset 0 0 15px rgba(0, 240, 255, 0.4);
  transition: box-shadow 0.3s ease;
}

.artwork-chassis-tag {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(6, 9, 17, 0.9);
  border: 1px solid rgba(0, 240, 255, 0.5);
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--cyan);
  white-space: nowrap;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
  transition: all 0.3s ease;
}

/* Bottom: Skin Cards & Start Game CTA */
.hero-stage-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.skin-selection-deck {
  flex: 1;
}

.deck-title {
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.skin-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.skin-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-align: center;
}

.skin-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(30, 41, 59, 0.95);
}

.skin-btn.active {
  background: rgba(0, 240, 255, 0.14);
  border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.45), inset 0 0 8px rgba(0, 240, 255, 0.15);
}

/* Mini Snake Head Avatars inside cards */
.skin-preview {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.skin-btn:hover .skin-preview {
  transform: scale(1.1);
}

.skin-preview.skin-cyber {
  background: radial-gradient(circle at 35% 35%, #5eead4 0%, #00f0ff 40%, #0284c7 80%, #0369a1 100%);
  border: 1.5px solid #00f0ff;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.7);
}

.skin-preview.skin-dragon {
  background: radial-gradient(circle at 35% 35%, #fde047 0%, #ffb703 40%, #d97706 80%, #92400e 100%);
  border: 1.5px solid #ffb703;
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.7);
}

.skin-preview.skin-fire {
  background: radial-gradient(circle at 35% 35%, #fda4af 0%, #ff0055 40%, #be123c 80%, #881337 100%);
  border: 1.5px solid #ff0055;
  box-shadow: 0 0 10px rgba(255, 0, 85, 0.7);
}

.skin-preview.skin-galaxy {
  background: radial-gradient(circle at 35% 35%, #e9d5ff 0%, #a855f7 40%, #7e22ce 80%, #3b0764 100%);
  border: 1.5px solid #a855f7;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.7);
}

.mini-snake-head {
  position: relative;
  width: 18px;
  height: 18px;
}

.mini-eye {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ffffff;
  border-radius: 50%;
  top: 5px;
  box-shadow: 0 0 4px #ffffff;
}

.mini-eye::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 2px;
  background: #000;
  border-radius: 50%;
  top: 1px;
  left: 1px;
}

.mini-eye.left { left: 3px; }
.mini-eye.right { right: 3px; }

.skin-name {
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.skin-perk {
  font-size: 0.54rem;
  color: var(--text-muted);
}

/* Prominent Start Button CTA */
.hero-cta-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.neon-pulse-btn {
  padding: 10px 24px !important;
  font-size: 0.88rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.8px !important;
  background: linear-gradient(135deg, #00f0ff 0%, #00b4d8 100%) !important;
  color: #040812 !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.6), 0 0 12px rgba(0, 240, 255, 0.4) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  animation: startPulse 2s infinite ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@keyframes startPulse {
  0%, 100% {
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.6), 0 0 15px rgba(0, 240, 255, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 35px rgba(0, 240, 255, 0.9), 0 0 25px rgba(0, 240, 255, 0.6);
    transform: scale(1.02);
  }
}

.neon-pulse-btn:hover {
  transform: translateY(-2px) scale(1.04) !important;
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.9) !important;
  filter: brightness(1.1);
}

.neon-pulse-btn:active {
  transform: translateY(1px) scale(0.98) !important;
}

.cta-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 36px;
  background: var(--cyan);
  border: none;
  border-radius: 6px;
  color: #060911;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--cyan-glow);
  transition: all 0.2s ease;
}

.cta-play-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.15);
}

.action-btn-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.cta-sub-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: #1f2937;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cta-sub-btn:hover {
  background: #374151;
  border-color: #fff;
}

/* Stats Recap Grid */
.stats-recap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.recap-card {
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.recap-lbl {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
}

.recap-val {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
}

.recap-val.highlight {
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan-glow);
}

.gameover-skull i {
  font-size: 2.5rem;
  color: var(--pink);
  margin-bottom: 10px;
  filter: drop-shadow(0 0 15px var(--pink));
}

.victory-trophy i {
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 10px;
  filter: drop-shadow(0 0 20px var(--gold));
}

/* ================= Mobile Controls & Responsive ================= */
.mobile-dpad {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.dpad-row {
  display: flex;
  gap: 10px;
}

.dpad-btn {
  width: 52px;
  height: 52px;
  background: #182236;
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 12px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dpad-btn:active {
  background: var(--cyan);
  color: #060911;
  transform: scale(0.92);
}

@media(max-width: 1350px), (max-height: 700px) {
  .side-panel {
    display: none !important;
  }
  .arena-stage {
    padding: 6px 10px;
    gap: 0;
  }
}

@media(max-width: 768px), (max-height: 540px) {
  .mobile-dpad {
    display: flex;
  }

  .screen-content.arcade-hero-modal {
    padding: 8px 10px;
    gap: 6px;
  }

  .hero-split-stage {
    gap: 8px;
  }

  .hero-snake-artwork-box {
    width: 110px;
    height: 80px;
  }

  .hero-stage-left .game-title {
    font-size: 1.25rem;
  }

  .legend-mini-grid {
    padding: 3px 6px;
    font-size: 0.6rem;
  }

  .hero-stage-bottom {
    gap: 6px;
  }

  .skin-cards-row {
    gap: 4px;
  }

  .skin-preview {
    width: 22px;
    height: 22px;
  }

  .mini-snake-head {
    width: 14px;
    height: 14px;
  }

  .skin-name {
    font-size: 0.58rem;
  }

  .skin-perk {
    display: none;
  }

  .neon-pulse-btn {
    padding: 8px 16px !important;
    font-size: 0.82rem !important;
  }
}
