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

body {
  background-color: #000010;
  color: #e0e0ff;
  font-family: 'Courier New', monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  /* PWA: prevent pull-to-refresh and text selection during gameplay */
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

#game-container {
  position: relative;
  border: 2px solid #2a2a5a;
  box-shadow: 0 0 30px rgba(80, 80, 255, 0.3);
  max-width: 100vw;
  max-height: 100vh;
}

#game-canvas {
  display: block;
  background-color: #000010;
  cursor: crosshair;
  /* Prevent iOS long-press context menu on canvas */
  -webkit-touch-callout: none;
  touch-action: none;
}

#speed-control {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #050514;
  border-top: 1px solid #2a2a5a;
  font-size: 13px;
  color: #e0e0ff;
  flex-wrap: wrap;
}

#speed-control input[type='range'] {
  flex: 1;
  min-width: 180px;
  accent-color: #00ffff;
}

#speed-label {
  min-width: 80px;
  color: #00ffff;
  font-weight: bold;
}

#speed-hint {
  font-size: 11px;
  color: #8080a0;
}
/* ── Fullscreen button ─────────────────────────────────────────────────── */
#fullscreen-button {
  background: transparent;
  color: #8080c0;
  border: 1px solid #4040a0;
  padding: 4px 8px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
  line-height: 1;
}
#fullscreen-button:hover {
  color: #00ffff;
  border-color: #00ffff;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}
/* ── PWA install / update banners ──────────────────────────────────────── */
#pwa-install-banner,
#pwa-update-banner {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 5, 20, 0.96);
  border: 1px solid #00ffff;
  border-radius: 8px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: #e0e0ff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  z-index: 9999;
  transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
}
#pwa-install-banner.pwa-banner-visible,
#pwa-update-banner.pwa-banner-visible {
  bottom: 16px;
}
.pwa-banner-icon {
  font-size: 20px;
}
.pwa-banner-text strong {
  color: #00ffff;
}
#pwa-install-btn,
#pwa-update-btn {
  background: #00ffff;
  color: #000010;
  border: none;
  padding: 5px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.15s;
}
#pwa-install-btn:hover,
#pwa-update-btn:hover {
  background: #ffffff;
  box-shadow: 0 0 10px #00ffff;
}
#pwa-install-dismiss,
#pwa-update-dismiss {
  background: transparent;
  color: #8080a0;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.15s;
}
#pwa-install-dismiss:hover,
#pwa-update-dismiss:hover {
  color: #e0e0ff;
}
/* ── Network indicator ─────────────────────────────────────────────────── */
#pwa-network-indicator {
  position: fixed;
  top: 8px;
  right: 12px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 9998;
  pointer-events: none;
  transition: opacity 1s ease;
}
#pwa-network-indicator.pwa-online {
  color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
}
#pwa-network-indicator.pwa-offline {
  color: #ff4444;
  background: rgba(255, 68, 68, 0.15);
  border: 1px solid rgba(255, 68, 68, 0.4);
  animation: offlinePulse 2s infinite;
}
#pwa-network-indicator.pwa-fade {
  opacity: 0;
}
@keyframes offlinePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
/* ── Standalone / installed app tweaks ────────────────────────────────────
    When running as an installed PWA (no browser chrome), give the game
    container a bit more breathing room and hide the GitHub footer link
    since there's no browser address bar to navigate from.              */
@media (display-mode: standalone) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
  .overlay-footer {
    display: none;
  }
  #pwa-network-indicator {
    top: calc(8px + env(safe-area-inset-top));
    right: calc(12px + env(safe-area-inset-right));
  }
}
/* ── Touch / mobile layout ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  #speed-hint {
    display: none; /* too long for small screens */
  }
  #speed-control {
    gap: 6px;
    padding: 6px 8px;
    font-size: 12px;
  }
  #draw-tools {
    gap: 10px;
    padding: 6px 8px;
  }
  .mode-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
  /* Larger tap targets for touch */
  #clear-defenses-button,
  #help-button,
  #howtoplay-ingame-button,
  #ingame-settings-button,
  #fullscreen-button {
    padding: 6px 12px;
    min-height: 36px;
  }
}
@media (max-width: 480px) {
  #overlay-content {
    padding: 24px 16px;
    max-width: 95vw;
  }
  #overlay-title {
    font-size: 32px;
  }
  #overlay-message {
    font-size: 13px;
  }
  #start-button {
    padding: 12px 28px;
    font-size: 17px;
  }
}

/* ---------- Hotkey Help Overlay ---------- */
#hotkey-help-overlay {
  z-index: 15;
}

#hotkey-help-content {
  background: rgba(5, 5, 20, 0.96);
  border: 2px solid #00ffff;
  border-radius: 8px;
  padding: 26px 36px;
  max-width: 720px;
  width: 90%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
  color: #e0e0ff;
  font-family: 'Courier New', monospace;
}

