@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;900&family=Cinzel+Decorative:wght@700&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg: #08080f;
  --bg-panel: #0f0f1e;
  --bg-card: #13132a;
  --bg-card-hover: #1a1a35;
  --gold: #c9a84c;
  --gold-light: #e8c96d;
  --gold-dark: #9a7a30;
  --purple: #6c3483;
  --purple-light: #9b59b6;
  --red: #7b241c;
  --red-light: #e74c3c;
  --green: #1a6b38;
  --green-light: #2ecc71;
  --blue: #1a4f8f;
  --blue-light: #3498db;
  --text: #e8e0d0;
  --text-muted: #7a6f62;
  --border: #1e1e3a;
  --border-gold: rgba(201, 168, 76, 0.3);
  --shadow: rgba(0,0,0,0.6);
  --cauldron-green: #00e87a;
  --rarity-common: #8a7f72;
  --rarity-uncommon: #3498db;
  --rarity-rare: #9b59b6;
  --rarity-legendary: #e67e22;
}

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

html { font-size: 19px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1.05rem;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, .title-font {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.04em;
}

.title-deco {
  font-family: 'Cinzel Decorative', serif;
}

/* ── LAYOUT ── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 1.2rem;
  box-shadow: 0 4px 24px var(--shadow);
}

/* ── LANDING PAGE ── */
.landing {
  text-align: center;
  max-width: 420px;
  width: 100%;
  overflow: visible;
}

.landing-logo {
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--gold);
  text-shadow: 0 0 30px rgba(201,168,76,0.5), 0 0 60px rgba(201,168,76,0.2);
  margin-bottom: 0.25rem;
  line-height: 1.1;
  padding: 0 0.5rem;
}

.landing-subtitle {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.1em;
}

.divider {
  border: none;
  border-top: 1px solid var(--border-gold);
  margin: 1.5rem 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s;
  text-decoration: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a1200;
  box-shadow: 0 2px 12px rgba(201,168,76,0.3);
}
.btn-gold:hover { background: linear-gradient(135deg, var(--gold), var(--gold-light)); box-shadow: 0 4px 20px rgba(201,168,76,0.5); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-gold);
}
.btn-outline:hover { background: rgba(201,168,76,0.1); }

.btn-danger {
  background: linear-gradient(135deg, var(--red), var(--red-light));
  color: #fff;
}
.btn-danger:hover { opacity: 0.85; }

.btn-sm { padding: 0.4rem 1rem; font-size: 0.75rem; }
.btn-full { width: 100%; display: block; text-align: center; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ── INPUTS ── */
.input-group { margin-bottom: 0.6rem; }
.input-group label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

input[type="text"], select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  color: var(--text);
  padding: 0.5rem 0.75rem;
  font-family: 'Crimson Text', serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
input[type="text"]:focus, select:focus { border-color: var(--gold); }
input[type="text"]::placeholder { color: var(--text-muted); }

select option { background: var(--bg-panel); }

/* ── CLASS PICKER ── */
.class-grid {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.class-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  min-width: 70px;
}
.class-card:hover { border-color: var(--gold-dark); background: var(--bg-card-hover); }
.class-card.selected { border-color: var(--gold); background: rgba(201,168,76,0.08); box-shadow: 0 0 12px rgba(201,168,76,0.2); }
.class-card .class-emoji { font-size: 1.2rem; display: block; margin-bottom: 0.1rem; }
.class-card .class-name { font-family: 'Cinzel', serif; font-size: 0.6rem; color: var(--gold); display: block; }
.class-card .class-desc { font-size: 0.5rem; color: var(--text-muted); margin-top: 0.1rem; font-style: italic; }

/* ── ROOM CODE ── */
.room-code {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-shadow: 0 0 20px rgba(201,168,76,0.4);
}

/* ── CAULDRON ── */
.cauldron-wrap {
  text-align: center;
  margin: 1rem 0;
}
.cauldron-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--cauldron-green);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.cauldron-bar-outer {
  background: rgba(0,232,122,0.08);
  border: 1px solid rgba(0,232,122,0.25);
  border-radius: 20px;
  height: 18px;
  overflow: hidden;
  position: relative;
}
.cauldron-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #00a854, #00e87a);
  border-radius: 20px;
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 12px rgba(0,232,122,0.5);
}
.cauldron-overflow .cauldron-bar-inner {
  background: linear-gradient(90deg, #e74c3c, #ff6b6b);
  animation: pulse-red 0.5s ease-in-out 3;
}

/* ── PLAYER CARDS (lobby/game) ── */
.player-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  transition: border-color 0.3s;
}
.player-row.current-turn { border-color: var(--gold); box-shadow: 0 0 12px rgba(201,168,76,0.2); }
.player-row.cursed { border-color: var(--purple); background: rgba(108,52,131,0.1); }
.player-row.is-me { border-color: var(--blue-light); }

