@import url('https://fonts.googleapis.com/css2?family=Bangers&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --gold: #f5a623;
  --gold-dark: #c8841a;
  --red: #e53935;
  --cream: #fff8ee;
  --dark-brown: #1a0a00;
  --medium-brown: #3d1c00;
  --light-brown: #7a3b00;
  --green: #2d6a2d;
  --panel-bg: rgba(30, 12, 0, 0.85);
  --border-glow: 0 0 20px rgba(245, 166, 35, 0.4);
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, #1a0a00 0%, #2d1200 50%, #1a0a00 100%);
  min-height: 100vh;
  color: var(--cream);
  overflow-y: auto;
  overflow-x: hidden;
}

body::-webkit-scrollbar { display: none; }
body { scrollbar-width: none; }

.steam-bg {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

.steam {
  position: fixed;
  font-size: 2rem;
  opacity: 0.07;
  animation: steamRise 4s ease-in-out infinite;
  color: var(--gold);
}

.s1 { bottom: 0; left: 10%; animation-delay: 0s; font-size: 3rem; }
.s2 { bottom: 0; left: 30%; animation-delay: 1s; font-size: 2rem; }
.s3 { bottom: 0; left: 60%; animation-delay: 2s; font-size: 4rem; }
.s4 { bottom: 0; left: 80%; animation-delay: 0.5s; font-size: 2.5rem; }

@keyframes steamRise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  30% { opacity: 0.08; }
  100% { transform: translateY(-80vh) scale(2); opacity: 0; }
}

.floating-emojis {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.float-emoji {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.06;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(110vh) rotate(0deg); opacity: 0.06; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

.host-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  background: linear-gradient(90deg, var(--dark-brown), var(--medium-brown), var(--dark-brown));
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 30px rgba(245, 166, 35, 0.3);
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-icon {
  font-size: 2.4rem;
  animation: wobble 3s ease-in-out infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-title {
  font-family: 'Bangers', cursive;
  font-size: 2.4rem;
  color: var(--gold);
  letter-spacing: 4px;
  text-shadow: 2px 2px 0 var(--dark-brown), 0 0 20px rgba(245,166,35,0.5);
}

.logo-sub {
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  color: var(--red);
  letter-spacing: 6px;
}

.logo-credit {
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: rgba(255,248,238,0.45);
  vertical-align: middle;
  margin-left: 6px;
  text-transform: none;
}

.header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.timer-display {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--dark-brown);
  border: 2px solid var(--gold);
  border-radius: 50px;
  padding: 10px 24px;
  box-shadow: var(--border-glow);
}

.ingame-vol-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 50px;
  padding: 6px 14px;
}

.ingame-vol-icon { font-size: 1rem; line-height: 1; }

.ingame-vol-slider {
  width: 80px;
  height: 4px;
  accent-color: var(--gold);
  cursor: pointer;
}

.ingame-vol-pct {
  font-family: 'Bangers', cursive;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 1px;
  min-width: 32px;
  text-align: right;
}


.timer-icon { font-size: 1.6rem; }

#timerValue {
  font-family: 'Bangers', cursive;
  font-size: 2.8rem;
  color: var(--gold);
  min-width: 60px;
  text-align: center;
  transition: color 0.3s;
}

#timerValue.urgent { color: var(--red); animation: pulse 0.5s ease infinite; }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.host-main {
  position: relative;
  z-index: 5;
}

.screen {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 16px 40px;
  animation: screenIn 0.5s ease;
  box-sizing: border-box;
}

#screenRound {
  padding: 0;
  align-items: stretch;
  min-height: calc(100vh - 70px);
  height: auto;
}

.screen.hidden { display: none; }
.hidden { display: none !important; }

@keyframes screenIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.lobby-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1200px;
  gap: 20px;
}

.lobby-header {
  text-align: center;
  padding: 10px 0 0;
}

.lobby-game-title {
  font-family: 'Bangers', cursive;
  font-size: 3.2rem;
  color: var(--gold);
  letter-spacing: 4px;
  text-shadow: 0 0 30px rgba(245,166,35,0.6), 2px 2px 0 rgba(0,0,0,0.4);
  margin: 0;
}

.lobby-subtitle {
  color: rgba(255,248,238,0.55);
  font-size: 1rem;
  margin: 4px 0 0;
}

.lobby-columns {
  display: grid;
  grid-template-columns: 320px 1fr 280px;
  gap: 20px;
  align-items: start;
}

.lobby-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lobby-panel {
  background: var(--panel-bg);
  border: 2px solid rgba(212,175,55,0.35);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lobby-panel-label {
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  letter-spacing: 2px;
  color: rgba(255,248,238,0.45);
  text-align: center;
  border-bottom: 1px solid rgba(212,175,55,0.2);
  width: 100%;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-toggle-qr {
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.35);
  border-radius: 6px;
  color: var(--gold);
  font-family: 'Bangers', cursive;
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  align-self: center;
}
.btn-toggle-qr:hover { background: rgba(245,166,35,0.25); border-color: var(--gold); }

.player-count-badge {
  color: var(--gold);
  font-size: 1.1rem;
}

.lobby-panel-players {
  align-items: flex-start;
  min-height: 200px;
}

.lobby-panel-settings {
  align-items: stretch;
}

.vol-slider {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 6px;
  border-radius: 4px;
  background: rgba(245,166,35,0.25);
  outline: none;
  cursor: pointer;
}
.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(245,166,35,0.6);
}
.vol-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  border: none;
}
.vol-value {
  min-width: 36px;
  text-align: right;
  font-size: 0.9rem;
}



.lobby-start-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}


.qr-container {
  background: var(--cream);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 0 40px rgba(245,166,35,0.4), var(--border-glow);
  border: 4px solid var(--gold);
  animation: qrPulse 3s ease-in-out infinite;
}

@keyframes qrPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(245,166,35,0.4); }
  50% { box-shadow: 0 0 50px rgba(245,166,35,0.8), 0 0 80px rgba(245,166,35,0.3); }
}

.qr-container img { display: block; border-radius: 12px; }
.qr-loading { padding: 80px 40px; color: var(--dark-brown); font-weight: 700; }

.join-url {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
  background: var(--panel-bg);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--gold);
  word-break: break-all;
  text-align: center;
}

.btn-copy-link {
  margin-top: 8px;
  padding: 8px 20px;
  background: var(--gold);
  color: #1a1005;
  border: none;
  border-radius: 8px;
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  width: 100%;
}
.btn-copy-link:hover { background: #ffe066; transform: scale(1.03); }
.btn-copy-link:active { transform: scale(0.97); }

.lobby-hint {
  color: rgba(255,248,238,0.6);
  font-size: 0.9rem;
  text-align: center;
}

.btn-how-to-play {
  margin-top: 10px;
  padding: 7px 18px;
  background: transparent;
  color: rgba(255,248,238,0.6);
  border: 1px solid rgba(255,248,238,0.25);
  border-radius: 8px;
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  letter-spacing: 1px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  width: 100%;
}
.btn-how-to-play { display: none; }
.btn-close-htp { display: none; }

.how-to-play-panel {
  width: 100%;
}
.htp-inner {
  background: var(--panel-bg);
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 30px 36px;
  box-shadow: var(--border-glow);
}
.htp-title {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  letter-spacing: 2px;
  color: var(--gold);
  text-align: center;
  margin: 0 0 24px;
}
.htp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.htp-card {
  background: var(--dark-brown);
  border: 1px solid rgba(212,175,55,0.3);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
}
.htp-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.htp-card h3 {
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: var(--gold);
  margin: 0 0 8px;
}
.htp-card p {
  font-size: 0.85rem;
  color: rgba(255,248,238,0.75);
  line-height: 1.5;
  margin: 0;
}

.htp-card-credit {
  border-color: rgba(212,175,55,0.5);
  background: rgba(212,175,55,0.08);
}

.htp-credit-link {
  margin-top: 8px !important;
  font-size: 0.82rem !important;
}

.htp-credit-link a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
}

.htp-credit-link a:hover { text-decoration: underline; }
.btn-close-htp {
  display: none;
}

