:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #111214;
  color: #f8fafc;
  --paper: #f7f8fb;
  --ink: #14161a;
  --muted: #667085;
  --line: #d9dee8;
  --panel: #ffffff;
  --red: #e6383a;
  --blue: #246bfe;
  --yellow: #f2c230;
  --green: #20b26b;
  --charcoal: #111214;
  --pink: #ff3d8b;
  --cyan: #00bfd8;
  --orange: #ff8a00;
}

html,
body,
#root {
  width: 100%;
  min-width: 0;
  min-height: 100%;
}

/* Information and report hub */
.information-page {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 24px;
  background: #edf2f7;
  color: #172334;
}

.information-header {
  width: min(1280px, 100%);
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border: 1px solid #d5dde8;
  border-radius: 12px;
  padding: 20px;
  background: #ffffff;
}

.information-brand {
  color: #f2c230;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 1000;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #ff3d8b, -2px -2px 0 #00bfd8;
  transform: rotate(-2deg);
}

.information-header > div {
  min-width: 0;
}

.information-header span,
.information-report-heading > span {
  color: #52667d;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.information-header h1,
.information-header p,
.information-report h2,
.information-report h3,
.information-report h4,
.information-report p,
.information-report ol,
.information-report ul,
.information-report dl {
  margin: 0;
}

.information-header h1 {
  margin-top: 3px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}

.information-header p {
  max-width: 760px;
  margin-top: 5px;
  color: #5f7186;
  line-height: 1.45;
}

.information-home-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #1c5975;
  border-radius: 9px;
  padding: 0 14px;
  color: #164d68;
  font-weight: 900;
  text-decoration: none;
}

.information-layout {
  width: 100%;
  max-width: 1280px;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.information-index,
.information-report {
  min-width: 0;
  border: 1px solid #d5dde8;
  border-radius: 12px;
  background: #ffffff;
}

.information-index {
  position: sticky;
  top: 16px;
  padding: 15px;
}

.information-index h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.information-index nav {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 7px;
}

.information-index button {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 3px;
  border: 2px solid #e0e6ee;
  border-radius: 9px;
  padding: 11px;
  background: #f7f9fc;
  color: #172334;
  text-align: left;
}

.information-index button:hover,
.information-index button:focus-visible {
  border-color: #00a8c7;
}

.information-index button.is-active {
  border-color: #246bfe;
  background: #eaf1ff;
  box-shadow: inset 4px 0 0 #246bfe;
}

.information-index button > span {
  color: #52667d;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.information-index button > strong {
  font-size: 0.96rem;
}

.information-index button > small {
  color: #5f7186;
  font-weight: 700;
  line-height: 1.35;
}

.information-report {
  min-width: 0;
  overflow: hidden;
}

.information-report-heading {
  padding: clamp(20px, 4vw, 38px);
  background: linear-gradient(135deg, #112f49, #175c69);
  color: #ffffff;
}

.information-report-heading > span {
  color: #aeeef5;
}

.information-report-heading h2 {
  margin-top: 6px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.information-report-heading p {
  max-width: 760px;
  margin-top: 12px;
  color: #d9edf1;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.5;
}

.information-verdict,
.information-section {
  margin: clamp(18px, 4vw, 34px);
}

.information-verdict {
  border-left: 6px solid #ff3d8b;
  border-radius: 8px;
  padding: 18px 20px;
  background: #fff0f6;
}

.information-verdict strong {
  display: block;
  font-size: 1.18rem;
  line-height: 1.3;
}

.information-verdict p {
  margin-top: 8px;
  color: #4f6074;
  line-height: 1.62;
}

.information-section {
  min-width: 0;
  padding-top: 4px;
}

.information-section + .information-section {
  border-top: 1px solid #dfe6ee;
  padding-top: 28px;
}

.information-section > h3 {
  margin-bottom: 14px;
  color: #123f5a;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}

.information-section > p {
  color: #3e5064;
  line-height: 1.65;
}

.information-section > p + p {
  margin-top: 12px;
}

.information-flow,
.information-checklist {
  padding: 0;
  list-style: none;
}

.information-flow {
  display: grid;
  gap: 9px;
  counter-reset: information-flow;
}

.information-flow li {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 3px 11px;
  border: 1px solid #dfe6ee;
  border-radius: 9px;
  padding: 12px 14px;
  background: #f9fbfd;
  counter-increment: information-flow;
}

.information-flow li::before {
  grid-row: 1 / span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #246bfe;
  color: #ffffff;
  content: counter(information-flow);
  font-weight: 1000;
}

.information-flow li > span {
  color: #53657a;
  line-height: 1.48;
}

.information-note {
  margin-top: 12px !important;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff8d2;
  color: #5e4a00 !important;
  font-weight: 750;
}

.information-card-grid,
.information-scorecard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.information-card-grid article,
.information-scorecard > div {
  min-width: 0;
  border: 1px solid #dfe6ee;
  border-radius: 9px;
  padding: 14px;
  background: #f9fbfd;
}

.information-card-grid h4 {
  color: #153f58;
  font-size: 1rem;
}

.information-card-grid p,
.information-scorecard p {
  margin-top: 6px;
  color: #53657a;
  line-height: 1.5;
}

.information-scorecard > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
}

.information-scorecard dt {
  font-weight: 950;
}

.information-scorecard dd {
  margin: 0;
  color: #087443;
  font-weight: 950;
}

.information-scorecard p {
  grid-column: 1 / -1;
}

.information-priority-list {
  display: grid;
  gap: 9px;
}

.information-priority {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid #dfe6ee;
  border-left-width: 5px;
  border-radius: 9px;
  padding: 13px;
  background: #f9fbfd;
}

.information-priority > span {
  width: 42px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #dce4ee;
  color: #344054;
  font-size: 0.76rem;
  font-weight: 1000;
}

.information-priority h4 {
  font-size: 1rem;
}

.information-priority p {
  margin-top: 4px;
  color: #53657a;
  line-height: 1.5;
}

.information-priority.is-p0 { border-left-color: #d92d20; }
.information-priority.is-p0 > span { background: #fee4e2; color: #b42318; }
.information-priority.is-p1 { border-left-color: #f79009; }
.information-priority.is-p1 > span { background: #fef0c7; color: #8a4b00; }
.information-priority.is-p2 { border-left-color: #246bfe; }
.information-priority.is-p2 > span { background: #eaf1ff; color: #174ea6; }

.information-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.information-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.information-table th,
.information-table td {
  border: 1px solid #dfe6ee;
  padding: 11px;
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.information-table thead th {
  background: #183f56;
  color: #ffffff;
}

.information-table tbody tr:nth-child(even) {
  background: #f6f9fc;
}

.information-table a {
  color: #145ac2;
  text-underline-offset: 3px;
}

.information-pitch {
  border-radius: 9px;
  padding: 18px !important;
  background: linear-gradient(135deg, #246bfe, #7c3aed);
  color: #ffffff !important;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
  font-weight: 1000;
  text-align: center;
}

.information-checklist {
  display: grid;
  gap: 8px;
}

.information-checklist li {
  position: relative;
  padding: 10px 12px 10px 38px;
  border-radius: 8px;
  background: #f3f7fa;
  color: #405368;
  line-height: 1.5;
}

.information-checklist li::before {
  position: absolute;
  left: 13px;
  top: 11px;
  color: #087443;
  content: "✓";
  font-weight: 1000;
}

.information-report code {
  border-radius: 4px;
  padding: 2px 5px;
  background: #eef2f6;
  color: #243b53;
}

@media (max-width: 860px) {
  .information-page {
    padding: 12px;
  }

  .information-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
  }

  .information-brand {
    grid-column: 1;
  }

  .information-header > div {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .information-home-link {
    grid-column: 2;
    grid-row: 1;
  }

  .information-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .information-index {
    position: static;
  }

  .information-index nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .information-index button {
    flex: 0 0 min(270px, 78vw);
    scroll-snap-align: start;
  }
}

@media (max-width: 580px) {
  .information-card-grid,
  .information-scorecard {
    grid-template-columns: 1fr;
  }

  .information-verdict,
  .information-section {
    margin: 18px 14px;
  }

  .information-report-heading {
    padding: 22px 18px;
  }

  .information-priority {
    grid-template-columns: 1fr;
  }

  .information-flow li {
    grid-template-columns: 30px minmax(0, 1fr);
    padding-inline: 10px;
  }
}

@media print {
  .information-page {
    padding: 0;
    background: #ffffff;
  }

  .information-header,
  .information-index {
    display: none;
  }

  .information-layout {
    display: block;
  }

  .information-report {
    border: 0;
  }
}

html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: clip;
  background: #15111f;
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
}

button {
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 70ms ease-out, filter 70ms ease-out, box-shadow 100ms ease-out, background-color 100ms ease-out;
}

button:not(:disabled):active {
  transform: translateY(2px) scale(0.985);
  filter: brightness(0.94) saturate(1.08);
}

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

@media (prefers-reduced-motion: reduce) {
  button {
    transition-duration: 0ms;
  }

  button:not(:disabled):active {
    transform: none;
  }
}

.gahookz-muted .poke-overlay,
.gahookz-muted .poke-overlay *,
.gahookz-muted .poke-overlay::before,
.gahookz-muted .poke-overlay::after,
.gahookz-muted .poke-overlay *::before,
.gahookz-muted .poke-overlay *::after,
.gahookz-reduced-effects .poke-overlay,
.gahookz-reduced-effects .poke-overlay *,
.gahookz-reduced-effects .poke-overlay::before,
.gahookz-reduced-effects .poke-overlay::after,
.gahookz-reduced-effects .poke-overlay *::before,
.gahookz-reduced-effects .poke-overlay *::after,
.gahookz-muted .player-card.is-gahooked,
.gahookz-muted .player-card.is-ultimate-gahooked,
.gahookz-muted .roster-row.is-gahooked,
.gahookz-muted .roster-row.is-ultimate-gahooked,
.gahookz-muted .final-gahook-card,
.gahookz-muted .final-gahook-card::before,
.gahookz-muted .final-gahook-card::after,
.gahookz-muted .host-mini-gahook,
.gahookz-muted .leaderboard-strip div.is-final-congrats,
.gahookz-muted .leaderboard-strip div.is-final-boo,
.gahookz-muted .leaderboard-list li.is-final-congrats,
.gahookz-muted .leaderboard-list li.is-final-boo,
.gahookz-reduced-effects .player-card.is-gahooked,
.gahookz-reduced-effects .player-card.is-ultimate-gahooked,
.gahookz-reduced-effects .roster-row.is-gahooked,
.gahookz-reduced-effects .roster-row.is-ultimate-gahooked,
.gahookz-reduced-effects .final-gahook-card,
.gahookz-reduced-effects .final-gahook-card::before,
.gahookz-reduced-effects .final-gahook-card::after,
.gahookz-reduced-effects .host-mini-gahook,
.gahookz-reduced-effects .leaderboard-strip div.is-final-congrats,
.gahookz-reduced-effects .leaderboard-strip div.is-final-boo,
.gahookz-reduced-effects .leaderboard-list li.is-final-congrats,
.gahookz-reduced-effects .leaderboard-list li.is-final-boo {
  animation: none !important;
  transition: none !important;
}

img {
  max-width: 100%;
  display: block;
}

.welcome-screen {
  min-height: 100vh;
  padding: 22px;
  display: grid;
  align-content: center;
  gap: 22px;
  background:
    linear-gradient(135deg, rgba(255, 61, 139, 0.24), rgba(255, 61, 139, 0) 34%),
    linear-gradient(225deg, rgba(0, 191, 216, 0.26), rgba(0, 191, 216, 0) 35%),
    linear-gradient(150deg, #191225 0%, #063352 48%, #0f5a49 76%, #653400 100%);
  color: #ffffff;
}

.welcome-hero,
.welcome-actions {
  width: min(980px, 100%);
  margin: 0 auto;
}

.welcome-hero {
  text-align: center;
}

.brand-lockup.welcome-brand {
  justify-content: center;
  font-size: clamp(3rem, 11vw, 6rem);
  line-height: 0.9;
  color: #f2c230;
  text-transform: uppercase;
  text-shadow: 5px 5px 0 #ff3d8b, -4px -4px 0 #00bfd8;
  transform: rotate(-2deg);
}

.welcome-hero h1 {
  max-width: 760px;
  margin: 30px auto 0;
  font-size: clamp(1rem, 2.7vw, 2rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.welcome-actions {
  display: grid;
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
  gap: 14px;
}

.welcome-footer {
  text-align: center;
}

.welcome-tutorial-link {
  border: 0;
  padding: 4px 2px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.welcome-tutorial-link:hover {
  color: #ffdf45;
}

.welcome-tutorial-link:focus-visible {
  outline: 3px solid #ffdf45;
  outline-offset: 4px;
  border-radius: 4px;
}

.welcome-panel {
  display: grid;
  gap: 12px;
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.welcome-panel h2 {
  margin: 0;
  text-align: center;
}

.welcome-intent-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.welcome-intent-selector button {
  min-height: 86px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 9px;
  padding: 10px 12px;
  background: rgba(12, 34, 54, 0.66);
  color: #ffffff;
  text-align: left;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.16);
}

.welcome-intent-selector button.is-selected {
  border-color: #ffdf45;
  background: linear-gradient(135deg, #246bfe, #ff3d8b);
  box-shadow: 0 0 0 3px rgba(255, 223, 69, 0.2), inset 0 -6px 0 rgba(0, 0, 0, 0.18);
}

.welcome-intent-selector button > span {
  display: grid;
  gap: 3px;
}

.welcome-intent-selector strong {
  font-size: 1.15rem;
  font-weight: 1000;
}

.welcome-intent-selector small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

.entry-mode-art {
  width: 48px;
  height: 48px;
  fill: rgba(255, 255, 255, 0.08);
  stroke: #ffffff;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.22));
}

.welcome-panel-single {
  background:
    linear-gradient(135deg, rgba(255, 223, 69, 0.26), rgba(255, 223, 69, 0)),
    rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.24);
}

.welcome-panel label {
  display: grid;
  gap: 7px;
  font-weight: 900;
}

.welcome-panel label.password-toggle {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.18);
}

.welcome-panel input {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: #111214;
  font-size: 1.5rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0;
}

.welcome-panel input[type="password"],
.join-form input[type="password"] {
  text-transform: none;
  font-size: 1rem;
}

.welcome-panel label.password-toggle input {
  width: 20px;
  min-height: 20px;
  padding: 0;
  accent-color: #ff8a00;
}

.join-code-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  background: linear-gradient(135deg, #246bfe, #ff3d8b);
  color: #ffffff;
  font-weight: 1000;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18);
}

.join-code-button:disabled {
  filter: grayscale(0.35);
  opacity: 0.72;
  cursor: not-allowed;
}

.offline-screen {
  min-height: 100dvh;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(255, 61, 139, 0.24), rgba(255, 61, 139, 0) 35%),
    linear-gradient(225deg, rgba(0, 191, 216, 0.25), rgba(0, 191, 216, 0) 36%),
    linear-gradient(150deg, #191225 0%, #063352 50%, #0f5a49 76%, #653400 100%);
  color: #ffffff;
}

.offline-brand-row,
.offline-message,
.offline-recovered,
.offline-game-card {
  width: min(980px, 100%);
  margin-inline: auto;
}

.offline-brand-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.offline-brand-row .brand-lockup.welcome-brand {
  justify-content: flex-start;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
}

.offline-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0 17px;
  background: rgba(17, 18, 20, 0.58);
  color: #ffdf45;
  font-weight: 1000;
  text-transform: uppercase;
}

.offline-message {
  border-left: 6px solid #ffdf45;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(17, 18, 20, 0.72), rgba(7, 51, 82, 0.26));
}

.offline-message > span,
.offline-game-heading > div:first-child > span,
.offline-recovered > div > span {
  display: block;
  color: #70f2b0;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.offline-message h1 {
  margin: 4px 0;
  font-size: clamp(1.55rem, 4vw, 2.5rem);
  letter-spacing: 0;
}

.offline-message p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.offline-recovered {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 2px solid #70f2b0;
  border-radius: 8px;
  padding: 12px 14px;
  background: linear-gradient(100deg, rgba(18, 128, 82, 0.92), rgba(0, 191, 216, 0.84));
  box-shadow: 0 0 28px rgba(112, 242, 176, 0.25);
}

.offline-recovered strong {
  display: block;
  margin-top: 2px;
  font-size: clamp(1.15rem, 3vw, 1.65rem);
}

.offline-recovered button {
  min-height: 48px;
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 0 18px;
  background: #ffffff;
  color: #073b59;
  font-weight: 1000;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16);
}

.offline-game-card {
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(7, 20, 34, 0.72);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.3);
}

.offline-game-heading {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
}

.offline-game-heading h2 {
  margin: 2px 0 0;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  letter-spacing: 0;
}

.offline-scoreboard {
  display: flex;
  gap: 8px;
}

.offline-scoreboard > span {
  min-width: 78px;
  display: grid;
  justify-items: end;
  border-radius: 7px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.1);
}

.offline-scoreboard small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.offline-scoreboard strong {
  color: #ffdf45;
  font-size: 1.28rem;
}

.offline-character-area {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 16px 14px;
  background: rgba(255, 255, 255, 0.055);
}

.offline-character-area > strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.offline-character-picker {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.offline-character-picker button {
  min-width: 0;
  min-height: 82px;
  display: grid;
  grid-template-rows: 48px auto;
  place-items: center;
  gap: 3px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  padding: 6px 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: clamp(0.64rem, 1.6vw, 0.78rem);
  font-weight: 1000;
  line-height: 1.05;
  text-align: center;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18);
}

.offline-character-picker button:hover:not(:disabled),
.offline-character-picker button:focus-visible {
  border-color: #00bfd8;
  background: rgba(0, 191, 216, 0.16);
}

.offline-character-picker button.selected {
  border-color: #ffdf45;
  background: linear-gradient(145deg, rgba(255, 61, 139, 0.28), rgba(0, 191, 216, 0.25));
  box-shadow: inset 0 -4px 0 rgba(255, 223, 69, 0.35), 0 0 0 2px rgba(255, 223, 69, 0.12);
}

.offline-character-picker button:disabled {
  cursor: default;
  opacity: 0.62;
}

.offline-character-picker button.selected:disabled {
  opacity: 1;
}

.offline-character-picker .poke-animal,
.offline-character-picker .poke-animal.is-small,
.offline-character-picker .poke-monkey,
.offline-character-picker .poke-monkey.is-small {
  width: 46px;
  height: 46px;
  max-height: 46px;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.25));
}

.room-dash-card {
  margin-top: 22px;
  width: 100%;
  color: #ffffff;
}

.room-dash-runner {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.82);
}

.room-dash-runner .poke-animal,
.room-dash-runner .poke-monkey {
  width: 42px;
  height: 42px;
  max-height: 42px;
}

.room-dash-scores {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 11px 14px 14px;
  background: rgba(255, 255, 255, 0.055);
}

.room-dash-scores > strong {
  color: #70f2b0;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.room-dash-scores > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.room-dash-scores > div > span {
  min-width: 0;
  min-height: 42px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border-radius: 6px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.09);
}

.room-dash-scores .poke-animal,
.room-dash-scores .poke-monkey {
  width: 28px;
  height: 28px;
  max-height: 28px;
}

.room-dash-scores b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-dash-scores em {
  color: #ffdf45;
  font-style: normal;
  font-weight: 1000;
}

.offline-canvas-wrap {
  position: relative;
  width: 100%;
  min-height: 250px;
  background: #073b59;
}

.offline-canvas-wrap canvas {
  width: 100%;
  min-height: 250px;
  display: block;
  touch-action: none;
  cursor: pointer;
}

.offline-game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 20px;
  background: rgba(17, 18, 20, 0.24);
  text-align: center;
}

.offline-game-overlay strong {
  color: #ffffff;
  font-size: clamp(1.5rem, 5vw, 2.8rem);
  font-weight: 1000;
  text-shadow: 3px 3px 0 #ff3d8b, -2px -2px 0 #00bfd8;
}

.offline-game-overlay button {
  min-height: 50px;
  min-width: 170px;
  border-radius: 8px;
  padding: 0 20px;
  background: linear-gradient(135deg, #ff3d8b, #ff8a00 55%, #ffdf45);
  color: #111214;
  font-weight: 1000;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18);
}

.offline-game-hint {
  margin: 0;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  user-select: none;
  touch-action: none;
  outline: 0;
}

.offline-game-hint.is-interactive {
  cursor: pointer;
}

.offline-game-hint.is-interactive:focus-visible {
  box-shadow: inset 0 0 0 3px #00bfd8;
}

.offline-game-hint strong {
  color: #ffffff;
}

.host-quick-menu {
  position: relative;
  z-index: 30;
  color: #111214;
}

.host-quick-menu summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  background: linear-gradient(135deg, #ffdf45, #ff3d8b 58%, #00bfd8);
  color: #111214;
  font-weight: 1000;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16), 0 10px 22px rgba(255, 61, 139, 0.22);
  cursor: pointer;
}

.host-quick-menu > div {
  position: absolute;
  box-sizing: border-box;
  right: 0;
  margin-top: 8px;
  width: min(380px, calc(100vw - 48px));
  display: grid;
  gap: 9px;
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(255, 223, 69, 0.48), rgba(255, 255, 255, 0) 38%),
    #fff7ed;
  border: 2px solid #ff3d8b;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.26);
}

.host-quick-menu button,
.host-quick-menu a,
.host-quick-menu select {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #e6f6ff);
  border: 1px solid rgba(17, 18, 20, 0.1);
  color: #111214;
  text-decoration: none;
  font-weight: 1000;
}

.host-quick-menu button.host-menu-primary {
  background: linear-gradient(135deg, #246bfe, #ff3d8b);
  color: #ffffff;
}

.host-quick-menu button.host-menu-start {
  background: linear-gradient(135deg, #20b26b, #00bfd8);
  color: #051312;
}

.host-menu-section-label {
  margin-top: 7px;
  padding-top: 9px;
  border-top: 1px solid rgba(17, 18, 20, 0.12);
  color: #667085;
  font-size: 0.78rem;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
}

.host-menu-section-label:first-of-type {
  margin-top: 0;
}

.host-quick-menu button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.host-quick-menu label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

.host-checkbox {
  min-height: 42px;
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.5);
}

.host-checkbox input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: #ff8a00;
}

.host-quick-menu input {
  min-height: 42px;
  border: 1px solid rgba(17, 18, 20, 0.12);
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: #111214;
  font-weight: 900;
}

.host-quick-menu .host-checkbox input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.kick-block {
  display: grid;
  gap: 7px;
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(17, 18, 20, 0.08);
}

.banned-menu-list {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(17, 18, 20, 0.12);
}

.banned-menu-list > span {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
}

.question-limit-field {
  padding-top: 3px;
}

.question-count-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.host-quick-menu .question-count-picker button {
  min-height: 38px;
  padding: 0;
  background: #ffffff;
}

.host-quick-menu .question-count-picker button.is-selected {
  background: linear-gradient(135deg, #ffdf45, #ff8a00);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16);
}

.party-question-picker button {
  min-height: 48px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  color: #111214;
  font-weight: 1000;
  transition: transform 70ms ease-out, filter 70ms ease-out;
}

.party-question-picker button.is-selected {
  background: linear-gradient(135deg, #ffdf45, #ff8a00);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.16);
}

.host-quick-menu em {
  color: #067647;
  font-style: normal;
  font-weight: 1000;
  text-align: center;
}

.gahook-form-picker {
  min-width: 0;
  margin: 2px 0;
  border: 1px solid rgba(17, 18, 20, 0.16);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.42);
}

.gahook-form-picker legend {
  padding: 0 5px;
  color: #063352;
  font-size: 0.8rem;
  font-weight: 1000;
}

.gahook-form-picker > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.gahook-form-picker button {
  min-width: 0;
  min-height: 66px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  border: 2px solid transparent;
  padding: 5px;
  background: #ffffff;
  color: #111214;
  font-size: 0.72rem;
  line-height: 1.05;
  text-align: left;
}

.gahook-form-picker button.is-selected {
  border-color: #ff3d8b;
  background: #fff3a6;
  box-shadow: inset 0 -3px 0 #ff8a00;
}

.gahook-form-picker img,
.gahook-form-monkey {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  object-fit: cover;
}

.gahook-form-picker .gahook-form-monkey .poke-monkey {
  width: 42px;
  height: 42px;
  filter: none;
}

.gahook-form-picker .gahook-form-monkey .poke-animal {
  width: 42px;
  height: 42px;
  max-height: none;
  border: 0;
  box-shadow: none;
  filter: none;
  animation: none;
}

.party-back-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 14px;
  background: linear-gradient(135deg, #20b26b, #00bfd8);
  color: #041615;
  font-weight: 1000;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16);
}

.room-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 16px, rgba(255, 61, 139, 0.16) 16px 32px),
    #050507;
  color: #ffffff;
}

