/* ==========================================================================
   SliceSlide - Core Stylesheet (Futuristic Cyberpunk Stack Aesthetic)
   ========================================================================== */

:root {
  --bg-dark: #05030a;
  --bg-darker: #010003;
  --bg-panel: rgba(10, 6, 22, 0.85);
  
  --neon-pink: #ff007f;
  --neon-cyan: #00f0ff;
  --neon-purple: #8f00ff;
  --neon-yellow: #ffff00;
  --neon-green: #39ff14;
  --neon-red: #ff3131;
  --neon-gold: #ffea00;
  
  --text-main: #f4effa;
  --text-muted: #827b9c;
  
  --border-cyan: rgba(0, 240, 255, 0.2);
  --border-pink: rgba(255, 0, 127, 0.2);
  --border-gold: rgba(255, 234, 0, 0.2);
  
  --font-display: 'Orbitron', -apple-system, sans-serif;
  --font-tech: 'Rajdhani', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

/* Reset & Setup */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-pink) rgba(255,255,255,0.02);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Cyber Starfield Space Grid Backgrounds */
.space-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(ellipse at 50% 50%, #110825 0%, var(--bg-dark) 85%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='15' cy='20' r='1' fill='%23fff' opacity='0.25'/%3E%3Ccircle cx='55' cy='45' r='1.2' fill='%23fff' opacity='0.35'/%3E%3Ccircle cx='80' cy='15' r='1' fill='%23fff' opacity='0.2'/%3E%3Ccircle cx='75' cy='85' r='1.5' fill='%23fff' opacity='0.3'/%3E%3Ccircle cx='25' cy='75' r='1' fill='%23fff' opacity='0.15'/%3E%3C/svg%3E") repeat;
  z-index: 1;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 0, 127, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 0, 127, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 2;
  pointer-events: none;
}

.grid-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 35%, var(--bg-dark) 90%);
  pointer-events: none;
}

/* Cosmic Ambient Glowing Orbs */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(160px);
  opacity: 0.09;
  z-index: 3;
  pointer-events: none;
  animation: float-ambient 25s infinite alternate ease-in-out;
}

.ambient-glow.pink {
  width: 480px;
  height: 480px;
  background-color: var(--neon-pink);
  top: 10%;
  left: 5%;
}

.ambient-glow.cyan {
  width: 580px;
  height: 580px;
  background-color: var(--neon-cyan);
  bottom: 10%;
  right: 5%;
  animation-delay: -7s;
}

@keyframes float-ambient {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -50px) scale(1.15); }
}

/* ==========================================================================
   Horizontal Main Wrapper & Column layouts
   ========================================================================== */

.main-layout-wrapper {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  z-index: 10;
  position: relative;
}

.arcade-deck {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 800px;
  max-width: 800px;
  padding: 0;
  margin: 0;
  animation: deck-entry 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes deck-entry {
  from { opacity: 0; transform: scale(0.97) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* HUD Header Control panel */
.hud-header {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 15px;
  background: rgba(8, 4, 18, 0.65);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-pink);
  border-radius: 16px;
  padding: 12px 24px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.6);
}

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

.hud-center {
  text-align: center;
}

.hud-right {
  display: flex;
  justify-content: flex-end;
}

/* LED Digital display panel */
.led-score-panel {
  display: flex;
  flex-direction: column;
  background: #010003;
  border: 1px solid rgba(255, 0, 127, 0.4);
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.15) inset;
  padding: 4px 16px;
  border-radius: 8px;
  min-width: 130px;
}

.led-score-panel .label {
  font-family: var(--font-tech);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--neon-pink);
  opacity: 0.7;
}

.led-score-panel .value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--text-main);
  text-shadow: 0 0 8px rgba(255, 0, 127, 0.8), 0 0 15px rgba(255, 0, 127, 0.4);
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
}

.status-indicator-dot.offline {
  background-color: var(--neon-red);
  box-shadow: 0 0 8px var(--neon-red);
}

/* Header Logo typography */
.logo-title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 4px;
}

.logo-title .pink-neon {
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.logo-title .cyan-neon {
  color: var(--neon-cyan);
  text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px rgba(0, 240, 255, 0.5);
}

/* Glowing buttons */
.btn {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 2px;
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-neon-pink {
  background: linear-gradient(135deg, rgba(255, 0, 127, 0.1), rgba(143, 0, 255, 0.15));
  border-color: var(--neon-pink);
  color: var(--text-main);
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.15);
}

.btn-neon-pink:hover {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.5), 0 0 35px rgba(255, 0, 127, 0.25);
  transform: translateY(-2px);
}