#hotkey-help-content h2 {
  color: #00ffff;
  text-align: center;
  margin-bottom: 16px;
  text-shadow: 0 0 10px #00ffff;
  font-size: 24px;
}

#hotkey-help-content h3 {
  color: #ffff66;
  font-size: 14px;
  margin: 14px 0 8px;
  border-bottom: 1px solid #2a2a5a;
  padding-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#hotkey-help-content h3:first-child {
  margin-top: 0;
}

.hk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.hk-col {
  min-width: 0;
}

.hk-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 13px;
}

.hk-row span {
  color: #c0c0d0;
  flex: 1;
}

.hk-row kbd {
  display: inline-block;
  background: #1a1a3a;
  color: #00ffff;
  border: 1px solid #4040a0;
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 2px 7px;
  font-family: inherit;
  font-size: 11px;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 1px 0 #000;
}

.hk-hint {
  text-align: center;
  margin-top: 16px;
  color: #8080a0;
  font-size: 12px;
}

.hk-hint kbd {
  background: #1a1a3a;
  color: #00ffff;
  border: 1px solid #4040a0;
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 11px;
}

@media (max-width: 600px) {
  .hk-grid {
    grid-template-columns: 1fr;
  }
}

#clear-defenses-button {
  background: transparent;
  color: #ff8888;
  border: 1px solid #ff8888;
  padding: 4px 10px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}

#clear-defenses-button:hover {
  background: #ff8888;
  color: #000010;
  box-shadow: 0 0 10px #ff8888;
}

#clear-defenses-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

#clear-defenses-button:disabled:hover {
  background: transparent;
  color: #ff8888;
  box-shadow: none;
}
/* ---------- Pattern Capture Button ---------- */
#pattern-capture-button {
  background: transparent;
  color: #ffcc44;
  border: 1px solid #ffcc44;
  padding: 4px 10px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
  font-weight: bold;
}
#pattern-capture-button:hover {
  background: rgba(255, 204, 68, 0.15);
  box-shadow: 0 0 8px rgba(255, 204, 68, 0.4);
}
#pattern-capture-button.active {
  background: #ffcc44;
  color: #000010;
  box-shadow: 0 0 12px #ffcc44;
}
/* ---------- Exit to Menu Button ---------- */
#exit-to-menu-button {
  background: transparent;
  color: #ff6666;
  border: 1px solid #ff6666;
  padding: 4px 10px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 3px;
  font-weight: bold;
  transition: all 0.2s;
  margin-left: auto;
}
#exit-to-menu-button:hover {
  background: #ff6666;
  color: #000010;
  box-shadow: 0 0 10px #ff6666;
}

#draw-tools {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 12px;
  background: #050514;
  border-top: 1px solid #2a2a5a;
  font-size: 12px;
  color: #e0e0ff;
  flex-wrap: wrap;
}

#draw-tools .tool-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

#draw-tools label {
  color: #a0a0c0;
  font-size: 11px;
}

.mode-btn {
  background: transparent;
  color: #00ffff;
  border: 1px solid #00ffff;
  padding: 3px 10px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.15s;
}

.mode-btn:hover {
  background: rgba(0, 255, 255, 0.15);
}

.mode-btn.active {
  background: #00ffff;
  color: #000010;
  box-shadow: 0 0 8px #00ffff;
}

#line-width {
  width: 80px;
  accent-color: #00ffff;
}

#line-width-label {
  min-width: 14px;
  color: #00ffff;
  font-weight: bold;
}

#line-dash,
#pattern-presets {
  background: #0a0a20;
  color: #e0e0ff;
  border: 1px solid #4040a0;
  padding: 2px 4px;
  font-family: inherit;
  font-size: 11px;
  border-radius: 3px;
}

#pattern-editor {
  border: 1px solid #4040a0;
  background: #000010;
  cursor: pointer;
  image-rendering: pixelated;
  /* Larger interactive area in the overlay. */
  width: 360px;
  height: 360px;
  max-width: 80vmin;
  max-height: 60vh;
}

