@font-face {
  font-family: Pixel;
  src: url(/fonts/pixel.woff2);
  font-display: swap;
}
@font-face {
  font-family: Pixel;
  src: url(/fonts/pixel-bold.woff2);
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Cartridge;
  src: url(/fonts/title.woff2);
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url(/fonts/body.woff2);
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #19161e;
  --panel: #2a232d;
  --line: #504252;
  --ink: #fff0d9;
  --muted: #cbbbc9;
  --orange: #ffa45e;
  --lav: #d5b7f3;
  --green: #b9d6a9;
  --pixel: Pixel, ui-monospace, monospace;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  background: radial-gradient(#77617423 1px, transparent 1px) 0 0/8px 8px
    var(--bg);
  font:
    16px/1.5 DM,
    system-ui,
    sans-serif;
}
h1,
h2,
h3,
p,
figure,
ol,
fieldset,
legend {
  margin: 0;
}
h1,
h2,
h3 {
  font: 700 1.35rem/1.22 var(--pixel);
  letter-spacing: -0.06em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.8rem, 6vw, 2.55rem);
}
p,
li {
  overflow-wrap: anywhere;
}
button,
textarea,
select,
input {
  font: inherit;
}
button {
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #ffd98c;
  outline-offset: 3px;
}
button {
  min-height: 44px;
}
img:not(.hero-art) {
  image-rendering: pixelated;
  object-fit: contain;
}
button,
img {
  -webkit-tap-highlight-color: transparent;
}
.shell {
  width: min(100% - 36px, 900px);
  margin-inline: auto;
}
header {
  background: #211b25;
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 61px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 700 20px/1 var(--pixel);
  letter-spacing: -0.075em;
}
.quiet,
.close,
.secondary,
.name,
.choice,
.text-input,
select,
textarea {
  border: 1px solid #6a586d;
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
}
.quiet,
.secondary {
  padding: 8px 13px;
  font-weight: 600;
}
.quiet {
  font-size: 14px;
}
#main {
  min-height: 54svh;
  padding-block: 25px 30px;
}
#main:focus {
  outline: none;
}
.loading {
  color: var(--muted);
  padding-block: 15vh;
  text-align: center;
}
.hero {
  display: grid;
  gap: 20px;
}
.eyebrow,
.meta,
.kicker {
  font: 400 12px/1.45 var(--pixel);
  letter-spacing: 0.035em;
}
.eyebrow,
.kicker {
  color: #ffc080;
  display: flex;
  align-items: center;
  gap: 7px;
}
.eyebrow img {
  width: 17px;
  height: 17px;
}
.hero h1 {
  font:
    400 clamp(31px, 8.5vw, 56px)/1.22 Cartridge,
    var(--pixel);
  letter-spacing: -0.095em;
  text-transform: uppercase;
  margin: 12px 0 9px;
  text-shadow: 0 3px #67474a;
}
.hero h1 span {
  color: var(--orange);
  text-shadow: 0 3px #834d38;
}
.intro,
.sub,
.hint,
.faint {
  color: var(--muted);
}
.intro {
  max-width: 420px;
  text-wrap: pretty;
}
.scene {
  position: relative;
  margin: 0;
  padding: 4px;
  border: 2px solid #6a5264;
  border-radius: 8px;
  background: #302731;
  box-shadow: 0 4px #100e14;
  overflow: hidden;
}
.hero-art {
  display: block;
  object-fit: cover;
  object-position: 50% 56%;
  width: 100%;
  aspect-ratio: 2.25;
  border-radius: 3px;
}
.menu {
  margin-top: 24px;
  display: grid;
  gap: 9px;
}
.join {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  border: 1px solid #976443;
  border-bottom: 4px solid #976443;
  border-radius: 8px;
  background: #3e2e29;
  padding: 14px;
  text-align: left;
}
.join .tile {
  border: 1px solid #855d46;
  background: #4a3730;
  border-radius: 6px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}
