/*
 * The table is its own world: indigo handloom cloth, saffron trim, lacquer-red
 * card backs. It keeps the same look in light and dark system themes.
 */
:root {
  color-scheme: dark;
  --felt: #1c2b4f;
  --felt-hi: #2c4478;
  --felt-lo: #0e172e;
  --night: #0a1122;
  --ink: #eef1f8;
  --ink-2: #b9c2da;
  --ink-3: #8390b1;
  --saffron: #f0b03f;
  --saffron-hi: #ffd583;
  --lacquer: #a3302c;
  --lacquer-lo: #641a1e;
  --paper: #fcfaf3;
  --paper-2: #f3eee0;
  --suit-red: #c21f2a;
  --suit-black: #161820;
  --suit-red-on-dark: #ff7b72;
  --line: rgba(238, 241, 248, 0.14);
  --panel: #111a33;
  --good: #8fdcad;
  --ui: 'Gemunu Libre', 'Arial Narrow', 'Roboto Condensed', 'Helvetica Neue', system-ui, sans-serif;
  --display: 'Abhaya Libre', Georgia, 'Times New Roman', serif;
  --move: 420ms;
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app {
  height: 100%;
  display: flex;
  flex-direction: column;
  /* Installed on a phone the app runs edge to edge, so keep clear of the notch and home bar. */
  padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}

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

/* Header: wordmark, token score, menu */

.hud {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px 24px;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, #080e1d, #0d1630);
  border-bottom: 1px solid rgba(240, 176, 63, 0.22);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: none;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.brand-si {
  font-family: var(--display);
  font-weight: 800;
  font-size: 34px;
  line-height: 0.9;
  color: var(--saffron);
}

.brand-en {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.board {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 3px;
}

.team {
  display: contents;
}

.team-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
}

.team-name .short {
  display: none;
}

.tokens {
  display: flex;
  gap: 3px;
}

.token {
  position: relative;
  width: 15px;
  height: 21px;
  border-radius: 3px;
  border: 1px dashed rgba(238, 241, 248, 0.2);
}

.token b,
.token svg {
  display: none;
}

.token.won {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  border: 0;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.token.won b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 10px;
  line-height: 1;
}

.token.won svg {
  display: block;
  width: 8px;
  height: 8px;
  fill: currentColor;
}

.token.red {
  color: var(--suit-red);
}

.token.black {
  color: var(--suit-black);
}

.token.fresh {
  animation: token-in 700ms var(--ease) both;
}

@keyframes token-in {
  from {
    transform: translateY(-14px) rotate(-12deg) scale(0.6);
    opacity: 0;
  }
}

.team-score {
  min-width: 2ch;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.carry {
  margin-top: 2px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(240, 176, 63, 0.16);
  color: var(--saffron-hi);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.actions {
  margin-left: auto;
  display: flex;
  gap: 2px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.icon-btn:hover:not([disabled]) {
  background: rgba(238, 241, 248, 0.08);
  color: var(--ink);
}

.icon-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

.icon-btn[aria-pressed='false'] {
  color: var(--ink-3);
}

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

/* The table */

.table {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(75% 60% at 50% 46%, rgba(76, 108, 176, 0.32), transparent 72%),
    radial-gradient(140% 110% at 50% 38%, var(--felt) 0%, var(--felt-lo) 100%);
}

/* Handloom weave */
.table::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.13) 0 1px, transparent 1px 3px);
}

.rail {
  position: absolute;
  inset: 10px;
  z-index: -1;
  border: 1px solid rgba(240, 176, 63, 0.16);
  border-radius: 36px;
  pointer-events: none;
}

.rail::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(240, 176, 63, 0.1);
  border-radius: 31px;
}

.info {
  position: absolute;
  top: 18px;
  z-index: 40;
  display: grid;
  gap: 5px;
}

.info-trump {
  left: 24px;
}

.info-tricks {
  right: 24px;
  justify-items: end;
}

.info-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.info-label .need {
  margin-left: 4px;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--ink-3);
  opacity: 0.8;
}