.player-avatar {
  font-size: 1.5rem;
  min-width: 2rem;
  text-align: center;
}
.player-info { flex: 1; min-width: 0; }
.player-name {
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-drink { font-size: 0.75rem; color: var(--text-muted); font-style: italic; }

.hp-bar {
  display: flex;
  gap: 3px;
  margin-top: 3px;
}
.hp-pip {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--green-light);
  border: 1px solid rgba(255,255,255,0.1);
}
.hp-pip.empty { background: var(--red); opacity: 0.4; }

.player-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.badge-shield { color: #7ec8e3; }
.badge-cursed { color: var(--purple-light); }
.badge-redirect { color: #555; }

/* ── HAND (small, shown on other players) ── */
.mini-hand {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 3px;
}
.mini-card {
  width: 14px;
  height: 20px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-card.common    { background: rgba(138,127,114,0.3); }
.mini-card.uncommon  { background: rgba(52,152,219,0.3); }
.mini-card.rare      { background: rgba(155,89,182,0.3); }
.mini-card.legendary { background: rgba(230,126,18,0.3); }

/* ── GAME CARDS (hand) ── */
.hand-area {
  padding: 0.5rem;
}
.hand-title {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-align: center;
}
.hand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.5rem;
}

.game-card {
  background: var(--bg-card);
  border-radius: 6px;
  padding: 0.6rem 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  user-select: none;
}
.game-card:hover:not(.disabled) {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  border-color: var(--gold-dark);
}
.game-card.selected {
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
  transform: translateY(-6px);
  box-shadow: 0 0 20px rgba(201,168,76,0.3);
}
.game-card.disabled { opacity: 0.4; cursor: not-allowed; }

.game-card .card-emoji { font-size: 1.6rem; display: block; margin-bottom: 0.3rem; }
.game-card .card-name {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.25rem;
}
.game-card .card-desc { font-size: 0.65rem; color: var(--text-muted); line-height: 1.3; }
.game-card .card-flavor { font-size: 0.6rem; color: var(--text-muted); font-style: italic; margin-top: 0.2rem; display: none; }

.rarity-bar {
  height: 3px;
  border-radius: 0 0 5px 5px;
  position: absolute;
  bottom: 0; left: 0; right: 0;
}
.rarity-common    .rarity-bar { background: var(--rarity-common); }
.rarity-uncommon  .rarity-bar { background: var(--rarity-uncommon); }
.rarity-rare      .rarity-bar { background: var(--rarity-rare); }
.rarity-legendary .rarity-bar { background: var(--rarity-legendary); box-shadow: 0 0 8px var(--rarity-legendary); }

.rarity-legendary .card-name { color: var(--rarity-legendary); }
.rarity-legendary { box-shadow: 0 0 12px rgba(230,126,18,0.2); }

/* ── LOG ── */
.log-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  max-height: 160px;
  overflow-y: auto;
  font-size: 0.8rem;
  line-height: 1.6;
}
.log-box::-webkit-scrollbar { width: 4px; }
.log-box::-webkit-scrollbar-thumb { background: var(--border-gold); border-radius: 2px; }

/* ── PROPHECY ── */
.prophecy {
  background: rgba(108,52,131,0.1);
  border: 1px solid rgba(155,89,182,0.3);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  font-style: italic;
  color: var(--purple-light);
  text-align: center;
  font-size: 0.85rem;
}
.prophecy-label {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--purple);
  display: block;
  margin-bottom: 0.2rem;
}

