:root {
  --bg: #e6eee9;
  --surface: #f7faf7;
  --surface-2: #dde8e2;
  --line: #c3d3ca;
  --ink: #15231c;
  --muted: #536a5e;
  --jade: #1d6a50;
  --jade-soft: #cfe5da;
  --vermilion: #b4342b;
  --vermilion-soft: #f3d9d5;
  --tile: #fbf8ee;
  --tile-edge: #d6cdb4;
  --tile-back: #1d6a50;
  --tail: #e3b54a;
  --felt: #2b6e55;
  --felt-2: #1d5141;
  --rim: #6b4529;
  --on-felt: #eef6f1;
  --font-display: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --radius-s: 6px;
  --radius-m: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d1813;
    --surface: #14241d;
    --surface-2: #1b3027;
    --line: #2a4337;
    --ink: #e2ece6;
    --muted: #93aa9e;
    --jade: #56bb93;
    --jade-soft: #1d3d30;
    --vermilion: #ec7a6f;
    --vermilion-soft: #3d201d;
    --tile: #ece5d2;
    --tile-edge: #a99f84;
    --tile-back: #2c8a67;
    --tail: #d6a73e;
    --felt: #1f4d3d;
    --felt-2: #11302a;
    --rim: #3f2a1a;
    --on-felt: #e2ece6;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1813;
  --surface: #14241d;
  --surface-2: #1b3027;
  --line: #2a4337;
  --ink: #e2ece6;
  --muted: #93aa9e;
  --jade: #56bb93;
  --jade-soft: #1d3d30;
  --vermilion: #ec7a6f;
  --vermilion-soft: #3d201d;
  --tile: #ece5d2;
  --tile-edge: #a99f84;
  --tile-back: #2c8a67;
  --tail: #d6a73e;
  --felt: #1f4d3d;
  --felt-2: #11302a;
  --rim: #3f2a1a;
  --on-felt: #e2ece6;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  padding-inline: 16px;
  padding-block: 20px 48px;
}
.wrap { max-width: 980px; margin-inline: auto; display: grid; gap: 20px; }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); line-height: 1.1; margin: 0; letter-spacing: 0.04em; text-wrap: balance; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }
.score { display: flex; gap: 8px; font-variant-numeric: tabular-nums; }
.score span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.85rem; color: var(--muted); }
.score b { color: var(--ink); font-weight: 700; }

/* tabs */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 2px solid var(--line); }
.tab {
  font: inherit; font-weight: 500; color: var(--muted);
  background: none; border: 0; padding: 10px 16px 12px; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap;
  transition: color 150ms var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--jade); font-weight: 700; }
.tab:focus-visible, .opt:focus-visible, .btn:focus-visible, input:focus-visible { outline: 3px solid var(--jade); outline-offset: 2px; }

.panel { display: grid; gap: 20px; }
.panel h2 { font-family: var(--font-display); font-size: 1.35rem; margin: 0; letter-spacing: 0.02em; }
.lede { margin: 0; color: var(--muted); max-width: 62ch; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 20px; display: grid; gap: 14px; align-content: start; }