.trump-now {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trump-chip {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.trump-chip svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.trump-chip.red {
  color: var(--suit-red);
}

.trump-chip.black {
  color: var(--suit-black);
}

.trump-chip.empty {
  background: transparent;
  border: 1px dashed rgba(238, 241, 248, 0.25);
  box-shadow: none;
}

.trump-chip.pulse {
  animation: chip-pulse 900ms var(--ease);
}

@keyframes chip-pulse {
  0% {
    transform: scale(0.6) rotate(-10deg);
  }
  60% {
    transform: scale(1.12);
    box-shadow: 0 0 0 8px rgba(240, 176, 63, 0.3);
  }
}

.trump-by {
  max-width: 8.5em;
  font-size: 14px;
  line-height: 1.2;
  color: var(--ink-2);
}

.trick-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-2);
}

.trick-team {
  min-width: 2.6em;
}

.dots {
  display: flex;
  gap: 3px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid rgba(238, 241, 248, 0.26);
}

/* A small gap after the fifth dot marks the tricks needed to win the hand. */
.dot:nth-child(5) {
  margin-right: 4px;
}

.dot.on {
  background: var(--saffron);
  border-color: var(--saffron);
}

/* Seat name plates */

.seat {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 12, 26, 0.6);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  transition: border-color 200ms, box-shadow 200ms;
}

.seat-role {
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-3);
}

.seat[data-seat='0'] {
  z-index: 350;
}

.seat.turn {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(240, 176, 63, 0.2);
}

.badge {
  display: inline-grid;
  place-items: center;
  height: 18px;
  min-width: 18px;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.badge-dealer {
  background: var(--ink);
  color: var(--night);
}

.badge-trump {
  background: var(--paper);
}

.badge-trump svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.badge-trump.red {
  color: var(--suit-red);
}

.badge-trump.black {
  color: var(--suit-black);
}

.badge-call {
  background: var(--lacquer);
  color: var(--paper);
  text-transform: uppercase;
}

.thinking-dots {
  display: none;
  gap: 3px;
}

.seat.thinking .thinking-dots {
  display: inline-flex;
}

.thinking-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--saffron);
  animation: think 1s infinite ease-in-out;
}

.thinking-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.thinking-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes think {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* Cards */

.cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.card {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--cw);
  height: var(--ch);
  padding: 0;
  border: 0;
  background: none;
  perspective: 900px;
  transform-origin: 50% 50%;
  transition:
    transform var(--move) var(--ease),
    opacity var(--move) ease;
  pointer-events: auto;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.card:focus-visible {
  outline: none;
}

.card-lift,
.card-inner {
  display: block;
  width: 100%;
  height: 100%;
}

.card-lift {
  transition: transform 160ms ease;
}

.card-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform calc(var(--move) * 0.9) var(--ease);
}

.card.down .card-inner {
  transform: rotateY(180deg);
}

.face {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: calc(var(--cw) * 0.075);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.front {
  background: linear-gradient(160deg, #fffdf8, var(--paper) 60%, var(--paper-2));
  color: var(--suit-black);
  box-shadow:
    inset 0 0 0 1px rgba(40, 30, 10, 0.12),
    0 1px 1px rgba(0, 0, 0, 0.25),
    0 6px 14px rgba(3, 7, 20, 0.35);
  transition:
    filter 200ms,
    box-shadow 200ms;
}

.front.red {
  color: var(--suit-red);
}

.back {
  transform: rotateY(180deg);
  background:
    radial-gradient(circle at 50% 50%, var(--lacquer-lo) 0 17%, transparent 17.5%),
    repeating-linear-gradient(45deg, rgba(240, 176, 63, 0.5) 0 1px, transparent 1px 11%),
    repeating-linear-gradient(-45deg, rgba(240, 176, 63, 0.5) 0 1px, transparent 1px 11%),
    linear-gradient(160deg, var(--lacquer), var(--lacquer-lo));
  box-shadow:
    inset 0 0 0 calc(var(--cw) * 0.05) var(--paper),
    inset 0 0 0 calc(var(--cw) * 0.068) var(--saffron),
    0 1px 1px rgba(0, 0, 0, 0.3),
    0 5px 12px rgba(3, 7, 20, 0.35);
}

.back::after {
  content: 'ඕ';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: calc(var(--cw) * 0.26);
  color: var(--saffron);
}

.idx {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20%;
  line-height: 1;
}

.idx.tl {
  left: 3.5%;
  top: 4%;
}

.idx.br {
  right: 3.5%;
  bottom: 4%;
  transform: rotate(180deg);
}

.idx-rank {
  font-family: var(--display);
  font-weight: 800;
  font-size: calc(var(--cw) * 0.25);
  letter-spacing: -0.02em;
}

.idx-rank.ten {
  letter-spacing: -0.1em;
  margin-left: -0.1em;
}

.idx-suit {
  width: calc(var(--cw) * 0.15);
  height: calc(var(--cw) * 0.15);
  margin-top: calc(var(--cw) * 0.015);
  fill: currentColor;
}

.pip {
  position: absolute;
  width: calc(var(--cw) * 0.18);
  height: calc(var(--cw) * 0.18);
  fill: currentColor;
  transform: translate(-50%, -50%);
}

.pip.inv {
  transform: translate(-50%, -50%) rotate(180deg);
}

.pip-ace {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--cw) * 0.44);
  height: calc(var(--cw) * 0.44);
  fill: currentColor;
  transform: translate(-50%, -50%);
}