.btn-neon-cyan {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(0, 75, 102, 0.15));
  border-color: var(--neon-cyan);
  color: var(--text-main);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.btn-neon-cyan:hover {
  background: linear-gradient(135deg, var(--neon-cyan), #004b66);
  color: #000;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.5), 0 0 35px rgba(0, 240, 255, 0.25);
  transform: translateY(-2px);
}

.btn-neon-yellow {
  background: linear-gradient(135deg, rgba(255, 234, 0, 0.1), rgba(255, 144, 0, 0.15));
  border-color: var(--neon-gold);
  color: var(--text-main);
  box-shadow: 0 0 10px rgba(255, 234, 0, 0.15);
}

.btn-neon-yellow:hover {
  background: linear-gradient(135deg, var(--neon-gold), #ff9000);
  color: #000;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(255, 234, 0, 0.5);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--neon-pink);
  color: var(--text-main);
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.2);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

/* ==========================================================================
   Game Main Canvas Frame (Exactly 800px * 800px)
   ========================================================================== */

.game-viewport {
  position: relative;
  width: 800px;
  height: 800px;
  background: #010003;
  border-radius: 20px;
  border: 2px solid var(--neon-cyan);
  box-shadow: 
    0 0 25px rgba(0, 240, 255, 0.15), 
    0 15px 45px rgba(0, 0, 0, 0.8),
    0 0 15px rgba(0, 240, 255, 0.1) inset;
  overflow: hidden;
  margin-bottom: 20px;
  cursor: pointer;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: transparent;
}

/* Glassmorphism Overlays (Start & Game Over Screens) */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 1, 6, 0.72);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  padding: 30px;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.overlay-content {
  background: var(--bg-panel);
  border: 1px solid rgba(0, 240, 255, 0.08);
  border-radius: 24px;
  padding: 40px;
  max-width: 580px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  transform: scale(0.92);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.overlay.active .overlay-content {
  transform: scale(1);
  border-color: rgba(255, 0, 127, 0.2);
  box-shadow: 0 0 30px rgba(255, 0, 127, 0.08);
}

/* Icons & Warnings */
.warning-icon-wrapper {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(255, 0, 127, 0.05);
  border: 1px solid var(--neon-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px auto;
  box-shadow: 0 0 15px rgba(255, 0, 127, 0.2);
}

.warning-icon {
  font-size: 2.2rem;
  color: var(--neon-pink);
  text-shadow: 0 0 8px var(--neon-pink);
}

.danger-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 15px;
}

.skull-icon {
  font-size: 2.5rem;
  text-shadow: 0 0 10px var(--neon-red);
  margin-bottom: 10px;
  animation: pulse-glow 2s infinite alternate;
}

/* Titles and Descs */
.overlay-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.overlay-title.danger-text {
  color: var(--neon-red);
  text-shadow: 0 0 12px rgba(255, 49, 49, 0.5);
}

.overlay-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.text-highlight {
  color: var(--neon-pink);
  font-weight: 600;
}

.speed-warning {
  background: rgba(0, 240, 255, 0.04);
  border: 1px solid rgba(0, 240, 255, 0.12);
  padding: 10px 15px;
  border-radius: 8px;
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  margin-bottom: 30px;
}

.alert-pulse {
  animation: pulse-glow 1s infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; text-shadow: 0 0 10px var(--neon-cyan); }
}

/* Final Score Card */
.final-score-card {
  background: rgba(2, 1, 5, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-score-card .card-label {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.final-score-card .card-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--neon-gold);
  text-shadow: 0 0 15px rgba(255, 234, 0, 0.5);
}

/* Record Submission Group */
.record-submission {
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.01);
  padding: 20px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.entry-label {
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  display: block;
  margin-bottom: 12px;
}

.input-group {
  display: flex;
  gap: 10px;
  width: 100%;
}

.input-group input {
  flex-grow: 1;
  background: #020104;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-tech);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--neon-pink);
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.3);
}

.error-msg {
  color: var(--neon-red);
  font-size: 0.8rem;
  text-align: left;
  margin-top: 8px;
  font-weight: 600;
  display: none;
}

/* ==========================================================================
   High Score Leaderboards Tables
   ========================================================================== */

.leaderboard-section {
  width: 100%;
  margin-top: 20px;
  text-align: left;
}

.leaderboard-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.leaderboard-table-container {
  max-height: 200px;
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #010003;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.leaderboard-table th {
  font-family: var(--font-tech);
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  background: rgba(10, 6, 22, 0.95);
  padding: 8px 12px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.leaderboard-table td {
  padding: 10px 12px;
  font-size: 0.85rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  font-family: var(--font-tech);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.leaderboard-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Special ranks coloring */
.rank-1 { color: var(--neon-gold) !important; font-weight: 700 !important; }
.rank-2 { color: #d1d1d1 !important; font-weight: 700 !important; }
.rank-3 { color: #cd7f32 !important; font-weight: 700 !important; }

.leaderboard-table tr.highlighted {
  background: rgba(255, 0, 127, 0.08);
}

/* Dynamic overlay announcements */
.toast-alert {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  background: rgba(255, 0, 127, 0.95);
  border: 1px solid #ffea00;
  border-radius: 8px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 20;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.toast-alert.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-tag {
  background: #000;
  color: #ffea00;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #ffea00;
  animation: blink-warning 0.5s infinite alternate;
}

@keyframes blink-warning {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.toast-txt {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  color: #fff;
}

/* Perfect alignment overlay toast */
.perfect-toast {
  position: absolute;
  top: 20px;
  background: rgba(255, 234, 0, 0.98);
  border: 2px solid #ffffff;
  border-radius: 12px;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  z-index: 25;
  box-shadow: 0 0 35px rgba(255, 234, 0, 0.6), 0 0 15px rgba(255, 255, 255, 0.4) inset;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.35);
}

.perfect-toast.top-left {
  left: 20px;
  transform: scale(0.6);
  transform-origin: top left;
}

.perfect-toast.top-right {
  right: 20px;
  transform: scale(0.6);
  transform-origin: top right;
}

.perfect-toast.top-left.show {
  transform: scale(1);
  opacity: 1;
}

.perfect-toast.top-right.show {
  transform: scale(1);
  opacity: 1;
}

.perfect-tag {
  color: #000;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 950;
  letter-spacing: 2px;
  text-shadow: 0 0 8px rgba(255,255,255,0.8);
  animation: jitter 0.25s infinite alternate;
}

@keyframes jitter {
  0% { transform: skewX(-2deg); }
  100% { transform: skewX(2deg); }
}

.perfect-txt {
  font-family: var(--font-tech);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: #111;
}

/* ==========================================================================
   Bottom Controls & Sponsor Banner Layouts
   ========================================================================== */

.hud-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

/* Right Aside Ad Layout */
.ad-side-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 800px; /* Aligned to game frame height */
  margin-top: 80px; /* Aligns top of ad panel/button with game viewport top edge (hud-header is ~65px + 15px margin) */
}

/* Go to Hub Navigation Button */
.home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 140px;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--border-pink);
  color: var(--text-main);
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: center;
  line-height: 1.2;
}

.home-btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
  transform: translateY(-3px);
  color: var(--neon-cyan);
}

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

.home-icon {
  font-size: 1.05rem;
}

/* Coupang Partners Ad Banner (140x680 Vertical) */
.ad-banner-container {
  width: 140px;
  height: 680px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border-pink);
  box-shadow: 0 0 20px rgba(255, 0, 127, 0.05), 0 8px 30px rgba(0, 0, 0, 0.7);
  background: rgba(8, 4, 18, 0.6);
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ad-banner-container:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.15), 0 8px 30px rgba(0, 0, 0, 0.8);
}

