@font-face {
  font-family: Schibsted;
  src: url("./fonts/SchibstedGrotesk.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f5f4f0;
  --surface: #fdfcf9;
  --ink: #30332f;
  --muted: #71736c;
  --line: #deded5;
  --accent: #526b58;
  --lavender: #e2dcf0;
  --orange: #f3dec1;
  --green: #dce5d5;
  --pink: #f0dce3;
  font-family:
    Schibsted,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(32px, 4vw, 46px);
}
h2 {
  font-size: 23px;
}
h3 {
  font-size: 18px;
}
p {
  margin-bottom: 16px;
}
small {
  font-size: 12px;
  color: var(--muted);
}
strong,
b {
  font-weight: 600;
}
:focus-visible {
  outline: 2px solid #466e9c;
  outline-offset: 5px;
}
::selection {
  background: #dfd3f1;
  color: #30332f;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -80px;
  z-index: 20;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
}
.skip-link:focus {
  top: 12px;
}
.header {
  height: 80px;
  max-width: 1136px;
  padding: 0 32px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 46px;
}
.brand {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1;
}
.brand-dot {
  color: #849c79;
}
.header nav {
  display: flex;
  align-items: center;
  gap: 25px;
}
.nav-item {
  position: relative;
  font-size: 13px;
  color: var(--muted);
  padding: 12px 0;
}
.nav-item:hover,
.text-btn:hover {
  color: var(--ink);
}
.nav-item.active {
  color: var(--ink);
}
.nav-item.active::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink);
  left: calc(50% - 2px);
  bottom: 2px;
}
.header .join-button {
  margin-left: auto;
  min-height: 38px;
  font-size: 12px;
  padding: 8px 13px;
}
main {
  max-width: 1136px;
  margin: auto;
  padding: 40px 32px 80px;
}
main:focus {
  outline: none;
}
.arcade-main {
  padding-top: 28px;
  padding-bottom: 40px;
}
.launcher {
  width: 100%;
  max-width: 920px;
  margin: auto;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--muted);
}

.library {
  background: #eaeae4;
  border: 1px solid #d8d9cf;
  border-radius: 14px;
  box-shadow:
    0 2px 2px #3c423309,
    0 15px 35px -24px #333b385c,
    inset 0 1px 0 #fff;
  overflow: hidden;
}