/* tiles */
.tile {
  display: inline-grid; place-items: center; position: relative;
  width: 2.6em; height: 3.4em; border-radius: var(--radius-s);
  background: var(--tile); color: #1a1a1a;
  border: 1px solid var(--tile-edge);
  box-shadow: 0 3px 0 var(--tile-back), 0 5px 10px rgb(0 0 0 / 0.15);
  font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; line-height: 1;
}
.tile.lg { font-size: 2.2rem; }
.tile .num { position: absolute; top: 0.18em; left: 0.24em; font-family: var(--font-body); font-size: 0.38em; font-weight: 700; color: #6b5d3a; }
.tile.season { color: #b4342b; }
.tile.gentleman { color: #1d5a8a; }
.tile.zhong { color: #b4342b; }
.tile.fa { color: #1d6a50; }
.tile-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* dice game */
.hud { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 16px; }
.banner { display: grid; gap: 2px; min-height: 3.6em; }
.banner .step { font-size: 0.78rem; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; }
.banner .say { font-family: var(--font-display); font-size: clamp(1.1rem, 0.95rem + 0.9vw, 1.5rem); font-weight: 900; line-height: 1.35; text-wrap: balance; }
.banner .say em { font-style: normal; color: var(--vermilion); }
.game { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .game { grid-template-columns: minmax(0, 1fr); } }
.table-wrap { display: grid; gap: 10px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn:disabled { opacity: 0.4; cursor: default; transform: none; }

.mj-table {
  position: relative; width: 100%; max-width: 560px; aspect-ratio: 1 / 1.02; margin-inline: auto;
  border-radius: 18px; overflow: hidden; user-select: none; -webkit-user-select: none;
  background: radial-gradient(120% 80% at 50% 0%, #2c4560 0%, #16222f 60%, #0e161f 100%);
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.25);
  color: #f2f5f7;
  --tile-back: #b8323a;
  --hot: #f1c04d;
  --open: #ff5a4a;
}
.plane {
  position: absolute; left: 1%; width: 98%; aspect-ratio: 1; bottom: 15%;
  transform-origin: 50% 100%; transform: perspective(620px) rotateX(44deg);
  border-radius: 16px;
  background: radial-gradient(circle at 50% 50%, #2f8a64 0%, #1f6a4c 70%, #185a40 100%);
  box-shadow: inset 0 0 0 10px #8c2a2a, inset 0 0 0 13px #5e1b1b, 0 30px 40px rgb(0 0 0 / 0.45);
}
.plane-center { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.wall { position: absolute; touch-action: none; }
.wall[data-w="0"], .wall[data-w="2"] { left: 18%; right: 18%; height: 11%; padding-block: 6px; }
.wall[data-w="1"], .wall[data-w="3"] { top: 18%; bottom: 18%; width: 11%; padding-inline: 6px; }
.wall[data-w="0"] { bottom: 6%; }
.wall[data-w="2"] { top: 6%; }
.wall[data-w="1"] { right: 6%; }
.wall[data-w="3"] { left: 6%; }
.stacks { display: flex; gap: 2px; width: 100%; height: 100%; border-radius: 3px; transition: outline-color 150ms var(--ease); outline: 2px solid transparent; outline-offset: 4px; }
.wall[data-w="2"] .stacks { flex-direction: row; }
.wall[data-w="1"] .stacks { flex-direction: column; }
.wall[data-w="0"] .stacks { flex-direction: row-reverse; }
.wall[data-w="3"] .stacks { flex-direction: column-reverse; }
.mj-table[data-phase="wall"] .wall { cursor: pointer; }
.mj-table[data-phase="wall"] .wall:hover .stacks { outline: 3px dashed #ffffff; }
.mj-table[data-phase="stack"] .wall { cursor: crosshair; }
.wall.hot .stacks { outline: 3px solid var(--hot); }
.wall.miss { animation: shake 320ms ease-in-out; }
@keyframes shake { 25% { transform: translate(-4px, 0); } 50% { transform: translate(4px, 0); } 75% { transform: translate(-2px, 0); } }
.stack {
  flex: 1; border-radius: 2px; background: #f7f2e2;
  box-shadow: inset 0 -4px 0 var(--tile-back);
  transition: opacity 220ms var(--ease), transform 120ms var(--ease), background-color 150ms var(--ease);
}
.stack.aim { background: #ffffff; transform: scale(1.4); box-shadow: 0 0 0 2px var(--open); position: relative; z-index: 2; }
.stack.tail { background: var(--hot); }
.stack.start { background: var(--open); box-shadow: 0 0 0 2px #ffffff, 0 0 12px var(--hot); }
.stack.wrong { background: transparent; box-shadow: inset 0 0 0 2px #ffb4ac; }
.stack.taken { opacity: 0.08; }

.seat {
  position: absolute; z-index: 3; pointer-events: none;
  display: flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px;
  background: rgb(10 18 28 / 0.75); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18);
  font-size: 0.78rem; font-weight: 700; line-height: 1.2; transition: box-shadow 150ms var(--ease);
}
.seat .avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 0.95rem; color: #1a1a1a; }
.seat .meta { display: grid; }
.seat .wind { font-size: 0.7rem; color: #b9c7d3; font-weight: 500; }
.seat[data-s="0"] { bottom: 12.5%; left: 2%; }
.seat[data-s="1"] { top: 15%; right: 2%; }
.seat[data-s="2"] { top: 2.5%; left: 50%; transform: translateX(-50%); }
.seat[data-s="3"] { top: 15%; left: 2%; }
.seat.dealer::after {
  content: "莊"; display: inline-grid; place-items: center; width: 1.6em; height: 1.6em;
  border-radius: 50%; background: #d9362b; color: #ffffff; font-size: 0.72rem;
}
.seat.taking { box-shadow: inset 0 0 0 2px var(--hot), 0 0 14px rgb(241 192 77 / 0.6); }

.centerbox {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none;
  display: grid; justify-items: center; gap: 0; padding: 6px 8px 4px; border-radius: 10px;
  background: rgb(10 18 28 / 0.78); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.15);
}
.centerbox .dice-row { display: flex; gap: 6px; }
.centerbox small { font-size: 0.7rem; color: #b9c7d3; }
.die {
  width: 24px; height: 24px; border-radius: 5px; padding: 3px;
  background: #fbf8ee; border: 1px solid #d6cdb4; box-shadow: 0 3px 0 rgb(0 0 0 / 0.35);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
}
.die i { width: 5px; height: 5px; border-radius: 50%; place-self: center; background: #1a1a1a; visibility: hidden; }
.die i.on { visibility: visible; }
.die.red i { background: #c8322b; }
.die.one i.on { width: 8px; height: 8px; }
.die.rolling { animation: wobble 90ms linear infinite alternate; }
@keyframes wobble { from { transform: rotate(-10deg) translateY(-2px); } to { transform: rotate(10deg) translateY(2px); } }
.total { font-family: var(--font-display); font-size: 1.1rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; color: #ffffff; }

.my-hand { position: absolute; left: 2%; right: 2%; bottom: 2.5%; z-index: 3; pointer-events: none; display: flex; gap: 1px; justify-content: center; }
.htile {
  position: relative; min-width: 0;
  flex: 1; max-width: 32px; aspect-ratio: 3 / 4.2; border-radius: 3px;
  background: linear-gradient(#ffffff, #efe9d8); color: #1a1a1a;
  box-shadow: 0 3px 0 #2c8a67, 0 5px 6px rgb(0 0 0 / 0.45);
  display: grid; place-items: center; align-content: center; gap: 1px;
  font-family: var(--font-display); font-weight: 900; line-height: 1; font-size: clamp(8px, 2.5vw, 13px);
}
.htile .wan { color: #c8322b; }
.htile .tong { color: #1d5a8a; }
.htile .tiao { color: #1d6a50; }
.htile.honor { font-size: clamp(11px, 3.4vw, 18px); }

.hand { position: absolute; left: 0; top: 0; width: 44px; height: 44px; z-index: 5; pointer-events: none; transition: transform 650ms var(--ease); }
.hand-rot { width: 100%; height: 100%; display: grid; place-items: center; }
.hand-emoji { font-size: 34px; line-height: 1; filter: drop-shadow(0 3px 3px rgb(0 0 0 / 0.4)); animation: poke 600ms ease-in-out infinite alternate; }
@keyframes poke { from { transform: translateY(-4px); } to { transform: translateY(4px); } }

.pop {
  position: absolute; left: 50%; top: 50%; z-index: 6; pointer-events: none;
  font-family: var(--font-display); font-weight: 900; font-size: 1.8rem; color: var(--tail);
  text-shadow: 0 2px 8px rgb(0 0 0 / 0.45); animation: pop 900ms var(--ease) forwards;
}
.pop.bad { color: #ffb4ac; }
.pop.time { top: 64%; font-size: 1.2rem; color: #ffffff; }
@keyframes pop {
  from { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
  20% { transform: translate(-50%, -70%) scale(1.15); opacity: 1; }
  to { transform: translate(-50%, -160%) scale(1); opacity: 0; }
}
.over {
  position: absolute; inset: 0; z-index: 7; display: grid; place-items: center; align-content: center; gap: 8px;
  background: rgb(8 18 14 / 0.86); color: #ffffff; text-align: center;
}
.over b { font-family: var(--font-display); font-size: 3rem; line-height: 1; }
.over .btn { justify-self: center; background: #ffffff; color: #111111; margin-top: 8px; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 0.8rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.persp { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.persp td { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.persp td:last-child { text-align: right; font-weight: 700; }

/* quiz */
.q { display: grid; gap: 10px; }
.q-title { font-weight: 700; margin: 0; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.opt {
  font: inherit; font-weight: 500; text-align: center; cursor: pointer;
  background: var(--surface); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 12px;
  transition: transform 120ms var(--ease), border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.opt:hover:not(:disabled) { border-color: var(--jade); transform: translateY(-1px); }
.opt:active:not(:disabled) { transform: translateY(1px); }
.opt:disabled { cursor: default; opacity: 0.6; }
.opt.is-right { border-color: var(--jade); background: var(--jade-soft); opacity: 1; font-weight: 700; }
.opt.is-wrong { border-color: var(--vermilion); background: var(--vermilion-soft); opacity: 1; }
.feedback { border-radius: 10px; padding: 12px 14px; background: var(--surface-2); font-size: 0.95rem; }
.feedback.good { border-left: 4px solid var(--jade); }
.feedback.bad { border-left: 4px solid var(--vermilion); }
.feedback p { margin: 0; }
.feedback p + p { margin-top: 6px; }
.btn {
  font: inherit; font-weight: 700; cursor: pointer; justify-self: start;
  background: var(--ink); color: var(--bg); border: 0; border-radius: 999px; padding: 10px 22px;
  transition: transform 120ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.mnemonic { font-family: var(--font-display); font-size: 1.02rem; line-height: 1.9; margin: 0; }
.mnemonic em { font-style: normal; color: var(--vermilion); }

/* seat flower grid */
.seat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 480px) { .seat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.seat-cell { background: var(--surface-2); border-radius: 10px; padding: 10px; display: grid; gap: 6px; justify-items: center; font-size: 0.85rem; }
.seat-cell.hot { background: var(--jade-soft); box-shadow: inset 0 0 0 2px var(--jade); }
.seat-cell b { font-size: 0.95rem; }
.seat-cell .tile { font-size: 1rem; }

/* scenario */
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.facts li { background: var(--surface-2); border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; }
.hand-flowers { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 0.9rem; color: var(--muted); }
.breakdown { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.breakdown td { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.breakdown td:last-child { text-align: right; font-weight: 700; white-space: nowrap; }
.breakdown tr.zero td { color: var(--muted); font-weight: 400; }
.breakdown tr.sum td { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 900; font-size: 1.05rem; }
.pay { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 0.9rem; color: var(--muted); }
.pay label { display: inline-flex; align-items: center; gap: 6px; }
.pay input { width: 4.5em; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; font-variant-numeric: tabular-nums; }
.pay output { color: var(--ink); font-weight: 700; }

/* cheat sheet */
.sheet { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.sheet h3 { margin: 0; font-size: 0.8rem; letter-spacing: 0.12em; color: var(--muted); }
.sheet table { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.sheet td { padding: 6px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.sheet td:last-child { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 10px; }
.sheet td small { display: block; color: var(--muted); font-size: 0.8rem; }
.foot { color: var(--muted); font-size: 0.82rem; margin: 0; }

/* match timer */
.match-hud { display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 0.85rem; }
.match-hud b { color: var(--ink); }
.match-hud .clock { font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; color: var(--ink); min-width: 4.4ch; text-align: right; }
.match-hud .pen b { color: var(--vermilion); }
.over h3 { margin: 0; font-family: var(--font-display); font-size: 1.5rem; }
.over p { margin: 0; max-width: 30ch; font-size: 0.9rem; color: #d5dee6; }
.result { display: grid; grid-template-columns: repeat(3, auto); gap: 2px 20px; font-variant-numeric: tabular-nums; }
.result span { display: grid; font-size: 0.75rem; color: #b9c7d3; }
.result span b { font-size: 1.3rem; color: #ffffff; }
.over .record { color: var(--hot); font-weight: 700; }

/* scene extras */
.round-tag { position: absolute; left: 2%; top: 2.5%; z-index: 3; padding: 4px 10px; border-radius: 8px; background: rgb(10 18 28 / 0.75); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.18); font-size: 0.78rem; font-weight: 700; pointer-events: none; }
.seat .lian { font-size: 0.68rem; color: var(--hot); margin-left: 2px; }
.seat.shooter { box-shadow: inset 0 0 0 2px var(--open), 0 0 14px rgb(255 90 74 / 0.6); }
.centerbox .big { font-family: var(--font-display); font-weight: 900; font-size: 1.25rem; line-height: 1.2; color: #ffffff; }
.centerbox .shout { color: var(--hot); }
.centerbox .tag { font-size: 0.72rem; color: #b9c7d3; }
.flower-row { position: absolute; left: 31%; bottom: 13%; z-index: 3; display: flex; gap: 3px; pointer-events: none; }
.flower-row .htile { flex: none; width: clamp(20px, 6vw, 30px); }
.no-hand .flower-row { left: 50%; bottom: 3%; transform: translateX(-50%); gap: 6px; }
.no-hand .flower-row .htile { width: clamp(30px, 9vw, 44px); font-size: clamp(14px, 4.4vw, 22px); }
.no-hand .flower-row .htile .fnum { font-size: 9px; }
.htile .fnum { position: absolute; top: 2px; left: 3px; font-family: var(--font-body); font-size: 7px; color: #6b5d3a; }
.htile.season { color: #b4342b; }
.htile.gentleman { color: #1d5a8a; }
.htile.new { animation: rise 500ms var(--ease) both; box-shadow: 0 3px 0 #2c8a67, 0 0 0 2px var(--hot); }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.htile.gap { margin-left: 4px; }
.htile.open { background: linear-gradient(#f1ece0, #ddd6c3); box-shadow: 0 2px 0 #8c2a2a, 0 3px 4px rgb(0 0 0 / 0.4); }
.htile.win { transform: translateY(-8px); box-shadow: 0 3px 0 #2c8a67, 0 0 0 2px var(--hot), 0 0 14px var(--hot); }
.htile[data-label]::before {
  content: attr(data-label); position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-body); font-size: 10px; font-weight: 700; color: #ffffff; white-space: nowrap;
}
.htile.win[data-label]::before { color: var(--hot); }

.pin {
  position: absolute; z-index: 4; pointer-events: none; transform: translate(-50%, -50%);
  padding: 2px 8px; border-radius: 999px; font-size: 0.68rem; font-weight: 700; white-space: nowrap;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.45);
}
.pin.head { background: #ffffff; color: #111111; }
.pin.tail { background: var(--hot); color: #111111; }
.stack.is-head { box-shadow: 0 0 0 2px #ffffff, 0 0 10px #ffffff; }
.stack.is-tail-end { box-shadow: 0 0 0 2px var(--hot), 0 0 10px var(--hot); }

.btn.small { padding: 6px 16px; font-size: 0.85rem; }
.match-hud .btn { align-self: center; }
.panel.is-paused .game > .card { pointer-events: none; opacity: 0.4; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
