@font-face { font-family: "Outfit"; src: url("assets/fonts/Outfit-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("assets/fonts/Outfit-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("assets/fonts/Outfit-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("assets/fonts/Outfit-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("assets/fonts/Outfit-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f9fafb;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --brand: #00a1cb;
  --brand-dark: #0081a2;
  --brand-deep: #002b36;
  --brand-soft: #e8faff;
  --right: #1b9d46;
  --right-dark: #177f3a;
  --right-bg: #f2fcf6;
  --wrong: #d42e26;
  --wrong-bg: #fff4f4;
  --warning-bg: #fff7f1;
  --option-0: #00a1cb;
  --option-1: #0081a2;
  --option-2: #006079;
  --option-3: #004051;
  --radius: 14px;
  --shadow: 0 2px 12px rgb(0 43 54 / 8%);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Outfit, "Segoe UI", system-ui, sans-serif;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
}

button, input { font: inherit; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 600; color: var(--brand-deep); }
.brand img { width: 34px; height: 34px; }
.brand-name { color: var(--brand-deep); letter-spacing: -0.01em; }
.brand-name span { color: var(--brand); }

.eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.eyebrow {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.eyebrow-type { color: var(--muted); font-size: 0.9rem; }

.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-dark);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.error { color: var(--wrong); min-height: 1.2em; margin: 8px 0 0; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.center { text-align: center; }

button.primary, button.secondary {
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
}

button.primary { background: var(--brand-dark); color: #fff; }
button.primary:hover { background: #006079; }
button.secondary { background: var(--border); color: var(--text); }
button.secondary:disabled { opacity: 0.4; cursor: default; }
button.big { font-size: 1.2rem; padding: 16px 32px; }

button.link {
  background: none;
  border: none;
  color: var(--brand-dark);
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}

.letter {
  display: inline-grid;
  place-items: center;
  width: 2em;
  height: 2em;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--option);
  font-weight: 700;
}


.player-main {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.join { display: flex; flex-direction: column; gap: 12px; margin-top: 10vh; }
.join h1 { margin: 0; }

input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1.2rem;
  background: var(--surface);
}

input[type="text"]:focus { outline: none; border-color: var(--brand); }

.question-text { font-size: 1.4rem; margin: 12px 0 18px; color: var(--brand-deep); }

.choices { display: grid; gap: 12px; }

button.choice {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 12px 16px;
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
}

button.choice.selected { box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--brand); transform: scale(1.02); }
button.choice.dimmed { opacity: 0.45; }

.option-0 { --option: var(--option-0); --option-from: #16c6f4; }
.option-1 { --option: var(--option-1); --option-from: var(--option-0); }
.option-2 { --option: var(--option-2); --option-from: var(--option-1); }
.option-3 { --option: var(--option-3); --option-from: var(--option-2); }

button.choice, .tile {
  background: linear-gradient(135deg, var(--option-from), var(--option));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--option) 28%, transparent);
}

.status { color: var(--muted); margin-top: 14px; }

.estimate-form { display: flex; flex-direction: column; gap: 10px; }
.estimate-input { display: flex; align-items: center; gap: 10px; }
.estimate-input .unit { font-weight: 600; color: var(--muted); white-space: nowrap; }
.preview { min-height: 1.4em; margin: 0; color: var(--brand-dark); font-weight: 600; }

.verdict {
  margin: 4px 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1.1rem;
}

.verdict.right { background: var(--right-bg); color: var(--right-dark); }
.verdict.wrong { background: var(--wrong-bg); color: var(--wrong); }
.verdict.neutral { background: var(--surface); box-shadow: var(--shadow); }


.bars { display: grid; gap: 14px; }

.bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label count" "track track";
  gap: 6px 12px;
  align-items: center;
  transition: opacity 0.3s;
}

.bar.wrong { opacity: 0.5; }
.bar-label { grid-area: label; display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; }
.bar-label .letter { background: var(--option); color: #fff; }
.bar.own .bar-text::after { content: " (deine Wahl)"; color: var(--muted); font-weight: 400; }
.check { color: var(--right); font-size: 1.4em; font-weight: 800; }
.bar-count { grid-area: count; font-variant-numeric: tabular-nums; color: var(--muted); }
.bar-track { grid-area: track; height: 22px; border-radius: 6px; background: var(--border); overflow: hidden; }

.bar-fill {
  height: 100%;
  background: var(--option);
  border-radius: 6px;
  transform-origin: left;
  animation: grow 0.9s ease-out;
}

.bar.correct .bar-track { outline: 3px solid var(--right); outline-offset: 2px; }

@keyframes grow { from { transform: scaleX(0); } }

.estimate-result { display: grid; gap: 14px; }

.solution {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--right-bg);
}

.solution-label { font-weight: 600; color: var(--right-dark); }
.solution-value { font-size: 1.8rem; font-weight: 800; color: var(--right-dark); font-variant-numeric: tabular-nums; }
.solution.missing { background: var(--warning-bg); font-weight: 600; }

.numberline-wrap { padding: 28px 8px 0; }

.numberline {
  position: relative;
  border-bottom: 3px solid var(--text);
  transition: height 0.3s;
}

.dot {
  position: absolute;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 1px 4px rgb(0 43 54 / 25%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: pop 0.5s ease-out backwards;
}

.dot.own { outline: 3px solid var(--brand-deep); outline-offset: 1px; z-index: 1; }

.player-label { display: flex; align-items: center; gap: 10px; min-width: 0; }

.player-badge {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  color: #fff;
  font-size: 0.8em;
  font-weight: 700;
}

.player-badge.large { width: 72px; height: 72px; font-size: 1.6rem; box-shadow: var(--shadow); }
.own-color { display: flex; justify-content: center; margin: 8px 0 4px; }
.me-status { display: flex; align-items: center; gap: 8px; }
.me-status .player-badge { font-size: 0.85rem; }

.marker {
  position: absolute;
  top: -26px;
  bottom: -3px;
  width: 3px;
  margin-left: -1.5px;
  background: var(--right);
}

.marker span {
  position: absolute;
  top: -2px;
  left: 6px;
  white-space: nowrap;
  font-weight: 700;
  color: var(--right-dark);
}

.axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.85rem; padding-top: 6px; }

@keyframes pop { from { transform: scale(0); } }

.swarm { margin: 0; color: var(--muted); }

.ranking, .leaderboard { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.ranking li, .leaderboard li {
  display: grid;
  grid-template-columns: 2.5em minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.leaderboard li { grid-template-columns: 2.5em minmax(0, 1fr) auto; }
.ranking li.own, .leaderboard li.own { outline: 3px solid var(--brand-deep); }
.rank { font-size: 1.3em; text-align: center; }
.name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.value, .score { font-variant-numeric: tabular-nums; font-weight: 600; }
.deviation { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 5em; text-align: right; }

.note {
  margin: 14px 0 0;
  padding: 12px 16px;
  border-left: 4px solid var(--brand);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
}


.host-main {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 32px 16px;
}

.host-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  font-size: 0.85rem;
}

.hero { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 12px; }
.lead { font-size: 1.4rem; margin: 0 0 8px; }

.lobby { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.join-url { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 800; color: var(--brand-dark); word-break: break-all; }
.qr { width: min(320px, 100%); margin-top: 16px; background: #fff; border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
.qr svg { display: block; width: 100%; height: auto; }
.qr.placeholder { display: grid; place-items: center; aspect-ratio: 1; color: var(--muted); }
.alternatives { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.lobby-players { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.lobby-players h2 { margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 2px dashed var(--border);
  color: var(--muted);
  animation: pop 0.3s ease-out;
}

.chip.answered { border: 2px solid var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 600; }

.stage { display: flex; flex-direction: column; gap: 24px; }
.stage-head { display: flex; flex-direction: column; gap: 12px; }
.stage-question { font-size: clamp(1.8rem, 3.6vw, 3rem); margin: 0; line-height: 1.2; color: var(--brand-deep); }
.stage-question.small { font-size: clamp(1.4rem, 2.6vw, 2rem); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.tile {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 104px;
  padding: 20px 24px;
  border-radius: 18px;
  color: #fff;
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  font-weight: 700;
}

.tile .letter { width: 1.8em; height: 1.8em; font-size: 0.85em; }

.estimate-hint {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  border: 1px solid #94e9ff;
  border-radius: 18px;
  background: var(--brand-soft);
}

.estimate-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-dark);
}

.estimate-icon svg { width: 30px; height: 30px; }
.estimate-hint-title { font-size: 1.5rem; font-weight: 700; color: #004051; }
.estimate-hint-text { font-size: 1.1rem; color: var(--brand-dark); }

.warning { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--warning-bg); }

.tracker {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.tracker-head { display: flex; align-items: baseline; justify-content: space-between; }
.tracker-label { color: var(--muted); }
.counter { font-size: 1.3rem; font-weight: 700; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.progress { height: 10px; border-radius: 999px; background: var(--border); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: var(--brand); transition: width 0.4s ease-out; }

.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.host .bars { gap: 18px; }
.host .bar-label { font-size: 1.4rem; }
.host .bar-track { height: 34px; }
.host .bar-count { font-size: 1.2rem; }
.host .ranking li, .host .leaderboard li { font-size: 1.2rem; }
.host .leaderboard li.podium-1 { font-size: 1.6rem; }

@media (max-width: 800px) {
  .host-main { padding: 20px 16px; }
  .lobby, .tiles { grid-template-columns: 1fr; }
}

.hero { color: var(--brand-deep); }

.lobby-join {
  padding: 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand-deep) 0%, #004051 55%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.lobby-join .hero { color: #fff; }
.lobby-join .join-url { color: #6ae0ff; }
.lobby-join .muted { color: rgb(255 255 255 / 70%); }
.lobby-join button.link { color: #bef1ff; }
.lobby-logo { display: block; height: 52px; margin-bottom: 24px; }
.lobby-players { padding-top: 12px; }

.connection-lost {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--wrong);
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 10;
}

.chip { display: inline-flex; align-items: center; }
.chip .player-label { gap: 8px; }
.chip:not(.answered) .player-badge { opacity: 0.4; }

@media (max-width: 480px) {
  .ranking li { grid-template-columns: 2.2em minmax(0, 1fr) auto; row-gap: 2px; }
  .ranking .rank { grid-row: span 2; }
  .ranking .player-label { grid-column: 2 / 4; }
  .ranking .value { grid-column: 2; font-weight: 500; }
  .ranking .deviation { grid-column: 3; min-width: 0; }
}

.reveal-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.reveal-main .note { margin: 0; }
.reveal-with-image { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 28px; align-items: start; }

.solution-image {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.solution-image img { display: block; width: 100%; height: auto; border-radius: 10px; }
.player .solution-image { margin-top: 14px; }

@media (max-width: 800px) {
  .reveal-with-image { grid-template-columns: 1fr; }
}

textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 1.1rem;
  resize: vertical;
  background: var(--surface);
}

textarea:focus { outline: none; border-color: var(--brand); }

.quote-card { margin-top: 16px; text-align: left; }
.quote-card h2 { margin: 0 0 4px; color: var(--brand-deep); }
.quote-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }

.quote-saved {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--brand-soft);
}

.quote-saved-label { font-weight: 600; color: var(--brand-dark); font-size: 0.9rem; }

.quote { margin: 0; }
.quote-text { margin: 0; font-weight: 600; color: var(--brand-deep); }
.quote-author { display: block; margin-top: 2px; font-style: normal; color: var(--muted); }

.quote-options { display: grid; gap: 10px; }

button.quote-option {
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

button.quote-option.selected { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: var(--brand-soft); }

.quote-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.quote-result { display: grid; gap: 6px; --option: var(--brand); }
.quote-result-head { display: flex; align-items: flex-start; gap: 12px; }
.quote-result-head .quote { flex: 1; min-width: 0; }
.quote-result .bar-fill { background: var(--brand); }
.quote-result.winner .bar-fill { background: linear-gradient(90deg, var(--brand), var(--brand-dark)); }
.quote-result.winner .quote-text { font-size: 1.15em; }
.quote-result.own .quote-text::after { content: "  (deine Stimme)"; font-weight: 400; color: var(--muted); font-size: 0.85em; }
.trophy { font-size: 1.6em; line-height: 1; }

.quote-icon { color: #fff; font-size: 2rem; font-weight: 700; line-height: 1; }

.submitted-quotes { display: grid; gap: 10px; max-height: 40vh; overflow-y: auto; }

.submitted-quote {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg);
}

.submitted-quote .quote { flex: 1; min-width: 0; }

button.remove-quote {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: none;
  border-radius: 50%;
  background: var(--wrong-bg);
  color: var(--wrong);
  font-weight: 700;
  cursor: pointer;
}

.quote-board {
  margin: 0;
  padding-left: 1.6em;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 36px;
  font-size: 1.2rem;
}

.quote-board li::marker { color: var(--brand); font-weight: 700; }
.host .quote-results { font-size: 1.2rem; }

@media (max-width: 800px) {
  .quote-board { grid-template-columns: 1fr; }
}

.quote-result .bar-track { grid-area: auto; }
.quote-result-head .bar-count { white-space: nowrap; }

.host .quote-results { gap: 10px; }

.host .quote-result {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 28px;
  padding: 8px 14px;
  border-radius: 12px;
}

.host .quote-result.winner { background: var(--brand-soft); }
.host .quote-result .bar-track { height: 26px; }

.center { text-align: center; }
.ceremony-intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 6vh 0; }
.ceremony-trophy { font-size: 6rem; line-height: 1; animation: bounce-in 0.8s ease-out; }
.ceremony-trophy.small { font-size: 3rem; }

.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 20px;
  max-width: 900px;
  margin: 8px auto 0;
}

.podium-place { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.podium-winners { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.podium-player { display: flex; flex-direction: column; align-items: center; gap: 6px; animation: bounce-in 0.6s ease-out; }
.podium-name { font-size: 1.3rem; font-weight: 700; color: var(--brand-deep); text-align: center; }
.podium-score { color: var(--muted); font-weight: 600; }

.podium-mystery {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 3px dashed var(--border);
  border-radius: 50%;
  color: var(--muted);
  font-size: 2rem;
  font-weight: 700;
}

.podium-block {
  display: grid;
  place-items: start center;
  width: 100%;
  padding-top: 14px;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(180deg, var(--option-from, #16c6f4), var(--option, #00a1cb));
  color: #fff;
  font-size: 2.6rem;
  box-shadow: 0 6px 16px rgb(0 43 54 / 18%);
}

.place-1 .podium-block { height: 220px; --option-from: #16c6f4; --option: #0081a2; }
.place-2 .podium-block { height: 160px; --option-from: #00a1cb; --option: #006079; }
.place-3 .podium-block { height: 110px; --option-from: #0081a2; --option: #004051; }
.place-1 .podium-name { font-size: 1.7rem; }
.place-1 .player-badge.large { width: 96px; height: 96px; font-size: 2rem; }
.hidden-place .podium-block { filter: grayscale(0.6); opacity: 0.7; }

.quote-of-the-year {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 5vh 0 2vh;
  text-align: center;
}

.big-quote { margin: 0; animation: bounce-in 0.7s ease-out; }
.big-quote p { margin: 0; font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 800; line-height: 1.15; color: var(--brand-deep); }
.big-quote cite { display: block; margin-top: 14px; font-style: normal; font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 700; color: var(--brand); }

.confetti { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.host-main, .host-footer, .topbar { position: relative; z-index: 1; }

.confetti span {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 16px;
  border-radius: 2px;
  animation-name: confetti-fall;
  animation-timing-function: linear;
  animation-fill-mode: both;
}

@keyframes confetti-fall {
  from { transform: translateY(0) rotate(0deg); }
  to { transform: translateY(110vh) rotate(900deg); }
}

@keyframes bounce-in {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
  .ceremony-trophy, .podium-player, .big-quote { animation: none; }
}

.player .confetti { z-index: 20; }

.host-login {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(460px, 100%);
  margin: 6vh auto 0;
  padding: 36px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand-deep) 0%, #004051 55%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.host-login h1 { margin: 0; }
.host-login .muted { color: rgb(255 255 255 / 75%); margin: 0; }
.host-login .lobby-logo { margin-bottom: 8px; }

.host-login input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.host-login input[type="password"]:focus { outline: none; border-color: #6ae0ff; }
.host-login button.primary { background: var(--brand); }
.host-login button.primary:hover { background: #16c6f4; }
.login-error { min-height: 1.2em; margin: 0; color: #ffcac7; font-weight: 600; }
.player-link { color: #bef1ff; font-size: 0.95rem; }
.footer-actions { display: flex; gap: 12px; }

.section-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(32px, 6vh, 64px) clamp(28px, 4vw, 56px);
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brand-deep) 0%, #004051 55%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.section-hero h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.1; animation: bounce-in 0.7s ease-out; }
.section-hero .lead { margin: 0; color: rgb(255 255 255 / 80%); }
.section-card h1 { color: var(--brand-deep); }

.review { display: grid; gap: 16px; }
.review-head { display: grid; gap: 4px; }
.review-eyebrow { color: var(--muted); font-weight: 600; }
.review-title { margin: 0; font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.1; color: var(--brand-deep); }

.review-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 14px; }

.review-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 22px;
  border-radius: 18px;
}

.review-hero.dark { background: var(--brand-deep); color: #fff; }
.review-hero.accent { background: var(--surface); border: 1px solid var(--border); }
.review-hero-value { font-size: clamp(2.4rem, 4.6vw, 4.2rem); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.review-hero.accent .review-hero-value { color: #f86816; }
.review-hero-label { font-weight: 600; font-size: 1.05rem; }
.review-hero.accent .review-hero-label { color: var(--muted); }

.review-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.review-card { padding: 14px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.review-stat-value { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; color: var(--brand-deep); }
.review-stat-label { color: var(--muted); }

.review-bottom { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.review-card h2 { margin: 0 0 10px; font-size: 1.15rem; color: var(--brand-deep); }
.review-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.review-section-head .muted { font-size: 0.9rem; }

.review-chart { display: flex; align-items: flex-end; gap: 6px; padding-top: 8px; }
.review-bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.review-bar-value { font-size: 0.8rem; font-weight: 700; color: var(--brand-deep); }

.review-bar-fill {
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  background: #94e9ff;
  transform-origin: bottom;
  animation: grow-up 0.8s ease-out;
}

.review-bar.peak .review-bar-fill { background: var(--brand-dark); }
.review-bar.peak .review-bar-value { color: var(--brand-dark); font-size: 0.95rem; }
.review-bar-label { font-size: 0.8rem; color: var(--muted); }

@keyframes grow-up { from { transform: scaleY(0); } }

.review-list { display: grid; gap: 8px; }
.review-list h2 { margin-bottom: 2px; }
.review-list-item { display: grid; gap: 4px; }
.review-list-row { display: flex; justify-content: space-between; gap: 10px; font-size: 0.95rem; }
.review-list-value { font-variant-numeric: tabular-nums; color: var(--muted); }
.review-list-track { height: 8px; border-radius: 999px; background: var(--border); overflow: hidden; }
.review-list-fill { height: 100%; border-radius: 999px; background: var(--brand); transform-origin: left; animation: grow 0.8s ease-out; }
.review-list-item.highlight .review-list-fill { background: #f86816; }
.review-list-item.highlight .review-list-row { font-weight: 700; }
.review-list-note { margin: 6px 0 0; color: var(--muted); font-size: 0.9rem; }
.review-source { margin: 0; color: var(--muted); font-size: 0.8rem; }

.host .review-slide { gap: 16px; }

@media (max-width: 900px) {
  .review-top, .review-bottom { grid-template-columns: 1fr; }
  .review-hero-value { font-size: 2.6rem; }
}
.section-slide { min-height: 70vh; justify-content: center; }
.host-main:has(.review-slide) { max-width: 1500px; }

.review-stats:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.review-stats > :nth-child(5):last-child { grid-column: span 2; }
.review-stat.highlight { background: var(--brand-soft); border-color: #94e9ff; }
.review-stat.highlight .review-stat-value { color: var(--brand-dark); }

@media (max-width: 900px) {
  .review-stats:has(> :nth-child(5)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-stats > :nth-child(5):last-child { grid-column: 1 / -1; }
}