.room-loading p {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 1000;
}

.join-room-pill {
  min-height: 78px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #111214;
  color: #ffffff;
}

.join-room-pill strong {
  font-size: clamp(1.35rem, 4vw, 2rem);
  letter-spacing: 0;
  text-align: center;
}

.host-screen {
  min-height: 100vh;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255, 61, 139, 0.22) 0%, rgba(255, 61, 139, 0) 25%),
    linear-gradient(225deg, rgba(0, 191, 216, 0.26) 0%, rgba(0, 191, 216, 0) 32%),
    linear-gradient(150deg, #191225 0%, #063352 46%, #0f5a49 72%, #653400 100%);
  color: #f8fafc;
}

.host-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.host-topbar {
  min-height: 54px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.28);
}

.host-topbar .brand-lockup strong {
  color: #f2c230;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #ff3d8b, -2px -2px 0 #00bfd8;
  transform: rotate(-2deg);
}

.brand-lockup.compact {
  gap: 8px;
  font-size: 1.05rem;
}

.host-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
}

.topbar-room-code {
  position: static;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 1000;
  letter-spacing: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
  transform: none;
}

.connection-pill,
.phase-pill,
.code-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  font-weight: 800;
}

.connection-pill.is-online {
  border-color: rgba(32, 178, 107, 0.55);
  background: rgba(32, 178, 107, 0.18);
}

.phase-pill.is-live {
  border-color: rgba(32, 178, 107, 0.62);
  background: rgba(32, 178, 107, 0.24);
}

.phase-pill.is-join {
  border-color: rgba(0, 191, 216, 0.55);
  background: rgba(0, 191, 216, 0.18);
}

.icon-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.icon-button.light {
  color: var(--ink);
  background: #eef1f7;
}

.reset-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  background: #fff1f2;
  color: #9f1239;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 1000;
}

.primary-button,
.secondary-button,
.ready-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
}

.primary-button {
  background: linear-gradient(135deg, #ff3d8b, #ff8a00 55%, #f2c230);
  color: #ffffff;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18);
}

.secondary-button {
  background: #ffffff;
  color: #111214;
}

.code-band {
  width: 100%;
  margin-top: 22px;
  min-height: 172px;
  display: grid;
  place-items: center;
  gap: 4px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 61, 139, 0.18), rgba(0, 191, 216, 0.18)),
    #f7f8fb;
  color: #111214;
  text-align: center;
  border: 4px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.code-band:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.26);
}

.code-band.is-readonly:hover {
  transform: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.code-band span,
.code-band small {
  color: #485467;
  font-weight: 800;
}

.code-band strong {
  font-size: 5.8rem;
  line-height: 0.9;
  letter-spacing: 0;
  color: #181120;
  text-shadow: 4px 4px 0 rgba(255, 138, 0, 0.35);
}

.code-band em {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: #20b26b;
  color: #ffffff;
  font-style: normal;
  font-weight: 1000;
}

.host-lobby-layout {
  margin-top: 24px;
  display: grid;
  grid-template-columns: clamp(432px, 36vw, 576px) minmax(0, 1fr);
  gap: 24px;
}

.host-lobby-layout.has-room-status {
  grid-template-areas:
    "controls status"
    "controls players";
  grid-template-rows: auto 1fr;
  column-gap: 24px;
  row-gap: 0;
  align-items: start;
}

.has-room-status > .room-status-banner {
  grid-area: status;
  margin: 0 0 18px;
}

.host-lobby-layout.has-room-status > .player-wall {
  grid-area: players;
}

.host-lobby-layout.has-room-status > .host-control-panel {
  grid-area: controls;
}

.room-status-banner {
  position: relative;
  margin: 0;
  padding: 16px 56px 16px 18px;
  border-left: 6px solid #00bfd8;
  background: rgba(255, 255, 255, 0.1);
}

.room-status-dismiss {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.2);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 1000;
  transform: translateY(-50%);
}

.room-status-dismiss:hover {
  background: rgba(0, 0, 0, 0.34);
}

.room-status-dismiss:not(:disabled):active {
  transform: translateY(-50%);
  filter: none;
}

.room-status-banner.is-host-status {
  border-left-color: #ffdf45;
  background: linear-gradient(90deg, rgba(255, 223, 69, 0.16), rgba(255, 255, 255, 0.06));
}

.room-status-banner.is-building-status {
  border-left-color: #20b26b;
  background: linear-gradient(90deg, rgba(32, 178, 107, 0.18), rgba(0, 191, 216, 0.08));
}

.room-status-banner > span {
  display: block;
  color: #a7f3d0;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.room-status-banner.is-actions-only {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-left: 0;
  padding: 0;
  background: transparent;
}

.room-status-banner h1 {
  margin: 3px 0 2px;
  font-size: 1.55rem;
  line-height: 1.12;
}

.room-status-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.room-status-banner p {
  margin: 0;
  min-width: 0;
  color: #d0d5dd;
  font-weight: 800;
}

.how-to-play-button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  padding: 0 15px;
  background: linear-gradient(135deg, #246bfe, #ff3d8b);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 1000;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.17);
}

.social-lobby-layout {
  margin-top: 24px;
}

.social-lobby-layout.has-room-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "status"
    "players";
  row-gap: 0;
}

.social-lobby-layout.has-room-status > .room-status-banner {
  grid-area: status;
}

.social-lobby-layout.has-room-status > .player-wall {
  grid-area: players;
}

.compact-code-band {
  min-height: 132px;
}

