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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: fixed;
  top: 0;
  left: 0;
}

body {
  background: #0a0a0f;
  font-family: "Courier New", Courier, monospace;
  color: #fff;
  touch-action: none;
  -webkit-overflow-scrolling: none;
}

#game-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#game-canvas {
  display: block;
  background: #000;
  max-width: 100%;
  max-height: 100%;
}

.hidden {
  display: none !important;
}

/* HUD Styles */
#hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  padding: 15px;
}

#hud-left {
  position: absolute;
  top: 15px;
  left: 15px;
}

.bar-container {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.bar-label {
  width: 60px;
  font-size: 12px;
  font-weight: bold;
  text-shadow: 1px 1px 2px #000;
}

.bar {
  width: 150px;
  height: 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  transition: width 0.2s ease;
}

.hp-bar .bar-fill {
  background: linear-gradient(to bottom, #ef4444, #b91c1c);
  width: 100%;
}

.shield-bar .bar-fill {
  background: linear-gradient(to bottom, #60a5fa, #2563eb);
  width: 100%;
}

#hud-right {
  position: absolute;
  top: 15px;
  right: 15px;
  text-align: right;
  font-size: 14px;
  text-shadow: 1px 1px 2px #000;
}

#lives-display,
#score-display {
  margin-bottom: 5px;
}

#hud-bottom {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 14px;
  text-shadow: 1px 1px 2px #000;
  display: flex;
  gap: 30px;
}

/* Menu Styles */
.menu {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(10, 10, 20, 0.95);
  border: 2px solid #7c3aed;
  border-radius: 10px;
  padding: 40px 60px;
  text-align: center;
  min-width: 300px;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.menu h1 {
  font-size: 36px;
  color: #a78bfa;
  margin-bottom: 10px;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

.menu h2 {
  font-size: 28px;
  color: #a78bfa;
  margin-bottom: 20px;
}

.menu .subtitle {
  color: #71717a;
  margin-bottom: 30px;
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-btn {
  background: linear-gradient(to bottom, #4c1d95, #312e81);
  color: #fff;
  border: 2px solid #7c3aed;
  padding: 12px 30px;
  font-size: 16px;
  font-family: "Courier New", Courier, monospace;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.2s ease;
  text-transform: uppercase;
}

.menu-btn:hover {
  background: linear-gradient(to bottom, #7c3aed, #4c1d95);
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
  transform: scale(1.02);
}

.menu-btn:active {
  transform: scale(0.98);
}

/* Options Menu */
.option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px 0;
}

.option-row label {
  font-size: 14px;
}

.option-row input[type="range"] {
  width: 120px;
  accent-color: #7c3aed;
}

.option-row input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #7c3aed;
}

/* Upgrade Screen */
#upgrade-info {
  margin: 20px 0;
  padding: 20px;
  background: rgba(124, 58, 237, 0.1);
  border-radius: 5px;
}

#upgrade-text {
  font-size: 18px;
  color: #22c55e;
  margin-bottom: 15px;
}

#ship-preview {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}

/* Planet Map */
#planet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.planet-node {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 3px solid transparent;
}

.planet-node.locked {
  background: #27272a;
  color: #52525b;
  cursor: not-allowed;
}

.planet-node.unlocked {
  border-color: #22c55e;
}

.planet-node.unlocked:hover {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.planet-node.current {
  border-color: #fbbf24;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 5px rgba(251, 191, 36, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.8);
  }
}

/* Touch Controls */
#touch-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

#joystick-zone {
  position: absolute;
  bottom: 30px;
  left: 30px;
  width: 120px;
  height: 120px;
  pointer-events: auto;
}

#joystick-base {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

#joystick-stick {
  position: absolute;
  width: 50px;
  height: 50px;
  background: rgba(124, 58, 237, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#fire-button {
  position: absolute;
  bottom: 50px;
  right: 50px;
  width: 80px;
  height: 80px;
  background: rgba(239, 68, 68, 0.7);
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
  pointer-events: auto;
}

#fire-button:active {
  background: rgba(239, 68, 68, 0.9);
  transform: scale(0.95);
}

/* Intro Screen */
.intro-text {
  font-size: 16px;
  line-height: 1.8;
  max-width: 400px;
  margin-bottom: 30px;
  color: #d1d5db;
}

/* Victory Screen */
#victory-screen h2 {
  color: #22c55e;
  font-size: 42px;
  text-shadow: 0 0 20px rgba(34, 197, 94, 0.5);
}

