body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #f8fafc;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}
.card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  width: 90%;
  max-width: 480px;
  border: 1px solid rgba(255,255,255,0.1);
}
h2, label { color: #38bdf8; font-weight: bold; }
#winner-display { text-align: center; font-size: 2.5rem; margin: 15px 0; text-transform: uppercase; letter-spacing: 2px; }
input, textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #475569;
  background: #0f172a;
  color: white;
  box-sizing: border-box;
}
textarea { font-family: monospace; height: 200px; resize: vertical; }
button {
  width: 100%;
  padding: 12px;
  background: #0284c7;
  color: white;
  border: none;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
}
button:hover { background: #0369a1; }
.secondary-btn { background: #10b981; }
.secondary-btn:hover { background: #059669; }
.hidden { display: none !important; }
ul { list-style: none; padding: 0; max-height: 200px; overflow-y: auto; }
li { background: rgba(255,255,255,0.05); padding: 8px 12px; margin-bottom: 6px; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; }
.input-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 15px; }
.input-group input { margin: 0; }
.badge { background: #475569; font-size: 0.8rem; padding: 2px 6px; border-radius: 4px; color: #94a3b8; }
.dash-link { display: block; text-align: center; color: #38bdf8; margin-top: 15px; text-decoration: none; font-size: 0.9rem; }
.dash-link:hover { text-decoration: underline; }

/* --- Game Tinder Survival Deck UI --- */
.game-vote-container {
  background: #1e293b;
  border: 2px solid transparent;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  margin: 20px 0;
}
/* Gold Outline for games manually requested during this session */
.forced-round-item {
  border-color: #fbbf24 !important;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}
.forced-badge {
  background: #fbbf24;
  color: #1e293b;
  font-weight: bold;
}
.vote-counter-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}
.vote-counter-layout input {
  width: 90px;
  text-align: center;
  font-size: 1.5rem;
}
.stats-box { background: rgba(56, 189, 248, 0.1); border: 1px solid #38bdf8; padding: 15px; border-radius: 8px; margin-top: 15px; }
.helper-text { font-size: 0.9rem; color: #94a3b8; text-align: center; margin-bottom: 15px; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  color: #f8fafc;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}
.card {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  width: 90%;
  max-width: 480px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: max-width 0.4s ease;
}
/* Dynamically stretches card container layout when entering the dual arena match */
.wide-card { max-width: 700px !important; }

h2, label { color: #38bdf8; font-weight: bold; text-align: center; }
input, textarea {
  width: 100%; padding: 12px; margin: 10px 0; border-radius: 8px;
  border: 1px solid #475569; background: #0f172a; color: white; box-sizing: border-box;
}
button { width: 100%; padding: 12px; background: #0284c7; color: white; border: none; font-weight: bold; border-radius: 8px; cursor: pointer; margin-top: 8px; }
button:hover { background: #0369a1; }
.secondary-btn { background: #10b981; }
.secondary-btn:hover { background: #059669; }
.hidden { display: none !important; }
ul { list-style: none; padding: 0; max-height: 200px; overflow-y: auto; }
li { background: rgba(255,255,255,0.05); padding: 8px 12px; margin-bottom: 6px; border-radius: 6px; display: flex; justify-content: space-between; align-items: center; }
.input-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 15px; }
.input-group input { margin: 0; }
.badge { background: #475569; font-size: 0.8rem; padding: 2px 6px; border-radius: 4px; color: #94a3b8; }
.forced-badge { background: #fbbf24; color: #1e293b; font-weight: bold; }
.dash-link { display: block; text-align: center; color: #38bdf8; margin-top: 15px; text-decoration: none; font-size: 0.9rem; }

/* --- Dual-Card Head to Head Interface --- */
.arena-match-layout {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0;
}
.arena-card {
  background: #1e293b; border: 2px solid transparent; padding: 20px; border-radius: 12px; text-align: center; flex: 1; min-width: 0;
}
.forced-round-item { border-color: #fbbf24 !important; box-shadow: 0 0 12px rgba(251, 191, 36, 0.2); }
.arena-versus { font-size: 1.5rem; font-weight: bold; color: #ef4444; font-style: italic; padding: 0 5px; }
.vote-entry-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 15px; }
.vote-entry-row input { width: 70px; text-align: center; font-size: 1.3rem; margin: 0; padding: 6px; }

.leaderboard-item { font-size: 1.1rem; border-left: 5px solid #10b981; padding: 10px 15px; background: rgba(16, 185, 129, 0.1); margin-bottom: 8px; }
.stats-box { background: rgba(56, 189, 248, 0.1); border: 1px solid #38bdf8; padding: 15px; border-radius: 8px; margin-top: 15px; }
.helper-text { font-size: 0.9rem; color: #94a3b8; text-align: center; margin-bottom: 15px; }
/* Add/Replace these style modules inside your existing style.css */
.wide-card { max-width: 700px !important; }

/* Tab Navigation buttons */
.tab-header { display: flex; gap: 10px; margin: 15px 0; border-bottom: 1px solid #475569; padding-bottom: 10px; }
.tab-btn { background: #334155; padding: 8px 12px; font-size: 0.9rem; margin: 0; flex: 1; border-radius: 6px; }
.tab-btn:hover { background: #475569; }
.active-tab { background: #0284c7 !important; color: white; }

/* Sports League Stats Table Formatting */
.table-container { overflow-x: auto; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; text-align: center; font-size: 0.95rem; }
th { background: #1e293b; color: #38bdf8; padding: 10px; font-weight: bold; border-bottom: 2px solid #475569; }
td { padding: 10px; border-bottom: 1px solid rgba(255,255,255,0.05); }
tr:hover td { background: rgba(56, 189, 248, 0.05); }

/* Re-use helper components */
.arena-match-layout { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0; }
.arena-card { background: #1e293b; border: 2px solid transparent; padding: 20px; border-radius: 12px; text-align: center; flex: 1; min-width: 0; }
.forced-round-item { border-color: #fbbf24 !important; box-shadow: 0 0 12px rgba(251, 191, 36, 0.2); }
.arena-versus { font-size: 1.5rem; font-weight: bold; color: #ef4444; font-style: italic; padding: 0 5px; }
.vote-entry-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 15px; }
.vote-entry-row input { width: 70px; text-align: center; font-size: 1.3rem; margin: 0; padding: 6px; }
.leaderboard-item { font-size: 1.1rem; border-left: 5px solid #10b981; padding: 10px 15px; background: rgba(16, 185, 129, 0.1); margin-bottom: 8px; display: flex; justify-content: space-between; }
.badge { background: #475569; font-size: 0.8rem; padding: 2px 6px; border-radius: 4px; color: #94a3b8; }
.forced-badge { background: #fbbf24; color: #1e293b; font-weight: bold; }
.dash-link { display: block; text-align: center; color: #38bdf8; margin-top: 15px; text-decoration: none; font-size: 0.9rem; }
.stats-box { background: rgba(56, 189, 248, 0.1); border: 1px solid #38bdf8; padding: 15px; border-radius: 8px; margin-top: 15px; }
.helper-text { font-size: 0.9rem; color: #94a3b8; text-align: center; margin-bottom: 15px; }
/* Add this class to your existing style.css */
.instruction-alert {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: 8px;
  border: 1px dashed #475569;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}
.arena-card h3 {
  font-size: 1.4rem;
  margin: 10px 0;
}