.ad-banner-container iframe {
  display: block;
  border: none !important;
  border-radius: 12px;
  max-height: 100%;
}

/* ==========================================================================
   Full Ranking Leaderboard dedicated Modal (Pop-up overlay)
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 1, 6, 0.8);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-panel);
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 35px rgba(0, 240, 255, 0.1), 0 25px 60px rgba(0,0,0,0.8);
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 20px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}

.gold-text {
  color: var(--neon-gold);
  text-shadow: 0 0 8px var(--neon-gold);
}

.btn-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.btn-close:hover {
  color: var(--neon-pink);
}

.modal-body {
  padding: 30px;
}

.modal-table {
  max-height: 400px;
}

/* Audio warning toast confirmation */
.audio-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(10, 6, 24, 0.85);
  border: 1px solid var(--neon-green);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.2);
  color: #fff;
  font-family: var(--font-tech);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 8px 16px;
  border-radius: 6px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.5s ease;
}

.audio-toast.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Screen Shake anim */
.shake-anim {
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translate(0, 0); }
  10%, 90% { transform: translate(-4px, -2px); }
  20%, 80% { transform: translate(4px, 2px); }
  30%, 50%, 70% { transform: translate(-5px, 3px); }
  40%, 60% { transform: translate(5px, -3px); }
}

/* Screen Flash gold anim (Perfect Align bonus) */
.flash-gold-anim {
  animation: flash-gold 0.35s ease-out;
}

@keyframes flash-gold {
  0% { box-shadow: 0 0 0px transparent inset; }
  50% { box-shadow: 0 0 80px rgba(255, 234, 0, 0.55) inset; border-color: var(--neon-gold); }
  100% { box-shadow: 0 0 0px transparent inset; }
}

/* Responsive configurations */
@media (max-width: 1024px) {
  .main-layout-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .ad-side-panel {
    margin-top: 20px;
    height: auto;
  }
  .ad-banner-container {
    height: 300px;
  }
}

@media (max-width: 880px) {
  .arcade-deck {
    width: 100%;
    max-width: 500px;
    padding: 10px;
  }
  .hud-header {
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
    padding: 12px;
  }
  .hud-right {
    justify-content: center;
    width: 100%;
  }
  .hud-left {
    justify-content: center;
  }
  .game-viewport {
    width: 100%;
    max-width: 500px;
    height: 500px;
  }
  #game-canvas {
    width: 100%;
    height: 100%;
  }
  .hud-footer {
    justify-items: center;
    gap: 15px;
  }
}
