:root {
  --bg: #242d41;
  --text: #e7edf5;
  --muted: #8b95a6;
  --ink: #041318;
  --light: #8d97a8;
  --dark: #2a3142;
  --check: #e57373;
  --danger: #ff8d9a;
  --accent: #3cebff;
  --accent-base: #0b7f8e;
  --card: #25282c;
  --card-base: #101214;
  --btn: #292c30;
  --btn-base: #17191c;
  --hurt: #6b3030;
  --hurt-base: #3a1818;
  --off: #2c2f33;
  --cream-72: rgba(229, 231, 235, 0.72);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Montserrat, Arial, sans-serif;
}

body {
  min-height: 100dvh;
}

button, a { font-family: inherit; }

button { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ambient, .ambient-veil { display: none; }

body.show-ambient .ambient {
  display: grid;
  position: fixed;
  left: 50%;
  top: 50%;
  width: 294vw;
  height: 294vw;
  transform: translate(-50%, -50%) rotate(-22deg);
  grid-template-columns: repeat(10, 1fr);
  z-index: 0;
  pointer-events: none;
}

.ambient .light { background: var(--light); }
.ambient .dark { background: var(--dark); }

body.show-ambient .ambient-veil {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(11, 12, 14, 0.74);
  z-index: 1;
  pointer-events: none;
}

.layout {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.ad-rail { display: none; }

.side-panel { display: contents; }

@media (max-width: 1099px) {
  .brand-quiet, .brand-line { order: 1; }
  .brand-line { width: min(100%, calc(100dvh - 250px), 720px); align-self: center; }
  .lift { order: 2; }
  .table { order: 3; }
  .dock { order: 4; width: min(100%, calc(100dvh - 250px), 720px); align-self: center; }
  .resign { order: 5; }
  .pieces-btn { order: 6; width: min(100%, calc(100dvh - 250px), 720px); align-self: center; }
  .info-panel { order: 7; width: min(100%, calc(100dvh - 250px), 720px); align-self: center; }
  .sink { order: 8; }
}

@media (min-width: 1480px) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    column-gap: 12px;
    padding-right: 16px;
  }

  #ad-right {
    display: block;
    width: 280px;
    height: min(600px, calc(100dvh - 48px));
    align-self: center;
  }
}

.stage { min-width: 0; }

.screen[hidden] { display: none !important; }

.home {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 40px;
}

.home-stack {
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  container-type: inline-size;
}

.logo {
  width: 160px;
  height: auto;
  display: block;
}

.wordmark {
  margin: 10px 0 0;
  color: #ffffff;
  font-size: min(66px, 16.5cqi);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
  max-width: 100%;
}

