:root {
  color-scheme: dark;
  --bg: #14120f;
  --panel: #1e1b17;
  --panel-2: #262119;
  --line: #3a332a;
  --ink: #ece5d8;
  --dim: #aa9f8c;
  --accent: #c8a04a;
  --red: #b83935;
  --yellow: #d9ab34;
  --green: #397a58;
  --blue: #2e6aa4;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
button, input, select {
  font: inherit;
  color: inherit;
}
button, .button-link {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 16px;
  background: var(--panel-2);
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
button:hover:not(:disabled), .button-link:hover {
  border-color: var(--accent);
}
button:disabled {
  cursor: default;
  opacity: 0.42;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1611;
  font-weight: 700;
}
button.quiet {
  background: transparent;
  font-size: 0.875rem;
  padding: 7px 12px;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
input, select {
  background: #171410;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  min-width: 0;
}
input:focus, select:focus {
  border-color: var(--accent);
  outline: none;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
label {
  display: block;
  font-size: 0.875rem;
  margin: 0 0 7px;
}
h1, h2, h3, p {
  margin-top: 0;
}
h1 {
  font-family: Georgia, serif;
  font-weight: 400;
}
small, .muted {
  color: var(--dim);
}
.bar {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 15px 30px;
  border-bottom: 1px solid var(--line);
  background: #191612;
  min-height: 76px;
}
.brand {
  color: var(--ink);
  font-size: 1.6rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
}
.brand-small {
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.2em;
  color: var(--dim);
  font-weight: 500;
}
.spacer {
  flex: 1;
}
.eyebrow, .section-label {
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.section-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--dim);
}
.section-label span {
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #8b8173;
}
.loading {
  padding: 50px;
  text-align: center;
}
#notice {
  border-bottom: 1px solid #765e34;
  background: #30281b;
  padding: 12px 30px;
  overflow-wrap: anywhere;
  font-size: 0.875rem;
}
.lobby {
  max-width: 1050px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  padding: 75px 32px 30px;
}
.lobby-title {
  padding-top: 35px;
}
.lobby-title h1 {
  font-size: clamp(2.8rem, 5vw, 4.3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 18px 0;
}
.lobby-title > p {
  color: var(--dim);
  font-size: 1.125rem;
}
.lobby-panel {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.lobby-panel input:not([type="radio"]) {
  width: 100%;
}
.mode-select {
  border: 0;
  padding: 0;
  margin: 22px 0 0;
}
.mode-select legend {
  font-size: 0.875rem;
  margin-bottom: 10px;
}
.mode-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 9px;
  cursor: pointer;
}
.mode-option:has(input:checked) {
  border-color: var(--accent);
  background: #2b2418;
}
.mode-option input {
  accent-color: var(--accent);
  margin: 5px 0 0;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.mode-option strong {
  display: block;
  font-size: 1rem;
}
.mode-option small {
  font-size: 0.875rem;
  display: block;
  margin-top: 3px;
}
.mode-option i {
  font-size: 0.65rem;
  font-style: normal;
  border: 1px solid #75603a;
  color: var(--accent);
  padding: 2px 5px;
  vertical-align: middle;
  margin-left: 8px;
  letter-spacing: 0.1em;
}
.mode-note {
  font-size: 0.75rem;
  color: var(--dim);
  margin: 16px 0;
}
.full {
  width: 100%;
}
.join-divider {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--dim);
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin: 25px 0 15px;
}
.join-row {
  display: flex;
  gap: 8px;
}
.join-row button {
  white-space: nowrap;
  padding: 10px 12px;
}
.join-row input {
  text-transform: uppercase;
  font-family: ui-monospace, monospace;
}
.join-row input::placeholder {
  text-transform: none;
  font-family: system-ui;
  font-size: 0.875rem;
}
.lobby-footer {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding: 25px 0;
  color: var(--dim);
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.lobby-footer a {
  color: var(--dim);
}
.lobby-cards {
  position: relative;
  height: 245px;
  margin: 45px 0 0 10px;
  width: 320px;
}
.lobby-cards .card {
  position: absolute;
  left: 10px;
  top: 15px;
  transform: rotate(-14deg);
  width: 128px;
  height: 190px;
  box-shadow: 0 12px 30px #0007;
}
.lobby-cards .card:nth-child(2) {
  left: 97px;
  top: 2px;
  transform: rotate(4deg);
}
.lobby-cards .card:nth-child(3) {
  left: 187px;
  top: 19px;
  transform: rotate(20deg);
}
#table-meta {
  display: flex;
  align-items: center;
  gap: 22px;
}
.mode-badge {
  font-size: 0.7rem;
  color: var(--dim);
  letter-spacing: 0.1em;
}
.code-button {
  background: transparent;
  border: 0;
  padding: 0;
  text-align: left;
  color: var(--accent);
  font: 1rem ui-monospace, monospace;
  letter-spacing: 0.08em;
}
.code-button span {
  display: block;
  color: var(--dim);
  font: 0.7rem system-ui;
  letter-spacing: 0;
  margin-top: 3px;
}
#connection {
  font-size: 0.75rem;
  color: var(--dim);
}
.online:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #7d9b67;
  border-radius: 50%;
  margin-right: 7px;
}
.offline {
  color: #e3ad6b !important;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  min-height: calc(100vh - 76px);
}
.table-column {
  padding: 25px 30px 30px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.seats {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.seat {
  display: flex;
  align-items: center;
  position: relative;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  min-width: 165px;
  flex: 1;
  max-width: 260px;
}
.seat.active {
  border-color: var(--accent);
  background: #272116;
}
.seat strong {
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.seat strong small {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--accent);
  margin-left: 3px;
}
.seat-avatar {
  flex-shrink: 0;
  width: 33px;
  height: 33px;
  background: #332d24;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--dim);
  font-family: Georgia, serif;
  font-size: 1.1rem;
}
.seat.active .seat-avatar {
  background: var(--accent);
  color: var(--bg);
}
.seat-stat {
  font-size: 0.75rem;
  color: var(--dim);
}
.host-badge {
  position: absolute;
  right: 7px;
  top: 3px;
  font-size: 0.55rem;
  color: #8f826e;
  letter-spacing: 0.1em;
}
.uno-badge {
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 800;
  margin-left: auto;
}
.table-center {
  flex: 1;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: radial-gradient(ellipse at center, #24231b 0%, #1a1915 72%);
  position: relative;
}
.waiting {
  padding: 55px 20px;
  text-align: center;
}
.waiting h1 {
  font-size: 2.6rem;
  margin: 12px 0;
}
.waiting p {
  color: var(--dim);
  font-size: 0.875rem;
}
.invite-box {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  margin: 26px 0 12px;
}
.invite-box > span {
  font: 1.6rem ui-monospace, monospace;
  letter-spacing: 0.15em;
  color: var(--accent);
}
.invite-box button {
  font-size: 0.875rem;
}
.join-seat {
  max-width: 300px;
  margin: 22px auto 0;
  text-align: left;
}
.join-seat input, .join-seat button {
  width: 100%;
  margin-bottom: 12px;
}
.table-caption {
  display: flex;
  justify-content: space-between;
  padding: 17px 22px;
  color: #9d9382;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}
.play-surface {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 15px 20px 28px;
  min-height: 390px;
}
.piles {
  display: flex;
  gap: 45px;
  justify-content: center;
  align-items: flex-start;
}
.pile {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 15px;
}
.pile > span {
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--dim);
}
.pile > .back {
  transform: rotate(-7deg);
  box-shadow: 4px 4px 0 #514438, 7px 7px 0 #2d2821, 10px 10px 0 #514438;
}
.discard > .card, .discard .face-down > .card {
  transform: rotate(6deg);
  box-shadow: 0 9px 23px #0004;
}
.active-color {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 21px 0 12px;
  color: var(--dim);
  font-weight: 650;
}
.active-color.red span {
  color: #f16c63;
}
.active-color.yellow span {
  color: #edc75e;
}
.active-color.blue span {
  color: #76afe3;
}
.active-color.green span {
  color: #83b894;
}
.active-color span {
  font-size: 1rem;
}
.turn-status {
  font-size: 1.125rem;
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.turn-status.mine {
  color: var(--accent);
}
.button-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.button-row .muted {
  font-size: 0.8rem;
}
.pending-box {
  text-align: center;
  max-width: 460px;
}
.pending-box p {
  font-size: 0.8rem;
  color: var(--dim);
  margin: 9px 0;
}
.pending-box .muted {
  display: block;
  font-size: 0.8rem;
  margin-top: 12px;
}
.challenge-button {
  border-color: #8b4c3e;
  color: #edb8a4;
  background: #34231d;
  font-weight: 650;
}
.face-down {
  position: relative;
}
.face-down-tag {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  text-align: center;
  background: #1c1710d9;
  color: var(--accent);
  font-size: 0.6rem;
  padding: 4px;
  font-weight: 700;
  letter-spacing: 0.1em;
  transform: rotate(6deg);
}
.hand-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px 15px;
  min-width: 0;
}
.hand-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.hand-heading h2 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.hand-heading h2 span {
  font: 0.75rem ui-monospace, monospace;
  margin-left: 7px;
  color: var(--dim);
}
.hand-heading > span {
  font-size: 0.7rem;
  color: var(--dim);
}
.hand {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 2px 0 15px;
}
.hand .card {
  width: 94px;
  height: 142px;
  transition: transform 0.15s, border-color 0.15s, opacity 0.15s;
}
.hand button.card:not(:disabled) {
  border-color: #f2ead7;
}
.hand button.card:not(:disabled):hover {
  transform: translateY(-10px);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.hand button.card:disabled {
  opacity: 0.6;
}
.hand-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.uno-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.8rem;
  color: var(--dim);
  cursor: pointer;
}
.uno-check input {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
}
.uno-button {
  color: var(--accent);
  border-color: #766139;
  font-weight: 800;
  padding: 7px 20px;
}
.hand-bottom button:not(.uno-button) {
  font-size: 0.8rem;
}
.card {
  width: 116px;
  height: 174px;
  flex-shrink: 0;
  border: 5px solid #eee7d9;
  border-radius: 11px;
  position: relative;
  display: block;
  padding: 0;
  color: #fff;
  background: var(--red);
  user-select: none;
  overflow: hidden;
  text-align: initial;
  box-shadow: 0 3px 7px #0004;
}
.card.red {
  background: var(--red);
}
.card.yellow {
  background: var(--yellow);
  color: #fff;
}
.card.green {
  background: var(--green);
}
.card.blue {
  background: var(--blue);
}
.card.wild {
  background: conic-gradient(
    from 45deg,
    #2e6aa4 0 25%,
    #d9ab34 25% 50%,
    #b83935 50% 75%,
    #397a58 75%
  );
  color: #fff;
}
.card-corner, .card-bottom {
  position: absolute;
  left: 6px;
  top: 2px;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  z-index: 2;
}
.card-corner > span, .card-bottom > span {
  font-size: 0.55rem;
}
.card-bottom {
  left: auto;
  top: auto;
  right: 6px;
  bottom: 14px;
  transform: rotate(180deg);
}
.card-oval {
  position: absolute;
  inset: 17px 10px 23px;
  display: grid;
  place-items: center;
  border: 3px solid currentColor;
  border-radius: 50%;
  transform: rotate(24deg);
  background: #ffffff0c;
}
.card-value {
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 1;
  transform: rotate(-24deg);
  text-shadow: 2px 2px 0 #0003;
}
.card-kind {
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.45rem;
  letter-spacing: 0.1em;
  font-weight: 750;
  line-height: 1.4;
}
.card.liar {
  color: #171410;
}
.card.liar .card-oval {
  background: #00000008;
}
.card.liar .card-value {
  text-shadow: 1px 1px 0 #fff3;
}
.back {
  background: #211a15;
  color: var(--accent);
  border-color: #574732;
  display: grid;
  place-items: center;
}
.back-oval {
  border: 2px solid var(--accent);
  border-radius: 50%;
  padding: 39px 10px;
  font-size: 1.7rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.07em;
  transform: rotate(-25deg);
  background: #3b2c1a;
}
aside {
  background: #1a1713;
  border-left: 1px solid var(--line);
  padding: 28px 24px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
aside section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 23px;
}
aside .section-label {
  margin-bottom: 14px;
  font-size: 0.65rem;
}
.table-note {
  font: 1.3rem/1.4 Georgia, serif;
  margin-bottom: 10px;
}
.note-detail {
  font-size: 0.8rem;
  color: var(--dim);
  line-height: 1.8;
}
.scores {
  list-style: none;
  margin: 0;
  padding: 0;
}
.scores li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.scores strong {
  font-family: ui-monospace, monospace;
  color: var(--accent);
}
.scores small {
  font-size: 0.7rem;
}
.log {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 440px;
  overflow: auto;
}
.log li {
  padding: 0 0 14px 13px;
  border-left: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--dim);
  position: relative;
}
.log li.latest {
  color: var(--ink);
}
.log li.latest:before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  position: absolute;
  top: 7px;
  left: -3px;
  border-radius: 50%;
}
.activity {
  flex: 1;
}
.sibling-link {
  font-size: 0.75rem;
  color: var(--dim);
}
.spectator-note {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0;
}
.challenge-box {
  text-align: center;
  margin-top: 18px;
}
.challenge-box p {
  font-size: 0.875rem;
  color: var(--dim);
  margin-top: 6px;
}
.challenge-players {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.challenge-players button {
  font-size: 0.875rem;
}
.challenge-players small {
  display: block;
  font-size: 0.75rem;
}
.winner-box {
  text-align: center;
  margin-top: 22px;
}
.winner-box h1 {
  font-size: 2.5rem;
  margin: 8px 0;
}
.winner-box p {
  font-size: 0.875rem;
  color: var(--dim);
}
.winner-box .button-link {
  margin-left: 8px;
}
.not-found {
  grid-column: 1/-1;
  text-align: center;
  padding: 50px 0;
}
.not-found h1 {
  font-size: 2.5rem;
}
dialog {
  background: var(--panel);
  border: 1px solid #675136;
  border-radius: 12px;
  color: var(--ink);
  padding: 24px;
  width: min(620px, calc(100vw - 28px));
  max-height: 90dvh;
  overflow: auto;
  box-shadow: 0 30px 90px #000a;
}
dialog::backdrop {
  background: #000a;
  backdrop-filter: blur(5px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 15px;
  margin-bottom: 22px;
}
.dialog-head h2 {
  font: 1.6rem/1.3 Georgia, serif;
  margin: 3px 0 0;
}
.dialog-head button {
  font-size: 0.875rem;
  padding: 5px 10px;
}
.rule-content p {
  color: var(--dim);
  font-size: 0.875rem;
}
.rule-content h3 {
  font-size: 1rem;
  margin: 25px 0 9px;
}
.rule-content h3:first-child {
  margin-top: 0;
}
#play-dialog {
  width: min(430px, calc(100vw - 28px));
}
#play-preview {
  display: flex;
  justify-content: center;
  margin: 10px 0 25px;
}
#play-fields select {
  width: 100%;
  margin-bottom: 17px;
}
#play-fields p {
  font-size: 0.875rem;
}
#confirm-play {
  width: 100%;
  margin-top: 20px;
}
.deception {
  border: 1px solid var(--line);
  padding: 12px;
  cursor: pointer;
  margin-bottom: 20px;
}
.deception input {
  accent-color: var(--accent);
  margin-right: 6px;
}
.deception small {
  display: block;
  margin-left: 25px;
  font-size: 0.75rem;
}
.modal-uno {
  margin-top: 12px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
@media (min-width: 1500px) {
  .table-column {
    padding: 30px 50px;
  }
  .hand .card {
    width: 108px;
    height: 161px;
  }
  .table-center {
    min-height: 440px;
  }
  .play-surface {
    padding-top: 30px;
  }
}
@media (max-width: 1100px) {
  .bar {
    padding: 13px 20px;
    gap: 20px;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 245px;
  }
  .table-column {
    padding: 20px;
    gap: 18px;
  }
  aside {
    padding: 25px 18px;
  }
  .seat {
    min-width: 145px;
    padding: 11px;
  }
  .hand {
    gap: 8px;
  }
  .hand .card {
    width: 83px;
    height: 127px;
  }
  .hand .card-value {
    font-size: 2.7rem;
  }
  .hand .card-oval {
    inset: 16px 7px 21px;
  }
  .lobby {
    gap: 35px;
    grid-template-columns: 1fr 390px;
  }
}
@media (max-width: 800px) {
  .game-layout {
    grid-template-columns: 1fr;
  }
  .table-column {
    padding: 16px;
  }
  .table-center {
    min-height: 320px;
  }
  aside {
    border-left: 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  aside .activity {
    grid-column: 1/-1;
  }
  .log {
    max-height: 220px;
  }
  .lobby {
    grid-template-columns: 1fr;
    max-width: 500px;
    padding: 30px 20px;
    gap: 25px;
  }
  .lobby-title {
    padding-top: 0;
  }
  .lobby-title h1 {
    font-size: 2.8rem;
  }
  .lobby-title > p {
    font-size: 1rem;
    margin-bottom: 0;
  }
  .lobby-cards {
    display: none;
  }
  .lobby-footer {
    font-size: 0.7rem;
    display: block;
    padding-bottom: 10px;
  }
  .lobby-footer a {
    display: block;
    margin-top: 10px;
  }
  .bar {
    gap: 15px;
  }
  .brand-small {
    display: none;
  }
  #table-meta {
    gap: 15px;
  }
  .mode-badge {
    font-size: 0.6rem;
  }
  .bar .quiet {
    font-size: 0.75rem;
    padding: 6px 9px;
  }
  #connection {
    font-size: 0.65rem;
  }
  .brand {
    font-size: 1.4rem;
  }
  .code-button {
    font-size: 0.875rem;
  }
  .table-caption {
    font-size: 0.6rem;
  }
  .hand-panel {
    padding: 16px 13px;
  }
  .hand-heading {
    align-items: baseline;
  }
  .hand-heading > span {
    font-size: 0.65rem;
  }
  .hand-bottom {
    gap: 10px;
  }
  .seat {
    max-width: none;
    min-width: 135px;
  }
  .waiting {
    padding: 38px 15px;
  }
  .waiting h1 {
    font-size: 2.1rem;
  }
  .play-surface {
    min-height: 340px;
  }
  .lobby-panel {
    padding: 24px;
  }
}
@media (max-width: 480px) {
  .bar {
    padding: 12px 16px;
    gap: 12px;
  }
  #connection {
    order: 4;
    flex-basis: 100%;
    display: none;
  }
  #connection.offline {
    display: block;
  }
  #table-meta {
    flex: 1;
    justify-content: space-between;
    gap: 8px;
  }
  .mode-badge {
    font-size: 0.55rem;
  }
  .code-button span {
    font-size: 0.6rem;
  }
  .seats {
    gap: 8px;
  }
  .seat {
    padding: 10px;
    gap: 8px;
  }
  .seat-avatar {
    width: 28px;
    height: 28px;
  }
  .seat strong {
    font-size: 0.8rem;
  }
  .seat-stat {
    font-size: 0.65rem;
  }
  .hand .card {
    width: 73px;
    height: 112px;
    border-width: 4px;
    border-radius: 8px;
  }
  .hand .card-value {
    font-size: 2.2rem;
  }
  .hand .card-corner, .hand .card-bottom {
    font-size: 0.9rem;
  }
  .hand .card-corner > span, .hand .card-bottom > span {
    font-size: 0.45rem;
  }
  .hand .card-oval {
    inset: 12px 5px 19px;
    border-width: 2px;
  }
  .hand .card-kind {
    font-size: 0.35rem;
  }
  .hand {
    gap: 7px;
  }
  .hand-heading {
    display: block;
    margin-bottom: 16px;
  }
  .hand-heading > span {
    display: block;
    margin-top: 4px;
  }
  .table-column {
    padding: 12px;
    gap: 12px;
  }
  .piles {
    gap: 32px;
  }
  .piles .card {
    width: 100px;
    height: 153px;
  }
  .piles .card-value {
    font-size: 2.8rem;
  }
  .piles .back-oval {
    padding: 34px 7px;
    font-size: 1.4rem;
  }
  .table-caption {
    padding: 14px;
  }
  .turn-status {
    font-size: 1rem;
  }
  .invite-box {
    gap: 10px;
    flex-direction: column;
  }
  .invite-box > span {
    font-size: 1.6rem;
  }
  .button-row button {
    font-size: 0.875rem;
  }
  .waiting h1 {
    font-size: 1.9rem;
  }
  #notice {
    padding: 10px 16px;
  }
  .winner-box h1 {
    font-size: 2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