.pattern-buttons {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
/* ---------- Pattern preset row + collapsible editor ---------- */
.pattern-preset-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
#pattern-editor-toggle {
  background: transparent;
  color: #00ffff;
  border: 1px solid #00ffff;
  padding: 4px 12px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.15s;
  white-space: nowrap;
  font-weight: bold;
}
#pattern-editor-toggle:hover {
  background: rgba(0, 255, 255, 0.15);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.4);
}
#pattern-editor-toggle.active {
  background: #00ffff;
  color: #000010;
  box-shadow: 0 0 10px #00ffff;
}
#pattern-editor-toggle-group {
  display: flex;
  align-items: center;
}
/* ---------- Pattern Editor Overlay ---------- */
#pattern-editor-overlay {
  z-index: 13;
}
#pattern-editor-content {
  text-align: center;
  padding: 28px 36px;
  border: 2px solid #00ffff;
  background: rgba(10, 10, 30, 0.96);
  border-radius: 8px;
  max-width: 90vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
  animation: editorOverlayIn 0.18s ease-out;
}
#pattern-editor-title {
  font-size: 28px;
  color: #00ffff;
  margin-bottom: 6px;
  text-shadow: 0 0 10px #00ffff;
  letter-spacing: 1px;
}
#pattern-editor-subtitle {
  color: #a0a0c0;
  font-size: 13px;
  margin-bottom: 18px;
  font-style: italic;
}
#pattern-editor-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pattern-editor-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.pattern-editor-hints {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 6px 24px;
  font-size: 12px;
  color: #c0c0d0;
  justify-content: center;
}
.pattern-editor-hints kbd {
  display: inline-block;
  background: #1a1a3a;
  color: #00ffff;
  border: 1px solid #4040a0;
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 1px 7px;
  font-family: inherit;
  font-size: 11px;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
  margin-right: 6px;
}
.pattern-editor-hint-clickable {
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition:
    background 0.15s,
    color 0.15s,
    transform 0.1s;
  user-select: none;
}
.pattern-editor-hint-clickable:hover {
  background: rgba(0, 255, 255, 0.12);
  color: #ffffff;
  transform: translateY(-1px);
}
.pattern-editor-hint-clickable:active {
  transform: translateY(0);
  background: rgba(0, 255, 255, 0.22);
}
.pattern-editor-hint-clickable:focus-visible {
  outline: 1px solid #00ffff;
  outline-offset: 2px;
}
.pattern-editor-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.pattern-editor-buttons button {
  padding: 8px 20px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.15s;
}
#pattern-editor-close {
  background: transparent;
  color: #00ffff;
  border: 2px solid #00ffff;
}
#pattern-editor-close:hover {
  background: #00ffff;
  color: #000010;
  box-shadow: 0 0 12px #00ffff;
}
.pattern-editor-buttons #pattern-clear {
  background: transparent;
  color: #ff8888;
  border: 2px solid #ff8888;
  padding: 8px 20px;
  font-size: 14px;
}
.pattern-editor-buttons #pattern-clear:hover {
  background: #ff8888;
  color: #000010;
  box-shadow: 0 0 12px #ff8888;
}
@keyframes editorOverlayIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#pattern-clear {
  background: transparent;
  color: #ff8888;
  border: 1px solid #ff8888;
  padding: 2px 8px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 3px;
}

#pattern-clear:hover {
  background: #ff8888;
  color: #000010;
}

.tool-hint {
  font-size: 10px;
  color: #8080a0;
  margin-left: auto;
  align-self: center;
}

#help-button {
  background: transparent;
  color: #00ffff;
  border: 1px solid #00ffff;
  padding: 4px 10px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}

#help-button:hover {
  background: #00ffff;
  color: #000010;
  box-shadow: 0 0 10px #00ffff;
}

#guide-button {
  background: transparent;
  color: #ff80ff;
  border: 2px solid #ff80ff;
  padding: 10px 24px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.2s;
  margin: 8px 6px 0 6px;
}

#guide-button:hover {
  background: #ff80ff;
  color: #000010;
  box-shadow: 0 0 20px #ff80ff;
}

#guide-close-button {
  background: transparent;
  color: #00ffff;
  border: 2px solid #00ffff;
  padding: 10px 24px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.2s;
  margin: 8px 6px 0 6px;
}

#guide-close-button:hover {
  background: #00ffff;
  color: #000010;
  box-shadow: 0 0 20px #00ffff;
}

#guide-content {
  text-align: left;
  padding: 30px 40px;
  border: 2px solid #ff80ff;
  background: rgba(10, 10, 30, 0.95);
  border-radius: 8px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 30px rgba(255, 128, 255, 0.3);
}

#guide-title {
  font-size: 32px;
  color: #ff80ff;
  margin-bottom: 16px;
  text-shadow: 0 0 10px #ff80ff;
  text-align: center;
  flex-shrink: 0;
}

#guide-body {
  overflow-y: auto;
  flex: 1;
  padding-right: 12px;
  color: #d0d0e0;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.55;
}

#guide-body h1,
#guide-body h2,
#guide-body h3,
#guide-body h4 {
  color: #00ffff;
  margin: 18px 0 10px;
  text-shadow: 0 0 4px rgba(0, 255, 255, 0.4);
}