.court {
  position: absolute;
  inset: 13% 22%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4%;
  border: calc(var(--cw) * 0.016) solid currentColor;
  border-radius: calc(var(--cw) * 0.04);
  background:
    repeating-linear-gradient(45deg, rgba(240, 176, 63, 0.22) 0 1px, transparent 1px 9px),
    repeating-linear-gradient(-45deg, rgba(240, 176, 63, 0.22) 0 1px, transparent 1px 9px),
    #fbf3dd;
  box-shadow: inset 0 0 0 calc(var(--cw) * 0.018) #fbf3dd, inset 0 0 0 calc(var(--cw) * 0.03) rgba(240, 176, 63, 0.9);
}

.court-letter {
  font-family: var(--display);
  font-weight: 800;
  font-size: calc(var(--cw) * 0.36);
  line-height: 0.9;
}

.court-suit {
  width: calc(var(--cw) * 0.17);
  height: calc(var(--cw) * 0.17);
  fill: currentColor;
}

.card.mine.playable {
  cursor: pointer;
}

.card.mine.blocked .front {
  filter: brightness(0.62) saturate(0.6);
}

.card.selected .card-lift {
  transform: translateY(-16%);
}

.card.hinted .front {
  box-shadow:
    inset 0 0 0 1px rgba(40, 30, 10, 0.12),
    0 0 0 3px var(--saffron),
    0 0 22px rgba(240, 176, 63, 0.55);
}

.card.winner .front {
  box-shadow:
    inset 0 0 0 1px rgba(40, 30, 10, 0.12),
    0 0 0 3px var(--saffron),
    0 10px 26px rgba(3, 7, 20, 0.5);
}

.card:focus-visible .front {
  box-shadow:
    inset 0 0 0 1px rgba(40, 30, 10, 0.12),
    0 0 0 3px var(--saffron-hi);
}

.card.gone {
  pointer-events: none;
}

.cards.instant .card,
.cards.instant .card-inner {
  transition: none !important;
}

@media (hover: hover) {
  .card.mine.playable:hover .card-lift {
    transform: translateY(-12%);
  }
}

/* Status line, hint button and in-table panels */

.status {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 650;
  margin: 0;
  max-width: calc(100% - 32px);
  padding: 5px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 12, 26, 0.62);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  pointer-events: none;
}

.status:empty {
  display: none;
}

.suit-inline {
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  vertical-align: -0.1em;
  fill: currentColor;
}

.suit-inline.red {
  color: var(--suit-red-on-dark);
}

.suit-inline.black {
  color: var(--ink);
}

.status strong {
  font-weight: 700;
  color: var(--saffron-hi);
}

