:root {
  --slate-0: #0b0c10;
  --slate-1: #15161c;
  --slate-2: #23222f;
  --slate-3: #262335;
  --panel-a: #232433;
  --panel-b: #191a24;
  --panel-c: #212230;
  --panel-d: #17181f;
  --purple: #ffd75e;
  --purple-dark: #ff7e5a;
  --purple-soft: #ffe6a3;
  --pink: #ff7eb6;
  --pink-hot: #ff6fb5;
  --green: #2fd77e;
  --green-soft: #7cffc4;
  --gold: #ffd75e;
  --gold-dark: #ffb13c;
  --flame: #ff7e5a;
  --cream: #f4f0dd;
  --code-pop: #ff6b5e;
  --cyan: #34d7e0;
  --text: #ffffff;
  --text-soft: #cfcbe0;
  --muted: #9d95c8;
  --quiet: #7d77a0;
  --ink: #1c1530;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  font-family: Poppins, sans-serif;
  color: var(--text);
  background: var(--slate-0);
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  min-height: 100%;
  margin: 0;
}

button,
input {
  font: inherit;
}

input::placeholder {
  color: rgba(207, 203, 224, 0.45);
  opacity: 1;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.stage-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: block;
  padding: 0;
  background: #07080b;
}

.stage-frame {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  background: var(--slate-1);
}

.stage-frame.home,
.stage-frame.winner,
.phone-shell.result {
  background: #101117;
}

.stage-frame.rejoining {
  background:
    radial-gradient(circle at 50% 35%, rgba(246, 238, 201, 0.1), transparent 34%),
    #101117;
}

.rejoin-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  text-align: center;
}

.rejoin-code {
  color: var(--code-pop);
  font-size: clamp(54px, 7vw, 84px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-shadow:
    4px 5px 0 #2a2030,
    0 18px 36px rgba(0, 0, 0, 0.45);
}

.rejoin-copy {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stage-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background: rgba(255, 179, 60, 0.1);
  filter: blur(70px);
}

.stage-glow.top {
  width: 620px;
  height: 620px;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
}

.stage-glow.gold {
  width: 640px;
  height: 420px;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.035);
}

.brand-corner {
  position: absolute;
  z-index: 4;
  top: 26px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(255, 126, 90, 0.72);
}

.brand-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.home-content,
.choose-content,
.center-stack {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  text-align: center;
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-eyebrow {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
}

.wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
  gap: 4px;
}

.wordmark .top {
  font-size: clamp(64px, 8.8vw, 94px);
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #fff;
  filter: drop-shadow(0 8px 28px rgba(255, 126, 90, 0.32));
}

.wordmark .bottom-row {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 0 16px 12px;
  border-bottom: 8px solid var(--gold);
  box-shadow: 0 16px 34px rgba(255, 126, 90, 0.28);
}

.wordmark .bottom {
  font-size: clamp(64px, 8.8vw, 94px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--gold);
}

.caret {
  width: 7px;
  height: 64px;
  margin-bottom: 12px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 16px rgba(255, 126, 90, 0.85);
  animation: blink 1.1s steps(1) infinite;
}

.subhead {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 19px;
  font-weight: 500;
}

.button-row {
  display: flex;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 15px 34px;
  color: #111217;
  font-size: 17px;
  font-weight: 800;
  background: var(--gold);
  box-shadow:
    0 7px 0 var(--flame),
    0 18px 30px rgba(0, 0, 0, 0.28);
}

.btn.big {
  padding: 17px 40px;
  font-size: 19px;
}

.btn.ghost {
  color: var(--cream);
  background: #232433;
  border: 0;
  box-shadow:
    0 7px 0 #3a2b23,
    0 18px 30px rgba(0, 0, 0, 0.18);
}

.text-link {
  margin-top: 22px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0 0 2px;
  color: var(--quiet);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
}

.deco-avatar {
  position: absolute;
  z-index: 1;
  animation: bobx 5.5s ease-in-out infinite;
}

.deco-avatar.a {
  top: 60px;
  left: 60px;
  width: 96px;
  height: 96px;
}

.deco-avatar.b {
  top: 120px;
  right: 90px;
  width: 84px;
  height: 84px;
  animation-delay: 0.6s;
}

.deco-avatar.c {
  bottom: 70px;
  left: 130px;
  width: 78px;
  height: 78px;
  animation-delay: 0.3s;
}

.deco-avatar.d {
  right: 150px;
  bottom: 96px;
  width: 88px;
  height: 88px;
  animation-delay: 0.9s;
}

.deco-avatar .avatar-svg {
  filter: none !important;
}

.home-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.home-shape {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 215, 94, 0.12);
  border-radius: 999px;
  opacity: 0.8;
  animation: ambientDrift 13s ease-in-out infinite;
}

.home-shape::after {
  content: "";
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(52, 215, 224, 0.09);
  border-radius: inherit;
}

.home-shape.shape-a {
  width: 260px;
  height: 82px;
  right: 18%;
  top: 22%;
  transform: rotate(10deg);
}

.home-shape.shape-b {
  width: 210px;
  height: 66px;
  left: 15%;
  bottom: 22%;
  animation-delay: -6s;
  transform: rotate(-12deg);
}

.choose-title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 38px;
  font-weight: 800;
}

.choose-copy {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.choice-grid {
  display: flex;
  gap: 26px;
  width: min(820px, calc(100vw - 48px));
  justify-content: center;
}

.choice-card {
  width: min(380px, 100%);
  min-height: 285px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 30px;
  border-radius: 22px;
  text-align: center;
  background: #1c1d28;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.how-content,
.mobile-host-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  text-align: center;
}

.how-content h1,
.mobile-host-content h1 {
  max-width: 760px;
  margin: 10px 0 18px;
  color: #fff;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.02;
  font-weight: 800;
}

.how-lede {
  max-width: 700px;
  margin: 0 0 22px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.55;
}

.how-board {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.how-rule {
  display: grid;
  justify-items: start;
  gap: 5px;
  padding: 18px 20px;
  text-align: left;
  background: #1c1d28;
  box-shadow: 0 6px 0 #101116, 0 16px 32px rgba(0, 0, 0, 0.25);
}

.how-rule.primary {
  background: var(--gold);
  box-shadow: 0 6px 0 var(--flame), 0 16px 32px rgba(0, 0, 0, 0.25);
}

.how-rule strong {
  color: var(--gold);
  font-size: 34px;
  line-height: 0.95;
  font-weight: 900;
}

.how-rule.primary strong,
.how-rule.primary span,
.how-rule.primary p {
  color: #211400;
}

.how-rule span {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.how-rule p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.35;
}

.mobile-host-content p {
  max-width: 610px;
  margin: 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.6;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(850px, 100%);
  margin-top: 10px;
}

.how-steps article {
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
}

.how-steps strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 999px;
  color: #2a1c00;
  background: var(--gold-dark);
  font-weight: 800;
}

.how-steps span {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.choice-card.primary {
  background: #202132;
  box-shadow: 0 0 0 2px rgba(255, 179, 60, 0.55), 0 18px 44px rgba(255, 126, 90, 0.2);
}

.choice-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--gold);
}

.choice-card.primary .choice-icon {
  background: var(--purple);
  border: 0;
  color: #111217;
  box-shadow: 0 10px 24px rgba(255, 126, 90, 0.32);
}

.choice-card h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}

.choice-card p {
  margin: 0;
  color: #aeb3bb;
  font-size: 14px;
  line-height: 1.5;
}

.code-box-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 2px 0;
}