.room-code-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--dark-brown);
  border: 3px solid var(--gold);
  border-radius: 16px;
  padding: 10px 28px;
  box-shadow: 0 0 24px rgba(245,166,35,0.35), var(--border-glow);
}

.room-code-label {
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: rgba(245,166,35,0.7);
  text-transform: uppercase;
}

.room-code-value {
  font-family: 'Bangers', cursive;
  font-size: 3.2rem;
  color: var(--gold);
  letter-spacing: 10px;
  text-shadow: 0 0 20px rgba(245,166,35,0.6);
}

.lobby-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.waiting-title {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  color: var(--cream);
  letter-spacing: 2px;
}

.waiting-title span {
  color: var(--gold);
  font-size: 2.4rem;
}

.player-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  overflow-y: auto;
  padding-right: 4px;
  align-content: flex-start;
}

.player-card {
  background: var(--panel-bg);
  border: 2px solid rgba(245, 166, 35, 0.3);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
  animation: cardSlide 0.4s ease;
  transition: border-color 0.3s;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: auto;
  position: relative;
}

.player-card:hover { border-color: var(--gold); }

.btn-kick {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(200, 40, 40, 0.85);
  border: none;
  color: #fff;
  font-size: 0.65rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: background 0.15s;
  z-index: 10;
  padding: 0;
}
.btn-kick:hover { background: rgba(220, 30, 30, 1); }

@keyframes cardSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.pc-avatar {
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}
.pc-name { font-size: 0.82rem; font-weight: 700; margin-top: 5px; color: var(--cream); max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.btn-start {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  letter-spacing: 3px;
  color: var(--dark-brown);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none;
  border-radius: 16px;
  padding: 18px 40px;
  cursor: pointer;
  box-shadow: 0 6px 30px rgba(245,166,35,0.4), 0 3px 0 var(--gold-dark);
  transition: all 0.2s;
}

.btn-start:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(245,166,35,0.6), 0 3px 0 var(--gold-dark);
}

.btn-start:active:not(:disabled) { transform: translateY(1px); }
.btn-start:disabled { opacity: 0.4; cursor: not-allowed; animation: none; }

.btn-start:not(:disabled) {
  animation: startPulse 1.6s ease-in-out infinite;
}

@keyframes startPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(245,166,35,0.4), 0 0 0 0 rgba(245,166,35,0.45); }
  50% { box-shadow: 0 4px 20px rgba(245,166,35,0.7), 0 0 0 12px rgba(245,166,35,0); }
}

.start-hint { display: none; }


.dish-reveal-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 700px;
  margin-top: 20px;
}

.reveal-label {
  font-size: 1.4rem;
  color: rgba(255,248,238,0.7);
  font-weight: 600;
  letter-spacing: 2px;
}

.dish-card {
  background: var(--panel-bg);
  border: 3px solid var(--gold);
  border-radius: 28px;
  padding: 30px 40px;
  width: 100%;
  max-width: 580px;
  box-sizing: border-box;
  box-shadow: 0 0 60px rgba(245,166,35,0.3);
}

@keyframes dishReveal {
  from { transform: scale(0.3) rotate(-10deg); opacity: 0; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}

.dish-emoji { font-size: clamp(4rem, 8vw, 7rem); display: block; margin-bottom: 16px; animation: spin 0.8s ease; }

@keyframes spin {
  from { transform: rotate(-20deg) scale(0.5); }
  to { transform: rotate(0) scale(1); }
}

.dish-name {
  font-family: 'Bangers', cursive;
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--gold);
  letter-spacing: 4px;
  text-shadow: 0 0 30px rgba(245,166,35,0.6);
}

.dish-desc {
  font-size: 1.1rem;
  color: rgba(255,248,238,0.7);
  max-width: 500px;
  margin: 12px auto 0;
  line-height: 1.6;
}


.round-layout {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.round-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--panel-bg);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 16px 28px;
  box-shadow: var(--border-glow);
}

.round-phase-badge {
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  color: var(--gold);
  letter-spacing: 2px;
  background: rgba(245,166,35,0.15);
  padding: 6px 20px;
  border-radius: 50px;
  border: 2px solid rgba(245,166,35,0.4);
}

.dish-mini {
  font-size: 1.4rem;
  font-weight: 700;
  gap: 8px;
  display: flex;
  align-items: center;
}

.submissions-counter {
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 700;
}

.round-players {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 16px;
}

.round-player-card {
  background: var(--panel-bg);
  border: 2px solid rgba(245,166,35,0.25);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.round-player-card.submitted {
  border-color: var(--green);
  background: rgba(45, 106, 45, 0.15);
}

.round-player-card.submitted::after {
  content: '✅';
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.4rem;
}

.rpc-avatar { font-size: 3rem; display: block; }
.rpc-name { font-weight: 800; font-size: 1rem; margin: 8px 0 4px; }
.rpc-score {
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  color: var(--gold);
  letter-spacing: 1px;
}

.results-wrap {
  width: 100%;
  max-width: 860px;
  text-align: center;
  padding-bottom: 20px;
}

.results-title {
  font-family: 'Bangers', cursive;
  font-size: 3rem;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--panel-bg);
  border: 2px solid rgba(245,166,35,0.3);
  border-radius: 16px;
  padding: 16px 24px;
  animation: slideRight 0.4s ease;
}

.result-row.top { border-color: var(--gold); background: rgba(245,166,35,0.1); }

.result-row.elim-row {
  background: rgba(229,57,53,0.15);
  border: 2px solid rgba(229,57,53,0.5);
  animation: resultSlideIn 0.5s ease both, elimShake 0.5s ease 1.2s both;
}
.result-row.elim-row .result-rank { color: var(--red); }
.result-row.elim-row .result-name { color: rgba(255,248,238,0.5); text-decoration: line-through; }

@keyframes elimShake {
  0%, 100% { transform: translateX(0); }
  20%  { transform: translateX(-8px); }
  40%  { transform: translateX(8px); }
  60%  { transform: translateX(-5px); }
  80%  { transform: translateX(5px); }
}

@keyframes slideRight {
  from { transform: translateX(-30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.result-rank {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  color: var(--gold);
  width: 40px;
  text-align: center;
}

.result-avatar { font-size: 2.4rem; }
.result-name { font-weight: 800; font-size: 1.1rem; flex: 1; text-align: left; }
.result-detail { color: rgba(255,248,238,0.6); font-size: 0.9rem; }
.result-score {
  font-family: 'Bangers', cursive;
  font-size: 1.8rem;
  color: var(--gold);
  letter-spacing: 1px;
}

.result-total {
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  color: rgba(255,248,238,0.5);
  letter-spacing: 1px;
}


.elim-wrap {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* ═══════════════════════════════════════
   JUDGING CUT-SCENE
═══════════════════════════════════════ */

#screenJudging {
  position: relative;
  overflow: hidden;
}

.judging-scene {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 35% 45%, #0a0a18 0%, #04040c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.judging-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.3;
  mix-blend-mode: overlay;
  animation: grainShift 0.12s steps(1) infinite;
}

.judging-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.8) 100%);
}

.judging-broadcast-tag {
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}

.judging-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px var(--gold);
  animation: bugBlink 1.5s ease-in-out infinite;
}

.judging-stage {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
  padding: 0 clamp(20px, 4vw, 50px);
  width: 100%;
  max-width: 980px;
}