.hint-btn {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 650;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px 0 9px;
  border: 1px solid rgba(240, 176, 63, 0.4);
  border-radius: 999px;
  background: rgba(7, 12, 26, 0.6);
  color: var(--saffron-hi);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.hint-btn .icon {
  width: 17px;
  height: 17px;
}

.hint-btn:hover {
  background: rgba(240, 176, 63, 0.14);
}

.panel {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 800;
  width: min(calc(100% - 32px), 400px);
  padding: 16px;
  border: 1px solid rgba(240, 176, 63, 0.35);
  border-radius: 18px;
  background: rgba(9, 15, 32, 0.95);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  animation: panel-in 320ms var(--ease) both;
}

@keyframes panel-in {
  from {
    opacity: 0;
    margin-top: 10px;
  }
}

.panel-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 25px;
  line-height: 1.1;
  text-wrap: balance;
}

.panel-sub {
  margin: 4px 0 14px;
  font-size: 15px;
  color: var(--ink-2);
  text-wrap: balance;
}

.picker-suits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.suit-btn {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 2px 8px;
  border: 0;
  border-radius: 12px;
  background: var(--paper);
  color: var(--suit-black);
  cursor: pointer;
  transition:
    transform 150ms var(--ease),
    box-shadow 150ms;
}

.suit-btn.red {
  color: var(--suit-red);
}

.suit-btn svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.suit-btn .suit-name {
  font-size: 15px;
  font-weight: 700;
  color: #2c3140;
}

.suit-btn .suit-count {
  font-size: 13px;
  color: #6a6f7f;
}

.suit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 0 3px var(--saffron);
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn {
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(238, 241, 248, 0.25);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.btn:hover {
  background: rgba(238, 241, 248, 0.08);
}

.btn-primary {
  border-color: transparent;
  background: var(--saffron);
  color: #211503;
}

.btn-primary:hover {
  background: var(--saffron-hi);
}

.btn-wide {
  width: 100%;
}

/* Dialogs */

dialog.sheet {
  width: min(calc(100% - 32px), 600px);
  max-height: calc(100% - 32px);
  padding: 0;
  border: 1px solid rgba(240, 176, 63, 0.28);
  border-radius: 20px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

dialog.sheet-narrow {
  width: min(calc(100% - 32px), 440px);
}

dialog.sheet::backdrop {
  background: rgba(4, 8, 18, 0.62);
}

dialog.sheet[open] {
  animation: dialog-in 260ms var(--ease);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.sheet-inner {
  display: flex;
  flex-direction: column;
  max-height: inherit;
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 12px 6px 22px;
}

.sheet-head h2,
.sheet-body h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.1;
  text-wrap: balance;
}

.sheet-body {
  padding: 8px 22px 22px;
  overflow-y: auto;
}

.prose {
  font-family: var(--display);
  font-size: 17.5px;
  line-height: 1.5;
  color: #dfe4f0;
}

.prose p {
  margin: 0 0 12px;
  max-width: 62ch;
}

.prose .lede {
  font-size: 19px;
  color: var(--ink);
}

.prose h3 {
  margin: 20px 0 6px;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--saffron);
}

.prose a {
  color: var(--saffron-hi);
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 5px;
  border: 1px solid rgba(238, 241, 248, 0.25);
  border-bottom-width: 2px;
  border-radius: 5px;
  font-family: var(--ui);
  font-size: 0.85em;
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
}

.rule-table {
  width: 100%;
  margin: 4px 0 14px;
  border-collapse: collapse;
  font-size: 16.5px;
}

.rule-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rule-table td:last-child {
  padding-left: 16px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 16px;
  color: var(--saffron-hi);
  white-space: nowrap;
}

.rule-table tr:last-child td:last-child {
  white-space: normal;
  min-width: 11em;
  color: var(--ink-2);
  font-weight: 500;
}

.settings {
  display: grid;
  gap: 18px;
}

.seg {
  margin: 0;
  padding: 0;
  border: 0;
}

.seg legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.seg-options {
  display: flex;
  padding: 3px;
  border-radius: 12px;
  background: rgba(238, 241, 248, 0.07);
}

.seg-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.seg-options label {
  flex: 1;
  padding: 8px 6px;
  border-radius: 9px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}

.seg-options input:checked + label {
  background: var(--saffron);
  color: #211503;
}

.seg-options input:focus-visible + label {
  outline: 2px solid var(--saffron-hi);
  outline-offset: 1px;
}

.note {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--ink-3);
}

.toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.toggle input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--saffron);
}

.toggle-text {
  display: grid;
  font-size: 17px;
  font-weight: 600;
}

.toggle-text small {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-3);
}

.log {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.log th {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(238, 241, 248, 0.25);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-3);
  white-space: nowrap;
}

.log td {
  padding: 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  white-space: nowrap;
}

.log td.who {
  white-space: normal;
  color: var(--ink-2);
  font-size: 14px;
}

.log .us {
  color: var(--good);
}

.log .them {
  color: var(--suit-red-on-dark);
}

.log .muted {
  color: var(--ink-3);
}

.empty {
  margin: 12px 0 0;
  color: var(--ink-3);
}

.mini-trick {
  position: relative;
  height: 250px;
  --cw: 70px;
  --ch: 98px;
}

.mini-trick .slot {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 4px;
  transform: translate(-50%, -50%);
}

.mini-trick .slot .face {
  position: relative;
  width: var(--cw);
  height: var(--ch);
}

.mini-trick .slot-name {
  font-size: 14px;
  color: var(--ink-2);
}

.mini-trick .slot.win .face {
  box-shadow:
    inset 0 0 0 1px rgba(40, 30, 10, 0.12),
    0 0 0 3px var(--saffron);
}

.mini-trick .slot.win .slot-name {
  color: var(--saffron-hi);
  font-weight: 700;
}

.last-caption {
  margin: 8px 0 0;
  text-align: center;
  color: var(--ink-2);
}

.result .sheet-body {
  padding: 26px 24px 24px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.result-tokens {
  margin: 10px 0 2px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 56px;
  line-height: 1;
  color: var(--saffron);
}

.result-tokens small {
  display: block;
  margin-top: 6px;
  font-family: var(--ui);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

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

.result-detail {
  margin: 12px auto 16px;
  max-width: 34ch;
  font-family: var(--display);
  font-size: 17.5px;
  line-height: 1.45;
  color: #dfe4f0;
  text-wrap: pretty;
}

.result-score {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(238, 241, 248, 0.05);
  text-align: left;
}

.result-score .row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-2);
}

.result-score .row b {
  min-width: 2ch;
  font-size: 20px;
  text-align: right;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.confirm {
  padding-top: 24px;
  text-align: center;
}

.confirm p {
  margin: 8px 0 20px;
  color: var(--ink-2);
}

/* Home page */

.landing {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow-y: auto;
  background:
    radial-gradient(70% 55% at 72% 18%, rgba(76, 108, 176, 0.34), transparent 70%),
    radial-gradient(140% 110% at 50% 30%, var(--felt) 0%, var(--felt-lo) 100%);
  background-color: var(--felt-lo);
}

.landing::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.13) 0 1px, transparent 1px 3px);
}

.landing-inner {
  position: relative;
  display: grid;
  align-content: center;
  gap: 36px;
  max-width: 1080px;
  min-height: 100%;
  margin: 0 auto;
  padding: 40px 24px 32px;
  padding-top: max(40px, env(safe-area-inset-top, 0px));
  padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
}

.landing-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.landing-kicker,
.option-kicker {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--saffron);
}

.landing-title {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin: 6px 0 0;
  font-family: var(--display);
  font-weight: 800;
}

.landing-title .si {
  font-size: clamp(92px, 13vw, 164px);
  line-height: 0.9;
  color: var(--saffron);
}

.landing-title .en {
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1;
  color: var(--ink);
}

.landing-tagline {
  max-width: 34ch;
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.45;
  color: #dfe4f0;
  text-wrap: pretty;
}

.fan {
  position: relative;
  width: 330px;
  height: 250px;
  --cw: 108px;
  --ch: 151px;
}

.fan-card {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: var(--cw);
  height: var(--ch);
  margin-left: calc(var(--cw) / -2);
  transform-origin: 50% 120%;
  transition: transform 1100ms var(--ease);
}

.fan-card .back {
  transform: none;
}

.fan.open .fan-card:nth-child(1) {
  transform: rotate(-26deg);
}

.fan.open .fan-card:nth-child(2) {
  transform: rotate(-13deg);
  transition-delay: 60ms;
}