#guide-body h1 {
  font-size: 22px;
  border-bottom: 1px solid #2a2a5a;
  padding-bottom: 6px;
}

#guide-body h2 {
  font-size: 18px;
  border-bottom: 1px solid #2a2a5a;
  padding-bottom: 4px;
}

#guide-body h3 {
  font-size: 15px;
}

#guide-body p {
  margin: 8px 0;
}

#guide-body ul,
#guide-body ol {
  margin: 8px 0 8px 24px;
}

#guide-body li {
  margin: 3px 0;
}

#guide-body code {
  background: #050514;
  color: #00ff88;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}

#guide-body pre {
  background: #050514;
  border: 1px solid #2a2a5a;
  border-radius: 4px;
  padding: 10px 12px;
  margin: 10px 0;
  overflow-x: auto;
}

#guide-body pre code {
  background: transparent;
  color: #00ff88;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
}

#guide-body strong {
  color: #ffff80;
}

#guide-body em {
  color: #ff80ff;
}

#guide-body hr {
  border: none;
  border-top: 1px dashed #2a2a5a;
  margin: 16px 0;
}

#guide-body a {
  color: #00ffff;
}

#guide-body::-webkit-scrollbar {
  width: 8px;
}

#guide-body::-webkit-scrollbar-track {
  background: #0a0a20;
}

#guide-body::-webkit-scrollbar-thumb {
  background: #ff80ff;
  border-radius: 4px;
}

.guide-buttons {
  margin-top: 16px;
  text-align: center;
  flex-shrink: 0;
}
/* ---------- How-to-Play / README Guide Overlay ---------- */
#help-overlay {
  z-index: 11;
}
#help-content {
  text-align: left;
  padding: 30px 40px;
  border: 2px solid #00ffcc;
  background: rgba(10, 10, 30, 0.95);
  border-radius: 8px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.25);
}
#help-title {
  font-size: 32px;
  color: #00ffcc;
  margin-bottom: 16px;
  text-shadow: 0 0 10px #00ffcc;
  text-align: center;
  flex-shrink: 0;
}
#help-body {
  overflow-y: auto;
  flex: 1;
  padding-right: 12px;
  color: #d0d0e0;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.55;
}
/* Reuse the same markdown typography rules for #help-body */
#help-body h1,
#help-body h2,
#help-body h3,
#help-body h4 {
  color: #00ffcc;
  margin: 18px 0 10px;
  text-shadow: 0 0 4px rgba(0, 255, 204, 0.4);
}
#help-body h1 {
  font-size: 22px;
  border-bottom: 1px solid #2a2a5a;
  padding-bottom: 6px;
}
#help-body h2 {
  font-size: 18px;
  border-bottom: 1px solid #2a2a5a;
  padding-bottom: 4px;
}
#help-body h3 {
  font-size: 15px;
}
#help-body p {
  margin: 8px 0;
}
#help-body ul,
#help-body ol {
  margin: 8px 0 8px 24px;
}
#help-body li {
  margin: 3px 0;
}
#help-body code {
  background: #050514;
  color: #00ffcc;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}
#help-body pre {
  background: #050514;
  border: 1px solid #2a2a5a;
  border-radius: 4px;
  padding: 10px 12px;
  margin: 10px 0;
  overflow-x: auto;
}
#help-body pre code {
  background: transparent;
  color: #00ffcc;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
}
#help-body strong {
  color: #ffff80;
}
#help-body em {
  color: #00ffcc;
}
#help-body hr {
  border: none;
  border-top: 1px dashed #2a2a5a;
  margin: 16px 0;
}
#help-body a {
  color: #00ffcc;
}
#help-body::-webkit-scrollbar {
  width: 8px;
}
#help-body::-webkit-scrollbar-track {
  background: #0a0a20;
}
#help-body::-webkit-scrollbar-thumb {
  background: #00ffcc;
  border-radius: 4px;
}
#howtoplay-button {
  background: transparent;
  color: #00ffcc;
  border: 2px solid #00ffcc;
  padding: 10px 24px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.2s;
  margin: 8px 6px 0 6px;
}
#howtoplay-button:hover {
  background: #00ffcc;
  color: #000010;
  box-shadow: 0 0 20px #00ffcc;
}
#howtoplay-ingame-button {
  background: transparent;
  color: #00ffcc;
  border: 1px solid #00ffcc;
  padding: 4px 10px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}
