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

body {
  overflow: hidden;
  background: #1a1a2e;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

#game-canvas {
  display: block;
  width: 100vw;
  height: 100vh;
}

#ui {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
}

#top-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: all;
}

#level-info {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 8px 24px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

#letters-used {
  background: rgba(0, 0, 0, 0.6);
  color: #aaddff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: bold;
  letter-spacing: 1px;
}

#restart-btn {
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

#restart-btn:hover, #level-select-btn:hover, #edit-level-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

#edit-level-btn {
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

#level-select-btn {
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}

#settings-btn {
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
  pointer-events: all;
}

#settings-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

#hint {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin-top: 8px;
}

#selected-info {
  color: #ffd700;
  font-size: 16px;
  font-weight: bold;
  margin-top: 8px;
  min-height: 24px;
}

#word-input-container {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  pointer-events: all;
  z-index: 20;
  transition: bottom 0.15s ease;
}

#word-input-container.hidden {
  display: none;
}

#word-form {
  margin: 0;
  padding: 0;
  display: contents;
}

#word-input {
  width: 240px;
  padding: 12px 16px;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 3px;
  border: 2px solid #ffd700;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  outline: none;
}

/* Mobile: compact top bar, keep input visible above keyboard */
@media (max-width: 600px) {
  #top-bar {
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }
  #level-info { padding: 6px 12px; font-size: 14px; }
  #letters-used { padding: 6px 10px; font-size: 13px; }
  #restart-btn, #level-select-btn, #edit-level-btn { padding: 6px 10px; font-size: 11px; }
  #settings-btn { padding: 6px 8px; font-size: 14px; }
  #hint { font-size: 12px; }
  #selected-info { font-size: 14px; margin-top: 4px; }
  #word-input { width: 200px; padding: 10px 12px; font-size: 18px; letter-spacing: 2px; }
  #submit-word { padding: 10px 16px; font-size: 14px; }
  #message { bottom: 80px; font-size: 14px; }
}

#word-input:focus {
  border-color: #ffed4a;
  box-shadow: 0 0 16px rgba(255, 215, 0, 0.3);
}

#submit-word {
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  background: #ffd700;
  color: #1a1a2e;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

#submit-word:hover {
  background: #ffed4a;
}

#detonate-btn {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(160px);
  padding: 12px 20px;
  font-size: 16px;
  font-weight: bold;
  background: #ff5630;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  pointer-events: all;
  z-index: 30;
  box-shadow: 0 0 14px rgba(255, 80, 40, 0.55);
  transition: transform 0.08s ease, background 0.12s ease;
}

#detonate-btn:hover {
  background: #ff7a55;
}

#detonate-btn:active {
  transform: translateX(160px) translateY(2px);
  background: #d83b1a;
}

#detonate-btn.hidden {
  display: none;
}

@media (max-width: 600px) {
  #detonate-btn {
    padding: 10px 14px;
    font-size: 13px;
    transform: translateX(120px);
  }
  #detonate-btn:active {
    transform: translateX(120px) translateY(2px);
  }
}

#message {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  color: #ff6b6b;
  font-size: 16px;
  font-weight: bold;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.3s;
}

#verb-legend {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 10;
}

#verb-legend.hidden {
  display: none;
}

.arrow-icon {
  color: #ff4444;
  font-weight: bold;
}

#level-complete {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  z-index: 100;
  pointer-events: all;
}

#level-complete.hidden {
  display: none;
}

#level-complete h1 {
  color: #ffd700;
  font-size: 48px;
  text-shadow: 0 0 32px rgba(255, 215, 0, 0.5);
}

#level-complete p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  margin-top: 16px;
}

#level-outcome-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

#level-outcome-actions.hidden {
  display: none;
}

#level-outcome-actions button {
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
}

#level-outcome-actions button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

#type-spinner {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: #0a1a14;
  padding: 20px 40px;
  border-radius: 12px;
  border: 1px solid rgba(212, 197, 160, 0.25);
  z-index: 150;
  pointer-events: none;
}

#type-spinner.hidden {
  display: none;
}

#spinner-word {
  color: rgba(212, 197, 160, 0.6);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
}

#spinner-type {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #d4c5a0;
  transition: color 0.06s;
}

#spinner-type.verb { color: #87ceeb; }
#spinner-type.noun { color: #d4c5a0; }
#spinner-type.adj  { color: #4a7c59; }

/* ── Settings screen ── */
#settings-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  z-index: 185;
  pointer-events: all;
}

#settings-screen.hidden {
  display: none;
}

#settings-inner {
  background: #0e0e1a;
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 16px;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 360px;
}

#settings-inner h2 {
  color: #ffd700;
  font-size: 22px;
  letter-spacing: 6px;
  font-weight: 900;
  text-align: center;
  margin: 0;
}