.code-box {
  width: 54px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: #0e0f14;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}

.code-box.active {
  border-color: var(--purple);
  box-shadow: 0 0 16px rgba(255, 179, 60, 0.55);
}

.segmented-code-entry.invalid .code-box {
  border-color: #ff8d84;
  box-shadow: 0 0 14px rgba(255, 95, 95, 0.45);
}

.code-box.empty {
  color: #5b5775;
}

.hidden-code-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.segmented-code-entry {
  position: relative;
  display: inline-block;
  width: max-content;
}

.segmented-code-entry:focus-within .code-box {
  border-color: rgba(244, 240, 221, 0.5);
  transform: translateY(-1px);
}

.segmented-code-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  color: transparent;
  background: transparent;
  caret-color: transparent;
  outline: none;
  opacity: 0.02;
  text-transform: uppercase;
}

.stage-code-entry .code-box {
  width: 50px;
  height: 58px;
  font-size: 27px;
}

.lobby-layout {
  position: absolute;
  inset: 30px 38px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lobby-top {
  display: flex;
  align-items: center;
  gap: 22px;
}

.qr-card {
  width: 104px;
  height: 104px;
  flex: none;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.qr-card canvas {
  width: 100% !important;
  height: 100% !important;
}

.room-code {
  font-size: clamp(58px, 7.2vw, 88px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--code-pop);
  text-shadow:
    4px 5px 0 #2a2030,
    0 16px 34px rgba(0, 0, 0, 0.45);
  transform: rotate(-1deg);
}

.join-copy {
  flex: 1;
}

.copy-under-code {
  margin-top: 10px;
}

.join-kicker {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lobby-actions {
  margin-left: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.player-count {
  color: var(--cream);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plain-action {
  border: 0;
  border-radius: 0;
  padding: 0 0 3px;
  color: var(--cyan);
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plain-action.danger {
  color: #ff8d84;
}

.menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  background: var(--code-pop);
  box-shadow:
    0 5px 0 #8d3029,
    0 14px 24px rgba(0, 0, 0, 0.28);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.host-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 12px);
  right: 0;
  width: 318px;
  padding: 18px;
  color: #fff;
  background: #1c1d28;
  box-shadow:
    0 9px 0 #0f1016,
    0 24px 46px rgba(0, 0, 0, 0.38);
}

.host-menu::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--code-pop);
}

.host-menu-title {
  margin: 8px 0 14px;
  color: var(--code-pop);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.host-menu-option {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 10px 12px;
  color: #111217;
  background: var(--gold);
  box-shadow: 0 4px 0 var(--flame);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.settings-row {
  display: grid;
  gap: 8px;
  margin-top: 13px;
}

.settings-label {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.settings-options {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.settings-choice {
  min-width: 48px;
  border: 0;
  border-radius: 0;
  padding: 8px 10px;
  color: #fff;
  background: #2b2c39;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 4px 0 #140c28;
}

.settings-choice.active {
  color: #fff;
  background: var(--code-pop);
  box-shadow: 0 4px 0 #8d3029;
}

.host-menu-end {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 0;
  padding: 11px 12px;
  color: #fff;
  background: #ff5f5f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 5px 0 #8a2424;
}

.mini-btn {
  border: 0;
  border-radius: 0;
  padding: 7px 4px;
  color: #fff;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.session-menu {
  position: fixed;
  z-index: 30;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
}

.session-menu-trigger {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--code-pop);
  box-shadow:
    0 5px 0 #8d3029,
    0 14px 24px rgba(0, 0, 0, 0.28);
}

.session-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 186px;
  padding: 12px;
  background: #1c1d28;
  box-shadow:
    0 7px 0 #0f1016,
    0 20px 34px rgba(0, 0, 0, 0.34);
}

.session-menu-panel button {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 10px 8px;
  color: #fff;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.session-menu-panel button + button {
  margin-top: 4px;
}

.session-menu-panel .danger {
  color: #ff8d84;
}

.open-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
}

.stage-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-mark {
  position: absolute;
  display: block;
  border: 1px solid rgba(207, 203, 224, 0.08);
  border-radius: 999px;
  opacity: 0.7;
  animation: ambientDrift 12s ease-in-out infinite;
}

.ambient-mark::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(255, 215, 94, 0.08);
  border-radius: inherit;
}

.ambient-mark.mark-a {
  width: 230px;
  height: 78px;
  top: 16%;
  left: 10%;
  transform: rotate(-8deg);
}

.ambient-mark.mark-b {
  width: 320px;
  height: 104px;
  right: 7%;
  bottom: 16%;
  animation-delay: -4s;
  transform: rotate(7deg);
}

.ambient-mark.mark-c {
  width: 180px;
  height: 58px;
  right: 28%;
  top: 34%;
  animation-delay: -8s;
  transform: rotate(-14deg);
}

.ambient-mark.mark-d {
  width: 250px;
  height: 72px;
  left: 24%;
  bottom: 9%;
  animation-delay: -2s;
  transform: rotate(13deg);
}

.ambient-mark.mark-e {
  width: 150px;
  height: 50px;
  left: 44%;
  top: 11%;
  animation-delay: -10s;
  transform: rotate(4deg);
}

.stage-roster {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px 28px;
  width: min(880px, 100%);
  min-height: 260px;
  padding: 20px 20px 56px;
}

.stage-roster.many {
  gap: 14px 20px;
}

.stage-player {
  width: 128px;
  min-width: 106px;
  display: grid;
  justify-items: center;
  gap: 6px;
  animation: floatplayer 4.8s ease-in-out infinite;
}

.stage-player:nth-child(2n) {
  animation-delay: 0.5s;
}

.stage-player:nth-child(3n) {
  animation-delay: 1s;
}

.stage-player.disconnected {
  opacity: 0.52;
  animation: none;
}

.stage-player.disconnected .stage-player-avatar {
  filter: grayscale(1);
}

.stage-player-avatar {
  width: clamp(78px, 9vw, 118px);
  height: clamp(78px, 9vw, 118px);
}

.stage-player-name {
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.disconnect-label {
  color: var(--quiet);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stage-empty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.stage-empty .dots {
  transform: translateY(1px);
}

.start-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.start-btn {
  color: #111217;
  background: var(--gold);
  box-shadow:
    0 7px 0 #ff7e5a,
    0 18px 30px rgba(0, 0, 0, 0.28);
}

.hint {
  min-height: 18px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 500;
}

.answer-layout,
.reveal-layout,
.leaderboard-layout,
.winner-layout,
.awards-layout {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.reveal-layout {
  display: grid;
  grid-template-rows: minmax(118px, auto) minmax(0, 1fr) auto;
  align-items: center;
  justify-items: center;
  gap: 24px;
  padding: clamp(48px, 6.5vh, 76px) 52px 34px;
}

.leaderboard-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 30px;
  padding: 86px 58px 88px;
}

.leaderboard-ambient {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.leader-float {
  position: absolute;
  width: 38px;
  height: 38px;
  opacity: 0.16;
  transform: rotate(14deg);
  animation: leaderboardFloat 9s ease-in-out infinite;
}

.leader-float::before,
.leader-float::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
}

.leader-float::before {
  transform: rotate(45deg) scale(0.58);
}

.leader-float::after {
  border-radius: 50%;
  transform: scale(0.32);
}

.leader-float.float-a {
  top: 18%;
  left: 11%;
  color: var(--gold);
}

.leader-float.float-b {
  top: 62%;
  left: 7%;
  color: var(--cyan);
  animation-delay: -3s;
}

.leader-float.float-c {
  top: 24%;
  right: 12%;
  color: var(--pink);
  animation-delay: -1.5s;
}

.leader-float.float-d {
  right: 17%;
  bottom: 18%;
  color: var(--green-soft);
  animation-delay: -5s;
}

.leader-float.float-e {
  bottom: 9%;
  left: 31%;
  color: #a98bff;
  animation-delay: -6.5s;
}

.stage-round-bug {
  position: absolute;
  z-index: 4;
  top: 34px;
  left: 42px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.95;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.32));
}

.stage-round-bug span {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stage-round-bug strong {
  color: var(--gold);
  font-size: 46px;
  font-weight: 900;
}

.stage-round-bug small {
  color: var(--quiet);
  font-size: 21px;
  font-weight: 900;
}

.top-status {
  position: absolute;
  z-index: 3;
  top: 26px;
  right: max(96px, calc(env(safe-area-inset-right) + 82px));
  left: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.lock-status {
  min-width: max-content;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lock-status strong {
  color: var(--green-soft);
}

.round-pill {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.07);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.answer-center {
  position: absolute;
  top: 90px;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.timer-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timer-ring {
  width: 62px;
  height: 62px;
  transform: rotate(-90deg);
}

.timer-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.timer-text strong {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
}

.timer-text span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.countdown-frame {
  background: #101117;
}

.countdown-layout {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 28px;
  text-align: center;
}

.countdown-number {
  min-width: 168px;
  border-radius: 20px;
  padding: 22px 42px 24px;
  color: #111217;
  background: var(--gold);
  box-shadow:
    0 12px 0 var(--flame),
    0 24px 44px rgba(0, 0, 0, 0.36);
  font-size: clamp(86px, 12vw, 152px);
  line-height: 0.85;
  font-weight: 900;
  animation: countdownPunch 0.5s var(--ease) both;
}

.countdown-number.small {
  min-width: 118px;
  border-radius: 18px;
  padding: 18px 30px 20px;
  box-shadow:
    0 8px 0 var(--flame),
    0 18px 32px rgba(0, 0, 0, 0.3);
  font-size: 78px;
}

.countdown-copy {
  color: var(--text-soft);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.countdown-layout .eyebrow,
.countdown-phone .eyebrow,
.phone-status .eyebrow {
  color: var(--gold);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.prompt-card {
  position: relative;
  padding: 30px 56px;
  border-radius: 20px;
  text-align: center;
  background: #1b1c26;
  box-shadow: 0 18px 60px rgba(255, 179, 60, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: glowpulse 3s ease-in-out infinite;
}

.prompt-card.compact {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  animation: none;
}

.prompt-label {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.prompt-card.compact .prompt-label {
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.prompt-line {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  color: #fff;
  font-size: clamp(42px, 6.1vw, 64px);
  font-weight: 800;
  text-transform: uppercase;
}

.prompt-card.compact .prompt-line {
  gap: 8px;
  font-size: 30px;
}

.blank-line {
  display: inline-block;
  width: 210px;
  height: 0;
  border-bottom: 6px solid var(--gold);
  box-shadow: 0 10px 26px rgba(255, 126, 90, 0.34);
}

.prompt-card.compact .blank-line {
  width: 64px;
  height: 0;
  border-bottom-width: 4px;
}

.lock-row {
  position: absolute;
  right: 32px;
  bottom: 30px;
  left: 32px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.lock-player {
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.lock-avatar {
  position: relative;
  width: 70px;
  height: 70px;
}

.lock-avatar.thinking {
  animation: bob 1.6s ease-in-out infinite;
  opacity: 0.9;
}

.check-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 2px solid var(--slate-1);
  border-radius: 50%;
  color: #072a16;
  background: var(--green);
  box-shadow: 0 0 12px rgba(47, 215, 126, 0.8);
}

.locked-label {
  color: #5fe6a0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dots {
  display: flex;
  gap: 3px;
}

.dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
  animation: dotpulse 1.2s infinite;
}

.dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.dots span:nth-child(3) {
  animation-delay: 0.4s;
}

.screen-head {
  position: absolute;
  z-index: 2;
  top: 48px;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.reveal-layout .screen-head,
.reveal-layout .reveal-groups,
.reveal-layout .empty-state {
  position: static;
}

.leaderboard-layout .screen-head {
  position: static;
}

.screen-title {
  margin: 0;
  color: #fff;
  font-size: 40px;
  font-weight: 800;
}

.reveal-prompt {
  width: min(980px, 100%);
  display: flex;
  align-self: end;
  justify-content: center;
}

.reveal-prompt-line {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  color: #fff;
  font-size: clamp(54px, 7.2vw, 82px);
  line-height: 0.95;
  font-weight: 900;
  text-transform: uppercase;
}

.reveal-prompt-line .blank-line {
  width: clamp(150px, 18vw, 260px);
  height: 0;
  margin-bottom: 0.08em;
}

.reveal-groups {
  position: absolute;
  z-index: 2;
  top: 150px;
  right: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  padding: 0 40px;
}

.reveal-layout .reveal-groups {
  align-self: center;
  max-width: min(1040px, 100%);
  flex-wrap: wrap;
  padding: 0;
  gap: 26px;
  margin-top: 0;
}

.answer-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: scoreboardRise 0.4s var(--ease) both;
}

.group-members {
  display: flex;
  gap: 0;
}

.member {
  width: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.member-avatar {
  width: 66px;
  height: 66px;
}

.word-card {
  min-width: 142px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  border-radius: 14px;
}

.word-card.gold {
  background: var(--gold);
  box-shadow: 0 7px 0 var(--flame), 0 18px 34px rgba(0, 0, 0, 0.28);
}

.word-card.silver {
  background: #d7dbe6;
  box-shadow: 0 7px 0 #8f96aa, 0 18px 34px rgba(0, 0, 0, 0.24);
}

.word-card.zero {
  background: #232433;
  box-shadow: 0 7px 0 #111217, 0 18px 34px rgba(0, 0, 0, 0.22);
}

.word-card strong {
  color: #111217;
  font-size: 26px;
  font-weight: 800;
}

.word-card.zero strong {
  color: #fff;
}

.points-pill {
  border-radius: 999px;
  padding: 0;
  font-size: 16px;
  font-weight: 800;
}

.points-pill.gold {
  color: #2a1c00;
  background: transparent;
  box-shadow: none;
}

.points-pill.silver {
  color: var(--ink);
  background: transparent;
}

.points-pill.zero {
  color: var(--muted);
  background: transparent;
}

.outcome-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.outcome-label.gold {
  color: var(--gold-dark);
}

.outcome-label.silver {
  color: #9aa0b0;
}

.outcome-label.zero {
  color: var(--quiet);
}

.reveal-next {
  display: flex;
  align-self: end;
  justify-content: center;
  margin-top: 0;
}

.reveal-next-btn {
  min-width: 190px;
}

.leaderboard-list {
  position: static;
  z-index: 2;
  width: min(880px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.leaderboard-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0 18px 15px;
  color: #fff;
  font-size: clamp(48px, 6vw, 74px);
  line-height: 0.9;
  font-weight: 900;
  text-transform: uppercase;
  transform: rotate(-1deg);
  text-shadow:
    4px 5px 0 var(--flame),
    8px 9px 0 #25202e,
    0 16px 34px rgba(0, 0, 0, 0.34);
}

.leaderboard-title-icon {
  display: inline-grid;
  place-items: center;
  transform: rotate(8deg) translateY(-2px);
  filter: drop-shadow(5px 6px 0 #25202e);
}

.leaderboard-title::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 0;
  left: 24px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 5px 0 var(--gold-dark);
  transform: skewX(-14deg);
}

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

.rank-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  min-height: 64px;
  border: 0;
  border-radius: 14px;
  padding: 10px 18px 16px 20px;
  color: var(--rank-ink, #15120c);
  background: var(--rank-bg, var(--gold));
  box-shadow:
    0 7px 0 var(--rank-shadow, var(--gold-dark)),
    0 18px 32px rgba(0, 0, 0, 0.22);
  animation: scoreboardRise 0.4s var(--ease) both;
}

.rank-row.palette-gold,
.rank-row.palette-0 {
  --rank-bg: #ffd75e;
  --rank-shadow: #ff9d24;
  --rank-ink: #2c1800;
}

.rank-row.palette-cyan,
.rank-row.palette-1 {
  --rank-bg: #34d7e0;
  --rank-shadow: #0798a5;
  --rank-ink: #042d33;
}

.rank-row.palette-pink,
.rank-row.palette-2 {
  --rank-bg: #ff7eb6;
  --rank-shadow: #df3e88;
  --rank-ink: #36101f;
}

.rank-row.palette-mint,
.rank-row.palette-3 {
  --rank-bg: #7cffc4;
  --rank-shadow: #22b977;
  --rank-ink: #052619;
}

.rank-row.palette-lavender,
.rank-row.palette-4 {
  --rank-bg: #a98bff;
  --rank-shadow: #7352ef;
  --rank-ink: #21123d;
}

.rank-num {
  width: 44px;
  text-align: center;
  color: var(--rank-ink, #15120c);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.26);
  font-size: 26px;
  font-weight: 900;
}

.rank-avatar {
  width: 44px;
  height: 44px;
  flex: none;
}

.rank-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  color: var(--rank-ink, #15120c);
  font-size: 17px;
  font-weight: 900;
}

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: none;
  min-width: 34px;
  border-radius: 999px;
  padding: 3px 7px 4px;
  color: #ff3d2e;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.16);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.streak-badge svg {
  flex: none;
}

.streak-badge span {
  color: var(--rank-ink, #15120c);
}

.leader-crown {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-left: -2px;
  padding: 2px 5px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.16);
}

.leader-crown svg {
  flex: none;
}

.rank-score {
  width: 52px;
  text-align: right;
  color: var(--rank-ink, #15120c);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.24);
  font-size: 30px;
  font-weight: 900;
}

.score-delta {
  display: inline-flex;
  justify-content: flex-end;
  width: 64px;
  text-align: right;
  color: var(--rank-ink, #15120c);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  opacity: 0.78;
}

.score-delta.moved-up {
  color: #036230;
}

.score-delta.moved-down {
  color: #8b1132;
}

.leaderboard-prizes {
  display: flex;
  justify-content: center;
  gap: 16px 26px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.leaderboard-prize {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0;
  --prize-color: var(--gold);
  color: var(--prize-color);
  background: transparent;
  box-shadow: none;
  font-weight: 900;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.28);
}

.leaderboard-prize svg {
  flex: none;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.25));
}

.leaderboard-prize-label,
.leaderboard-prize-detail,
.leaderboard-prize-name {
  display: inline;
}

.leaderboard-prize-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.leaderboard-prize-name {
  border-radius: 999px;
  padding: 3px 8px 4px;
  color: #111217;
  background: var(--prize-color);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.24);
  font-size: 14px;
  font-weight: 900;
  text-shadow: none;
}

.leaderboard-prize-detail {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
}

.leaderboard-prize.cyan {
  --prize-color: #66f3ff;
}

.leaderboard-prize.gold {
  --prize-color: #ffd75e;
}

.leaderboard-prize.flame {
  --prize-color: #ff9b78;
}

.leaderboard-prize.quiet {
  --prize-color: #fff;
  background: transparent;
  box-shadow: none;
}

.rank-row.moved-up,
.rank-row.moved-down {
  will-change: transform;
  animation: rankSlideIntoPlace 1.2s var(--ease) both;
}

.stage-actions {
  align-items: center;
}

.stage-action-hint {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.stage-actions .mini-btn:disabled {
  opacity: 0.42;
}

.btn.is-disabled,
.mini-btn.is-disabled {
  opacity: 0.46;
}

.winner-head {
  position: absolute;
  z-index: 3;
  top: 34px;
  right: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
  text-align: center;
  animation: winnerHeadDrop 0.58s var(--ease) 0.14s both;
}

.winner-title {
  color: #fff;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.winner-subtitle {
  max-width: 780px;
  color: var(--gold);
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.08;
  font-weight: 900;
}

.podium {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 92px;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
}

.winner-celebration {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.confetti-field {
  position: absolute;
  inset: 0;
}

.confetti-piece {
  position: absolute;
  top: -10vh;
  left: var(--confetti-left);
  width: var(--confetti-width);
  height: var(--confetti-height);
  border-radius: 2px;
  background: var(--confetti-color);
  opacity: 0.92;
  transform: translate3d(0, 0, 0) rotate(var(--confetti-rotation));
  animation: confettiFall var(--confetti-duration) linear infinite;
  animation-delay: var(--confetti-delay);
  will-change: transform;
}

.confetti-piece:nth-child(3n) {
  border-radius: 999px;
}

.confetti-piece:nth-child(4n) {
  width: calc(var(--confetti-width) * 1.8);
  height: calc(var(--confetti-height) * 0.45);
}

.sparkler {
  position: absolute;
  bottom: 152px;
  width: 128px;
  height: 128px;
  filter: drop-shadow(0 0 22px rgba(255, 215, 94, 0.42));
}

.sparkler.left {
  left: clamp(18px, 8vw, 112px);
}

.sparkler.right {
  right: clamp(18px, 8vw, 112px);
}

.sparkler span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent 0%, #fff7b8 24%, var(--gold) 60%, transparent 100%);
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotate(calc(var(--spark-index) * 36deg)) scaleY(0.28);
  animation: sparkRay 1s ease-out infinite;
  animation-delay: calc(var(--spark-index) * -72ms);
}

.podium-place {
  width: clamp(128px, 18vw, 200px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(58px) scale(0.98);
  animation: podiumPlaceRise 0.72s var(--ease) var(--podium-delay) both;
  will-change: transform, opacity;
}

.podium-rank-label {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  animation: podiumTextPop 0.4s var(--ease) calc(var(--podium-delay) + 0.42s) both;
}

.podium-avatar {
  position: relative;
  width: min(var(--podium-avatar-size), 16vw);
  height: min(var(--podium-avatar-size), 16vw);
  opacity: 0;
  transform: translateY(22px) scale(0.72);
  animation-name: podiumAvatarPop, bob;
  animation-duration: 0.56s, 3s;
  animation-timing-function: var(--ease), ease-in-out;
  animation-delay: calc(var(--podium-delay) + 0.36s), calc(var(--podium-delay) + 1s);
  animation-iteration-count: 1, infinite;
  animation-fill-mode: both, none;
}

.podium-avatar::before {
  content: "";
  position: absolute;
  inset: -16%;
  z-index: -1;
  border: 2px solid rgba(255, 215, 94, 0.34);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.72);
  animation: winnerHalo 1.8s ease-out calc(var(--podium-delay) + 0.72s) infinite;
}

.podium-place.place-1 .podium-avatar::before {
  border-color: rgba(255, 215, 94, 0.72);
  box-shadow: 0 0 28px rgba(255, 215, 94, 0.22);
}

.podium-avatar .avatar-svg {
  position: relative;
  z-index: 1;
}

.podium-name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(10px);
  animation: podiumTextPop 0.42s var(--ease) calc(var(--podium-delay) + 0.5s) both;
}

.podium-block {
  width: 100%;
  height: min(var(--podium-height), 35vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-radius: 14px 14px 0 0;
  padding-top: 16px;
  background: var(--podium-color);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  animation: podiumBlockRise 0.72s cubic-bezier(0.2, 0.78, 0.24, 1) var(--podium-delay) both;
}

.podium-block strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 40px;
  font-weight: 800;
}

.podium-block span {
  margin-top: auto;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #fff;
  font-weight: 800;
}

.podium-block b {
  font-size: 24px;
}

.podium-block small {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-actions.final-actions {
  bottom: 24px;
}

.final-phone-cue {
  margin-top: 12px;
}

.awards-grid {
  position: absolute;
  z-index: 2;
  inset: 120px 44px 40px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 18px;
}

.award-card {
  width: 294px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  background: #1b1c26;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
  animation: rise 0.5s var(--ease) both;
}

.award-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 14px;
}

.award-copy {
  flex: 1;
  min-width: 0;
}

.award-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.award-name {
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}

.award-stat {
  color: var(--muted);
  font-size: 12px;
}

.award-avatar {
  width: 50px;
  height: 50px;
  flex: none;
}

.stage-actions {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 28px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.stage-actions .mini-btn {
  backdrop-filter: blur(6px);
}

.stage-actions .next-round-btn {
  min-width: 178px;
  padding: 15px 28px 17px;
  color: #111217;
  background: var(--gold);
  box-shadow:
    0 7px 0 var(--flame),
    0 18px 30px rgba(0, 0, 0, 0.28);
  font-size: 15px;
  font-weight: 900;
}

.host-block-overlay {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 8, 11, 0.72);
  backdrop-filter: blur(8px);
}

.confirm-overlay {
  position: fixed;
  z-index: 45;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 8, 11, 0.72);
  backdrop-filter: blur(8px);
}

.confirm-modal {
  width: min(450px, 100%);
  padding: 30px 32px 28px;
  color: #fff;
  background: #1c1d28;
  box-shadow:
    0 9px 0 #0f1016,
    0 24px 46px rgba(0, 0, 0, 0.4);
}

.confirm-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.confirm-modal h2 {
  margin: 8px 0 8px;
  font-size: 34px;
  line-height: 1;
}

.confirm-modal p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.45;
}

.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.btn.danger {
  color: #fff;
  background: #ff5f5f;
  box-shadow: 0 6px 0 #8a2424;
}

.host-block-panel {
  width: min(460px, 100%);
  padding: 30px 32px 28px;
  color: #fff;
  text-align: center;
  background: #17181f;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}

.host-block-kicker {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.host-block-panel h2 {
  margin: 7px 0 10px;
  font-size: 34px;
  line-height: 1.05;
}

.host-block-panel p {
  margin: 0 auto;
  max-width: 350px;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.45;
}

.host-block-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.mini-btn.ghost {
  color: var(--text-soft);
}

.mini-btn.danger {
  color: #ff8585;
}

.toast {
  position: fixed;
  z-index: 30;
  top: 18px;
  left: 50%;
  max-width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%);
  border: 1px solid rgba(255, 179, 60, 0.28);
  border-radius: 12px;
  padding: 10px 14px;
  color: #fff;
  background: rgba(20, 17, 30, 0.92);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  font-size: 13px;
  font-weight: 600;
}

.slime-transition {
  position: fixed;
  z-index: 70;
  inset: 0;
  overflow: hidden;
  cursor: wait;
  pointer-events: auto;
}

.slime-sheet {
  position: absolute;
  right: -10vw;
  bottom: -124vh;
  left: -10vw;
  height: 124vh;
  background:
    radial-gradient(ellipse at 18% 18%, rgba(255, 255, 255, 0.34), transparent 0 5%, transparent 11%),
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.2), transparent 0 3%, transparent 8%),
    radial-gradient(circle at 34% 46%, rgba(11, 95, 51, 0.24), transparent 0 3%, transparent 7%),
    radial-gradient(circle at 62% 58%, rgba(255, 255, 255, 0.12), transparent 0 2%, transparent 6%),
    radial-gradient(circle at 84% 48%, rgba(10, 93, 50, 0.2), transparent 0 4%, transparent 9%),
    repeating-radial-gradient(circle at 48% 54%, rgba(255, 255, 255, 0.09) 0 1px, transparent 2px 28px),
    linear-gradient(180deg, #aaffd7 0%, #45e99b 34%, #25bd70 72%, #159554 100%);
  border-radius: 48% 52% 0 0 / 7% 9% 0 0;
  box-shadow:
    0 -18px 48px rgba(124, 255, 196, 0.24),
    inset 0 18px 34px rgba(255, 255, 255, 0.22),
    inset 0 -20px 30px rgba(0, 88, 46, 0.18);
  filter: saturate(1.08);
  will-change: transform;
  animation: slimeWipe 1.05s cubic-bezier(0.66, 0, 0.2, 1) both;
  animation-delay: var(--slime-progress, 0ms);
}

.slime-sheet::before {
  content: "";
  position: absolute;
  top: -76px;
  right: 0;
  left: 0;
  height: 138px;
  background:
    radial-gradient(circle at 7% 78%, #45e99b 0 58px, transparent 60px),
    radial-gradient(circle at 18% 52%, #aaffd7 0 78px, transparent 80px),
    radial-gradient(circle at 33% 72%, #45e99b 0 54px, transparent 56px),
    radial-gradient(circle at 49% 46%, #7cffc4 0 92px, transparent 94px),
    radial-gradient(circle at 66% 72%, #45e99b 0 56px, transparent 58px),
    radial-gradient(circle at 82% 50%, #aaffd7 0 76px, transparent 78px),
    radial-gradient(circle at 96% 76%, #45e99b 0 60px, transparent 62px);
  filter: drop-shadow(0 -12px 20px rgba(124, 255, 196, 0.16));
  transform-origin: 50% 100%;
  animation: slimeLip 1.05s cubic-bezier(0.66, 0, 0.2, 1) both;
  animation-delay: var(--slime-progress, 0ms);
}

.slime-sheet::after {
  content: "";
  position: absolute;
  top: -18px;
  right: 8vw;
  left: 8vw;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  filter: blur(8px);
  opacity: 0.8;
}

.slime-drip,
.slime-bubble,
.slime-ridge {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.slime-ridge {
  right: 14vw;
  left: 14vw;
  height: 18px;
  background:
    radial-gradient(ellipse at 18% 50%, rgba(255, 255, 255, 0.38), transparent 42%),
    radial-gradient(ellipse at 72% 50%, rgba(255, 255, 255, 0.22), transparent 44%);
  filter: blur(5px);
  opacity: 0;
  animation: slimeRidge 1.05s ease-in-out both;
  animation-delay: var(--slime-progress, 0ms);
}

.slime-ridge.ridge-a {
  top: 16%;
}

.slime-ridge.ridge-b {
  top: 39%;
  right: 22vw;
  left: 20vw;
  animation-delay: calc(var(--slime-progress, 0ms) + 80ms);
}

.slime-drip {
  top: -20px;
  width: 34px;
  height: 92px;
  background: #45e99b;
  box-shadow: inset 7px 10px 0 rgba(255, 255, 255, 0.18);
  transform-origin: 50% 0;
  animation: slimeDrip 1.05s ease-in-out both;
  animation-delay: var(--slime-progress, 0ms);
}

.slime-drip.drip-a {
  left: 24%;
  height: 112px;
  animation-delay: calc(var(--slime-progress, 0ms) + 60ms);
}

.slime-drip.drip-b {
  left: 52%;
  width: 28px;
  height: 86px;
  animation-delay: calc(var(--slime-progress, 0ms) + 140ms);
}

.slime-drip.drip-c {
  right: 22%;
  width: 42px;
  height: 124px;
  animation-delay: calc(var(--slime-progress, 0ms) + 20ms);
}

.slime-drip.drip-d {
  right: 39%;
  width: 22px;
  height: 72px;
  animation-delay: calc(var(--slime-progress, 0ms) + 210ms);
}

.slime-bubble {
  width: 18px;
  height: 18px;
  opacity: 0.75;
  animation: slimeBubble 0.9s ease-out both;
  animation-delay: var(--slime-progress, 0ms);
}

.slime-bubble.bubble-a {
  top: 18%;
  left: 22%;
}

.slime-bubble.bubble-b {
  top: 34%;
  right: 31%;
  width: 26px;
  height: 26px;
  animation-delay: calc(var(--slime-progress, 0ms) + 120ms);
}

.slime-bubble.bubble-c {
  top: 58%;
  left: 61%;
  width: 13px;
  height: 13px;
  animation-delay: calc(var(--slime-progress, 0ms) + 240ms);
}

.slime-bubble.bubble-d {
  top: 44%;
  left: 39%;
  width: 10px;
  height: 10px;
  animation-delay: calc(var(--slime-progress, 0ms) + 330ms);
}

.controller-page {
  min-height: 100vh;
  display: block;
  padding: 0;
  background: #07080b;
}

.phone-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  background: #101117;
}

.phone-content {
  position: absolute;
  z-index: 2;
  top: max(34px, env(safe-area-inset-top));
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  width: min(390px, calc(100vw - 40px));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
}

.phone-content.centered {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.phone-content.join-content {
  top: max(56px, env(safe-area-inset-top));
  bottom: auto;
  min-height: 0;
  justify-content: flex-start;
}

.join-submit {
  width: 100%;
  margin-top: 18px;
}

.phone-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
}

.phone-wordmark .top,
.phone-wordmark .bottom {
  font-size: 40px;
  font-weight: 800;
}

.phone-wordmark .top {
  color: #fff;
}

.phone-wordmark .bottom-row {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 0 9px 5px;
  border-bottom: 4px solid var(--gold);
  box-shadow: 0 8px 16px rgba(255, 126, 90, 0.26);
}

.phone-wordmark .bottom {
  color: var(--gold);
}

.phone-wordmark .caret {
  width: 3px;
  height: 27px;
  margin-bottom: 5px;
}

.phone-copy {
  margin-top: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 500;
}

.phone-code-entry {
  margin-top: 22px;
}

.phone-code {
  gap: 9px;
  margin: 0;
}

.phone-code .code-box {
  width: 54px;
  height: 66px;
  border-radius: 11px;
}

.phone-title {
  margin: 4px 0 2px;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 10px 0 12px;
}

.character-button {
  position: relative;
  height: 82px;
  border: 0;
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.character-button.selected::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--purple);
  border-radius: 16px;
  box-shadow: 0 0 18px rgba(255, 179, 60, 0.68);
}

.character-button.taken {
  filter: grayscale(1);
  opacity: 0.42;
}

.character-button.taken::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: rgba(16, 17, 23, 0.42);
}

.taken-badge {
  position: absolute;
  z-index: 2;
  right: 7px;
  bottom: 7px;
  border-radius: 999px;
  padding: 3px 7px;
  color: #101117;
  background: var(--cream);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selected-badge {
  position: absolute;
  z-index: 2;
  top: -7px;
  right: -7px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 2px solid #101117;
  border-radius: 50%;
  color: #111217;
  background: var(--purple);
}

.phone-label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.line-input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 0;
  padding: 6px 2px;
  color: #fff;
  background: transparent;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  outline: none;
}

.line-input + .btn {
  margin-top: 18px;
}

.waiting-content {
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.waiting-avatar {
  width: 116px;
  height: 116px;
}

.waiting-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.waiting-card strong {
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.waiting-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.mobile-host-lobby {
  align-items: center;
  text-align: center;
}

.mobile-host-lobby .eyebrow {
  margin-top: 12px;
}

.mobile-room-code {
  margin-top: 6px;
  color: var(--code-pop);
  font-size: 56px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-shadow:
    3px 4px 0 #2a2030,
    0 14px 28px rgba(0, 0, 0, 0.4);
}

.copy-mobile {
  margin-top: 12px;
}

.mobile-host-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

.mobile-menu-trigger {
  padding: 8px 12px;
  box-shadow:
    0 4px 0 #8d3029,
    0 12px 20px rgba(0, 0, 0, 0.22);
}

.host-menu.mobile {
  position: relative;
  top: auto;
  right: auto;
  width: 100%;
  margin-top: 14px;
  padding: 16px 14px;
  text-align: left;
}

.host-menu.mobile .settings-options {
  justify-content: flex-start;
}

.mobile-host-roster {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.mobile-host-lobby .start-btn {
  margin-top: 18px;
}

.mobile-player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  background: transparent;
}

.mobile-player-row.disconnected {
  opacity: 0.55;
}

.mobile-player-avatar {
  width: 38px;
  height: 38px;
  flex: none;
}

.mobile-player-row.disconnected .mobile-player-avatar {
  filter: grayscale(1);
}

.mobile-player-row span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  text-align: left;
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-player-row strong {
  color: var(--green-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-player-row.disconnected strong {
  color: var(--quiet);
}

.mobile-empty {
  padding: 14px 0;
  color: var(--quiet);
  font-size: 13px;
  font-weight: 700;
}

.turn-content {
  justify-content: center;
  gap: 0;
}

.turn-prompt {
  margin-top: 18px;
}

.answer-label {
  margin-top: 16px;
}

.answer-input {
  width: 100%;
  border: 2px solid var(--purple);
  border-radius: 14px;
  padding: 13px 16px;
  color: #fff;
  background: #0e0f14;
  box-shadow: 0 0 18px rgba(255, 179, 60, 0.36);
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  outline: none;
}

.answer-helper {
  margin-top: 10px;
  color: var(--quiet);
  text-align: center;
  font-size: 12px;
}

.lock-answer-btn {
  width: 100%;
  margin-top: 14px;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.phone-timer {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gold);
  font-size: 15px;
  font-weight: 800;
}

.lock-success {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin-top: 40px;
  border: 2px solid rgba(47, 215, 126, 0.5);
  border-radius: 50%;
  color: var(--green);
  background: rgba(47, 215, 126, 0.14);
  box-shadow: 0 0 36px rgba(47, 215, 126, 0.35);
}

.locked-title {
  margin-top: 24px;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
}

.word-chip {
  margin-top: 10px;
  border: 1px solid rgba(255, 179, 60, 0.32);
  border-radius: 12px;
  padding: 8px 22px;
  color: #fff;
  background: rgba(255, 179, 60, 0.12);
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
}

.look-up {
  margin-top: 30px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
}

.result-kicker {
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.result-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}

.result-pair.solo {
  margin-top: 18px;
}

.result-avatar {
  width: 86px;
  height: 86px;
}

.plus-node {
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin: 0 -10px;
  border: 3px solid #16151e;
  border-radius: 50%;
  color: #2a1c00;
  background: var(--gold-dark);
  box-shadow: 0 0 20px rgba(255, 179, 60, 0.7);
  font-size: 20px;
  font-weight: 800;
}

.result-copy {
  max-width: 330px;
  margin-top: 16px;
  color: var(--text-soft);
  text-align: center;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}

.result-word {
  margin-top: 6px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
}

.result-points {
  margin-top: 10px;
  color: var(--gold-dark);
  filter: drop-shadow(0 6px 18px rgba(255, 179, 60, 0.4));
  font-size: 56px;
  font-weight: 800;
}

.result-empty-mark {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(255, 215, 94, 0.08);
  box-shadow: inset 0 0 0 2px rgba(255, 215, 94, 0.2);
  font-size: 48px;
  font-weight: 900;
  animation: wobble 1.7s var(--ease) infinite;
}

.result-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.result-note > span:first-child {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-note.zero > span:first-child {
  color: var(--cyan);
}

.result-note-copy {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.field-message,
.phone-error {
  min-height: 18px;
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

.field-message.neutral {
  color: var(--quiet);
}

.field-message.pending {
  color: var(--gold);
}

.field-message.success {
  color: var(--green-soft);
}

.field-message.error,
.phone-error {
  color: #ff8d84;
}

.line-input.invalid {
  border-bottom-color: #ff8d84;
}

.spacer {
  flex: 1;
}

.empty-state {
  position: absolute;
  inset: 180px 60px 120px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  font-size: 18px;
  font-weight: 600;
}

.reveal-empty {
  gap: 10px;
  color: #fff;
}

.miss-graphic {
  position: relative;
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
}

.miss-graphic strong {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #111217;
  background: var(--gold);
  box-shadow: 0 7px 0 var(--flame), 0 18px 32px rgba(0, 0, 0, 0.3);
  font-size: 52px;
  font-weight: 900;
  animation: softPop 1.5s ease-in-out infinite;
}

.miss-ring,
.miss-bubble {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.miss-ring {
  inset: 12px;
  border: 2px solid rgba(255, 215, 94, 0.2);
  animation: ringPulse 1.8s ease-in-out infinite;
}

.miss-ring.ring-b {
  inset: 28px;
  border-color: rgba(52, 215, 224, 0.18);
  animation-delay: 0.35s;
}

.miss-bubble {
  width: 22px;
  height: 22px;
  background: var(--cyan);
  animation: bubbleBob 2.1s ease-in-out infinite;
}

.miss-bubble.bubble-a {
  top: 20px;
  right: 12px;
}

.miss-bubble.bubble-b {
  bottom: 16px;
  left: 16px;
  width: 16px;
  height: 16px;
  background: var(--flame);
  animation-delay: 0.45s;
}

.empty-kicker {
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.empty-copy {
  color: var(--text-soft);
  font-size: 15px;
  font-weight: 700;
}

.avatar-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.avatar-body {
  transform-origin: 50% 50%;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes bobx {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-9px) rotate(3deg);
  }
}

@keyframes dotpulse {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pop {
  0% {
    transform: scale(0.55);
    opacity: 0;
  }
  62% {
    transform: scale(1.09);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes softPop {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.04);
  }
}

@keyframes ringPulse {
  0%,
  100% {
    transform: scale(0.92);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.9;
  }
}

@keyframes bubbleBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes wobble {
  0%,
  100% {
    transform: rotate(-2deg) scale(1);
  }
  50% {
    transform: rotate(2deg) scale(1.04);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes glowpulse {
  0%,
  100% {
    box-shadow: 0 18px 60px rgba(255, 179, 60, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow: 0 20px 70px rgba(255, 126, 90, 0.26), inset 0 0 0 1px rgba(255, 179, 60, 0.14);
  }
}

@keyframes rise {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scoreboardRise {
  0% {
    transform: translateY(12px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes rankSlideUp {
  0% {
    transform: translateY(14px) scale(0.99);
  }
  65% {
    transform: translateY(-3px) scale(1.005);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes rankSlideDown {
  0% {
    transform: translateY(-14px) scale(0.99);
  }
  65% {
    transform: translateY(3px) scale(1.005);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes rankSlideIntoPlace {
  0% {
    transform: translateY(var(--rank-shift, 0));
  }
  74% {
    transform: translateY(0);
  }
  88% {
    transform: translateY(calc(var(--rank-shift, 0) * -0.08));
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes countdownPunch {
  0% {
    transform: translateY(8px) scale(0.96);
  }
  70% {
    transform: translateY(-3px) scale(1.03);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes leaderboardFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(14deg);
  }
  50% {
    transform: translate3d(18px, -20px, 0) rotate(-8deg);
  }
}

@keyframes floatplayer {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}

@keyframes ambientDrift {
  0%,
  100% {
    translate: 0 0;
    opacity: 0.42;
  }
  50% {
    translate: 18px -10px;
    opacity: 0.78;
  }
}

@keyframes slimeWipe {
  0% {
    border-radius: 46% 54% 0 0 / 6% 10% 0 0;
    transform: translate3d(0, 0, 0) scaleX(1.05) skewX(0deg);
  }
  18% {
    border-radius: 53% 47% 0 0 / 10% 6% 0 0;
    transform: translate3d(0, -48vh, 0) scaleX(0.985) skewX(-1.4deg);
  }
  42% {
    border-radius: 42% 58% 0 0 / 7% 12% 0 0;
    transform: translate3d(0, -114vh, 0) scaleX(1.035) skewX(1deg);
  }
  68% {
    border-radius: 56% 44% 0 0 / 12% 7% 0 0;
    transform: translate3d(0, -111vh, 0) scaleX(1.015) skewX(-0.6deg);
  }
  86% {
    border-radius: 44% 56% 0 0 / 8% 11% 0 0;
    transform: translate3d(0, -38vh, 0) scaleX(1.04) skewX(0.8deg);
  }
  100% {
    border-radius: 50% 50% 0 0 / 8% 8% 0 0;
    transform: translate3d(0, 0, 0) scaleX(1) skewX(0deg);
  }
}

@keyframes slimeLip {
  0% {
    transform: translateX(-1.4vw) scaleY(0.9);
  }
  24% {
    transform: translateX(1.2vw) scaleY(1.16);
  }
  48% {
    transform: translateX(-0.8vw) scaleY(0.94);
  }
  74% {
    transform: translateX(0.7vw) scaleY(1.08);
  }
  100% {
    transform: translateX(0) scaleY(1);
  }
}

@keyframes slimeRidge {
  0%,
  26% {
    transform: translateY(20px) scaleX(0.68);
    opacity: 0;
  }
  48% {
    transform: translateY(0) scaleX(1.08);
    opacity: 0.72;
  }
  100% {
    transform: translateY(-16px) scaleX(0.88);
    opacity: 0;
  }
}

@keyframes slimeDrip {
  0%,
  38% {
    transform: scaleY(0.35);
    opacity: 0;
  }
  54% {
    transform: translateX(3px) scaleY(1.08);
    opacity: 1;
  }
  72% {
    transform: translateX(-4px) scaleY(0.9);
    opacity: 0.68;
  }
  100% {
    transform: translateX(0) scaleY(0.58);
    opacity: 0.35;
  }
}

@keyframes slimeBubble {
  0%,
  32% {
    transform: translateY(16px) scale(0.4);
    opacity: 0;
  }
  62% {
    transform: translateY(-2px) scale(1);
    opacity: 0.75;
  }
  100% {
    transform: translateY(-34px) scale(0.7);
    opacity: 0;
  }
}

@keyframes winnerHeadDrop {
  0% {
    transform: translateY(-22px) scale(0.98);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes podiumPlaceRise {
  0% {
    transform: translateY(58px) scale(0.98);
    opacity: 0;
  }
  72% {
    transform: translateY(-6px) scale(1.015);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes podiumBlockRise {
  0% {
    transform: scaleY(0);
  }
  74% {
    transform: scaleY(1.04);
  }
  100% {
    transform: scaleY(1);
  }
}

@keyframes podiumAvatarPop {
  0% {
    transform: translateY(22px) scale(0.72) rotate(-4deg);
    opacity: 0;
  }
  70% {
    transform: translateY(-8px) scale(1.08) rotate(3deg);
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes podiumTextPop {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes winnerHalo {
  0% {
    transform: scale(0.72);
    opacity: 0;
  }
  28% {
    opacity: 0.72;
  }
  100% {
    transform: scale(1.24);
    opacity: 0;
  }
}

@keyframes confettiFall {
  0% {
    transform: translate3d(0, -12vh, 0) rotate(var(--confetti-rotation));
  }
  100% {
    transform: translate3d(var(--confetti-drift), 118vh, 0) rotate(calc(var(--confetti-rotation) + 720deg));
  }
}

@keyframes sparkRay {
  0% {
    opacity: 0;
    transform: translate(-50%, -100%) rotate(calc(var(--spark-index) * 36deg)) scaleY(0.18);
  }
  34% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -100%) rotate(calc(var(--spark-index) * 36deg)) scaleY(1.08);
  }
}

@media (max-width: 900px) {
  .lobby-top {
    gap: 16px;
  }

  .host-menu {
    width: min(318px, calc(100vw - 48px));
  }

  .stage-roster {
    gap: 14px 18px;
  }

  .prompt-card {
    transform: scale(0.82);
  }

  .lock-row {
    gap: 8px;
  }

  .reveal-groups {
    gap: 12px;
    padding: 0 22px;
    transform: scale(0.86);
  }

  .leaderboard-list {
    inset-inline: 32px;
  }
}

@media (max-height: 760px) {
  .lobby-layout {
    inset: 16px 28px;
    gap: 8px;
  }

  .lobby-top {
    gap: 16px;
  }

  .qr-card {
    width: 76px;
    height: 76px;
    padding: 6px;
    border-radius: 11px;
  }

  .room-code {
    font-size: clamp(44px, 6vw, 64px);
  }

  .lobby-actions {
    gap: 8px;
  }

  .stage-roster {
    min-height: 220px;
    gap: 10px 16px;
    padding-bottom: 36px;
  }

  .stage-player {
    width: 104px;
  }

  .stage-player-avatar {
    width: 72px;
    height: 72px;
  }

  .start-area {
    gap: 5px;
  }

  .start-area .btn.big {
    padding: 12px 30px;
    font-size: 16px;
  }

  .hint {
    min-height: 14px;
  }
}

@media (max-width: 767px) {
  .stage-frame {
    min-height: 100vh;
  }

  .home-content {
    justify-content: center;
    padding: 0 26px;
  }

  .wordmark .top,
  .wordmark .bottom {
    font-size: clamp(52px, 17vw, 72px);
  }

  .wordmark .bottom-row {
    border-bottom-width: 6px;
  }

  .caret {
    height: 45px;
  }

  .subhead {
    max-width: 310px;
    font-size: 16px;
    line-height: 1.45;
  }

  .button-row {
    width: min(330px, 100%);
    flex-direction: column;
    gap: 12px;
  }

  .button-row .btn {
    width: 100%;
  }

  .choose-content {
    justify-content: flex-start;
    overflow-y: auto;
    padding: 78px 22px 30px;
  }

  .choice-grid {
    width: 100%;
    flex-direction: column;
    gap: 14px;
  }

  .choice-card {
    width: 100%;
    min-height: auto;
    padding: 20px;
  }

  .how-content,
  .mobile-host-content {
    justify-content: flex-start;
    overflow-y: auto;
    padding: 82px 24px 30px;
  }

  .how-content h1,
  .mobile-host-content h1 {
    font-size: 34px;
  }

  .mobile-host-content p {
    font-size: 15px;
  }

  .how-steps {
    grid-template-columns: 1fr;
  }

  .how-board {
    grid-template-columns: 1fr;
  }

  .phone-content {
    top: max(30px, env(safe-area-inset-top));
    width: min(360px, calc(100vw - 44px));
  }

  .phone-content.join-content {
    top: max(42px, env(safe-area-inset-top));
  }

  .top-status {
    top: 18px;
    right: max(78px, calc(env(safe-area-inset-right) + 66px));
    left: 18px;
    gap: 10px;
  }

  .lock-status {
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .round-pill {
    padding: 8px 12px;
    font-size: 13px;
    letter-spacing: 0.08em;
  }

  .countdown-layout .eyebrow,
  .countdown-phone .eyebrow,
  .phone-status .eyebrow {
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .phone-code {
    margin-top: 24px;
  }

  .character-button {
    height: 72px;
  }

  .phone-title {
    font-size: 23px;
  }

  .line-input + .btn {
    margin-top: 14px;
  }

  .winner-head {
    top: 58px;
  }

  .winner-title {
    font-size: 38px;
  }

  .winner-subtitle {
    max-width: 320px;
    font-size: 20px;
  }

  .podium {
    bottom: 112px;
    gap: 8px;
  }

  .sparkler {
    bottom: 126px;
    width: 82px;
    height: 82px;
    opacity: 0.72;
  }

  .sparkler span {
    height: 36px;
  }

  .podium-place {
    width: clamp(86px, 29vw, 126px);
    gap: 7px;
  }

  .podium-avatar {
    width: min(var(--podium-avatar-size), 22vw);
    height: min(var(--podium-avatar-size), 22vw);
  }

  .podium-name {
    max-width: 100%;
    justify-content: center;
    font-size: 13px;
    text-align: center;
  }

  .podium-block {
    height: min(var(--podium-height), 26vh);
  }

  .podium-block strong {
    font-size: 28px;
  }

  .podium-block b {
    font-size: 18px;
  }
}

@media (max-height: 720px) {
  .phone-content {
    top: max(20px, env(safe-area-inset-top));
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .phone-content.join-content {
    top: max(28px, env(safe-area-inset-top));
  }

  .phone-wordmark .top,
  .phone-wordmark .bottom {
    font-size: 34px;
  }

  .phone-copy {
    margin-top: 8px;
  }

  .phone-code-entry {
    margin-top: 16px;
  }

  .phone-code-entry .code-box {
    width: 48px;
    height: 58px;
    font-size: 28px;
  }

  .join-submit {
    margin-top: 14px;
  }

  .character-grid {
    gap: 7px;
    margin: 8px 0 10px;
  }

  .character-button {
    height: 64px;
    padding: 6px;
  }

  .line-input {
    font-size: 20px;
  }

  .waiting-avatar {
    width: 94px;
    height: 94px;
  }

  .mobile-room-code {
    font-size: 46px;
  }

  .mobile-host-lobby .eyebrow {
    margin-top: 8px;
  }

  .mobile-host-roster {
    gap: 6px;
    margin-top: 12px;
  }

  .mobile-player-row {
    padding: 6px 8px;
  }

  .mobile-player-avatar {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  .blob-morph {
    display: none;
  }

  .rank-row.moved-up,
  .rank-row.moved-down,
  .countdown-number,
  .leader-float,
  .slime-sheet,
  .slime-drip,
  .slime-bubble,
  .winner-head,
  .podium-place,
  .podium-block,
  .podium-avatar,
  .podium-rank-label,
  .podium-name {
    transform: none !important;
  }

  .slime-transition,
  .winner-celebration {
    display: none;
  }

  .winner-head,
  .podium-place,
  .podium-block,
  .podium-avatar,
  .podium-rank-label,
  .podium-name {
    opacity: 1 !important;
  }
}