#howtoplay-ingame-button:hover {
  background: #00ffcc;
  color: #000010;
  box-shadow: 0 0 10px #00ffcc;
}
/* ---------- Pattern Zoo Overlay ---------- */
#pattern-zoo-overlay {
  z-index: 12;
}
#pattern-zoo-content {
  position: relative;
  background: rgba(5, 5, 20, 0.97);
  border: 2px solid #ff80ff;
  border-radius: 8px;
  padding: 20px 24px;
  width: 95vw;
  max-width: 1400px;
  height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(255, 128, 255, 0.3);
  color: #e0e0ff;
  font-family: 'Courier New', monospace;
}
#pattern-zoo-header {
  flex-shrink: 0;
  text-align: center;
  border-bottom: 1px solid #2a2a5a;
  padding-bottom: 10px;
  margin-bottom: 12px;
}
#pattern-zoo-title {
  font-size: 28px;
  color: #ff80ff;
  text-shadow: 0 0 12px #ff80ff;
  letter-spacing: 2px;
  margin: 0 0 4px;
}
#pattern-zoo-subtitle {
  font-size: 12px;
  color: #a0a0c0;
  font-style: italic;
  margin: 0;
}
#pattern-zoo-toolbar {
  flex-shrink: 0;
  background: rgba(20, 20, 50, 0.6);
  border: 1px solid #2a2a5a;
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pz-filter-row,
.pz-global-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-size: 12px;
}
.pz-filter-row label,
.pz-global-row label {
  color: #a0a0c0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pz-select {
  background: #0a0a20;
  color: #e0e0ff;
  border: 1px solid #4040a0;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 12px;
  border-radius: 3px;
  cursor: pointer;
}
.pz-select:hover {
  border-color: #6060c0;
}
.pz-tool-btn {
  background: transparent;
  color: #00ffcc;
  border: 1px solid #00ffcc;
  padding: 4px 12px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px;
  font-weight: bold;
  transition: all 0.15s;
}
.pz-tool-btn:hover {
  background: rgba(0, 255, 204, 0.15);
  box-shadow: 0 0 6px rgba(0, 255, 204, 0.4);
}
#pattern-zoo-grid {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 4px 8px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  align-content: start;
}
#pattern-zoo-grid::-webkit-scrollbar {
  width: 10px;
}
#pattern-zoo-grid::-webkit-scrollbar-track {
  background: #0a0a20;
}
#pattern-zoo-grid::-webkit-scrollbar-thumb {
  background: #ff80ff;
  border-radius: 5px;
}
.pz-card {
  background: rgba(15, 15, 35, 0.9);
  border: 1px solid #4040a0;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.pz-card:hover {
  border-color: #ff80ff;
  box-shadow: 0 0 14px rgba(255, 128, 255, 0.4);
  transform: translateY(-2px);
}
.pz-card-canvas-wrap {
  background: #000010;
  border: 1px solid #2a2a5a;
  border-radius: 4px;
  padding: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.pz-card-canvas {
  width: 100%;
  height: auto;
  max-width: 160px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
.pz-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
}
.pz-card-name {
  font-size: 13px;
  font-weight: bold;
  color: #ff80ff;
  text-shadow: 0 0 4px rgba(255, 128, 255, 0.4);
}
.pz-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pz-tag {
  display: inline-block;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 2px;
  background: #1a1a3a;
  color: #c0c0d0;
  border: 1px solid #2a2a5a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pz-tag-cat {
  color: #00ffff;
  border-color: #00ffff;
}
.pz-cat-spaceship {
  color: #ffff66;
  border-color: #ffff66;
}
.pz-cat-oscillator {
  color: #00ff88;
  border-color: #00ff88;
}
.pz-cat-still_life {
  color: #88aaff;
  border-color: #88aaff;
}
.pz-cat-gun {
  color: #ff6666;
  border-color: #ff6666;
}
.pz-cat-methuselah {
  color: #ffaa44;
  border-color: #ffaa44;
}
.pz-cat-puffer {
  color: #ff80ff;
  border-color: #ff80ff;
}
.pz-cat-misc {
  color: #c0c0d0;
  border-color: #6060c0;
}
.pz-tag-period {
  color: #ffcc44;
  border-color: #ffcc44;
}
.pz-tag-dir {
  color: #00ffcc;
  border-color: #00ffcc;
}
.pz-card-size {
  color: #8080a0;
  font-size: 10px;
}
.pz-card-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.pz-card-btn {
  flex: 1;
  min-width: 28px;
  background: transparent;
  color: #00ffcc;
  border: 1px solid #00ffcc;
  padding: 3px 6px;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.15s;
}
.pz-card-btn:hover {
  background: rgba(0, 255, 204, 0.2);
}
.pz-card-place {
  color: #ffcc44 !important;
  border-color: #ffcc44 !important;
}
.pz-card-place:hover {
  background: rgba(255, 204, 68, 0.2) !important;
}
#pattern-zoo-footer {
  flex-shrink: 0;
  text-align: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #2a2a5a;
}
#pattern-zoo-close-button {
  background: transparent;
  color: #ff80ff;
  border: 2px solid #ff80ff;
  padding: 8px 24px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.2s;
}
#pattern-zoo-close-button:hover {
  background: #ff80ff;
  color: #000010;
  box-shadow: 0 0 14px #ff80ff;
}
.pz-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #8080a0;
  font-style: italic;
  padding: 40px;
  font-size: 14px;
}
/* ---------- Pattern Zoo Detail View ---------- */
#pattern-zoo-detail {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 16, 0.92);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
  padding: 20px;
}
#pattern-zoo-detail.hidden {
  display: none;
}
#pz-detail-content {
  background: rgba(5, 5, 20, 0.97);
  border: 2px solid #00ffcc;
  border-radius: 8px;
  padding: 24px 32px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0, 255, 204, 0.4);
  color: #e0e0ff;
}
#pz-detail-content::-webkit-scrollbar {
  width: 8px;
}
#pz-detail-content::-webkit-scrollbar-thumb {
  background: #00ffcc;
  border-radius: 4px;
}
#pz-detail-back {
  background: transparent;
  color: #00ffcc;
  border: 1px solid #00ffcc;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  border-radius: 3px;
  margin-bottom: 16px;
  font-weight: bold;
  transition: all 0.15s;
}
#pz-detail-back:hover {
  background: rgba(0, 255, 204, 0.15);
  box-shadow: 0 0 8px rgba(0, 255, 204, 0.4);
}
.pz-detail-title {
  color: #00ffcc;
  font-size: 28px;
  text-shadow: 0 0 10px #00ffcc;
  margin: 0 0 4px;
}
.pz-detail-id {
  color: #8080a0;
  font-size: 11px;
  margin-bottom: 18px;
}
.pz-detail-id code {
  background: #050514;
  color: #ffcc44;
  padding: 1px 6px;
  border-radius: 2px;
}
.pz-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
@media (max-width: 720px) {
  .pz-detail-layout {
    grid-template-columns: 1fr;
  }
}
.pz-detail-canvas-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#pz-detail-canvas {
  width: 100%;
  height: auto;
  max-width: 400px;
  border: 1px solid #00ffcc;
  background: #000010;
  border-radius: 4px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  box-shadow: 0 0 14px rgba(0, 255, 204, 0.2);
}
.pz-detail-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  font-size: 12px;
}
.pz-detail-controls label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #a0a0c0;
}
.pz-detail-controls input[type='range'] {
  width: 100px;
  accent-color: #00ffcc;
  vertical-align: middle;
}
.pz-detail-controls span {
  color: #00ffcc;
  font-weight: bold;
  min-width: 36px;
  display: inline-block;
}
.pz-detail-place-btn {
  color: #ffcc44 !important;
  border-color: #ffcc44 !important;
  margin-left: auto;
}
.pz-detail-place-btn:hover {
  background: rgba(255, 204, 68, 0.2) !important;
  box-shadow: 0 0 8px rgba(255, 204, 68, 0.5) !important;
}
.pz-detail-stats {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: #a0a0c0;
}
.pz-detail-stats strong {
  color: #00ffcc;
}
.pz-detail-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
}
.pz-detail-row {
  padding: 4px 0;
  border-bottom: 1px dotted #2a2a5a;
}
.pz-detail-row strong {
  color: #00ffcc;
  margin-right: 6px;
}
.pz-detail-row em {
  color: #8080a0;
}
.pz-detail-desc {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(20, 20, 50, 0.5);
  border-left: 3px solid #00ffcc;
  border-radius: 3px;
  font-style: italic;
  color: #c0c0d0;
  font-size: 12px;
  line-height: 1.6;
}
/* ---------- Pattern Zoo button in main menu / toolbar ---------- */
#pattern-zoo-button {
  background: transparent;
  color: #ff80ff;
  border: 2px solid #ff80ff;
  padding: 10px 24px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.2s;
  margin: 8px 6px 0 6px;
}
#pattern-zoo-button:hover {
  background: #ff80ff;
  color: #000010;
  box-shadow: 0 0 20px #ff80ff;
}
#pattern-zoo-ingame-button {
  background: transparent;
  color: #ff80ff;
  border: 1px solid #ff80ff;
  padding: 4px 10px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}