.compact-code-band strong {
  font-size: 4.5rem;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-heading h1 {
  margin: 0;
  font-size: 2rem;
}

.section-heading span {
  min-width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: #111214;
  font-weight: 900;
}

.section-heading.small h2 {
  margin: 0;
  font-size: 1.2rem;
}

.section-heading.small span {
  min-width: 28px;
  height: 28px;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.player-wall {
  padding-top: 10px;
}

.player-card,
.empty-state,
.host-control-panel {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.player-card {
  box-sizing: border-box;
  min-height: 118px;
  padding: 14px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 10px 12px;
  position: relative;
  width: 100%;
  color: inherit;
  text-align: left;
  transition: transform 140ms ease, background 140ms ease;
}

.player-card:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.player-card.is-ready {
  background: rgba(32, 178, 107, 0.2);
  border-color: rgba(143, 240, 188, 0.38);
}

.player-card.is-ready:hover:not(:disabled) {
  background: rgba(32, 178, 107, 0.27);
}

.player-card.is-gahooked,
.roster-row.is-gahooked {
  animation: banner-gahooked 200ms ease-out both;
}

.player-card.is-ultimate-gahooked,
.roster-row.is-ultimate-gahooked {
  animation: ultimate-banner 2.5s steps(2) both;
}

.player-card.is-offline {
  opacity: 0.55;
}

.avatar-dot {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: #111214;
  font-weight: 900;
}

.avatar-badge {
  width: 60px;
  height: 60px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.78);
  overflow: hidden;
  background: #ffffff;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 1000;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.16), 0 8px 18px rgba(0, 0, 0, 0.15);
}

.avatar-badge img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar-badge.is-small {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  font-size: 0.62rem;
}

.avatar-zap {
  background: linear-gradient(135deg, #ff3d8b, #ff8a00);
}

.avatar-pop {
  background: linear-gradient(135deg, #00bfd8, #246bfe);
}

.avatar-star {
  background: linear-gradient(135deg, #f2c230, #20b26b);
  color: #201700;
}

.avatar-bolt {
  background: linear-gradient(135deg, #7c3aed, #ff3d8b);
}

.avatar-disco {
  background: linear-gradient(135deg, #111214, #00bfd8 50%, #f2c230);
}

.avatar-rocket {
  background: linear-gradient(135deg, #20b26b, #063352);
}

.player-card h2,
.player-card p {
  margin: 0;
  min-width: 0;
}

.player-card p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.player-card h2 {
  font-size: 1.15rem;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.player-card > div {
  min-width: 0;
}

.player-card > .avatar-badge {
  grid-row: 1 / span 2;
}

.player-card-name-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.player-card-name-row h2 {
  min-width: 0;
  flex: 1 1 auto;
}

.player-kick-button {
  flex: 0 0 auto;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.74rem;
  font-weight: 1000;
}

.player-kick-button:hover:not(:disabled) {
  background: #ffffff;
  color: #9f1239;
}

.player-host-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(32, 178, 107, 0.18);
  color: #8ff0bc;
  font-size: 0.72rem;
  font-weight: 1000;
}

.player-card-actions {
  grid-column: 2;
  justify-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  flex-wrap: nowrap;
}

.player-action-menu {
  position: relative;
  order: 1;
}

.player-card-actions > .poke-hint {
  order: 2;
}

.host-join-player-card {
  min-height: 118px;
  width: 100%;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 14px;
  border: 2px dashed rgba(143, 240, 188, 0.65);
  background: linear-gradient(135deg, rgba(32, 178, 107, 0.24), rgba(0, 191, 216, 0.18));
  color: #ffffff;
  text-align: left;
}

.host-join-player-card:hover {
  background: linear-gradient(135deg, rgba(32, 178, 107, 0.38), rgba(0, 191, 216, 0.3));
}

.host-join-player-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #20b26b, #00bfd8);
  color: #062b27;
  font-size: 2.4rem;
  font-weight: 1000;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.15);
}

.host-join-player-card > span:last-child {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.host-join-player-card strong {
  font-size: 1.15rem;
}

.host-join-player-card small {
  color: #d8fbff;
  font-weight: 800;
}

.player-action-menu summary,
.vote-kick-button {
  min-height: 38px;
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 1000;
  cursor: pointer;
}

.player-action-trigger,
.player-vote-menu summary {
  width: 38px;
  padding: 0;
}

.burger-lines {
  display: grid;
  gap: 4px;
}

.burger-lines i {
  width: 16px;
  height: 3px;
  display: block;
  border-radius: 999px;
  background: currentColor;
}

.player-action-menu > div {
  position: absolute;
  right: 0;
  z-index: 20;
  width: 210px;
  margin-top: 8px;
  display: grid;
  gap: 7px;
  border-radius: 8px;
  padding: 8px;
  background: #fff7ed;
  border: 2px solid #ff8a00;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25);
}

.player-action-menu button {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: #111214;
  font-weight: 1000;
}

.player-action-menu[aria-busy="true"] > div {
  cursor: progress;
}

.player-action-menu button:disabled,
.vote-kick-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.player-card p {
  margin-top: 3px;
  color: #d0d5dd;
  font-weight: 700;
}

.player-status {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
}

.player-status.ready {
  background: rgba(32, 178, 107, 0.24);
}

.poke-hint {
  justify-self: start;
  border-radius: 999px;
  min-width: 92px;
  max-width: 118px;
  min-height: 38px;
  padding: 6px 9px;
  background: linear-gradient(135deg, #ff3d8b, #ff8a00);
  color: #ffffff;
  font-size: 0.82rem;
  text-align: center;
  font-weight: 1000;
  white-space: nowrap;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16);
}

.gahook-button-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
}

.banned-players-panel,
.approval-panel {
  margin-top: 18px;
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.banned-player-list {
  display: grid;
  gap: 8px;
}

.banned-player-list article {
  min-height: 48px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.banned-player-list button,
.approval-panel button {
  min-height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: #111214;
  font-weight: 1000;
}

.approval-panel button.host-menu-primary {
  background: linear-gradient(135deg, #20b26b, #00bfd8);
  color: #041615;
}

.approval-panel {
  display: grid;
  gap: 10px;
}

.approval-panel h2 {
  margin: 0;
  font-size: 1.05rem;
}

.approval-panel article {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.12);
}

.approval-panel img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
}

.approval-panel ol {
  margin: 0;
  padding-left: 20px;
  color: #d0d5dd;
  font-weight: 800;
}

.approval-mode-note,
.herd-builder-note {
  margin: 0;
  color: #667085;
  font-size: 0.92rem;
  font-weight: 900;
}

.approval-panel li.is-correct {
  color: #8ff0bc;
}

.approval-panel article > div:last-child {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.herd-preset-panel {
  display: grid;
  gap: 8px;
}

.herd-preset-panel > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #667085;
  font-size: 0.9rem;
  font-weight: 1000;
}

.herd-preset-panel button {
  min-height: 42px;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: #111214;
  font-weight: 900;
  text-align: left;
  border: 1px solid #d0d5dd;
}

.herd-preset-panel > div button {
  min-height: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, #246bfe, #00bfd8);
  border: 0;
}

.herd-builder-note {
  border-radius: 8px;
  padding: 10px 12px;
  color: #344054;
  background: #eef9fb;
}

.oddball-builder-note {
  margin-top: 12px;
  color: #7c2d12;
  background: #fff7ed;
}

.approval-author,
.question-author-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.question-results .question-author-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.poke-hint.is-readonly {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #d0d5dd;
  font-weight: 900;
}

.host-control-panel {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: start;
}

.host-play-choice {
  min-height: 54px;
  background: linear-gradient(135deg, rgba(36, 107, 254, 0.36), rgba(255, 61, 139, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
  font-weight: 1000;
}

.host-play-choice input:disabled {
  opacity: 0.8;
}

.lock-setup-button {
  min-height: 64px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(135deg, #34d17b, #00bfd8 58%, #f2c230);
  color: #06251c;
  font-size: 1.15rem;
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.17), 0 8px 18px rgba(0, 191, 216, 0.2);
}

.herd-question-rule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  align-items: center;
  gap: 5px 10px;
  border-radius: 8px;
  padding: 12px;
  background: rgba(143, 240, 188, 0.18);
  border: 1px solid rgba(143, 240, 188, 0.34);
}

.herd-question-rule > strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #8ff0bc;
  color: #063b20;
  font-size: 1.45rem;
}

.herd-question-rule > small {
  color: #d0d5dd;
  font-weight: 800;
}

.locked-options-summary {
  display: grid;
  gap: 3px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.locked-options-heading,
.mode-selector-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.locked-options-heading .how-to-play-button,
.mode-selector-heading .how-to-play-button {
  min-height: 34px;
  padding-inline: 13px;
}

.locked-options-summary span {
  color: #a7f3d0;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.locked-options-summary strong {
  color: #ffffff;
  font-size: 1.65rem;
  line-height: 1.1;
}

.locked-options-summary small {
  color: #d0d5dd;
  font-weight: 800;
}

.mode-selector {
  display: grid;
  gap: 10px;
  color: #d0d5dd;
  font-weight: 900;
}

.mode-selector-heading > span {
  font-size: 0.92rem;
}

.mode-selector > .mode-selector-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.mode-selector-options > button {
  min-height: 116px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 10px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 12px;
  color: #ffffff;
  text-align: left;
  background: linear-gradient(135deg, rgba(255, 61, 139, 0.28), rgba(0, 191, 216, 0.22));
}

.mode-selector-options > button.is-selected {
  border-color: #ffdf45;
  box-shadow: 0 0 0 3px rgba(255, 223, 69, 0.18), inset 0 -6px 0 rgba(0, 0, 0, 0.18);
  background: linear-gradient(135deg, #ff8a00, #ff3d8b);
}

.mode-selector strong,
.mode-selector small {
  min-width: 0;
}

.mode-selector strong {
  color: inherit;
  font-size: 1.12rem;
}

.mode-selector small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
}

.mode-art {
  grid-row: span 2;
  width: 54px;
  height: 54px;
  fill: #ffffff;
  stroke: #111214;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 3px 0 rgba(0, 0, 0, 0.22));
}

.round-preset-selector {
  display: grid;
  gap: 10px;
  color: #d0d5dd;
  font-weight: 900;
}

.round-preset-selector > span {
  font-size: 0.92rem;
}

.round-preset-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.round-preset-options > button {
  min-width: 0;
  min-height: 116px;
  display: grid;
  align-content: start;
  gap: 4px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 12px 10px;
  background: linear-gradient(155deg, rgba(36, 107, 254, 0.28), rgba(0, 191, 216, 0.16));
  color: #ffffff;
  text-align: left;
}

.round-preset-options > button.is-selected {
  border-color: #ffdf45;
  background: linear-gradient(150deg, #246bfe, #7c3aed 58%, #ff3d8b);
  box-shadow: 0 0 0 3px rgba(255, 223, 69, 0.16), inset 0 -6px 0 rgba(0, 0, 0, 0.18);
}

.round-preset-options strong {
  font-size: 1.02rem;
}

.round-preset-options small,
.round-preset-options em {
  min-width: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.7rem;
  line-height: 1.22;
}

.round-preset-options em {
  margin-top: 4px;
  font-style: normal;
}

.round-preset-custom,
.round-preset-summary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.round-preset-custom {
  display: grid;
  gap: 9px;
}

.round-preset-custom > span {
  font-size: 0.82rem;
}

.round-preset-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  color: #ffffff;
}

.round-preset-summary > span:first-child strong {
  color: #ffdf45;
  font-size: 1.3rem;
}

.round-preset-summary > span:nth-child(2) {
  color: #8ff0bc;
}

.round-preset-summary > small {
  grid-column: 1 / -1;
  color: #d0d5dd;
  font-weight: 750;
  line-height: 1.3;
}

.mode-selector.is-compact {
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
}

.mode-selector.is-compact > .mode-selector-options {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.mode-selector.is-compact button {
  min-height: 76px;
  grid-template-columns: 40px minmax(0, 1fr);
  padding: 9px;
}

.mode-selector.is-compact .mode-art {
  width: 40px;
  height: 40px;
}

.player-lobby-panel .player-summary,
.player-lobby-panel .submitted-question-list,
.player-lobby-panel .question-builder,
.player-lobby-panel .limit-panel,
.player-lobby-panel .party-start-button,
.player-party-game .party-roster,
.player-party-game .party-state-panel,
.player-party-game .party-scoreboard {
  margin-top: 0;
}

.question-creation-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 2px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.question-creation-heading > div {
  min-width: 0;
}

.question-creation-heading span {
  display: block;
  color: #a7f3d0;
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.question-creation-heading h2 {
  margin: 2px 0 0;
  color: #ffffff;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.player-party-game .party-roster,
.player-party-game .party-state-panel,
.player-party-game .party-scoreboard {
  margin-top: 18px;
}

.herd-answer-panel {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 223, 69, 0.92), rgba(0, 191, 216, 0.78));
  color: #111214;
  border: 2px solid rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.14);
}

.herd-answer-panel span {
  color: #344054;
  font-weight: 1000;
}

.herd-answer-panel strong {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.herd-answer-panel label {
  display: grid;
  gap: 8px;
}

.herd-answer-panel input {
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: #111214;
  background: #ffffff;
  font: inherit;
  font-weight: 900;
}

.herd-answer-panel.is-locked {
  background: linear-gradient(135deg, rgba(32, 178, 107, 0.95), rgba(36, 107, 254, 0.82));
  color: #ffffff;
}

.herd-answer-panel.is-locked span {
  color: rgba(255, 255, 255, 0.78);
}

.herd-own-answer-image {
  width: 100%;
  max-height: 240px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.9);
}

.herd-party-status {
  width: min(720px, 100%);
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  border-left: 6px solid #ffdf45;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.herd-party-status span,
.herd-party-status p {
  font-weight: 900;
}

.herd-party-status strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: #ffdf45;
}

.herd-party-status p {
  color: #d0d5dd;
}

.herd-ranking-panel {
  width: min(860px, 100%);
  margin: 18px auto 0;
  display: grid;
  gap: 16px;
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #111214;
}

.herd-ranking-panel > header {
  display: grid;
  gap: 3px;
}

.herd-ranking-panel > header span {
  color: #246bfe;
  font-size: 0.82rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.herd-ranking-panel > header h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.herd-ranking-panel > header p,
.herd-ranking-panel.is-locked p {
  color: #667085;
  font-weight: 800;
}

.herd-rank-list {
  display: grid;
  gap: 7px;
}

.herd-rank-item {
  min-height: 66px;
  display: grid;
  grid-template-columns: 44px 20px minmax(0, 1fr) 84px;
  gap: 10px;
  align-items: center;
  border: 2px solid #d0d5dd;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  transition: border-color 120ms ease, transform 120ms ease, opacity 120ms ease;
}

.herd-rank-item:hover {
  border-color: #246bfe;
}

.herd-rank-item.is-dragging {
  opacity: 0.55;
  transform: scale(0.985);
}

.herd-rank-item > strong {
  font-size: 1.45rem;
  text-align: center;
  color: #246bfe;
}

.herd-rank-item > p {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
  font-weight: 1000;
}

.herd-drag-handle {
  width: 16px;
  height: 26px;
  opacity: 0.55;
  background: radial-gradient(circle, #667085 2px, transparent 2.5px) 0 0 / 8px 8px;
}

.herd-rank-item > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.herd-rank-item > div button {
  min-width: 36px;
  min-height: 38px;
  border-radius: 8px;
  background: #eef4ff;
  color: #174ea6;
  font-size: 1.1rem;
  font-weight: 1000;
}

.herd-rank-item > div button:disabled {
  opacity: 0.28;
}

.herd-similar-toggle {
  justify-self: center;
  min-height: 32px;
  border: 2px dashed #98a2b3;
  border-radius: 999px;
  padding: 3px 14px;
  background: #f2f4f7;
  color: #475467;
  font-size: 0.78rem;
  font-weight: 1000;
}

.herd-similar-toggle.is-selected {
  border-style: solid;
  border-color: #20b26b;
  background: #dff8ea;
  color: #08653a;
}

.herd-lock-ranking {
  min-height: 58px;
}

.herd-ranking-panel.is-locked {
  justify-items: center;
  padding-block: 28px;
  text-align: center;
  background: linear-gradient(135deg, #dff8ea, #d8f7ff);
}

.herd-ranking-panel.is-locked span {
  color: #087443;
  font-weight: 1000;
}

.herd-ranking-panel.is-locked strong {
  font-size: 1.5rem;
}

.herd-no-answers {
  padding: 22px;
  text-align: center;
  color: #667085;
  font-weight: 900;
}

.herd-combined-screen {
  width: min(1080px, 100%);
  margin: 18px auto 0;
  display: grid;
  gap: 22px;
}

.herd-combined-results {
  display: grid;
  gap: 16px;
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: #111214;
}

.herd-combined-results > header {
  display: grid;
  gap: 3px;
  text-align: center;
}

.herd-combined-results > header span {
  color: #087443;
  font-size: 0.82rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.herd-combined-results > header h2 {
  font-size: clamp(2rem, 5vw, 3.3rem);
}

.herd-combined-results > header p {
  color: #667085;
  font-weight: 800;
}

.herd-combined-results > ol {
  display: grid;
  gap: 9px;
  list-style: none;
}

.herd-combined-results > ol > li {
  display: grid;
  grid-template-columns: 48px minmax(180px, 1fr) minmax(190px, auto) auto;
  align-items: center;
  gap: 12px;
  border: 2px solid #e4e7ec;
  border-radius: 8px;
  padding: 11px 13px;
  background: #f8fafc;
}

.herd-combined-results > ol > li.is-unanimous-top {
  border-color: #20b26b;
  background: linear-gradient(135deg, #e3faed, #fff8cc);
}

.herd-combined-rank {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #246bfe;
  color: #ffffff;
  font-size: 1.3rem;
}

.herd-combined-answer {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.herd-combined-answer > img {
  flex: 0 0 92px;
  width: 92px;
  height: 72px;
  border: 2px solid #d0d5dd;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.herd-combined-answer > div {
  min-width: 0;
}

.herd-combined-answer h3 {
  overflow-wrap: anywhere;
  font-size: 1.2rem;
}

.herd-combined-answer span,
.herd-combined-answer small {
  display: block;
  color: #667085;
  font-weight: 800;
}

.herd-combined-authors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.herd-combined-authors > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 3px 8px 3px 3px;
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 1000;
}

.herd-combined-results > ol > li > em {
  color: #087443;
  font-style: normal;
  font-weight: 1000;
  white-space: nowrap;
}

.herd-combined-results > ol > li > b {
  grid-column: 2 / -1;
  color: #087443;
  font-size: 0.82rem;
}

.herd-personal-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  border-top: 3px solid #20b26b;
  padding: 16px;
  background: #ecfdf3;
}

.herd-personal-score > span {
  color: #087443;
  font-weight: 1000;
  text-transform: uppercase;
}

.herd-personal-score > div {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.herd-personal-score > div strong {
  font-size: 2.2rem;
}

.herd-personal-score > div em {
  color: #475467;
  font-style: normal;
  font-weight: 900;
}

.herd-personal-score dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
}

.herd-personal-score dl > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #344054;
  font-weight: 900;
}

.herd-personal-score dd {
  color: #087443;
  font-weight: 1000;
}

/* Herd top-three voting */
.herd-pick-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.herd-pick-progress > span {
  min-width: 0;
  min-height: 48px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 2px dashed #c8d0dc;
  border-radius: 8px;
  padding: 6px 9px;
  color: #667085;
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 900;
  overflow: hidden;
}

.herd-pick-progress > span b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4e7ec;
  color: #475467;
}

.herd-pick-progress > span.is-filled {
  border-style: solid;
  color: #111214;
}

.herd-pick-progress > span.rank-1 { border-color: #f2c230; background: #fff8cc; }
.herd-pick-progress > span.rank-2 { border-color: #246bfe; background: #eaf1ff; }
.herd-pick-progress > span.rank-3 { border-color: #ff3d8b; background: #ffedf5; }
.herd-pick-progress > span.rank-1 b { background: #f2c230; color: #111214; }
.herd-pick-progress > span.rank-2 b { background: #246bfe; color: #ffffff; }
.herd-pick-progress > span.rank-3 b { background: #ff3d8b; color: #ffffff; }

.herd-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.herd-choice-card {
  min-width: 0;
  min-height: 94px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 3px 11px;
  border: 3px solid #d0d5dd;
  border-radius: 8px;
  padding: 11px 13px;
  background: #ffffff;
  color: #111214;
  text-align: left;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.herd-choice-card:hover,
.herd-choice-card:focus-visible {
  border-color: #00a8c7;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(16, 60, 82, 0.15);
}

.herd-choice-card > strong {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef1f5;
  color: #667085;
  font-size: 1.35rem;
}

.herd-choice-card > .herd-choice-content {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.herd-choice-content > img {
  width: 100%;
  max-height: 150px;
  border: 2px solid rgba(16, 24, 40, 0.14);
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

.herd-choice-content > span {
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  font-weight: 1000;
  line-height: 1.15;
}

.herd-choice-content > small,
.herd-locked-picks small {
  width: max-content;
  border-radius: 999px;
  padding: 2px 7px;
  background: #dff8ea;
  color: #087443;
  font-size: 0.68rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.herd-choice-card > em {
  color: #667085;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.herd-choice-card.is-rank-1 { border-color: #f2c230; background: linear-gradient(135deg, #fffbe0, #ffe88a); }
.herd-choice-card.is-rank-2 { border-color: #246bfe; background: linear-gradient(135deg, #eef4ff, #bdeff8); }
.herd-choice-card.is-rank-3 { border-color: #ff3d8b; background: linear-gradient(135deg, #fff0f6, #ead7ff); }
.herd-choice-card.is-rank-1 > strong { background: #f2c230; color: #111214; }
.herd-choice-card.is-rank-2 > strong { background: #246bfe; color: #ffffff; }
.herd-choice-card.is-rank-3 > strong { background: #ff3d8b; color: #ffffff; }
.herd-choice-card.is-selected > em { color: #344054; }

.herd-locked-picks {
  width: min(620px, 100%);
  display: grid;
  gap: 6px;
  list-style: none;
}

.herd-locked-picks li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
  font-weight: 900;
}

.herd-locked-picks b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #246bfe;
  color: #ffffff;
}

.herd-locked-picks li > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.herd-locked-picks li > div > img {
  flex: 0 0 64px;
  width: 64px;
  height: 50px;
  border-radius: 7px;
  object-fit: contain;
  background: #ffffff;
}

.herd-locked-picks li > div > span {
  min-width: 0;
  display: grid;
  gap: 3px;
  overflow-wrap: anywhere;
}

.herd-score-key {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.herd-score-key > span {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  color: #344054;
  background: #f2f4f7;
  font-size: 0.8rem;
  font-weight: 900;
}

.herd-score-key b {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #246bfe;
  color: #ffffff;
}

.herd-score-key span:nth-child(1) b { background: #f2c230; color: #111214; }
.herd-score-key span:nth-child(3) b { background: #ff3d8b; }
.herd-score-key strong { color: #087443; font-size: 1rem; }

.herd-combined-results > .herd-reveal-list {
  max-height: min(58vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.herd-combined-results > .herd-reveal-list > li {
  grid-template-columns: 54px minmax(0, 1fr) minmax(230px, 0.85fr);
  grid-template-rows: auto auto;
}

.herd-combined-results > .herd-reveal-list > li.is-empty {
  display: block;
  padding: 24px;
  color: #667085;
  font-weight: 900;
  text-align: center;
}

.herd-reveal-list > li.is-top-three {
  border-width: 3px;
}

.herd-reveal-list > li.is-place-1 { border-color: #f2c230; background: linear-gradient(135deg, #fffbe0, #fff1a6); }
.herd-reveal-list > li.is-place-2 { border-color: #246bfe; background: linear-gradient(135deg, #f2f6ff, #d9f5fa); }
.herd-reveal-list > li.is-place-3 { border-color: #ff3d8b; background: linear-gradient(135deg, #fff2f7, #f1e5ff); }

.herd-reveal-list .herd-combined-rank {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.herd-reveal-list .herd-combined-answer {
  grid-column: 2;
  grid-row: 1;
}

.herd-reveal-list .herd-combined-authors {
  grid-column: 2;
  grid-row: 2;
  align-items: center;
}

.herd-reveal-list > li > em {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.herd-author-label,
.herd-voter-label {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.herd-ranked-voters {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.herd-ranked-voters > div {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.herd-ranked-voter {
  display: inline-grid;
  place-items: end;
  position: relative;
}

.herd-ranked-voter .avatar-badge.is-small {
  transition: width 120ms ease, height 120ms ease;
}

.herd-ranked-voter.is-rank-1 .avatar-badge.is-small { width: 48px; height: 48px; }
.herd-ranked-voter.is-rank-2 .avatar-badge.is-small { width: 37px; height: 37px; }
.herd-ranked-voter.is-rank-3 .avatar-badge.is-small { width: 28px; height: 28px; }

.herd-ranked-voter > b {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  position: absolute;
  right: -3px;
  bottom: -3px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #111214;
  color: #ffffff;
  font-size: 0.65rem;
}

.herd-ranked-voters.is-empty {
  color: #98a2b3;
  font-size: 0.78rem;
  font-weight: 900;
}

.herd-personal-score > p {
  grid-column: 1 / -1;
  margin: 0;
  color: #344054;
  font-weight: 850;
}

.herd-results {
  margin-top: 18px;
  display: grid;
  gap: 10px;
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #111214;
}

.herd-results.is-compact {
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.78);
}

.herd-results-heading,
.herd-results article > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.herd-results-heading span,
.herd-results article span {
  color: #667085;
  font-weight: 1000;
}

.herd-results article {
  display: grid;
  gap: 10px;
  border-radius: 8px;
  padding: 12px;
  background: #f2f4f7;
  border: 2px solid transparent;
}

.herd-results article.is-top {
  border-color: #20b26b;
  background: linear-gradient(135deg, rgba(143, 240, 188, 0.72), rgba(216, 247, 255, 0.86));
}

.oddball-results article.is-oddball {
  border-color: #ff8a00;
  background: linear-gradient(135deg, rgba(255, 138, 0, 0.2), rgba(255, 61, 139, 0.16)), #ffffff;
}

.herd-results article strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.herd-player-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 8px 4px 4px;
  background: rgba(255, 255, 255, 0.7);
  color: #111214;
  font-size: 0.82rem;
  font-weight: 1000;
}

.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #d0d5dd;
  font-weight: 800;
}

.metric-row strong {
  color: #ffffff;
  font-size: 1.45rem;
}

.host-setting {
  display: grid;
  gap: 8px;
  color: #d0d5dd;
  font-weight: 900;
}

.host-setting select {
  min-height: 48px;
  border-radius: 8px;
  border: 0;
  padding: 0 12px;
  background: #ffffff;
  color: #111214;
  font-size: 1.2rem;
  font-weight: 1000;
}

.start-button {
  min-height: 64px;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #20b26b, #00bfd8);
  color: #051312;
}

.start-button.is-force-start {
  background: linear-gradient(135deg, #5f8f78, #4f8177);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18);
  filter: saturate(0.62);
}

.start-button.is-force-start:hover:not(:disabled) {
  filter: saturate(0.82) brightness(1.05);
}

.force-start-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 12, 20, 0.76);
  backdrop-filter: blur(5px);
}

.force-start-dialog {
  width: min(100%, 520px);
  display: grid;
  justify-items: center;
  gap: 14px;
  border-radius: 8px;
  border: 3px solid #20b26b;
  padding: 24px;
  background: #ffffff;
  color: #111214;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

.force-start-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f2c230;
  color: #111214;
  font-size: 2rem;
  font-weight: 1000;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.14);
}

.force-start-dialog h2,
.force-start-dialog p {
  margin: 0;
}

.force-start-dialog h2 {
  font-size: 1.55rem;
  line-height: 1.12;
}

.force-start-dialog p {
  color: #667085;
  font-weight: 800;
  line-height: 1.4;
}

.force-start-dialog > div {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.force-start-dialog button {
  min-height: 52px;
}

.force-start-confirm {
  background: linear-gradient(135deg, #20b26b, #00bfd8);
  color: #051312;
}

.start-status {
  margin: 0;
  color: #d0d5dd;
  font-weight: 800;
}

.start-status.is-ready {
  color: #8ff0bc;
}

.quiz-meta-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.quiz-meta-row {
  margin-top: 18px;
}

.quiz-meta-row.is-two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quiz-meta-row > div {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 4px;
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.1);
}

.quiz-meta-row > div:last-child {
  text-align: right;
}

.quiz-meta-row span {
  color: #d0d5dd;
  font-size: 0.88rem;
  font-weight: 900;
}

.quiz-meta-row strong {
  color: #ffffff;
  font-size: 1.45rem;
}

.timer-ring {
  --timer-angle: 360deg;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: conic-gradient(#ffffff var(--timer-angle), rgba(255, 255, 255, 0.18) 0deg);
  position: relative;
  isolation: isolate;
}

.timer-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  z-index: -1;
  border-radius: inherit;
  background: #111214;
}

.timer-ring strong {
  font-size: 1.65rem;
  line-height: 1;
}

.timer-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.timer-bar > span {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #20b26b, #f2c230 42%, #ff8a00 68%, #ff3d8b);
  transition: width 120ms linear;
}

.timer-bar.is-complete > span {
  width: 100% !important;
  background: linear-gradient(90deg, #20b26b, #8ff0bc);
}

.question-stage {
  margin-top: 22px;
  min-height: 250px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 34%);
  gap: 22px;
  align-items: stretch;
}

.question-stage .game-timer-row {
  grid-column: 1 / -1;
}

.game-timer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
}

.game-timer-row:has(.timer-bar:only-child) {
  grid-template-columns: minmax(0, 1fr);
}

.pause-game-button {
  width: 46px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffdf45, #ff8a00);
  color: #111214;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18);
}

.pause-game-button span {
  width: 16px;
  height: 18px;
  border-left: 5px solid currentColor;
  border-right: 5px solid currentColor;
}

.pause-game-button.is-paused {
  background: linear-gradient(135deg, #20b26b, #00bfd8);
}

.pause-game-button.is-paused span {
  width: 0;
  height: 0;
  border: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 17px solid currentColor;
}

.timer-bar.is-paused > span {
  background: #f2c230;
}

.timer-bar.is-reading-muted > span {
  background: linear-gradient(90deg, #7f8da3, #8fb8b5);
  opacity: 0.72;
}

.question-copy {
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(242, 194, 48, 0.2), rgba(255, 61, 139, 0.12)),
    #f7f8fb;
  color: #111214;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.question-copy h1 {
  margin: 14px 0 0;
  font-size: 3rem;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.question-copy p {
  margin: 16px 0 0;
  color: #667085;
  font-weight: 900;
}

.phase-chip {
  align-self: flex-start;
  border-radius: 999px;
  padding: 7px 12px;
  background: linear-gradient(135deg, #111214, #246bfe);
  color: #ffffff;
  font-weight: 900;
}

.question-image {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: min(56vh, 520px);
  align-self: center;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
}

.reading-panel {
  margin-top: 22px;
  min-height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #d8fbff);
  color: #111214;
  font-size: 2.1rem;
  font-weight: 900;
}

.answer-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.answer-tile {
  position: relative;
  min-height: 156px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  padding: 22px;
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: center;
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.16);
}

.answer-tile.has-answer-players {
  padding-top: 56px;
}

.answer-grid.is-reading-preview .answer-tile {
  opacity: 0.78;
  filter: saturate(0.38) brightness(0.94);
}

.answer-grid.is-reading-preview .answer-tile > span:first-child {
  font-size: 2rem;
  letter-spacing: 0;
}

.answer-choice-players {
  position: absolute;
  top: 8px;
  left: 12px;
  right: 12px;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.answer-choice-player {
  position: relative;
  display: inline-flex;
  flex: 0 1 30px;
  min-width: 14px;
  animation: answer-player-pop 220ms cubic-bezier(0.2, 1.5, 0.35, 1) both;
}

.answer-choice-player + .answer-choice-player {
  margin-left: -8px;
}

.answer-choice-player .avatar-badge.is-small {
  width: 34px;
  height: 34px;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.24);
}

.answer-choice-players.is-anonymous {
  gap: 5px;
}

.answer-choice-player.is-anonymous {
  flex: 0 0 34px;
  min-width: 34px;
}

.answer-choice-player.is-anonymous + .answer-choice-player.is-anonymous {
  margin-left: -7px;
}

.anonymous-answer-avatar {
  position: relative;
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 8px;
  background: linear-gradient(145deg, #d0d5dd, #667085);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.24);
}

.anonymous-answer-avatar::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 9px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #344054;
  box-shadow: 10px 0 0 #344054;
}

.anonymous-answer-avatar::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 7px;
  width: 12px;
  height: 6px;
  border-bottom: 2px solid #344054;
  border-radius: 0 0 10px 10px;
}

@keyframes answer-player-pop {
  0% { opacity: 0; transform: translateY(8px) scale(0.55) rotate(-8deg); }
  70% { opacity: 1; transform: translateY(-2px) scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

button.answer-tile {
  border: 0;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
}

.answer-grid.is-interactive .answer-tile:not(:disabled):hover {
  transform: translateY(-2px);
  filter: saturate(1.18);
}

.answer-tile:disabled {
  cursor: default;
}

.answer-grid.is-locked .answer-tile {
  opacity: 0.76;
  filter: saturate(0.62) brightness(0.96);
  transition: opacity 120ms ease, filter 120ms ease, outline-color 120ms ease;
}

.answer-tile.is-selected {
  outline: 6px solid rgba(255, 255, 255, 0.88);
}

.answer-grid.is-locked .answer-tile.is-selected {
  opacity: 1;
  filter: saturate(0.82) brightness(0.98);
  outline-color: #ffffff;
}

.answer-tile.is-dimmed {
  opacity: 0.45;
}

.answer-tile.is-correct {
  outline: 6px solid #ffffff;
}

.correct-answer-spotlight {
  width: 100%;
  min-height: 328px;
  margin-top: 22px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 6px solid #ffffff;
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  box-shadow: inset 0 -9px 0 rgba(0, 0, 0, 0.16), 0 0 28px rgba(255, 255, 255, 0.28);
  animation: correct-answer-pop 240ms cubic-bezier(0.2, 1.35, 0.25, 1) both;
}

.correct-answer-spotlight span {
  font-size: 1rem;
  font-weight: 1000;
  text-transform: uppercase;
  opacity: 0.82;
}

.correct-answer-spotlight strong {
  max-width: 1100px;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.correct-answer-players {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  max-width: min(100%, 720px);
  padding-inline: 18px;
}

.correct-answer-players > span {
  display: inline-flex;
  margin-left: -10px;
  animation: answer-player-pop 220ms cubic-bezier(0.2, 1.5, 0.35, 1) both;
}

.correct-answer-players > span:first-child {
  margin-left: 0;
}

.correct-answer-players .avatar-badge {
  border: 3px solid #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.correct-answer-spotlight.answer-herd,
.correct-answer-spotlight.answer-neutral {
  background: linear-gradient(135deg, #20b26b, #00bfd8);
  color: #041615;
}

@keyframes correct-answer-pop {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.answer-red {
  background: var(--red);
}

.answer-blue {
  background: var(--blue);
}

.answer-yellow {
  background: var(--yellow);
  color: #211a04;
}

.answer-green {
  background: var(--green);
}

.leaderboard-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.leaderboard-strip div,
.leaderboard-list li {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.leaderboard-strip div.is-final-congrats,
.leaderboard-list li.is-final-congrats {
  animation: final-congrats-row 600ms ease-out both;
}

.leaderboard-strip div.is-final-boo,
.leaderboard-list li.is-final-boo {
  animation: final-boo-row 520ms steps(2) both;
}

.leaderboard-strip div {
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.leaderboard-strip div.has-gahook-action {
  grid-template-columns: 34px 42px minmax(0, 1fr) auto minmax(94px, 112px);
}

.leaderboard-strip > div > span,
.leaderboard-list > li > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: #111214;
  font-weight: 900;
}

.leaderboard-strip strong,
.leaderboard-list strong {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.05;
}

.leaderboard-strip em,
.leaderboard-list em {
  font-style: normal;
  color: #d0d5dd;
  font-weight: 900;
}

.scoreboard-header {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.scoreboard-header h1,
.winner-band h1 {
  margin: 0;
  font-size: 4rem;
  line-height: 1;
}

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

.leaderboard-list.is-large li {
  min-height: 74px;
  font-size: 1.4rem;
}

.leaderboard-list li {
  display: grid;
  grid-template-columns: 44px 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.leaderboard-list li.has-gahook-action {
  grid-template-columns: 44px 46px minmax(0, 1fr) auto minmax(100px, 116px);
}

.leaderboard-gahook {
  width: 100%;
  min-width: 94px;
  min-height: 36px;
  border-radius: 8px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff3d8b, #ff8a00);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 1000;
  white-space: nowrap;
  line-height: 1;
  justify-self: end;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
}

.leaderboard-gahook:disabled {
  filter: grayscale(0.5);
  opacity: 0.5;
}

.winner-band {
  margin: 24px 0;
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 8px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #f2c230, #ff8a00 45%, #ff3d8b);
  color: #211a04;
  text-align: center;
}

.winner-band span,
.winner-band strong {
  font-size: 1.3rem;
  font-weight: 900;
}

.loser-band {
  margin: 16px 0;
  min-height: 150px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(135deg, #fff1f2, #ffd6e7);
  color: #9f1239;
  border: 3px solid #ff3d8b;
}

.loser-band span {
  grid-column: 1 / -1;
  color: #be123c;
  font-weight: 1000;
  text-transform: uppercase;
}

.loser-band h2,
.loser-band strong,
.loser-band em {
  margin: 0;
}

.loser-band h2 {
  font-size: clamp(2rem, 5vw, 4.4rem);
  overflow-wrap: anywhere;
  min-width: 0;
}

.loser-band strong,
.loser-band em {
  grid-column: 2;
}

.loser-band em {
  font-style: normal;
  font-weight: 1000;
}

.final-duel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.final-group-label {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 1rem;
  font-weight: 1000;
  text-align: center;
  text-transform: uppercase;
}

.final-group-label.is-winner-label {
  background: #d1fadf;
  color: #064e3b;
}

.final-group-label.is-loser-label {
  background: #ffe4ec;
  color: #9f1239;
}

.final-gahook-card {
  min-width: 0;
  min-height: 260px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: start;
  align-content: center;
  gap: 12px 18px;
  border-radius: 8px;
  padding: 18px;
  color: #111214;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.final-gahook-card.is-final-congrats::after,
.final-gahook-card.is-final-boo::after,
.final-gahook-card.is-gahooked::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  border-radius: 8px;
}

.final-gahook-card.is-final-congrats::after {
  background:
    repeating-linear-gradient(95deg, transparent 0 20px, rgba(255, 255, 255, 0.8) 20px 26px, transparent 26px 42px),
    rgba(143, 240, 188, 0.28);
  animation: final-card-pop 620ms ease-out both;
}

.final-gahook-card.is-final-boo::after,
.final-gahook-card.is-gahooked::after {
  background:
    repeating-linear-gradient(-45deg, transparent 0 18px, rgba(255, 61, 139, 0.46) 18px 28px, transparent 28px 42px),
    rgba(250, 204, 21, 0.22);
  animation: final-card-pop 540ms steps(2) both;
}

.final-gahook-card.is-winner {
  background: linear-gradient(135deg, #fff19a, #ffba62 52%, #ff8fbd);
  border: 4px solid #fff4a3;
  box-shadow: 0 0 0 4px rgba(255, 244, 163, 0.25), 0 0 32px rgba(255, 223, 69, 0.55);
  animation: winner-border-party 1.1s ease-in-out infinite alternate;
  color: #064e3b;
}

.final-gahook-card.is-winner::before,
.final-gahook-card.is-best::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  background:
    repeating-linear-gradient(100deg, transparent 0 26px, rgba(255, 255, 255, 0.6) 26px 32px, transparent 32px 58px),
    repeating-linear-gradient(25deg, transparent 0 34px, rgba(0, 191, 216, 0.35) 34px 42px, transparent 42px 70px);
  animation: streamer-slide 1.7s linear infinite;
}

.final-gahook-card.is-best {
  background: linear-gradient(135deg, #8ff0bc, #00bfd8 52%, #246bfe);
  border: 4px solid #d8fbff;
  box-shadow: 0 0 0 4px rgba(141, 240, 188, 0.24), 0 0 32px rgba(0, 191, 216, 0.48);
  animation: winner-border-party 1.2s ease-in-out infinite alternate-reverse;
  color: #064e3b;
}

.final-gahook-card.is-best-answer {
  background: linear-gradient(135deg, #fff3a8, #8ff0bc 48%, #76d8ff);
  border: 4px solid #fff4a3;
  box-shadow: 0 0 0 4px rgba(255, 244, 163, 0.22), 0 0 32px rgba(32, 178, 107, 0.42);
  color: #064e3b;
}

.final-gahook-card.is-loser {
  background: linear-gradient(135deg, #fff0f4 0%, #ffc4d8 52%, #ff9fbe 100%);
  color: #68102f;
  border: 3px solid #ff3d8b;
}

.final-gahook-card.is-worst {
  background: linear-gradient(135deg, #fff7ad, #ffb86b 48%, #ff6b6b);
  color: #7f1d1d;
  border: 3px solid #ff8a00;
  animation: near-ultimate-pulse 1.15s ease-in-out infinite;
}

.final-gahook-card.is-loser > span,
.final-gahook-card.is-loser h2,
.final-gahook-card.is-loser strong,
.final-gahook-card.is-loser em,
.final-gahook-card.is-worst > span,
.final-gahook-card.is-worst h2,
.final-gahook-card.is-worst strong,
.final-gahook-card.is-worst em {
  color: #68102f;
}

.final-gahook-card > span {
  grid-column: 1 / -1;
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  line-height: 1.05;
  font-weight: 1000;
  text-transform: uppercase;
}

.final-gahook-card.is-winner > span,
.final-gahook-card.is-best > span,
.final-gahook-card.is-best-answer > span {
  color: #064e3b;
}

.final-gahook-card > .avatar-badge {
  grid-column: 1;
  grid-row: 2 / span 2;
  align-self: start;
}

.final-gahook-card h2 {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: none;
}

.final-gahook-card strong,
.final-gahook-card em {
  grid-column: 2;
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 1000;
}

.final-gahook-card strong {
  grid-row: 3;
}

.final-gahook-card em {
  grid-row: 4;
  overflow-wrap: anywhere;
}

.final-gahook-card.has-media-image {
  min-height: 360px;
}

.final-award-image {
  grid-column: 1 / -1;
  grid-row: 4;
  width: 100%;
  max-height: 150px;
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.88);
}

.final-gahook-card.has-media-image em {
  grid-row: 5;
}

.final-gahook-card.has-media-image button {
  grid-row: 6;
}

.final-gahook-card button {
  grid-column: 1 / -1;
  min-height: 58px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 1000;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.18);
}

.final-gahook-card.is-winner button,
.final-gahook-card.is-best button,
.final-gahook-card.is-best-answer button {
  background: linear-gradient(135deg, #20b26b, #00bfd8);
  color: #041615;
}

.final-gahook-card.is-loser button,
.final-gahook-card.is-worst button {
  background: linear-gradient(135deg, #ff3d8b, #ff8a00);
}

.final-gahook-card button:disabled {
  background: #d9dee8;
  color: #667085;
  box-shadow: none;
}

.finale-winner-stage {
  width: min(100%, 1200px);
  min-height: 0;
  margin: 24px auto 0;
  padding: clamp(28px, 4vw, 52px);
  position: relative;
  overflow: hidden;
  border: 3px solid #fff2a8;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22), inset 0 0 0 5px rgba(255, 255, 255, 0.18);
  isolation: isolate;
}

.finale-winner-stage > span {
  border-radius: 999px;
  padding: 6px 13px;
  background: rgba(6, 59, 32, 0.9);
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finale-winner-stage h1 {
  max-width: 920px;
  margin: 4px 0 0;
  font-size: clamp(2.6rem, 7vw, 6rem);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.finale-winner-stage > p {
  max-width: 720px;
  margin: 4px 0 12px;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 900;
}

.finale-winner-cards {
  width: min(100%, 880px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}

.final-gahook-card.is-compact {
  min-height: 0;
  grid-template-columns: 58px minmax(0, 1fr);
  align-content: start;
  gap: 7px 12px;
  border-width: 2px;
  padding: 14px;
  box-shadow: 0 9px 22px rgba(17, 18, 20, 0.15);
  animation: none;
}

.final-gahook-card.is-compact > span {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.final-gahook-card.is-compact > .avatar-badge {
  width: 52px;
  height: 52px;
  grid-row: 2 / span 2;
}

.final-gahook-card.is-compact h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

.final-gahook-card.is-compact strong {
  font-size: 0.95rem;
}

.final-gahook-card.is-compact em {
  grid-column: 1 / -1;
  margin-top: 3px;
  font-size: 0.88rem;
  line-height: 1.25;
}

.final-gahook-card.is-compact button {
  min-height: 44px;
  font-size: 0.9rem;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16);
}

.finale-winner-stage .final-gahook-card.is-winner {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(6, 78, 59, 0.25);
  color: #064e3b;
}

.finale-winner-stage .final-gahook-card::before,
.finale-party-awards .final-gahook-card::before {
  opacity: 0.18;
  animation: none;
}

.finale-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.finale-confetti i {
  width: 12px;
  height: 28px;
  position: absolute;
  border-radius: 4px;
  background: #246bfe;
  transform: rotate(18deg);
  opacity: 0.72;
}

.finale-confetti i:nth-child(1) { left: 7%; top: 16%; background: #ff3d8b; transform: rotate(-24deg); }
.finale-confetti i:nth-child(2) { left: 17%; bottom: 14%; background: #00bfd8; transform: rotate(38deg); }
.finale-confetti i:nth-child(3) { right: 8%; top: 18%; background: #20b26b; transform: rotate(28deg); }
.finale-confetti i:nth-child(4) { right: 19%; bottom: 12%; background: #7c3aed; transform: rotate(-35deg); }
.finale-confetti i:nth-child(5) { left: 36%; top: 6%; background: #ffffff; transform: rotate(78deg); }
.finale-confetti i:nth-child(6) { right: 37%; bottom: 5%; background: #ff3d8b; transform: rotate(62deg); }

.finale-party-awards {
  width: min(100%, 1200px);
  margin: 24px auto 0;
  border-radius: 12px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.finale-party-awards > header {
  margin-bottom: 16px;
  text-align: center;
}

.finale-party-awards > header span {
  color: #ffdf45;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finale-party-awards > header h2 {
  margin: 3px 0 4px;
  color: #ffffff;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.finale-party-awards > header p {
  margin: 0;
  color: #d0d5dd;
  font-weight: 750;
}

.finale-awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 14px;
}

.finale-party-awards .final-gahook-card.is-best {
  background: linear-gradient(135deg, #e5fff1, #caf5f7);
  border-color: #65d39b;
}

.finale-party-awards .final-gahook-card.is-best-answer {
  background: linear-gradient(135deg, #fffbe0, #dcfce8 52%, #d8f7ff);
  border-color: #e5bd35;
}

.finale-party-awards .final-gahook-card.is-loser {
  background: linear-gradient(135deg, #fff7fa, #f8e4ed);
  border-color: #d98aa8;
}

.finale-party-awards .final-gahook-card.is-worst {
  background: linear-gradient(135deg, #fffbe6, #f5e7d5);
  border-color: #d8ad6c;
}

.party-scoreboard .finale-winner-stage h1 {
  font-size: clamp(2.6rem, 7vw, 6rem);
}

.party-scoreboard .game-leaderboard-heading h2 {
  color: #ffffff;
}

.final-party-grid {
  width: min(100%, 1200px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 16px;
  margin: 28px auto 0;
  padding-top: 24px;
  border-top: 3px solid rgba(255, 255, 255, 0.32);
  align-items: start;
}

.final-shame-row {
  margin-top: 16px;
}

.final-leaderboard-panel,
.final-host-options {
  min-width: 0;
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.final-leaderboard-panel h2,
.final-host-options h2 {
  margin: 0 0 12px;
  color: #ffffff;
}

.final-leaderboard-panel .leaderboard-list em {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 1000;
}

.final-host-options {
  display: grid;
  gap: 12px;
}

.host-vote-strip {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.host-vote-strip span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 18px;
  background: #ffffff;
  color: #111214;
  font-weight: 1000;
}

.join-form {
  align-self: center;
  display: grid;
  gap: 14px;
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.12);
}

.player-party-join {
  min-height: 100vh;
  overflow-y: auto;
}

.party-join-form {
  width: min(100%, 620px);
  height: min(650px, calc(100dvh - 250px));
  min-height: 0;
  max-height: calc(100dvh - 250px);
  margin: 12px auto 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.join-player-preview {
  min-height: 92px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, #27334e, #07516a);
  color: #ffffff;
  border: 2px solid rgba(0, 191, 216, 0.52);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.14);
}

.join-player-preview h2,
.join-player-preview p {
  margin: 0;
  min-width: 0;
}

.join-player-preview h2 {
  font-size: 1.35rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.join-player-preview p {
  margin-top: 4px;
  color: #d8fbff;
  font-size: 0.84rem;
  font-weight: 900;
}

.join-player-preview > strong {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.95rem;
}

.join-explainer-slot {
  width: min(100%, 720px);
  min-width: 0;
  margin: 20px auto 0;
}

.join-explainer-slot .room-status-banner {
  padding-block: 11px;
  background: linear-gradient(90deg, #17435c, #17665b);
  color: #ffffff;
}

.join-explainer-slot .room-status-banner h1 {
  font-size: 1.12rem;
}

.join-explainer-slot .room-status-banner p {
  font-size: 0.82rem;
}

.party-join-form .avatar-picker {
  min-height: 0;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr);
}

.party-join-form .avatar-picker > div {
  height: 100%;
  max-height: none;
  min-height: 0;
  align-content: start;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.join-form-actions {
  min-width: 0;
  display: grid;
  gap: 10px;
  padding-top: 2px;
  background: #ffffff;
}

.join-form-actions > .primary-button {
  min-height: 50px;
  width: 100%;
}

.profile-edit-cancel {
  min-height: 48px;
  border-radius: 8px;
  background: #eef1f7;
  color: #344054;
  font-weight: 1000;
}

.join-form label,
.question-input-label {
  display: grid;
  gap: 7px;
}

.join-form label span,
.builder-heading span,
.player-summary span,
.party-roster h2 {
  color: var(--muted);
  font-weight: 900;
  font-size: 0.85rem;
}

.join-form input,
.question-builder textarea,
.builder-answer input[type="text"],
.builder-answer input:not([type]) {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

.join-form input:focus,
.question-builder textarea:focus,
.builder-answer input:focus {
  border-color: #246bfe;
  box-shadow: 0 0 0 3px rgba(36, 107, 254, 0.13);
}

.join-form input[inputmode="numeric"] {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0;
}

.player-summary {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 14px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.player-summary.is-ready {
  background: #edfbf4;
  border-color: #65d39b;
  box-shadow: inset 4px 0 0 #20b26b;
}

.submitted-question-list {
  display: grid;
  gap: 8px;
}

.submitted-question-banner {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 8px 9px 8px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.submitted-question-banner.is-pending {
  border-style: dashed;
}

.submitted-question-banner.is-editing {
  border-color: #246bfe;
  box-shadow: 0 0 0 3px rgba(36, 107, 254, 0.13);
}

.submitted-question-number {
  color: #246bfe;
  font-size: 1.45rem;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.submitted-question-banner p {
  min-width: 0;
  margin: 0;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.edit-question-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f0ff;
  color: #1556d8;
}

.edit-question-button:hover {
  background: #d8e7ff;
}

.edit-question-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player-summary div {
  min-width: 0;
}

.player-summary-name span {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.08;
  font-weight: 1000;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.player-ready-chip {
  width: fit-content;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(32, 178, 107, 0.14);
  color: #137345;
  font-size: 0.72rem;
  font-weight: 1000;
}

.player-question-progress {
  display: block;
  width: 76px;
  color: var(--ink);
  font-size: 1.45rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ready-button {
  min-height: 42px;
  width: 118px;
  border-radius: 8px;
  padding: 0 12px;
  background: #e8edf4;
  color: var(--ink);
  font-weight: 1000;
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.ready-button.needs-ready {
  background: #e8edf4;
  color: #667085;
  border: 1px solid #d9dee8;
}

.ready-button.needs-ready:not(:disabled) {
  background: linear-gradient(135deg, #f2c230, #ff8a00);
  border: 0;
  color: #211a04;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16);
}

.ready-button.needs-ready:not(:disabled):hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.ready-button.is-ready {
  background: linear-gradient(135deg, #20b26b, #f2c230);
  color: #07140e;
}

.ready-button-below {
  width: 100%;
  min-height: 52px;
}

.avatar-picker {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.avatar-picker legend {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
  padding: 0;
}

.avatar-picker > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: 315px;
  overflow: auto;
}

.avatar-choice {
  min-height: 92px;
  display: grid;
  place-items: center;
  gap: 5px;
  border-radius: 8px;
  background: #f3f5f9;
  color: var(--ink);
  border: 2px solid transparent;
  font-weight: 900;
}

.avatar-choice.is-selected {
  border-color: #111214;
  background: #ffffff;
}

.random-avatar-choice {
  background: linear-gradient(135deg, #fff4c2, #d8fbff);
}

.random-avatar-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #f2c230, #00bfd8);
  color: #111214;
}

.random-avatar-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.question-builder,
.party-roster,
.limit-panel,
.party-state-panel,
.party-scoreboard {
  margin-top: 14px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 14px;
}

.party-roster.is-game-roster {
  width: min(100%, 1200px);
  margin-left: auto;
  margin-right: auto;
}

.builder-heading {
  margin-bottom: 12px;
  text-align: center;
}

.builder-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.65rem, 7vw, 2.4rem);
  line-height: 1;
}

.cancel-edit-button {
  min-height: 36px;
  margin-top: 9px;
  border-radius: 8px;
  padding: 0 12px;
  background: #eef1f7;
  color: #344054;
  font-weight: 1000;
}

.preset-question-button {
  width: 100%;
  min-height: 42px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: linear-gradient(135deg, #246bfe, #ff3d8b);
  color: #ffffff;
  font-weight: 1000;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.16);
}

.preset-question-button.herd-prompt-generator {
  background: linear-gradient(135deg, #20b26b, #00bfd8 54%, #246bfe);
}

.preset-question-button.herd-prompt-generator:disabled {
  background: #d0d5dd;
  color: #475467;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
  cursor: not-allowed;
}

.question-builder textarea {
  resize: vertical;
  min-height: 92px;
}

.image-preview,
.image-placeholder {
  margin-top: 12px;
  border-radius: 8px;
  border: 1px dashed var(--line);
  overflow: hidden;
}

.image-preview {
  position: relative;
  background: #eef1f7;
}

.image-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.image-preview button {
  position: absolute;
  top: 8px;
  right: 8px;
}

.image-placeholder {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 900;
  width: 100%;
  background: #f8fbff;
  cursor: pointer;
}

.image-placeholder:hover {
  border-color: #246bfe;
  color: #246bfe;
  background: #eef6ff;
}

.image-upload-draw-picker {
  margin-top: 12px;
  display: grid;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #f8fbff;
}

.image-choice-preview {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #eef1f7;
}

.image-choice-preview img {
  display: block;
  width: 100%;
  max-height: 210px;
  object-fit: contain;
}

.image-choice-preview > button {
  position: absolute;
  top: 8px;
  right: 8px;
}

.image-source-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.image-source-actions > button {
  min-width: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid #b8c7dc;
  border-radius: 8px;
  padding: 8px 10px;
  background: #ffffff;
  color: #174ea6;
  font: inherit;
  font-weight: 1000;
}

.image-source-actions > button:hover,
.image-source-actions > button:focus-visible {
  border-color: #246bfe;
  background: #eef6ff;
}

.image-source-actions > button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.image-source-actions svg {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.image-upload-draw-picker > small {
  color: #667085;
  font-weight: 800;
  text-align: center;
}

.herd-answer-panel .image-upload-draw-picker {
  margin-top: 0;
  border-color: rgba(17, 18, 20, 0.28);
  background: rgba(255, 255, 255, 0.78);
}

.answer-image-paint-modal {
  width: min(100%, 900px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.upload-mini-icon {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.builder-answer-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.builder-answer {
  min-height: 54px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 8px;
  color: #ffffff;
}

.builder-answer.is-poll-answer {
  grid-template-columns: minmax(0, 1fr) 32px;
}

.builder-answer input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #111214;
}

.builder-answer input:not([type]) {
  min-width: 0;
  color: var(--ink);
  border: 0;
}

.builder-answer button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #111214;
  font-weight: 1000;
}

.question-builder .primary-button {
  width: 100%;
  min-height: 50px;
  margin-top: 12px;
}

.add-answer-button {
  width: 100%;
  min-height: 56px;
  margin-top: 10px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: var(--blue);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 1000;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18), 0 5px 12px rgba(36, 107, 254, 0.18);
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}

.add-answer-button.answer-red { background: var(--red); }
.add-answer-button.answer-blue { background: var(--blue); }
.add-answer-button.answer-yellow { background: var(--yellow); color: #211a04; }
.add-answer-button.answer-green { background: var(--green); }

.add-answer-button:hover {
  filter: saturate(1.14) brightness(1.04);
  transform: translateY(-1px);
}

.add-answer-button:active {
  transform: translateY(2px);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.party-roster {
  display: grid;
  gap: 9px;
}

.roster-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.party-roster h2 {
  margin: 0;
}

.roster-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 58px 104px;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #f3f5f9;
  padding: 8px 10px;
}

.roster-poke,
.roster-self {
  min-height: 38px;
  min-width: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 1000;
  white-space: nowrap;
}

.roster-poke {
  background: linear-gradient(135deg, #ff3d8b, #ff8a00);
  color: #ffffff;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.16);
}

.roster-poke.is-self-poke {
  background: linear-gradient(135deg, #20b26b, #00bfd8);
  color: #041615;
}

.poke-hint {
  font-variant-numeric: tabular-nums;
}

.roster-self {
  background: #ffffff;
  color: var(--muted);
  border: 1px solid var(--line);
}

.roster-row span,
.roster-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-row > span:not(.avatar-badge) {
  color: var(--ink);
  font-weight: 900;
}

.roster-row em {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 900;
  text-align: right;
}

.roster-gahook-plus {
  grid-column: 2 / 4;
  grid-row: 2;
  justify-self: start;
  border-radius: 999px;
  padding: 3px 8px;
  background: #e6f6ff;
  color: #067647;
  font-size: 0.75rem;
  font-weight: 1000;
}

.limit-panel {
  min-height: 78px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-weight: 900;
}

.ready-waiting-status {
  margin: 0;
  padding: 4px 2px;
  color: #9cf3c0;
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
}

.party-start-button {
  width: 100%;
  margin-top: 14px;
}

.party-start-button .start-button {
  width: 100%;
}

.vote-panel,
.question-results {
  margin-top: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 14px;
}

.party-state-panel {
  min-height: 168px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.party-state-panel span {
  color: var(--muted);
  font-weight: 900;
}

.party-state-panel strong {
  font-size: 2rem;
}

.reveal-round-summary {
  width: 100%;
  margin-top: 22px;
  display: grid;
  gap: 28px;
}

.reveal-vote-panel {
  width: min(100%, 800px);
  margin: 0 auto;
  padding: 17px 18px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(17, 18, 20, 0.12);
}

.reveal-vote-panel > span {
  color: #111214;
  display: block;
  padding: 3px 0 9px;
  font-size: 1.3rem;
  font-weight: 1000;
}

.reveal-vote-panel .vote-button {
  min-height: 60px;
  font-size: 1.12rem;
}

.reveal-vote-timer {
  margin-bottom: 12px;
}

.vote-button,
.vote-count {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
}

.vote-choice-players {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.vote-choice-players > span {
  display: inline-flex;
  margin-left: -7px;
  animation: answer-player-pop 220ms cubic-bezier(0.2, 1.5, 0.35, 1) both;
}

.vote-choice-players .avatar-badge.is-small {
  width: 34px;
  height: 34px;
  border: 2px solid #ffffff;
}

.vote-count {
  min-height: 64px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 1000;
}

.vote-count.is-good {
  background: #8ff0bc;
  color: #063b20;
}

.vote-count.is-bad {
  background: #ff9fc5;
  color: #7f1239;
}

.reveal-leaderboard-panel {
  width: min(100%, 950px);
  margin: 0 auto;
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.reveal-leaderboard-panel h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 1.5rem;
}

.game-leaderboard-panel {
  margin-top: 22px;
}

.game-leaderboard-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.game-leaderboard-heading h2 {
  margin: 0;
}

.game-leaderboard-heading span {
  color: #d0d5dd;
  font-size: 0.82rem;
  font-weight: 850;
  text-align: right;
}

.reveal-round-summary .game-leaderboard-panel,
.final-party-grid .game-leaderboard-panel,
.party-final-body > .game-leaderboard-panel {
  margin-top: 0;
}

.reveal-leaderboard-panel .leaderboard-list li {
  background: #f3f5f9;
  border: 1px solid #d9dee8;
}

.reveal-leaderboard-panel .leaderboard-list strong {
  color: #111214;
}

.reveal-leaderboard-panel .leaderboard-list em {
  color: #344054;
  font-size: 1.05rem;
  font-weight: 1000;
}

.locked-panel strong {
  color: #246bfe;
}

.reveal-panel {
  color: #b42318;
}

.reveal-panel.is-correct {
  color: #067647;
}

.reveal-panel em {
  font-style: normal;
  color: var(--muted);
  font-weight: 900;
}

.reveal-correct-answer {
  width: 100%;
  display: grid;
  gap: 5px;
  border: 3px solid currentColor;
  border-radius: 8px;
  padding: 14px 16px;
  background: #ffffff;
  text-align: center;
}

.reveal-correct-answer span {
  color: inherit;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.reveal-correct-answer strong {
  color: inherit;
  font-size: clamp(1.2rem, 3vw, 2rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.reveal-correct-answer.is-red { color: var(--red); }
.reveal-correct-answer.is-blue { color: var(--blue); }
.reveal-correct-answer.is-yellow { color: #9a6700; }
.reveal-correct-answer.is-green,
.reveal-correct-answer.is-herd,
.reveal-correct-answer.is-neutral { color: var(--green); }

.vote-panel {
  width: 100%;
  color: var(--ink);
}

.vote-panel > div {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.vote-button {
  min-height: 58px;
  border-radius: 8px;
  border: 3px solid rgba(17, 18, 20, 0.12);
  font-size: 1.05rem;
  font-weight: 1000;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.16), 0 5px 12px rgba(17, 18, 20, 0.12);
}

.vote-button:first-child {
  background: #8ff0bc;
  color: #063b20;
}

.vote-button:last-child {
  background: #ff9fc5;
  color: #7f1239;
}

.vote-button.is-selected {
  background: linear-gradient(135deg, #20b26b, #f2c230);
  outline: 4px solid #ffffff;
  box-shadow: 0 0 0 3px #111214, inset 0 -6px 0 rgba(0, 0, 0, 0.16);
}

.question-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  color: var(--ink);
}

.question-results.is-compact {
  grid-template-columns: 1fr;
  text-align: left;
}

.question-results article {
  min-width: 0;
  border-radius: 8px;
  background: #f3f5f9;
  padding: 12px;
}

.question-results span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 1000;
}

.question-results strong {
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.question-results em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.question-results .question-author-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.party-scoreboard {
  display: grid;
  gap: 14px;
  text-align: center;
}

.party-scoreboard.is-final {
  text-align: left;
}

.party-final-body {
  width: min(100%, 1200px);
  margin-inline: auto;
}

.party-final-leaderboard,
.party-final-actions {
  width: min(100%, 950px);
  margin-inline: auto;
}

.party-final-leaderboard {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 3px solid #d9dee8;
}

.party-final-leaderboard h2 {
  margin: 0 0 12px;
}

.party-final-actions {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.new-same-rules-button {
  min-height: 56px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f2c230, #ff8a00);
  color: #111214;
  font-weight: 1000;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.16);
}

.party-final-body > h2,
.party-final-body > .leaderboard-list {
  width: min(100%, 950px);
  margin-inline: auto;
}

.party-final-body > h2 {
  margin-top: 22px;
  margin-bottom: 12px;
}

.party-final-body > .leaderboard-list em {
  color: #344054;
  font-size: 1.08rem;
  font-weight: 1000;
}

.party-scoreboard h1 {
  margin: 0;
  font-size: 2rem;
}

.party-scoreboard h2 {
  margin: 0;
  color: var(--ink);
}

.party-scoreboard ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.party-scoreboard li {
  min-height: 44px;
  display: grid;
  grid-template-columns: 32px 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #f3f5f9;
  padding: 8px 10px;
  text-align: left;
}

.party-scoreboard li.has-gahook-action {
  grid-template-columns: 32px 32px minmax(0, 1fr) auto minmax(94px, 108px);
}

.party-scoreboard li strong {
  min-width: 0;
  color: var(--ink);
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  line-height: 1.05;
}

.party-scoreboard li > span,
.party-scoreboard li > em {
  font-style: normal;
  font-weight: 900;
  color: var(--muted);
}

.party-scoreboard.is-final .question-results {
  margin-top: 0;
}

.party-scoreboard.is-final .final-gahook-card {
  min-height: 0;
  grid-template-columns: 58px minmax(0, 1fr);
  align-content: start;
  gap: 8px 12px;
  padding: 14px;
}

.party-scoreboard.is-final .final-gahook-card > .avatar-badge {
  width: 52px;
  height: 52px;
  grid-row: 2 / span 2;
}

.party-scoreboard.is-final .final-gahook-card h2 {
  font-size: clamp(1.35rem, 6.6vw, 2rem);
  line-height: 1.03;
}

.party-scoreboard.is-final .final-gahook-card strong {
  font-size: 0.98rem;
}

.party-scoreboard.is-final .final-gahook-card em {
  grid-column: 1 / -1;
  text-align: center;
  margin-top: 4px;
}

.party-scoreboard.is-final .final-gahook-card button {
  min-height: 54px;
}

.party-restart-button {
  width: 100%;
  min-height: 54px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 380px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  background: #111214;
  color: #ffffff;
  padding: 12px 12px 12px 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  z-index: 20;
  overflow: hidden;
}

.toast::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff3d8b, #f2c230, #00bfd8);
  transform-origin: left center;
  animation: toast-timer 5s linear both;
}

.toast span {
  overflow-wrap: anywhere;
  font-weight: 800;
}

.toast-close {
  background: rgba(255, 255, 255, 0.12);
}

.poke-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 16px, rgba(255, 61, 139, 0.16) 16px 32px),
    #050507;
  animation: poke-flash 180ms steps(2) infinite;
}

.poke-overlay.is-ultimate {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.13) 0 12px, rgba(230, 56, 58, 0.26) 12px 24px),
    #230006;
  animation: ultimate-overlay 140ms steps(2) infinite;
}

.poke-overlay.is-form-gorilla:not(.is-ultimate):not(.is-get-got) {
  background:
    radial-gradient(circle at 50% 42%, rgba(139, 23, 32, 0.72) 0 13%, transparent 36%),
    repeating-linear-gradient(52deg, #050507 0 26px, #260308 26px 48px, #620c16 48px 58px);
  animation: premium-gorilla-bg 150ms steps(2) infinite;
}

.poke-overlay.is-form-koala:not(.is-ultimate):not(.is-get-got) {
  background:
    radial-gradient(circle at 50% 42%, rgba(92, 64, 162, 0.74) 0 12%, transparent 36%),
    repeating-radial-gradient(circle, #0a1231 0 34px, #251654 35px 63px, #12375f 64px 76px);
  animation: premium-koala-bg 420ms steps(2) infinite;
}

.poke-overlay.is-form-croc:not(.is-ultimate):not(.is-get-got) {
  background:
    radial-gradient(circle at 50% 42%, rgba(56, 140, 62, 0.62) 0 12%, transparent 35%),
    repeating-conic-gradient(from 15deg, #03140b 0 14deg, #06452d 14deg 28deg, #12351a 28deg 35deg);
  animation: premium-croc-bg 180ms steps(2) infinite;
}

.poke-overlay.is-form-capybara:not(.is-ultimate):not(.is-get-got) {
  background:
    radial-gradient(circle at 50% 42%, rgba(205, 145, 29, 0.55) 0 13%, transparent 36%),
    repeating-linear-gradient(-35deg, #201207 0 28px, #57310d 28px 50px, #8b5a12 50px 58px);
  animation: premium-capy-bg 180ms steps(2) infinite;
}

.poke-overlay.is-form-chicken:not(.is-ultimate):not(.is-get-got) {
  background:
    radial-gradient(circle at 50% 42%, rgba(194, 79, 9, 0.62) 0 12%, transparent 36%),
    repeating-conic-gradient(from -20deg, #06252a 0 16deg, #094752 16deg 30deg, #6d2807 30deg 40deg, #a33f08 40deg 46deg);
  animation: premium-chicken-bg 140ms steps(2) infinite;
}

.poke-overlay.is-counter.is-counter:not(.is-get-got):not(.is-ultimate) {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.7) 0 7%, transparent 8% 100%),
    repeating-conic-gradient(from 12deg, #00bfd8 0 13deg, #ffdf45 13deg 25deg, #ff3d8b 25deg 36deg, #111214 36deg 40deg);
  animation: counter-gahook-bg 130ms steps(2) infinite;
}

.poke-overlay.is-premium-form {
  overflow: hidden;
  isolation: isolate;
}

.poke-overlay.is-premium-form::before,
.poke-overlay.is-premium-form::after {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
}

.poke-overlay.is-premium-form::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 8vw, rgba(255, 255, 255, 0.1) 8vw 8.5vw, transparent 8.5vw 16vw),
    repeating-linear-gradient(0deg, transparent 0 9vh, rgba(0, 0, 0, 0.28) 9vh 10vh, transparent 10vh 18vh);
  animation: premium-grid-slam 680ms steps(2) infinite;
}

.poke-overlay.is-premium-form::after {
  inset: 0;
  background: radial-gradient(circle at 50% 45%, transparent 0 22%, rgba(0, 0, 0, 0.22) 42%, rgba(0, 0, 0, 0.82) 100%);
  animation: premium-vignette-pulse 220ms steps(2) infinite;
}

.poke-overlay.is-custom-form {
  --custom-gahook-color: #ff3d8b;
  overflow: hidden;
  isolation: isolate;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 16px, color-mix(in srgb, var(--custom-gahook-color) 42%, transparent) 16px 32px),
    color-mix(in srgb, var(--custom-gahook-color) 32%, #050507);
  animation: poke-flash 180ms steps(2) infinite;
}

.poke-overlay.is-custom-background-burst {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.76) 0 8%, transparent 9%),
    repeating-conic-gradient(from 5deg at 50% 45%, #ffdf45 0 10deg, #ff3d8b 10deg 20deg, #00bfd8 20deg 30deg, #111214 30deg 34deg);
  animation: custom-background-drift 500ms steps(2) infinite alternate;
}

.poke-overlay.is-custom-background-checker {
  background-color: #2d145f;
  background-image:
    linear-gradient(45deg, #ff3d8b 25%, transparent 25% 75%, #ff3d8b 75%),
    linear-gradient(45deg, #00bfd8 25%, transparent 25% 75%, #00bfd8 75%);
  background-position: 0 0, 32px 32px;
  background-size: 64px 64px;
  animation: custom-checker-scroll 680ms linear infinite;
}

.poke-overlay.is-custom-background-void {
  background:
    radial-gradient(circle at 50% 44%, rgba(126, 249, 255, 0.36), transparent 24%),
    radial-gradient(circle at 18% 22%, #7026ad 0 2%, transparent 3%),
    radial-gradient(circle at 82% 72%, #ff3d8b 0 2%, transparent 3%),
    #03040d;
  animation: custom-void-pulse 760ms ease-in-out infinite alternate;
}

.poke-overlay.is-custom-background-confetti {
  background:
    radial-gradient(circle, #ffdf45 0 7px, transparent 8px) 8px 8px / 74px 74px,
    radial-gradient(circle, #ff3d8b 0 6px, transparent 7px) 42px 31px / 82px 82px,
    linear-gradient(135deg, #07516a, #50236f);
  animation: custom-checker-scroll 720ms linear infinite;
}

.custom-gahook-effects {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.custom-gahook-effects > span {
  position: absolute;
  left: 6%;
  top: 8%;
  width: clamp(24px, 4vw, 58px);
  aspect-ratio: 1;
  border: 5px solid rgba(255, 255, 255, 0.88);
  background: #ffdf45;
  box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.34);
  transform: rotate(16deg);
  animation: custom-effect-pop 520ms cubic-bezier(0.2, 1.5, 0.3, 1) infinite alternate;
}

.custom-gahook-effects > span:nth-child(2) { left: 20%; top: 78%; animation-delay: -90ms; background: #ff3d8b; border-radius: 50%; }
.custom-gahook-effects > span:nth-child(3) { left: 77%; top: 11%; animation-delay: -180ms; background: #00bfd8; }
.custom-gahook-effects > span:nth-child(4) { left: 86%; top: 67%; animation-delay: -270ms; background: #20b26b; border-radius: 50%; }
.custom-gahook-effects > span:nth-child(5) { left: 4%; top: 45%; animation-delay: -360ms; background: #ff8a00; }
.custom-gahook-effects > span:nth-child(6) { left: 91%; top: 38%; animation-delay: -450ms; background: #ffdf45; border-radius: 50%; }
.custom-gahook-effects > span:nth-child(7) { left: 35%; top: 5%; animation-delay: -130ms; background: #20b26b; }
.custom-gahook-effects > span:nth-child(8) { left: 55%; top: 84%; animation-delay: -220ms; background: #00bfd8; border-radius: 50%; }
.custom-gahook-effects > span:nth-child(9) { left: 11%; top: 22%; animation-delay: -310ms; background: #ff3d8b; }
.custom-gahook-effects > span:nth-child(10) { left: 68%; top: 24%; animation-delay: -400ms; background: #ff8a00; border-radius: 50%; }
.custom-gahook-effects > span:nth-child(11) { left: 25%; top: 59%; animation-delay: -490ms; background: #ffdf45; }
.custom-gahook-effects > span:nth-child(12) { left: 73%; top: 58%; animation-delay: -170ms; background: #20b26b; border-radius: 50%; }

.poke-overlay.is-custom-form .poke-scare-card {
  z-index: 2;
}

.custom-gahook-visual {
  position: relative;
  width: min(74vw, 360px);
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  transform-origin: 50% 55%;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.58));
  user-select: none;
}

.custom-gahook-visual.is-small {
  width: min(24vw, 140px);
}

.custom-gahook-visual > img {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  border: 7px solid rgba(255, 255, 255, 0.92);
  border-radius: 18%;
  background: #ffffff;
  object-fit: contain;
  image-rendering: auto;
  box-shadow: inset 0 -9px 0 rgba(0, 0, 0, 0.14);
  opacity: 0;
}

.custom-gahook-visual > img:first-child {
  opacity: 1;
}

.custom-gahook-visual.has-2-frames > .custom-gahook-frame {
  animation: custom-frame-cycle-2 var(--custom-frame-duration) steps(1, end) infinite;
  animation-delay: var(--custom-frame-delay);
}

.custom-gahook-visual.has-3-frames > .custom-gahook-frame {
  animation: custom-frame-cycle-3 var(--custom-frame-duration) steps(1, end) infinite;
  animation-delay: var(--custom-frame-delay);
}

.custom-gahook-visual.has-4-frames > .custom-gahook-frame {
  animation: custom-frame-cycle-4 var(--custom-frame-duration) steps(1, end) infinite;
  animation-delay: var(--custom-frame-delay);
}

.custom-gahook-visual.is-effect-shake { animation: custom-visual-shake 110ms steps(2) infinite; }
.custom-gahook-visual.is-effect-spin { animation: custom-visual-spin 640ms cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.custom-gahook-visual.is-effect-bounce { animation: custom-visual-bounce 300ms ease-in-out infinite alternate; }
.custom-gahook-visual.is-effect-zoom { animation: custom-visual-zoom 210ms steps(2) infinite alternate; }

@keyframes custom-frame-cycle-2 {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes custom-frame-cycle-3 {
  0%, 32% { opacity: 1; }
  33%, 100% { opacity: 0; }
}

@keyframes custom-frame-cycle-4 {
  0%, 24% { opacity: 1; }
  25%, 100% { opacity: 0; }
}

@keyframes custom-visual-shake {
  from { transform: translate(-9px, 4px) rotate(-4deg); }
  to { transform: translate(9px, -4px) rotate(4deg); }
}

@keyframes custom-visual-spin {
  0% { transform: rotate(-14deg) scale(0.92); }
  50% { transform: rotate(14deg) scale(1.08); }
  100% { transform: rotate(346deg) scale(0.92); }
}

@keyframes custom-visual-bounce {
  from { transform: translateY(18px) scale(0.94); }
  to { transform: translateY(-18px) scale(1.06); }
}

@keyframes custom-visual-zoom {
  from { transform: scale(0.84) rotate(-3deg); }
  to { transform: scale(1.14) rotate(3deg); }
}

@keyframes custom-effect-pop {
  from { transform: rotate(-18deg) scale(0.58); opacity: 0.56; }
  to { transform: rotate(22deg) scale(1.2); opacity: 1; }
}

@keyframes custom-background-drift {
  from { background-position: 0 0; }
  to { background-position: 18px -12px; }
}

@keyframes custom-checker-scroll {
  to { background-position: 64px 64px, 96px 96px; }
}

@keyframes custom-void-pulse {
  from { filter: saturate(0.8) brightness(0.72); }
  to { filter: saturate(1.35) brightness(1.08); }
}

.premium-form-effects {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.premium-form-effects > span {
  --premium-rotate: -8deg;
  position: absolute;
  left: 4%;
  top: 7%;
  width: clamp(46px, 7vw, 88px);
  height: clamp(46px, 7vw, 88px);
  filter: drop-shadow(8px 9px 0 rgba(0, 0, 0, 0.42));
  transform: rotate(var(--premium-rotate));
  animation: premium-prop-burst 760ms cubic-bezier(0.2, 1.4, 0.2, 1) infinite alternate;
}

.premium-form-effects > span::before,
.premium-form-effects > span::after,
.premium-form-effects > span i {
  content: "";
  position: absolute;
  display: block;
}

.premium-form-effects > span:nth-child(2) { left: 18%; top: 78%; --premium-rotate: 9deg; animation-delay: -180ms; }
.premium-form-effects > span:nth-child(3) { left: 76%; top: 9%; --premium-rotate: 12deg; animation-delay: -330ms; }
.premium-form-effects > span:nth-child(4) { left: 82%; top: 70%; --premium-rotate: -13deg; animation-delay: -480ms; }
.premium-form-effects > span:nth-child(5) { left: 2%; top: 42%; --premium-rotate: 15deg; animation-delay: -620ms; }
.premium-form-effects > span:nth-child(6) { left: 88%; top: 38%; --premium-rotate: -7deg; animation-delay: -90ms; }
.premium-form-effects > span:nth-child(7) { left: 31%; top: 3%; --premium-rotate: 6deg; animation-delay: -260ms; }
.premium-form-effects > span:nth-child(8) { left: 55%; top: 82%; --premium-rotate: -11deg; animation-delay: -410ms; }
.premium-form-effects > span:nth-child(9) { left: 11%; top: 21%; --premium-rotate: -16deg; animation-delay: -570ms; }
.premium-form-effects > span:nth-child(10) { left: 68%; top: 23%; --premium-rotate: 10deg; animation-delay: -690ms; }
.premium-form-effects > span:nth-child(11) { left: 24%; top: 58%; --premium-rotate: 13deg; animation-delay: -130ms; }
.premium-form-effects > span:nth-child(12) { left: 72%; top: 55%; --premium-rotate: -9deg; animation-delay: -300ms; }
.premium-form-effects > span:nth-child(13) { left: 43%; top: 10%; --premium-rotate: 8deg; animation-delay: -440ms; }
.premium-form-effects > span:nth-child(14) { left: 40%; top: 76%; --premium-rotate: -12deg; animation-delay: -590ms; }
.premium-form-effects > span:nth-child(15) { left: 47%; top: 43%; --premium-rotate: 5deg; animation-delay: -720ms; opacity: 0.42; }

.premium-effects-gorilla > span {
  border: 5px solid #09090b;
  background: #55555e;
  clip-path: polygon(50% 0, 62% 22%, 87% 8%, 82% 35%, 100% 50%, 80% 63%, 89% 92%, 61% 79%, 48% 100%, 38% 78%, 9% 91%, 18% 62%, 0 47%, 21% 35%, 12% 8%, 39% 21%);
}

.premium-effects-gorilla > span::before {
  inset: 18% 20%;
  border-left: 7px solid #8b1720;
  border-bottom: 6px solid #8b1720;
  transform: skew(-16deg) rotate(24deg);
}

.premium-effects-gorilla > span::after {
  width: 30%;
  height: 42%;
  right: 16%;
  top: 12%;
  border-right: 6px solid #232328;
  transform: rotate(28deg);
}

.premium-effects-koala > span {
  width: clamp(44px, 5vw, 68px);
  height: clamp(70px, 8vw, 104px);
  border: 5px solid #063c2a;
  border-radius: 80% 12% 80% 16%;
  background: #20b26b;
  box-shadow: inset 12px -8px 0 rgba(6, 78, 59, 0.42);
}

.premium-effects-koala > span::before {
  width: 6px;
  height: 76%;
  left: 47%;
  top: 12%;
  border-radius: 999px;
  background: #b7f7cd;
  transform: rotate(34deg);
}

.premium-effects-koala > span::after {
  width: 38%;
  height: 5px;
  left: 28%;
  top: 48%;
  border-radius: 999px;
  background: #b7f7cd;
  transform: rotate(-20deg);
}

.premium-effects-croc > span {
  width: clamp(78px, 9vw, 120px);
  height: clamp(34px, 4vw, 52px);
}

.premium-effects-croc > span::before,
.premium-effects-croc > span::after {
  top: 0;
  width: 43%;
  height: 78%;
  border: 5px solid #d8ae2d;
  border-radius: 7px 7px 18px 18px;
  background: #09090b;
  box-shadow: inset 7px 5px 0 rgba(110, 231, 249, 0.24);
}

.premium-effects-croc > span::before { left: 0; transform: skewX(8deg); }
.premium-effects-croc > span::after { right: 0; transform: skewX(-8deg); }

.premium-effects-croc > span i {
  left: 40%;
  top: 32%;
  width: 20%;
  height: 7px;
  border-radius: 999px;
  background: #d8ae2d;
}

.premium-effects-croc > span:nth-child(3n) {
  width: clamp(40px, 5vw, 64px);
  height: clamp(50px, 6vw, 78px);
  border: 5px solid #d8ae2d;
  border-radius: 50%;
}

.premium-effects-croc > span:nth-child(3n)::before,
.premium-effects-croc > span:nth-child(3n)::after {
  display: none;
}

.premium-effects-croc > span:nth-child(3n) i {
  inset: 20%;
  width: auto;
  height: auto;
  border: 4px solid #d8ae2d;
  border-radius: 50%;
  background: transparent;
}

.premium-effects-capybara > span {
  width: clamp(76px, 9vw, 122px);
  height: clamp(46px, 5vw, 68px);
  border: 5px solid #241408;
  background: #d69a1c;
  clip-path: polygon(0 34%, 78% 0, 78% 100%, 0 66%);
}

.premium-effects-capybara > span::before {
  right: 0;
  top: 6%;
  width: 31%;
  height: 88%;
  border: 5px solid #241408;
  border-radius: 50%;
  background: #f4c84d;
}

.premium-effects-capybara > span i {
  left: 5%;
  top: 38%;
  width: 34%;
  height: 24%;
  border-radius: 6px;
  background: #6f3510;
}

.premium-effects-capybara > span:nth-child(4n) {
  width: clamp(44px, 5vw, 68px);
  height: clamp(44px, 5vw, 68px);
  border-radius: 50%;
  clip-path: none;
  background: #7f4b18;
}

.premium-effects-capybara > span:nth-child(4n)::before {
  inset: 20%;
  width: auto;
  height: auto;
  border: 4px dashed #f4c84d;
  background: transparent;
}

.premium-effects-chicken > span {
  width: clamp(48px, 6vw, 78px);
  height: clamp(62px, 8vw, 102px);
  border: 5px solid #d96908;
  border-radius: 52% 48% 46% 54%;
  background: #fff2cb;
  box-shadow: inset -9px -5px 0 rgba(235, 163, 47, 0.38);
}

.premium-effects-chicken > span::before {
  width: 36%;
  height: 24%;
  left: 34%;
  top: 32%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
}

.premium-effects-chicken > span:nth-child(3n) {
  width: clamp(42px, 5vw, 66px);
  height: clamp(68px, 8vw, 105px);
  border-color: #063d48;
  border-radius: 90% 12% 90% 14%;
  background: #19aebd;
  transform: rotate(var(--premium-rotate));
}

.premium-effects-chicken > span:nth-child(3n)::before {
  width: 6px;
  height: 74%;
  left: 46%;
  top: 13%;
  border-radius: 999px;
  background: #b9f4eb;
  transform: rotate(28deg);
}

.premium-effects-chicken > span:nth-child(4n) {
  width: clamp(48px, 6vw, 82px);
  height: clamp(48px, 6vw, 82px);
  border-color: #4b2c05;
  border-radius: 50%;
  background: #e5ad24;
}

.premium-effects-chicken > span:nth-child(4n)::before {
  inset: 32%;
  width: auto;
  height: auto;
  border-radius: 50%;
  background: #6f4510;
}

.poke-overlay.is-premium-form .poke-scare-card {
  z-index: 2;
}

.poke-overlay.is-premium-form .poke-scare-card > p {
  max-width: min(90vw, 560px);
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 7px;
  padding: 10px 18px;
  background: rgba(4, 6, 9, 0.92);
  color: #ffffff;
  font-size: clamp(1rem, 4vw, 1.45rem);
  text-shadow: 0 2px 0 #000000;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.36);
}

.poke-overlay.is-get-got {
  background:
    radial-gradient(circle at 50% 35%, rgba(250, 204, 21, 0.34), transparent 34%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.18) 0 10px, rgba(255, 138, 0, 0.3) 10px 20px),
    #180607;
  animation: get-got-flash 90ms steps(2) infinite;
}

.poke-overlay.is-congrats {
  background:
    radial-gradient(circle at 50% 36%, rgba(143, 240, 188, 0.38), transparent 35%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 12px, rgba(0, 191, 216, 0.22) 12px 24px),
    #063b20;
  animation: congrats-flash 180ms steps(2) infinite;
}

.poke-overlay.is-ultimate-congrats {
  background:
    repeating-linear-gradient(65deg, rgba(255, 223, 69, 0.9) 0 18px, rgba(255, 61, 139, 0.88) 18px 36px, rgba(0, 191, 216, 0.9) 36px 54px, rgba(143, 240, 188, 0.9) 54px 72px);
  animation: ultimate-congrats-flash 130ms steps(2) infinite;
}

.poke-overlay.is-boo {
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 138, 0, 0.34), transparent 35%),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.18) 0 10px, rgba(255, 61, 139, 0.28) 10px 20px),
    #2a0715;
  animation: get-got-flash 110ms steps(2) infinite;
}

.poke-scare-card {
  width: min(92vw, 440px);
  display: grid;
  place-items: center;
  gap: 12px;
  text-align: center;
  color: #ffffff;
  animation: poke-pop 560ms cubic-bezier(0.2, 1.4, 0.2, 1) both;
  position: relative;
}

.poke-overlay.is-congrats .poke-scare-card {
  width: min(96vw, 860px);
  justify-items: center;
  grid-template-columns: minmax(0, 1fr);
  margin: auto;
  text-align: center;
  place-items: center;
}

.poke-overlay.is-ultimate-congrats .poke-scare-card {
  width: min(960px, 96vw);
  min-height: min(720px, 94vh);
  border: 9px solid #ffdf45;
  background: linear-gradient(135deg, #fff7ad, #8ff0bc 32%, #d8f7ff 62%, #ffb4d4);
  animation: ultimate-congrats-pop 460ms cubic-bezier(0.16, 1.35, 0.3, 1) both;
  box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.7), 0 0 80px rgba(255, 223, 69, 0.9);
}

.poke-monkey {
  width: min(72vw, 320px);
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.46));
}

.poke-animal {
  width: min(72vw, 350px);
  max-height: min(56vh, 470px);
  aspect-ratio: 1;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.46));
  user-select: none;
}

.poke-animal .animal-pose {
  transform-origin: 50% 50%;
}

.poke-animal .animal-pose-b {
  opacity: 0;
}

.poke-overlay.is-premium-form .poke-animal .animal-pose-a {
  animation: premium-pose-a var(--premium-pose-speed, 460ms) steps(1, end) infinite;
}

.poke-overlay.is-premium-form .poke-animal .animal-pose-b {
  animation: premium-pose-b var(--premium-pose-speed, 460ms) steps(1, end) infinite;
}

.poke-overlay.is-form-gorilla .poke-animal { --premium-pose-speed: 380ms; animation: gorilla-rattle 105ms steps(2) infinite; }
.poke-overlay.is-form-koala .poke-animal { --premium-pose-speed: 820ms; animation: koala-wobble 260ms ease-in-out infinite alternate; }
.poke-overlay.is-form-croc .poke-animal { --premium-pose-speed: 440ms; animation: croc-swag 360ms steps(2) infinite; }
.poke-overlay.is-form-capybara .poke-animal { --premium-pose-speed: 420ms; animation: capy-blast 180ms ease-out infinite alternate; }
.poke-overlay.is-form-chicken .poke-animal { --premium-pose-speed: 320ms; animation: chicken-crash 120ms steps(2) infinite; }

.monkey-stack {
  display: grid;
  grid-template-columns: 0.72fr 1fr 0.72fr;
  align-items: end;
  justify-items: center;
  gap: 2px;
  position: relative;
  z-index: 1;
}

.monkey-stack .poke-monkey:not(.is-small),
.monkey-stack .poke-animal:not(.is-small),
.monkey-stack .custom-gahook-visual:not(.is-small) {
  grid-column: 2;
  grid-row: 1;
}

.poke-monkey.is-small {
  width: min(24vw, 140px);
}

.poke-animal.is-small {
  width: min(24vw, 140px);
  max-height: none;
}

.ultimate-extra-monkeys {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  max-width: min(94vw, 720px);
  max-height: min(38vh, 270px);
  margin-top: -10px;
  overflow: visible;
}

.ultimate-extra-monkeys .poke-monkey.is-small,
.ultimate-extra-monkeys .poke-animal.is-small,
.ultimate-extra-monkeys .custom-gahook-visual.is-small {
  width: clamp(28px, 7vw, 62px);
  animation: extra-monkey-pop 180ms steps(2) both;
}

@keyframes gorilla-rattle {
  from { transform: translate(-5px, 2px) rotate(-2deg) scale(1.01); }
  to { transform: translate(5px, -2px) rotate(2deg) scale(1.04); }
}

@keyframes premium-grid-slam {
  from { transform: translate(-4%, -3%) rotate(-1deg) scale(1.04); }
  to { transform: translate(4%, 3%) rotate(1deg) scale(1.08); }
}

@keyframes premium-vignette-pulse {
  from { opacity: 0.72; }
  to { opacity: 1; }
}

@keyframes premium-prop-burst {
  from { transform: translateY(-8px) rotate(var(--premium-rotate)) scale(0.82); filter: saturate(1); }
  to { transform: translateY(9px) rotate(4deg) scale(1.12); filter: saturate(1.6); }
}

@keyframes premium-pose-a {
  0%, 49.9% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes premium-pose-b {
  0%, 49.9% { opacity: 0; }
  50%, 100% { opacity: 1; }
}

@keyframes premium-gorilla-bg {
  from { filter: contrast(1.08) saturate(1.08) brightness(0.82); background-position: 0 0; }
  to { filter: contrast(1.35) saturate(1.32) brightness(1.03); background-position: 26px -18px; }
}

@keyframes premium-koala-bg {
  from { filter: saturate(0.95) brightness(0.82); background-size: 104px 104px; }
  to { filter: saturate(1.28) brightness(1); background-size: 122px 122px; }
}

@keyframes premium-croc-bg {
  from { filter: saturate(1.05) brightness(0.78); background-position: 0 0; }
  to { filter: saturate(1.45) brightness(1.02); background-position: 20px -14px; }
}

@keyframes premium-capy-bg {
  from { filter: contrast(1.08) saturate(0.95) brightness(0.8); background-position: 0 0; }
  to { filter: contrast(1.34) saturate(1.25) brightness(1.02); background-position: 30px -20px; }
}

@keyframes premium-chicken-bg {
  from { filter: saturate(1.02) brightness(0.8); background-position: 0 0; }
  to { filter: saturate(1.38) brightness(1.04); background-position: -22px 16px; }
}

@keyframes koala-wobble {
  from { transform: rotate(-4deg) scale(0.98, 1.03); }
  to { transform: rotate(4deg) scale(1.05, 0.97); }
}

@keyframes croc-swag {
  from { transform: translateX(-5px) skewX(-3deg); filter: saturate(1.1); }
  to { transform: translateX(5px) skewX(3deg); filter: saturate(1.6); }
}

@keyframes capy-blast {
  from { transform: scale(0.98); filter: brightness(1); }
  to { transform: scale(1.07); filter: brightness(1.24); }
}

@keyframes chicken-crash {
  from { transform: translate(-4px, -3px) rotate(-4deg); }
  to { transform: translate(4px, 3px) rotate(4deg); }
}

.poke-scare-card h1 {
  margin: 0;
  font-size: clamp(3rem, 18vw, 7rem);
  line-height: 0.9;
  color: #f2c230;
  text-shadow: 5px 5px 0 #ff3d8b, -4px -4px 0 #00bfd8;
  position: relative;
  z-index: 1;
}

.poke-overlay.is-counter .poke-scare-card {
  width: min(96vw, 720px);
  animation: counter-gahook-pop 420ms cubic-bezier(0.18, 1.5, 0.2, 1) both;
}

.poke-overlay.is-counter .poke-scare-card h1 {
  font-size: clamp(3.2rem, 14vw, 7.8rem);
  color: #ffffff;
  text-shadow: 7px 7px 0 #246bfe, -6px -6px 0 #ff3d8b, 0 0 34px rgba(255, 223, 69, 0.9);
}

.counter-rebound {
  position: relative;
  z-index: 3;
  border: 5px solid #111214;
  padding: 8px 18px;
  background: #ffdf45;
  color: #111214;
  font-size: clamp(1.1rem, 4vw, 2rem);
  font-weight: 1000;
  box-shadow: 8px 8px 0 #246bfe;
  transform: rotate(-4deg);
}

@keyframes counter-gahook-bg {
  from { filter: saturate(1.15) contrast(1.05); transform: scale(1.01) rotate(-0.4deg); }
  to { filter: saturate(1.9) contrast(1.35); transform: scale(1.08) rotate(0.4deg); }
}

@keyframes counter-gahook-pop {
  0% { transform: translateX(-24vw) rotate(-12deg) scale(0.45); opacity: 0; }
  58% { transform: translateX(5vw) rotate(4deg) scale(1.13); opacity: 1; }
  100% { transform: translateX(0) rotate(-1deg) scale(1); opacity: 1; }
}

.poke-overlay.is-ultimate .poke-scare-card {
  width: min(96vw, 760px);
  animation: ultimate-pop 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.poke-overlay.is-ultimate .poke-scare-card h1 {
  font-size: clamp(3.8rem, 15vw, 8.5rem);
  color: #ffffff;
  text-shadow: 7px 7px 0 #e6383a, -5px -5px 0 #f2c230, 0 0 34px rgba(255, 255, 255, 0.58);
}

.poke-overlay.is-get-got .poke-scare-card {
  width: min(96vw, 780px);
  animation: get-got-pop 5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.poke-overlay.is-get-got .poke-scare-card h1 {
  font-size: clamp(4.2rem, 18vw, 9rem);
  color: #facc15;
  text-shadow: 8px 8px 0 #111214, -5px -5px 0 #ff3d8b, 0 0 38px rgba(250, 204, 21, 0.7);
}

.poke-overlay.is-congrats .poke-scare-card h1 {
  width: 100%;
  max-width: 100%;
  text-align: center;
  justify-self: center;
  margin-inline: auto;
  font-size: clamp(3rem, 11vw, 7.5rem);
  color: #ffffff;
  text-shadow: 7px 7px 0 #20b26b, -5px -5px 0 #00bfd8, 0 0 38px rgba(143, 240, 188, 0.72);
}

.poke-overlay.is-ultimate-congrats .poke-scare-card h1 {
  font-size: clamp(2.25rem, 8vw, 6.4rem);
  color: #064e3b;
  text-shadow: 6px 6px 0 #ffdf45, -5px -5px 0 #ff3d8b, 0 0 38px rgba(255, 255, 255, 0.9);
}

.poke-overlay.is-boo .poke-scare-card {
  width: min(96vw, 780px);
  animation: get-got-pop 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.poke-overlay.is-boo .poke-scare-card h1 {
  font-size: clamp(4.6rem, 20vw, 9.8rem);
  color: #facc15;
  text-shadow: 8px 8px 0 #111214, -5px -5px 0 #ff3d8b, 0 0 38px rgba(250, 204, 21, 0.72);
}

.congrats-stack {
  width: min(90vw, 480px);
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 150px);
  align-items: end;
  justify-items: center;
  justify-content: center;
  gap: 8px;
  margin-inline: auto;
  justify-self: center;
  position: relative;
  z-index: 1;
}

.congrats-stack > .congrats-bird,
.congrats-stack > .thumbs-up-icon {
  position: relative;
  z-index: 2;
}

.ultimate-congrats-extra {
  position: absolute;
  inset: -18vh -24vw;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(54px, 1fr));
  place-items: center;
  gap: 8px;
  pointer-events: none;
}

.ultimate-congrats-extra .congrats-bird,
.ultimate-congrats-extra .thumbs-up-icon {
  width: clamp(48px, 8vw, 105px);
  height: clamp(48px, 8vw, 105px);
  animation: ultimate-celebration-float 520ms ease-in-out infinite alternate;
}

.ultimate-congrats-extra > :nth-child(2n) {
  animation-delay: -180ms;
}

.ultimate-congrats-extra > :nth-child(3n) {
  animation-delay: -340ms;
}

.congrats-bird {
  width: min(66vw, 300px);
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.42));
}

.thumbs-up-icon {
  width: min(34vw, 150px);
  margin-left: 0;
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.36));
  animation: extra-monkey-pop 180ms steps(2) both;
}

.banana-burst {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.banana-icon {
  position: absolute;
  width: clamp(54px, 12vw, 120px);
  filter: drop-shadow(0 12px 0 rgba(0, 0, 0, 0.28));
  animation: banana-chaos 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.banana-0 { left: 4%; top: 8%; --banana-x: 18vw; --banana-r: 38deg; }
.banana-1 { left: 18%; top: 62%; --banana-x: -12vw; --banana-r: -52deg; }
.banana-2 { left: 34%; top: 12%; --banana-x: 6vw; --banana-r: 82deg; }
.banana-3 { left: 48%; top: 70%; --banana-x: -18vw; --banana-r: -28deg; }
.banana-4 { left: 66%; top: 9%; --banana-x: -10vw; --banana-r: 48deg; }
.banana-5 { left: 82%; top: 55%; --banana-x: -24vw; --banana-r: -88deg; }
.banana-6 { left: 9%; top: 78%; --banana-x: 24vw; --banana-r: 110deg; }
.banana-7 { left: 74%; top: 76%; --banana-x: 10vw; --banana-r: -125deg; }
.banana-8 { left: 43%; top: 1%; --banana-x: -6vw; --banana-r: 165deg; }
.banana-9 { left: 88%; top: 18%; --banana-x: -28vw; --banana-r: 32deg; }
.banana-10 { left: 2%; top: 42%; --banana-x: 30vw; --banana-r: 145deg; }
.banana-11 { left: 24%; top: 4%; --banana-x: 16vw; --banana-r: -118deg; }
.banana-12 { left: 57%; top: 26%; --banana-x: -20vw; --banana-r: 72deg; }
.banana-13 { left: 91%; top: 74%; --banana-x: -30vw; --banana-r: -42deg; }
.banana-14 { left: 28%; top: 84%; --banana-x: 14vw; --banana-r: 190deg; }
.banana-15 { left: 63%; top: 88%; --banana-x: -8vw; --banana-r: -155deg; }
.banana-16 { left: 78%; top: 34%; --banana-x: -24vw; --banana-r: 118deg; }
.banana-17 { left: 12%; top: 24%; --banana-x: 22vw; --banana-r: -76deg; }
.banana-18 { left: 38%; top: 32%; --banana-x: 26vw; --banana-r: 138deg; }
.banana-19 { left: 52%; top: 58%; --banana-x: -22vw; --banana-r: -164deg; }
.banana-20 { left: 69%; top: 4%; --banana-x: 12vw; --banana-r: 210deg; }
.banana-21 { left: 6%; top: 66%; --banana-x: 28vw; --banana-r: -132deg; }
.banana-22 { left: 94%; top: 46%; --banana-x: -34vw; --banana-r: 98deg; }
.banana-23 { left: 46%; top: 86%; --banana-x: -4vw; --banana-r: -220deg; }

.poke-overlay.is-get-got .banana-icon {
  top: -22%;
  animation: banana-rain-loop 920ms linear infinite;
}

.poke-overlay.is-get-got .banana-icon:nth-child(3n + 1) { animation-delay: -120ms; }
.poke-overlay.is-get-got .banana-icon:nth-child(3n + 2) { animation-delay: -420ms; }
.poke-overlay.is-get-got .banana-icon:nth-child(3n) { animation-delay: -720ms; }

.ultimate-stack-count {
  min-width: 74px;
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding: 0 18px;
  background: #f2c230;
  color: #111214;
  font-size: clamp(1.4rem, 7vw, 2.8rem);
  font-weight: 1000;
  box-shadow: 0 0 0 5px #e6383a, 0 12px 0 rgba(0, 0, 0, 0.28);
  animation: extra-monkey-pop 180ms steps(2) both;
}

.poke-scare-card p {
  margin: 0;
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: clamp(1rem, 6vw, 1.55rem);
  font-weight: 1000;
  position: relative;
  z-index: 1;
}

.poke-overlay.is-congrats .poke-scare-card p {
  justify-self: center;
  text-align: center;
}

@keyframes poke-pop {
  from {
    transform: scale(0.3) rotate(-8deg);
    opacity: 0;
  }
  70% {
    transform: scale(1.08) rotate(3deg);
    opacity: 1;
  }
  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes toast-timer {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@keyframes poke-flash {
  0% {
    background-color: #050507;
  }
  100% {
    background-color: #2a0715;
  }
}

@keyframes banner-gahooked {
  0% {
    transform: translateX(0) scale(1);
    filter: saturate(1);
  }
  35% {
    transform: translateX(-5px) scale(1.025);
    filter: saturate(1.8);
  }
  70% {
    transform: translateX(5px) scale(1.02);
  }
  100% {
    transform: translateX(0) scale(1);
    filter: saturate(1);
  }
}

@keyframes ultimate-banner {
  0%,
  100% {
    background: #f3f5f9;
    color: inherit;
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    background: #e6383a;
    color: #ffffff;
    transform: translateX(-4px);
  }
  20%,
  40%,
  60%,
  80% {
    background: #7f1d1d;
    color: #ffffff;
    transform: translateX(4px);
  }
}

@keyframes near-ultimate-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(230, 56, 58, 0.05);
    filter: saturate(1);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(230, 56, 58, 0.22), 0 0 24px rgba(230, 56, 58, 0.25);
    filter: saturate(1.24);
  }
}

@keyframes ultimate-overlay {
  0% {
    background-color: #230006;
  }
  100% {
    background-color: #e6383a;
  }
}

@keyframes get-got-flash {
  0% {
    background-color: #180607;
  }
  100% {
    background-color: #facc15;
  }
}

@keyframes congrats-flash {
  0% {
    background-color: #063b20;
  }
  100% {
    background-color: #00bfd8;
  }
}

@keyframes ultimate-congrats-flash {
  from { filter: saturate(1.25) brightness(1); }
  to { filter: saturate(1.75) brightness(1.17); }
}

@keyframes ultimate-congrats-pop {
  from { transform: scale(0.5) rotate(-4deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes ultimate-celebration-float {
  from { transform: translateY(-8px) rotate(-8deg) scale(0.88); }
  to { transform: translateY(10px) rotate(8deg) scale(1.08); }
}

@keyframes ultimate-pop {
  0% {
    transform: scale(0.25) rotate(-12deg);
    opacity: 0;
  }
  10% {
    transform: scale(1.1) rotate(3deg);
    opacity: 1;
  }
  88% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes get-got-pop {
  0% {
    transform: scale(0.2) rotate(9deg);
    opacity: 0;
  }
  16% {
    transform: scale(1.16) rotate(-3deg);
    opacity: 1;
  }
  82% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(0.92) rotate(2deg);
    opacity: 0;
  }
}

@keyframes final-card-pop {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  20% {
    opacity: 1;
    transform: scale(1.04);
  }
  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

@keyframes final-congrats-row {
  0% {
    box-shadow: 0 0 0 0 rgba(143, 240, 188, 0);
    transform: translateY(0) scale(1);
  }
  35% {
    background: rgba(143, 240, 188, 0.32);
    box-shadow: 0 0 0 5px rgba(143, 240, 188, 0.58), 0 0 28px rgba(0, 191, 216, 0.5);
    transform: translateY(-2px) scale(1.015);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(143, 240, 188, 0);
    transform: translateY(0) scale(1);
  }
}

@keyframes final-boo-row {
  0% {
    background: rgba(255, 61, 139, 0.18);
    box-shadow: 0 0 0 0 rgba(255, 61, 139, 0);
  }
  50% {
    background: rgba(250, 204, 21, 0.28);
    box-shadow: 0 0 0 5px rgba(255, 61, 139, 0.5), 0 0 24px rgba(255, 138, 0, 0.5);
  }
  100% {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 0 rgba(255, 61, 139, 0);
  }
}

@keyframes banana-chaos {
  0% {
    transform: translateY(-40px) translateX(0) scale(0.35) rotate(0deg);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    transform: translateY(42vh) translateX(var(--banana-x)) scale(1.08) rotate(var(--banana-r));
    opacity: 0;
  }
}

@keyframes banana-rain-loop {
  0% {
    transform: translateY(-22vh) translateX(0) scale(0.42) rotate(0deg);
    opacity: 0;
  }
  8% { opacity: 1; }
  78% { opacity: 1; }
  100% {
    transform: translateY(142vh) translateX(var(--banana-x)) scale(1.18) rotate(var(--banana-r));
    opacity: 0;
  }
}

@keyframes extra-monkey-pop {
  from {
    transform: scale(0.55) rotate(-8deg);
  }
  to {
    transform: scale(1) rotate(4deg);
  }
}

@keyframes winner-border-party {
  from {
    box-shadow: 0 0 0 4px rgba(255, 244, 163, 0.25), 0 0 24px rgba(255, 223, 69, 0.45);
  }
  to {
    box-shadow: 0 0 0 8px rgba(0, 191, 216, 0.28), 0 0 42px rgba(255, 61, 139, 0.58);
  }
}

@keyframes streamer-slide {
  from {
    transform: translateX(-24px) rotate(0deg);
  }
  to {
    transform: translateX(24px) rotate(1deg);
  }
}

.host-mini-gahook-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  overflow: hidden;
}

.host-mini-gahook {
  position: absolute;
  width: clamp(88px, 9vw, 150px);
  min-height: 98px;
  display: grid;
  place-items: center;
  gap: 3px;
  border-radius: 16px;
  padding: 8px;
  background: rgba(8, 10, 16, 0.88);
  border: 3px solid #ffdf45;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42), 0 0 0 4px rgba(255, 61, 139, 0.24);
  transform: translate(-50%, -50%) rotate(var(--mini-rotate));
  animation: host-mini-gahook-pop 1450ms cubic-bezier(0.2, 1.3, 0.3, 1) both;
}

.host-mini-gahook .poke-animal,
.host-mini-gahook .poke-monkey {
  width: clamp(66px, 7vw, 112px);
  height: clamp(66px, 7vw, 112px);
  max-height: none;
}

.host-mini-gahook > span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 1000;
}

@keyframes host-mini-gahook-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--mini-rotate)) scale(0.35); }
  14% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--mini-rotate)) scale(1.15); }
  78% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--mini-rotate)) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -62%) rotate(var(--mini-rotate)) scale(0.86); }
}

.tutorial-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 61, 139, 0.3), transparent 34%),
    radial-gradient(circle at 85% 12%, rgba(0, 191, 216, 0.3), transparent 32%),
    rgba(4, 8, 18, 0.86);
  backdrop-filter: blur(8px);
}

.tutorial-dialog {
  position: relative;
  width: min(820px, 100%);
  max-height: calc(100dvh - 32px);
  overflow: auto;
  border: 4px solid #ffffff;
  border-radius: 18px;
  padding: 24px;
  background: linear-gradient(150deg, #fffdf6, #f4f8ff 58%, #e7fbff);
  color: #111214;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5), inset 0 -8px 0 rgba(6, 51, 82, 0.1);
}

.tutorial-dialog--overview,
.tutorial-dialog--quiz,
.tutorial-dialog--herd,
.tutorial-dialog--host {
  width: min(960px, 100%);
  border-color: #ffdf45;
  padding: 20px 22px 16px;
  background:
    radial-gradient(circle at 9% 8%, rgba(255, 223, 69, 0.26), transparent 27%),
    radial-gradient(circle at 94% 92%, rgba(0, 191, 216, 0.16), transparent 29%),
    #f8fbff;
}

.tutorial-dialog--host {
  border-color: #8ff0bc;
}

.tutorial-dialog--herd {
  border-color: #8ff0bc;
}

.tutorial-dialog--overview {
  border-color: #ff8fb8;
}

.tutorial-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #111214;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 1000;
}

.tutorial-guide__header {
  display: grid;
  justify-items: center;
  gap: 11px;
  padding: 2px 58px 20px;
  text-align: center;
}

.tutorial-guide__header h2 {
  margin: 0;
  color: #07516a;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 1000;
  letter-spacing: -0.025em;
  line-height: 1;
}

.tutorial-mode-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.tutorial-mode-tab {
  min-width: 96px;
  min-height: 40px;
  border: 2px solid #111214;
  border-radius: 12px;
  padding: 6px 16px;
  background: #ffffff;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 3px 4px 0 rgba(17, 18, 20, 0.2);
}

.tutorial-mode-tab--quiz {
  color: #5a2f89;
}

.tutorial-mode-tab--overview {
  color: #9b2457;
}

.tutorial-mode-tab--herd {
  color: #087054;
}

.tutorial-mode-tab--host {
  color: #755300;
}

.tutorial-mode-tab--overview.is-selected {
  background: linear-gradient(135deg, #ff3d8b, #7c3aed, #246bfe);
  color: #ffffff;
  box-shadow: 3px 4px 0 #ffdf45;
  transform: rotate(1deg);
}

.tutorial-mode-tab--quiz.is-selected {
  background: linear-gradient(135deg, #246bfe 0%, #7c3aed 48%, #ff3d8b 100%);
  color: #ffffff;
  box-shadow: 3px 4px 0 #ffdf45;
  transform: rotate(-1deg);
}

.tutorial-mode-tab--herd.is-selected {
  background: linear-gradient(135deg, #20b26b, #00a8c7);
  color: #ffffff;
  box-shadow: 3px 4px 0 #8ff0bc;
  transform: rotate(1deg);
}

.tutorial-mode-tab--host.is-selected {
  background: linear-gradient(135deg, #ffdf45, #ffb65c);
  color: #3d2a00;
  box-shadow: 3px 4px 0 #ff8fb8;
  transform: rotate(-1deg);
}

.tutorial-mode-tab:focus-visible {
  outline: 4px solid rgba(36, 107, 254, 0.32);
  outline-offset: 3px;
}

.tutorial-guide__summary {
  max-width: 760px;
  margin: 0;
  color: #344054;
  font-size: clamp(0.9rem, 1.55vw, 1.02rem);
  font-weight: 850;
  line-height: 1.45;
}

.tutorial-guide__panel {
  min-width: 0;
}

.tutorial-dialog__actions.tutorial-dialog__actions--quiz {
  margin-top: 18px;
}

.tutorial-dialog__done.tutorial-dialog__done--quiz {
  width: auto;
  min-width: 112px;
  min-height: 46px;
  padding-inline: 24px;
}

.tutorial-dialog__art {
  overflow: hidden;
  border: 4px solid #111214;
  border-radius: 15px;
  background: #063352;
  box-shadow: 5px 6px 0 rgba(17, 18, 20, 0.2), 0 12px 28px rgba(6, 51, 82, 0.2);
}

.tutorial-art {
  width: 100%;
  height: auto;
  display: block;
}

.tutorial-dialog__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tutorial-dialog__step {
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  border: 2px solid #d8e3ef;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  box-shadow: inset 0 -5px 0 rgba(6, 51, 82, 0.06), 0 7px 18px rgba(6, 51, 82, 0.09);
}

.tutorial-dialog__step:nth-child(1) {
  border-top: 6px solid #20b26b;
}

.tutorial-dialog__step:nth-child(2) {
  border-top: 6px solid #246bfe;
}

.tutorial-dialog__step:nth-child(3) {
  border-top: 6px solid #ff3d8b;
}

.tutorial-dialog__step-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff8a00, #ff3d8b);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 1000;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.17);
}

.tutorial-dialog__step:nth-child(1) .tutorial-dialog__step-number {
  background: linear-gradient(135deg, #8ff0bc, #20b26b);
  color: #052f29;
}

.tutorial-dialog__step:nth-child(2) .tutorial-dialog__step-number {
  background: linear-gradient(135deg, #7bdcff, #246bfe);
}

.tutorial-dialog__step-copy h3,
.tutorial-dialog__step-copy p {
  margin: 0;
}

.tutorial-dialog__step-copy h3 {
  color: #063352;
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  font-weight: 1000;
  line-height: 1.1;
}

.tutorial-dialog__step-copy p {
  margin-top: 7px;
  color: #344054;
  font-size: clamp(0.8rem, 1.2vw, 0.91rem);
  font-weight: 780;
  line-height: 1.46;
}

.tutorial-dialog__actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.tutorial-dialog__done {
  min-width: 190px;
  min-height: 52px;
  border-radius: 10px;
  padding: 0 20px;
  background: linear-gradient(135deg, #20b26b, #00bfd8);
  color: #052f29;
  font-size: 1.05rem;
  font-weight: 1000;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.16);
}

.gahookz-muted .tutorial-dialog,
.gahookz-reduced-effects .tutorial-dialog {
  animation: none !important;
}

@media (max-width: 1250px) {
  .player-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .host-lobby-layout,
  .question-stage {
    grid-template-columns: 1fr;
  }

  .host-control-panel {
    order: -1;
  }

  .host-lobby-layout.has-room-status {
    grid-template-areas:
      "status"
      "controls"
      "players";
    grid-template-rows: auto auto auto;
  }

  .question-copy h1 {
    font-size: 2.3rem;
  }

  .leaderboard-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-duel,
  .final-party-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 920px) {
  .setup-lobby .host-lobby-layout,
  .building-lobby .host-lobby-layout {
    grid-template-columns: minmax(0, 1fr) 432px;
  }

  .setup-lobby .host-lobby-layout.has-room-status,
  .building-lobby .host-lobby-layout.has-room-status {
    grid-template-areas:
      "controls status"
      "controls players"
      "controls chat";
    grid-template-rows: auto 1fr;
  }

  .setup-lobby .host-control-panel,
  .building-lobby .host-control-panel {
    order: 0;
  }
}

@media (max-width: 760px) {
  .tutorial-dialog--overview,
  .tutorial-dialog--quiz,
  .tutorial-dialog--herd,
  .tutorial-dialog--host {
    padding: 16px 12px 12px;
  }

  .tutorial-guide__header {
    gap: 9px;
    padding: 0 48px 17px;
  }

  .tutorial-mode-tabs {
    gap: 7px;
  }

  .tutorial-mode-tab {
    min-width: 84px;
    min-height: 42px;
    padding-inline: 11px;
    font-size: 0.8rem;
  }

  .tutorial-dialog__steps {
    grid-template-columns: 1fr;
  }

  .tutorial-dialog__actions--quiz {
    position: sticky;
    bottom: -12px;
    z-index: 3;
    margin: 10px -12px -12px;
    border-top: 2px solid #d8e3ef;
    padding: 9px 12px;
    background: rgba(248, 251, 255, 0.96);
    backdrop-filter: blur(8px);
  }
}

@media (max-width: 640px) {
  .round-preset-options {
    grid-template-columns: 1fr;
  }

  .round-preset-options > button {
    min-height: 76px;
    grid-template-columns: minmax(84px, 0.55fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
  }

  .round-preset-options strong {
    grid-row: 1 / span 2;
  }

  .round-preset-options em {
    margin-top: 0;
  }

  .round-preset-summary {
    grid-template-columns: 1fr;
  }

  .round-preset-summary > small {
    grid-column: auto;
  }

  .welcome-intent-selector button {
    min-height: 78px;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 8px;
  }

  .entry-mode-art {
    width: 40px;
    height: 40px;
  }

  .room-status-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  .how-to-play-button {
    min-height: 44px;
  }

  .tutorial-backdrop {
    padding: 8px;
  }

  .tutorial-dialog {
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
    padding: 18px 14px 14px;
  }

  .tutorial-guide__header h2 {
    font-size: 1.65rem;
  }

  .tutorial-guide__header {
    padding-inline: 44px;
  }

  .tutorial-guide__summary {
    font-size: 0.88rem;
    line-height: 1.42;
  }

  .tutorial-dialog__art {
    border-radius: 11px;
  }

  .tutorial-dialog__steps {
    grid-template-columns: 1fr;
  }

  .tutorial-dialog__done {
    width: 100%;
  }

  .welcome-actions {
    grid-template-columns: 1fr;
  }

  .welcome-screen {
    align-content: start;
  }

  .offline-screen {
    padding: 12px;
    gap: 13px;
  }

  .offline-brand-row {
    min-height: 60px;
  }

  .offline-brand-row .brand-lockup.welcome-brand {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .offline-pill {
    min-height: 36px;
    padding-inline: 12px;
    font-size: 0.78rem;
  }

  .offline-message {
    padding: 10px 12px;
  }

  .offline-recovered {
    align-items: stretch;
    flex-direction: column;
  }

  .offline-recovered button {
    width: 100%;
  }

  .offline-game-heading {
    min-height: 68px;
    padding: 10px 12px;
  }

  .offline-scoreboard > span {
    min-width: 62px;
    padding-inline: 8px;
  }

  .offline-character-area {
    padding: 9px 10px 11px;
  }

  .offline-character-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .offline-character-picker button {
    min-height: 70px;
    grid-template-rows: 40px auto;
    padding: 4px 3px;
  }

  .offline-character-picker .poke-animal,
  .offline-character-picker .poke-animal.is-small,
  .offline-character-picker .poke-monkey,
  .offline-character-picker .poke-monkey.is-small {
    width: 39px;
    height: 39px;
    max-height: 39px;
  }

  .room-dash-card {
    margin-top: 16px;
  }

  .room-dash-scores > div {
    grid-template-columns: 1fr;
  }

  .offline-game-hint {
    padding: 9px 12px;
    font-size: 0.85rem;
  }

  .host-screen {
    padding: 8px;
  }

  .party-join-form {
    height: max(430px, calc(100dvh - 220px));
    min-height: 0;
    max-height: none;
    margin-top: 12px;
    padding: 12px;
    grid-template-rows: auto auto minmax(160px, 1fr) auto;
  }

  .join-explainer-slot {
    margin-top: 12px;
  }

  .mode-selector > .mode-selector-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .mode-selector-options > button {
    min-height: 106px;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 4px 7px;
    padding: 9px;
  }

  .mode-selector .mode-art {
    width: 42px;
    height: 42px;
  }

  .mode-selector strong {
    font-size: 1rem;
  }

  .mode-selector small {
    font-size: 0.7rem;
    line-height: 1.15;
  }

  .player-party-lobby .host-lobby-layout {
    margin-top: 16px;
    gap: 16px;
  }

  .setup-lobby .player-wall,
  .building-lobby .player-wall {
    margin-top: 16px;
  }

  .room-status-banner {
    padding: 12px 50px 12px 13px;
  }

  .has-room-status > .room-status-banner {
    margin-bottom: 14px;
  }

  .room-status-banner h1 {
    font-size: 1.3rem;
  }

  .room-status-banner p {
    font-size: 0.88rem;
  }

  .social-lobby-layout {
    margin-top: 18px;
  }

  .player-lobby-panel {
    padding: 9px;
    gap: 11px;
  }

  .player-lobby-panel .question-builder {
    padding: 10px;
  }

  .submitted-question-banner {
    grid-template-columns: 28px minmax(0, 1fr) 40px;
    gap: 8px;
    padding-left: 8px;
  }

  .host-topbar,
  .host-actions {
    flex-wrap: nowrap;
  }

  .code-band strong {
    font-size: 4rem;
  }

  .quiz-meta-row {
    grid-template-columns: 1fr;
  }

  .quiz-meta-row.is-two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quiz-meta-row.is-two-up > div:last-child {
    text-align: right;
  }

  .timer-ring {
    width: 76px;
    height: 76px;
  }

  .question-copy {
    padding: 20px;
  }

  .reveal-vote-panel {
    padding: 18px 12px;
  }

  .reveal-vote-panel > span {
    padding-inline: 8px;
    font-size: 1.3rem;
  }

  .reveal-vote-panel .vote-button,
  .vote-count {
    min-height: 60px;
    padding-inline: 10px;
  }

  .question-copy h1 {
    font-size: 2rem;
  }

  .question-image {
    max-height: min(48vh, 400px);
  }

  .answer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .leaderboard-strip {
    grid-template-columns: 1fr;
  }

  .answer-tile {
    min-height: 112px;
    padding: 14px 10px;
    font-size: 1.08rem;
  }

  .answer-tile.has-answer-players {
    padding-top: 50px;
  }

  .herd-party-status {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px;
  }

  .herd-ranking-panel,
  .herd-combined-results {
    padding: 12px;
  }

  .herd-rank-item {
    grid-template-columns: 34px 16px minmax(0, 1fr) 74px;
    gap: 7px;
    padding-inline: 7px;
  }

  .herd-rank-item > strong {
    font-size: 1.15rem;
  }

  .herd-rank-item > p {
    font-size: 0.94rem;
  }

  .herd-rank-item > div button {
    min-width: 32px;
  }

  .herd-combined-results > ol > li {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px 10px;
    padding: 10px;
  }

  .herd-combined-rank {
    width: 36px;
    height: 36px;
  }

  .herd-combined-authors,
  .herd-combined-results > ol > li > em,
  .herd-combined-results > ol > li > b {
    grid-column: 2;
  }

  .herd-combined-results > ol > li > em {
    justify-self: start;
  }

  .herd-personal-score {
    grid-template-columns: 1fr;
  }

  .herd-personal-score > div {
    grid-column: 1;
    grid-row: auto;
  }

  .herd-personal-score dl {
    grid-template-columns: 1fr;
  }

  .herd-pick-progress,
  .herd-score-key {
    grid-template-columns: 1fr;
  }

  .herd-choice-grid {
    grid-template-columns: 1fr;
  }

  .herd-choice-card {
    min-height: 82px;
  }

  .herd-reveal-list .herd-combined-rank {
    grid-column: 1;
    grid-row: 1 / span 4;
  }

  .herd-reveal-list .herd-combined-answer {
    grid-column: 2;
    grid-row: 1;
  }

  .herd-reveal-list .herd-combined-authors {
    grid-column: 2;
    grid-row: 2;
  }

  .herd-reveal-list .herd-ranked-voters {
    grid-column: 2;
    grid-row: 3;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .herd-reveal-list .herd-ranked-voters > div {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .herd-reveal-list > li > em {
    grid-column: 2;
    grid-row: 4;
    justify-self: start;
  }

  .player-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 10px;
  }

  .player-card .avatar-badge {
    width: 52px;
    height: 52px;
  }

  .player-card-actions {
    grid-column: 2;
    justify-self: end;
    display: flex;
    width: auto;
    gap: 8px;
  }

  .poke-hint {
    min-width: 104px;
    width: auto;
  }

  .player-action-menu summary {
    min-width: 42px;
    width: 42px;
  }

  .setup-lobby .player-grid,
  .player-waiting-lobby .player-grid {
    padding-bottom: 118px;
  }

  .builder-answer {
    grid-template-columns: 24px minmax(0, 1fr) 32px;
  }

  .builder-answer.is-poll-answer {
    grid-template-columns: minmax(0, 1fr) 32px;
  }

  .player-summary-name span {
    font-size: 1.1rem;
  }

  .player-summary {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
  }

  .player-question-progress {
    width: auto;
    min-width: 52px;
    font-size: 1.2rem;
  }

  .ready-button-below {
    width: 100%;
    padding: 0 10px;
  }

  .roster-row {
    grid-template-columns: 38px minmax(0, 1fr) 42px 104px;
    gap: 6px;
  }

  .leaderboard-list li,
  .leaderboard-strip div {
    grid-template-columns: 34px 38px minmax(0, 1fr);
    gap: 8px;
  }

  .leaderboard-list li.has-gahook-action,
  .leaderboard-strip div.has-gahook-action {
    grid-template-columns: 34px 38px minmax(0, 1fr) minmax(96px, 108px);
  }

  .leaderboard-list li > em,
  .leaderboard-strip div > em {
    grid-column: 3;
    justify-self: start;
  }

  .leaderboard-gahook {
    grid-column: 4;
    grid-row: 1 / span 2;
    justify-self: end;
    align-self: center;
    width: 100%;
    min-width: 96px;
    margin-top: 0;
  }

  .leaderboard-list.is-large li {
    font-size: 1.08rem;
  }

  .roster-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .final-gahook-card {
    min-height: 210px;
  }

  .finale-winner-stage {
    padding: 24px 14px;
  }

  .finale-winner-cards,
  .finale-awards-grid {
    grid-template-columns: 1fr;
  }

  .game-leaderboard-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .game-leaderboard-heading span {
    text-align: left;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }
}

@media (min-width: 1600px) {
  .host-game,
  .finished-screen {
    width: 100%;
    max-width: none;
    margin-inline: 0;
  }

  .host-game > *,
  .finished-screen > * {
    width: min(80vw, 1500px);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .host-actions > .icon-button {
    display: none;
  }

  .host-actions .host-quick-menu summary {
    width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }

  .host-actions .host-quick-menu summary::before {
    content: "";
    width: 20px;
    height: 16px;
    background:
      linear-gradient(#111214 0 0) center top / 100% 2px no-repeat,
      linear-gradient(#111214 0 0) center / 100% 2px no-repeat,
      linear-gradient(#111214 0 0) center bottom / 100% 2px no-repeat;
  }
}

@media (max-width: 360px) {
  .host-topbar {
    gap: 6px;
  }

  .host-topbar .brand-lockup {
    font-size: 1rem;
  }

  .host-actions {
    gap: 5px;
  }

  .phase-pill,
  .topbar-room-code {
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.82rem;
  }

  .mode-selector > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .player-grid {
    grid-template-columns: 1fr;
  }

  .force-start-dialog {
    padding: 18px;
  }

  .force-start-dialog h2 {
    font-size: 1.3rem;
  }

  .force-start-dialog > div {
    grid-template-columns: 1fr;
  }
}

/* Social waiting room */
.waiting-room-social {
  min-width: 0;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: inherit;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.waiting-room-social__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 2px 2px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.waiting-room-social__header h2,
.waiting-room-social__header p {
  margin: 0;
}

.waiting-room-social__header h2 {
  color: inherit;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1;
}

.waiting-room-social__header p {
  max-width: 390px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
  font-weight: 850;
  text-align: right;
}

.waiting-room-social__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #ffdf45;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.social-chat {
  min-width: 0;
  display: grid;
  align-content: start;
}

.social-panel-heading {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.social-panel-heading h3 {
  margin: 0;
  color: inherit;
  font-size: 1.02rem;
}

.social-panel-heading > span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.7rem;
  font-weight: 900;
}

.social-chat__messages {
  height: 284px;
  min-height: 0;
  margin: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(3, 16, 31, 0.22);
  list-style: none;
}

.social-chat__message {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 0;
  padding: 4px 3px;
}

.social-chat__message.is-own {
  color: inherit;
}

.social-chat__message > .avatar-badge,
.social-chat__avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 9px;
  background: linear-gradient(135deg, #ff8a00, #ff3d8b);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 1000;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.16), 0 8px 18px rgba(0, 0, 0, 0.15);
}

.social-chat__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-chat__bubble {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  border: 1px solid var(--chat-profile-border, rgba(255, 255, 255, 0.14));
  border-radius: 5px 13px 13px 13px;
  padding: 7px 10px;
  background: var(--chat-profile-background, rgba(255, 255, 255, 0.1));
  overflow-wrap: anywhere;
}

.social-chat__message.is-own .social-chat__bubble {
  border-color: var(--chat-profile-border, rgba(143, 240, 188, 0.38));
  background: var(--chat-profile-background, rgba(32, 178, 107, 0.2));
}

.social-chat__meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.68rem;
}

.social-chat__meta strong {
  color: var(--chat-profile-accent, #ffffff);
  font-size: 0.86rem;
  line-height: 1.1;
}

.social-chat__meta > span {
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.14);
  color: #8ff0bc;
  font-size: 0.62rem;
  font-weight: 1000;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.social-chat__bubble p {
  max-width: 100%;
  margin: 4px 0 0;
  color: inherit;
  font-size: 0.88rem;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.social-chat__empty {
  margin: auto;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
  font-weight: 850;
  text-align: center;
}

.social-chat__composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-top: 8px;
}

.social-chat__composer input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
}

.social-chat__composer input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.social-chat__composer input:focus {
  border-color: #8ff0bc;
  box-shadow: 0 0 0 3px rgba(143, 240, 188, 0.18);
  outline: none;
}

.social-chat__composer button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  background: linear-gradient(135deg, #20b26b, #00bfd8);
  color: #052f29;
  font-weight: 1000;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14);
}

.social-chat__composer-meta {
  min-height: 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.65rem;
  font-weight: 800;
}

.social-feedback {
  min-height: 1em;
  color: #ffb4b4;
  font-size: 0.7rem;
  font-weight: 850;
}

/* Reusable paint surface and creation dialogs */
.creation-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  overflow: hidden;
  overscroll-behavior: none;
  padding: 20px;
  background: rgba(3, 10, 22, 0.78);
  backdrop-filter: blur(7px);
}

.creation-modal {
  width: min(100%, 980px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  border: 5px solid #ffffff;
  border-radius: 16px;
  padding: 18px;
  background: #f5f8fc;
  color: #111214;
  box-shadow: 0 24px 0 rgba(0, 0, 0, 0.22), 0 28px 80px rgba(0, 0, 0, 0.5);
}

.custom-gahook-modal {
  width: min(100%, 1180px);
  height: min(960px, calc(100dvh - 40px));
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  padding: 0;
  background: #eef7fb;
}

.avatar-paint-modal {
  width: min(100%, 760px);
}

.avatar-paint-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.avatar-paint-modal__header span {
  color: #d42a76;
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.avatar-paint-modal__header h2,
.avatar-paint-modal__header p {
  margin: 0;
}

.avatar-paint-modal__header h2 {
  margin-top: 3px;
  color: #063352;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  line-height: 1;
}

.avatar-paint-modal__header p {
  margin-top: 6px;
  color: #667085;
  font-weight: 800;
}

.avatar-paint-modal__header > button {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #111214;
  color: #ffffff;
  font-size: 1.7rem;
}

.simple-paint-editor {
  min-width: 0;
  display: grid;
  gap: 9px;
  border: 1px solid #cfdbea;
  border-radius: 12px;
  padding: 11px;
  background: #ffffff;
}

.simple-paint-editor__toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 560px) {
  .image-source-actions {
    grid-template-columns: 1fr;
  }

  .image-source-actions > button {
    min-height: 50px;
  }

  .answer-image-paint-modal {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
    padding: 12px;
  }

  .herd-combined-answer {
    align-items: flex-start;
    flex-direction: column;
  }

  .herd-combined-answer > img {
    width: min(100%, 220px);
    height: 110px;
  }
}

.simple-paint-editor__tool-group,
.simple-paint-editor__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.simple-paint-editor__tool,
.simple-paint-editor__actions button {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 11px;
  background: #eef1f7;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 1000;
}

.simple-paint-editor__tool.is-selected {
  background: linear-gradient(135deg, #d8fbff, #8ff0bc);
  color: #063352;
  box-shadow: inset 0 0 0 2px #00a8c7;
}

.simple-paint-editor__sizes {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  border: 0;
  padding: 0;
}

.simple-paint-editor__sizes legend {
  margin-right: 3px;
  color: #667085;
  font-size: 0.7rem;
  font-weight: 900;
}

.simple-paint-editor__size {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #f3f5f9;
  cursor: pointer;
}

.simple-paint-editor__size.is-selected {
  border-color: #246bfe;
  background: #dfe9ff;
}

.simple-paint-editor__size input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.simple-paint-editor__size-dot {
  max-width: 22px;
  max-height: 22px;
  border-radius: 50%;
  background: #111214;
}

.simple-paint-editor__actions {
  margin-left: auto;
}

.simple-paint-editor__actions button:last-of-type {
  background: #e6f6ff;
  color: #07516a;
}

.simple-paint-editor__colors {
  display: flex;
  align-items: center;
  gap: 10px;
}

.simple-paint-editor__palette {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.simple-paint-editor__swatch {
  width: 30px;
  height: 30px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--paint-swatch);
  box-shadow: 0 0 0 1px #b9c5d4;
}

.simple-paint-editor__swatch.is-selected {
  box-shadow: 0 0 0 3px #246bfe;
  transform: scale(1.06);
}

.simple-paint-editor__custom-color {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #485467;
  font-size: 0.72rem;
  font-weight: 900;
}

.simple-paint-editor__custom-color input {
  width: 42px;
  height: 34px;
  border: 0;
  border-radius: 7px;
  padding: 0;
  background: transparent;
}

.simple-paint-editor__canvas-shell {
  position: relative;
  width: min(100%, 54vh, 560px);
  max-height: none;
  justify-self: center;
  overflow: hidden;
  border: 5px solid #111214;
  border-radius: 10px;
  background:
    linear-gradient(45deg, #edf0f4 25%, transparent 25% 75%, #edf0f4 75%) 0 0 / 22px 22px,
    linear-gradient(45deg, #edf0f4 25%, #ffffff 25% 75%, #edf0f4 75%) 11px 11px / 22px 22px;
  box-shadow: 0 8px 0 rgba(17, 18, 20, 0.16);
}

.simple-paint-editor__canvas-shell.is-drawing {
  border-color: #ff3d8b;
}

.simple-paint-editor__canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  outline: 0;
}

.simple-paint-editor__canvas--base {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.simple-paint-editor__canvas:focus-visible {
  box-shadow: inset 0 0 0 4px #00bfd8;
}

.simple-paint-editor__status {
  min-height: 18px;
  margin: 0;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 800;
  text-align: center;
}

.simple-paint-editor__export {
  display: flex;
  justify-content: flex-end;
}

.simple-paint-editor__export button {
  min-height: 48px;
  border-radius: 9px;
  padding: 0 18px;
  background: linear-gradient(135deg, #20b26b, #00bfd8);
  color: #052f29;
  font-weight: 1000;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.16);
}

.draw-avatar-choice {
  background: linear-gradient(135deg, #ffe9f2, #e7ddff);
  border-style: dashed;
}

.draw-avatar-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 2px dashed #7c3aed;
  border-radius: 12px;
  background: #ffffff;
  color: #7c3aed;
}

.draw-avatar-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Custom Gahook creator */
.custom-gahook-picker-preview {
  background: linear-gradient(135deg, #ffdf45, #ff3d8b);
}

.custom-gahook-picker-preview > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-gahook-draw-icon {
  display: grid;
  place-items: center;
  color: #111214;
  font-size: 1.8rem;
  font-weight: 1000;
}

.custom-gahook-creator {
  box-sizing: border-box;
  min-width: 0;
  height: 100%;
  display: grid;
  gap: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 16px 84px;
  scrollbar-color: #8aa3b8 transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  padding: 18px;
}

.custom-gahook-creator::-webkit-scrollbar {
  width: 10px;
}

.custom-gahook-creator::-webkit-scrollbar-track {
  margin-block: 10px;
  background: transparent;
}

.custom-gahook-creator::-webkit-scrollbar-thumb {
  border: 3px solid #eef7fb;
  border-radius: 999px;
  background: #8aa3b8;
}

.custom-gahook-creator__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 280px);
  align-items: end;
  gap: 16px;
  border-radius: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #063352, #51246d);
  color: #ffffff;
}

.custom-gahook-creator__eyebrow,
.custom-gahook-section-heading > div > span {
  display: block;
  color: #ffdf45;
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.custom-gahook-creator__header h2,
.custom-gahook-creator__header p {
  margin: 0;
}

.custom-gahook-creator__header h2 {
  margin-top: 3px;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  line-height: 0.95;
}

.custom-gahook-creator__header p {
  max-width: 690px;
  margin-top: 7px;
  color: #d8f7ff;
  font-size: 0.88rem;
  font-weight: 800;
}

.custom-gahook-creator__name {
  display: grid;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 1000;
}

.custom-gahook-creator__name input {
  min-height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: #111214;
  font-size: 1.08rem;
  font-weight: 900;
}

.custom-gahook-creator__workspace {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 14px;
}

.custom-gahook-frames,
.custom-gahook-preview-panel,
.custom-gahook-options,
.custom-gahook-sound {
  min-width: 0;
  border: 1px solid #cfdbea;
  border-radius: 12px;
  padding: 13px;
  background: #ffffff;
}

.custom-gahook-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.custom-gahook-section-heading h3 {
  margin: 2px 0 0;
  color: #063352;
  font-size: 1.15rem;
}

.custom-gahook-section-heading > div > span {
  color: #d42a76;
}

.custom-gahook-section-heading > small {
  color: #667085;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: right;
}

.custom-gahook-frame-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.custom-gahook-frame-tabs button {
  min-height: 52px;
  display: inline-grid;
  grid-template-columns: 36px auto;
  align-items: center;
  gap: 7px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 5px 9px;
  background: #eef1f7;
  color: #344054;
  font-size: 0.76rem;
  font-weight: 1000;
}

.custom-gahook-frame-tabs button.is-selected {
  border-color: #246bfe;
  background: #dfe9ff;
}

.custom-gahook-frame-tabs button > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #ffffff;
}

.custom-gahook-frame-tabs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-gahook-frame-tabs__remove {
  color: #b42318 !important;
}

.custom-gahook-paint .simple-paint-editor__canvas-shell {
  width: min(100%, 410px);
  max-height: 410px;
}

.custom-gahook-preview-panel {
  display: grid;
  align-content: start;
}

.custom-gahook-preview {
  --custom-gahook-color: #ff3d8b;
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 6px solid #111214;
  border-radius: 12px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 16px, color-mix(in srgb, var(--custom-gahook-color) 42%, transparent) 16px 32px),
    color-mix(in srgb, var(--custom-gahook-color) 32%, #050507);
  box-shadow: 0 8px 0 rgba(17, 18, 20, 0.18);
  animation: poke-flash 180ms steps(2) infinite;
}

.custom-gahook-preview__avatar {
  width: min(76%, 250px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transform-origin: center;
  filter: drop-shadow(9px 12px 0 rgba(0, 0, 0, 0.32));
}

.custom-gahook-preview__avatar img {
  width: 100%;
  height: 100%;
  border: 6px solid #ffffff;
  border-radius: 18%;
  background: #ffffff;
  object-fit: contain;
}

.custom-gahook-preview__avatar > span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 6px dashed #ffffff;
  border-radius: 18%;
  background: rgba(17, 18, 20, 0.58);
  color: #ffffff;
  font-size: 5rem;
  font-weight: 1000;
}

.custom-gahook-effect--shake { animation: custom-visual-shake 120ms steps(2) infinite; }
.custom-gahook-effect--spin { animation: custom-visual-spin 900ms ease-in-out infinite; }
.custom-gahook-effect--bounce { animation: custom-visual-bounce 360ms ease-in-out infinite alternate; }
.custom-gahook-effect--zoom { animation: custom-visual-zoom 260ms steps(2) infinite alternate; }

.custom-gahook-preview__wordmark {
  position: absolute;
  inset: auto 10px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transform: rotate(-3deg);
}

.custom-gahook-preview__wordmark strong {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 0.85;
  text-shadow: 4px 4px 0 #111214;
}

.custom-gahook-preview__wordmark span {
  border-radius: 999px;
  padding: 6px 10px;
  background: #111214;
  color: #ffdf45;
  font-weight: 1000;
}

.custom-gahook-preview-panel__summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 0;
}

.custom-gahook-preview-panel__summary > div {
  min-width: 0;
  border-radius: 8px;
  padding: 7px;
  background: #eef7fb;
}

.custom-gahook-preview-panel__summary dt {
  color: #667085;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
}

.custom-gahook-preview-panel__summary dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  color: #063352;
  font-size: 0.74rem;
  font-weight: 1000;
}

.custom-gahook-options {
  display: grid;
  gap: 12px;
}

.custom-gahook-choice-group {
  margin: 0;
  border: 0;
  padding: 0;
}

.custom-gahook-choice-group legend {
  margin-bottom: 6px;
  color: #344054;
  font-size: 0.8rem;
  font-weight: 1000;
}

.custom-gahook-choice-help {
  margin: -2px 0 8px;
  color: #667085;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.35;
}

.custom-gahook-choice-grid,
.custom-gahook-sound__choices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.custom-gahook-choice-grid label,
.custom-gahook-sound__choices label {
  position: relative;
  min-width: 0;
  min-height: 76px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 2px solid #d8e3ef;
  border-radius: 9px;
  padding: 8px;
  background: #f8fbff;
  cursor: pointer;
}

.custom-gahook-choice-grid label.is-selected,
.custom-gahook-sound__choices label.is-selected {
  border-color: #ff3d8b;
  background: #fff1a8;
  box-shadow: inset 0 -4px 0 #ff8a00;
}

.custom-gahook-choice-grid input,
.custom-gahook-sound__choices input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-gahook-choice-grid strong,
.custom-gahook-sound__choices strong {
  color: #111214;
  font-size: 0.8rem;
}

.custom-gahook-choice-grid small,
.custom-gahook-sound__choices small {
  color: #667085;
  font-size: 0.65rem;
  line-height: 1.2;
}

.custom-gahook-choice-swatch {
  height: 38px;
  margin-bottom: 3px;
  border: 2px solid #111214;
  border-radius: 6px;
}

.custom-gahook-background-picker {
  display: grid;
  gap: 4px;
}

.custom-gahook-background-picker legend {
  margin-bottom: 7px;
  color: #063352;
  font-size: 0.94rem;
}

.custom-gahook-background-picker .custom-gahook-custom-color {
  width: min(100%, 360px);
  height: 56px;
  border: 2px solid #111214;
  border-radius: 10px;
  padding: 4px;
  background: #ffffff;
  cursor: pointer;
}

.custom-gahook-background-picker .custom-gahook-custom-color::-webkit-color-swatch-wrapper {
  padding: 0;
}

.custom-gahook-background-picker .custom-gahook-custom-color::-webkit-color-swatch {
  border: 0;
  border-radius: 5px;
}

.custom-gahook-background-picker .custom-gahook-custom-color::-moz-color-swatch {
  border: 0;
  border-radius: 5px;
}

.custom-gahook-sound__choices {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.custom-gahook-sound__custom,
.custom-gahook-sound__player {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.custom-gahook-sound__custom button,
.custom-gahook-sound__player button {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 12px;
  background: #e6f6ff;
  color: #07516a;
  font-size: 0.76rem;
  font-weight: 1000;
}

.custom-gahook-sound__custom button.is-recording {
  background: #ffe0e4;
  color: #b42318;
}

.custom-gahook-sound__custom > span,
.custom-gahook-sound__player > span {
  color: #667085;
  font-size: 0.7rem;
  font-weight: 800;
}

.custom-gahook-audio {
  max-width: min(100%, 360px);
  height: 40px;
}

.custom-gahook-creator__footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 -18px -18px;
  border-top: 2px solid #d8e3ef;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.custom-gahook-creator__status {
  min-height: 1em;
  margin: 0;
  color: #b42318;
  font-size: 0.78rem;
  font-weight: 900;
}

.custom-gahook-creator__footer > div {
  display: flex;
  gap: 8px;
}

.custom-gahook-creator__cancel,
.custom-gahook-creator__save {
  min-height: 48px;
  border-radius: 9px;
  padding: 0 16px;
  font-weight: 1000;
}

.custom-gahook-creator__cancel {
  background: #eef1f7;
  color: #344054;
}

.custom-gahook-creator__save {
  min-width: 184px;
  min-height: 54px;
  border: 3px solid #063352;
  background: linear-gradient(135deg, #20b26b, #00bfd8);
  color: #052f29;
  font-size: 0.96rem;
  cursor: pointer;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.16), 0 4px 0 #063352;
  transition: filter 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.custom-gahook-creator__save:hover:not(:disabled),
.custom-gahook-creator__save:focus-visible {
  filter: brightness(1.08) saturate(1.08);
  transform: translateY(-1px);
}

.custom-gahook-creator__save:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.14), 0 1px 0 #063352;
}

.gahookz-muted .custom-gahook-preview,
.gahookz-muted .custom-gahook-preview *,
.gahookz-reduced-effects .custom-gahook-preview,
.gahookz-reduced-effects .custom-gahook-preview * {
  animation: none !important;
}

@media (max-width: 1180px) {
  .social-chat__messages {
    height: 220px;
  }
}

@media (max-width: 840px) {
  .creation-modal-backdrop {
    align-items: start;
    padding: 8px;
  }

  .creation-modal {
    max-height: calc(100dvh - 16px);
    border-width: 3px;
    border-radius: 12px;
    padding: 12px;
  }

  .custom-gahook-modal {
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 0;
  }

  .custom-gahook-creator {
    padding: 11px;
  }

  .custom-gahook-creator__header,
  .custom-gahook-creator__workspace {
    grid-template-columns: 1fr;
  }

  .custom-gahook-preview {
    min-height: 350px;
  }

  .custom-gahook-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-gahook-sound__choices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .custom-gahook-creator__footer {
    bottom: 0;
    margin: 0 -11px -11px;
    padding: 10px 11px;
  }
}

@media (max-width: 640px) {
  .waiting-room-social {
    padding: 9px;
  }

  .waiting-room-social__header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .waiting-room-social__header p {
    text-align: left;
  }

  .social-chat__messages {
    height: 200px;
  }

  .social-chat__message {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 0;
    gap: 7px;
    padding: 3px 2px;
  }

  .social-chat__message > .avatar-badge,
  .social-chat__avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .simple-paint-editor {
    padding: 8px;
  }

  .simple-paint-editor__toolbar,
  .simple-paint-editor__colors {
    align-items: stretch;
    flex-direction: column;
  }

  .simple-paint-editor__actions,
  .simple-paint-editor__custom-color {
    margin-left: 0;
  }

  .simple-paint-editor__actions button {
    flex: 1;
  }

  .simple-paint-editor__canvas-shell {
    width: min(100%, 56vh, 560px);
  }

  .avatar-picker > div {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .custom-gahook-creator__header {
    padding: 12px;
  }

  .custom-gahook-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .custom-gahook-section-heading > small {
    text-align: left;
  }

  .custom-gahook-choice-grid,
  .custom-gahook-sound__choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-gahook-preview {
    min-height: 260px;
  }

  .custom-gahook-preview-panel__summary {
    grid-template-columns: 1fr;
  }

  .custom-gahook-creator__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .custom-gahook-creator__footer > div,
  .custom-gahook-creator__footer button {
    width: 100%;
  }
}

/* Final cascade for the lobby refinement (kept after every legacy breakpoint). */
.host-more-options {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
}
.host-more-options summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; color: #ffffff; font-weight: 1000; cursor: pointer; }
.host-more-options summary::after { content: "+"; font-size: 1.35rem; }
.host-more-options[open] summary::after { content: "−"; }
.host-more-options > div { display: grid; gap: 8px; padding: 0 10px 10px; }
.host-more-options > div > button { min-height: 42px; border-radius: 8px; background: rgba(255, 255, 255, 0.13); color: #ffffff; font-weight: 900; }
.host-prompt-style { display: grid; gap: 6px; border-radius: 8px; padding: 9px; background: rgba(255, 255, 255, 0.08); }
.host-prompt-style > span { color: #d0d5dd; font-size: 0.78rem; font-weight: 1000; text-transform: uppercase; }
.host-prompt-style > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.host-prompt-style button { min-height: 40px; border-radius: 8px; background: rgba(255, 255, 255, 0.12); color: #ffffff; font-weight: 1000; }
.host-prompt-style button.is-selected { background: linear-gradient(135deg, #ffdf45, #ff8a00); color: #111214; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.15); }

.social-drawing-tools { min-width: 0; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
.social-drawing-tools button { min-width: 34px; min-height: 32px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 8px; padding: 0 7px; background: rgba(255, 255, 255, 0.09); color: #ffffff; font-size: 0.68rem; font-weight: 1000; }
.social-drawing-tools button.is-selected { background: #ffffff; color: #16405a; box-shadow: 0 0 0 2px rgba(143, 240, 188, 0.4); }
.social-drawing-tools button > span { display: inline-block; flex: 0 0 auto; border-radius: 999px; background: currentColor; }
.social-drawing-tools button.social-drawing-tools__clear { padding-inline: 9px; color: #ffd1dc; }
.social-chat__canvas-shell { position: relative; min-width: 0; }
.social-chat__drawing { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border-radius: 8px; pointer-events: none; }
.social-chat__drawing.is-active { pointer-events: auto; touch-action: none; cursor: crosshair; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45); }
.social-chat__stop-drawing { position: absolute; right: 9px; bottom: 9px; z-index: 4; min-height: 34px; border-radius: 999px; padding: 0 12px; background: rgba(17, 18, 20, 0.86); color: #ffffff; font-size: 0.72rem; font-weight: 1000; }

.host-quick-menu summary {
  background: linear-gradient(135deg, #246bfe, #ff3d8b);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.44);
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.17), 0 9px 20px rgba(27, 38, 92, 0.2);
}

.how-to-play-button,
.host-quick-menu .how-to-play-button {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, #536c80, #75658e);
  color: #ffffff;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.14);
}

.code-band { gap: 7px; padding-block: 12px; }
.code-band__layout {
  width: min(100%, 900px);
  display: grid;
  grid-template-columns: minmax(0, auto) auto;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
}
.code-band__text { min-width: 0; display: grid; justify-items: center; align-content: center; gap: 4px; text-align: center; }
.code-band__text > span,
.code-band__text > strong,
.code-band__text > small { justify-self: center; text-align: center; }
.code-band__text small { max-width: 100%; overflow-wrap: anywhere; }
.room-qr-code { width: 118px; height: 118px; flex: 0 0 auto; border: 3px solid #ffffff; border-radius: 9px; box-shadow: 0 7px 17px rgba(17, 18, 20, 0.22); }
.compact-code-band .room-qr-code { width: 102px; height: 102px; }

.host-lobby-layout.has-room-status {
  grid-template-areas: "controls status" "controls players" "controls chat";
  grid-template-rows: auto auto auto;
  row-gap: 0;
}
.host-lobby-layout.has-room-status > .waiting-room-social { grid-area: chat; }
.social-lobby-layout.has-room-status { grid-template-areas: "status" "players" "chat"; }
.social-lobby-layout.has-room-status > .waiting-room-social { grid-area: chat; }
.host-lobby-layout > .waiting-room-social,
.social-lobby-layout > .waiting-room-social { align-self: start; margin-top: 18px; }

.waiting-room-social__header { align-items: center; flex-direction: row; margin-bottom: 8px; padding-bottom: 8px; }
.waiting-room-social__header h2 { font-size: clamp(1.18rem, 2vw, 1.55rem); }
.social-chat__message { flex: 0 0 auto; grid-template-columns: 30px minmax(0, 1fr); gap: 6px; height: auto; padding: 3px 2px; }
.social-chat__message > .avatar-badge,
.social-chat__avatar { width: 30px; height: 30px; border-radius: 8px; }
.social-chat__bubble { width: fit-content; min-width: 0; max-width: min(82%, 44ch); overflow: visible; }
.social-chat__bubble p { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.social-chat__messages { overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(143, 240, 188, 0.7) rgba(3, 16, 31, 0.2); }
.social-chat__message.is-own { grid-template-columns: minmax(0, 1fr) 30px; }
.social-chat__message.is-own > .avatar-badge,
.social-chat__message.is-own > .social-chat__avatar { grid-column: 2; grid-row: 1; }
.social-chat__message.is-own .social-chat__bubble { grid-column: 1; grid-row: 1; justify-self: end; border-radius: 13px 5px 13px 13px; }
.social-chat__message.is-own .social-chat__meta { justify-content: flex-end; text-align: right; }
.social-chat__messages::-webkit-scrollbar { width: 9px; }
.social-chat__messages::-webkit-scrollbar-track { border-radius: 999px; background: rgba(3, 16, 31, 0.2); }
.social-chat__messages::-webkit-scrollbar-thumb { border: 2px solid rgba(3, 16, 31, 0.24); border-radius: 999px; background: linear-gradient(#8ff0bc, #00bfd8); }

@media (min-width: 1360px) {
  .host-lobby-layout { grid-template-columns: clamp(370px, 28vw, 480px) minmax(400px, 1fr) minmax(320px, 0.72fr); }
  .host-lobby-layout.has-room-status {
    grid-template-areas: "controls status status" "controls players chat";
    grid-template-rows: auto 1fr;
    column-gap: 20px;
  }
  .host-lobby-layout.has-room-status > .waiting-room-social { margin-top: 0; }
  .social-lobby-layout.has-room-status {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
    grid-template-areas: "status status" "players chat";
    column-gap: 20px;
  }
  .social-lobby-layout.has-room-status > .waiting-room-social { margin-top: 0; }
  .host-lobby-layout > .waiting-room-social .social-chat__messages,
  .social-lobby-layout > .waiting-room-social .social-chat__messages { height: 310px; }
}

@media (min-width: 761px) and (max-width: 920px) {
  .setup-lobby .host-lobby-layout.has-room-status,
  .building-lobby .host-lobby-layout.has-room-status {
    grid-template-areas: "controls status" "controls players" "controls chat";
  }
}

@media (max-width: 760px) {
  .host-lobby-layout.has-room-status { grid-template-areas: "status" "controls" "players" "chat"; grid-template-columns: 1fr; }
  .host-lobby-layout > .waiting-room-social,
  .social-lobby-layout > .waiting-room-social { margin-top: 0; margin-bottom: 18px; }
  .code-band__layout { gap: clamp(12px, 4vw, 24px); }
  .room-qr-code,
  .compact-code-band .room-qr-code { width: 82px; height: 82px; }
  .code-band strong { font-size: 3.55rem; }
}

/* Floating room chat: stays reachable without reserving a lobby column. */
.waiting-room-social {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  width: min(410px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: 0 !important;
  border-color: rgba(143, 240, 188, 0.34);
  background:
    linear-gradient(145deg, rgba(36, 107, 254, 0.13), rgba(32, 178, 107, 0.16)),
    rgba(10, 38, 56, 0.96);
  color: #ffffff;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.waiting-room-social.is-expanded {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.waiting-room-social.is-expanded .social-chat {
  flex: 1 1 auto;
  min-height: 0;
}

.waiting-room-social.is-expanded .social-chat__messages {
  height: clamp(160px, 34dvh, 310px);
}

.waiting-room-social__header {
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
}

.social-chat-window-actions {
  min-width: 0;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.social-chat-minimize {
  width: 36px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.social-chat-minimize > span {
  width: auto;
  height: auto;
  background: none;
  color: currentColor;
  font-size: 1.25rem;
  font-weight: 1000;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.social-chat-minimize:hover,
.social-chat-minimize:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: none;
}

.social-chat-minimize--footer {
  width: 31px;
  height: 27px;
  justify-self: end;
  margin-top: 8px;
  border-radius: 8px;
}

.social-chat-minimize--footer > span {
  font-size: 1.1rem;
}

.waiting-room-social.is-minimized {
  width: auto;
  max-height: none;
  overflow: visible;
  display: flex;
  align-items: flex-end;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}

.social-chat-fab {
  position: relative;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(201, 255, 231, 0.55);
  border-radius: 50%;
  padding: 0;
  background: linear-gradient(145deg, #238b70, #126a5d 52%, #0c4e4f);
  color: #ffffff;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.16), 0 10px 24px rgba(4, 43, 42, 0.3);
  pointer-events: auto;
}

.social-chat-fab svg {
  width: 28px;
  height: 28px;
  fill: rgba(255, 255, 255, 0.14);
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-chat-fab > span {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 999px;
  padding: 0 5px;
  background: #ff3d8b;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 1000;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.26);
}

.social-chat-notifications {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(320px, calc(100vw - 32px));
  display: grid;
  gap: 9px;
  pointer-events: none;
}

.social-chat-notifications:empty {
  display: none;
}

.social-chat-notification {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  border: 1px solid var(--chat-profile-border, rgba(143, 240, 188, 0.52));
  border-radius: 15px 15px 4px 15px;
  padding: 9px 11px;
  background: var(--chat-profile-background, rgba(10, 38, 56, 0.97));
  color: #ffffff;
  text-align: left;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
  pointer-events: auto;
  animation: social-chat-notification-in 180ms cubic-bezier(0.2, 1.2, 0.4, 1) both;
}

.social-chat-notification::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--chat-profile-border, rgba(143, 240, 188, 0.52));
  border-bottom: 1px solid var(--chat-profile-border, rgba(143, 240, 188, 0.52));
  background: var(--chat-profile-background, rgba(10, 38, 56, 0.97));
  transform: rotate(45deg);
}

.social-chat-notification > .avatar-badge,
.social-chat-notification > .social-chat__avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.social-chat-notification > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.social-chat-notification strong,
.social-chat-notification small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-chat-notification strong {
  font-size: 0.78rem;
  white-space: nowrap;
}

.social-chat-notification small {
  display: -webkit-box;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@keyframes social-chat-notification-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.gahookz-muted .social-chat-notification,
.gahookz-reduced-effects .social-chat-notification {
  animation: none;
}

/* The fixed chat no longer consumes grid rows or a third desktop column. */
.host-lobby-layout.has-room-status {
  grid-template-areas: "controls status" "controls players";
  grid-template-rows: auto 1fr;
}

.social-lobby-layout.has-room-status {
  grid-template-areas: "status" "players";
}

.host-lobby-layout.has-room-status > .waiting-room-social,
.social-lobby-layout.has-room-status > .waiting-room-social,
.host-lobby-layout > .waiting-room-social,
.social-lobby-layout > .waiting-room-social {
  grid-area: auto;
  align-self: auto;
  margin: 0 !important;
}

@media (min-width: 1360px) {
  .host-lobby-layout {
    grid-template-columns: clamp(370px, 28vw, 480px) minmax(0, 1fr);
  }

  .host-lobby-layout.has-room-status {
    grid-template-areas: "controls status" "controls players";
  }

  .social-lobby-layout.has-room-status {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "status" "players";
  }
}

@media (min-width: 761px) and (max-width: 920px) {
  .setup-lobby .host-lobby-layout.has-room-status,
  .building-lobby .host-lobby-layout.has-room-status {
    grid-template-areas: "controls status" "controls players";
  }
}

@media (max-width: 760px) {
  .host-lobby-layout.has-room-status {
    grid-template-areas: "status" "controls" "players";
  }

  .waiting-room-social {
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    width: auto;
    max-height: calc(100dvh - 16px);
    padding: 10px;
  }

  .waiting-room-social.is-minimized {
    left: auto;
    width: auto;
    padding: 0;
  }

  .waiting-room-social__header h2 {
    font-size: 1.15rem;
  }

  .social-chat-notifications {
    width: min(310px, calc(100vw - 32px));
  }
}