.fan.open .fan-card:nth-child(3) {
  transform: rotate(0deg) translateY(-6px);
  transition-delay: 120ms;
}

.fan.open .fan-card:nth-child(4) {
  transform: rotate(13deg);
  transition-delay: 180ms;
}

.fan.open .fan-card:nth-child(5) {
  transform: rotate(26deg);
  transition-delay: 240ms;
}

.landing-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.option {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid rgba(240, 176, 63, 0.28);
  border-radius: 22px;
  background: rgba(8, 13, 28, 0.84);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.option h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
}

.option > p {
  margin: 0;
  max-width: 46ch;
  font-size: 16.5px;
  color: var(--ink-2);
}

.option > .option-kicker {
  color: var(--saffron);
  font-size: 12px;
}

.option > .option-saved {
  color: var(--saffron-hi);
}

.option-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.landing-notice {
  margin: 0;
  padding: 12px 16px;
  border: 1px solid rgba(255, 123, 114, 0.45);
  border-radius: 14px;
  background: rgba(40, 10, 14, 0.85);
  color: #ffd9d5;
  font-size: 16px;
}

/* You, your partner opposite, and the two opponents either side. */
.mini-table {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto auto;
  align-items: center;
  justify-items: center;
  gap: 6px 14px;
  margin: 6px 0 4px;
  padding: 14px 8px;
  border-radius: 16px;
  background: rgba(238, 241, 248, 0.04);
}

.mt-felt {
  grid-area: 2 / 2;
  width: 120px;
  height: 64px;
  border: 1px solid rgba(240, 176, 63, 0.35);
  border-radius: 999px;
  background: radial-gradient(circle at 50% 40%, var(--felt-hi), var(--felt) 70%);
  box-shadow: inset 0 0 0 5px rgba(9, 15, 32, 0.35);
}

.mt-seat {
  display: grid;
  justify-items: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.mt-seat small {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
}

.mt-n {
  grid-area: 1 / 2;
}

.mt-w {
  grid-area: 2 / 1;
  justify-self: end;
}

.mt-e {
  grid-area: 2 / 3;
  justify-self: start;
}

.mt-s {
  grid-area: 3 / 2;
  padding: 1px 12px;
  border-radius: 999px;
  background: var(--saffron);
  color: #211503;
}

.option-form {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.landing-foot {
  display: grid;
  gap: 16px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding-top: 10px;
  border-top: 1px solid rgba(240, 176, 63, 0.3);
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ink-2);
}

.facts b {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.landing-foot > p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-3);
}

.landing-foot a,
.link-btn {
  color: var(--saffron-hi);
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 760px) {
  .landing-inner {
    align-content: start;
    gap: 26px;
    padding: 28px 16px 24px;
  }

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

  .fan {
    justify-self: center;
    width: 250px;
    height: 150px;
    --cw: 78px;
    --ch: 109px;
  }

  .landing-options {
    grid-template-columns: 1fr;
  }

  .option {
    padding: 20px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .fan-card {
    transition: none;
  }
}

/* Online rooms */

body[data-mode='online'] .solo-only {
  display: none !important;
}

body[data-mode='online']:not([data-host]) #btn-new {
  display: none;
}

.icon-btn-online {
  color: var(--saffron-hi);
}

.net {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 950;
  margin: 0;
  max-width: calc(100% - 32px);
  padding: 6px 14px;
  border: 1px solid rgba(255, 123, 114, 0.45);
  border-radius: 999px;
  background: rgba(40, 10, 14, 0.9);
  color: #ffd9d5;
  font-size: 15px;
  text-align: center;
  transform: translateX(-50%);
}

.net a {
  color: var(--saffron-hi);
}

.lobby {
  position: absolute;
  inset: 16px;
  z-index: 900;
  display: grid;
  gap: 12px;
  width: min(calc(100% - 32px), 460px);
  height: fit-content;
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 18px;
  overflow-y: auto;
  border: 1px solid rgba(240, 176, 63, 0.35);
  border-radius: 20px;
  background: #0a1122;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.lobby .eyebrow {
  margin: 0;
}

#lobby-code,
#room-code {
  color: var(--saffron-hi);
  letter-spacing: 0.2em;
}