#pattern-zoo-ingame-button:hover {
  background: #ff80ff;
  color: #000010;
  box-shadow: 0 0 10px #ff80ff;
}

/* ---------- Story Mode ---------- */
#story-button {
  background: transparent;
  color: #ffaa00;
  border: 2px solid #ffaa00;
  padding: 10px 24px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.2s;
  margin: 8px 6px 0 6px;
}

#story-button:hover {
  background: #ffaa00;
  color: #000010;
  box-shadow: 0 0 20px #ffaa00;
}

.story-dialogue {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 24px;
  background: rgba(5, 5, 20, 0.92);
  border: 2px solid #00ffff;
  border-radius: 6px;
  padding: 16px 22px;
  color: #e0e0ff;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
  z-index: 12;
  cursor: pointer;
  animation: dlgFadeIn 0.25s ease-out;
}

.story-dialogue.hidden {
  display: none;
}

.story-dlg-name {
  font-weight: bold;
  font-size: 16px;
  color: #00ffff;
  margin-bottom: 6px;
  text-shadow: 0 0 6px currentColor;
}

.story-dlg-text {
  color: inherit;
}

.story-dlg-hint {
  margin-top: 10px;
  font-size: 11px;
  color: #8080a0;
  text-align: right;
  font-style: italic;
  animation: dlgBlink 1.4s infinite;
}

