:root {
  --bg: #0e0f15;
  --panel: #151825;
  --text: #e6e8f0;
  --accent: #8df;
  --accent2: #f88;
  --hp: #35e17a;
  --hp-low: #ff6565;
}

:root[data-theme="sunset"] {
  --bg:#191318; --panel:#2a1b22; --text:#ffeae1; --accent:#ffb27a; --accent2:#ff6d6d; --hp:#58e39b; --hp-low:#ff7070;
}
:root[data-theme="mono"] {
  --bg:#0f0f0f; --panel:#161616; --text:#e5e5e5; --accent:#bbb; --accent2:#ddd; --hp:#d0ffd0; --hp-low:#ffd0d0;
}

.sale-banner {
  display:block; width:100%; padding:14px 20px; text-align:center;
  background:linear-gradient(90deg,#ff6a00,#ee0979); color:#fff;
  font-size:1.2rem; font-weight:800; letter-spacing:1px; text-decoration:none;
  text-transform:uppercase;
}
.sale-banner:hover { filter:brightness(1.15); }

* { box-sizing: border-box; }
body { margin:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial; background: radial-gradient(1200px 600px at 70% 10%, #1b2035, var(--bg)); color:var(--text);}

.topbar {
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 20px; background:linear-gradient(90deg,#151825,#1a1f35);
  border-bottom:1px solid #23283f; gap:10px;
}
.brand { font-weight:800; letter-spacing:.5px; }
.nav a { color:var(--text); opacity:.9; margin-right:12px; text-decoration:none; }
.nav a:hover { color:var(--accent); }
.controls { display:flex; gap:12px; align-items:center; }
.switch { display:flex; gap:8px; align-items:center; cursor:pointer; user-select:none; }

.content { max-width:1100px; margin:0 auto; padding:24px; }

.arena { display:grid; grid-template-columns:1fr 80px 1fr; gap:18px; align-items:center; }
.vs { text-align:center; font-weight:800; color:var(--accent); font-size:2rem; }

.fighter {
  background:var(--panel); border:1px solid #23283f; border-radius:16px; padding:18px;
  position:relative; overflow:hidden; min-height:180px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.fighter.hit { animation: hit .5s ease; }
@keyframes hit {
  0% { transform: translateX(0); filter: brightness(1); }
  25%{ transform: translateX(-6px); filter: brightness(1.3); }
  50%{ transform: translateX(6px); }
  75%{ transform: translateX(-3px); }
  100%{ transform: translateX(0); filter: brightness(1); }
}

.avatar { font-size:2.2rem; }
.name { font-weight:800; margin-top:6px; font-size:1.2rem; }
.model { opacity:.7; font-size:.85rem; }

/* ============ ENHANCED HEALTH BARS ============ */
.hpbar {
  background:#29304d;
  border-radius:10px;
  height:18px;
  margin-top:12px;
  overflow:hidden;
  position:relative;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

/* Ghost bar - trails behind actual HP */
.hp-ghost {
  position:absolute;
  top:0; left:0;
  height:100%;
  width:100%;
  background:linear-gradient(90deg, rgba(255,255,255,0.6), rgba(200,200,200,0.4));
  transition: width 0.8s ease-out;
  z-index:1;
}

.hp {
  position:relative;
  height:100%;
  width:100%;
  background:linear-gradient(90deg, var(--hp), #2bd1c3);
  transition: width .25s ease;
  z-index:2;
}

.hp.low {
  background: linear-gradient(90deg, var(--hp-low), #ff9e75);
}

/* Glow overlay for critical health */
.hp-glow {
  position:absolute;
  top:0; left:0; right:0; bottom:0;
  border-radius:10px;
  z-index:3;
  pointer-events:none;
  opacity:0;
  box-shadow: inset 0 0 15px var(--hp-low), 0 0 10px var(--hp-low);
  transition: opacity 0.3s ease;
}

.hpbar.critical .hp-glow {
  opacity:1;
  animation: hp-pulse 0.8s ease-in-out infinite;
}

@keyframes hp-pulse {
  0%, 100% { opacity:0.6; }
  50% { opacity:1; }
}

/* Shake animation on big hits */
.hpbar.shake {
  animation: hpbar-shake 0.4s ease;
}

@keyframes hpbar-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

/* ============ DANGER INDICATOR ============ */
.danger-indicator {
  position:absolute;
  top:8px;
  right:8px;
  padding:4px 10px;
  background:linear-gradient(135deg, #ff3333, #cc0000);
  color:#fff;
  font-weight:800;
  font-size:0.75rem;
  border-radius:6px;
  opacity:0;
  transform:scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  z-index:5;
}

.fighter.in-danger .danger-indicator {
  opacity:1;
  transform:scale(1);
  animation: danger-flash 0.6s ease-in-out infinite;
}

@keyframes danger-flash {
  0%, 100% { opacity:1; background:linear-gradient(135deg, #ff3333, #cc0000); }
  50% { opacity:0.7; background:linear-gradient(135deg, #ff6666, #ff3333); }
}

/* ============ COMBO COUNTER ============ */
.combo-counter {
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  font-size:4rem;
  font-weight:900;
  color:#fff;
  text-shadow:
    0 0 20px #ff00ff,
    0 0 40px #ff00ff,
    0 0 60px #ff6600,
    0 4px 0 rgba(0,0,0,0.3);
  opacity:0;
  pointer-events:none;
  z-index:15;
  transition: opacity 0.2s ease, transform 0.2s ease;
  letter-spacing: 2px;
}

.combo-counter.active {
  opacity:1;
  animation: combo-pop 0.3s ease-out;
}

.combo-counter.mega {
  font-size:5rem;
  color:#ffff00;
  text-shadow:
    0 0 30px #ffff00,
    0 0 60px #ff6600,
    0 0 90px #ff0000,
    0 4px 0 rgba(0,0,0,0.3);
}

@keyframes combo-pop {
  0% { transform: translate(-50%, -50%) scale(1.5); }
  50% { transform: translate(-50%, -50%) scale(0.95); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* ============ DANGER SCREEN OVERLAY ============ */
.danger-overlay {
  position:absolute;
  top:0; left:0; right:0; bottom:0;
  pointer-events:none;
  z-index:5;
  opacity:0;
  transition: opacity 0.3s ease;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(255,0,0,0.15) 100%);
  box-shadow: inset 0 0 100px rgba(255,0,0,0.3);
}

.danger-overlay.active {
  opacity:1;
  animation: danger-vignette 1s ease-in-out infinite;
}

@keyframes danger-vignette {
  0%, 100% {
    box-shadow: inset 0 0 80px rgba(255,0,0,0.25);
    background: radial-gradient(ellipse at center, transparent 40%, rgba(255,0,0,0.12) 100%);
  }
  50% {
    box-shadow: inset 0 0 120px rgba(255,0,0,0.4);
    background: radial-gradient(ellipse at center, transparent 30%, rgba(255,0,0,0.2) 100%);
  }
}

/* Feed container - side by side layout */
.feed-container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  margin-top: 26px;
}

@media (max-width: 900px) {
  .feed-container {
    grid-template-columns: 1fr;
  }
}

.feed { background:var(--panel); border:1px solid #23283f; border-radius:16px; padding:16px; }
.round { font-weight:700; margin-bottom:12px; color:var(--accent); }
#log { list-style:none; padding:0; margin:0; display:flex; flex-direction:column-reverse; gap:8px; max-height:420px; overflow:auto;}
#log li { padding:10px 12px; background:#121422; border:1px solid #23283f; border-radius:10px; }
#log .who { color:#9fd; font-weight:700; }
#log .dmg { color:#f88; font-weight:800; margin-left:6px; }
#log .taunt { color:#ddd; opacity:.9; font-style:italic; }
#log .crit {
  color:#ffff00;
  font-weight:900;
  text-transform:uppercase;
  text-shadow: 0 0 10px #ffff00, 0 0 20px #ff6600;
  animation: crit-pulse 0.5s ease;
}
@keyframes crit-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}
#log .combo {
  color:#ff00ff;
  font-weight:800;
  text-shadow: 0 0 8px #ff00ff;
}

.table { width:100%; border-collapse: collapse; }
.table th, .table td { border:1px solid #23283f; padding:8px 10px; }
.table th { background:#0f1220; text-align:left; }

.admin .form-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; }
.admin .form-grid label { display:flex; flex-direction:column; gap:6px; }
.admin .form-grid label.full { grid-column:1/-1; }
.admin input, .admin textarea, .admin select { background:#0f1220; color:var(--text); border:1px solid #23283f; border-radius:8px; padding:8px; }
.admin select { cursor: pointer; }
.admin select option { background: #0f1220; }
.admin .row { grid-column:1/-1; display:flex; gap:12px; }

.model-info {
  margin-top: 24px;
  padding: 16px;
  background: #121422;
  border: 1px solid #23283f;
  border-radius: 12px;
}
.model-info h3 {
  margin: 0 0 12px 0;
  color: var(--accent);
  font-size: 1rem;
}
.model-info ul {
  margin: 0;
  padding-left: 20px;
}
.model-info li {
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.model-info strong {
  color: var(--accent);
}
button { background:#1f2a4b; color:var(--text); border:1px solid #2b3860; padding:8px 14px; border-radius:10px; cursor:pointer; }
button.accent { background:#2b604b; border-color:#2f7a5f; }
.hint { opacity:.7; margin-top:10px; }

.stage { margin:20px 0; }
.canvas-wrap { position:relative; border:1px solid #23283f; border-radius:16px; overflow:hidden; background:linear-gradient(180deg,#0f1220,#0a0c16); }
#arenaCanvas { display:block; width:100%; height:auto; }

.banner {
  position:absolute; left:50%; top:20px; transform:translateX(-50%);
  padding:10px 18px; border-radius:999px;
  background:rgba(20,26,45,0.8); border:1px solid #2b3860; color:#e6e8f0;
  font-weight:800; letter-spacing:.8px; opacity:0; transition:opacity .25s ease, transform .25s ease;
}
.banner.show { opacity:1; transform:translateX(-50%) scale(1.03); }

@media (max-width: 960px) {
  #arenaCanvas { height: 300px; }
}
.stage { margin:20px 0; }
.canvas-wrap { position:relative; border:1px solid #23283f; border-radius:16px; overflow:hidden; background:linear-gradient(180deg,#0f1220,#0a0c16); }
#arenaCanvas { display:block; width:100%; height:auto; }

.banner {
  position:absolute; left:50%; top:20px; transform:translateX(-50%);
  padding:10px 18px; border-radius:999px;
  background:rgba(20,26,45,0.8); border:1px solid #2b3860; color:#e6e8f0;
  font-weight:800; letter-spacing:.8px; opacity:0; transition:opacity .25s ease, transform .25s ease;
}
.banner.show { opacity:1; transform:translateX(-50%) scale(1.03); }

.photo {
  position:absolute; right:12px; bottom:12px; z-index:2;
  background:#1f2a4b; border:1px solid #2b3860; color:#e6e8f0;
  padding:8px 12px; border-radius:10px; cursor:pointer;
  opacity:.9;
}
.photo:hover { opacity:1; }

/* AI Announcer Commentary Bar */
.commentary-bar {
  position:absolute;
  left:50%;
  bottom:60px;
  transform:translateX(-50%);
  max-width:80%;
  padding:12px 20px;
  background:linear-gradient(135deg, rgba(30,40,70,0.95), rgba(20,25,45,0.95));
  border:2px solid var(--accent);
  border-radius:12px;
  color:#fff;
  font-weight:600;
  font-size:1.1rem;
  text-align:center;
  opacity:0;
  transform:translateX(-50%) translateY(10px);
  transition:opacity 0.3s ease, transform 0.3s ease;
  box-shadow:0 4px 20px rgba(0,0,0,0.4), 0 0 20px rgba(141,221,255,0.2);
  z-index:10;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.commentary-bar.active {
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

/* Commentary in log */
#log .commentary {
  color:var(--accent);
  font-weight:700;
  font-style:italic;
  background:rgba(141,221,255,0.1);
  padding:2px 6px;
  border-radius:4px;
}

/* ============ LIVE CHAT PANEL ============ */
.chat-panel {
  background: var(--panel);
  border: 1px solid #23283f;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  max-height: 500px;
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: linear-gradient(90deg, #1a1f35, #151825);
  border-bottom: 1px solid #23283f;
  font-weight: 700;
}

.spectator-count {
  font-size: 0.85rem;
  color: var(--accent);
  opacity: 0.9;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
  max-height: 300px;
}

.chat-msg {
  padding: 8px 10px;
  background: #121422;
  border: 1px solid #23283f;
  border-radius: 8px;
  font-size: 0.9rem;
  word-wrap: break-word;
}

.chat-user {
  color: var(--accent);
  font-weight: 600;
  margin-right: 4px;
}

.chat-emote {
  padding: 4px 10px;
  font-size: 1.1rem;
  opacity: 0.8;
}

.emote-bar {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: #0f1220;
  border-top: 1px solid #23283f;
  border-bottom: 1px solid #23283f;
  justify-content: center;
}

.emote-btn {
  background: transparent;
  border: 1px solid transparent;
  font-size: 1.3rem;
  padding: 4px 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.emote-btn:hover {
  background: rgba(141,221,255,0.15);
  border-color: var(--accent);
  transform: scale(1.15);
}

.chat-input-wrap {
  display: flex;
  gap: 8px;
  padding: 12px;
}

.chat-input-wrap input {
  flex: 1;
  background: #0f1220;
  color: var(--text);
  border: 1px solid #23283f;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
}

.chat-input-wrap input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-input-wrap button {
  background: var(--accent);
  color: #0e0f15;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.chat-input-wrap button:hover {
  opacity: 0.9;
}

/* ============ PRE-FIGHT OVERLAY ============ */
.pre-fight-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(10,15,30,0.98), rgba(15,20,40,0.98));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

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

.pre-fight-content {
  text-align: center;
  width: 90%;
  max-width: 900px;
}

.match-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: 4px;
  margin-bottom: 20px;
  text-shadow: 0 0 20px var(--accent);
  animation: title-pulse 2s ease-in-out infinite;
}

@keyframes title-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.tale-of-tape {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.fighter-intro {
  background: rgba(30,40,60,0.6);
  border: 1px solid #2b3860;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.intro-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.intro-personality {
  font-size: 0.9rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 12px;
}

.intro-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 12px;
}

.intro-stats > div {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.intro-quote {
  font-style: italic;
  color: #aaa;
  font-size: 0.85rem;
  padding: 8px;
  background: rgba(0,0,0,0.3);
  border-radius: 6px;
}

.vs-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.countdown-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  box-shadow: 0 0 30px var(--accent);
  animation: ring-pulse 1s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--accent); }
  50% { box-shadow: 0 0 40px var(--accent); }
}

.countdown-number {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  transition: transform 0.15s ease;
}

.countdown-number.pulse {
  transform: scale(1.3);
  color: #ff6b6b;
  text-shadow: 0 0 20px #ff6b6b;
}

.h2h-record {
  font-size: 0.8rem;
  color: #aaa;
  max-width: 100px;
  text-align: center;
}

/* ============ PREDICTION SECTION ============ */
.prediction-section {
  margin: 20px 0;
  padding: 16px;
  background: rgba(40,50,80,0.4);
  border-radius: 12px;
  border: 1px solid #3b4a6b;
}

.prediction-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffcc00;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.prediction-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.predict-btn {
  flex: 1;
  max-width: 200px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #2a3a5a, #1f2a4b);
  border: 2px solid #3b4a6b;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.predict-btn:hover {
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(141,221,255,0.3);
}

.predict-btn.selected {
  border-color: #00ff88;
  background: linear-gradient(135deg, #1a4a3a, #0f3a2a);
  box-shadow: 0 0 20px rgba(0,255,136,0.4);
}

.predict-btn:disabled,
.predict-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.predict-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.predict-odds {
  font-size: 0.8rem;
  color: #aaa;
}

.my-prediction {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #00ff88;
  min-height: 20px;
}

.announcer-prediction {
  margin-top: 16px;
  font-size: 0.9rem;
}

.announcer-label {
  color: #888;
}

.announcer-pick {
  color: var(--accent);
  font-weight: 700;
}

/* ============ PREDICTION RESULT POPUP ============ */
.prediction-result {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: linear-gradient(135deg, rgba(20,30,50,0.98), rgba(10,15,30,0.98));
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 30px 50px;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.prediction-result.show,
.prediction-result.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.prediction-result.correct {
  border-color: #00ff88;
  box-shadow: 0 0 40px rgba(0,255,136,0.4);
}

.prediction-result.incorrect {
  border-color: #ff4444;
  box-shadow: 0 0 40px rgba(255,68,68,0.4);
}

.result-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.result-text {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.result-streak {
  font-size: 1rem;
  color: #ffcc00;
}

/* ============ MUTE BUTTON ============ */
.mute-btn {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  background: #1f2a4b;
  border: 1px solid #2b3860;
  color: #e6e8f0;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.9;
  font-size: 1.1rem;
}

.mute-btn:hover { opacity: 1; }
.mute-btn.muted { opacity: 0.5; }

@media (max-width: 960px) {
  #arenaCanvas { height: 300px; }
  .tale-of-tape { grid-template-columns: 1fr; gap: 10px; }
  .vs-divider { flex-direction: row; padding: 10px 0; }
  .prediction-buttons { flex-direction: column; align-items: center; }
}

/* ============ COMBAT STATS ============ */
.combat-stats {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
}

.stat-icon {
  font-size: 0.9rem;
  width: 20px;
  text-align: center;
}

.stat-name {
  width: 30px;
  color: #aaa;
  font-weight: 600;
}

.stat-meter {
  flex: 1;
  height: 8px;
  background: #1a1f35;
  border-radius: 4px;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  border-radius: 4px;
  transition: width 0.5s ease;
}

.stat-num {
  width: 20px;
  text-align: right;
  font-weight: 700;
  color: #fff;
}

/* Mini stats in arena */
.fighter-stats-mini {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.75rem;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(0,0,0,0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============ SPECIAL MOVES ============ */
.special-moves {
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.special-move-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  background: rgba(100,100,150,0.2);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(100,100,150,0.3);
}

.move-icon {
  font-size: 0.9rem;
}

.move-name {
  flex: 1;
  font-weight: 600;
  color: #ddd;
}

.move-cd {
  color: #888;
  font-size: 0.7rem;
}

/* ============ COOLDOWNS & EFFECTS ============ */
.cooldowns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.cooldown-item {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,100,100,0.2);
  border: 1px solid rgba(255,100,100,0.4);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
}

.cd-name {
  color: #faa;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cd-turns {
  color: #f88;
  font-weight: 700;
}

.active-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

/* ============ LOG STYLING FOR SPECIAL MOVES ============ */
.special-tag {
  background: linear-gradient(90deg, #ff6b6b, #feca57);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 0.85em;
  margin-right: 4px;
}

.effect-tag {
  color: #60a5fa;
  font-size: 0.85em;
}

.dodge {
  color: #fbbf24;
  font-weight: 700;
}

.stun {
  color: #f472b6;
  font-weight: 700;
}

.shield {
  color: #60a5fa;
}

.dot {
  color: #f87171;
}

/* ============ MATCH SCHEDULE SECTION ============ */
.schedule-section {
  margin-top: 30px;
  padding: 20px;
  background: var(--panel);
  border: 1px solid #23283f;
  border-radius: 16px;
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #23283f;
}

.schedule-header h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--accent);
  letter-spacing: 1px;
}

.server-time {
  font-size: 0.85rem;
  color: #888;
  font-family: monospace;
}

/* Current Match Card */
.current-match-card {
  background: linear-gradient(135deg, rgba(40,50,80,0.6), rgba(30,40,60,0.6));
  border: 2px solid var(--accent);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.current-match-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(141,221,255,0.05) 50%, transparent 60%);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.current-match-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffcc00;
  margin-bottom: 8px;
  font-weight: 700;
}

.current-match-status {
  display: inline-block;
  padding: 3px 10px;
  background: #ff4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  animation: live-pulse 1.5s ease-in-out infinite;
  margin-left: 10px;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.current-fighters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 16px 0;
  position: relative;
  z-index: 1;
}

.current-fighter {
  text-align: center;
  flex: 1;
  max-width: 200px;
}

.current-fighter-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.current-fighter-model {
  font-size: 0.8rem;
  color: #aaa;
}

.current-vs {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent);
}

.current-votes {
  display: flex;
  justify-content: space-around;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.vote-count {
  text-align: center;
}

.vote-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.vote-label {
  font-size: 0.75rem;
  color: #888;
}

/* Upcoming Matches */
.upcoming-matches {
  margin-bottom: 24px;
}

.upcoming-matches h3 {
  font-size: 1rem;
  color: #ddd;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.upcoming-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.upcoming-match {
  background: rgba(20,25,40,0.8);
  border: 1px solid #2b3860;
  border-radius: 12px;
  padding: 14px;
  transition: all 0.2s ease;
}

.upcoming-match:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.upcoming-match.voted {
  border-color: #00ff88;
  background: rgba(0,255,136,0.05);
}

.match-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.match-time {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  font-family: monospace;
}

.match-countdown {
  font-size: 0.8rem;
  color: #ffcc00;
  background: rgba(255,204,0,0.15);
  padding: 2px 8px;
  border-radius: 4px;
}

.match-countdown.soon {
  color: #ff6b6b;
  background: rgba(255,107,107,0.15);
  animation: countdown-pulse 1s ease-in-out infinite;
}

@keyframes countdown-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.match-fighters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.match-fighter {
  flex: 1;
  text-align: center;
}

.match-fighter-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-fighter-model {
  font-size: 0.7rem;
  color: #888;
}

.match-vs {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent);
}

/* Vote Buttons */
.vote-buttons {
  display: flex;
  gap: 8px;
}

.vote-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 8px;
  background: linear-gradient(135deg, #1f2a4b, #151825);
  border: 1px solid #2b3860;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text);
}

.vote-btn:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, #2a3a5b, #1f2a4b);
}

.vote-btn.selected {
  border-color: #00ff88;
  background: linear-gradient(135deg, #1a4a3a, #0f3a2a);
  box-shadow: 0 0 12px rgba(0,255,136,0.3);
}

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

.vote-btn-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.vote-btn-odds {
  font-size: 0.7rem;
  color: #888;
}

.vote-btn-votes {
  font-size: 0.65rem;
  color: #aaa;
}

/* Voting closed state */
.voting-closed {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  padding: 8px;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
}

/* Recent Matches */
.recent-matches {
  border-top: 1px solid #23283f;
  padding-top: 16px;
}

.recent-matches h3 {
  font-size: 1rem;
  color: #ddd;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recent-matches-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-match {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(15,20,35,0.6);
  border: 1px solid #23283f;
  border-radius: 10px;
}

.recent-time {
  font-size: 0.8rem;
  color: #888;
  font-family: monospace;
  min-width: 50px;
}

.recent-fighters {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.recent-fighter {
  font-size: 0.9rem;
  color: #aaa;
}

.recent-fighter.winner {
  color: #00ff88;
  font-weight: 700;
}

.recent-vs {
  font-size: 0.8rem;
  color: #555;
}

.recent-result {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.recent-result.ko {
  background: rgba(255,68,68,0.2);
  color: #ff6b6b;
}

.recent-result.decision {
  background: rgba(141,221,255,0.2);
  color: var(--accent);
}

/* Empty states */
.no-matches {
  text-align: center;
  padding: 30px;
  color: #666;
  font-style: italic;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .schedule-section {
    padding: 14px;
  }

  .upcoming-matches-grid {
    grid-template-columns: 1fr;
  }

  .current-fighters {
    flex-direction: column;
    gap: 10px;
  }

  .current-vs {
    font-size: 1.2rem;
  }

  .schedule-header {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ============ BATTLE STRATEGY CARDS ============ */
.strategy-card {
  margin-top: 12px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(30,40,70,0.8), rgba(20,30,50,0.8));
  border: 1px solid #3b4a6b;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.strategy-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.strategy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.strategy-style {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.aggression-meter {
  width: 60px;
  height: 8px;
  background: rgba(0,0,0,0.4);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.aggression-meter::before {
  content: 'AGG';
  position: absolute;
  left: -28px;
  top: -2px;
  font-size: 0.6rem;
  color: #888;
  font-weight: 600;
}

.aggro-fill {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #feca57, #ff9f43);
  border-radius: 4px;
  transition: width 0.5s ease, background 0.5s ease;
}

.strategy-plan {
  font-size: 0.85rem;
  color: #ccc;
  font-style: italic;
  padding: 8px;
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  margin-bottom: 8px;
  line-height: 1.4;
  min-height: 40px;
}

.battle-cry {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffcc00;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-height: 20px;
  text-shadow: 0 0 10px rgba(255,204,0,0.5);
}

.battle-cry-animate {
  animation: battle-cry-pop 0.5s ease-out;
}

@keyframes battle-cry-pop {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* Strategy info in fight arena during combat */
.arena-strategy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(40,50,80,0.5);
  border-radius: 6px;
  font-size: 0.75rem;
}

.arena-strategy-label {
  color: #888;
}

.arena-strategy-value {
  color: #fff;
  font-weight: 600;
}

.strategy-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.strategy-badge.aggressive {
  background: rgba(255,68,68,0.3);
  color: #ff6b6b;
}

.strategy-badge.balanced {
  background: rgba(255,159,67,0.3);
  color: #ff9f43;
}

.strategy-badge.defensive {
  background: rgba(72,219,251,0.3);
  color: #48dbfb;
}