/* ── RULES ── */
.rules-box {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.rule-item {
  background: rgba(201,168,76,0.06);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 4px;
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rule-turns { font-family: 'Cinzel', serif; font-size: 0.65rem; color: var(--gold); }

/* ── TARGET OVERLAY ── */
.target-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 190;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}
.target-overlay.active { display: flex; }
.target-overlay h3 {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  text-align: center;
}
.target-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 320px;
}
.target-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.target-btn:hover { background: rgba(201,168,76,0.1); border-color: var(--gold); }

/* ── TURN BANNER ── */
.turn-banner {
  text-align: center;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
}
.turn-banner.my-turn {
  background: rgba(201,168,76,0.1);
  border: 1px solid var(--gold);
  color: var(--gold);
  animation: pulse-gold 2s ease-in-out infinite;
}
.turn-banner.other-turn {
  background: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ── RULE INPUT ── */
.rule-input-row {
  display: flex;
  gap: 0.5rem;
}
.rule-input-row input { flex: 1; }

/* ── HOST LAYOUT ── */
.host-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 1100px;
  min-height: 100vh;
  padding: 1rem;
  align-items: start;
}
@media (max-width: 700px) {
  .host-grid { grid-template-columns: 1fr; }
}

/* ── PLAYER LAYOUT ── */
.player-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 460px;
  margin: 0 auto;
  padding: 0.75rem;
  gap: 0.75rem;
}

/* ── TOAST ── */
/* Bottom-left corner, BELOW fullscreen overlays (target 190 / game-over 200 /
   minigame 260 / drink 270 / carousel 280) so info toasts never stamp over
   overlay titles or countdowns. */
#toast-container {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  z-index: 180;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  pointer-events: none;
  width: min(85vw, 340px);
}
.toast {
  background: var(--bg-panel);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
  border-left: 3px solid var(--gold);
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  animation: slideIn 0.3s ease, fadeOut 0.5s ease 3s forwards;
  text-align: center;
}
.toast.chug { border-left-color: var(--red-light); background: rgba(231,76,60,0.15); font-size: 1rem; font-weight: 600; }
.toast.legendary { border-left-color: var(--rarity-legendary); background: rgba(230,126,18,0.12); }
.toast.cauldron { border-left-color: var(--cauldron-green); }
.toast.curse { border-left-color: var(--purple-light); }

/* ── ANIMATIONS ── */
@keyframes slideIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; transform: translateY(-8px); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 8px rgba(201,168,76,0.2); }
  50% { box-shadow: 0 0 20px rgba(201,168,76,0.5); }
}
@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
.shake { animation: shake 0.4s ease; }

/* ── MISC ── */
.section-title {
  font-family: 'Cinzel', serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.drinks-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'Cinzel', serif;
}
.hidden { display: none !important; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ── CURSED SCREEN FX ── */
body.cursed-fx::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(108,52,131,0.08);
  pointer-events: none;
  z-index: 500;
  animation: pulse-red 0.8s ease-in-out 4;
}

/* ── GROUP RESULT PODIUM ──
   Player-side showGroupResult overlay (player.html) and the host result card
   share the .gr-* pieces. Overlay sits above the minigame overlay (260) but
   below the drink countdown (270). */
.group-result-overlay {
  position: fixed;
  inset: 0;
  z-index: 265;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem;
  text-align: center;
  background: rgba(6, 6, 14, 0.94);
  animation: hostPanelIn 0.25s ease;
}
.gr-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.2rem, 5vw, 2rem);
  color: var(--gold);
  text-shadow: 0 0 24px rgba(201,168,76,0.35);
}
.gr-loser {
  font-family: 'Cinzel', serif;
  font-weight: 900;
  font-size: clamp(1.3rem, 6vw, 2.4rem);
  color: var(--red-light);
  text-shadow: 0 0 18px rgba(231,76,60,0.45);
  line-height: 1.25;
}
.gr-survivor {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.9rem, 3.5vw, 1.4rem);
  color: var(--gold-light);
}
.gr-message {
  font-size: clamp(0.85rem, 3vw, 1.1rem);
  color: var(--text);
  font-style: italic;
  opacity: 0.9;
  max-width: 34rem;
}