#victory-text {
  font-size: 18px;
  margin-bottom: 10px;
}

#victory-subtext {
  color: #a78bfa;
  font-size: 14px;
  margin-bottom: 30px;
}

/* Game Over */
#gameover-screen h2 {
  color: #ef4444;
}

#gameover-text {
  margin-bottom: 20px;
}

/* Damage Flash Overlay */
#damage-flash {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(239, 68, 68, 0.3);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s ease;
}

/* ============================================ */
/* SHIP EDITOR STYLES                          */
/* ============================================ */

/* Editor HUD Button */
.editor-hud-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background: linear-gradient(to bottom, #4c1d95, #312e81);
  color: #fff;
  border: 2px solid #7c3aed;
  border-radius: 5px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s ease;
}

.editor-hud-btn:hover {
  background: linear-gradient(to bottom, #7c3aed, #4c1d95);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.5);
}

/* Mobile Editor Button */
.editor-mobile-btn {
  position: absolute;
  bottom: 140px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #4c1d95, #312e81);
  border: 3px solid #7c3aed;
  font-size: 24px;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.editor-mobile-btn:active {
  transform: scale(0.95);
}

/* Ship Editor Overlay */
#ship-editor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000; /* Increased to ensure it sits above everything */
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto; /* Force enable clicks */
}

#editor-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1; /* Explicit low layer */
  pointer-events: auto; /* Catches clicks on the background */
}

#editor-container {
  position: relative;
  background: #1a1a2e;
  border: 3px solid #7c3aed;
  border-radius: 10px;
  padding: 20px;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto; /* Allows scrolling if vertical height is too small */
  overflow-x: hidden;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.4);
  z-index: 10; /* Explicitly higher than the overlay */
}

#editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #4c1d95;
}

#editor-header h2 {
  color: #a78bfa;
  font-size: 24px;
  margin: 0;
}

.editor-close-btn {
  width: 36px;
  height: 36px;
  background: #ef4444;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.editor-close-btn:hover {
  background: #dc2626;
  transform: scale(1.1);
}

#editor-content {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

/* Inventory Panel */
#editor-inventory {
  width: 180px;
  background: #2a2a3e;
  border-radius: 8px;
  padding: 15px;
}

#editor-inventory h3 {
  color: #a78bfa;
  font-size: 14px;
  margin-bottom: 15px;
  text-align: center;
}

#inventory-shapes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.inventory-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #1a1a2e;
  border: 2px solid #4a4a5e;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.inventory-item:hover {
  border-color: #7c3aed;
  background: #2a2a4e;
}

.inventory-item.selected {
  border-color: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.inventory-item.locked {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(1);
}

.inventory-item.placed {
  opacity: 0.5;
}

.shape-icon {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.shape-icon canvas {
  width: 36px;
  height: 36px;
}

.shape-name {
  font-size: 11px;
  color: #d1d5db;
  flex: 1;
}

.shape-stats {
  font-size: 10px;
  color: #22c55e;
}

/* Editor Main Area */
#editor-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#editor-canvas-container {
  background: #2a2a2a;
  border: 2px solid #4a4a5e;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#editor-canvas {
  background: #1a1a1a;
  border-radius: 4px;
}

#editor-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.editor-ctrl-btn {
  padding: 10px 20px;
  background: #3a3a4e;
  color: #fff;
  border: 2px solid #5a5a6e;
  border-radius: 5px;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.editor-ctrl-btn:hover {
  background: #4a4a5e;
  border-color: #7c3aed;
}

.editor-ctrl-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.editor-ctrl-btn.danger {
  background: #7f1d1d;
  border-color: #ef4444;
}

.editor-ctrl-btn.danger:hover {
  background: #991b1b;
}

.editor-ctrl-btn.small {
  padding: 6px 12px;
  font-size: 11px;
}

/* Layer and Scale Controls */
#editor-layer-controls,
#editor-scale-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.controls-label {
  color: #a0a0a0;
  font-family: "Courier New", monospace;
  font-size: 11px;
  font-weight: bold;
}

.scale-display {
  color: #fbbf24;
  font-family: "Courier New", monospace;
  font-size: 14px;
  font-weight: bold;
  min-width: 45px;
  text-align: center;
  padding: 5px 10px;
  background: #2a2a3e;
  border-radius: 4px;
  border: 1px solid #4a4a5e;
}