@keyframes dlgFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dlgBlink {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

.story-banner {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(5, 5, 20, 0.85);
  border: 1px solid #ffaa00;
  padding: 10px 28px;
  color: #ffaa00;
  font-family: 'Courier New', monospace;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  text-shadow: 0 0 10px #ffaa00;
  border-radius: 4px;
  z-index: 11;
  animation: bannerSlide 0.6s ease-out;
}

.story-banner.hidden {
  display: none;
}

@keyframes bannerSlide {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
/* ---------- Story Progress Badge ---------- */
.story-progress {
  position: absolute;
  top: 50px;
  right: 12px;
  background: rgba(5, 5, 20, 0.85);
  border: 1px solid #00ffff;
  border-radius: 4px;
  padding: 8px 14px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  z-index: 9;
  min-width: 140px;
  max-width: 240px;
  pointer-events: none;
}
.story-progress.hidden {
  display: none;
}
.story-progress .sp-chap {
  font-weight: bold;
  color: inherit;
  font-size: 12px;
  margin-bottom: 4px;
}
.story-progress .sp-perks {
  font-size: 16px;
  letter-spacing: 4px;
  color: #ffcc44;
}
/* ---------- Perk Selection Overlay ---------- */
#perk-overlay {
  z-index: 14;
}
#perk-content {
  text-align: center;
  padding: 36px 40px;
  border: 2px solid #ffcc44;
  background: rgba(10, 10, 30, 0.96);
  border-radius: 8px;
  max-width: 1000px;
  width: 95%;
  box-shadow: 0 0 40px rgba(255, 204, 68, 0.3);
}
#perk-title {
  font-size: 32px;
  color: #ffcc44;
  margin-bottom: 8px;
  text-shadow: 0 0 12px #ffcc44;
  letter-spacing: 2px;
}
#perk-subtitle {
  color: #c0c0d0;
  font-size: 14px;
  margin-bottom: 24px;
}
#perk-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0 0 16px 0;
}
.perk-card {
  background: rgba(5, 5, 20, 0.9);
  border: 2px solid #4040a0;
  border-radius: 6px;
  padding: 22px 16px;
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.perk-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px currentColor;
  background: rgba(20, 20, 50, 0.95);
}
.perk-card.perk-stat {
  color: #88ddff;
}
.perk-card.perk-pattern {
  color: #ff80ff;
}
.perk-card.perk-ability {
  color: #ffcc44;
}
.perk-icon {
  font-size: 42px;
  margin-bottom: 8px;
  line-height: 1;
  text-shadow: 0 0 12px currentColor;
}
.perk-type {
  font-size: 10px;
  color: #8080a0;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.perk-name {
  font-size: 16px;
  font-weight: bold;
  color: currentColor;
  margin-bottom: 8px;
}
.perk-desc {
  font-size: 12px;
  color: #c0c0d0;
  line-height: 1.4;
}
.perk-skip {
  margin-top: 8px;
}
#perk-skip-button {
  background: transparent;
  color: #8080a0;
  border: 1px solid #4040a0;
  padding: 6px 18px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.15s;
}
#perk-skip-button:hover {
  color: #c0c0d0;
  border-color: #6060c0;
}
@media (max-width: 720px) {
  #perk-cards {
    grid-template-columns: 1fr;
  }
}
/* ---------- In-Play Settings Button ---------- */
#ingame-settings-button {
  background: transparent;
  color: #ffcc88;
  border: 1px solid #ffcc88;
  padding: 4px 10px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s;
}
#ingame-settings-button:hover {
  background: #ffcc88;
  color: #000010;
  box-shadow: 0 0 10px #ffcc88;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 16, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.overlay.hidden {
  display: none;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

#overlay-content {
  text-align: center;
  padding: 40px;
  border: 2px solid #4040a0;
  background: rgba(10, 10, 30, 0.9);
  border-radius: 8px;
  max-width: 600px;
}

#overlay-title {
  font-size: 48px;
  color: #00ffff;
  margin-bottom: 20px;
  text-shadow: 0 0 10px #00ffff;
}