.lobby-title {
  margin: -6px 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.1;
}

.invite {
  display: flex;
  gap: 8px;
}

.invite input,
.field input,
.field select {
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(238, 241, 248, 0.2);
  border-radius: 10px;
  background: rgba(238, 241, 248, 0.06);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.invite input {
  flex: 1;
}

.invite input:focus,
.field input:focus,
.field select:focus {
  outline: 2px solid var(--saffron);
  outline-offset: 0;
  border-color: transparent;
}

.field {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.field input,
.field select {
  letter-spacing: normal;
  text-transform: none;
  font-weight: 500;
}

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

.field select {
  height: 36px;
}

.btn-small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 15px;
  white-space: nowrap;
}

.form-error {
  margin: 0;
  color: var(--suit-red-on-dark);
  font-size: 15px;
}

.lobby-teams {
  display: grid;
  gap: 4px;
}

.lobby-team {
  margin: 6px 0 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron);
}

.lobby-teams ul,
.room-players {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.room-players {
  margin: 14px 0;
}

.lobby-seat {
  display: grid;
  grid-template-columns: 3.6em 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 5px 6px 5px 12px;
  border-radius: 12px;
  background: rgba(238, 241, 248, 0.05);
  font-size: 16px;
}

.lobby-seat.is-you {
  box-shadow: inset 0 0 0 1px rgba(240, 176, 63, 0.5);
}

.lobby-compass {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lobby-who {
  min-width: 0;
  overflow-wrap: anywhere;
}

.tag {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(238, 241, 248, 0.1);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  vertical-align: 1px;
}

.tag-you {
  background: rgba(240, 176, 63, 0.2);
  color: var(--saffron-hi);
}

.lobby-rules {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(238, 241, 248, 0.04);
}

.lobby-note {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

.lobby-note:empty {
  display: none;
}

.online-form {
  display: grid;
  gap: 14px;
}

.online-form .note,
#dlg-room .note {
  margin: 0;
  font-size: 15px;
}

.or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
}

.or::before,
.or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Reactions, nudges, hand review, stats */

.react {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 660;
}

.react .react-btn {
  position: static;
  padding: 0 8px;
}

.react-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 230px;
  padding: 8px;
  border: 1px solid rgba(240, 176, 63, 0.35);
  border-radius: 14px;
  background: rgba(9, 15, 32, 0.97);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.react-item {
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(238, 241, 248, 0.06);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.react-item:hover {
  background: rgba(240, 176, 63, 0.18);
}

.bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 5;
  padding: 5px 12px;
  border-radius: 14px;
  background: var(--paper);
  color: #1d2233;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
  animation: bubble 2.8s var(--ease) both;
}

.bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  border: 6px solid transparent;
  border-top-color: var(--paper);
  transform: translateX(-50%);
}

.seat[data-seat='3'] .bubble {
  left: 0;
  transform: none;
}

.seat[data-seat='1'] .bubble {
  left: auto;
  right: 0;
  transform: none;
}

.seat[data-seat='3'] .bubble::after {
  left: 18px;
}

.seat[data-seat='1'] .bubble::after {
  left: auto;
  right: 12px;
  transform: none;
}

@keyframes bubble {
  0% {
    opacity: 0;
    margin-bottom: -6px;
  }
  8%,
  85% {
    opacity: 1;
    margin-bottom: 0;
  }
  100% {
    opacity: 0;
  }
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-actions .btn-primary {
  flex: 1;
}

.review-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  --cw: 50px;
  --ch: 70px;
}

.review-trick {
  padding: 8px 10px 10px;
  border-radius: 12px;
  background: rgba(238, 241, 248, 0.05);
}