/* Position/Arrow Controls */
#editor-position-controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.arrow-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.arrow-row {
  display: flex;
  gap: 2px;
}

.arrow-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stats Display */
#editor-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 15px;
  background: #2a2a3e;
  border-radius: 8px;
  margin-bottom: 15px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-label {
  color: #9ca3af;
  font-size: 12px;
}

.stat-value {
  color: #22c55e;
  font-size: 16px;
  font-weight: bold;
}

/* Action Buttons */
#editor-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.save-btn {
  background: linear-gradient(to bottom, #166534, #14532d) !important;
  border-color: #22c55e !important;
}

.save-btn:hover {
  background: linear-gradient(to bottom, #22c55e, #166534) !important;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.5) !important;
}

.cancel-btn {
  background: linear-gradient(to bottom, #4b5563, #374151) !important;
  border-color: #6b7280 !important;
}

.cancel-btn:hover {
  background: linear-gradient(to bottom, #6b7280, #4b5563) !important;
}

/* Responsive Design */
@media (max-width: 600px) {
  .menu {
    padding: 30px 40px;
    min-width: 280px;
  }

  .menu h1 {
    font-size: 28px;
  }

  .menu-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  #hud-left {
    transform: scale(0.9);
    transform-origin: top left;
  }

  #hud-right {
    transform: scale(0.9);
    transform-origin: top right;
  }

  /* ================================
     MOBILE SHIP EDITOR - Full Redesign
     Single screen, no scrolling
     ================================ */
  #ship-editor {
    align-items: stretch;
  }

  #editor-container {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    max-width: 100vw;
    padding: 0;
    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Compact Header */
  #editor-header {
    padding: 8px 15px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  #editor-header h2 {
    font-size: 16px;
  }

  .editor-close-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  /* Stats at top - compact single row */
  #editor-stats {
    order: -1;
    padding: 8px 10px;
    gap: 10px;
    margin-bottom: 0;
    flex-shrink: 0;
    flex-wrap: nowrap;
    justify-content: space-around;
    background: #1f1f2e;
    border-radius: 0;
  }

  .stat-item {
    gap: 4px;
  }

  .stat-label {
    font-size: 10px;
    display: none;
  }

  .stat-value {
    font-size: 14px;
  }

  .stat-item::before {
    font-size: 12px;
  }

  /* Content area - canvas maximized */
  #editor-content {
    flex-direction: column;
    flex: 1;
    gap: 8px;
    margin-bottom: 0;
    padding: 8px;
    min-height: 0;
    overflow: hidden;
  }

  /* Canvas area - takes most space */
  #editor-main {
    flex: 1;
    gap: 8px;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  #editor-canvas-container {
    flex: 1;
    padding: 5px;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #editor-canvas {
    max-width: 100%;
    max-height: 100%;
  }

  /* Controls row - compact horizontal */
  #editor-controls {
    flex-wrap: nowrap;
    gap: 6px;
    justify-content: center;
    flex-shrink: 0;
  }

  .editor-ctrl-btn {
    padding: 8px 12px;
    font-size: 10px;
    min-height: 36px;
  }

  /* Layer and scale controls - combined row */
  #editor-layer-controls,
  #editor-scale-controls {
    margin-top: 4px;
    gap: 4px;
  }

  .controls-label {
    font-size: 9px;
  }

  .scale-display {
    font-size: 12px;
    padding: 3px 6px;
    min-width: 35px;
  }

  /* Inventory - horizontal scrollable strip at bottom */
  #editor-inventory {
    width: 100%;
    padding: 8px;
    background: #252538;
    border-radius: 0;
    flex-shrink: 0;
    order: 10;
  }

  #editor-inventory h3 {
    display: none;
  }

  #inventory-shapes {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  #inventory-shapes::-webkit-scrollbar {
    height: 4px;
  }

  #inventory-shapes::-webkit-scrollbar-thumb {
    background: #7c3aed;
    border-radius: 2px;
  }

  .inventory-item {
    flex-direction: column;
    min-width: 60px;
    width: 60px;
    padding: 6px;
    flex-shrink: 0;
  }

  .shape-icon {
    width: 32px;
    height: 32px;
  }

  .shape-icon canvas {
    width: 28px;
    height: 28px;
  }

  .shape-name {
    text-align: center;
    font-size: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shape-stats {
    font-size: 8px;
  }

  /* Action buttons - fixed at very bottom */
  #editor-actions {
    padding: 10px;
    gap: 10px;
    background: #1a1a2e;
    flex-shrink: 0;
  }

  #editor-actions .menu-btn {
    padding: 12px 20px;
    font-size: 14px;
    flex: 1;
  }
}

