:root {
  --bg: #f6f4f0;
  --surface: #ffffff;
  --ink: #1c1b1a;
  --ink-2: #6b6660;
  --line: rgba(28, 27, 26, 0.1);
  --well: rgba(28, 27, 26, 0.06);
  --board: #e5dfd4;
  --cell: #ffffff;
  --cell-side: #c9bda8;
  --board-side: #c9bda8;
  --fence: #2b2724;
  --bad: #d4392a;
  --focus: #2f7bf6;
  --gutter: 16px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-wrap: pretty;
}

h1,
h2,
p {
  margin: 0;
  text-wrap: pretty;
}

button {
  font: inherit;
  color: inherit;
  touch-action: manipulation;
}

[hidden] {
  display: none !important;
}

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

.quiet {
  color: var(--ink-2);
  font-size: 15px;
}

.center {
  text-align: center;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
}

.button:active:not(:disabled) {
  transform: scale(0.97);
}

.button:disabled {
  opacity: 0.4;
  cursor: default;
}

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.button.danger {
  background: var(--bad);
  border-color: var(--bad);
  color: #fff;
}

.button.plain {
  background: transparent;
  border-color: transparent;
}

.button.small {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 15px;
}

.segmented {
  display: inline-flex;
  padding: 2px;
  border-radius: 11px;
  background: var(--well);
}

.segmented button {
  min-width: 44px;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}