.judging-plate-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  animation: judgePlateDrop 0.7s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes judgePlateDrop {
  from { transform: scale(0.5) translateY(-40px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

.judging-chef-name {
  font-family: 'Bangers', cursive;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  letter-spacing: 3px;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(245,166,35,0.5);
  text-align: center;
}

.judging-plate-wrap {
  position: relative;
}

.judging-plate {
  width: clamp(140px, 20vw, 200px);
  height: clamp(140px, 20vw, 200px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f8f2e0, #e8dfc0, #d4c9a8);
  border: 6px solid #c8b888;
  position: relative;
  overflow: visible;
  box-shadow:
    0 0 60px rgba(245,166,35,0.35),
    0 0 120px rgba(245,166,35,0.15),
    0 8px 32px rgba(0,0,0,0.8);
  animation: judgePlateGlow 2s ease-in-out infinite alternate;
}

@keyframes judgePlateGlow {
  from { box-shadow: 0 0 40px rgba(245,166,35,0.3), 0 8px 32px rgba(0,0,0,0.8); }
  to   { box-shadow: 0 0 80px rgba(245,166,35,0.6), 0 0 140px rgba(245,166,35,0.2), 0 8px 32px rgba(0,0,0,0.8); }
}

.judging-plate-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.judging-plate-items {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.judging-plate-item {
  position: absolute;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.judging-dish-label {
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(255,248,238,0.45);
  text-transform: uppercase;
}

.judging-scores-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: judgeScoresIn 0.6s 0.3s both;
}

@keyframes judgeScoresIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.judging-label-top {
  font-family: 'Bangers', cursive;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 4px;
}

.judging-score-row {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s, transform 0.5s;
}

.judging-score-row.revealed {
  opacity: 1;
  transform: translateX(0);
}

.jscore-category {
  display: flex;
  align-items: center;
  gap: 6px;
  width: clamp(110px, 15vw, 150px);
  flex-shrink: 0;
}

.jscore-icon { font-size: 1.2rem; }

.jscore-name {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(0.75rem, 1.4vw, 0.95rem);
  font-weight: 800;
  color: rgba(255,248,238,0.8);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.jscore-bar-wrap {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 5px;
  overflow: hidden;
}

.jscore-bar {
  height: 100%;
  width: 0;
  border-radius: 5px;
  transition: width 1s cubic-bezier(0.34,1.1,0.64,1);
}

.jscore-bar.ing  { background: linear-gradient(90deg, #ff8f00, #ffca28); }
.jscore-bar.taste { background: linear-gradient(90deg, #e53935, #ff6659); }
.jscore-bar.plat  { background: linear-gradient(90deg, #1565c0, #42a5f5); }

.jscore-num {
  font-family: 'Bangers', cursive;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  color: var(--gold);
  min-width: 44px;
  text-align: right;
  letter-spacing: 1px;
}

.jscore-comment {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(0.68rem, 1.2vw, 0.82rem);
  font-style: italic;
  color: rgba(255,248,238,0.55);
  padding-left: clamp(110px, 15vw, 150px);
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 0.4s 0.6s;
}

.jscore-comment.revealed { opacity: 1; }

.judging-total-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  padding: 10px 16px;
  background: rgba(245,166,35,0.1);
  border: 2px solid rgba(245,166,35,0.3);
  border-radius: 12px;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.5s, transform 0.5s;
}

.judging-total-wrap.revealed {
  opacity: 1;
  transform: scale(1);
}

.judging-total-label {
  font-family: 'Bangers', cursive;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  letter-spacing: 3px;
  color: rgba(255,248,238,0.7);
}

.judging-total-num {
  font-family: 'Bangers', cursive;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold);
  text-shadow: 0 0 20px rgba(245,166,35,0.6);
  letter-spacing: 2px;
}

.judging-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(245,166,35,0.1);
}

.judging-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), #ffca28);
  transform-origin: left;
}

/* ═══════════════════════════════════════
   ELIMINATION CUT-SCENE
═══════════════════════════════════════ */

#screenElimination {
  position: relative;
  overflow: hidden;
}

.elim-scene {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 40% 40%, #1c0505 0%, #080202 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.elim-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.35;
  mix-blend-mode: overlay;
  animation: grainShift 0.12s steps(1) infinite;
}

@keyframes grainShift {
  0%   { background-position: 0 0; }
  25%  { background-position: -5px 10px; }
  50%  { background-position: 10px -5px; }
  75%  { background-position: -10px -8px; }
  100% { background-position: 5px 5px; }
}

.elim-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.75) 100%);
}

.elim-interview-tag {
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  animation: elimFadeIn 1s 0.5s both;
}

.elim-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 6px #e53935;
  animation: bugBlink 2s ease-in-out infinite;
}

.elim-stage {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: 0 clamp(20px, 5vw, 60px);
  width: 100%;
  max-width: 900px;
  animation: elimFadeIn 0.7s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes elimFadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.elim-avatar-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.elim-avatar-circle {
  width: clamp(100px, 15vw, 150px);
  height: clamp(100px, 15vw, 150px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(3rem, 6vw, 5rem);
  border: 4px solid var(--red);
  box-shadow: 0 0 50px rgba(229,57,53,0.5), 0 0 100px rgba(229,57,53,0.2);
  animation: elimAvatarIn 0.8s cubic-bezier(0.34,1.56,0.64,1) 0.2s both;
  position: relative;
}

.elim-avatar-circle::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(229,57,53,0.3);
  animation: elimPing 2s ease-out infinite;
}

@keyframes elimPing {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.3); opacity: 0; }
}

@keyframes elimAvatarIn {
  from { transform: scale(0) rotate(-15deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);  opacity: 1; }
}

.elim-avatar-shadow {
  width: 70%;
  height: 8px;
  background: radial-gradient(ellipse, rgba(229,57,53,0.4) 0%, transparent 70%);
  border-radius: 50%;
}

.elim-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.elim-pack-line {
  display: flex;
  align-items: center;
  gap: 10px;
  animation: elimFadeIn 0.5s 0.3s both;
}

.elim-knife {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 6px rgba(229,57,53,0.7));
}

.elim-pack-text {
  font-family: 'Bangers', cursive;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 4px;
  color: var(--red);
  text-shadow: 0 0 20px rgba(229,57,53,0.6);
}

.elim-name {
  font-family: 'Bangers', cursive;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 30px rgba(229,57,53,0.4), 0 3px 8px rgba(0,0,0,0.9);
  line-height: 1;
  animation: elimNameIn 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.4s both;
}

@keyframes elimNameIn {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.elim-quote-card {
  background: rgba(255,255,255,0.05);
  border-left: 4px solid var(--red);
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  max-width: 480px;
  animation: elimFadeIn 0.6s 0.7s both;
  position: relative;
}

.elim-quote-mark {
  font-family: 'Bangers', cursive;
  font-size: 2.2rem;
  color: var(--red);
  line-height: 0;
  position: relative;
  top: 10px;
  opacity: 0.7;
}

.elim-quote-mark.closing {
  top: 14px;
}

.elim-quote-text {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-weight: 700;
  font-style: italic;
  color: rgba(255,248,238,0.88);
  line-height: 1.5;
}

.elim-reaction {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  letter-spacing: 6px;
  animation: elimFadeIn 0.5s 1s both;
}

.elim-lower-strip {
  position: absolute;
  bottom: 52px;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  justify-content: center;
  animation: elimFadeIn 0.6s 1.2s both;
}

.elim-strip-label {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(0.65rem, 1.3vw, 0.82rem);
  font-weight: 800;
  letter-spacing: 3px;
  color: rgba(255,248,238,0.35);
  text-transform: uppercase;
}

.elim-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: rgba(229,57,53,0.15);
}

.elim-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #e53935, #ff6659);
  transform-origin: left;
  animation: drainBar 10s linear forwards;
}

@keyframes drainBar {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

@keyframes cardEntrance {
  from { transform: scale(0.6) rotate(-4deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}


.winner-wrap {
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 680px;
  padding-bottom: 30px;
}

.confetti-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  to { transform: translateY(110vh) rotate(720deg); }
}

.winner-crown {
  font-size: 5rem;
  animation: crownBounce 0.8s ease;
}

@keyframes crownBounce {
  0% { transform: translateY(-50px); opacity: 0; }
  60% { transform: translateY(10px); }
  100% { transform: translateY(0); opacity: 1; }
}

.winner-title {
  font-family: 'Bangers', cursive;
  font-size: 5rem;
  color: var(--gold);
  letter-spacing: 8px;
  text-shadow: 0 0 40px rgba(245,166,35,0.8), 3px 3px 0 var(--dark-brown);
  animation: glitter 1s ease infinite alternate;
}

@keyframes glitter {
  from { text-shadow: 0 0 20px rgba(245,166,35,0.8); }
  to { text-shadow: 0 0 60px rgba(245,166,35,1), 0 0 100px rgba(245,166,35,0.5); }
}

.winner-avatar-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  box-shadow: 0 0 0 6px var(--gold), 0 8px 30px rgba(0,0,0,0.6);
  animation: winnerPop 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes winnerPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.winner-name { font-size: 2.5rem; font-weight: 900; color: var(--cream); }
.winner-score { font-size: 1.4rem; color: var(--gold); }

.final-lb-heading {
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  letter-spacing: 3px;
  color: var(--gold);
  margin: 0;
}

.final-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 560px;
}

.final-lb-item {
  background: var(--panel-bg);
  border: 2px solid rgba(245,166,35,0.25);
  border-radius: 14px;
  padding: 10px 18px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s;
}

.final-lb-item.final-lb-winner {
  border-color: var(--gold);
  background: rgba(245,166,35,0.12);
  box-shadow: 0 0 20px rgba(245,166,35,0.25);
}

.final-lb-rank { font-size: 1.4rem; min-width: 32px; text-align: center; }

.final-lb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.final-lb-name {
  flex: 1;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--cream);
  text-align: left;
}