.join img {
  width: 33px;
  height: 32px;
}
.join strong {
  font: 700 19px/1.3 var(--pixel);
  letter-spacing: -0.06em;
  color: #ffb679;
}
.join small {
  display: block;
  color: #ddcfc8;
  font-size: 14px;
}
.join .arrow {
  width: 9px;
  height: 9px;
  border: solid var(--orange);
  border-width: 3px 3px 0 0;
  transform: rotate(45deg);
  margin: 0 4px 0 auto;
  flex: none;
}
.joined {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}
.joined .dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  display: inline-block;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: #b8a7b8;
  padding-block: 5px max(10px, env(safe-area-inset-bottom));
  font-size: 12px;
}
footer span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.text-button {
  background: none;
  border: 0;
  color: var(--lav);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 5px 0;
  font-weight: 600;
}
.screen {
  max-width: 550px;
  margin: 0 auto;
}
.screen .kicker {
  margin-bottom: 9px;
}
.sub {
  margin: 8px 0 20px;
}
.primary {
  width: 100%;
  padding: 11px 16px;
  min-height: 49px;
  border: 1px solid #ffc58e;
  border-bottom: 4px solid #ab6c48;
  border-radius: 7px;
  background: var(--orange);
  color: #2e201e;
  font: 700 17px/1.35 var(--pixel);
  letter-spacing: -0.055em;
}
.primary:not(:disabled):active,
.join:not(:disabled):active {
  transform: translateY(1px);
}
.action-row {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.text-input,
textarea,
select {
  display: block;
  width: 100%;
  font-size: 16px;
  padding: 11px 12px;
  background: #251f29;
  min-height: 48px;
}
textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}
.field {
  display: block;
  font-weight: 700;
  margin: 0 0 7px;
}
.hint {
  font-size: 14px;
  line-height: 1.4;
  margin-top: 7px;
}
.answers {
  display: grid;
  gap: 8px;
  margin-block: 8px 0;
}
.choice,
.say {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  text-align: left;
  overflow-wrap: anywhere;
  min-width: 0;
}
.choice span:last-child,
.say span:last-child {
  min-width: 0;
}
.choice .letter,
.say .letter {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #3d3043;
  color: var(--lav);
  font: bold 15px var(--pixel);
}
.choice[aria-pressed="true"],
.name[aria-pressed="true"] {
  border: 2px solid var(--lav);
  background: #3b3043;
  padding: 11px;
}
.choice[aria-pressed="true"] .letter {
  background: var(--lav);
  color: #29202e;
}
.choice[aria-pressed="true"] .letter:after {
  content: "✓";
  font-family: system-ui;
}
.choice[aria-pressed="true"] .letter span {
  display: none;
}
.block {
  margin-top: 18px;
}
fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}
legend {
  padding: 0;
  font-weight: 700;
}
.points {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.quote,
.reveal {
  border-left: 3px solid var(--orange);
  background: #322729;
  padding: 13px 15px;
  border-radius: 0 5px 5px 0;
  overflow-wrap: anywhere;
}
.quote small,
.reveal small {
  font: 12px var(--pixel);
  color: #ffbd87;
  display: block;
  margin-bottom: 4px;
}
.waiting {
  margin-block: 22px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.waiting img {
  width: 53px;
  height: 55px;
}
.waiting strong,
.winner {
  color: var(--lav);
}
.progress {
  height: 8px;
  border-radius: 2px;
  background: #443844;
  margin: 10px 0;
  overflow: hidden;
}
.progress span {
  background: var(--green);
  display: block;
  height: 100%;
}
.scoreboard,
.host-list {
  list-style: none;
  padding: 0;
  margin: 9px 0;
}
.scoreboard li,
.host-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
}
.scoreboard .rank {
  color: #bba7ba;
  min-width: 22px;
  font: 13px var(--pixel);
}
.scoreboard .score-name {
  flex: 1;
}
.scoreboard .score {
  font: 700 14px var(--pixel);
  color: var(--orange);
}
.scoreboard li.me {
  color: var(--lav);
  font-weight: 700;
}
.handoff {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #735d80;
  border-radius: 7px;
  background: #322a3a;
}
.handoff .kicker {
  color: var(--lav);
  margin: 0 0 3px;
}
.handoff .primary {
  margin-top: 10px;
}
.recap {
  margin-top: 20px;
}
.say {
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  padding-inline: 0;
}
.timer {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #2e2529;
  padding: 8px 12px;
  border: 1px solid #7c594c;
  border-radius: 6px;
  color: #ffc18f;
  font: 700 14px/1.5 var(--pixel);
  margin: 12px 0 16px;
}
.timer time {
  font-variant-numeric: tabular-nums;
}
.ready-note {
  color: var(--green);
}
dialog {
  background: #242029;
  color: var(--ink);
  padding: 23px;
  width: min(440px, calc(100% - 24px));
  border: 1px solid #705b6e;
  border-radius: 10px;
  max-height: 88svh;
  box-shadow: 0 16px 60px #0b090d99;
}
dialog::backdrop {
  background: #110d18d9;
}
dialog h2 {
  margin: 4px 38px 15px 0;
  font-size: 23px;
}
dialog .close {
  float: right;
  position: sticky;
  top: 0;
  z-index: 1;
  width: 44px;
  background: #382c3b;
  font-size: 23px;
  line-height: 1;
}
dialog ol.rules {
  padding-left: 23px;
}
dialog ol.rules li + li {
  margin-top: 11px;
}
dialog .action-row {
  margin-top: 15px;
}
.name-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0;
}
.name {
  padding: 9px 4px;
  text-align: center;
  font-weight: 600;
  word-wrap: break-word;
}
.name[aria-pressed="true"] {
  padding: 8px 3px;
}
.name:disabled {
  opacity: 0.5;
  text-decoration: line-through;
}
.host-list li {
  font-size: 15px;
  min-height: 50px;
}
.host-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.host-list input {
  accent-color: var(--orange);
  width: 18px;
  height: 18px;
}
.host-list small {
  color: var(--muted);
}
.danger {
  color: #ffb7a9;
  border-color: #8a605d;
}
.host-tools {
  display: grid;
  gap: 9px;
}
.host-tools details {
  border-block: 1px solid var(--line);
  padding-block: 3px;
}
.host-tools summary {
  cursor: pointer;
  min-height: 44px;
  padding-block: 10px;
}
.host-tools .progress {
  margin: 3px 0;
}
#notice {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(18px, env(safe-area-inset-bottom));
  margin: 0;
  z-index: 5;
  width: max-content;
  max-width: calc(100% - 28px);
  padding: 11px 14px;
  background: #4c3445;
  color: #fff0df;
  border: 1px solid #a77e91;
  border-radius: 6px;
  box-shadow: 0 3px 18px #110d16;
}
#connection {
  padding: 6px 18px;
  text-align: center;
  background: #4b382b;
  color: #ffe6bb;
  font-size: 14px;
}
.err {
  margin: 8px 0;
  color: #ffb4a7;
}
.sr-only {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (min-width: 700px) {
  .shell {
    width: min(100% - 64px, 960px);
  }
  .bar {
    height: 72px;
  }
  #main {
    padding-block: 45px 48px;
    min-height: 62vh;
  }
  .hero {
    grid-template-columns: 1fr 1.15fr;
    gap: 30px;
    align-items: center;
  }
  .hero h1 span {
    display: block;
  }
  .hero-art {
    aspect-ratio: 1.74;
  }
  .intro {
    font-size: 19px;
  }
  .menu {
    max-width: 480px;
    margin-top: 31px;
  }
  .screen {
    padding: 6px 0;
  }
}
@media (max-width: 350px) {
  .name-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .brand {
    font-size: 17px;
  }
  .shell {
    width: calc(100% - 26px);
  }
  .quiet {
    padding: 7px 10px;
  }
}
/* Three puffs of steam rise from a pixel-art skillet while bluffs cook. */
.cooking-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 14px;
  color: var(--orange);
  font-weight: 700;
}
.skillet {
  position: relative;
  width: 34px;
  height: 30px;
  flex: none;
}
.skillet::before,
.skillet::after {
  content: "";
  position: absolute;
  background: currentColor;
}
.skillet::before {
  left: 0;
  bottom: 5px;
  width: 25px;
  height: 5px;
  box-shadow: 3px 3px 0 -1px currentColor;
}
.skillet::after {
  right: 0;
  bottom: 9px;
  width: 10px;
  height: 3px;
}
.skillet i {
  position: absolute;
  bottom: 13px;
  left: 4px;
  width: 3px;
  height: 5px;
  background: var(--ink);
  animation: skillet-steam 1.5s steps(5) infinite;
}
.skillet i:nth-child(2) { left: 11px; animation-delay: -0.5s; }
.skillet i:nth-child(3) { left: 18px; animation-delay: -1s; }
@keyframes skillet-steam {
  0% { opacity: 0.2; transform: translate(0, 0); }
  35% { opacity: 1; transform: translate(1px, -3px); }
  100% { opacity: 0; transform: translate(-2px, -11px); }
}
@media (prefers-reduced-motion: reduce) {
  .skillet i { animation: none; }

  * {
    scroll-behavior: auto !important;
  }
}