.segmented button[aria-checked='true'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.info {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0;
  border: 1.5px solid var(--ink-2);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  vertical-align: 1px;
  cursor: pointer;
}

/* Home and lobby share a centered column */

.home,
.lobby {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  display: grid;
  gap: 20px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.hero p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 17px;
}

.group {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
}

.group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.group-head h2,
.invite h2 {
  font-size: 15px;
  font-weight: 600;
}

.value {
  color: var(--ink-2);
  font-size: 15px;
}

.picker {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.idol {
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.idol img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  pointer-events: none;
}

.idol[aria-checked='true'] {
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5.5px var(--ink);
}

.idol:active:not(:disabled) {
  transform: scale(0.94);
}

.idol:disabled {
  opacity: 0.28;
  filter: grayscale(1);
  cursor: default;
}

.actions {
  display: grid;
  gap: 10px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stack {
  display: grid;
  gap: 16px;
}

.invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
}

.invite-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.link {
  color: var(--ink-2);
  font-size: 14px;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

.seats {
  container-type: inline-size;
  margin: 0;
  padding: 4px 16px;
  border-radius: 18px;
  background: var(--surface);
  list-style: none;
}

.seat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 0;
}

.seat + .seat {
  border-top: 1px solid var(--line);
}

.seat-face {
  flex: none;
  width: 40px;
  height: 40px;
  border: 2.5px solid var(--seat, var(--line));
  border-radius: 50%;
}

.seat-face.empty {
  border: 2px dashed var(--line);
}

.seat-text {
  display: grid;
  flex: 1 1 120px;
  min-width: 0;
}

.seat-name {
  font-weight: 600;
}

.seat.open .seat-name {
  color: var(--ink-2);
  font-weight: 500;
}

.seat-note {
  color: var(--ink-2);
  font-size: 14px;
}

.seat-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

@container (max-width: 440px) {
  .seat-controls {
    flex-basis: 100%;
    padding-left: 52px;
  }
}

/* The game
   The board takes all the room the players and controls leave, and they hug its edges.
   --chrome (set by the page) is the measured height of the players and controls. */

.game {
  --gap: 12px;
  --panel: clamp(220px, 28vw, 320px);
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  container-type: size;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: stretch;
  gap: var(--gap);
  padding: max(12px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

.players {
  container-type: inline-size;
  display: grid;
  grid-template-columns: repeat(var(--count, 2), minmax(0, 1fr));
  gap: 8px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 16px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.chip.is-turn,
.chip.is-won {
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--seat);
}

button.chip {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: inherit;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

button.chip.is-turn,
button.chip.is-won {
  background: var(--surface);
}

button.chip:active {
  transform: scale(0.97);
}

.chip-face-wrap {
  position: relative;
  flex: none;
  display: block;
  width: 36px;
  height: 36px;
}

.chip-face {
  display: block;
  width: 36px;
  height: 36px;
  border: 2.5px solid var(--seat);
  border-radius: 50%;
}

/* On your own picture: you can send a face from here. */
.chip-badge {
  position: absolute;
  right: -5px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, 0.12);
  color: var(--ink);
  font-size: 13px;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.chip.is-resting .chip-badge {
  opacity: 0.35;
}

/* The faces you can send: one row, a word under each. */
.emotes {
  position: fixed;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, 48px);
  gap: 2px;
  padding: 6px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 0 0 1px var(--line);
  animation: emotes-in 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes emotes-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.emote {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 58px;
  padding: 6px 0 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.emote:active {
  background: var(--well);
}

@media (hover: hover) {
  .emote:hover,
  .bar-button:hover {
    background: var(--well);
  }
}

.emote-face {
  font-size: 26px;
  line-height: 1.1;
}

.emote-word {
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.chip-text {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.chip-name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chip-tag {
  margin-left: 6px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}

.pips {
  display: flex;
  gap: 2px;
  height: 10px;
}

.pips i {
  flex: none;
  width: 3px;
  height: 10px;
  border-radius: 1.5px;
  background: var(--well);
}

.pips i.on {
  background: var(--fence);
}

.pips i:nth-child(5n):not(:last-child) {
  margin-right: 4px;
}

/* Three or four players in a narrow row: stack each chip. */
@container (max-width: 520px) {
  [data-count='3'] .chip,
  [data-count='4'] .chip {
    flex-direction: column;
    gap: 6px;
    padding: 8px 4px;
    text-align: center;
  }
  [data-count='3'] .chip-text,
  [data-count='4'] .chip-text {
    justify-items: center;
    max-width: 100%;
  }
  [data-count='4'] .chip-tag {
    display: none;
  }
}

/* The board sits right under the players; spare height (a square board on a tall phone) goes
   below it, so the status and Hint stay at the bottom, in reach of a thumb. */
.board-area {
  display: grid;
  place-items: start center;
}

.board {
  /* As wide as it can be while its height (width times --aspect, set by the board) still fits. */
  --size: max(160px, min(100cqw, (100cqh - var(--chrome, 220px) - 2 * var(--gap)) / var(--aspect, 1)));
  display: block;
  width: var(--size);
  height: calc(var(--size) * var(--aspect, 1));
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  overflow: visible;
}

.dock {
  display: grid;
  gap: 10px;
}

.status {
  min-height: 2.7em;
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
}

.status.is-problem {
  color: var(--bad);
}

.controls {
  /* Room for one row of buttons even when there are none, so the board never changes size when
     Play again appears. */
  min-height: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* Small actions under the board: the board gets the room, not the buttons. */
.controls .button {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 15px;
}

/* The bar along the top of the game: Menu on the left, New game and Mute on the right. */
.game-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-inline: -10px;
}

.bar-end {
  display: flex;
  align-items: center;
}

.bar-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.bar-button:active {
  background: var(--well);
}

.bar-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bar-speaker {
  fill: currentColor;
}

.bar-slash,
.is-muted .bar-waves {
  display: none;
}

.is-muted .bar-slash {
  display: inline;
}

/* Wide or short screens: players and controls in a panel beside the board,
   players along its top edge and controls along its bottom edge. */
@media (min-aspect-ratio: 5/4) {
  .game {
    max-width: calc(100dvh + var(--panel) + 40px);
    grid-template-columns: var(--panel) auto;
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas: 'bar board' 'players board' 'dock board';
    justify-content: center;
    column-gap: 20px;
  }
  .game-bar {
    grid-area: bar;
  }
  .players {
    grid-area: players;
    grid-template-columns: 1fr;
    align-self: start;
  }
  .players[data-count] .chip {
    flex-direction: row;
    gap: 10px;
    padding: 8px 10px;
    text-align: left;
  }
  .players[data-count] .chip-text {
    justify-items: start;
  }
  .players[data-count] .chip-tag {
    display: inline;
  }
  .board-area {
    grid-area: board;
    place-items: center;
  }
  .board {
    --size: max(160px, min(100cqw - var(--panel) - 20px, 100cqh / var(--aspect, 1)));
  }
  .dock {
    grid-area: dock;
    align-self: end;
  }
}

/* Short and wide, like a phone on its side: three or four players share two columns. */
@media (min-aspect-ratio: 5/4) and (max-height: 560px) {
  .players[data-count='3'],
  .players[data-count='4'] {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .players[data-count] .chip {
    gap: 8px;
    padding: 6px 8px;
  }
  .chip-face {
    width: 30px;
    height: 30px;
  }
  .players[data-count='3'] .chip-tag,
  .players[data-count='4'] .chip-tag {
    display: none;
  }
}

/* Board drawing */

.b-base {
  fill: var(--board);
}

.b-base-side {
  fill: var(--board-side);
}

.b-cells rect {
  fill: url(#b-glass) var(--cell);
  stroke: rgba(255, 255, 255, 0.7);
  stroke-width: 0.2;
}

.b-glass-tint {
  fill: rgba(255, 255, 255, 0.58);
}

.b-veil {
  fill: rgba(250, 248, 244, 0.42);
}

.b-edge-shade {
  fill: rgba(38, 28, 18, 0.5);
}

.b-sides rect {
  fill: url(#b-dark) var(--cell-side);
}

.b-dark-tint {
  fill: rgba(24, 18, 12, 0.55);
}

.b-fence {
  fill: var(--fence);
}

.b-ghost {
  fill: var(--fence);
  opacity: 0.35;
  pointer-events: none;
}

.b-ghost.b-bad {
  fill: var(--bad);
  opacity: 0.45;
}

.b-dot {
  opacity: 0.55;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
  outline: none;
}

.b-dot.b-over,
.b-dot:focus-visible {
  opacity: 0.95;
  transform: scale(1.45);
}


.b-trail {
  opacity: 0.4;
}

.b-hint-step {
  fill: none;
  stroke: var(--ink);
  stroke-width: 0.55;
  stroke-dasharray: 1.4 1;
  animation: breathe 1.4s ease-in-out infinite;
}

.b-hint-fence {
  fill: var(--fence);
  animation: breathe 1.4s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.6;
  }
}

.board.b-point {
  cursor: pointer;
}

.b-pawn {
  pointer-events: none;
}

/* Animated idols: canvases over the board, and a see-through board above them for faces. */
.board-box {
  position: relative;
}

.b-layer,
.board-over {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.b-idol {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.b-idol.is-ready {
  opacity: 1;
}

/* The winner's card, under its victory dance on the board. */
.b-card {
  position: absolute;
  left: 50%;
  z-index: 30000;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 200px;
  max-width: 94%;
  padding: 12px 18px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 30px rgba(28, 27, 26, 0.18), 0 0 0 1px rgba(28, 27, 26, 0.05);
  opacity: 0;
  transform: translate(-50%, 10px) scale(0.92);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
  pointer-events: none;
}

.b-card.is-on {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.b-card-title {
  margin: 0;
  color: var(--seat);
  font-size: 18px;
  font-weight: 700;
}

.b-card-time {
  margin: -6px 0 2px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.b-card-stats {
  display: flex;
  gap: 14px;
}

.b-card-stat {
  display: grid;
  justify-items: center;
}

.b-card-stat b {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.b-card-stat small {
  margin-left: 1px;
  font-size: 15px;
  font-weight: 600;
}

.b-card-stat span {
  color: var(--ink-2);
  font-size: 12px;
  white-space: nowrap;
}

/* The edge a player races to breathes in their color once they are close to winning: it swells
   and glows, and faster when they are one step away. With Reduce Motion the glow just stays on. */
.b-goal {
  transform-box: fill-box;
  transform-origin: center;
}

.b-goal-glow {
  opacity: 0;
  pointer-events: none;
}

.b-goal-glow.is-near {
  opacity: 0.6;
  animation: goal-glow 1.6s ease-in-out infinite;
}

.b-goal.is-near.is-across {
  animation: goal-swell-across 1.6s ease-in-out infinite;
}

.b-goal.is-near.is-along {
  animation: goal-swell-along 1.6s ease-in-out infinite;
}

.b-tint {
  opacity: 0.3;
  pointer-events: none;
  animation: tile-breathe 1.6s ease-in-out infinite;
}

.b-goal-glow.is-close,
.b-goal.is-close,
.b-tint.is-close {
  animation-duration: 1.05s;
}

@keyframes tile-breathe {
  0%,
  100% {
    opacity: 0.06;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes goal-glow {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes goal-swell-across {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.9);
  }
}

@keyframes goal-swell-along {
  0%,
  100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(1.9);
  }
}

/* The white base an animated idol stands on: raised like the squares, but solid, with a rim in
   its player's color. */
.b-stand {
  display: none;
}

.b-rive .b-stand {
  display: inline;
}

.b-stand-side {
  fill: var(--cell-side);
}

.b-stand-top {
  fill: #fff;
  stroke-width: 0.6;
}

.b-turn .b-stand-top {
  stroke-width: 0.95;
}

.b-rive .b-body,
.b-rive .b-shadow {
  display: none;
}

.b-pawn.b-lifted {
  opacity: 0.9;
}

.b-ring {
  fill: #fff;
  stroke-width: 0.9;
}

.b-turn .b-ring {
  stroke-width: 1.25;
}

.b-shadow {
  fill: rgba(0, 0, 0, 0.16);
}

.b-won .b-ring {
  stroke-width: 1.5;
}

/* A face over an idol: an emote, or a reaction to what just happened. */
.b-bubble-back {
  fill: #fff;
  stroke-width: 0.55;
}

.b-bubble-face {
  font-size: 4.6px;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}

.b-refused {
  animation: refused 0.45s ease-out forwards;
  pointer-events: none;
}

@keyframes refused {
  from {
    opacity: 0.6;
  }
  to {
    opacity: 0;
  }
}

.confetti {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}

/* Sheets */

.sheet {
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 24px);
  padding: 24px 20px 20px;
  border: 0;
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
}

.sheet::backdrop {
  background: rgba(24, 22, 20, 0.32);
}

.sheet[open] {
  animation: sheet-in 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

.sheet h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sheet > * + * {
  margin-top: 14px;
}

.sheet-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 6px;
}

.sheet-actions .button {
  flex: 1 1 0;
}

.sheet-list {
  display: grid;
  gap: 8px;
}

.field {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.field-label {
  font-size: 15px;
  font-weight: 600;
}

.note {
  color: var(--ink-2);
  font-size: 14px;
}

.rules {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  font-size: 15px;
}

.rules b {
  font-weight: 600;
}

@media (max-width: 600px) {
  .sheet {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }

  /* On a phone the board runs edge to edge, as big as the screen allows. */
  .board-area {
    margin-inline: calc(-1 * var(--gutter));
  }

  .board {
    --size: max(160px, min(100cqw + 2 * var(--gutter), (100cqh - var(--chrome, 220px) - 2 * var(--gap)) / var(--aspect, 1)));
  }
}

@media (max-height: 520px) and (min-width: 601px) {
  .sheet {
    width: min(640px, calc(100vw - 32px));
    padding: 16px 20px;
  }
  .sheet > * + * {
    margin-top: 8px;
  }
  .sheet h2 {
    font-size: 20px;
  }
  .rules {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
