/* play + board — same navy room as the door. Skribbl sizes, not grape. */

.play-table {
  --floor: #124da5;
  --tile: #0b3a82;
  --panel: #fff6e8;
  --play: #53e237;
  --play-hover: #38c41c;
  --play-active: #30aa19;
  --second: #2c8de7;
  --you: #ffe566;
  --text: #1a1020;
  --muted: #5a3d18;
  --shadow: 3px 3px 0 #111;
  --ink: #1a1020;
  --line: #111;
  --grid: 48px;
  --card: #fff6e8;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  margin: 0;
  color: var(--text);
  background: var(--floor);
  font-family: Nunito, "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
}

.board-page {
  --floor: #124da5;
  --tile: #0b3a82;
  --panel: #fff6e8;
  --play: #53e237;
  --play-hover: #38c41c;
  --play-active: #30aa19;
  --second: #2c8de7;
  --you: #ffe566;
  --text: #1a1020;
  --muted: #5a3d18;
  --shadow: 3px 3px 0 #111;
  --ink: #1a1020;
  --line: #111;
  --grid: 48px;
  --card: #fff6e8;
  min-height: 100dvh;
  height: auto;
  max-height: none;
  overflow: visible;
  margin: 0;
  color: var(--text);
  background: var(--floor);
  font-family: Nunito, "Segoe UI", system-ui, sans-serif;
  font-weight: 800;
}

.play-table *,
.board-page * {
  box-sizing: border-box;
}

.play-table .floor,
.board-page .floor {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background-color: transparent;
  background-image: none;
  animation: none;
}

.play-table .floor {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.board-page .floor {
  height: auto;
  min-height: 100dvh;
  overflow: visible;
}

.play-table,
.board-page {
  background-color: var(--floor);
  background-image: url("/img/tile.gif?v=thin-3");
  background-size: 300px 300px;
  background-repeat: repeat;
  image-rendering: auto;
}

.fixture-note {
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 3px;
  background: #3d3310;
  color: var(--you);
  font-size: 13px;
}

.strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: var(--grid);
}

.play-table .wordmark,
.board-page .wordmark {
  grid-column: 1;
  justify-self: start;
  line-height: 0;
  text-decoration: none;
  background: #124da5;
  padding: 6px 10px;
  border-radius: 4px;
}

.play-table .logo-gif,
.board-page .logo-gif {
  width: min(180px, 28vw);
  height: auto;
  display: block;
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.25));
  image-rendering: pixelated;
}

.you-chip {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  min-width: 0;
  padding: 6px 14px 6px 6px;
  background: var(--you);
  color: var(--ink);
  border: 3px solid #111;
  box-shadow: 3px 3px 0 #111;
  border-radius: 6px 3px 7px 4px;
}

.you-chip[hidden] {
  display: none !important;
}

.board-page .strip:not(:has(.you-chip:not([hidden]))) {
  grid-template-columns: auto 1fr;
}

.board-page .strip:not(:has(.you-chip:not([hidden]))) .score-block {
  grid-column: 2;
}

.you-name,
.player-name,
.round-read,
.score-num,
.score-label,
.pts,
.player-score {
  font-family: Nunito, sans-serif;
  font-weight: 800;
}

.you-name {
  font-size: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-block {
  grid-column: 3;
  justify-self: end;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: #fff6e8;
  color: #1a1020;
  padding: 6px 14px 8px;
  border: 3px solid #111;
  border-radius: 4px 8px 3px 6px;
  box-shadow: 3px 3px 0 #111;
}

.score-label {
  color: #5a3d18;
  font-size: 14px;
  letter-spacing: 0.14em;
}

.score-num {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.9;
  color: #1a1020;
  text-shadow: none;
}

.score-num.is-pop {
  color: var(--play);
}

.score-pop {
  position: absolute;
  right: 0;
  top: -18px;
  color: var(--play);
  font-size: 28px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
}

.score-pop.is-on {
  animation: score-pop 420ms ease-out forwards;
}

@keyframes score-pop {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.8);
  }
  30% {
    opacity: 1;
    transform: translateY(-4px) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) scale(1);
  }
}

