:root {
  --ink: #29213f;
  --muted: #716981;
  --purple: #8054ed;
  --purple-dark: #6135c9;
  --paper: #fffdf8;
  --base: #f2edfc;
  --yellow: #ffe66b;
  --pink: #ffa6cf;
  --mint: #9aebca;
  --line: #ded5ec;
  --theme: #b4a0ef;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--base);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  line-height: 1.5;
  background:
    radial-gradient(ellipse at 100% 12%, #e4d9ff 0, transparent 45%),
    var(--base);
}
body:not([data-theme="home"]) {
  background:
    radial-gradient(
      ellipse at 100% 0%,
      color-mix(in srgb, var(--theme) 35%, transparent),
      transparent 55%
    ),
    var(--base);
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
summary {
  outline-offset: 5px;
}
:focus-visible {
  outline: 3px solid #8054ed;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(38px, 5vw, 62px);
}
h2 {
  font-size: 28px;
}
h3 {
  font-size: 23px;
}
p {
  color: var(--muted);
}
button,
input {
  border-radius: 15px;
}
button {
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}
.site-header,
.site-footer,
.home-main,
.game-main,
.admin-main {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 44px;
}
.site-header {
  min-height: 106px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-weight: 1000;
  font-size: 35px;
  letter-spacing: -0.07em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.brand-dot {
  color: var(--purple);
  font-size: 42px;
  line-height: 1;
  display: inline-block;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-caption {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.icon-button {
  border: 2px solid var(--ink);
  background: var(--paper);
  width: 43px;
  height: 43px;
  position: relative;
  font-size: 24px;
  box-shadow: 2px 2px 0 var(--ink);
}
.sound-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a29aaa;
  position: absolute;
  right: 5px;
  bottom: 6px;
}
.sound-indicator.on {
  background: #3bba83;
}
.language-switch {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}
.language-switch button {
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 900;
  padding: 9px 10px;
  background: transparent;
}
.language-switch button.active {
  background: var(--ink);
  color: white;
}
.eyebrow,
.section-label {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 900;
}
.eyebrow {
  display: block;
}
.serif {
  color: var(--purple);
}
.tiny-star {
  color: var(--purple);
  font-size: 20px;
  margin-right: 8px;
  vertical-align: middle;
}
.home-top {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 35px;
  padding-block: 46px 64px;
  align-items: center;
}
.hero-copy h1 {
  margin-top: 23px;
  font-size: clamp(44px, 5.2vw, 68px);
  line-height: 1.035;
}
.hero-description {
  margin-top: 25px;
  font-size: 17px;
  line-height: 1.65;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 27px;
}
.hero-tags span {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 6px 11px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}
.hero-art {
  position: relative;
  height: 340px;
  display: grid;
  place-items: center;
}
.art-orbit {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: #d5c5f9;
  border: 2px dashed #b4a0df;
  transform: rotate(-15deg);
}
.fact-paper {
  width: 345px;
  padding: 25px;
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 24px;
  background: var(--yellow);
  box-shadow: 8px 9px 0 var(--ink);
  transform: rotate(-6deg);
}
.paper-top {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.fact-paper p {
  font-size: 27px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 24px 0 30px;
}
.paper-blank {
  color: var(--purple);
}
.answer-slip {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--ink);
  padding: 13px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
}
.answer-slip > span:last-child {
  margin-left: auto;
}
.slip-one {
  transform: rotate(3deg) translateX(-20px);
}
.slip-two {
  transform: rotate(7deg) translate(20px, 8px);
  background: var(--mint);
}
.paper-note {
  text-align: center;
  margin-top: 30px;
  font-size: 10px;
  font-weight: 700;
}
.art-star {
  position: absolute;
  font-size: 64px;
  z-index: 2;
  text-shadow: 2px 2px 0 var(--ink);
  -webkit-text-stroke: 1px var(--ink);
}
.star-one {
  right: 7px;
  top: 0;
  color: var(--pink);
  animation: float 5s ease-in-out infinite;
}
.star-two {
  bottom: 0;
  left: 3px;
  color: var(--mint);
  font-size: 55px;
  animation: float 5s ease-in-out infinite reverse;
}
.art-label {
  position: absolute;
  bottom: -9px;
  right: 5px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--pink);
  font-size: 10px;
  padding: 6px 10px;
  transform: rotate(-5deg);
  font-weight: 900;
}
.entry-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  padding: 42px 48px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 5px 6px 0 var(--ink);
  border-radius: 27px;
  align-items: center;
}
.entry-intro h2 {
  margin: 15px 0;
  font-size: 39px;
}
.entry-intro p {
  font-size: 14px;
  line-height: 1.7;
}
.entry-card {
  min-width: 0;
}
.tabs {
  display: flex;
  gap: 5px;
  padding: 5px;
  border-radius: 14px;
  background: #ece6f7;
  margin-bottom: 23px;
}
.tab {
  border: 0;
  flex: 1;
  padding: 10px 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  border-radius: 10px;
}
.tab.active {
  background: var(--purple);
  color: white;
  box-shadow: 0 3px 0 #513098;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}
input {
  width: 100%;
  min-width: 0;
  padding: 15px 16px;
  border: 2px solid #d5cce4;
  color: var(--ink);
  background: #fcfaff;
  font-size: 16px;
  margin-bottom: 16px;
}
input:focus {
  border-color: var(--purple);
  outline: 3px solid #8054ed25;
}
input::placeholder {
  color: #9890a6;
}
input:disabled {
  opacity: 0.5;
}
.code-input,
.code-text,
.big-code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 2px solid var(--ink);
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
  min-height: 51px;
  box-shadow: 3px 4px 0 var(--ink);
}
.button:hover:not(:disabled),
.category-card:hover:not(:disabled),
.vote-option:hover:not(:disabled) {
  transform: translate(-1px, -2px);
  box-shadow: 5px 6px 0 var(--ink);
}
.button:active:not(:disabled),
.category-card:active:not(:disabled),
.vote-option:active:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 0 1px 0 var(--ink);
}
.primary {
  color: white;
  background: var(--purple);
}
.primary:hover:not(:disabled) {
  background: var(--purple-dark);
}
.secondary {
  background: var(--yellow);
}
.ghost {
  background: var(--paper);
}
.button:disabled {
  background: #e3dced;
  color: #9690a3;
  box-shadow: 2px 2px 0 #b6adc7;
  border-color: #b6adc7;
}
.full {
  width: 100%;
}
.full > span:last-child {
  margin-left: auto;
  font-size: 18px;
}
.small {
  min-height: 38px;
  padding: 9px 12px;
  font-size: 12px;
  border-radius: 10px;
}
.form-note {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 13px;
  color: var(--muted);
}
.form-error {
  color: #b22f56;
  font-size: 13px;
  margin: 0 0 12px;
}
.form-error:empty {
  display: none;
}
.how-section {
  padding-block: 56px 38px;
}
.section-label {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 25px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.how-grid article {
  position: relative;
  padding-left: 45px;
}
.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  transform: rotate(-5deg);
}
.how-grid article:nth-child(2) .step-number {
  background: var(--mint);
  transform: rotate(5deg);
}
.how-grid article:nth-child(3) .step-number {
  background: var(--yellow);
}
.how-grid h3 {
  font-size: 21px;
  margin-bottom: 12px;
}
.how-grid p {
  font-size: 12px;
  line-height: 1.7;
}
.rules {
  border-block: 1px solid var(--line);
  margin-block: 15px 30px;
}
summary {
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
.rules summary {
  padding: 20px 0;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
}
.rules summary span {
  font-size: 20px;
}
.rules-content {
  padding: 0 0 22px;
  max-width: 850px;
}
.rules-content p {
  font-size: 13px;
  margin-bottom: 10px;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px 30px;
  font-size: 10px;
  color: var(--muted);
}
.site-footer a:hover,
.text-link:hover {
  text-decoration: underline;
}
.room-top {
  padding-block: 10px 26px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.back-link {
  font-size: 12px;
  color: var(--muted);
}
.room-code-button {
  border: 2px solid var(--ink);
  border-radius: 100px;
  padding: 8px 18px;
  background: var(--yellow);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.13em;
}
.room-code-button span {
  font-size: 9px;
  letter-spacing: 0.06em;
  vertical-align: middle;
}
.room-code-button span:last-child {
  font-size: 16px;
  margin-left: 8px;
}
.connection {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.connection.offline {
  color: #b35940;
}
.online-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #c5bdd3;
  flex-shrink: 0;
}
.online-dot.online {
  background: #37ab7c;
  box-shadow: 0 0 0 3px #37ab7c18;
}
.lobby-title {
  text-align: center;
  padding: 27px 0 38px;
}
.lobby-title h1 {
  margin-block: 13px 15px;
}
.lobby-title > p {
  font-size: 14px;
}
.lobby-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 25px;
  max-width: 960px;
  margin-inline: auto;
}
.panel {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 23px;
  padding: 28px;
  box-shadow: 4px 4px 0 var(--ink);
}
.panel-heading {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.panel-heading h2 {
  font-size: 24px;
}
.count-badge {
  display: inline-block;
  color: var(--purple);
  background: #eee6ff;
  padding: 4px 9px;
  font-size: 12px;
  vertical-align: middle;
  letter-spacing: 0;
  border-radius: 9px;
}
.pill {
  background: var(--yellow);
  border: 1px solid var(--ink);
  padding: 6px 11px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  display: inline-block;
  line-height: 1.4;
}
.pill.subtle {
  background: #f1edf7;
  border-color: #e6deee;
  color: var(--muted);
}
.player-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-block: 13px;
  border-bottom: 1px solid #eee7f2;
  min-width: 0;
}
.player-row:last-child {
  border-bottom: 0;
}
.avatar {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 15px;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}
.avatar-0 {
  background: #ccb5ff;
}
.avatar-1 {
  background: var(--mint);
}
.avatar-2 {
  background: var(--yellow);
}
.avatar-3 {
  background: var(--pink);
}
.avatar-4 {
  background: #a7d5ff;
}
.avatar-5 {
  background: #ffbe91;
}
.player-name {
  flex: 1;
  min-width: 0;
}
.player-name strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.player-name small,
.leaderboard-row small {
  margin-left: 6px;
  font-size: 11px;
  color: var(--purple);
  font-weight: 700;
}
.player-name > span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}
.done-check {
  background: var(--mint);
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  font-weight: 900;
  border-radius: 50%;
  flex-shrink: 0;
}
.player-score {
  font-size: 14px;
  font-weight: 900;
}
.invite-panel {
  text-align: center;
}
.big-code {
  font-size: 60px;
  margin: 5px 0;
}
.invite-panel > p {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}
.lobby-rules {
  margin-block: 26px;
  text-align: left;
}
.lobby-rules > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-block: 11px;
  font-size: 13px;
  font-weight: 600;
}
.lobby-rules span {
  color: var(--muted);
}
.lobby-rules strong {
  text-align: right;
}
.waiting-note {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 25px 0 5px;
  align-items: center;
}
.waiting-dots {
  display: flex;
  gap: 4px;
}
.waiting-dots i {
  width: 5px;
  height: 5px;
  background: var(--purple);
  border-radius: 50%;
  animation: dots 1.3s infinite;
}
.waiting-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.waiting-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
.phase-progress {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 18px 0 42px;
}
.phase-progress > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #a59aae;
  font-weight: 700;
}
.phase-progress i {
  border: 1px solid #ccc2da;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 10px;
}
.phase-progress b {
  width: 32px;
  height: 1px;
  background: #d9cfe6;
}
.phase-progress .current {
  color: var(--purple);
}
.phase-progress .current i {
  border-color: var(--ink);
  background: var(--purple);
  color: white;
}
.phase-progress .complete {
  color: #538a71;
}
.phase-progress .complete i {
  background: var(--mint);
  border-color: #538a71;
}
.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 235px;
  gap: 30px;
  align-items: start;
}
.play-main {
  min-width: 0;
}
.game-main .form-note {
  font-size: 13px;
  font-weight: 600;
}
.game-main .text-button {
  font-size: 13px;
}
.game-main label {
  font-size: 14px;
}
.game-main .eyebrow {
  font-size: 12px;
}
.round-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 27px;
}
.round-heading h1 {
  font-size: 42px;
  margin-block: 10px 12px;
}
.round-heading p {
  font-size: 15px;
  font-weight: 600;
  max-width: 520px;
}
.round-heading .eyebrow {
  font-size: 12px;
}
.timer-wrap {
  text-align: center;
  flex-shrink: 0;
}
.timer-wrap > span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.timer {
  --progress: 100%;
  width: 77px;
  height: 77px;
  padding: 5px;
  border-radius: 50%;
  background: conic-gradient(var(--purple) var(--progress), #e1d8ee 0);
  display: grid;
  place-items: center;
}
.timer strong {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: var(--base);
  border-radius: 50%;
  font-size: 28px;
  letter-spacing: -0.05em;
}
.timer.urgent {
  background: conic-gradient(#ee7159 var(--progress), #e1d8ee 0);
  color: #c44a35;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.category-card {
  border: 2px solid var(--ink);
  background: var(--paper);
  border-radius: 18px;
  padding: 21px;
  text-align: left;
  position: relative;
  box-shadow: 3px 4px 0 var(--ink);
  min-height: 155px;
}
.category-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  background: var(--card-color);
  font-size: 25px;
  margin-bottom: 13px;
}
.category-card strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.category-card > span:last-of-type {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--muted);
  padding-right: 12px;
}
.category-card i {
  position: absolute;
  top: 20px;
  right: 20px;
  font-style: normal;
  color: var(--muted);
}
.category-card:disabled {
  box-shadow: 2px 2px 0 #c6bad7;
  border-color: #c6bad7;
}
.game-sidebar {
  padding: 20px 17px;
  position: sticky;
  top: 25px;
  border-color: #d2c5e4;
  box-shadow: none;
}
.game-sidebar .panel-heading {
  margin-bottom: 5px;
}
.game-sidebar h2 {
  font-size: 18px;
}
.compact .avatar {
  width: 32px;
  height: 32px;
  font-size: 10px;
  border-width: 1px;
  border-radius: 10px;
}
.compact .player-row {
  gap: 8px;
}
.compact .player-name strong {
  font-size: 13px;
}
.compact .player-name > span {
  font-size: 11px;
}
.compact .player-name small {
  display: block;
  margin: 0;
}
.sidebar-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 13px;
  text-align: center;
}
.final-badge {
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 15px;
  text-align: center;
  padding: 15px;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 900;
  transform: rotate(-3deg);
}
.final-badge strong {
  display: block;
  font-size: 45px;
  line-height: 1.1;
}
.final-badge span {
  font-size: 10px;
}
.question-panel {
  padding: 30px;
  background: color-mix(in srgb, var(--theme) 12%, var(--paper));
}
.question-category {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  margin-bottom: 21px;
}
.question-category > span {
  background: var(--theme);
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  font-size: 19px;
}
.question-text {
  color: var(--ink);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
.blank {
  background: var(--yellow);
  border-bottom: 3px solid var(--ink);
  border-radius: 5px;
  padding: 0 14px 2px;
  margin-inline: 4px;
  white-space: nowrap;
}
.question-divider {
  height: 1px;
  background: #c9bfd650;
  margin-block: 28px;
}
.answer-input-wrap {
  position: relative;
}
.answer-input-wrap input {
  font-size: 18px;
  font-weight: 600;
  padding-right: 64px;
  margin-bottom: 16px;
}
.answer-input-wrap > span {
  position: absolute;
  right: 14px;
  top: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.answer-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.text-button {
  border: 0;
  background: none;
  padding: 5px 0;
  color: var(--purple);
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}
.text-button:hover {
  text-decoration: underline;
}
.suggestion-box {
  margin-top: 20px;
  background: #ede5ff;
  border: 1px dashed #b19ad8;
  padding: 15px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.suggestion-box > span,
.suggestion-box small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.suggestion-box > button {
  border: 1px solid #bba4e8;
  padding: 10px 12px;
  background: var(--paper);
  text-align: left;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
}
.submitted-answer {
  display: flex;
  gap: 15px;
  align-items: center;
}
.submitted-answer .done-check {
  width: 42px;
  height: 42px;
  font-size: 22px;
}
.submitted-answer strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  margin: 5px 0;
}
.submitted-answer small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.options-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 25px;
}
.vote-option {
  width: 100%;
  min-height: 80px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 17px;
  border: 2px solid var(--ink);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: 3px 4px 0 var(--ink);
  text-align: left;
}
.vote-option strong {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
  flex: 1;
}
.option-letter {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--ink);
  background: #eee7fc;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}
.option-end {
  color: var(--purple);
}
.vote-option.selected {
  background: var(--mint);
}
.vote-option:disabled:not(.selected) {
  border-color: #d7cde2;
  box-shadow: 2px 3px 0 #d7cde2;
}
.option-wrap {
  position: relative;
  padding-bottom: 32px;
}
.option-wrap .vote-option {
  height: 100%;
}
.like-button {
  position: absolute;
  right: 8px;
  bottom: 0;
  border: 1px solid #d2c3e6;
  background: var(--paper);
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 100px;
  color: var(--muted);
  font-weight: 800;
}
.like-button.liked {
  background: var(--pink);
  border-color: var(--ink);
  color: var(--ink);
}
.like-button:hover {
  transform: scale(1.05);
}
.result-star {
  color: var(--purple);
  font-size: 62px;
  line-height: 1;
  animation: reveal 0.65s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}
.truth-card {
  background: var(--mint);
  border: 3px solid var(--ink);
  border-radius: 23px;
  padding: 31px;
  text-align: center;
  box-shadow: 5px 6px 0 var(--ink);
  animation: reveal 0.65s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}
.truth-card h2 {
  font-size: clamp(30px, 4vw, 48px);
  margin-block: 15px;
  overflow-wrap: anywhere;
}
.truth-card p {
  color: #355749;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}
.truth-card a {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
}
.already-revealed {
  animation: none !important;
}
.round-scores,
.leaderboard-panel {
  margin-top: 28px;
}
.round-scores .panel-heading {
  flex-wrap: wrap;
}
.round-scores .panel-heading h2 {
  font-size: 23px;
}
.score-row {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-block: 17px;
}
.rank {
  width: 23px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}
.score-player {
  flex: 1;
  min-width: 0;
}
.score-player strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.score-player span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
}
.score-earned {
  text-align: right;
}
.score-earned strong {
  font-size: 23px;
  color: var(--purple);
}
.score-earned span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.leaderboard-panel {
  background: #3c2865;
  color: white;
  border: 3px solid var(--ink);
  border-radius: 23px;
  padding: 26px;
  box-shadow: 5px 6px 0 var(--ink);
  overflow: hidden;
}
.leaderboard-panel .eyebrow {
  color: #c5acec;
  margin-bottom: 6px;
}
.leaderboard-panel h2 {
  font-size: 28px;
}
.leaderboard-panel h2 > span {
  color: var(--yellow);
}
.leaderboard-panel .pill {
  color: var(--ink);
}
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding: 16px 0 0;
}
.podium-player {
  width: 30%;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  text-align: center;
  min-width: 0;
}
.podium-crown {
  font-size: 30px;
  color: var(--yellow);
}
.podium-player > strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.podium-score {
  color: #ded2f4;
  font-size: 18px;
  font-weight: 900;
  margin-block: 3px 12px;
}
.podium-score small {
  font-size: 11px;
  font-weight: 600;
}
.podium-block {
  background: var(--pink);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  padding: 10px;
  height: 85px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.podium-block b {
  font-size: 38px;
  line-height: 1;
}
.podium-block span {
  font-size: 12px;
  font-weight: 600;
}
.podium-1 .podium-block {
  height: 125px;
  background: var(--yellow);
}
.podium-2 .podium-block {
  height: 95px;
  background: var(--mint);
}
.podium-3 .podium-block {
  height: 70px;
}
.leaderboard-rows {
  padding-top: 12px;
  border-top: 2px solid #ffffff40;
}
.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 12px;
  border-radius: 11px;
  font-size: 13px;
}
.leaderboard-row + .leaderboard-row {
  margin-top: 3px;
}
.leaderboard-row.its-me {
  background: #ffffff14;
}
.leaderboard-rank {
  width: 20px;
  color: #b59cd9;
  font-weight: 900;
}
.leaderboard-row strong {
  flex: 1;
  overflow-wrap: anywhere;
}
.leaderboard-row b {
  color: var(--yellow);
  font-size: 17px;
}
.leaderboard-row small {
  color: #d1b3ff;
}
.answer-reveal {
  padding: 20px 25px;
  margin-top: 24px;
  box-shadow: none;
  border-color: #d9cfe7;
}
.answer-reveal summary {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
}
.reveal-row {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 15px;
}
.reveal-row > strong {
  font-size: 16px;
}
.reveal-row > p,
.reveal-row > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.truth-label {
  background: var(--mint);
  color: #205b42;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 6px;
  margin-left: 5px;
}
.answer-likes {
  color: #b8386c !important;
  font-weight: 800;
}
.next-round {
  display: flex;
  justify-content: center;
  padding: 30px 0;
}
.end-panel {
  text-align: center;
  margin-block: 50px 100px;
  padding: 50px 25px;
}
.end-symbol {
  display: block;
  font-size: 70px;
  color: var(--purple);
  margin-bottom: 15px;
}
.end-panel h1 {
  margin-block: 20px;
}
.end-panel > p {
  margin-bottom: 25px;
}
.final-panel {
  text-align: center;
  max-width: 800px;
  margin: 30px auto 70px;
  position: relative;
}
.final-trophy {
  display: inline-block;
  font-size: 100px;
  line-height: 1.2;
  color: var(--purple);
  text-shadow: 4px 4px 0 var(--yellow);
  animation: reveal 0.7s both;
}
.final-panel h1 {
  margin-block: 20px;
  font-size: 47px;
}
.final-panel > p {
  font-size: 14px;
}
.final-ranking {
  margin: 35px auto;
  max-width: 610px;
}
.final-row {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 15px;
  padding: 19px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  margin-bottom: 13px;
  box-shadow: 3px 4px 0 var(--ink);
}
.final-row.winner {
  background: var(--yellow);
  transform: rotate(-1deg);
}
.final-row > span {
  font-size: 23px;
  width: 26px;
}
.final-row > strong {
  flex: 1;
  overflow-wrap: anywhere;
}
.final-row b {
  font-size: 25px;
}
.final-row small {
  display: block;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
}
.text-link {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 23px;
}
.likes-awards {
  max-width: 610px;
  background: var(--pink);
  border: 2px solid var(--ink);
  border-radius: 23px;
  padding: 25px;
  margin: 35px auto;
  text-align: left;
  box-shadow: 4px 4px 0 var(--ink);
}
.likes-awards h2 {
  margin: 8px 0 15px;
}
.likes-awards > p {
  font-size: 12px;
  color: #7b3657;
}
.likes-award-row {
  display: flex;
  gap: 12px;
  padding-block: 13px;
  border-top: 1px solid #29213f22;
}
.likes-award-row strong {
  flex: 1;
  overflow-wrap: anywhere;
}
.likes-award-row b {
  white-space: nowrap;
}
.confetti {
  position: absolute;
  inset: -30px -10px 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.confetti i {
  position: absolute;
  width: 9px;
  height: 15px;
  background: var(--pink);
  left: 8%;
  top: -15px;
  animation: confetti 3s ease-out both;
}
.confetti i:nth-child(3n) {
  background: var(--yellow);
  width: 13px;
  height: 8px;
}
.confetti i:nth-child(3n + 1) {
  background: var(--mint);
}
.confetti i:nth-child(2n) {
  left: 85%;
  animation-delay: 0.2s;
}
.confetti i:nth-child(3n) {
  left: 26%;
  animation-delay: 0.6s;
}
.confetti i:nth-child(5n) {
  left: 69%;
  animation-delay: 0.9s;
}
.confetti i:nth-child(7n) {
  left: 45%;
  animation-delay: 0.4s;
}
.admin-main {
  min-height: calc(100vh - 175px);
  padding-top: 25px;
}
.admin-login {
  max-width: 550px;
  margin: 50px auto 80px;
  padding: 40px;
}
.admin-login h1 {
  font-size: 42px;
  margin-block: 15px;
}
.admin-login p {
  font-size: 13px;
  margin-bottom: 25px;
}
.admin-login form {
  margin-top: 25px;
}
.admin-login .form-error {
  color: #b22f56;
  margin-bottom: 15px;
}
.admin-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 40px;
}
.admin-heading h1 {
  font-size: 45px;
  margin-block: 12px;
}
.admin-heading p {
  font-size: 12px;
}
.admin-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 38px;
  align-items: start;
}
.settings-panel h2 {
  font-size: 28px;
  margin: 13px 0 25px;
}
.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f1ebfc;
  border: 1px solid #ded1f1;
  border-radius: 13px;
  padding: 15px;
  margin-bottom: 12px;
  cursor: pointer;
}
.radio-card input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--purple);
}
.radio-card strong {
  display: block;
  font-size: 13px;
}
.radio-card small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.settings-panel label[for="fixed-rounds"] {
  margin-top: 24px;
}
.settings-note {
  background: var(--yellow);
  border-radius: 12px;
  padding: 13px;
  margin-bottom: 24px;
  font-size: 12px;
}
.settings-note span {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.admin-games-heading {
  padding-top: 8px;
}
.admin-games-heading h2 {
  font-size: 25px;
}
.admin-games {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.admin-game {
  padding: 20px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 19px;
  box-shadow: 3px 4px 0 var(--ink);
}
.admin-game > div:first-child {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-game .code-text {
  color: var(--purple);
  font-size: 20px;
}
.admin-game > p {
  font-size: 11px;
  margin-top: 15px;
}
.admin-game > .admin-names {
  font-size: 10px;
  margin-block: 5px 20px;
  overflow-wrap: anywhere;
}
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  border: 2px dashed #cbbbe1;
  border-radius: 23px;
}
.empty-state > span {
  font-size: 55px;
  color: var(--purple);
}
.empty-state h3 {
  margin: 15px 0 10px;
}
.empty-state p {
  font-size: 12px;
}
.invite-heading h3 {
  margin: 15px 0 25px;
}
.loading-screen {
  display: grid;
  place-content: center;
  min-height: 90vh;
  gap: 20px;
  text-align: center;
}
.loading-screen p {
  font-size: 13px;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 25px);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  background: var(--ink);
  color: white;
  padding: 15px 23px;
  border-radius: 15px;
  font-size: 13px;
  z-index: 100;
  max-width: min(90vw, 600px);
  box-shadow: 0 5px 20px #29213f30;
  text-align: center;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
dialog {
  border: 3px solid var(--ink);
  border-radius: 23px;
  background: var(--paper);
  color: var(--ink);
  padding: 35px;
  max-width: min(90vw, 470px);
  box-shadow: 7px 8px 0 var(--ink);
}
dialog::backdrop {
  background: #21133288;
  backdrop-filter: blur(3px);
}
dialog h2 {
  margin-block: 15px;
  font-size: 29px;
}
dialog p {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 26px;
}
@keyframes dots {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-10px) rotate(12deg);
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}
@keyframes confetti {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(520px) rotate(540deg);
  }
}
@media (min-width: 1400px) {
  .home-top {
    padding-block: 65px 85px;
  }
}
@media (max-width: 1050px) {
  .site-header,
  .site-footer,
  .home-main,
  .game-main,
  .admin-main {
    padding-inline: 28px;
  }
  .home-top {
    gap: 15px;
  }
  .hero-copy h1 {
    font-size: 50px;
  }
  .hero-art {
    transform: scale(0.85);
  }
  .entry-section {
    gap: 30px;
    padding: 32px;
  }
  .play-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 20px;
  }
  .round-heading h1 {
    font-size: 36px;
  }
  .game-sidebar {
    padding: 17px 12px;
  }
  .admin-grid {
    grid-template-columns: 320px 1fr;
    gap: 25px;
  }
  .admin-games {
    grid-template-columns: 1fr;
  }
  .answer-buttons {
    flex-wrap: wrap;
  }
  .answer-buttons .button {
    margin-left: auto;
  }
}
@media (max-width: 760px) {
  .header-caption {
    display: none;
  }
  .home-top {
    grid-template-columns: 1fr;
    padding-top: 25px;
    gap: 20px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-tags {
    justify-content: center;
  }
  .hero-copy h1 {
    font-size: 53px;
  }
  .hero-art {
    height: 330px;
    transform: scale(0.9);
    margin-bottom: 10px;
  }
  .art-orbit {
    width: 330px;
    height: 330px;
  }
  .star-one {
    right: 9%;
  }
  .star-two {
    left: 6%;
  }
  .art-label {
    right: 10%;
  }
  .entry-section {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 28px;
  }
  .entry-intro {
    text-align: center;
  }
  .entry-intro h2 {
    font-size: 33px;
  }
  .entry-intro p br {
    display: none;
  }
  .how-grid {
    gap: 22px;
  }
  .how-grid article {
    padding-left: 0;
  }
  .step-number {
    position: static;
    margin-bottom: 15px;
  }
  .how-grid h3 {
    font-size: 19px;
  }
  .lobby-grid {
    grid-template-columns: 1fr;
  }
  .invite-panel {
    order: -1;
  }
  .big-code {
    font-size: 53px;
  }
  .lobby-rules {
    margin-block: 20px;
  }
  .lobby-rules > div {
    font-size: 13px;
  }
  .lobby-title {
    padding-block: 20px 30px;
  }
  .lobby-title h1 {
    font-size: 45px;
  }
  .play-layout {
    grid-template-columns: 1fr;
  }
  .game-sidebar {
    position: static;
  }
  .game-sidebar .player-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }
  .game-sidebar .compact .player-name small {
    display: inline;
    margin-left: 5px;
  }
  .final-badge {
    display: none;
  }
  .room-top {
    flex-wrap: wrap;
    gap: 15px;
  }
  .connection {
    width: 100%;
    justify-content: center;
    order: 3;
  }
  .phase-progress {
    padding-bottom: 30px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-heading h1 {
    font-size: 35px;
  }
  .admin-login h1 {
    font-size: 38px;
  }
  .final-panel h1 {
    font-size: 39px;
  }
}
@media (max-width: 460px) {
  .site-header,
  .site-footer,
  .home-main,
  .game-main,
  .admin-main {
    padding-inline: 20px;
  }
  .site-header {
    min-height: 87px;
  }
  .brand {
    font-size: 29px;
    gap: 7px;
  }
  .brand-dot {
    font-size: 34px;
  }
  .header-right {
    gap: 12px;
  }
  .icon-button {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
  .language-switch button {
    padding: 7px 8px;
    font-size: 10px;
  }
  .hero-copy h1 {
    font-size: 43px;
  }
  .hero-copy .eyebrow {
    font-size: 9px;
  }
  .hero-description {
    font-size: 15px;
  }
  .hero-tags {
    gap: 5px;
  }
  .hero-tags span {
    font-size: 9px;
    padding: 5px 8px;
  }
  .hero-art {
    transform: scale(0.82);
    margin-inline: -25px;
    height: 320px;
  }
  .entry-section {
    padding: 23px 20px;
    border-radius: 21px;
  }
  .entry-intro h2 {
    font-size: 31px;
  }
  .how-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .how-grid article {
    padding-left: 48px;
  }
  .step-number {
    position: absolute;
  }
  .how-grid p {
    max-width: 280px;
  }
  .how-section {
    padding-top: 42px;
  }
  .site-footer {
    flex-direction: column;
    gap: 12px;
    font-size: 9px;
  }
  .panel {
    padding: 23px 20px;
  }
  .room-code-button {
    font-size: 16px;
    padding: 7px 12px;
  }
  .room-code-button span {
    font-size: 8px;
  }
  .lobby-title h1 {
    font-size: 38px;
  }
  .lobby-title .eyebrow {
    font-size: 9px;
  }
  .lobby-title > p {
    font-size: 12px;
  }
  .phase-progress {
    gap: 6px;
    flex-wrap: wrap;
  }
  .phase-progress > span {
    font-size: 11px;
    gap: 4px;
  }
  .phase-progress i {
    width: 20px;
    height: 20px;
    font-size: 9px;
    border-radius: 6px;
  }
  .phase-progress b {
    width: 10px;
  }
  .round-heading h1 {
    font-size: 32px;
  }
  .round-heading {
    gap: 12px;
  }
  .round-heading p {
    font-size: 14px;
  }
  .timer {
    width: 64px;
    height: 64px;
  }
  .timer strong {
    font-size: 24px;
  }
  .category-grid {
    gap: 12px;
  }
  .category-card {
    padding: 16px;
    min-height: 160px;
  }
  .category-card strong {
    font-size: 18px;
  }
  .category-card > span:last-of-type {
    font-size: 12px;
  }
  .category-card i {
    top: 15px;
    right: 15px;
  }
  .question-text {
    font-size: 26px;
  }
  .question-category {
    font-size: 11px;
  }
  .answer-buttons {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .answer-buttons .button {
    margin: 0;
  }
  .answer-buttons .text-button {
    text-align: center;
    margin-top: 5px;
  }
  .options-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .vote-option {
    min-height: 73px;
  }
  .option-wrap {
    padding-bottom: 32px;
  }
  .truth-card {
    padding: 25px 20px;
  }
  .truth-card h2 {
    font-size: 34px;
  }
  .round-scores .panel-heading h2 {
    font-size: 21px;
  }
  .score-row {
    gap: 8px;
  }
  .score-player strong {
    font-size: 14px;
  }
  .score-earned strong {
    font-size: 20px;
  }
  .leaderboard-panel {
    padding: 20px 15px;
  }
  .leaderboard-panel .panel-heading {
    align-items: start;
    gap: 8px;
  }
  .leaderboard-panel h2 {
    font-size: 25px;
  }
  .leaderboard-panel .pill {
    font-size: 10px;
    max-width: 95px;
  }
  .podium {
    gap: 8px;
  }
  .podium-player > strong {
    font-size: 12px;
  }
  .podium-score {
    font-size: 16px;
  }
  .podium-block b {
    font-size: 32px;
  }
  .podium-1 .podium-block {
    height: 108px;
  }
  .podium-2 .podium-block {
    height: 85px;
  }
  .podium-3 .podium-block {
    height: 65px;
  }
  .leaderboard-row {
    padding-inline: 6px;
    font-size: 12px;
  }
  .leaderboard-row small {
    display: block;
    margin-left: 0;
  }
  .admin-games {
    grid-template-columns: 1fr;
  }
  .admin-heading {
    flex-wrap: wrap;
  }
  .admin-heading h1 {
    font-size: 36px;
  }
  .admin-login {
    padding: 28px;
  }
  .admin-login h1 {
    font-size: 34px;
  }
  .final-row {
    padding: 15px;
    gap: 12px;
  }
  .final-row > strong {
    font-size: 14px;
  }
  .final-row b {
    font-size: 22px;
  }
  .final-panel h1 {
    font-size: 34px;
  }
  .likes-awards {
    padding: 22px;
  }
  .likes-award-row {
    font-size: 13px;
  }
  dialog {
    padding: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