#overlay-message {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
}

#start-button {
  background: #00ffff;
  color: #000010;
  border: none;
  padding: 15px 40px;
  font-size: 20px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.2s;
}

#start-button:hover {
  background: #ffffff;
  box-shadow: 0 0 20px #00ffff;
}

#settings-button,
#settings-back-button,
#settings-reset-button {
  background: transparent;
  color: #00ffff;
  border: 2px solid #00ffff;
  padding: 10px 24px;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.2s;
  margin: 8px 6px 0 6px;
}

#settings-button:hover,
#settings-back-button:hover,
#settings-reset-button:hover {
  background: #00ffff;
  color: #000010;
  box-shadow: 0 0 20px #00ffff;
}

#settings-list {
  text-align: left;
  margin: 20px 0;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 8px;
}

.setting-row {
  display: grid;
  grid-template-columns: 1fr 180px 60px;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: 14px;
}

.setting-row-checks {
  grid-template-columns: 1fr 220px 60px;
}

.setting-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.setting-checkboxes label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.setting-checkboxes input[type='checkbox'] {
  accent-color: #00ffff;
}

.setting-select {
  background: #0a0a20;
  color: #e0e0ff;
  border: 1px solid #4040a0;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 13px;
  border-radius: 3px;
  width: 100%;
}

.setting-row label {
  color: #e0e0ff;
}

.setting-row input[type='range'] {
  width: 100%;
  accent-color: #00ffff;
}

.setting-value {
  color: #00ffff;
  text-align: right;
  font-weight: bold;
}
/* Slider + unlimited checkbox side-by-side */
.setting-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.setting-slider-row input[type='range'] {
  flex: 1;
  min-width: 0;
}
.unlimited-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: bold;
  color: #ffcc44;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}
.unlimited-label input[type='checkbox'] {
  accent-color: #ffcc44;
  cursor: pointer;
  width: 14px;
  height: 14px;
}
.unlimited-label:hover {
  color: #ffe080;
  text-shadow: 0 0 6px rgba(255, 204, 68, 0.6);
}

.settings-buttons {
  margin-top: 20px;
}
/* ---------- Settings Tabs ---------- */
#settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 2px solid #2a2a5a;
  padding-bottom: 8px;
}
.settings-tab {
  background: transparent;
  color: #8080c0;
  border: 1px solid #2a2a5a;
  padding: 6px 14px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  transition: all 0.15s;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.settings-tab:hover {
  color: #c0c0e0;
  border-color: #4040a0;
  background: rgba(64, 64, 160, 0.15);
}
.settings-tab.active {
  background: rgba(0, 255, 255, 0.12);
  color: #00ffff;
  border-color: #00ffff;
  border-bottom-color: transparent;
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.25);
}
.settings-tab-panel {
  display: none;
}
.settings-tab-panel.active {
  display: block;
}
.settings-tab-desc {
  font-size: 12px;
  color: #8080a0;
  margin: 0 0 14px;
  line-height: 1.5;
  font-style: italic;
}
.setting-section-header {
  font-size: 11px;
  font-weight: bold;
  color: #ffcc44;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 18px 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #2a2a5a;
}
.setting-section-note {
  font-size: 10px;
  color: #8080a0;
  font-weight: normal;
  letter-spacing: 0;
  text-transform: none;
}
/* ---------- Settings About / GitHub ---------- */
.settings-about {
  font-size: 13px;
  color: #c0c0d0;
  line-height: 1.7;
  margin-top: 8px;
}
.settings-about p {
  margin: 6px 0;
}
.github-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #00ffff;
  text-decoration: none;
  font-weight: bold;
  transition:
    color 0.15s,
    text-shadow 0.15s;
}
.github-link-inline:hover {
  color: #ffffff;
  text-shadow: 0 0 8px #00ffff;
}
.github-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  vertical-align: middle;
}
/* ---------- Main Menu GitHub Footer ---------- */
.overlay-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #2a2a5a;
}
.github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8080c0;
  text-decoration: none;
  font-size: 13px;
  font-family: 'Courier New', monospace;
  transition:
    color 0.2s,
    text-shadow 0.2s;
  padding: 6px 12px;
  border: 1px solid #2a2a5a;
  border-radius: 4px;
}
.github-link:hover {
  color: #00ffff;
  border-color: #00ffff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.15);
}
.github-link .github-icon {
  width: 18px;
  height: 18px;
}

#settings-list::-webkit-scrollbar {
  width: 8px;
}

#settings-list::-webkit-scrollbar-track {
  background: #0a0a20;
}

#settings-list::-webkit-scrollbar-thumb {
  background: #4040a0;
  border-radius: 4px;
}
