/* ===== BOMBPARTY CSS — all styles for bombparty.html ===== */

/* ===== BASE ===== */
html, body {
  margin: 0; padding: 0; height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #080c18; color: #f1f5f9; overflow-x: hidden;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ===== SCREENS ===== */
.screen {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  padding: 2rem; overflow-y: auto; background: var(--bg-color, #080c18);
  transition: background 0.5s ease;
}
.screen.active { display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* Turn-highlighted screen background — warm red glow */
body.turn-active-screen .screen.active { --bg-color: #1a0a0a; }
body.turn-active-screen { transition: background 0.4s ease; }

/* ===== GAME SELECT (red variant) ===== */
.game-select-container { max-width: 720px; width: 100%; text-align: center; }
.game-select-header h1 {
  font-size: 2rem; font-weight: 800; color: #ef4444;
  background: linear-gradient(135deg, #f1f5f9, #fca5a5);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.game-select-header p { color: #94a3b8; margin-top: 0.25rem; font-size: 0.95rem; }

.shared-name-input {
  width: 100%; max-width: 320px; padding: 0.6rem 1rem; margin-bottom: 1.2rem;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; color: #f1f5f9; font-size: 0.95rem; font-family: inherit;
  outline: none; transition: border-color 0.2s;
}
.shared-name-input:focus { border-color: rgba(239,68,68,0.5); }
.shared-name-input::placeholder { color: #64748b; }

.game-select-grid { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.game-card {
  background: linear-gradient(135deg, rgba(30,35,50,0.9), rgba(20,24,36,0.95));
  border: 1px solid rgba(255,255,255,0.08); border-radius: 16px;
  padding: 1.5rem; flex: 1; min-width: 280px; max-width: 320px;
  cursor: pointer; transition: all 0.25s ease;
}
.game-card:hover {
  border-color: rgba(239,68,68,0.4);
  background: linear-gradient(135deg, rgba(35,40,58,0.95), rgba(25,29,44,0.95));
  transform: translateY(-2px); box-shadow: 0 8px 30px rgba(239,68,68,0.1);
}
.game-card.selected {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px #ef4444, 0 0 30px rgba(239,68,68,0.2);
}
.game-card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.game-icon-text { font-size: 1.3rem; font-weight: 900; color: #fff; }
.game-card-info h2 { font-size: 1.15rem; font-weight: 700; color: #f1f5f9; margin-bottom: 0.3rem; }
.game-card-info > p { color: #94a3b8; font-size: 0.85rem; margin-bottom: 0.75rem; }

.game-card-actions { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; }
.btn-game-create {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  width: 100%; padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; border: none; border-radius: 10px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease;
}
.btn-game-create:hover { background: linear-gradient(135deg, #dc2626, #b91c1c); transform: translateY(-1px); }
.btn-game-join {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5; border-radius: 8px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease;
}
.btn-game-join:hover { background: rgba(239,68,68,0.25); border-color: rgba(239,68,68,0.5); }
.game-join-input {
  padding: 0.45rem 0.7rem; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  color: #f1f5f9; font-size: 0.8rem; font-family: inherit; outline: none; transition: border-color 0.2s;
}
.game-join-input:focus { border-color: rgba(239,68,68,0.5); }
.game-join-input::placeholder { color: #64748b; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.1rem; font-size: 0.85rem; font-weight: 600; font-family: inherit;
  border: none; border-radius: 10px; cursor: pointer; transition: all 0.2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:disabled { opacity: 0.35; cursor: not-allowed; }
.btn svg { flex-shrink: 0; }
.btn-start {
  width: 100%; padding: 0.7rem 1rem; background: linear-gradient(135deg, #10b981, #059669);
  color: white; font-size: 0.88rem;
}
.btn-start:hover:not(:disabled) { transform: translateY(-1px); }
.btn-reset {
  width: 100%; padding: 0.55rem 1rem; background: rgba(244,63,94,0.1);
  color: #f43f5e; border: 1px solid rgba(244,63,94,0.2); font-size: 0.78rem;
}
.btn-reset:hover { background: rgba(244,63,94,0.2); }
.btn-primary { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; }
.btn-lg { width: 100%; padding: 0.85rem 1.5rem; font-size: 1rem; }

/* ===== HOST SIDEBAR ===== */
.host-layout {
  width: 100%; max-width: 1000px; display: grid; grid-template-columns: 260px 1fr;
  gap: 1.25rem; height: calc(100vh - 4rem); min-height: 500px;
}
@media (max-width: 768px) { .host-layout { grid-template-columns: 1fr; height: auto; } }
.host-sidebar {
  background: #161d30; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; padding: 1.25rem; display: flex; flex-direction: column; gap: 0;
}
.sidebar-header { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mini-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mini-logo span { font-size: 1rem; font-weight: 900; color: white; }
.mini-title { font-size: 0.85rem; font-weight: 700; }
.lobby-badge { font-size: 0.72rem; color: #f59e0b; font-weight: 600; }
.lobby-code { font-family: monospace; font-size: 0.88rem; }

/* ===== HOST SCREEN LOBBY CODE DISPLAY ===== */
.host-lobby-code-display {
  text-align: center; padding: 3rem 2rem;
}
.host-lobby-code-label {
  font-size: 0.8rem; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 0.5rem;
}
.host-lobby-code-value {
  font-size: clamp(4rem, 15vw, 10rem); font-weight: 900;
  color: #fbbf24; letter-spacing: 0.08em; font-family: monospace;
  line-height: 1.1; text-shadow: 0 0 40px rgba(251,191,36,0.3);
}

.sidebar-section { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.sidebar-section h3 { font-size: 0.78rem; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.count-badge { background: rgba(239,68,68,0.15); color: #fca5a5; padding: 0.1rem 0.5rem; border-radius: 10px; font-size: 0.72rem; }

.players-list { list-style: none; }
.players-list li {
  padding: 0.5rem 0.7rem; border-radius: 8px; font-size: 0.88rem;
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem;
  background: #101525; border: 1px solid transparent;
}
.players-list li.host-player { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.15); }
.empty-state { color: #64748b; font-style: italic; font-size: 0.82rem; }

.controls-section { display: flex; flex-direction: column; gap: 0.5rem; }

/* BP settings */
.bp-setting-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; font-size: 0.8rem; color: #94a3b8; }
.bp-select {
  background: #101525; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px;
  padding: 0.3rem 0.5rem; color: #f1f5f9; font-size: 0.8rem; font-family: inherit; outline: none;
}
.bp-select:focus { border-color: #ef4444; }

.sidebar-footer { margin-top: auto; padding-top: 0.75rem; }
.status-badge {
  display: block; text-align: center; padding: 0.5rem; border-radius: 8px;
  font-size: 0.78rem; font-weight: 600; background: rgba(245,158,11,0.1);
  color: #f59e0b; border: 1px solid rgba(245,158,11,0.15);
}

.host-main {
  background: #161d30; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.empty-board { text-align: center; }
.empty-board-icon { color: #64748b; margin-bottom: 1rem; opacity: 0.3; }
.empty-board h3 { font-size: 1.1rem; font-weight: 600; color: #94a3b8; margin-bottom: 0.35rem; }
.empty-board p { font-size: 0.82rem; color: #64748b; }

/* ===== PLAYER LOBBY ===== */
.player-lobby-container { text-align: center; max-width: 480px; }
.logo-small {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem; box-shadow: 0 4px 20px rgba(239,68,68,0.3);
}
.logo-small span { font-size: 1.3rem; font-weight: 900; color: white; }
.player-lobby-container h2 { font-size: 1.3rem; color: #94a3b8; margin-bottom: 1rem; }
.lobby-code-box {
  margin-bottom: 2rem; padding: 2rem 1.5rem; background: #161d30;
  border: 2px solid rgba(251,191,36,0.3); border-radius: 20px;
  box-shadow: 0 0 40px rgba(251,191,36,0.1);
}
.code-label { display: block; font-size: 0.75rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 0.5rem; }
.code-value { display: block; font-size: clamp(3.5rem, 12vw, 8rem); font-weight: 900; color: #fbbf24; letter-spacing: 0.1em; font-family: monospace; line-height: 1.1; text-shadow: 0 0 30px rgba(251,191,36,0.3); }

/* ===== BOMBPARTY PLAYING SCREEN ===== */
.bp-play-container {
  width: 100%; max-width: 800px; height: 100%; display: flex;
  flex-direction: column; gap: 0.75rem;
}

/* Top bar */
.bp-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 0.5rem; flex-shrink: 0;
}
.bp-game-title { display: flex; align-items: center; gap: 0.4rem; }
.bp-icon { font-size: 1.5rem; }
.bp-game-title h2 { font-size: 1.1rem; font-weight: 800; color: #f1f5f9; }
.bp-round-info {
  font-size: 0.85rem; font-weight: 700; color: #94a3b8;
  background: rgba(255,255,255,0.04); padding: 0.25rem 0.75rem;
  border-radius: 8px;
}

/* Player grid — each player card with name + lives */
.bp-player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
  flex-shrink: 0;
}
.bp-player-card {
  background: #161d30;
  border: 2px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  transition: all 0.3s ease;
}
.bp-player-card.eliminated {
  opacity: 0.3;
  border-color: rgba(255,255,255,0.03);
}
.bp-player-card.is-current-turn {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239,68,68,0.3), 0 0 40px rgba(239,68,68,0.1);
  animation: cardPulse 1.5s ease-in-out infinite;
}
@keyframes cardPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(239,68,68,0.3), 0 0 40px rgba(239,68,68,0.1); }
  50% { box-shadow: 0 0 30px rgba(239,68,68,0.5), 0 0 60px rgba(239,68,68,0.2); }
}
.bp-player-card .bp-card-name {
  font-size: 0.85rem; font-weight: 700; color: #f1f5f9;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%; text-align: center;
}
.bp-player-card .bp-card-lives {
  display: flex; gap: 2px; font-size: 1rem;
}
.bp-player-card .bp-card-lives .bp-heart {
  transition: all 0.3s;
}
.bp-player-card .bp-card-lives .bp-heart.alive { color: #ef4444; }
.bp-player-card .bp-card-lives .bp-heart.lost { color: #334155; opacity: 0.4; }
.bp-player-card .bp-card-label {
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: #64748b;
}
.bp-player-card.is-current-turn .bp-card-label {
  color: #ef4444;
}

.bp-game-area {
  flex: 1; background: #161d30; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 1.5rem;
  gap: 1.25rem;
  position: relative; overflow: hidden;
  transition: background 0.4s ease, border-color 0.4s ease;
}
/* Inner box turns warm red when it's your turn */
body.turn-active-screen .bp-game-area {
  background: #1f0f0f;
  border-color: rgba(239,68,68,0.25);
}

.bp-combo-display { text-align: center; }
.bp-combo-label {
  display: block; font-size: 0.8rem; color: #94a3b8; margin-bottom: 0.35rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.bp-combo-text {
  font-size: 3rem; font-weight: 900; color: #fbbf24; letter-spacing: 0.15em;
  text-shadow: 0 0 30px rgba(251,191,36,0.3);
}

/* Bomb center section */
.bp-bomb-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; }
.bp-bomb-holder-label {
  font-size: 0.7rem; font-weight: 600; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.bp-bomb-holder-name {
  font-size: 1.4rem; font-weight: 800; color: #f1f5f9;
  min-height: 1.8rem;
}
.bp-bomb-emoji-big {
  font-size: 2.5rem;
  animation: pulse 1s infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.2)} }

.bp-countdown-big {
  font-size: 3.5rem; font-weight: 900; color: #ef4444;
  letter-spacing: 0.05em;
  text-shadow: 0 0 30px rgba(239,68,68,0.4);
  line-height: 1;
  min-width: 120px;
}
.bp-countdown-big.urgent {
  color: #ff0000;
  animation: countdownFlash 0.5s ease-in-out infinite;
}
@keyframes countdownFlash {
  0%, 100% { opacity: 1; } 50% { opacity: 0.5; }
}

.bp-timer-container { width: 80%; max-width: 350px; height: 10px; background: rgba(255,255,255,0.06); border-radius: 5px; overflow: hidden; }
.bp-timer-bar {
  height: 100%; width: 0%; background: linear-gradient(90deg, #ef4444, #fbbf24, #10b981);
  border-radius: 5px; transition: width 0.1s linear;
}
.bp-timer-bar.active { display: block; }

.bp-word-input-area { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.bp-word-form { display: flex; gap: 0.5rem; width: 100%; max-width: 400px; }
.bp-word-input {
  flex: 1; padding: 0.7rem 1rem; background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.1); border-radius: 10px;
  color: #f1f5f9; font-size: 1rem; font-weight: 600; font-family: inherit;
  outline: none; text-align: center; text-transform: uppercase; letter-spacing: 0.05em;
  transition: border-color 0.2s;
}
.bp-word-input:focus { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.15); }
.bp-word-input:disabled { opacity: 0.3; cursor: not-allowed; }
.bp-submit-btn {
  padding: 0.7rem 1.25rem; background: linear-gradient(135deg, #ef4444, #dc2626);
  border: none; border-radius: 10px; color: white; font-size: 0.85rem; font-weight: 800;
  font-family: inherit; cursor: pointer; transition: all 0.2s;
}
.bp-submit-btn:hover:not(:disabled) { transform: scale(1.05); box-shadow: 0 4px 15px rgba(239,68,68,0.3); }
.bp-submit-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.bp-recent-words { text-align: center; margin-top: 0.25rem; }
.bp-recent-label { font-size: 0.65rem; color: #64748b; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.2rem; }
.bp-words-list { display: flex; gap: 0.25rem; flex-wrap: wrap; justify-content: center; max-width: 350px; }
.bp-used-word {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px; padding: 0.2rem 0.45rem; font-size: 0.7rem;
  color: #94a3b8; font-weight: 600;
}

.bp-explosion-overlay {
  position: absolute; inset: 0; background: rgba(239,68,68,0.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; animation: explodeFlash 0.5s ease; z-index: 10;
}
@keyframes explodeFlash { 0%{background:rgba(239,68,68,0.5)} 100%{background:rgba(239,68,68,0.15)} }

.bp-explosion-text { font-size: 2.5rem; font-weight: 900; color: #ef4444; text-shadow: 0 0 40px rgba(239,68,68,0.6); }
.bp-explosion-player { font-size: 1rem; color: #f1f5f9; font-weight: 700; }

/* ===== HOST GAME AREA ===== */
.bp-host-game-area {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.5rem; padding: 2rem;
}
.bp-host-combo-display { text-align: center; }
.bp-host-combo-label {
  display: block; font-size: 0.85rem; color: #94a3b8; margin-bottom: 0.5rem;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.bp-host-combo-text {
  font-size: 3.5rem; font-weight: 900; color: #fbbf24; letter-spacing: 0.15em;
  text-shadow: 0 0 30px rgba(251,191,36,0.3);
}
.bp-host-timer-container { width: 80%; max-width: 400px; height: 12px; background: rgba(255,255,255,0.06); border-radius: 6px; overflow: hidden; }
/* Host timer bar always visible during game */
.bp-host-game-area .bp-timer-bar {
  display: block;
}
.bp-host-bomb-info { text-align: center; }
.bp-host-bomb-status {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-size: 1.1rem; font-weight: 700; color: #f1f5f9; margin-bottom: 0.5rem;
}
.bp-host-lives-display { display: flex; gap: 0.25rem; justify-content: center; flex-wrap: wrap; }
.bp-host-player-scores {
  display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center;
  width: 100%; max-width: 400px;
}
.bp-host-recent-words { text-align: center; margin-top: 1rem; }

.bp-host-controls { display: flex; gap: 0.5rem; justify-content: center; flex-shrink: 0; }
.bp-host-btn {
  padding: 0.5rem 1rem; background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3); border-radius: 8px;
  color: #a78bfa; font-size: 0.8rem; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all 0.2s;
}
.bp-host-btn:hover { background: rgba(139,92,246,0.25); }
.bp-host-btn-danger { border-color: rgba(239,68,68,0.3); color: #f43f5e; background: rgba(239,68,68,0.1); }
.bp-host-btn-danger:hover { background: rgba(239,68,68,0.2); }

/* ===== BOMBPARTY GAME OVER ===== */
.bp-gameover-container { text-align: center; max-width: 520px; }
.bp-trophy { font-size: 4rem; margin-bottom: 0.75rem; }
.bp-gameover-container h2 {
  font-size: 1.8rem; font-weight: 800; margin-bottom: 2rem;
  background: linear-gradient(135deg, #ef4444, #fbbf24);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.bp-scoreboard-list { list-style: none; margin-bottom: 2rem; }
.bp-scoreboard-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem 1.25rem; background: #161d30; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; margin-bottom: 0.4rem; font-size: 1rem;
}
.bp-scoreboard-list li:first-child { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.05); }
.bp-round-info { font-size: 0.75rem; color: #64748b; }
.bp-survival-score { border-color: rgba(239,68,68,0.3) !important; background: rgba(239,68,68,0.08) !important; }
.bp-survival-score .bp-round-info { color: #fca5a5 !important; font-size: 1.1rem !important; font-weight: 700; }

/* ===== NAME PROMPT MODAL ===== */
.bp-name-prompt-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex;
  align-items: center; justify-content: center; z-index: 2000;
}
.bp-name-prompt-box {
  background: #161d30; border: 1px solid rgba(255,255,255,0.1); border-radius: 16px;
  padding: 2rem; text-align: center; width: 340px;
}
.bp-name-prompt-box h3 {
  font-size: 1.2rem; font-weight: 700; color: #f1f5f9; margin-bottom: 1rem;
}
.bp-name-prompt-box input {
  width: 100%; padding: 0.7rem 1rem; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  color: #f1f5f9; font-size: 1rem; font-family: inherit; outline: none;
  margin-bottom: 1rem; text-align: center; text-transform: uppercase;
}
.bp-name-prompt-box input:focus { border-color: #ef4444; }
.bp-name-prompt-actions { display: flex; gap: 0.75rem; justify-content: center; }
.bp-name-prompt-actions .btn { min-width: 100px; }
.btn-secondary { background: rgba(255,255,255,0.06); color: #94a3b8; border: 1px solid rgba(255,255,255,0.1); }
.btn-secondary:hover { background: rgba(255,255,255,0.1); }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; background: #161d30;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  padding: 0.85rem 1.25rem; font-size: 0.9rem; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  z-index: 1000; max-width: 320px;
}
.toast.error { border-color: rgba(244,63,94,0.3); color: #f43f5e; }
.toast.success { border-color: rgba(16,185,129,0.3); color: #10b981; }
.toast.warning { border-color: rgba(251,191,36,0.3); color: #fbbf24; }

/* ===== BACK LINK ===== */
.back-link {
  display: inline-block; margin-top: 1.5rem; color: #64748b; font-size: 0.85rem;
  text-decoration: none; transition: color 0.2s;
}
.back-link:hover { color: #fca5a5; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .screen { padding: 0.75rem; }
  .game-select-header h1 { font-size: 1.6rem; }
  .bp-combo-text { font-size: 2.2rem; }
  .bp-countdown-big { font-size: 2.5rem; }
  .bp-game-area { padding: 1rem; gap: 1rem; }
  .bp-word-form { max-width: 100%; }
  .bp-topbar { flex-direction: column; gap: 0.25rem; }
  .bp-player-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.4rem; }
  .bp-player-card { padding: 0.4rem 0.5rem; }
  .bp-player-card .bp-card-name { font-size: 0.75rem; }
  .bp-player-card .bp-card-lives { font-size: 0.85rem; }
  .bp-bomb-holder-name { font-size: 1.2rem; }
  .bp-bomb-emoji-big { font-size: 2rem; }
}

/* ===== ANIMATION ===== */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.screen.active > * { animation: fadeIn 0.4s ease forwards; }
