@font-face {
  font-family: Pixel;
  src: url(/assets/pixel.ttf);
}
@font-face {
  font-family: Pixel;
  src: url(/assets/pixel-bold.ttf);
  font-weight: 700;
}
@font-face {
  font-family: DM;
  src: url(/assets/body.ttf);
}
:root {
  color-scheme: dark;
  --bg: #19161e;
  --ink: #fff0d9;
  --muted: #c1b3bf;
  --line: #443947;
  --orange: #ffa45e;
  --lav: #c7a9ec;
  --green: #afc9a3;
  --panel: #252029;
  --pixel: Pixel, monospace;
  --body: DM, system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(#7661761c 0.85px, transparent 0.85px);
  background-size: 8px 8px;
  color: var(--ink);
  font: 16px/1.5 var(--body);
  min-height: 100svh;
}
button,
input,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  opacity: 0.53;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #ffe4a0;
  outline-offset: 4px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
button {
  touch-action: manipulation;
}
img.sprite,
.brand img,
.foot img,
.pixel-img {
  image-rendering: pixelated;
}
.wrap {
  width: min(1120px, calc(100% - 80px));
  margin-inline: auto;
}
.top {
  background: #1f1a23;
  border-bottom: 1px solid var(--line);
}
.top-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font: 700 24px/1 var(--pixel);
  letter-spacing: -1.7px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand img {
  width: 47px;
}
.sound,
.small-btn,
.close {
  background: #2a232e;
  border: 1px solid #514353;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 13px;
  color: #e1d4e0;
  font-size: 14px;
  font-weight: bold;
  min-height: 38px;
}
.sound:hover,
.small-btn:hover,
.close:hover {
  background: #3a303e;
}
.ico {
  width: 19px;
  height: 19px;
  flex: none;
  vertical-align: middle;
}
.hero {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 40px;
  margin: 46px 0 35px;
}
.hero-copy {
  position: relative;
}
.edition,
.kicker,
.section-label,
.mono,
.scene-caption,
.foot > span:last-child {
  font: 400 13px/1.4 var(--pixel);
  letter-spacing: 0.035em;
}
.edition {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #eeb36f;
  font-size: 14px;
}
.edition img {
  width: 21px;
}
.hero h1 {
  font: 700 clamp(78px, 8.4vw, 120px) / 0.79 var(--pixel);
  letter-spacing: -0.09em;
  margin: 21px 0 23px;
  text-shadow: 0 5px #67474a;
}
.hero h1 span {
  display: block;
  color: var(--orange);
  text-shadow: 0 5px #834d38;
}
.hero-copy > p {
  max-width: 375px;
  color: #d4c6d1;
  font-size: 19px;
  line-height: 1.45;
}
.metadata {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 20px;
  color: #c4b4c2;
  font-size: 14px;
}
.metadata span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.metadata .ico {
  width: 17px;
  height: 17px;
  color: #ab99b2;
}
.dot,
.foot i {
  width: 3px;
  height: 3px;
  background: #816c81;
  display: inline-block;
}
.spark {
  position: absolute;
  color: #a37150;
  font: 24px var(--pixel);
  pointer-events: none;
  top: 18%;
  right: 19%;
  transform: rotate(8deg);
}
.spark:after {
  content: "✦";
  font-size: 11px;
  position: absolute;
  top: 24px;
  left: 21px;
  color: #87607b;
}
.scene {
  background: #302731;
  border: 2px solid #675161;
  border-radius: 9px;
  padding: 6px;
  box-shadow: 0 5px 0 #100e14;
  position: relative;
  overflow: hidden;
}
.scene > img {
  display: block;
  width: 100%;
  aspect-ratio: 1.76;
  object-fit: cover;
  object-position: center 54%;
  border-radius: 3px;
}
.scene-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 8px 5px;
  font-size: 14px;
  color: #eedec8;
}
.scene-caption .map-tag {
  font: 10px var(--pixel);
  color: #d1b7bf;
  background: #493b48;
  border-radius: 3px;
  padding: 4px 6px;
}
.scene-dots {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.scene-dots i {
  width: 5px;
  height: 5px;
  background: #705765;
}
.scene-dots i:first-child {
  background: #f2ab64;
}
.section-label {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #c7b5c6;
  font-size: 13px;
}
.section-label:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.section-label .ico {
  width: 16px;
  color: #a08ca6;
}
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 14px 0 20px;
}
.menu-card {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 23px;
  text-align: left;
  border-radius: 9px;
  border: 1px solid var(--edge);
  border-bottom: 4px solid var(--edge);
  background: var(--card);
  color: var(--accent);
  min-height: 104px;
  transition:
    transform 0.15s,
    background 0.15s;
}
.menu-card:hover {
  transform: translateY(-2px);
  background: var(--hover);
}
.host {
  --accent: #ffb675;
  --edge: #885b45;
  --card: #3c2c2a;
  --hover: #4b342d;
}
.join {
  --accent: #d6b9ff;
  --edge: #705a83;
  --card: #332b3d;
  --hover: #40334b;
}
.tile {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  flex: none;
  background: #ffffff08;
  border: 1px solid var(--edge);
  border-radius: 8px;
}
.tile img {
  width: 41px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
}
.menu-card strong,
.guide strong {
  display: block;
  font: 700 22px/1.2 var(--pixel);
  letter-spacing: -0.055em;
}
.menu-card small,
.guide small {
  display: block;
  color: #d1c2c8;
  font: 15px/1.45 var(--body);
  margin-top: 5px;
}
.chev {
  margin-left: auto;
  font: 26px var(--pixel);
}
.guide {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px 20px;
  background: #252129;
}
.guide-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #303232;
}
.guide-icon img {
  width: 30px;
}
.guide strong {
  font-size: 17px;
  letter-spacing: -0.06em;
}
.guide small {
  margin-top: 2px;
}
.guide button {
  margin-left: auto;
  white-space: nowrap;
}
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  padding: 20px 0 26px;
  border-top: 1px solid #3b323f;
  color: #a799a8;
  font-size: 13px;
}
.foot span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.foot b {
  font-weight: normal;
}
.foot img {
  width: 15px;
  margin-right: 5px;
}
.foot > span:last-child {
  font-size: 11px;
  gap: 9px;
}
.foot i {
  background: #7b697e;
}
.screen {
  margin: 34px auto 0;
  max-width: 850px;
}
.screen h1,
dialog h2 {
  font: 700 clamp(29px, 4vw, 45px) / 1.1 var(--pixel);
  letter-spacing: -0.065em;
  margin: 12px 0;
}
.screen h2,
dialog h3 {
  font: 700 20px/1.2 var(--pixel);
  letter-spacing: -0.05em;
}
.kicker {
  color: var(--orange);
}
.lead,
dialog p {
  color: var(--muted);
  margin: 8px 0 18px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  background: var(--panel);
  margin-top: 16px;
}
.panel-head,
.row,
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.panel-head {
  justify-content: space-between;
  flex-wrap: wrap;
}
.actions {
  flex-wrap: wrap;
  margin-top: 17px;
}
.pill {
  border-radius: 4px;
  background: #3a303d;
  color: #e2ccdc;
  font: 12px var(--pixel);
  padding: 6px 8px;
}
.primary,
.secondary,
.choice,
.room-button,
.link-button {
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid #695168;
  background: #362c3a;
  color: var(--ink);
  font-weight: 700;
}
.primary {
  background: #ffa35c;
  border: 1px solid #edac72;
  border-bottom: 3px solid #ab6c47;
  color: #251922;
}
.primary:hover {
  background: #ffb880;
}
.secondary:hover,
.choice:hover,
.room-button:hover {
  background: #47394d;
}
.link-button {
  background: none;
  border: none;
  font-size: 14px;
  color: #cbb8d1;
  text-decoration: underline;
}
.room-code {
  font: 700 clamp(38px, 8vw, 67px) / 1 var(--pixel);
  color: var(--orange);
  letter-spacing: 0.12em;
  margin: 12px 0;
}
.roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}
.guest {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #2d2630;
  border-radius: 7px;
  padding: 8px 10px;
  min-width: 0;
}
.guest .sprite {
  width: 34px;
}
.guest .name {
  overflow-wrap: anywhere;
}
.guest small {
  color: #bdaec2;
}
.guest .remove {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 21px;
  min-width: 40px;
  min-height: 40px;
}
.muted {
  color: var(--muted);
}
.hint {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
}
.status {
  border-left: 3px solid #b89ac9;
  padding: 10px 14px;
  background: #312936;
  margin-top: 14px;
}
.warning {
  border-color: var(--orange);
  color: #ffc49a;
}
.bar {
  height: 10px;
  background: #473b46;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 12px;
}
.bar > i {
  background: #bac99a;
  height: 100%;
  display: block;
}
.room-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.room-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 13px 3px;
  font-size: 14px;
}
.room-button .ico {
  width: 23px;
  height: 23px;
}
.room-button[aria-current="true"] {
  background: #503a33;
  border-color: #c88c61;
  color: #ffd5aa;
}
.complete {
  color: #b6d3a3;
}
.choices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.vote-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}
.vote-grid button {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vote-grid img {
  width: 32px;
}
.kitchen-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 15px;
}
.toast-space {
  min-height: 22px;
}
dialog {
  color: var(--ink);
  background: #27212b;
  border: 1px solid #705b6d;
  border-radius: 14px;
  padding: 32px;
  width: min(450px, calc(100% - 32px));
  box-shadow: 0 16px 100px #0008;
  max-height: 88svh;
}
dialog::backdrop {
  background: #0d0913c9;
}
dialog h2 {
  font-size: 30px;
  margin: 10px 24px 15px 0;
}
dialog .close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  font: 24px var(--body);
}
dialog label,
.field-label {
  display: block;
  color: #eedfe9;
  font-weight: 700;
  margin: 13px 0 5px;
}
input {
  display: block;
  width: 100%;
  color: var(--ink);
  background: #1d1821;
  border: 1px solid #66576b;
  border-radius: 6px;
  padding: 11px 12px;
  min-height: 44px;
}
input#code {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: var(--pixel);
}
.quick {
  font-size: 13px;
  color: var(--lav);
  border: 0;
  background: transparent;
  min-height: 36px;
  padding: 3px 0;
  text-decoration: underline;
}
.colors {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.color-option {
  flex: 1 1 36px;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 3px;
  background: #342c39;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.color-option img {
  width: 35px;
}
.color-option[aria-pressed="true"] {
  outline: 2px solid var(--orange);
}
dialog form > .primary {
  width: 100%;
  margin-top: 20px;
}
dialog .error {
  color: #ffb5a3;
  margin: 9px 0 0;
}
dialog ol {
  padding-left: 22px;
  color: #d6c9d3;
}
dialog li + li {
  margin-top: 12px;
}
dialog strong {
  color: var(--ink);
}
.recipe {
  background: #342b36;
  border: 1px dashed #756477;
  padding: 12px;
  font-weight: bold;
  color: #eaca9b;
  border-radius: 4px;
}
.steps {
  display: flex;
  gap: 5px;
  margin-top: 14px;
}
.steps i {
  width: 23px;
  height: 5px;
  background: #574958;
}
.steps i.filled {
  background: var(--green);
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: #fff3e1;
  background: #433247;
  border: 1px solid #8c7291;
  border-radius: 7px;
  padding: 11px 17px;
  z-index: 5;
  max-width: calc(100% - 24px);
  width: max-content;
  pointer-events: none;
}
#toast:empty {
  display: none;
}
.result-avatar {
  width: 81px;
}
.full {
  width: 100%;
}
@media (min-width: 1450px) {
  .hero {
    margin-top: 56px;
    margin-bottom: 42px;
  }
}
@media (max-width: 900px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .hero {
    gap: 22px;
    grid-template-columns: 0.85fr 1.15fr;
  }
  .hero h1 {
    font-size: 83px;
  }
  .hero-copy > p {
    font-size: 17px;
  }
  .scene > img {
    aspect-ratio: 1.4;
  }
  .menu-card {
    padding: 16px;
    gap: 12px;
  }
  .menu-card strong {
    font-size: 18px;
  }
  .tile {
    width: 46px;
    height: 49px;
  }
  .edition {
    font-size: 12px;
  }
  .spark {
    right: 5%;
  }
}
@media (max-width: 660px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .top-inner {
    height: 61px;
  }
  .brand {
    font-size: 19px;
    gap: 4px;
  }
  .brand img {
    width: 39px;
  }
  .sound {
    min-height: 40px;
    font-size: 13px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    margin: 25px 0;
  }
  .hero-copy > p {
    font-size: 16px;
    line-height: 1.45;
    max-width: 370px;
  }
  .hero h1 {
    font-size: clamp(44px, 10.5vw, 68px);
    line-height: 1;
    margin: 8px 0 11px;
    letter-spacing: -0.085em;
    text-shadow: 0 3px #67474a;
  }
  .hero h1 span {
    display: inline;
    text-shadow: 0 3px #834d38;
  }
  .edition {
    font-size: 12px;
  }
  .edition img {
    width: 18px;
  }
  .spark {
    display: none;
  }
  .metadata {
    margin-top: 13px;
    gap: 9px;
    font-size: 13px;
  }
  .scene {
    padding: 5px;
  }
  .scene > img {
    aspect-ratio: 1.9;
  }
  .scene-caption {
    font-size: 12px;
    padding: 8px 5px 3px;
  }
  .menu-grid {
    grid-template-columns: 1fr;
    gap: 11px;
    margin: 12px 0 15px;
  }
  .menu-card {
    padding: 15px;
    min-height: 78px;
  }
  .menu-card strong {
    font-size: 18px;
  }
  .menu-card small,
  .guide small {
    font-size: 14px;
  }
  .guide {
    gap: 10px;
    padding: 13px;
  }
  .guide strong {
    font-size: 15px;
  }
  .guide small {
    display: none;
  }
  .guide-icon {
    width: 35px;
    height: 35px;
  }
  .guide-icon img {
    width: 25px;
  }
  .guide button {
    padding: 7px 9px;
    min-height: 40px;
  }
  .foot {
    margin-top: 21px;
    padding: 15px 0 22px;
    font-size: 12px;
  }
  .foot > span:last-child {
    font-size: 10px;
  }
  .screen {
    margin-top: 22px;
  }
  .panel {
    padding: 16px;
  }
  .room-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .roster {
    grid-template-columns: 1fr;
  }
  .kitchen-card {
    grid-template-columns: 1fr;
  }
  .panel-head .mono {
    font-size: 11px;
  }
  dialog {
    padding: 24px;
  }
  .small-btn {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@font-face {
  font-family: Cartridge;
  src: url(/assets/title.ttf);
}
.hero h1 {
  font-family: Cartridge, var(--pixel);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(69px, 6.75vw, 97px);
  line-height: 0.99;
  letter-spacing: -0.065em;
  margin: 22px 0 17px;
}
#board {
  display: block;
  width: 100%;
  max-height: 360px;
  margin-top: 12px;
  border: 2px solid #594653;
  border-radius: 5px;
  image-rendering: pixelated;
  background: #553b41;
  cursor: crosshair;
  touch-action: manipulation;
}
.board-hint {
  color: #bfacbd;
  font-size: 13px;
  margin-top: 6px;
}
@media (max-width: 660px) {
  .hero h1 {
    font-size: clamp(29px, 8vw, 47px);
    margin: 13px 0 14px;
    letter-spacing: -0.075em;
  }
}
