/* ===== TITLE SCREEN ===== */
#title-screen {
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(255,34,68,0.15) 0%, transparent 60%),
    linear-gradient(180deg, #0a0a18 0%, #12122a 100%);
}
#title-screen .title {
  font-family: 'Silkscreen', monospace;
  font-size: 52px;
  font-weight: 700;
  color: var(--accent-gold);
  text-shadow:
    3px 3px 0 #aa6600,
    6px 6px 0 rgba(0,0,0,0.5),
    0 0 40px rgba(255,204,0,0.3);
  letter-spacing: 4px;
  animation: titlePulse 2s ease-in-out infinite;
}
@keyframes titlePulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.03); filter: brightness(1.15); }
}
#title-screen .subtitle {
  font-size: 11px;
  color: #888;
  margin-top: 16px;
  letter-spacing: 2px;
}
#title-screen .start-btn {
  margin-top: 60px;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--accent-gold);
  background: none;
  border: 2px solid var(--accent-gold);
  padding: 14px 36px;
  cursor: pointer;
  animation: blink 1.2s steps(2) infinite;
  transition: all 0.15s;
}
#title-screen .start-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
  animation: none;
}
@keyframes blink { 50% { opacity: 0.3; } }

#title-screen .controls-hint {
  position: absolute;
  bottom: 30px;
  font-size: 8px;
  color: #555;
  text-align: center;
  line-height: 2;
}

/* ===== CHARACTER SELECT ===== */
#select-screen {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,0.015) 3px, rgba(255,255,255,0.015) 4px),
    linear-gradient(180deg, #0d0d20 0%, #0a0a18 100%);
}
#select-screen .header {
  text-align: center;
  padding: 18px;
  font-size: 16px;
  color: var(--accent-gold);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5);
  letter-spacing: 3px;
}
.char-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 0 20px;
  flex: 1;
}
.char-card {
  background: rgba(255,255,255,0.04);
  border: 2px solid #222;
  border-radius: 4px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.char-card:hover {
  border-color: var(--accent-gold);
  background: rgba(255,204,0,0.06);
  transform: translateY(-2px);
}
.char-card.selected {
  border-color: var(--accent-gold);
  background: rgba(255,204,0,0.1);
  box-shadow: 0 0 20px rgba(255,204,0,0.15), inset 0 0 20px rgba(255,204,0,0.05);
}
.char-card .avatar {
  width: 56px;
  height: 64px;
  margin: 4px 0;
}
.char-card .name {
  font-size: 7px;
  color: var(--text);
  text-align: center;
  margin: 4px 0 2px;
  line-height: 1.4;
}
.char-card .role {
  font-size: 6px;
  color: #666;
  text-align: center;
}
.stat-bars { width: 100%; margin-top: 4px; }
.stat-row {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 2px 0;
}
.stat-row .label { font-size: 5px; color: #777; width: 20px; }
.stat-row .bar-bg {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 1px;
  overflow: hidden;
}
.stat-row .bar-fill {
  height: 100%;
  border-radius: 1px;
  transition: width 0.3s;
}

.select-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
}
.select-footer .info-panel {
  flex: 1;
  min-height: 60px;
}
.select-footer .info-panel .char-title {
  font-size: 11px;
  color: var(--accent-gold);
  margin-bottom: 4px;
}
.select-footer .info-panel .char-desc {
  font-size: 7px;
  color: #999;
  line-height: 1.8;
}
.select-buttons {
  display: flex;
  gap: 10px;
  flex-direction: column;
}
.select-footer .fight-btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--bg-dark);
  background: var(--accent-red);
  border: none;
  padding: 10px 22px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s;
  opacity: 0.3;
  pointer-events: none;
}
#trainingBtn {
  background: #336688;
  color: #ccc;
}
.select-footer .fight-btn.ready {
  opacity: 1;
  pointer-events: all;
}
#fightBtn.ready {
  animation: fightPulse 1s ease-in-out infinite;
}
.select-footer .fight-btn.ready:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(255,34,68,0.4);
}
#trainingBtn.ready:hover {
  box-shadow: 0 0 20px rgba(51,102,136,0.5);
}
@keyframes fightPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(255,34,68,0.3); }
  50% { box-shadow: 0 0 25px rgba(255,34,68,0.5); }
}

/* ===== RESULT SCREEN ===== */
#result-screen {
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255,204,0,0.08) 0%, transparent 60%),
    var(--bg-dark);
}
#result-screen .result-text {
  font-family: 'Silkscreen', monospace;
  font-size: 40px;
  font-weight: 700;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.8);
  animation: announceIn 0.5s ease-out;
}
#result-screen .result-sub {
  font-size: 10px;
  color: #888;
  margin-top: 12px;
}
#result-screen .replay-btn {
  margin-top: 40px;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--accent-gold);
  background: none;
  border: 2px solid var(--accent-gold);
  padding: 12px 28px;
  cursor: pointer;
  transition: all 0.15s;
}
#result-screen .replay-btn:hover {
  background: var(--accent-gold);
  color: var(--bg-dark);
}

/* ===== TRAINING SCREEN ===== */
#training-screen {
  background: #111;
  flex-direction: column;
}
.training-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 14px;
  background: rgba(0,0,0,0.7);
}
.training-prompt {
  font-size: 8px;
  color: var(--accent-gold);
  line-height: 1.8;
  min-width: 180px;
  min-height: 28px;
  animation: promptPulse 2s ease-in-out infinite;
}
@keyframes promptPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
.training-controls .move-list {
  position: static;
  transform: none;
  background: none;
  padding: 0;
}