.settings-section h3 {
  color: rgba(255, 255, 255, 0.4);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  font-weight: 400;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

.setting-row:last-child {
  margin-bottom: 0;
}

.setting-options {
  display: flex;
  gap: 6px;
}

.setting-options button {
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.12s;
}

.setting-options button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.setting-options button.active {
  background: rgba(255, 215, 0, 0.18);
  border-color: rgba(255, 215, 0, 0.6);
  color: #ffd700;
}

/* Toggle switch */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  transition: background 0.15s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: transform 0.15s, background 0.15s;
}

.toggle input:checked + .toggle-slider {
  background: rgba(255, 215, 0, 0.3);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
  background: #ffd700;
}

#settings-close {
  align-self: center;
  padding: 10px 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 3px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.12s;
}

#settings-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

#pause-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.75);
  z-index: 180;
  pointer-events: all;
}

#pause-screen.hidden {
  display: none;
}

#pause-screen h1 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 48px;
  letter-spacing: 8px;
}

#pause-screen p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  margin-top: 16px;
}

#level-select {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 40%, #1e1e3f 0%, #07070f 100%);
  z-index: 190;
  gap: 32px;
}

#level-select.hidden {
  display: none;
}

#level-select h2 {
  color: #ffd700;
  font-size: 32px;
  letter-spacing: 8px;
  font-weight: 900;
}

#level-grid {
  display: grid;
  grid-template-columns: repeat(4, 90px);
  gap: 20px;
}

.level-btn {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.15s;
  position: relative;
}

.level-btn:hover:not(.locked) {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.8);
  transform: scale(1.08);
}

.level-btn.unlocked {
  border-color: rgba(255, 215, 0, 0.5);
}

.level-btn.completed {
  border-color: #44dd88;
  background: rgba(68, 221, 136, 0.1);
}

.level-btn.locked {
  opacity: 0.35;
  cursor: not-allowed;
}

.level-btn .lock-icon {
  font-size: 20px;
}

.level-btn .level-num {
  font-size: 28px;
  font-weight: 900;
}

.level-btn .level-score {
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #aaddff;
  opacity: 0.85;
}

.level-btn .level-label {
  font-size: 10px;
  letter-spacing: 1px;
  opacity: 0.6;
  text-transform: uppercase;
}

#level-select-hint {
  color: rgba(255, 255, 255, 0.3);
  font-size: 13px;
  letter-spacing: 2px;
}

#load-custom-btn {
  margin-top: 18px;
  background: rgba(100, 200, 255, 0.08);
  color: rgba(100, 200, 255, 0.7);
  border: 1px solid rgba(100, 200, 255, 0.25);
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.15s;
}
#load-custom-btn:hover {
  background: rgba(100, 200, 255, 0.18);
  border-color: rgba(100, 200, 255, 0.6);
  color: #aae8ff;
}

.level-btn.custom-level {
  border-color: rgba(100, 200, 255, 0.5);
  background: rgba(100, 200, 255, 0.07);
  position: relative;
}
.level-btn.custom-level:hover {
  background: rgba(100, 200, 255, 0.18);
  border-color: rgba(100, 200, 255, 0.9);
}
.level-btn.custom-level .level-num {
  font-size: 22px;
  color: #aae8ff;
}
.level-btn .clear-custom {
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 12px;
  opacity: 0.5;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}
.level-btn .clear-custom:hover {
  opacity: 1;
  background: rgba(255,80,80,0.3);
}

#import-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
}
#import-modal.hidden { display: none; }
#import-modal-inner {
  background: #1a2a1e;
  border: 1px solid rgba(100,200,255,0.3);
  border-radius: 14px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(520px, 90vw);
}
#import-modal-inner h3 {
  color: #aae8ff;
  font-size: 18px;
  letter-spacing: 3px;
  margin: 0;
}
#import-modal-inner p {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  margin: 0;
}
#import-json {
  width: 100%;
  height: 160px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #ccc;
  font-family: monospace;
  font-size: 12px;
  padding: 10px;
  resize: vertical;
  box-sizing: border-box;
}
#import-error {
  color: #ff6b6b;
  font-size: 13px;
  margin: 0;
}
#import-error.hidden { display: none; }
#import-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
#import-actions button {
  padding: 10px 22px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
  color: #fff;
  transition: all 0.15s;
}
#import-ok {
  background: rgba(100,200,255,0.15) !important;
  border-color: rgba(100,200,255,0.4) !important;
  color: #aae8ff !important;
}
#import-ok:hover { background: rgba(100,200,255,0.3) !important; }
#import-actions button:hover { background: rgba(255,255,255,0.14); }

#intro-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #1a3a2a 0%, #0e2233 60%, #0a1a14 100%);
  z-index: 200;
  cursor: pointer;
}

