:root {
  --paper: #f0f5f1;
  --ink: #173f40;
  --muted: #536c6a;
  --line: #ccdad2;
  --field-line: #849e98;
  --lake: #167b96;
  --lake-hover: #11677d;
  --pine: #24665b;
  --mint: #b9e6d2;
  --canyon: #ef965e;
  --ice: #dfedf2;
  --peach: #f8ddc7;
  --surface: #fbfdf8;
  --canvas: #fffdf7;
  --shadow: #d2e1d9;
  --danger: #964327;
  --focus: #a54726;
  --radius: 16px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled,
input:disabled {
  cursor: default;
  opacity: 0.55;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
.site-header {
  max-width: 1312px;
  margin: auto;
  padding: 25px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  min-height: 99px;
}
.brand {
  font-size: 39px;
  font-weight: 850;
  letter-spacing: -2.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.brand-mark {
  display: block;
  height: 43px;
  width: 43px;
  flex-shrink: 0;
}
.brand-period {
  color: var(--canyon);
  margin-left: -9px;
}
.site-header nav {
  display: flex;
  gap: 25px;
  align-items: center;
  font-size: 13px;
}
.user-name {
  font-weight: 700;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-button {
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 5px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 0;
}
.page-shell {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 48px;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 750;
  line-height: 1.6;
}

.category-pill {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 1.3px;
  font-weight: 800;
  background: var(--ice);
  border-radius: 5px;
  padding: 8px 11px;
  color: var(--ink);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 22px;
  letter-spacing: -1px;
  line-height: 1.14;
}

label:not(.choice-option) {
  display: block;
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 9px;
}
input:not([type="radio"]):not([type="submit"]),
select {
  width: 100%;
  border: 1px solid var(--field-line);
  background: var(--surface);
  border-radius: 7px;
  height: 48px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 13px;
}
input::placeholder {
  color: var(--muted);
}
select {
  appearance: none;
  padding-right: 42px;
  background-image: url("/assets/chevron-down-93a44223.svg");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}
@media (forced-colors: active) {
  select {
    appearance: auto;
    background-image: none;
  }
}

.button {
  min-height: 48px;
  border-radius: 7px;
  border: 1px solid var(--ink);
  padding: 14px 19px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  text-align: center;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
  white-space: nowrap;
}
.button:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 #173f4026;
}
.button.primary {
  background: var(--lake);
  border-color: var(--lake);
  color: var(--surface);
}
.button.primary:hover {
  background: var(--lake-hover);
  border-color: var(--lake-hover);
}
.button.secondary {
  background: var(--surface);
  border-color: var(--pine);
  color: var(--ink);
}

.button span {
  font-size: 16px;
}
.full-width {
  width: 100%;
}
.site-footer {
  max-width: 1312px;
  margin: auto;
  padding: 24px 48px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}
.pixel-tip-jar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--pine);
  color: var(--surface);
  box-shadow: 0 3px 10px #173f401a;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 160ms ease, box-shadow 160ms ease;
}
.pixel-tip-jar:hover,
.pixel-tip-jar:focus-visible {
  background: var(--ink);
  box-shadow: 0 4px 14px #173f4026;
}
.pixel-tip-jar > span:first-child,
.pixel-tip-jar svg {
  display: block;
  width: 24px;
  height: 24px;
}
.pixel-tip-jar .tipjar-coin-drop-new {
  opacity: 0;
}
.pixel-tip-jar:hover .tipjar-coin-drop-new,
.pixel-tip-jar:focus-visible .tipjar-coin-drop-new {
  animation: pixel-tip-coin 2.5s ease-in-out infinite;
}
@keyframes pixel-tip-coin {
  0%, 100% { opacity: 0; }
  0% { transform: translateY(0); }
  10% { opacity: 1; }
  70% { transform: translateY(15.5px); opacity: 1; }
  100% { transform: translateY(16.3px); }
}
@media (min-width: 741px) {
  .site-footer--home .pixel-tip-jar {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 10;
    padding: 12px;
    gap: 0;
  }
  .site-footer--home .tipjar-text {
    max-width: 0;
    overflow: hidden;
    transition: max-width 160ms ease, margin-left 160ms ease;
  }
  .site-footer--home .pixel-tip-jar:hover .tipjar-text,
  .site-footer--home .pixel-tip-jar:focus-visible .tipjar-text {
    max-width: 100px;
    margin-left: 8px;
  }
  .site-footer--home {
    min-height: 96px;
  }
}
.flash {
  margin: 20px 0;
  background: var(--mint);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 8px;
  font-size: 13px;
}
.flash.alert {
  background: var(--peach);
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  padding: 12px;
  background: var(--ink);
  color: white;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.room-heading {
  padding: 35px 0 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.room-heading h1 {
  font-size: 30px;
  letter-spacing: -1.4px;
  line-height: 1.15;
}
.room-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 32px;
  max-width: 1100px;
  margin: auto;
}
.drawing-card {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 4px 5px 0 var(--shadow);
}
.drawing-toolbar {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.round-label {
  font-size: 11px;
  color: var(--muted);
  flex: 1;
}
.timer {
  background: var(--mint);
  padding: 8px 12px;
  border: 1px solid var(--pine);
  border-radius: 6px;
  font-size: 16px;
  font-weight: 750;
  min-width: 54px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.timer.urgent {
  background: var(--canyon);
  color: var(--ink);
  border-color: var(--danger);
}
.canvas {
  aspect-ratio: 1.2;
  display: grid;
  place-items: center;
  padding: 4px 20px;
  background-color: var(--canvas);
  position: relative;
  max-height: 580px;
  overflow: hidden;
}
.puzzle-drawing {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 530px;
  min-height: 0;
}
.puzzle-drawing > svg,
.puzzle-drawing > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.drawing-caption {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--canvas);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
}
.canvas-message {
  padding: 35px 20px;
  text-align: center;
  max-width: 440px;
}
.drawing-mascot {
  display: inline-block;
  width: 105px;
  height: 105px;
  border-radius: 25%;
  box-shadow: 5px 5px 0 var(--shadow);
  margin-bottom: 29px;
}
.sketchbook {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px;
}
.sketchbook-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.sketchbook-heading h2 {
  font-size: 23px;
  letter-spacing: -0.7px;
  margin-bottom: 7px;
}
.sketchbook-heading p,
.sketchbook-footer p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.sketchbook-wait {
  flex-shrink: 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--muted);
}
.sketchbook-paper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-image: radial-gradient(var(--line) 0.7px, transparent 0.7px);
  background-size: 16px 16px;
}
.sketchbook-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
}
.sketchbook-art {
  display: block;
  flex: 1;
  min-height: 0;
  width: 100%;
}
.sketchbook-caption {
  font-size: 11px;
  font-style: italic;
  background: var(--canvas);
  padding: 3px 8px;
  text-align: center;
}
.sketchbook-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sketchbook-shuffle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  padding: 10px 13px;
  min-height: 40px;
  color: var(--ink);
  background: var(--mint);
  border: 1px solid var(--pine);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
}
.sketchbook-shuffle:hover {
  background: var(--ice);
}
.sketchbook-shuffle span {
  font-size: 18px;
  line-height: 1;
}
.canvas-message h2 {
  font-size: 26px;
  letter-spacing: -0.7px;
  margin-bottom: 15px;
}
.canvas-message p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.guess-area {
  padding: 24px 0 0;
}
.guess-input-row {
  display: flex;
  gap: 10px;
}
.guess-input-row input {
  flex: 1;
  min-width: 0;
}
.guess-input-row .button {
  min-width: 110px;
}
.guess-feedback {
  font-size: 13px;
  min-height: 20px;
  margin-top: 13px;
  color: var(--danger);
}
.category-pill:empty,
.guess-area > form[hidden] + .guess-feedback:empty,
.connection-message:empty,
.waiting-note:empty,
.canvas-message p:empty {
  display: none;
}
.guess-feedback.correct {
  color: var(--pine);
  font-weight: 650;
}
.hint {
  font-size: 12px;
  color: var(--ink);
  background: var(--ice);
  border-radius: 6px;
  padding: 12px;
  margin-top: 10px;
}
.answer-reveal {
  padding: 20px 24px;
  background: var(--mint);
  border: 1px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--shadow);
}
.answer-reveal h2 {
  font-size: 30px;
  letter-spacing: -0.8px;
  margin-top: 7px;
}
.next-round-countdown {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.score-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 22px;
}
.score-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}
.score-heading h2 {
  font-size: 16px;
  letter-spacing: -0.4px;
}
.score-heading > span {
  color: var(--canyon);
  font-size: 26px;
}
.scoreboard {
  margin: 0;
  padding: 0;
  list-style: none;
}
.scoreboard li {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}
.scoreboard li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.player-avatar {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mint);
  font-size: 12px;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.avatar-1 {
  background: var(--peach);
}
.avatar-2 {
  background: var(--ice);
}
.avatar-3 {
  background: #e0deef;
}
.player-name {
  font-size: 12px;
  line-height: 1.4;
  flex: 1;
  overflow-wrap: anywhere;
}
.player-name small {
  font-size: 9px;
  color: var(--pine);
}
.scoreboard strong {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.invite-card {
  padding: 23px 0;
}
.invite-card input {
  font-size: 10px !important;
  height: 38px !important;
  background: transparent !important;
}
.invite-card .button {
  width: 100%;
  margin-top: 10px;
  min-height: 40px;
  font-size: 11px;
  padding: 10px;
}
.host-controls {
  margin-top: 18px;
}
.reveal-button {
  display: block;
  margin: 20px auto;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.waiting-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  text-align: center;
}
.connection-message {
  font-size: 12px;
  color: var(--danger);
  margin-bottom: 12px;
  min-height: 1px;
}
.gallery-section {
  margin-top: 55px;
  border-top: 1px solid var(--line);
  padding: 30px 0 40px;
}
.gallery-section h2 {
  font-size: 26px;
}
.round-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.round-gallery figure {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}
.round-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.round-gallery figcaption {
  padding: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.round-gallery small {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: var(--muted);
}
.round-gallery strong {
  font-size: 12px;
  line-height: 1.5;
}
.game-room {
  padding-bottom: 50px;
}
.welcome-card {
  max-width: 550px;
  text-align: center;
  padding: 65px 30px;
  margin: 35px auto 60px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.welcome-card h1 {
  font-size: 44px;
  letter-spacing: -2px;
  line-height: 1.05;
}
.welcome-card p:not(.eyebrow) {
  margin: 22px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.welcome-card > .button {
  margin-top: 24px;
}
.welcome-card form {
  margin: 25px auto 0;
  max-width: 300px;
  text-align: left;
}
.welcome-card form .button {
  width: 100%;
  margin-top: 15px;
}
.auth-card {
  max-width: 420px;
  margin: 65px auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.auth-card h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin-bottom: 14px;
}
.auth-card p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 22px;
}
.auth-card input {
  margin-bottom: 18px;
}
.auth-card .button {
  width: 100%;
  margin-bottom: 15px;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  text-decoration: underline;
  gap: 10px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 1050px) {
  .site-header,
  .page-shell,
  .site-footer {
    padding-left: 30px;
    padding-right: 30px;
  }

  .room-grid {
    grid-template-columns: minmax(0, 1fr) 245px;
    gap: 22px;
  }
  .round-gallery {
    grid-template-columns: repeat(3, 1fr);
  }

}
@media (max-width: 740px) {
  .site-header {
    min-height: 78px;
    padding: 18px 22px;
  }
  .brand {
    font-size: 33px;
  }
  .brand-mark {
    height: 36px;
    width: 36px;
  }
  .site-header nav {
    gap: 16px;
  }
  .site-header nav .text-button {
    font-size: 11px;
  }
  .user-name {
    font-size: 11px;
    max-width: 105px;
  }
  .page-shell {
    padding: 0 22px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 22px;
  }
  .section-heading h2 {
    font-size: 22px;
  }

  .button {
    font-size: 11px;
    padding: 13px 16px;
    gap: 14px;
  }

  .site-footer {
    padding: 23px 22px;
    font-size: 10px;
  }
  .room-heading {
    padding-top: 27px;
    align-items: flex-start;
  }
  .room-heading h1 {
    font-size: 26px;
    letter-spacing: -1px;
  }
  .room-heading > .text-button {
    flex-shrink: 0;
    font-size: 10px;
  }
  .room-grid {
    grid-template-columns: 1fr;
    gap: 23px;
  }
  .drawing-toolbar {
    padding: 12px;
    gap: 10px;
  }
  .category-pill {
    font-size: 8px;
    padding: 7px 8px;
  }
  .round-label {
    font-size: 9px;
  }
  .timer {
    font-size: 14px;
    min-width: 46px;
    padding: 7px 9px;
  }
  .canvas {
    padding: 4px 8px;
    aspect-ratio: 1;
    max-height: 500px;
  }
  .canvas-message {
    padding: 20px 12px;
  }
  .sketchbook {
    padding: 14px;
    gap: 10px;
  }
  .sketchbook-heading h2 {
    font-size: 19px;
    margin-bottom: 5px;
  }
  .sketchbook-heading p,
  .sketchbook-footer p,
  .sketchbook-shuffle {
    font-size: 10px;
  }
  .sketchbook-paper {
    padding: 10px 6px 7px;
  }
  .sketchbook-caption {
    font-size: 10px;
  }
  .sketchbook-shuffle {
    padding: 8px 10px;
  }
  .canvas-message h2 {
    font-size: 22px;
  }
  .canvas-message p {
    font-size: 12px;
  }
  .drawing-mascot {
    width: 80px;
    height: 80px;
    margin-bottom: 22px;
  }
  .guess-area {
    padding-top: 22px;
  }
  .guess-input-row .button {
    min-width: 90px;
    gap: 8px;
  }
  .guess-feedback {
    font-size: 12px;
  }
  .room-sidebar {
    display: flex;
    flex-direction: column;
  }
  .host-controls {
    order: -2;
    margin: 0 0 18px;
  }
  .host-controls:has(.waiting-note:empty):not(:has(button:not([hidden]))) {
    display: none;
  }
  .room-sidebar > .button {
    order: -1;
    margin-bottom: 18px;
  }
  .score-card {
    padding: 19px;
  }
  .invite-card {
    border-bottom: 1px solid var(--line);
  }
  .round-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .gallery-section {
    margin-top: 36px;
  }
  .gallery-section h2 {
    font-size: 24px;
  }
  .welcome-card {
    padding: 35px 20px;
    margin-top: 28px;
  }
  .welcome-card h1 {
    font-size: 38px;
  }
  .auth-card {
    margin-top: 30px;
    padding: 25px;
  }
  .answer-reveal h2 {
    font-size: 25px;
  }
  .answer-reveal {
    padding: 20px;
  }
}
@media (max-width: 740px), (pointer: coarse) {
  /* Keep mobile browsers from zooming into small form controls on focus. */
  input:not([type="radio"]):not([type="submit"]),
  select,
  .invite-card input {
    font-size: 16px !important;
  }
}

/* Game setup: one clear path from artist choice to play. */
.game-menu {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  max-width: 1160px;
  margin: auto;
  padding: 44px 0 60px;
  align-items: start;
}
.menu-intro { padding-top: 12px; }
.menu-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pine);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.6px;
}
.menu-kicker > span { color: var(--canyon); font-size: 18px; }
.menu-intro h1 {
  margin: 18px 0;
  font-size: clamp(46px, 5.2vw, 70px);
  line-height: 1.02;
  letter-spacing: -3.5px;
  font-weight: 850;
}
.menu-intro h1 > span { color: var(--pine); }
.menu-description { font-size: 16px; line-height: 1.7; color: var(--muted); }
.artist-preview {
  margin-top: 28px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 0 -3px var(--shadow);
}
.preview-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 650;
}
.preview-heading > :last-child { margin-left: auto; font-size: 18px; color: var(--muted); }
.preview-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pine); }
.preview-paper { padding: 0 18px; }
.preview-paper img { width: 100%; height: auto; max-height: 335px; display: block; object-fit: contain; }
.artist-preview figcaption { display: flex; align-items: center; gap: 9px; padding: 16px 20px; border-top: 1px solid var(--line); }
.artist-preview figcaption > :first-child { font-size: 8px; letter-spacing: 1px; color: var(--muted); }
.artist-preview figcaption strong { font-size: 11px; }
.artist-preview figcaption > :last-child { margin-left: auto; font-size: 9px; color: var(--muted); }
.setup-panel { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 12px 40px #173f4008; }
.setup-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.setup-heading .eyebrow { color: var(--muted); font-size: 9px; }
.setup-heading h2 { font-size: 27px; letter-spacing: -1px; margin-top: 6px; }
.setup-spark { font-size: 44px; color: var(--canyon); line-height: 1; }
.setup-form { display: flex; flex-direction: column; gap: 24px; }
.setup-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.setup-form .field-label { width: 100%; display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.field-label > span { color: var(--muted); font-size: 10px; font-weight: 400; }
.field-hint { font-size: 11px; color: var(--muted); line-height: 1.5; }
.mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; padding: 5px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; }
.choice-option { position: relative; cursor: pointer; }
.choice-option input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.choice-option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.mode-option { display: flex; align-items: center; gap: 11px; border: 1px solid transparent; border-radius: 9px; padding: 13px 11px; }
.mode-option > svg { width: 23px; height: 23px; flex-shrink: 0; }
.mode-option strong { display: block; font-size: 12px; }
.mode-option small { display: block; margin-top: 4px; font-size: 9px; color: var(--muted); }
.mode-option:has(input:checked) { background: var(--surface); border-color: var(--field-line); box-shadow: 0 2px 5px #173f4009; }
.choice-check { visibility: hidden; color: var(--pine); font-size: 11px; }
.mode-option > .choice-check { margin-left: auto; }
.choice-option:has(input:checked) .choice-check { visibility: visible; }
.setup-details { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 14px; }
.setup-details > p { grid-column: 1 / -1; margin-top: 8px; }
.setup-form select, .setup-form input:not([type="radio"]) { border-radius: 10px; font-size: 14px; background-color: #fff; }
.artist-picker > .field-hint { margin: -2px 0 13px; }
.artist-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.artist-option { display: flex; flex-direction: column; padding: 14px 12px; border: 1px solid var(--line); border-radius: 12px; transition: border-color 0.15s, background 0.15s; }
.artist-option:hover { border-color: var(--pine); }
.artist-choice-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 14px; }
.challenge-badge { border-radius: 5px; font-size: 9px; font-weight: 700; padding: 5px 7px; background: var(--paper); }
.artist-option--mint .challenge-badge { background: var(--mint); }
.artist-option--ice .challenge-badge { background: var(--ice); }
.artist-option--peach .challenge-badge { background: var(--peach); }
.artist-option--mint:has(input:checked) { background: #e1f2e7; border-color: var(--pine); }
.artist-option--ice:has(input:checked) { background: #eaf2f6; border-color: var(--lake); }
.artist-option--peach:has(input:checked) { background: #fcebdd; border-color: var(--danger); }
.artist-option > strong { font-size: 22px; letter-spacing: -0.6px; }
.artist-model-name { margin-top: 4px; font-size: 9px; color: var(--muted); }
.artist-description { margin-top: 12px; font-size: 11px; line-height: 1.5; }
.artist-preview-drawer { display: none; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); overflow: hidden; }
.artist-preview-drawer summary { display: flex; justify-content: space-between; padding: 14px 12px; cursor: pointer; list-style: none; font-size: 11px; font-weight: 600; }
.artist-preview-drawer summary::-webkit-details-marker { display: none; }
.artist-preview-drawer summary:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.artist-preview-drawer[open] summary > :last-child { transform: rotate(45deg); }
.artist-preview-drawer > p { padding: 12px; text-align: center; font-size: 11px; border-top: 1px solid var(--line); }
.setup-launch { padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.setup-summary { color: var(--muted); font-size: 11px; margin-bottom: 12px; }
.button.setup-start { width: 100%; min-height: 54px; display: flex; justify-content: space-between; border-radius: 10px; padding: 15px 22px; }
.setup-start > span { font-size: 14px; }
.setup-start > :last-child { font-size: 22px; }
.launch-hint { margin-top: 11px; font-size: 10px; line-height: 1.5; color: var(--muted); }
.room-artist { display: flex; align-items: center; gap: 11px; padding: 0 4px 18px; font-size: 12px; }
.room-artist small { display: block; color: var(--muted); margin-top: 5px; font-size: 10px; }
.artist-dot { width: 29px; height: 29px; border: 1px solid var(--field-line); border-radius: 50%; }
.artist-dot--mint { background: var(--mint); }
.artist-dot--ice { background: var(--ice); }
.artist-dot--peach { background: var(--peach); }
@media (max-width: 1050px) {
  .game-menu { gap: 28px; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .setup-panel { padding: 24px; }
  .artist-preview figcaption { flex-wrap: wrap; gap: 6px; }
  .artist-preview figcaption > :last-child { width: 100%; margin-left: 0; }
  .mode-option { gap: 7px; padding: 12px 9px; }
  .mode-option > svg { width: 20px; }
}
@media (max-width: 840px) {
  .artist-preview-drawer { display: block; }
  .game-menu { max-width: 580px; grid-template-columns: minmax(0, 1fr); gap: 30px; padding-top: 26px; }
  .menu-intro { padding: 0; display: grid; grid-template-columns: 1fr 160px; column-gap: 20px; align-items: center; }
  .menu-kicker { grid-column: 1; font-size: 8px; letter-spacing: 1px; }
  .menu-intro h1 { grid-column: 1; margin: 10px 0; font-size: 44px; letter-spacing: -2px; }
  .menu-description { grid-column: 1; font-size: 12px; }
  .menu-intro .artist-preview { grid-column: 2; grid-row: 1 / 4; margin: 0; border-radius: 12px; }
  .preview-heading { padding: 9px; font-size: 9px; gap: 5px; }
  .preview-heading > :last-child { display: none; }
  .preview-paper { padding: 0 4px; }
  .artist-preview figcaption { padding: 10px; }
  .artist-preview figcaption > :first-child { font-size: 7px; }
  .artist-preview figcaption > :last-child { display: none; }
  .artist-preview figcaption strong { font-size: 10px; }
}
@media (max-width: 480px) {
  .game-menu { padding-top: 22px; gap: 24px; }
  .menu-intro { grid-template-columns: 1fr 118px; gap: 0 10px; }
  .menu-intro h1 { font-size: 37px; }
  .menu-description { font-size: 11px; }
  .menu-kicker { font-size: 7px; }
  .preview-heading { font-size: 8px; }
  .preview-live-dot { width: 5px; height: 5px; }
  .setup-panel { padding: 22px 17px; border-radius: 19px; }
  .setup-heading h2 { font-size: 24px; }
  .setup-heading { margin-bottom: 23px; }
  .setup-spark { font-size: 36px; }
  .setup-form { gap: 22px; }
  .mode-option { padding: 12px 7px; gap: 8px; }
  .mode-option > svg { display: none; }
  .mode-option strong { font-size: 12px; }
  .mode-option small { font-size: 9px; }
  .setup-details { gap: 0 10px; grid-template-columns: 1fr 1fr; }
  .setup-form select, .setup-form input:not([type="radio"]) { font-size: 16px; padding-left: 11px; }
  .setup-form select { padding-right: 27px; background-position: right 8px center; background-size: 13px; }
  .artist-options { gap: 6px; }
  .artist-option { padding: 12px 9px; }
  .artist-option > strong { font-size: 21px; }
  .artist-description { font-size: 10px; }
  .artist-model-name { font-size: 8px; }
  .challenge-badge { font-size: 8px; padding: 4px 5px; }
  .artist-choice-top { gap: 2px; margin-bottom: 11px; }
}

/* Installed mobile clients can join the same invitation as browser players. */
.native-app-link { display: none; }
@media (pointer: coarse) { .native-app-link { display: inline-flex; margin-top: 1rem; } }

.policy-page { max-width: 720px; margin: 2rem auto 4rem; line-height: 1.7; }
.policy-page h1 { font-size: 2.8rem; }
.policy-page h2 { margin-top: 2rem; font-size: 1.3rem; }
.policy-page a { text-decoration: underline; }