/* Missile System Styles */
.missile-btn {
  background: linear-gradient(to bottom, #b91c1c, #7f1d1d);
  color: #fff;
  border: 2px solid #ef4444;
  padding: 8px 15px;
  font-size: 12px;
  font-family: "Courier New", monospace;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.2s ease;
}

.missile-btn:hover {
  background: linear-gradient(to bottom, #dc2626, #b91c1c);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.missile-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#missile-display {
  margin-left: 15px;
}

/* Targeting Overlay */
#targeting-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
}

#targeting-header {
  background: rgba(239, 68, 68, 0.9);
  padding: 15px 30px;
  border-radius: 10px;
  text-align: center;
  color: white;
  font-family: "Courier New", monospace;
  animation: pulse 0.5s ease-in-out infinite alternate;
}

#targeting-header h2 {
  margin: 0 0 10px 0;
  font-size: 24px;
  letter-spacing: 2px;
}

#targeting-header p {
  margin: 5px 0;
  font-size: 14px;
}

#targeting-info {
  margin-top: 20px;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 5px;
  color: #fbbf24;
  font-family: "Courier New", monospace;
  font-size: 16px;
}

#targeting-controls {
  position: absolute;
  bottom: 30px;
  display: flex;
  gap: 20px;
}

#targeting-controls .menu-btn {
  padding: 15px 30px;
  font-size: 18px;
}

.target-reticle {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 3px solid #ef4444;
  border-radius: 50%;
  pointer-events: none;
  animation: target-pulse 0.5s ease-in-out infinite alternate;
}

.target-reticle::before,
.target-reticle::after {
  content: "";
  position: absolute;
  background: #ef4444;
}

.target-reticle::before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
}

.target-reticle::after {
  width: 100%;
  height: 2px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes target-pulse {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(1.1);
    opacity: 0.8;
  }
}
/* =========================================
   UNLOCK NOTIFICATION STYLES
   ========================================= */
#unlock-notification {
  position: absolute;
  top: -200px; /* Hidden above screen - increased to ensure fully hidden */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 185, 129, 0.95); /* Emerald Green */
  border: 2px solid #34d399;
  padding: 20px 40px;
  border-radius: 8px;
  color: white;
  text-align: center;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
  transition: top 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease;
  z-index: 2000;
  pointer-events: none;
  min-width: 300px;
  opacity: 0; /* Hidden by default */
}

#unlock-notification.show {
  top: 100px; /* Slides down */
  opacity: 1; /* Visible when shown */
}

.unlock-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.unlock-name {
  font-size: 24px;
  font-weight: bold;
  text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.unlock-icon {
  font-size: 30px;
}

/* =========================================
   HAMBURGER MENU STYLES
   ========================================= */
.hamburger-btn {
  background: rgba(124, 58, 237, 0.8);
  border: 2px solid #a78bfa;
  color: white;
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.hamburger-btn:hover {
  background: rgba(167, 139, 250, 0.9);
  transform: scale(1.05);
}

.hamburger-btn:active {
  transform: scale(0.95);
}

/* Quick Menu Overlay */
#quick-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1500;
  display: flex;
  justify-content: center;
  align-items: center;
}

#quick-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

#quick-menu-content {
  position: relative;
  background: rgba(10, 10, 20, 0.98);
  border: 2px solid #7c3aed;
  border-radius: 10px;
  padding: 30px 50px;
  text-align: center;
  min-width: 280px;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.4);
  animation: menuSlideIn 0.2s ease-out;
}

@keyframes menuSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#quick-menu-content h2 {
  color: #a78bfa;
  font-size: 24px;
  margin-bottom: 20px;
}

#quick-menu-content .menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#quick-menu-content .menu-btn {
  min-width: 200px;
}

/* Mobile Adjustments for Hamburger Menu */
@media (max-width: 600px) {
  .hamburger-btn {
    width: 48px;
    height: 48px;
    font-size: 28px;
  }

  #quick-menu-content {
    padding: 25px 30px;
    min-width: 260px;
  }

  #quick-menu-content .menu-btn {
    padding: 14px 25px;
    min-height: 48px;
  }
}