.game-shelf {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  padding: 30px 31px 8px;
  margin: 0;
  border: 0;
  min-width: 0;
}
.cartridge {
  --wash: #ded6ee;
  --wash-strong: #c4b0df;
  display: block;
  position: relative;
  cursor: pointer;
  margin: 0;
  min-width: 0;
}
.cartridge.orange {
  --wash: #efdfc7;
  --wash-strong: #efbb8e;
}
.cartridge.green {
  --wash: #dbe4d3;
  --wash-strong: #b0c5a4;
}
.cartridge.pink {
  --wash: #ebd6de;
  --wash-strong: #dfacc1;
}
.cartridge-body {
  display: block;
  padding: 8px 8px 0;
  border: 1px solid #c6c9bd;
  border-radius: 8px 8px 5px 5px;
  background: linear-gradient(110deg, #fafbf6, #e4e6de);
  box-shadow:
    0 3px 0 #ccd0c2,
    0 5px 7px #404d3520,
    inset 0 0 0 1px #ffffffe0;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.cartridge-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  min-height: 155px;
  border: 1px solid #5453440c;
  border-radius: 3px;
  overflow: hidden;
  padding: 14px 8px 19px;
  background:
    radial-gradient(ellipse at 14% 18%, #fff8, transparent 64%),
    radial-gradient(ellipse at 70% 78%, var(--wash-strong), transparent 75%),
    var(--wash);
  box-shadow: inset 0 0 12px #ffffff4d;
}
.cartridge-number {
  align-self: flex-start;
  padding-left: 3px;
  font:
    10px/1.2 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #454941bb;
}
.game-art {
  display: block;
  width: 160px;
  max-width: 100%;
  height: 84px;
  color: #36372f;
}
.cartridge-label .game-art {
  margin: 1px auto 6px;
  filter: saturate(0.72);
}
.cartridge-label strong {
  font-size: clamp(12px, 1.5vw, 16px);
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.cartridge-grip {
  display: block;
  width: 52%;
  height: 23px;
  margin: 0 auto;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    #89917f22 3px,
    #89917f22 4px
  );
  background-size: 100% 12px;
  background-repeat: no-repeat;
  background-position: center;
}
.selection-mark {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin: 14px auto 4px;
  background: transparent;
}
.cartridge:hover .cartridge-body {
  transform: translateY(-4px);
  box-shadow:
    0 3px 0 #ccd0c2,
    0 9px 12px #404d3520,
    inset 0 0 0 1px #fff;
}
.cartridge:has(:checked) .cartridge-body {
  transform: translateY(-7px);
  box-shadow:
    0 3px 0 #ccd0c2,
    0 11px 14px #404d3520,
    0 0 0 3px #eaeae4,
    0 0 0 4px #606f60;
}
.cartridge:has(:checked) .selection-mark {
  background: #526b58;
}
.cartridge:has(:focus-visible) .cartridge-body {
  outline: 3px solid #466e9c;
  outline-offset: 6px;
}
.game-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 31px;
  background: #fdfcf9;
  border-top: 1px solid #d8d9cf;
  min-height: 132px;
}
.game-type {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
}
.game-preview h2 {
  font-size: 23px;
  margin: 0 0 8px;
}
.game-description {
  color: #71736c;
  font-size: 13px;
  margin: 0;
}
.launch-actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}
.launch-button {
  flex-shrink: 0;
  min-width: 154px;
}
.launcher-footnote {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 18px 0 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.launcher-footnote .text-btn {
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0 2px;
}
.btn {
  min-height: 44px;
  padding: 11px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.btn.primary,
.btn.dark {
  background: var(--ink);
  color: #fffefa;
  box-shadow: 0 1px 1px #0001;
}
.btn.primary:hover:not(:disabled),
.btn.dark:hover:not(:disabled) {
  background: #4b5348;
}
.btn.secondary {
  border-color: #d3d6cc;
  background: #ffffff38;
}
.btn.secondary:hover:not(:disabled) {
  background: #e9ece4;
}
.btn.full {
  width: 100%;
}
.text-btn {
  color: var(--muted);
  padding: 8px 0;
  font-size: 12px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.page-heading p:not(.eyebrow) {
  margin: 12px 0 0;
  color: var(--muted);
}
.page-heading h1 {
  font-size: 36px;
}
.empty {
  max-width: 480px;
  margin: 80px auto;
  text-align: center;
}
.empty h1 {
  margin-bottom: 18px;
}
.empty p {
  color: var(--muted);
  margin-bottom: 24px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  margin-bottom: 20px;
}
.panel h2,
.panel h3 {
  margin-bottom: 18px;
}
.panel > p {
  color: var(--muted);
}
.team-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 26px;
}
.team-layout aside {
  min-width: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-heading h2 {
  margin-bottom: 0;
  font-size: 20px;
}
.count {
  color: var(--muted);
  font:
    12px/1 ui-monospace,
    monospace;
  margin-left: 8px;
}
.roster,
.score-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.roster li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.roster strong {
  overflow-wrap: anywhere;
}
.roster .text-btn {
  margin-left: auto;
}
.avatar {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 500;
  background: #e9e9e1;
  color: #626858;
}
.inline-form {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.inline-form input {
  min-width: 0;
  flex: 1;
}
.inline-form button {
  flex-shrink: 0;
}
.organiser p {
  font-size: 13px;
}
.session-list > div {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.session-list .btn,
.session-list > div > span:last-child {
  margin-left: auto;
}
.session-list small {
  display: block;
}
.history-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.purple {
  background-color: var(--lavender);
}
.orange {
  background-color: var(--orange);
}
.green {
  background-color: var(--green);
}
.pink {
  background-color: var(--pink);
}
.cartridge {
  background: none;
}
input,
textarea,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cfd2c7;
  border-radius: 6px;
  background: #fffefa;
  font-size: 14px;
}
input::placeholder,
textarea::placeholder {
  color: #92948b;
}
textarea {
  resize: vertical;
}
form > label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 20px 0 7px;
}
form > small {
  display: block;
  margin: 12px 0 0;
  line-height: 1.5;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 22px 0;
  min-width: 0;
}
legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}
legend .muted {
  font-weight: 400;
  margin-left: 8px;
}
input[type="checkbox"],
input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
input.sr-only {
  width: 1px;
  height: 1px;
}
dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100svh - 40px);
  padding: 34px;
  border: 1px solid #d6d9cf;
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 30px 100px #16211c30;
  color: var(--ink);
}
dialog::backdrop {
  background: #2c332e4a;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 27px;
  margin: 4px 28px 14px 0;
}
dialog > p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
}
.close-dialog {
  position: absolute;
  top: 13px;
  right: 13px;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
}
.close-dialog:hover {
  background: #eaece5;
}
.form-error {
  font-size: 12px;
  color: #a03830;
  margin: 12px 0;
}
.form-error:empty {
  margin: 10px 0;
}
#room-code {
  font:
    22px/1.5 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
