@font-face {
  font-family: Display;
  src: url(fonts/bricolage-display.woff2) format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url(fonts/dm-sans.woff2) format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --ink: #302a26;
  --cream: #fff3d7;
  --gold: #ffcb53;
  --mint: #a7d7bc;
  --muted: #d2e5d7;
  --deep: #143e40;
  --pad: clamp(20px, 5vw, 84px);
  font:
    500 16px/1.4 DM,
    system-ui,
    sans-serif;
  color: var(--cream);
  background: var(--deep);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 4px solid #ef9438;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
button svg,
.studio img,
.meta svg {
  flex-shrink: 0;
}
.set {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 76% 40%, #367a72 0, transparent 54%),
    linear-gradient(112deg, #103a3f 4%, #195255 70%, #133e44);
}
.set:before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image: radial-gradient(#082e33 1px, transparent 1.5px);
  background-size: 6px 6px;
  mask-image: linear-gradient(115deg, #000, transparent 45%, #000);
}
.beam {
  position: absolute;
  top: 0;
  height: 100%;
  width: 28%;
  background: linear-gradient(to bottom, #bbffe218, transparent 75%);
  clip-path: polygon(57% 0, 62% 0, 100% 100%, 0 100%);
}
.beam.left {
  left: 10%;
  transform: skewX(24deg);
}
.beam.right {
  right: 1%;
  transform: skewX(-27deg);
}
.floor {
  position: absolute;
  inset: auto -10% 0;
  height: 18%;
  border-top: 2px solid #84c1a341;
  background:
    repeating-conic-gradient(from 45deg at 50% -160%, transparent 0deg 11deg, #82d7b820 11.15deg 11.3deg),
    repeating-linear-gradient(0deg, #1e5654 0 3%, #336760 3.3% 4%, #245857 4.2% 31%);
  transform-origin: bottom;
  background-color: #235858;
}
.topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 3.5vh, 32px) var(--pad) 0;
  gap: 16px;
  z-index: 1;
}
.studio,
.tool,
.button {
  border: 2px solid var(--ink);
  box-shadow: 2px 4px 0 var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-weight: 800;
}
.studio,
.tool {
  background: var(--cream);
  color: var(--ink);
}
.studio {
  border-radius: 9px;
  padding: 4px 12px 4px 8px;
  min-height: 43px;
  font:
    800 18px Display,
    system-ui;
  letter-spacing: -0.045em;
  transform: rotate(-2deg);
}
.studio img {
  width: 25px;
  height: 30px;
  object-fit: contain;
}
.tools {
  display: flex;
  gap: 10px;
}
.tool {
  width: 44px;
  height: 42px;
  padding: 0;
  border-radius: 10px;
}
.tool b {
  font: 800 25px Display;
}
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: middle;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
main {
  display: grid;
  align-items: center;
  flex: 1;
}
.home {
  width: min(100%, 1440px);
  margin: auto;
  position: relative;
  display: grid;
  grid-template-columns: 46% 54%;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 20px var(--pad) 32px;
}
.headline {
  align-self: end;
  position: relative;
  z-index: 1;
  padding: 0 0 0 2%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.display {
  font-family: Display, system-ui, sans-serif;
  font-weight: 800;
}
.headline h1 {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  transform: rotate(-7deg);
  font-size: clamp(100px, min(12.7vw, 21.3vh), 192px);
  letter-spacing: -0.087em;
  line-height: 0.75;
  color: var(--gold);
  -webkit-text-stroke: 0.045em var(--ink);
  paint-order: stroke fill;
  text-shadow:
    0.022em 0.035em var(--ink),
    0.04em 0.057em var(--ink),
    0.052em 0.082em #dd7144;
}
.headline h1 > span:last-child {
  color: var(--cream);
  margin: 0.02em 0 0 0.43em;
}
.bang {
  color: var(--gold);
}
.hero-art {
  width: 110%;
  height: auto;
  max-height: 68vh;
  min-height: 0;
  object-fit: contain;
  grid-area: 1/2/3/3;
  justify-self: center;
  pointer-events: none;
  user-select: none;
}
.entry {
  align-self: start;
  margin-top: clamp(24px, 4vh, 46px);
  padding-left: 2%;
  z-index: 1;
}
.entry p {
  max-width: 32ch;
  color: var(--cream);
  font-size: clamp(16px, 1.5vw, 23px);
  font-weight: 590;
  line-height: 1.36;
  text-wrap: pretty;
}
.actions,
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.entry .actions {
  margin-top: clamp(22px, 4vh, 38px);
  flex-wrap: nowrap;
}
.button {
  border-radius: 10px;
  padding: 11px 17px;
  min-height: 47px;
  line-height: 1.15;
  font-size: 16px;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.primary {
  background: var(--gold);
  color: var(--ink);
}
.paper {
  background: var(--cream);
  color: var(--ink);
}
.button.mint {
  background: var(--mint);
  color: var(--ink);
}
.button.red {
  background: #ff9b80;
  color: var(--ink);
}
.entry .button {
  font-size: clamp(16px, 1.45vw, 22px);
  padding: 14px clamp(13px, 1.4vw, 24px);
  min-height: 56px;
  white-space: nowrap;
}
.button:active:not(:disabled),
.tool:active,
.studio:active {
  transform: translate(2px, 3px);
  box-shadow: 0 1px var(--ink);
}
.button:disabled {
  background: #d4d6bf;
  color: #66685b;
  box-shadow: 1px 2px var(--ink);
}
@media (hover: hover) {
  .button:hover:not(:disabled),
  .tool:hover,
  .studio:hover {
    filter: brightness(1.06);
  }
}
footer {
  background: #123c3e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  border-top: 2px solid #0d3134;
  padding: 12px var(--pad);
  color: #dfebd9;
  font-size: 14px;
}
footer div,
footer span,
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
footer div {
  gap: 30px;
}
.text-button {
  border: 0;
  background: none;
  padding: 8px 0;
  font-weight: 750;
  color: inherit;
}
.text-button:hover {
  text-decoration: underline;
}
dialog {
  border: 3px solid var(--ink);
  border-radius: 17px;
  background: var(--cream);
  color: var(--ink);
  padding: 0;
  width: min(420px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  box-shadow: 5px 7px 0 #172e2e;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #092c30bb;
  backdrop-filter: blur(3px);
}
dialog[open] {
  animation: arrive 0.16s ease-out;
}
#sheet {
  padding: 27px 24px 26px;
}
h2 {
  font-size: clamp(29px, 3.8vw, 47px);
  line-height: 1.03;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
dialog h2 {
  padding-right: 36px;
  font-size: 32px;
}
dialog p {
  margin-top: 13px;
}
.close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 36px;
  height: 35px;
  border-radius: 9px;
  font-size: 25px;
  line-height: 1;
}
.form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
.field {
  display: grid;
  font-weight: 740;
  gap: 6px;
}
.field input:not([type='checkbox']),
.score-input {
  min-width: 0;
  width: 100%;
  border: 2px solid #706350;
  background: #fffaf0;
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 600;
  min-height: 45px;
}
.code-input {
  letter-spacing: 0.22em;
}
.field input::placeholder {
  color: #7d7669;
  opacity: 1;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check input {
  width: 21px;
  height: 21px;
  accent-color: #29665c;
  flex-shrink: 0;
}
.form .button {
  justify-self: stretch;
}
.secondary {
  font-size: 14px;
  color: #544f45;
}
.error {
  color: #8e301f;
  font-weight: 720;
}
.help-list {
  padding-left: 22px;
}
.help-list li {
  margin: 12px 0;
}
.help-list li::marker {
  font-weight: bold;
  color: #986027;
}
.qrbox {
  display: flex;
  justify-content: center;
  margin: 16px auto 0;
}
.qrbox svg {
  width: min(240px, 100%);
  height: auto;
  display: block;
  background: white;
  border-radius: 4px;
}
.share-url {
  display: block;
  margin: 10px 0;
  font-size: 14px;
  text-align: center;
  overflow-wrap: anywhere;
}
.camera {
  width: 100%;
  max-height: 255px;
  background: #163c3c;
  margin: 8px 0;
  border-radius: 10px;
}
#game {
  width: min(100%, 1050px);
  margin: auto;
  padding: 30px var(--pad) 40px;
}
.gamehead,
.gamefoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.gamehead {
  border-bottom: 1px solid #9dceae59;
  padding-bottom: 14px;
}
.gamehead .display {
  font-size: 26px;
  letter-spacing: -0.05em;
}
.link-button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 8px 2px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.board {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(190px, 0.8fr);
  gap: clamp(22px, 5vw, 68px);
  padding: clamp(24px, 5vh, 52px) 0;
}
.play {
  align-self: center;
  min-width: 0;
}
.play h2 {
  margin: 7px 0 12px;
  overflow-wrap: anywhere;
}
.play p {
  max-width: 42ch;
  color: var(--muted);
}
.eyeline {
  font-weight: 800;
  color: #ffda7b;
  font-size: 15px;
}
.player-list h3 {
  font-size: 22px;
  letter-spacing: -0.04em;
}
.player-list ul,
.player-list ol {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  max-height: 55vh;
  overflow: auto;
}
.person {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 45px;
  border-top: 1px solid #9dceae45;
}
.person .name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.avatar {
  border-radius: 50%;
  width: 34px;
  height: 34px;
  object-fit: cover;
  background: #f4c173;
  color: #433323;
  border: 2px solid #332d28;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}
.person .detail {
  display: block;
  font-size: 12px;
  color: #c1d7c7;
}
.person button {
  font-size: 20px;
  font-weight: 800;
  border: 1px solid #b1d7bd80;
  background: #275656;
  border-radius: 7px;
  min-width: 40px;
  min-height: 38px;
}
.number {
  font: 800 21px Display;
  color: #ffdc85;
}
.room-code {
  border: none;
  background: none;
  color: var(--gold);
  font: 800 clamp(42px, 6vw, 80px) / 1.05 Display;
  letter-spacing: 0.025em;
  padding: 0 2px;
  margin: 9px 0 2px;
  text-align: left;
}
.room-code .icon {
  font-size: 0.31em;
  margin-left: 0.33em;
}
.play .row {
  margin-top: 18px;
}
.gamefoot {
  border-top: 1px solid #9dceae59;
  padding-top: 10px;
}
.gamefoot .row {
  gap: 16px;
}
.round-buzz {
  position: relative;
  border: 4px solid #322c28;
  background: radial-gradient(
    ellipse at 42% 25%,
    #ff9670 0%,
    #ff7154 28%,
    #f64d38 67%,
    #b93931 68%,
    #c34231 85%
  );
  color: #fff1d6;
  border-radius: 50%;
  width: min(100%, 232px);
  height: clamp(105px, 19vh, 155px);
  box-shadow:
    0 8px #ffd56e,
    0 12px #3a312b,
    0 19px #4d776e,
    0 23px #292c28;
  display: grid;
  place-items: center;
  font: 800 45px Display;
  letter-spacing: -0.065em;
  text-shadow: 2px 3px #8d382a;
  transform: rotate(-3deg);
  margin: 17px auto 34px;
  transition: transform 0.09s;
}
.round-buzz:active {
  transform: translateY(5px) rotate(-3deg);
}
.round-buzz:disabled {
  filter: saturate(0.3);
  opacity: 0.8;
}
.center {
  text-align: center;
}
.center p {
  margin-inline: auto;
}
.center .row {
  justify-content: center;
}
.count {
  font: 800 clamp(76px, 13vw, 130px) / 1 Display;
  color: var(--gold);
  text-shadow: 3px 5px #312a26;
}
.gamefoot .text-button {
  min-height: 42px;
}
.portrait {
  width: 54px;
  height: 54px;
}
.settings-block {
  margin-top: 20px;
}
.confirmation {
  margin-top: 20px;
}
#toast,
#connection {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 24px);
  border-radius: 8px;
  padding: 10px 15px;
  color: #fff7df;
  background: #302c26;
  box-shadow: 0 2px 7px #0003;
  z-index: 5;
  text-align: center;
}
#toast {
  bottom: 20px;
  pointer-events: none;
}
#toast:empty {
  display: none;
}
#connection {
  top: 8px;
  background: #fff1cb;
  color: #493623;
  border: 2px solid #493623;
}
.status-inline {
  font-weight: 700;
  color: var(--gold);
  margin-top: 12px;
}
@keyframes arrive {
  from {
    opacity: 0.3;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 740px) {
  :root {
    --pad: clamp(16px, 5vw, 35px);
  }
  .entry .actions {
    gap: 9px;
  }
  .entry .button {
    padding: 12px 10px;
  }
  .home {
    grid-template-columns: 48% 52%;
  }
  .hero-art {
    width: 116%;
  }
  .board {
    gap: 22px;
  }
  .gamehead .display {
    font-size: 23px;
  }
  footer div {
    gap: 16px;
  }
}
@media (max-width: 580px) {
  .topbar {
    padding-top: max(15px, env(safe-area-inset-top));
  }
  .studio {
    font-size: 16px;
  }
  .home {
    grid-template-columns: 1fr 1.12fr;
    grid-template-rows: auto auto;
    padding: 20px var(--pad) 24px;
    row-gap: 5px;
  }
  .headline {
    align-self: center;
    padding: 0;
    transform: translateY(-8px);
  }
  .headline h1 {
    font-size: clamp(73px, 17.4vw, 105px);
  }
  .hero-art {
    grid-area: 1/2;
    width: 125%;
    max-height: 37svh;
    justify-self: end;
    transform: translateX(3%);
  }
  .entry {
    grid-column: 1/-1;
    margin: 0;
    padding: 0;
  }
  .entry p {
    max-width: 30ch;
    font-size: 18px;
  }
  .entry .actions {
    margin-top: 20px;
    gap: 10px;
  }
  .entry .button {
    font-size: 16px;
    padding: 13px 12px;
    min-height: 52px;
  }
  .floor {
    height: 22%;
  }
  footer {
    font-size: 13px;
    min-height: 65px;
    gap: 8px;
    padding-block: 8px max(9px, env(safe-area-inset-bottom));
  }
  footer div {
    display: grid;
    gap: 2px;
  }
  footer .text-button {
    gap: 5px;
  }
  .board {
    grid-template-columns: 1fr;
    padding: 20px 0;
    gap: 25px;
  }
  .player-list ul,
  .player-list ol {
    max-height: 34vh;
  }
  #game {
    padding: 21px var(--pad);
  }
  .gamehead {
    padding-bottom: 8px;
  }
  .gamefoot {
    gap: 0;
  }
  body.in-room .topbar {
    padding-top: 10px;
  }
  .gamefoot .row {
    gap: 12px;
  }
  .play h2 {
    font-size: 32px;
  }
}
@media (max-width: 355px) {
  .entry .button {
    font-size: 15px;
    padding-inline: 9px;
  }
  .entry .actions {
    gap: 8px;
  }
  .tools {
    gap: 6px;
  }
  .entry p {
    font-size: 16px;
  }
  footer {
    font-size: 12px;
  }
}
@media (max-height: 540px) and (min-width: 581px) {
  .topbar {
    padding-top: 10px;
  }
  .home {
    padding-block: 12px;
  }
  .headline h1 {
    font-size: clamp(66px, 19vh, 96px);
  }
  .entry {
    margin-top: 17px;
  }
  .entry p {
    font-size: 15px;
  }
  .entry .actions {
    margin-top: 12px;
  }
  .entry .button {
    min-height: 42px;
    padding-block: 9px;
  }
  .hero-art {
    max-height: 62vh;
  }
  .topbar .tool {
    height: 37px;
  }
  .topbar .studio {
    min-height: 35px;
  }
  footer {
    min-height: 45px;
    padding-block: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.status-inline {
  display: block;
  font-size: 13px;
}
.avatar[src='art/studio.webp'] {
  object-fit: contain;
  padding: 2px;
  background: #fbe6aa;
}
.form .avatar {
  width: 56px;
  height: 56px;
}
.room-code:focus-visible,
.text-button:focus-visible {
  outline-offset: 2px;
}
.in-room .floor {
  height: 10%;
}
.in-room .play:before {
  content: '';
  display: block;
  width: 68px;
  height: 60px;
  margin-bottom: 8px;
  background: url(art/on-air.svg) center/cover no-repeat;
}
.in-room .center:before {
  margin-inline: auto;
}
.headline h1 {
  letter-spacing: -0.062em;
}
.headline h1 > span:last-child {
  margin-top: 0.07em;
}
.round-buzz {
  width: min(90%, 275px);
  height: auto;
  aspect-ratio: 280/170;
  background: transparent url(art/press.svg) center/contain no-repeat;
  border: 0;
  box-shadow: none;
  margin: 13px auto 16px;
  transform: rotate(-3deg);
  text-shadow: 1px 2px #9b3a26;
  letter-spacing: -0.025em;
  padding: 0 0 12%;
}
.round-buzz:active {
  filter: brightness(0.94);
  transform: translateY(5px) rotate(-3deg) scale(0.98);
}
.player-list {
  align-self: start;
  background: #123b3d;
  border: 2px solid #102f31;
  border-radius: 13px 13px 8px 8px;
  box-shadow: 2px 4px 0 #102f31;
  padding: 0 16px 7px;
  min-width: 0;
}
.player-list h3 {
  color: var(--ink);
  background: var(--mint);
  margin: 0 -16px;
  padding: 10px 16px;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
}
.player-list h3:before {
  content: '';
  width: 8px;
  height: 8px;
  display: inline-block;
  flex: none;
  border: 1px solid #684b37;
  background: #ffd25f;
  border-radius: 50%;
}
.person:first-child {
  border-top: 0;
}
@media (max-width: 580px) and (min-height: 620px) {
  .home {
    grid-template-columns: 1fr;
    grid-template-rows: clamp(255px, 42svh, 360px) auto;
    padding-top: 8px;
    row-gap: 13px;
  }
  .headline {
    grid-area: 1/1;
    align-self: start;
    justify-self: start;
    transform: rotate(-1deg);
    margin-top: clamp(9px, 2vh, 20px);
  }
  .headline h1 {
    font-size: clamp(78px, 21.8vw, 119px);
  }
  .hero-art {
    grid-area: 1/1;
    align-self: end;
    justify-self: end;
    width: 78vw;
    max-width: 390px;
    max-height: 36svh;
    transform: translate(6%, 3%);
  }
}
.sr-only {
  position: absolute;
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}