.final-lb-score {
  font-family: 'Bangers', cursive;
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: var(--gold);
}

.btn-restart {
  font-family: 'Bangers', cursive;
  font-size: 1.6rem;
  letter-spacing: 2px;
  color: var(--dark-brown);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: none;
  border-radius: 16px;
  padding: 14px 36px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-restart:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245,166,35,0.5); }

::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

/* ═══════════════════════════════════════
   SETTINGS BUTTON
═══════════════════════════════════════ */

.btn-settings {
  background: rgba(245,166,35,0.12);
  border: 2px solid rgba(245,166,35,0.4);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-settings:hover {
  background: rgba(245,166,35,0.25);
  border-color: var(--gold);
  transform: rotate(30deg);
}

/* ═══════════════════════════════════════
   SETTINGS OVERLAY & MODAL
═══════════════════════════════════════ */

.settings-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.settings-overlay.hidden { display: none; }

.settings-modal {
  position: relative;
  background: linear-gradient(160deg, #2a0f00, #1a0a00);
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 36px 40px 32px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 40px rgba(245,166,35,0.15);
}

.settings-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: rgba(255,248,238,0.5);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.settings-close:hover { color: var(--cream); background: rgba(255,255,255,0.08); }

.settings-title {
  font-family: 'Bangers', cursive;
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 8px;
}

.settings-hint {
  font-size: 0.85rem;
  color: rgba(255,248,238,0.5);
  margin-bottom: 28px;
  line-height: 1.5;
}

.settings-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(245,166,35,0.12);
  width: 100%;
}
.settings-row:last-of-type { border-bottom: none; }

.settings-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  color: rgba(255,248,238,0.55);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.settings-icon { font-size: 1.4rem; }

.settings-control {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.sctrl-btn {
  background: rgba(245,166,35,0.15);
  border: 2px solid rgba(245,166,35,0.4);
  border-radius: 10px;
  color: var(--gold);
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
  font-weight: 700;
  line-height: 1;
}
.sctrl-btn:hover { background: rgba(245,166,35,0.3); border-color: var(--gold); }
.sctrl-btn:active { transform: scale(0.92); }

.sctrl-value {
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  color: var(--cream);
  min-width: 32px;
  text-align: center;
  letter-spacing: 1px;
}

.sctrl-unit {
  font-size: 0.78rem;
  color: rgba(255,248,238,0.45);
  width: 22px;
}

.settings-save {
  margin-top: 24px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border: none;
  border-radius: 14px;
  color: var(--dark-brown);
  font-family: 'Bangers', cursive;
  font-size: 1.3rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(245,166,35,0.4);
}
.settings-save:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245,166,35,0.5); }
.settings-save:active { transform: translateY(0); }

.settings-divider {
  border: none;
  border-top: 1px solid rgba(245,166,35,0.2);
  margin: 20px 0 16px;
}

.twitch-settings-row {
  background: rgba(145,70,255,0.07);
  border: 1px solid rgba(145,70,255,0.25);
  border-radius: 12px;
  padding: 12px 14px !important;
}

.settings-optional {
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: #bf94ff;
  letter-spacing: 0.5px;
  opacity: 0.8;
  text-transform: none;
  vertical-align: middle;
  margin-left: 4px;
}

.settings-desc {
  font-size: 0.75rem;
  color: rgba(255,248,238,0.55);
  line-height: 1.5;
  margin: 4px 0 10px;
}

.settings-desc strong { color: rgba(255,248,238,0.8); }

.htp-card-twitch {
  border-color: rgba(145,70,255,0.5);
  background: rgba(145,70,255,0.08);
}