#intro-screen.hidden {
  display: none;
}

#intro-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

#intro-title {
  font-size: 120px;
  font-weight: 900;
  letter-spacing: 20px;
  color: #d4c5a0;
  text-shadow:
    0 0 20px rgba(212, 197, 160, 0.5),
    0 0 60px rgba(74, 124, 89, 0.3);
  animation: titleGlow 4s ease-in-out infinite;
  margin: 0 0 12px 0;
  line-height: 1;
}

@keyframes titleGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(212,197,160,0.5), 0 0 60px rgba(74,124,89,0.3); }
  50% { text-shadow: 0 0 30px rgba(212,197,160,0.8), 0 0 80px rgba(74,124,89,0.5), 0 0 120px rgba(135,206,235,0.15); }
}

#intro-sub {
  font-size: 16px;
  font-style: italic;
  color: rgba(212, 197, 160, 0.45);
  letter-spacing: 1px;
  margin-bottom: 56px;
}

#intro-rules {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 64px;
  align-items: flex-start;
}

.rule-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(212, 197, 160, 0.7);
  font-size: 17px;
}

.rule-icon {
  width: 28px;
  text-align: center;
  color: #4a7c59;
  font-size: 14px;
  flex-shrink: 0;
}

.verb-highlight {
  color: rgba(135, 206, 235, 0.85);
}

.verb-highlight strong {
  letter-spacing: 3px;
  color: #87ceeb;
}

.verb-highlight .rule-icon {
  color: #87ceeb;
  font-size: 18px;
}

#intro-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 260px;
}

#intro-loader-bar {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

#intro-loader-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: #4a7c59;
  border-radius: 2px;
  width: var(--progress, 0%);
  transition: width 0.2s ease;
}

#intro-loader-text {
  font-size: 12px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.35);
}

#intro-start {
  font-size: 13px;
  letter-spacing: 5px;
  color: rgba(212, 197, 160, 0.4);
  animation: blink 2s ease-in-out infinite;
}

#intro-start.hidden {
  display: none;
}

#intro-version {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(212, 197, 160, 0.2);
  font-family: monospace;
}

@keyframes blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.9; }
}

/* ── Tutorial ── */
#tutorial-overlay {
  position: fixed;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: none;
  transition: opacity 0.4s;
}

#tutorial-overlay.hidden {
  display: none;
}

#tutorial-box {
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  padding: 16px 24px;
  text-align: center;
  min-width: 280px;
  max-width: 420px;
  backdrop-filter: blur(8px);
}

#tutorial-text {
  color: #fff;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 8px;
}

#tutorial-keys {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

#tutorial-keys:empty {
  display: none;
}

.tut-key {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 13px;
  color: #ffd700;
  font-family: monospace;
  font-weight: bold;
}

#tutorial-step {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  letter-spacing: 1px;
}

@keyframes tutPulse {
  0%, 100% { border-color: rgba(255, 215, 0, 0.4); }
  50% { border-color: rgba(255, 215, 0, 0.8); }
}

#tutorial-box {
  animation: tutPulse 2s ease-in-out infinite;
}

#version {
  position: fixed;
  bottom: 8px;
  left: 12px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
  z-index: 10;
  pointer-events: none;
  font-family: monospace;
}

/* Word Challenge */
#word-challenge {
  margin-top: 6px;
  text-align: center;
  pointer-events: none;
}
#word-challenge.hidden { display: none; }
#challenge-label {
  font-size: 13px;
  color: #ffd700;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}
#challenge-bonus {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

/* Power-up Modal */
#powerup-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
#powerup-modal.hidden { display: none; }
#powerup-inner {
  background: #1a1a2e;
  border: 2px solid #ffd700;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  max-width: 500px;
  color: #fff;
}
#powerup-inner h2 {
  color: #ffd700;
  margin-bottom: 8px;
  font-size: 22px;
  letter-spacing: 2px;
}
#powerup-desc {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin-bottom: 12px;
}
#powerup-letters {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
#powerup-letters .pu-letter {
  width: 40px; height: 40px;
  background: #f5ecd7;
  color: #222;
  font-weight: bold;
  font-size: 18px;
  border: 2px solid #999;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#powerup-letters .pu-letter:hover {
  border-color: #ffd700;
  background: #fff8dc;
}
#powerup-letters .pu-letter.selected {
  border-color: #ffd700;
  background: #ffd700;
  color: #000;
}
#powerup-types {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.pu-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  min-width: 100px;
}
.pu-btn:hover {
  background: rgba(255, 215, 0, 0.2);
  border-color: #ffd700;
}
.pu-btn small {
  color: rgba(255,255,255,0.5);
  font-size: 10px;
}