#join-form .btn {
  margin-top: 6px;
}
.duration-options,
.prediction-options {
  display: flex;
  gap: 8px;
}
.duration-options label,
.prediction-options label {
  flex: 1;
  position: relative;
  cursor: pointer;
}
.duration-options input,
.prediction-options input,
.vote-options input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.duration-options span,
.prediction-options span,
.vote-options span {
  display: block;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: background 0.15s;
}
.duration-options span {
  font-size: 22px;
  line-height: 1.3;
}
.duration-options small {
  display: block;
  font-size: 10px;
}
.duration-options :checked + span,
.prediction-options :checked + span,
.vote-options :checked + span {
  background: #e6eadf;
  border-color: #7a8d6f;
}
.duration-options :focus-visible + span,
.prediction-options :focus-visible + span,
.vote-options :focus-visible + span {
  outline: 2px solid #466e9c;
  outline-offset: 3px;
}
.attendance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 200px;
  overflow: auto;
}
.attendance label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.attendance span {
  overflow-wrap: anywhere;
}
.board-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.segmented {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f0f1ea;
}
.segmented button {
  padding: 8px 13px;
  font-size: 12px;
  border-radius: 4px;
  color: var(--muted);
}
.segmented button.selected {
  color: var(--ink);
  background: #fffefa;
  box-shadow: 0 1px 3px #0001;
}
.board-controls > label {
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.board-controls select {
  font-size: 12px;
  width: auto;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 13px;
}
th {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  text-align: left;
  padding: 12px;
}
td {
  border-top: 1px solid var(--line);
  padding: 15px 12px;
}
td .avatar {
  margin-right: 10px;
}
td.points {
  font-weight: 600;
}
.rank {
  font:
    12px ui-monospace,
    monospace;
}
.board-note {
  margin: 20px 0 0;
  font-size: 11px;
}
.empty-small {
  text-align: center;
  padding: 40px 12px;
}
.empty-small h2 {
  margin-bottom: 12px;
}
.empty-small p {
  color: var(--muted);
  font-size: 13px;
}
.room-main {
  padding-top: 15px;
}
.room-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 35px;
  font-size: 12px;
}
.room-toolbar > span:nth-child(2) {
  overflow-wrap: anywhere;
}
.connection {
  margin-left: auto;
  font-size: 10px;
  color: #886628;
  white-space: nowrap;
}
.connection::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 6px;
  background: currentColor;
  vertical-align: 1px;
}
.connection.online {
  color: #58764c;
}
.lobby-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}
.lobby-layout h1 {
  font-size: 38px;
  margin-bottom: 24px;
}
.rules-note {
  text-align: left;
  font-size: 13px;
  margin: 16px 0 28px;
  color: var(--muted);
}
.rules-note summary {
  font-size: 12px;
  cursor: pointer;
  color: var(--ink);
  width: fit-content;
  padding: 7px 0;
}
.rules-note p {
  margin: 7px 0 0;
  line-height: 1.7;
}
.lobby-players {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 25px;
}
.player-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
}
.player-chip > span:nth-child(2) {
  min-width: 0;
}
.player-chip strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.player-chip small {
  display: block;
  font-size: 10px;
}
.player-chip .text-btn {
  margin-left: auto;
  padding: 0 4px;
  font-size: 20px;
}
.player-chip.joined {
  background: #edf0e7;
  border-color: #c4cdb9;
}
.lobby-layout .btn + .muted {
  margin-top: 14px;
}
.qr-card {
  text-align: center;
  padding: 25px 22px;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.qr-card canvas {
  display: block;
  max-width: 100%;
  height: auto !important;
  margin: auto auto 15px;
}
.qr-card p:not(.eyebrow) {
  font-size: 11px;
  color: var(--muted);
}
.qr-card strong:not(.room-code) {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.room-code {
  display: block;
  font:
    32px/1.3 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 0.14em;
  margin: 14px 0 22px;
}
.join-screen {
  max-width: 760px;
  margin: 25px auto;
}
.join-screen h1 {
  font-size: 34px;
  margin-bottom: 12px;
}
.join-screen > p:not(.eyebrow) {
  color: var(--muted);
}
.name-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 18px;
}
.name-choice {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.name-choice strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.name-choice small {
  margin-left: auto;
  font-size: 10px;
  white-space: nowrap;
}
.name-choice:hover:not(:disabled) {
  background: #e9ede3;
}
.controller {
  max-width: 480px;
  margin: 30px auto;
  text-align: center;
}
.controller h1 {
  font-size: 32px;
  margin-bottom: 15px;
}
.controller p {
  color: var(--muted);
}
.waiting-art {
  display: inline-flex;
  border-radius: 14px;
  margin-bottom: 24px;
  padding: 12px;
}
.finish {
  max-width: 620px;
  margin: 35px auto;
  text-align: center;
}
.finish h1 {
  font-size: 40px;
  margin: 20px 0;
}
.finish > p {
  color: var(--muted);
}
.finish-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}
.save-state {
  font-size: 12px;
  margin-top: 22px;
}
.score-list {
  text-align: left;
}
.score-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.score-list .place {
  color: var(--muted);
  font:
    11px ui-monospace,
    monospace;
  min-width: 12px;
}
.score-list strong {
  overflow-wrap: anywhere;
}
.score-list strong small {
  font-size: 10px;
}
.score-list b {
  margin-left: auto;
  font-size: 18px;
  white-space: nowrap;
}
.score-list b small {
  font-size: 9px;
  margin-left: 4px;
  font-weight: 400;
}
.score-list .you strong {
  color: var(--accent);
}
.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 45px;
  align-items: start;
}
.live-layout.phone {
  display: block;
  max-width: 580px;
  margin: auto;
}
.round-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.round-heading .eyebrow {
  margin: 0;
}
.timer {
  font:
    24px/1 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  white-space: nowrap;
}
.timer.urgent {
  color: #a84f35;
}
progress {
  width: 100%;
  height: 3px;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #e0e3d9;
  display: block;
  margin-bottom: 32px;
}
progress::-webkit-progress-bar {
  background: #e0e3d9;
}
progress::-webkit-progress-value {
  background: #8a9a7d;
}
progress::-moz-progress-bar {
  background: #8a9a7d;
}
h1.question {
  font-size: clamp(27px, 3.7vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
}
.clues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 25px;
}
.clues > div {
  background: #eae5f0;
  border-radius: 7px;
  padding: 18px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.clues small {
  font:
    10px ui-monospace,
    monospace;
  color: #7b7286;
}
.clues strong {
  overflow-wrap: anywhere;
}
.question-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}
.question-options > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f9f8f2;
}
.question-options b {
  font-size: 11px;
  background: #e6e4d8;
  padding: 5px 9px;
  border-radius: 4px;
}
.answer-status {
  padding: 20px 0;
}
.answer-status > strong {
  font-size: 35px;
  font-weight: 500;
}
.answer-status > strong span {
  color: #a0a596;
  font-size: 24px;
}
.answer-status p {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0 16px;
}
.answer-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}
.answer-avatars .avatar {
  background: #eeece6;
  color: #8c9083;
}
.answer-avatars .done {
  background: #d8e3ce;
  color: #486442;
}
.live-score {
  padding: 22px;
}
.live-score h2 {
  font-size: 19px;
}
.live-score .avatar {
  display: none;
}
.live-score > small {
  display: block;
  margin-top: 20px;
  font:
    10px ui-monospace,
    monospace;
}
.live-score .score-list b {
  font-size: 16px;
}
.round-content > .btn + p {
  margin-top: 12px;
}
.locked {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid #cad6bf;
  background: #e8eee1;
  border-radius: 10px;
}
.locked > span {
  display: block;
  font-size: 32px;
  color: #67865b;
  margin-bottom: 12px;
}
.locked h2 {
  margin-bottom: 12px;
}
.locked p {
  color: var(--muted);
  font-size: 13px;
}
.locked small {
  overflow-wrap: anywhere;
}
.vote-options {
  display: grid;
  gap: 8px;
}
.vote-options label {
  position: relative;
  cursor: pointer;
}
.vote-options span {
  text-align: left;
}
.vote-options b {
  display: inline-block;
  margin-right: 10px;
}
#answer-form > input {
  font-size: 18px;
  padding: 15px;
}
.reveal {
  margin: 30px 0;
}
.reveal h2 {
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 20px;
}
.reveal-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.reveal-row strong {
  font-size: 12px;
}
.reveal-row p {
  margin: 3px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.reveal-row b {
  font:
    18px ui-monospace,
    monospace;
  color: #8e9387;
  align-self: center;
}
.reveal-row.scored b {
  color: #527746;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 80svh;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 15px);
  max-width: min(540px, calc(100vw - 32px));
  background: #303b30;
  color: #fff;
  font-size: 13px;
  padding: 13px 20px;
  border-radius: 8px;
  box-shadow: 0 6px 20px #0002;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 50;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (max-width: 850px) {
  .game-shelf {
    gap: 18px;
    padding: 30px 24px 10px;
  }
  .cartridge-label {
    min-height: 160px;
    padding: 12px 5px 16px;
  }
  .cartridge-label .game-art {
    height: 90px;
  }
  .game-preview {
    padding: 22px 24px;
  }
  .lobby-layout {
    grid-template-columns: 1fr 260px;
    gap: 28px;
  }
  .live-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 25px;
  }
  .name-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .board-controls {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 620px) {
  .header {
    height: 78px;
    padding: 0 20px;
    gap: 20px;
    flex-wrap: wrap;
    align-content: center;
    row-gap: 10px;
  }
  .brand {
    font-size: 25px;
  }
  .header nav {
    gap: 17px;
    margin-left: auto;
  }
  .nav-item {
    font-size: 12px;
  }
  .header .join-button {
    display: none;
  }
  main {
    padding: 28px 20px 40px;
  }
  .arcade-main {
    padding: 18px 20px 28px;
  }

  .library {
    border-radius: 11px;
  }

  .game-shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 22px;
    padding: 24px 24px 8px;
  }
  .cartridge-label {
    min-height: 104px;
    padding: 10px 6px 12px;
  }
  .cartridge-label .game-art {
    height: 54px;
    margin: 0 auto 4px;
  }
  .cartridge-label strong {
    font-size: 12px;
  }
  .cartridge-number {
    font-size: 8px;
  }
  .cartridge-body {
    padding: 6px 6px 0;
  }
  .cartridge-grip {
    height: 14px;
    background-size: 100% 8px;
  }
  .selection-mark {
    margin-top: 11px;
    margin-bottom: 5px;
  }
  .cartridge:has(:checked) .cartridge-body {
    transform: translateY(-4px);
  }
  .game-preview {
    display: block;
    padding: 20px;
    min-height: 177px;
  }
  .game-type {
    font-size: 9px;
    margin-bottom: 5px;
  }
  .game-preview h2 {
    font-size: 21px;
    margin-bottom: 6px;
  }
  .game-description {
    font-size: 12px;
    min-height: 38px;
  }
  .launch-actions .btn {
    padding: 11px 12px;
    gap: 10px;
    font-size: 12px;
    white-space: nowrap;
  }
  .launch-actions {
    margin-top: 12px;
  }
  .launch-button {
    flex: 1;
    min-width: 0;
    gap: 16px;
  }
  .launcher-footnote {
    margin-top: 18px;
    font-size: 10px;
  }
  .mobile-join {
    display: flex;
    gap: 10px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 25px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .page-heading .btn {
    font-size: 11px;
    padding: 9px 12px;
    white-space: nowrap;
  }
  .team-layout,
  .lobby-layout,
  .live-layout {
    display: block;
  }
  .panel {
    padding: 20px;
  }
  .empty {
    margin: 60px auto;
  }
  .session-list > div {
    gap: 10px;
  }
  .session-list .btn {
    font-size: 10px;
    padding: 9px;
    gap: 5px;
  }
  .history-icon {
    width: 28px;
    height: 28px;
  }
  .session-list strong {
    font-size: 12px;
  }
  .session-list small {
    font-size: 10px;
  }
  dialog {
    padding: 28px 24px;
  }
  .room-toolbar {
    font-size: 11px;
    gap: 10px;
    margin-bottom: 25px;
  }
  .room-toolbar .text-btn {
    white-space: nowrap;
    font-size: 11px;
  }
  .connection {
    font-size: 9px;
  }
  .lobby-layout h1 {
    font-size: 32px;
  }
  .qr-card {
    margin: 28px auto 0;
    max-width: 340px;
  }
  .lobby-players {
    gap: 8px;
  }
  .player-chip {
    padding: 10px;
    gap: 8px;
  }
  .player-chip .avatar {
    width: 28px;
    height: 28px;
    font-size: 9px;
  }
  .name-grid {
    gap: 8px;
  }
  .name-choice {
    padding: 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .name-choice small {
    width: 100%;
    margin-left: 41px;
  }
  .name-choice strong {
    font-size: 12px;
  }
  .join-screen h1 {
    font-size: 28px;
  }
  .live-score {
    margin-top: 35px;
  }
  .finish h1 {
    font-size: 32px;
  }
  .question-options > div {
    padding: 13px;
    font-size: 12px;
  }
  .clues > div {
    padding: 14px;
    font-size: 13px;
    gap: 10px;
  }
  td .avatar {
    display: none;
  }
  td,
  th {
    padding: 12px 8px;
  }
  th {
    font-size: 10px;
  }
  td {
    font-size: 12px;
  }
  .board-controls {
    gap: 14px;
  }
  .segmented button {
    padding: 8px 11px;
  }
  .board-controls > label {
    font-size: 11px;
  }
  .inline-form .btn {
    padding: 10px 12px;
    font-size: 11px;
  }
}
@media (min-width: 621px) {
  .mobile-join {
    display: none;
  }
}
@media (max-width: 359px) {
  .header,
  main,
  .arcade-main {
    padding-left: 14px;
    padding-right: 14px;
  }
  .header {
    gap: 14px;
  }
  .header nav {
    gap: 13px;
  }

  .game-shelf {
    padding-left: 19px;
    padding-right: 19px;
    gap: 8px 18px;
  }
  .cartridge-label strong {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