.review-head {
  display: flex;
  justify-content: space-between;
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

.review-head .us {
  color: var(--good);
}

.review-head .them {
  color: var(--suit-red-on-dark);
}

.review-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.review-cards .slot {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.review-cards .face {
  position: relative;
  width: var(--cw);
  height: var(--ch);
}

.review-cards .slot.win .face {
  box-shadow:
    inset 0 0 0 1px rgba(40, 30, 10, 0.12),
    0 0 0 3px var(--saffron);
}

.review-cards .slot-name {
  max-width: 100%;
  overflow: hidden;
  font-size: 12.5px;
  color: var(--ink-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.stats th,
.stats td {
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.stats thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.stats tbody th {
  font-weight: 500;
  color: var(--ink-2);
}

.stats td small {
  color: var(--ink-3);
}

.sheet-foot {
  margin: 12px 0 0;
}

.landing-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.landing-tip {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-3);
}

/* Narrow screens */

@media (max-width: 1100px) {
  .icon-btn span {
    display: none;
  }

  .icon-btn {
    padding: 0 8px;
  }
}

@media (max-width: 760px) {
  .hud {
    flex-wrap: wrap;
    row-gap: 6px;
    padding-block: 6px 8px;
  }

  .brand-si {
    font-size: 28px;
  }

  .actions {
    gap: 0;
  }

  .icon-btn {
    height: 34px;
    padding: 0 7px;
  }

  .board {
    order: 3;
    width: 100%;
    grid-template-columns: auto auto auto 1fr auto auto auto;
    column-gap: 6px;
  }

  .team-name .long {
    display: none;
  }

  .team-name .short {
    display: inline;
  }

  .team[data-team='1'] .team-name {
    grid-column: 5;
  }

  .tokens {
    gap: 2px;
  }

  .token {
    width: 9px;
    height: 13px;
    border-radius: 2px;
  }

  .token.won b {
    display: none;
  }

  .token.won svg {
    width: 7px;
    height: 7px;
  }

  .team-score {
    min-width: 1.4ch;
    font-size: 19px;
  }

  .info {
    top: 14px;
  }

  .info-trump {
    left: 18px;
  }

  .info-tricks {
    right: 18px;
  }

  .trump-chip {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .trump-chip svg {
    width: 21px;
    height: 21px;
  }

  .trump-by {
    max-width: 6.5em;
    font-size: 13px;
  }

  .info-label .need {
    display: none;
  }

  .trick-row {
    font-size: 13px;
    gap: 6px;
  }

  .dot {
    width: 7px;
    height: 7px;
    border-width: 1.25px;
  }

  .dot:nth-child(5) {
    margin-right: 3px;
  }

  .seat {
    height: 26px;
    padding: 0 8px;
    font-size: 14px;
  }

  .seat-role {
    display: none;
  }

  .status {
    font-size: 15px;
  }

  .rail {
    inset: 6px;
    border-radius: 24px;
  }

  .rail::after {
    border-radius: 19px;
  }

  .mini-trick {
    height: 230px;
    --cw: 60px;
    --ch: 84px;
  }
}

@media (max-width: 400px) {
  .brand-en {
    display: none;
  }

  .icon-btn {
    padding: 0 5px;
  }

  .trump-by {
    max-width: 5.5em;
  }

  .trick-row {
    gap: 4px;
  }

  .dots {
    gap: 2px;
  }

  .dot {
    width: 6px;
    height: 6px;
  }

  .dot:nth-child(5) {
    margin-right: 2px;
  }
}

/* Phones on their side: keep dialogs and the home page within one short screen. */
@media (max-height: 500px) {
  .result .sheet-body {
    padding: 14px 20px 16px;
  }

  .result-tokens {
    margin-top: 4px;
    font-size: 38px;
  }

  .result-tokens small {
    display: inline;
    margin-left: 8px;
  }

  .result-detail {
    margin: 6px auto 10px;
    font-size: 16px;
  }

  .result-score {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 12px;
    padding: 8px 12px;
  }

  .sheet-head {
    padding-top: 10px;
  }

  .landing-inner {
    gap: 20px;
    padding-top: 20px;
  }

  .landing-title .si {
    font-size: 72px;
  }

  .landing-title .en {
    font-size: 34px;
  }

  .landing-tagline {
    margin-top: 8px;
    font-size: 17px;
  }

  .fan {
    width: 220px;
    height: 140px;
    --cw: 66px;
    --ch: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --move: 1ms;
  }

  .card-inner,
  .card-lift {
    transition: none;
  }

  .token.fresh,
  .trump-chip.pulse,
  .panel,
  dialog.sheet[open],
  .thinking-dots i {
    animation: none;
  }
}