/* ── HOST "NOW PLAYING" PANEL (host.html TV dashboard) ──
   Render-only layer: pointer-events none keeps the host top-bar controls
   clickable underneath; top offset keeps the bar itself visible. */
.host-game-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  top: 2.75rem;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: radial-gradient(ellipse at 50% 35%, rgba(26,26,46,0.96) 0%, rgba(6,7,14,0.97) 70%);
  pointer-events: none;
  animation: hostPanelIn 0.3s ease;
}
.hgp-card { max-width: 780px; width: 100%; text-align: center; }
.hgp-emoji { font-size: clamp(2.5rem, 8vh, 4.5rem); line-height: 1.1; }
.hgp-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.4rem, 5vh, 2.4rem);
  color: var(--gold);
  text-shadow: 0 0 24px rgba(201,168,76,0.4);
  margin-top: 0.25rem;
}
.hgp-desc {
  font-size: clamp(0.85rem, 2.4vh, 1.1rem);
  color: var(--text);
  font-style: italic;
  opacity: 0.85;
  margin: 0.4rem auto 0;
  max-width: 34rem;
}
.hgp-players {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
}
.hgp-player {
  position: relative;
  width: 108px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.4rem 0.45rem;
}
.hgp-player.ready {
  border-color: var(--green-light);
  box-shadow: 0 0 12px rgba(46,204,113,0.25);
}
.hgp-portrait {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  border: 2px solid var(--border-gold);
  background: var(--bg);
}
.hgp-portrait-emoji {
  font-size: 2rem;
  line-height: 52px;
  text-align: center;
  border-color: transparent;
}
.hgp-pname {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hgp-pstatus {
  font-size: 0.65rem;
  color: var(--text-muted);
  min-height: 0.9rem;
  margin-top: 0.15rem;
}
.hgp-pstatus.done { color: var(--green-light); }
.hgp-pstatus.live { color: var(--gold-light); font-family: 'Cinzel', serif; }
.hgp-pstatus.dead { color: var(--red-light); }
.hgp-tick {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green-light);
  color: #06260f;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 20px;
  display: none;
}
.hgp-player.ready .hgp-tick { display: block; }
.hgp-status {
  margin-top: 1rem;
  font-family: 'Cinzel', serif;
  font-size: clamp(0.8rem, 2.2vh, 1rem);
  color: var(--gold);
  letter-spacing: 0.08em;
  min-height: 1.2rem;
}

/* ── HOST RESULT CARD (large ~5s winner/loser card on the TV) ── */
.host-result-card {
  position: fixed;
  inset: 0;
  z-index: 410;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(6, 7, 14, 0.96);
  pointer-events: none;
  animation: hostPanelIn 0.3s ease;
}
.hrc-inner {
  max-width: 820px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-align: center;
}
.host-result-card .hrc-winner.gr-survivor {
  font-size: clamp(1.8rem, 7vh, 3.2rem);
  font-weight: 900;
  text-shadow: 0 0 28px rgba(201,168,76,0.5);
}
.hrc-wins {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.1rem, 4vh, 1.8rem);
  color: var(--gold-light);
  letter-spacing: 0.25em;
}
.host-result-card .gr-loser { font-size: clamp(1.2rem, 5vh, 2.2rem); }
.hrc-damage {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 3.5vh, 1.5rem);
  color: var(--red-light);
}
.hrc-survivors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
  max-width: 640px;
}
.hrc-draw { font-size: clamp(2.2rem, 9vh, 4rem); }
.hrc-scores {
  margin-top: 0.4rem;
  width: min(90%, 380px);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}
.hrc-score-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  padding: 0.15rem 0;
  border-bottom: 1px solid var(--border);
}
.hrc-score-row:last-child { border-bottom: none; }
.hrc-score-row span:last-child { color: var(--gold); font-family: 'Cinzel', serif; }

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