.htp-card-twitch h3 { color: #bf94ff; }

.htp-twitch-votes {
  font-size: 0.78rem !important;
  color: rgba(255,248,238,0.6) !important;
  margin-top: 6px !important;
}

.htp-twitch-votes strong { color: #bf94ff; }

.twitch-connect-row {
  display: flex;
  gap: 6px;
  width: 100%;
}

.twitch-channel-input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(145,70,255,0.4);
  border-radius: 8px;
  color: var(--cream);
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  padding: 6px 10px;
  outline: none;
  min-width: 0;
}
.twitch-channel-input::placeholder { color: rgba(255,248,238,0.3); }
.twitch-channel-input:focus { border-color: rgba(145,70,255,0.8); }

.btn-twitch-connect {
  background: rgba(145,70,255,0.2);
  border: 1px solid rgba(145,70,255,0.5);
  border-radius: 8px;
  color: #bf94ff;
  font-family: 'Bangers', cursive;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-twitch-connect:hover { background: rgba(145,70,255,0.35); border-color: #bf94ff; }
.btn-twitch-connect.connected { background: rgba(50,200,100,0.2); border-color: rgba(50,200,100,0.6); color: #7dffb3; }

.twitch-status {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 2px;
  min-height: 16px;
  display: block;
}
.twitch-status.ok { color: #7dffb3; }
.twitch-status.err { color: var(--red); }
.twitch-status.connecting { color: rgba(255,248,238,0.5); }

/* ═══════════════════════════════════════
   TWITCH VOTE PANEL
═══════════════════════════════════════ */

.twitch-vote-panel {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9200;
  width: min(620px, 92vw);
  background: rgba(20, 8, 40, 0.97);
  border: 2px solid rgba(145,70,255,0.75);
  border-radius: 22px;
  padding: 20px 24px 16px;
  box-shadow: 0 0 50px rgba(145,70,255,0.45), 0 10px 40px rgba(0,0,0,0.7);
  animation: tvpSlideIn 0.45s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes tvpSlideIn {
  from { transform: translateX(-50%) translateY(50px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

.tvp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.tvp-twitch-icon { font-size: 1.4rem; }

.tvp-title {
  font-family: 'Bangers', cursive;
  font-size: 1.25rem;
  letter-spacing: 2px;
  color: #bf94ff;
  flex: 1;
  line-height: 1.2;
}

.tvp-timer {
  font-family: 'Bangers', cursive;
  font-size: 1.7rem;
  color: var(--gold);
  min-width: 36px;
  text-align: right;
}

.tvp-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 10px;
}

.tvp-option {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tvp-opt-num {
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  color: #bf94ff;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.tvp-opt-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--cream);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tvp-bar-wrap {
  width: 120px;
  flex-shrink: 0;
  height: 18px;
  background: rgba(255,255,255,0.08);
  border-radius: 9px;
  overflow: hidden;
  position: relative;
}

.tvp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(145,70,255,0.7), #bf94ff);
  border-radius: 9px;
  transition: width 0.3s ease;
  min-width: 0;
}

.tvp-bar-fill.leading {
  background: linear-gradient(90deg, rgba(245,166,35,0.8), var(--gold));
}

.tvp-opt-count {
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  color: rgba(255,248,238,0.6);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.tvp-total {
  font-size: 0.78rem;
  color: rgba(255,248,238,0.35);
  text-align: right;
  letter-spacing: 1px;
  font-weight: 700;
  text-transform: uppercase;
}



.settings-section-title {
  font-family: 'Bangers', cursive;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 4px;
}

.ai-diff-btns,
.ai-diff-row {
  display: flex;
  gap: 6px;
  width: 100%;
}

.ai-diff-btn {
  background: rgba(245,166,35,0.08);
  border: 2px solid rgba(245,166,35,0.25);
  border-radius: 10px;
  color: rgba(255,248,238,0.5);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-transform: uppercase;
  flex: 1;
}

.ai-diff-btn:hover { background: rgba(245,166,35,0.18); border-color: rgba(245,166,35,0.5); color: var(--cream); }

.ai-diff-btn.active {
  background: rgba(245,166,35,0.25);
  border-color: var(--gold);
  color: var(--gold);
}

.ai-badge {
  display: inline-block;
  background: rgba(100,180,255,0.15);
  border: 1px solid rgba(100,180,255,0.35);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #7ec8ff;
  letter-spacing: 1px;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 4px;
}


/* ═══════════════════════════════════════
   KITCHEN STAGE — ANIMATED ROUND SCREEN
═══════════════════════════════════════ */

.kitchen-layout {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: visible;
}

.kitchen-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px;
  background: linear-gradient(90deg, var(--dark-brown), var(--medium-brown), var(--dark-brown));
  border-bottom: 2px solid rgba(245,166,35,0.4);
  flex-shrink: 0;
  z-index: 10;
  position: relative;
}

.kitchen-floor {
  flex: 1;
  position: relative;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  min-height: 340px;
}

.kitchen-bg-tiles {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #0d0500 0%, #1a0800 40%, #2a1200 100%);
  z-index: 0;
}

.kitchen-bg-tiles::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(245,166,35,0.06) 59px,
      rgba(245,166,35,0.06) 60px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(245,166,35,0.06) 59px,
      rgba(245,166,35,0.06) 60px
    ),
    linear-gradient(180deg, #1a0800, #100500);
}

.kitchen-bg-tiles::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 65%;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 79px,
      rgba(245,166,35,0.04) 79px,
      rgba(245,166,35,0.04) 80px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 49px,
      rgba(245,166,35,0.04) 49px,
      rgba(245,166,35,0.04) 50px
    );
}

.kitchen-lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0 10%;
  z-index: 2;
  pointer-events: none;
}

.hanging-light {
  width: 2px;
  height: 60px;
  background: rgba(245,166,35,0.3);
  position: relative;
}

.hanging-light::after {
  content: '💡';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  font-size: 1.4rem;
  filter: drop-shadow(0 0 12px rgba(245,200,80,0.9));
  animation: lightFlicker 4s ease-in-out infinite;
}

.hl1::after { animation-delay: 0s; }
.hl2::after { animation-delay: 1.3s; }
.hl3::after { animation-delay: 2.6s; }

@keyframes lightFlicker {
  0%, 95%, 100% { opacity: 1; }
  96% { opacity: 0.4; }
  97% { opacity: 1; }
  98% { opacity: 0.3; }
  99% { opacity: 1; }
}

/* ── Kitchen Stations Grid ── */

.kitchen-stations {
  position: relative;
  z-index: 5;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  padding: 0 20px;
  height: 100%;
}

.k-station {
  flex: 1;
  min-width: 0;
  max-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 100%;
  justify-content: flex-end;
  padding-bottom: 0;
}

/* ── Counter ── */

.k-counter {
  width: 100%;
  background: linear-gradient(180deg, #5c3310 0%, #3d2008 60%, #2a1505 100%);
  border-top: 4px solid #8b5e2a;
  border-left: 3px solid #7a5025;
  border-right: 3px solid #2a1505;
  border-radius: 6px 6px 0 0;
  height: clamp(70px, 12vh, 110px);
  position: relative;
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.4), 0 -2px 0 rgba(245,166,35,0.1);
  flex-shrink: 0;
}

.k-counter::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: rgba(245,166,35,0.12);
  border-radius: 2px;
}

/* score badge on counter */
.k-score-badge {
  position: absolute;
  top: -18px;
  right: 10px;
  background: var(--dark-brown);
  border: 2px solid var(--gold);
  border-radius: 50px;
  padding: 2px 10px;
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: 1px;
  white-space: nowrap;
  z-index: 10;
  transition: color 0.3s;
}

.k-score-badge.rising {
  animation: scoreRise 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #7fff7f;
}

@keyframes scoreRise {
  0% { transform: scale(1); }
  50% { transform: scale(1.4) translateY(-4px); }
  100% { transform: scale(1); }
}

/* ── Counter top items (changes per phase) ── */

.k-counter-items {
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
  height: 60px;
}

.k-counter-item {
  font-size: 1.4rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
  transition: all 0.3s;
}

.k-counter-item.item-drop {
  animation: counterItemDrop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes counterItemDrop {
  from { transform: scale(0) translateY(-20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.k-mini-plate-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 12;
}

.k-mini-plate {
  width: clamp(52px, 7vh, 72px);
  height: clamp(52px, 7vh, 72px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f8f2e0, #e8dfc0, #d4c9a8);
  border: 3px solid #c8b888;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5), inset 0 2px 8px rgba(255,255,255,0.3);
  overflow: visible;
}

.k-mini-canvas {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.k-mini-inner {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  overflow: hidden;
  z-index: 3;
}

.k-mini-item {
  position: absolute;
  font-size: clamp(0.65rem, 1.2vh, 0.9rem);
  transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  z-index: 5;
}

/* ── Speech / Action Bubble ── */

.k-bubble {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #1a0a00;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  max-width: 140px;
  text-align: center;
  white-space: normal;
  line-height: 1.2;
}

.k-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: white;
}

.k-bubble.show {
  opacity: 1;
  animation: bubblePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bubblePop {
  from { transform: translateX(-50%) scale(0.5); opacity: 0; }
  to { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* ── Chef Character ── */

.k-chef-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: -6px;
  z-index: 8;
}

.k-chef-body {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(52px, 7vw, 80px);
  height: clamp(52px, 7vw, 80px);
  border-radius: 50%;
  position: relative;
  transition: transform 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.k-chef-name {
  font-family: 'Bangers', cursive;
  font-weight: 900;
  font-size: clamp(0.75rem, 1.2vw, 1.3rem);
  letter-spacing: 1px;
  color: var(--cream);
  text-align: center;
  margin-bottom: 4px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.9);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Action prop held above counter ── */

.k-action-prop {
  position: absolute;
  font-size: 1.8rem;
  top: -30px;
  right: 20px;
  opacity: 0;
  pointer-events: none;
  z-index: 9;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.k-action-prop.visible { opacity: 1; }

/* ════════════════════════
   PHASE ANIMATIONS
════════════════════════ */

/* IDLE — gentle sway */
.phase-idle .k-chef-body {
  animation: chefSway 3s ease-in-out infinite;
}
@keyframes chefSway {
  0%, 100% { transform: rotate(-4deg) translateX(-2px); }
  50% { transform: rotate(4deg) translateX(2px); }
}

/* INGREDIENTS — rummaging through items */
.phase-ingredients .k-chef-body {
  animation: chefRummage 0.8s ease-in-out infinite alternate;
}
@keyframes chefRummage {
  from { transform: translateX(-5px) rotate(-6deg); }
  to   { transform: translateX(5px) rotate(6deg); }
}

.phase-ingredients .k-counter-items {
  animation: itemsShake 1.2s ease-in-out infinite alternate;
}
@keyframes itemsShake {
  from { transform: translateX(-4px); }
  to   { transform: translateX(4px); }
}

.phase-ingredients .k-action-prop {
  animation: propBounce 1s ease-in-out infinite alternate;
}
@keyframes propBounce {
  from { transform: translateY(0) rotate(-10deg); }
  to   { transform: translateY(-8px) rotate(10deg); }
}

/* ORDERING — shuffling cards */
.phase-ordering .k-chef-body {
  animation: chefThink 1.2s ease-in-out infinite;
}
@keyframes chefThink {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  30% { transform: rotate(5deg) translateY(-3px); }
  60% { transform: rotate(-5deg) translateY(-1px); }
}

.phase-ordering .k-action-prop {
  animation: cardShuffle 0.6s ease-in-out infinite alternate;
}
@keyframes cardShuffle {
  from { transform: rotate(-20deg) translateY(0); opacity: 0.9; }
  to   { transform: rotate(20deg) translateY(-10px); opacity: 1; }
}

/* PLATING — careful slow movement */
.phase-plating .k-chef-body {
  animation: chefPlate 2s ease-in-out infinite;
}
@keyframes chefPlate {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  25% { transform: translateY(-6px) rotate(1deg); }
  50% { transform: translateY(-2px) rotate(2deg); }
  75% { transform: translateY(-8px) rotate(-1deg); }
}

.phase-plating .k-action-prop {
  animation: platePrecise 1.5s ease-in-out infinite;
}
@keyframes platePrecise {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.8; }
  50% { transform: translateY(-12px) rotate(-10deg); opacity: 1; }
}

/* SUBMITTED — victory jump */
.phase-submitted .k-chef-body {
  animation: chefVictory 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes chefVictory {
  0% { transform: scale(1) translateY(0); }
  40% { transform: scale(1.2) translateY(-20px); }
  70% { transform: scale(0.9) translateY(0); }
  100% { transform: scale(1.05) translateY(-4px); }
}

.phase-submitted .k-station-overlay {
  animation: doneGlow 1s ease-in-out infinite alternate;
}

/* ELIMINATED — slump */
.phase-eliminated .k-chef-body {
  animation: chefSlump 0.5s ease forwards;
  opacity: 0.4;
}
@keyframes chefSlump {
  to { transform: rotate(90deg) translateY(10px) scale(0.8); }
}

/* ── Station overlay (submitted glow / eliminated red) ── */

.k-station-overlay {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.phase-submitted .k-counter { border-top-color: #4caf50; }
.phase-submitted .k-station-overlay {
  background: radial-gradient(ellipse at center, rgba(76,175,80,0.15), transparent 70%);
  opacity: 1;
}

.phase-submitted .k-score-badge { border-color: #4caf50; color: #7fff7f; }

.phase-eliminated .k-counter { border-top-color: var(--red); opacity: 0.5; }
.phase-eliminated .k-station-overlay {
  background: rgba(229,57,53,0.12);
  opacity: 1;
}

/* ── Particles floating above counter ── */

.k-particle {
  position: absolute;
  font-size: 1rem;
  pointer-events: none;
  animation: particleFloat linear forwards;
  z-index: 15;
}

@keyframes particleFloat {
  0%   { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translateY(-80px) rotate(360deg) scale(0.3); opacity: 0; }
}

/* ── Tick marks on submitted counter ── */

.k-tick {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  animation: tickPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes tickPop {
  from { transform: translateX(-50%) scale(0) rotate(-45deg); opacity: 0; }
  to   { transform: translateX(-50%) scale(1) rotate(0deg); opacity: 1; }
}

/* ── Dividers between stations ── */

.k-station + .k-station {
  border-left: 1px solid rgba(245,166,35,0.08);
}

/* ── Station name plate ── */

.k-nameplate {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 0.75rem;
  font-weight: 800;
  color: rgba(255,248,238,0.7);
  white-space: nowrap;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Phase label bubble above the whole kitchen ── */

.phase-announcement {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
}

.phase-announcement-text {
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  letter-spacing: 3px;
  color: var(--gold);
  background: rgba(26,10,0,0.85);
  border: 2px solid rgba(245,166,35,0.4);
  border-radius: 50px;
  padding: 6px 24px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* ── Responsive: fewer stations ── */

@media (max-width: 900px) {
  .k-chef-body { font-size: clamp(1.4rem, 3vw, 2.4rem); width: clamp(44px, 6vw, 64px); height: clamp(44px, 6vw, 64px); }
  .k-chef-name { font-size: clamp(0.6rem, 1vw, 1rem); }
  .k-counter { height: clamp(60px, 10vh, 90px); }
  .lobby-columns { grid-template-columns: 1fr; }
  .lobby-col-join { order: 1; }
  .lobby-col-players { order: 2; }
  .lobby-col-controls { order: 3; }
}

/* ═══════════════════════════════════════
   COMMENTARY TICKER
═══════════════════════════════════════ */

.commentary-ticker {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(90deg, rgba(26,10,0,0.97), rgba(61,28,0,0.97));
  border-top: 2px solid rgba(245,166,35,0.4);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.commentary-ticker.ticker-in { transform: translateY(0); }
.commentary-ticker.ticker-out { transform: translateY(100%); transition: transform 0.4s ease-in; }

.ticker-label {
  font-family: 'Bangers', cursive;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--red);
  background: rgba(229,57,53,0.2);
  border: 1px solid rgba(229,57,53,0.5);
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ticker-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════
   CINEMATIC DISH CARD FLIP
═══════════════════════════════════════ */

.dish-card-flip {
  perspective: 1000px;
  width: 420px;
  max-width: 90vw;
  animation: dishReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dish-card-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 260px;
}

.dish-card-flip.flipped .dish-card-inner {
  transform: rotateY(180deg);
}

.dish-card-back,
.dish-card-front {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.dish-card-back {
  background: linear-gradient(135deg, #2d1200, #1a0a00);
  border: 3px solid var(--gold);
  border-radius: 28px;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 0 60px rgba(245,166,35,0.3);
}

.dish-card-back-icon { font-size: 6rem; opacity: 0.4; }
.dish-card-back-text {
  font-family: 'Bangers', cursive;
  font-size: 2rem;
  letter-spacing: 6px;
  color: rgba(245,166,35,0.5);
}

.dish-card-front {
  position: absolute;
  top: 0; left: 0; right: 0;
  transform: rotateY(180deg);
}

.dish-card-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.dish-badge {
  font-family: 'Bangers', cursive;
  font-size: 1rem;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 50px;
  border: 2px solid;
}

.badge-double {
  color: #ffe082;
  border-color: #ffe082;
  background: rgba(255,224,130,0.15);
  animation: badgePulse 0.8s ease infinite alternate;
}

.badge-sudden {
  color: var(--red);
  border-color: var(--red);
  background: rgba(229,57,53,0.15);
  animation: badgePulse 0.6s ease infinite alternate;
}

.badge-chaos {
  color: #ce93d8;
  border-color: #ce93d8;
  background: rgba(206,147,216,0.15);
}

@keyframes badgePulse {
  from { opacity: 0.7; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.05); }
}

/* ═══════════════════════════════════════
   DOUBLE POINTS + SUDDEN DEATH BANNERS
═══════════════════════════════════════ */

.banners-row {
  position: fixed;
  top: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9050;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.double-points-banner,
.sudden-death-banner {
  padding: 8px 28px;
  border-radius: 50px;
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  pointer-events: none;
  animation: bannerFloat 2s ease-in-out infinite;
  white-space: nowrap;
}

.double-points-banner {
  background: rgba(255,224,130,0.15);
  border: 2px solid #ffe082;
  color: #ffe082;
  box-shadow: 0 0 20px rgba(255,224,130,0.3);
}

.sudden-death-banner {
  background: rgba(229,57,53,0.15);
  border: 2px solid var(--red);
  color: var(--red);
  box-shadow: 0 0 20px rgba(229,57,53,0.4);
}

@keyframes bannerFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-5px); }
}

.sudden-death-badge {
  background: rgba(229,57,53,0.25) !important;
  border-color: var(--red) !important;
  color: var(--red) !important;
  animation: pulseSudden 0.6s ease infinite alternate;
}

@keyframes pulseSudden {
  from { box-shadow: none; }
  to { box-shadow: 0 0 15px rgba(229,57,53,0.6); }
}

/* ═══════════════════════════════════════
   ACHIEVEMENT TOAST
═══════════════════════════════════════ */

.achievement-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 300;
  background: linear-gradient(135deg, rgba(30,12,0,0.97), rgba(61,28,0,0.97));
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 20px rgba(245,166,35,0.3);
  max-width: 300px;
  transform: translateX(120%);
}

.achievement-toast.ach-in {
  animation: toastSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.achievement-toast.ach-out {
  animation: toastSlideOut 0.4s ease-in forwards;
}

@keyframes toastSlideIn {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(120%); opacity: 0; }
}

.ach-icon { font-size: 2.2rem; flex-shrink: 0; }
.ach-text { display: flex; flex-direction: column; gap: 2px; }
.ach-name { font-weight: 900; font-size: 1rem; color: var(--gold); }
.ach-label { font-size: 0.78rem; color: rgba(255,248,238,0.6); }

/* ═══════════════════════════════════════
   HOT STREAK TOAST
═══════════════════════════════════════ */

.hot-streak-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 300;
  background: linear-gradient(135deg, rgba(229,57,53,0.9), rgba(245,166,35,0.9));
  border: 3px solid var(--gold);
  border-radius: 20px;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Bangers', cursive;
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: #fff;
  box-shadow: 0 0 60px rgba(245,166,35,0.6);
  pointer-events: none;
}

.hot-streak-toast.streak-in {
  animation: streakPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.hot-streak-toast.streak-out {
  animation: streakFade 0.4s ease-in forwards;
}

@keyframes streakPop {
  from { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@keyframes streakFade {
  from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  to { transform: translate(-50%, -50%) scale(1.3); opacity: 0; }
}

.streak-fire { animation: fireSpin 0.4s ease infinite alternate; font-size: 2rem; }
@keyframes fireSpin {
  from { transform: rotate(-10deg) scale(1); }
  to { transform: rotate(10deg) scale(1.2); }
}

/* ═══════════════════════════════════════
   POWER-UP TOAST
═══════════════════════════════════════ */

.powerup-toast {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  z-index: 300;
  background: rgba(30,12,0,0.95);
  border: 2px solid #ce93d8;
  border-radius: 50px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #ce93d8;
  pointer-events: none;
}

.powerup-toast.pu-in {
  animation: puSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.powerup-toast.pu-out {
  animation: puSlideDown 0.35s ease-in forwards;
}

/* ═══════════════════════════════
   CHAT BOOST BANNER
═══════════════════════════════ */
.chat-boost-banner {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  z-index: 9300;
  pointer-events: none;
  opacity: 0;
}

.chat-boost-banner.cbb-in {
  animation: cbbDrop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.chat-boost-banner.cbb-out {
  animation: cbbFade 0.4s ease-in forwards;
}

@keyframes cbbDrop {
  from { transform: translateX(-50%) translateY(-30px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

@keyframes cbbFade {
  from { opacity: 1; transform: translateX(-50%) translateY(0); }
  to   { opacity: 0; transform: translateX(-50%) translateY(-20px); }
}

.cbb-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(20,8,40,0.97), rgba(40,12,60,0.97));
  border: 2px solid rgba(145,70,255,0.8);
  border-radius: 20px;
  padding: 14px 20px 14px 14px;
  box-shadow: 0 0 40px rgba(145,70,255,0.5), 0 8px 30px rgba(0,0,0,0.6);
  min-width: 360px;
  max-width: 520px;
}

.cbb-avatar {
  font-size: 2.2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.cbb-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cbb-title {
  font-family: 'Bangers', cursive;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: #bf94ff;
  line-height: 1.2;
}

.cbb-quip {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(255,248,238,0.65);
  line-height: 1.4;
}

.cbb-pts {
  font-family: 'Bangers', cursive;
  font-size: 2.2rem;
  letter-spacing: 2px;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(245,166,35,0.7);
  flex-shrink: 0;
}

@keyframes puSlideUp {
  from { transform: translateX(-50%) translateY(60px); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}
@keyframes puSlideDown {
  from { transform: translateX(-50%) translateY(0); opacity: 1; }
  to { transform: translateX(-50%) translateY(60px); opacity: 0; }
}

.pu-icon { font-size: 1.4rem; }

/* ═══════════════════════════════════════
   CHAOS CARD OVERLAY
═══════════════════════════════════════ */

.chaos-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chaos-overlay.chaos-in {
  animation: chaosReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.chaos-overlay.chaos-out {
  animation: chaosHide 0.5s ease-in forwards;
}

@keyframes chaosReveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes chaosHide {
  from { opacity: 1; }
  to { opacity: 0; }
}

.chaos-card-ui {
  background: linear-gradient(135deg, #1a0050, #3d0080);
  border: 3px solid #ce93d8;
  border-radius: 28px;
  padding: 60px 80px;
  text-align: center;
  box-shadow: 0 0 80px rgba(206,147,216,0.5);
  animation: chaosCardPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 500px;
}

@keyframes chaosCardPop {
  from { transform: scale(0.3) rotate(-15deg); opacity: 0; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}

.chaos-icon { font-size: 5rem; display: block; margin-bottom: 12px; animation: chaosRotate 1s ease-in-out infinite; }
@keyframes chaosRotate {
  0%,100% { transform: rotate(-10deg); }
  50% { transform: rotate(10deg); }
}

.chaos-title {
  font-family: 'Bangers', cursive;
  font-size: 3rem;
  color: #ce93d8;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.chaos-desc {
  font-size: 1.2rem;
  color: rgba(255,248,238,0.8);
  line-height: 1.6;
}

/* ═══════════════════════════════════════
   CROWD REACTION LAYER
═══════════════════════════════════════ */

.crowd-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.crowd-emoji {
  position: absolute;
  animation: crowdRise ease-out forwards;
  pointer-events: none;
}

@keyframes crowdRise {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  60% { opacity: 1; }
  100% { transform: translateY(-180px) scale(1.5); opacity: 0; }
}

/* ═══════════════════════════════════════
   PLAYER REACTION LAYER
═══════════════════════════════════════ */

.reaction-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
}

.reaction-bubble {
  position: absolute;
  background: rgba(30,12,0,0.9);
  border: 2px solid var(--gold);
  border-radius: 50px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: reactionFly ease-out forwards;
  pointer-events: none;
}

@keyframes reactionFly {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateY(-200px) scale(0.8); opacity: 0; }
}

.rb-emoji { font-size: 1.6rem; }
.rb-name { font-size: 0.85rem; font-weight: 700; color: var(--gold); }

/* ═══════════════════════════════════════
   KITCHEN SHAKE AT 10s
═══════════════════════════════════════ */

.kitchen-shake {
  animation: kitchenShake 0.5s ease-in-out infinite;
}

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

/* ═══════════════════════════════════════
   ACHIEVEMENT BADGES IN RESULTS + LEADERBOARD
═══════════════════════════════════════ */

.result-badge {
  font-size: 1rem;
  margin-left: 4px;
  vertical-align: middle;
  filter: drop-shadow(0 0 4px rgba(245,166,35,0.6));
}

.final-lb-achs {
  font-size: 1rem;
  letter-spacing: 2px;
  margin-right: 4px;
}

/* ═══════════════════════════════════════
   WINNER BADGES
═══════════════════════════════════════ */

.winner-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 400px;
}

.winner-badge-item {
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.4);
  border-radius: 50px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
}

.wb-label { font-size: 0.78rem; color: rgba(255,248,238,0.7); }

/* ═══════════════════════════════════════
   TV BROADCAST — CAMERA & OVERLAYS
═══════════════════════════════════════ */

.kitchen-floor {
  overflow: hidden;
}

.kitchen-camera {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  transform-origin: center bottom;
  will-change: transform;
}

.kitchen-camera .kitchen-bg-tiles {
  position: absolute;
  inset: 0;
}

.kitchen-camera .kitchen-stations {
  position: relative;
  z-index: 5;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 20px;
}

.kitchen-camera .kitchen-lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

/* TV Scanlines */
.tv-scanlines {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.04) 2px,
    rgba(0,0,0,0.04) 4px
  );
  animation: scanlinesDrift 8s linear infinite;
}

@keyframes scanlinesDrift {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

/* TV Vignette */
.tv-vignette {
  position: fixed;
  inset: 0;
  z-index: 8999;
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 55%,
    rgba(0,0,0,0.55) 100%
  );
}

/* Broadcast Bug — top right corner */
.tv-broadcast-bug {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  z-index: 9100;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s;
}

.tv-broadcast-bug.visible { opacity: 1; }

.tv-bug-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e53935;
  box-shadow: 0 0 8px #e53935, 0 0 16px rgba(229,57,53,0.6);
  animation: bugBlink 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes bugBlink {
  0%, 45%, 55%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.tv-bug-label {
  font-family: 'Bangers', cursive;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: #e53935;
  text-shadow: 0 0 8px rgba(229,57,53,0.8);
}

.tv-bug-show {
  font-family: 'Nunito', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(255,248,238,0.65);
  text-transform: uppercase;
}

/* Lower Third — contestant name banner */
.tv-lower-third {
  position: fixed;
  bottom: 52px;
  left: 0;
  right: 0;
  z-index: 9050;
  pointer-events: none;
  display: flex;
  justify-content: flex-start;
  padding-left: 32px;
}

.tv-lt-inner {
  background: linear-gradient(90deg, rgba(229,57,53,0.95) 0%, rgba(180,20,20,0.95) 60%, transparent 100%);
  padding: 8px 40px 8px 16px;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
  transform: translateX(-110%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.tv-lt-inner.show { transform: translateX(0); }

.tv-lt-name {
  display: block;
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: #fff;
  line-height: 1.1;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

.tv-lt-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.85);
  text-transform: uppercase;
}

/* Cut Flash — white frame between camera cuts */
.tv-cut-flash {
  position: fixed;
  inset: 0;
  z-index: 8900;
  pointer-events: none;
  background: white;
  opacity: 0;
}

.tv-cut-flash.flash {
  animation: cutFlash 0.18s ease-out forwards;
}

@keyframes cutFlash {
  0% { opacity: 0.28; }
  100% { opacity: 0; }
}

/* ── Camera move keyframes ── */

@keyframes camPanLeft {
  0%   { transform: scale(1.08) translateX(0); }
  100% { transform: scale(1.08) translateX(-4%); }
}

@keyframes camPanRight {
  0%   { transform: scale(1.08) translateX(0); }
  100% { transform: scale(1.08) translateX(4%); }
}

@keyframes camZoomIn {
  0%   { transform: scale(1); }
  100% { transform: scale(1.14); }
}

@keyframes camZoomOut {
  0%   { transform: scale(1.14); }
  100% { transform: scale(1); }
}

@keyframes camFocusLeft {
  0%   { transform: scale(1.18) translateX(8%); }
  100% { transform: scale(1.18) translateX(8%); }
}

@keyframes camFocusRight {
  0%   { transform: scale(1.18) translateX(-8%); }
  100% { transform: scale(1.18) translateX(-8%); }
}

@keyframes camFocusCenter {
  0%   { transform: scale(1.12) translateX(0); }
  100% { transform: scale(1.12) translateX(0); }
}

@keyframes camDramatic {
  0%   { transform: scale(1) rotate(0deg); }
  15%  { transform: scale(1.22) rotate(-0.4deg); }
  85%  { transform: scale(1.22) rotate(0.4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes camShakeUrgent {
  0%, 100% { transform: scale(1.1) translateX(0) translateY(0); }
  15%  { transform: scale(1.1) translateX(-3px) translateY(1px); }
  30%  { transform: scale(1.1) translateX(3px) translateY(-1px); }
  45%  { transform: scale(1.1) translateX(-2px) translateY(2px); }
  60%  { transform: scale(1.1) translateX(2px) translateY(-2px); }
  75%  { transform: scale(1.1) translateX(-1px) translateY(1px); }
}

/* Active camera states applied by JS */
.cam-pan-left  { animation: camPanLeft  4s ease-in-out forwards; }
.cam-pan-right { animation: camPanRight 4s ease-in-out forwards; }
.cam-zoom-in   { animation: camZoomIn   3s ease-in-out forwards; }
.cam-zoom-out  { animation: camZoomOut  3s ease-in-out forwards; }
.cam-focus-left   { animation: camFocusLeft   0.5s ease-out forwards; }
.cam-focus-right  { animation: camFocusRight  0.5s ease-out forwards; }
.cam-focus-center { animation: camFocusCenter 0.5s ease-out forwards; }
.cam-dramatic  { animation: camDramatic 6s ease-in-out forwards; }
.cam-shake     { animation: camShakeUrgent 0.6s ease-in-out infinite; }

/* ═══════════════════════════════════════
   PLAYER INTRO SCREEN
═══════════════════════════════════════ */

#screenIntro {
  position: relative;
  overflow: hidden;
}

.intro-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, #1a0800 0%, #0d0400 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.intro-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 55% 65% at 50% 38%, rgba(255,200,80,0.18) 0%, transparent 70%);
  animation: spotlightPulse 2.5s ease-in-out infinite;
}

@keyframes spotlightPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}

.intro-show-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 28px;
  animation: introTitleDrop 0.8s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes introTitleDrop {
  from { transform: translateY(-40px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.intro-show-top {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(0.7rem, 1.4vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 6px;
  color: rgba(255,248,238,0.55);
  text-transform: uppercase;
}

.intro-show-name {
  font-family: 'Bangers', cursive;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: 4px;
  color: var(--gold);
  text-shadow: 0 0 30px rgba(245,166,35,0.7), 0 4px 8px rgba(0,0,0,0.8);
  line-height: 1;
}

.intro-show-sub {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(0.65rem, 1.3vw, 0.85rem);
  font-weight: 800;
  letter-spacing: 8px;
  color: rgba(255,248,238,0.4);
  text-transform: uppercase;
}

.intro-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 260px;
}

.intro-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: scale(0.7) translateY(30px);
  transition: none;
}

.intro-card.card-in {
  animation: introCardIn 0.65s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

.intro-card.card-out {
  animation: introCardOut 0.4s ease-in forwards;
}

@keyframes introCardIn {
  from { opacity: 0; transform: scale(0.7) translateY(30px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

@keyframes introCardOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(1.1) translateY(-20px); }
}

.intro-card-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.22) 0%, transparent 70%);
  pointer-events: none;
  animation: introGlowPulse 1.8s ease-in-out infinite;
}

@keyframes introGlowPulse {
  0%, 100% { transform: scale(1);    opacity: 0.8; }
  50%       { transform: scale(1.12); opacity: 1;   }
}

.intro-card-avatar {
  font-size: clamp(4rem, 9vw, 6rem);
  line-height: 1;
  filter: drop-shadow(0 0 20px rgba(245,166,35,0.6));
  animation: introAvatarBounce 0.8s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(90px, 14vw, 130px);
  height: clamp(90px, 14vw, 130px);
  border-radius: 50%;
  border: 4px solid var(--gold);
  box-shadow: 0 0 40px rgba(245,166,35,0.4), inset 0 0 20px rgba(0,0,0,0.3);
}

@keyframes introAvatarBounce {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}

.intro-card-name {
  font-family: 'Bangers', cursive;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 3px;
  color: #fff;
  text-shadow: 0 0 20px rgba(245,166,35,0.5), 0 3px 6px rgba(0,0,0,0.8);
  line-height: 1;
  text-align: center;
  animation: introNameSlide 0.5s ease-out both;
  animation-delay: 0.25s;
}

@keyframes introNameSlide {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.intro-card-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(0.8rem, 1.8vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  text-align: center;
  max-width: 380px;
  animation: introNameSlide 0.5s ease-out both;
  animation-delay: 0.35s;
}

.intro-lower-third {
  position: absolute;
  bottom: 72px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-start;
  padding-left: 40px;
  pointer-events: none;
}

.intro-lt-bar {
  background: linear-gradient(90deg, #b00020 0%, rgba(160,0,20,0.95) 55%, transparent 100%);
  padding: 10px 60px 10px 20px;
  clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%);
  transform: translateX(-110%);
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1);
  max-width: 680px;
}

.intro-lt-bar.show { transform: translateX(0); }

.intro-lt-name {
  display: block;
  font-family: 'Bangers', cursive;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  letter-spacing: 2px;
  color: #fff;
  line-height: 1.1;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.9);
}

.intro-lt-details {
  display: block;
  font-size: clamp(0.7rem, 1.4vw, 0.9rem);
  font-weight: 700;
  color: rgba(255,255,210,0.92);
  line-height: 1.35;
}

.intro-counter {
  position: absolute;
  bottom: 28px;
  right: 36px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.intro-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,248,238,0.2);
  border: 2px solid rgba(255,248,238,0.3);
  transition: background 0.3s, border-color 0.3s;
}

.intro-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 8px rgba(245,166,35,0.7);
}