.ink-face {
  width: 48px;
  height: 48px;
  display: block;
  image-rendering: auto;
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.25));
  flex: 0 0 auto;
}

.round-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  flex: 0 0 auto;
  margin: 10px auto 12px;
  padding: 6px 16px;
  min-height: 0;
  background: #fff6e8;
  color: #1a1020;
  border: 3px solid #111;
  border-radius: 8px 3px 9px 4px;
  box-shadow: 3px 3px 0 #111;
}

.clock {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #111;
  box-shadow: inset 0 0 0 3px var(--play), 2px 2px 0 #111;
}

.clock-hand {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 12px;
  margin-left: -1.5px;
  background: var(--play);
  transform-origin: 50% 10px;
  animation: clock-tick 8s linear infinite;
}

@keyframes clock-tick {
  to {
    transform: rotate(360deg);
  }
}

.round-read {
  font-size: 32px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.round-slash {
  opacity: 0.55;
  margin: 0 4px;
}

.prompt {
  color: #1a1020;
  font-size: 22px;
  letter-spacing: 0.06em;
}

.prompt.linkish {
  color: #fff;
  text-decoration: none;
  background: var(--play);
  padding: 8px 18px;
  border: 3px solid #111;
  border-radius: 8px 3px 9px 4px;
  box-shadow: 3px 3px 0 #111;
  text-shadow: 2px 2px 0 #0000002b;
  transition: background-color 80ms linear;
}

.prompt.linkish:hover {
  background: var(--play-hover);
}

.prompt.linkish:active {
  background: var(--play-active);
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 #111;
  padding-top: 10px;
}

.stage {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) 64px;
  gap: 14px;
  align-items: stretch;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.players {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.player-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 10px;
  background: #fffdf8;
  color: #1a1020;
  border: 2.5px solid #111;
  border-radius: 5px 2px 6px 3px;
  box-shadow: 2px 2px 0 #111;
}

.player-row.is-you {
  background: var(--you);
  color: var(--ink);
}

.player-row.is-you .player-score {
  color: var(--ink);
}

.player-row.is-empty {
  min-height: 40px;
  opacity: 1;
  background: #efe4d0;
}

.player-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.player-name {
  font-size: 16px;
}

.player-score {
  color: var(--muted);
  font-size: 18px;
}

.desk {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.desk.is-closed .pair {
  visibility: hidden;
}

.topic {
  margin: 0 0 8px;
  color: #5a3d18;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fff6e8;
  display: inline-block;
  padding: 4px 10px;
  border: 3px solid #111;
  border-radius: 6px 3px 7px 4px;
  box-shadow: 2px 2px 0 #111;
  flex: 0 0 auto;
}

.play-note {
  margin: 0 0 8px;
  color: #8a1a1a;
  font-size: 14px;
  background: #fff6e8;
  padding: 6px 10px;
  border: 3px solid #111;
  border-radius: 6px 3px 7px 4px;
  flex: 0 0 auto;
}

.play-note[hidden] {
  display: none !important;
}

.pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
}

.pair.is-fresh {
  animation: pair-in 180ms ease-out;
}

@keyframes pair-in {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

.card {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 14px 14px 16px;
  border: 3px solid #111;
  border-radius: 8px 3px 10px 5px;
  background: #fffdf8;
  color: var(--ink);
  text-align: left;
  font: inherit;
  box-shadow: 4px 4px 0 #111;
  cursor: pointer;
  overflow: hidden;
  transition: transform 80ms linear;
}

.card:hover,
.card:focus-visible {
  outline: 3px solid #56b2fd;
  outline-offset: 0;
  transform: translateY(-2px);
}

.card.is-pressed {
  padding-top: 22px;
  padding-bottom: 22px;
  transform: translateY(2px);
}

.card.is-hit {
  outline: 4px solid var(--play);
}

.card.is-miss {
  animation: miss-flash 280ms ease-out 1;
}

@keyframes miss-flash {
  0%,
  100% {
    background: var(--card);
  }
  35% {
    background: #ffd0d0;
  }
}

.card-kicker {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffe566;
  color: #1a1020;
  border: 2px solid #111;
  font-size: 16px;
}

.card-body {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  font-size: clamp(13px, 1.15vw + 10px, 19px);
  font-weight: 800;
  line-height: 1.32;
  mask-image: linear-gradient(to bottom, #000 82%, transparent);
}

.card.is-lean {
  transform: translateY(-3px);
}

.ink-stamp {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 4;
  background: rgba(255, 253, 248, 0.18);
}

.ink-stamp[hidden] {
  display: none !important;
}

.ink-stamp-face {
  display: grid;
  place-items: center;
  width: min(78%, 210px);
  aspect-ratio: 1;
  border: 7px solid currentColor;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 4px currentColor,
    0 0 0 3px rgba(255, 253, 248, 0.55);
  color: #b42318;
  font: 800 clamp(22px, 3.4vw, 34px) Nunito, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(-24deg) scale(2.3);
  opacity: 0;
  mix-blend-mode: multiply;
}

.ink-stamp.is-ai .ink-stamp-face {
  color: #124da5;
}

.ink-stamp.is-in .ink-stamp-face {
  animation: rubber-slam 520ms cubic-bezier(0.12, 1.38, 0.28, 1) forwards;
}

@keyframes rubber-slam {
  0% {
    transform: rotate(-32deg) scale(2.5);
    opacity: 0;
  }
  58% {
    transform: rotate(-12deg) scale(0.9);
    opacity: 1;
  }
  78% {
    transform: rotate(-16deg) scale(1.07);
    opacity: 1;
  }
  100% {
    transform: rotate(-14deg) scale(1);
    opacity: 1;
  }
}

.cut {
  position: absolute;
  top: -14px;
  bottom: -14px;
  left: 50%;
  width: 16px;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, #ffe566 0 3px, #0b3a82 3px calc(100% - 3px), #53e237 calc(100% - 3px));
  clip-path: polygon(
    35% 0%, 80% 0%, 100% 7%, 55% 14%, 95% 22%, 40% 30%, 90% 38%, 50% 46%,
    100% 54%, 45% 62%, 92% 70%, 38% 78%, 88% 86%, 48% 93%, 85% 100%,
    20% 100%, 0% 92%, 42% 85%, 8% 77%, 48% 69%, 4% 61%, 50% 53%,
    10% 45%, 52% 37%, 6% 29%, 44% 21%, 12% 13%, 40% 6%
  );
  filter: drop-shadow(var(--shadow));
  pointer-events: none;
  z-index: 3;
}

.tell {
  display: none;
}

.today-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  background: #fff6e8;
  border: 3px solid #111;
  border-radius: 8px 3px 9px 4px;
  box-shadow: 3px 3px 0 #111;
}

.stamp {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 6px 3px 7px 4px;
  background: #53e237;
  color: #143300;
  border: 2px solid #111;
  box-shadow: 2px 2px 0 #111;
  font-size: 28px;
}

.stamp-label {
  color: #5a3d18;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.done-booth {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(8, 28, 96, 0.72);
  z-index: 20;
}

.done-booth.is-in {
  display: grid;
}

.done-booth[hidden] {
  display: none !important;
}

.done-panel {
  width: min(420px, 100%);
  padding: 28px 24px 24px;
  background: #fff6e8;
  color: #1a1020;
  border: 3px solid #111;
  border-radius: 8px 3px 10px 5px;
  box-shadow: 4px 4px 0 #111;
  text-align: center;
}

.done-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.done-face {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
}

.done-panel h1 {
  margin: 8px 0 4px;
  font-size: 48px;
  letter-spacing: -0.03em;
  color: #1a1020;
  text-shadow: none;
}

.done-all {
  margin: 0 0 18px;
  font: 800 20px Nunito, sans-serif;
  color: #5a3d18;
}

.podium {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.podium-row,
.board-row {
  display: grid;
  grid-template-columns: 24px 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 3px;
  text-align: left;
}

.play-table .podium-row,
.play-table .board-row {
  background: #fffdf8;
  color: #1a1020;
  border: 2.5px solid #111;
  border-radius: 5px 2px 6px 3px;
  box-shadow: 2px 2px 0 #111;
}

.podium-row {
  grid-template-columns: 20px 40px 1fr auto;
}

.board-row.is-you,
.podium-row:first-child {
  background: var(--you);
  color: var(--ink);
}

.place {
  font-weight: 800;
}

.done-wait {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
}

.board-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border: 3px solid #111;
  border-radius: 8px 3px 9px 4px;
  background: var(--play);
  color: #fff;
  text-decoration: none;
  font-size: 2em;
  line-height: 1;
  text-shadow: 2px 2px 0 #0000002b;
  box-shadow: 3px 3px 0 #111;
  transition: background-color 80ms linear;
}

.board-link:hover {
  background: var(--play-hover);
}

.board-link:active {
  background: var(--play-active);
  padding-top: 2px;
}

.board-page ::selection {
  background: #ffe566;
  color: #1a1020;
}

.board-page .you-chip {
  border: 3px solid #111;
  box-shadow: 3px 3px 0 #111;
  filter: none;
  border-radius: 6px 3px 7px 4px;
}

.board-page .score-block {
  padding: 6px 14px 8px;
  background: #fff6e8;
  color: #1a1020;
  border: 3px solid #111;
  border-radius: 4px 8px 3px 6px;
  box-shadow: 3px 3px 0 #111;
}

.board-page .score-label {
  color: #5a3d18;
}

.board-page .score-num {
  color: #1a1020;
  text-shadow: none;
}

.board-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
  margin-top: 8px;
  align-items: start;
  flex: 0 0 auto;
}

.board-col {
  min-width: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.sketch-panel {
  position: relative;
  background:
    repeating-linear-gradient(
      transparent,
      transparent 27px,
      rgba(18, 77, 165, 0.07) 27px,
      rgba(18, 77, 165, 0.07) 28px
    ),
    #fff6e8;
  color: #1a1020;
  border: 3px solid #111;
  border-radius: 8px 3px 10px 5px;
  padding: 18px 16px 16px;
  box-shadow: 4px 4px 0 #111;
  transform: rotate(-0.35deg);
}

.board-col.sketch-panel:nth-child(2) {
  transform: rotate(0.45deg);
}

.sketch-panel h1 {
  margin: 0 0 12px;
  font-size: 30px;
  color: #1a1020;
  text-shadow: none;
  letter-spacing: -0.03em;
  line-height: 1;
}

.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
}

.board-page .board-row {
  grid-template-columns: 36px 48px minmax(0, 1fr) auto;
  background: #fffdf8;
  border: 2.5px solid #111;
  border-radius: 5px 2px 6px 3px;
  box-shadow: 2px 2px 0 #111;
  color: #1a1020;
  min-height: 62px;
  padding: 6px 10px;
}

.board-page .board-row.is-you,
.podium-row:first-child {
  background: #ffe566;
  color: #1a1020;
}

.board-page .board-row.place-1 { background: #ffe566; }
.board-page .board-row.place-2 { background: #ececec; }
.board-page .board-row.place-3 { background: #f3c9a0; }

.board-page .place {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid #111;
  border-radius: 50%;
  background: #fff;
  font-size: 16px;
  line-height: 1;
}

.board-row.place-1 .place { background: #ffd400; }
.board-row.place-2 .place { background: #d8d8d8; }
.board-row.place-3 .place { background: #e39a56; }

.board-page .pts {
  font-size: 24px;
  min-width: 3.4rem;
  padding: 2px 8px 4px;
  background: #53e237;
  border: 2px solid #111;
  border-radius: 4px 2px 5px 3px;
  box-shadow: 2px 2px 0 #111;
  color: #143300;
  text-align: center;
}

.board-page .pts::after {
  content: " pts";
  font-size: 11px;
  letter-spacing: 0;
}

.board-page .who {
  font-size: 20px;
}

.board-page .ink-face {
  width: 48px;
  height: 48px;
}

.comments {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 16px;
  margin-bottom: 12px;
  transform: rotate(0.18deg);
  padding-bottom: 12px;
  flex: 0 0 auto;
  overflow: visible;
}

.comments h1 {
  margin-bottom: 8px;
}

.comment-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-color: #111 #fff6e8;
}

.comment-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  background: #fffdf8;
  border: 2.5px solid #111;
  border-radius: 6px 3px 7px 4px;
  box-shadow: 2px 2px 0 #111;
}

.comment-meta {
  min-width: 0;
}

.comment-row .who {
  font-size: 15px;
  color: #124da5;
}

.comment-body {
  margin: 4px 0 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.comment-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
}

.comment-form textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 3px solid #111;
  border-radius: 8px 3px 10px 5px;
  background: #fffdf6;
  color: #1a1020;
  font: 800 16px Nunito, sans-serif;
  padding: 10px 12px;
  box-shadow: 3px 3px 0 #111;
  caret-color: #124da5;
}

.comment-form textarea::placeholder {
  color: #8a6a3a;
  opacity: 1;
}

.comment-form textarea:focus {
  outline: 3px solid #56b2fd;
  outline-offset: 1px;
  border-color: #111;
}

.comment-form .door-err {
  grid-column: 1 / -1;
}

.sketch-btn {
  justify-self: start;
  min-height: 56px;
  min-width: 112px;
  padding: 0 28px;
  border: 3px solid #111;
  border-radius: 8px 3px 9px 4px;
  background: #53e237;
  color: #fff;
  font: 800 26px Nunito, sans-serif;
  text-shadow: 2px 2px 0 #0000002b;
  box-shadow: 3px 3px 0 #111;
  cursor: pointer;
}

.sketch-btn:hover:not(:disabled) {
  background: #38c41c;
}

.sketch-btn:focus-visible {
  outline: 3px solid #56b2fd;
  outline-offset: 2px;
}

.sketch-btn:active:not(:disabled) {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 #111;
  padding-top: 2px;
}

.sketch-btn:disabled {
  background: #bdbdbd;
  color: #3d3d3d;
  text-shadow: none;
  cursor: not-allowed;
}

.comment-hint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 15px;
  color: #5a3d18;
}

.who {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pts {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.board-empty {
  color: #5a3d18;
  padding: 12px 4px;
}

.muted {
  color: var(--muted);
}

@media (max-width: 820px) {
  .play-table .logo-gif,
  .board-page .logo-gif {
    width: min(132px, 30vw);
  }

  .score-num {
    font-size: 28px;
  }

  .you-name {
    font-size: 16px;
  }

  .round-read {
    font-size: 20px;
  }

  .prompt {
    font-size: 14px;
  }

  .stage {
    grid-template-columns: 1fr;
  }

  .players,
  .today-strip {
    display: none;
  }

  .pair {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .card {
    min-height: 0;
    padding: 10px 10px 12px;
  }

  .card-body {
    font-size: clamp(12px, 3.2vw, 16px);
    line-height: 1.28;
  }

  .ink-stamp-face {
    width: min(86%, 150px);
    border-width: 5px;
    font-size: clamp(16px, 5vw, 22px);
  }

  .board-stage {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .board-col.sketch-panel,
  .comments {
    transform: none;
  }

  .sketch-panel {
    padding: 10px 10px 8px;
  }

  .sketch-panel h1 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .board-page .board-row {
    grid-template-columns: 22px 28px minmax(0, 1fr) auto;
    min-height: 40px;
    padding: 4px 6px;
    gap: 6px;
  }

  .board-page .place {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .board-page .ink-face {
    width: 28px;
    height: 28px;
  }

  .board-page .who {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .board-page .pts {
    font-size: 15px;
    min-width: 0;
    padding: 1px 6px 2px;
  }

  .board-page .pts::after {
    content: none;
  }

  .comments {
    display: flex;
    transform: none;
  }

  .comment-form {
    grid-template-columns: 1fr;
  }

  .sketch-btn {
    width: 100%;
  }

  .strip {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 6px;
  }

  .score-label {
    display: none;
  }

  .score-block {
    justify-self: end;
    padding: 4px 8px;
  }

  .you-chip {
    justify-self: center;
    padding: 4px 8px 4px 4px;
    min-width: 0;
  }

  .ink-face {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .door .wordmark {
    font-size: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .score-pop.is-on,
  .card.is-miss,
  .ink-stamp.is-in .ink-stamp-face,
  .pair.is-fresh,
  .clock-hand {
    animation: none;
  }

  .ink-stamp.is-in .ink-stamp-face {
    transform: rotate(-14deg) scale(1);
    opacity: 1;
  }
}