.tagline {
  margin: 12px 0 28px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.search {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.search-stack {
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(229, 231, 235, 0.28);
  border-top-color: var(--text);
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.search-title {
  margin: 22px 0 28px;
  color: var(--text);
  font-size: 22px;
  font-weight: 600;
}

.game {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 18px 6px 20px;
}

.brand-quiet {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
}

.brand-line {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
}

.lift { flex: 0.4; min-height: 14px; }
.sink { flex: 1.2; }

.table {
  width: min(100%, calc(100dvh - 250px), 720px);
  margin: 0 auto;
  container-type: inline-size;
}

.dock { margin-top: 14px; }
.dock:not(:has(.btn:not([hidden]))) { display: none; }
.dock .btn:not([hidden]) ~ .btn:not([hidden]) { margin-top: 10px; }

.dock .btn[hidden] { display: none !important; }

.invite-box { margin-bottom: 12px; }
.invite-box[hidden] { display: none !important; }

.invite-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.invite-url {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
  user-select: all;
}

.dock .text-btn { margin-top: 8px; }

.privacy-link {
  display: block;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.privacy-link:hover { color: var(--text); }
.privacy-link[hidden] { display: none !important; }

.info-panel {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.conn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.conn-wifi {
  width: 18px;
  height: 18px;
  background: #8b95a6;
  flex: 0 0 auto;
  -webkit-mask: url("assets/wifi.svg") center / contain no-repeat;
  mask: url("assets/wifi.svg") center / contain no-repeat;
}

.conn[data-state="online"] .conn-wifi { background: #3ddc84; }
.conn[data-state="off"] .conn-wifi { background: #ff4b6e; }

.info-copy {
  margin: 12px 0 0;
  max-width: 32ch;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.socials {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
}

.socials a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  margin: 0 -8px;
  padding: 0 8px;
  border-radius: 8px;
  color: #d7dee8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.socials a:hover {
  background: rgba(60, 235, 255, 0.08);
  color: #f4f7fb;
}

.socials svg {
  width: 15px;
  height: 15px;
  display: block;
  color: var(--accent);
  flex: 0 0 auto;
}

.info-panel .privacy-link {
  margin-top: 12px;
  font-size: 12px;
  text-align: left;
}

.pieces-btn {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.pieces-btn:hover { color: var(--text); }
.pieces-btn[hidden] { display: none !important; }

.player {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  column-gap: 10px;
  align-items: center;
  padding: 6px 2px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: block;
  grid-row: 1 / span 2;
}

.pname {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.1;
}

.player.has-caps .pname {
  grid-row: 1;
  align-self: end;
}

.caps {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 1px;
  min-height: 0;
  align-self: start;
}

.player.has-caps .caps { min-height: 16px; margin-top: 2px; }

.caps img {
  width: 14px;
  height: 14px;
  display: block;
}

.clock {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  color: var(--muted);
}

.clock-num {
  font-size: min(40px, 12cqi);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transform-origin: center right;
}

.clock-bar {
  height: 4px;
  margin-top: 5px;
  border-radius: 999px;
  width: 0;
  background: currentColor;
}

.clock.on { color: var(--accent); }
.clock.low { color: #ff3048; }

.clock.pulse .clock-num { animation: clock-blink 1s ease-in-out infinite; }
.clock.pulse.crit .clock-num { animation-duration: 0.42s; }

@keyframes clock-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  8% { opacity: 1; transform: scale(1.07); }
  16% { opacity: 0.2; transform: scale(1); }
  34% { opacity: 1; transform: scale(1); }
}

.waiting {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: max-content;
  max-width: calc(100% - 28px);
  margin: 0;
  padding: 16px 22px 18px;
  transform: translate(-50%, -50%);
  border-radius: 18px;
  background: #222833;
  color: #f4f7fb;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  pointer-events: none;
  box-shadow: 0 6px 0 #0c1016;
}

.waiting[hidden] { display: none !important; }

.board {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.squares {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  aspect-ratio: 1;
}

.sq {
  position: relative;
  min-width: 0;
  min-height: 0;
}

.sq.light { background: var(--light); }
.sq.dark { background: var(--dark); }

.mark {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 80ms linear;
}

.sq.last .mark {
  opacity: 1;
  background: rgba(90, 246, 255, 0.62);
  box-shadow: inset 0 0 0 3px #b8fbff, inset 0 0 28px rgba(60, 235, 255, 0.95);
}
.sq.selected {
  box-shadow: inset 0 0 0 3px #d8fdff, inset 0 0 26px rgba(60, 235, 255, 0.9);
}
.sq.drop-target {
  box-shadow: inset 0 0 0 4px #d8fdff, inset 0 0 24px rgba(60, 235, 255, 0.72);
}
.sq.drop-bad {
  box-shadow: inset 0 0 0 3px rgba(255, 141, 154, 0.8);
}
.sq.premove .mark {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.9);
}
.premove-ghost {
  position: absolute;
  width: 12.5%;
  height: 12.5%;
  opacity: 0.45;
  pointer-events: none;
}

.sq.check-on {
  background: #ff4b6e;
  box-shadow: inset 0 0 0 3px #ffd0da, inset 0 0 22px rgba(255, 80, 120, 0.95);
}
.sq.check-flash { animation: checkflash 140ms linear; }

@keyframes checkflash {
  0% { background: #ffe3ea; }
  100% { background: #ff4b6e; }
}

.dot, .ring-slot { display: none; }

.sq .dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16%;
  height: 16%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.sq.hint-dot .dot {
  display: block;
  background: #d8fdff;
  box-shadow: 0 0 10px rgba(60, 235, 255, 0.95);
}

.coord {
  position: absolute;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.sq.light .coord { color: #1a2030; }
.sq.dark .coord { color: #d5dbe6; }
.coord.rank { top: 2px; left: 3px; }
.coord.file { right: 3px; bottom: 2px; }

.pieces, .fx {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pieces { z-index: 2; }
.fx { z-index: 4; }

.piece {
  position: absolute;
  width: 12.5%;
  height: 12.5%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.55)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.35));
  user-select: none;
}

.piece.land { animation: land 110ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.piece.trail {
  z-index: 3;
  pointer-events: none;
  filter: blur(0.4px);
}

@keyframes land {
  0% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

.piece.shake { animation: shake 120ms linear; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  70% { transform: translateX(4px); }
}

.fx .ring {
  position: absolute;
  width: 11%;
  height: 11%;
  border-radius: 50%;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  border: 2.5px solid var(--accent);
}

.fx .ring.on-dark { border-color: var(--accent); }

.sq.pulse .mark { animation: squarepulse 110ms linear; }

@keyframes squarepulse {
  0% { opacity: 0.15; }
  40% { opacity: 0.5; }
  100% { opacity: 0.18; }
}

.sq.bad .mark {
  background: #e57373 !important;
  animation: badfade 120ms linear forwards;
}

@keyframes badfade {
  from { opacity: 0.95; }
  to { opacity: 0; }
}

.warning {
  margin: 10px auto 0;
  min-height: 18px;
  text-align: center;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

.warning:empty { display: none; }

.resign {
  align-self: center;
  margin-top: 14px;
  background: none;
  border: 0;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.resign:hover { color: var(--text); }
.resign[hidden] { display: none !important; }

.btn {
  position: relative;
  display: block;
  width: 100%;
  height: calc(var(--face) + var(--drop));
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  --face: 56px;
  --drop: 5px;
}

.btn-base, .btn-face {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--face);
  border-radius: 999px;
}

.btn-base { bottom: 0; }
.btn-face {
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: top 80ms linear;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.btn:active:not(:disabled) .btn-face { top: var(--drop); }
.btn:disabled { cursor: default; }
.btn:disabled .btn-face { top: 0; }

.btn-xl { --face: 76px; --drop: 6px; }
.btn-xl .btn-face {
  font-size: 26px;
  letter-spacing: 0.12em;
  padding-left: 0.12em;
}

.btn-primary .btn-face { background: var(--accent); color: var(--ink); }
.btn-primary .btn-base { background: var(--accent-base); }

.btn-secondary { --drop: 4px; }
.btn-secondary .btn-face {
  background: var(--btn);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}
.btn-secondary .btn-base { background: var(--btn-base); }

.daily-note {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.btn-danger .btn-face { background: var(--hurt); color: var(--text); }
.btn-danger .btn-base { background: var(--hurt-base); }

.btn:disabled .btn-face { background: var(--off); color: var(--muted); }
.btn:disabled .btn-base { background: var(--btn-base); }

.text-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.text-btn:hover { color: var(--text); }

.overlay[hidden] { display: none !important; }

.intro {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.intro-name {
  margin: 0;
  color: #f4f7fb;
  font-size: min(16vw, 128px);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 0.9;
  animation: intro-drop 560ms linear forwards;
}

@keyframes intro-drop {
  0% { opacity: 0; transform: scale(1.16); }
  14% { opacity: 1; transform: scale(1); }
  46% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(120vh) scale(0.82); }
}

.piece-panel {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
}

.piece-panel[hidden] { display: none !important; }

.piece-card {
  width: min(420px, 100%);
  max-height: min(680px, calc(100dvh - 40px));
  overflow: auto;
  padding: 22px 18px 16px;
  border-radius: 18px;
  background: #222833;
  box-shadow: 0 6px 0 #0c1016;
}

.piece-card h2 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 22px;
}

.piece-copy {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.piece-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}

.piece-row img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.piece-row .text-btn {
  width: auto;
  margin: 0;
  padding: 6px 4px;
}

.piece-note {
  min-height: 18px;
  margin: 4px 0 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.piece-card > .btn { margin-top: 8px; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 20px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.62);
}

.ad-end:empty { display: none; }

.ad-end {
  width: min(300px, calc(100vw - 48px));
  flex: 0 0 auto;
}

.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

.offline {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  position: relative;
  width: min(420px, calc(100vw - 36px));
  padding-bottom: 5px;
  animation: card-in 130ms linear;
}

.card-base {
  position: absolute;
  left: 0;
  right: 0;
  top: 5px;
  bottom: 0;
  background: var(--card-base);
  border-radius: 24px;
}

.card-face {
  position: relative;
  background: var(--card);
  border-radius: 24px;
  padding: 32px 26px;
  text-align: center;
}

.result-brand {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.card-title {
  margin: 0;
  color: var(--text);
  font-size: 37px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-transform: uppercase;
}

.card-title.result-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
}

.result-detail {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.result-tag {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.result-actions {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.result-actions .text-btn { margin-top: 6px; }

.overlay.show-result .card-face { padding: 28px 24px 18px; }

.card-title.dialog {
  font-size: 24px;
  letter-spacing: 0.04em;
}

.card-face .btn + .btn { margin-top: 12px; }

.card-title.loss { color: var(--danger); }

.rule {
  width: 40px;
  height: 3px;
  margin: 14px auto 12px;
  border-radius: 999px;
  background: var(--text);
}

.rule.loss { background: var(--danger); }

.card-copy {
  margin: 0 0 22px;
  color: var(--cream-72);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.promo-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 18px 0 4px;
}

.promo {
  width: 68px;
  height: 68px;
  padding: 6px;
  border: 0;
  border-radius: 12px;
  background: #16181a;
  cursor: pointer;
}

.promo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.promo:active { transform: translateY(3px); }

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 22px 72px;
}

.page h1 {
  margin: 18px 0 8px;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
}

.page p, .page li {
  color: var(--cream-72);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.page a { color: var(--text); }

@keyframes card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .logo { width: 128px; }
  .brand-quiet { letter-spacing: 0.12em; padding-left: 0.12em; }
  .card-title { font-size: 30px; }
}

@media (max-height: 740px) {
  .logo { width: 112px; }
  .wordmark { font-size: 48px; }
  .tagline { margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .piece, .piece.land, .piece.trail, .mark, .card, .btn-face, .spinner, .sq.check-flash, .sq.pulse .mark, .sq.bad .mark, .clock.pulse .clock-num, .intro-name {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

@media (min-width: 1100px) {
  .game {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    column-gap: 32px;
    align-items: stretch;
    height: 100dvh;
    min-height: 100dvh;
    padding: 8px 18px;
    box-sizing: border-box;
  }

  .side-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 280px;
    align-self: center;
  }

  .lift, .sink { display: none; }

  .brand-quiet {
    text-align: left;
    padding-left: 0;
    letter-spacing: 0.08em;
    font-size: 28px;
    font-weight: 900;
    color: #f4f7fb;
    margin-bottom: 0;
  }

  .brand-line {
    text-align: left;
    margin: 6px 0 18px;
  }

  .dock { margin-top: 0; }
  .privacy-link, .pieces-btn, .info-copy { text-align: left; }
  .info-panel { margin-top: 26px; }

  .table {
    justify-self: center;
    align-self: center;
    height: calc(100dvh - 16px);
    width: min(100%, calc(100dvh - 128px));
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .table .player {
    height: 56px;
    padding: 0;
    box-sizing: border-box;
    flex: 0 0 56px;
  }

  .table .board {
    width: 100%;
    flex: 0 0 auto;
  }

}
