:root {
  font-family: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #26332e;
  --ink: #26332e;
  --paper: #fffdf7;
  --paper-2: #fbf5e9;
  --line: #e2d6bf;
  --accent: #1f7a68;
  --accent-dark: #124f42;
  --accent-soft: #e6f2ee;
  --gold: #eaa33c;
  --gold-dark: #c9821f;
  --felt: #2f8163;
  --felt-dark: #1f5f48;
  --wood: #7c5330;
  --wood-2: #5c3c22;
  --wood-lit: #9a6b40;
  --bone: #fffefb;
  --bone-2: #f4ecdb;
  --bone-edge: #d8ccb2;
  --pip: #2b3831;
  --danger: #b0432f;
  --danger-dark: #8a3121;
  --shadow: 0 18px 40px rgba(58, 45, 24, .14);
  --shadow-lg: 0 26px 60px rgba(58, 45, 24, .20);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(1200px 620px at 50% -12%, #fffaf0 0, rgba(255,250,240,0) 60%),
    radial-gradient(1000px 560px at 100% 112%, #f4e6cb 0, rgba(244,230,203,0) 55%),
    radial-gradient(900px 520px at 0% 100%, #f7ecd6 0, rgba(247,236,214,0) 55%),
    linear-gradient(158deg, #fdf6ea 0%, #f2e4cc 100%);
  background-attachment: fixed;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
/* While playing, the whole page becomes a green felt table. */
body.in-game {
  background:
    radial-gradient(150% 120% at 50% -20%, rgba(255,255,255,.07), rgba(0,0,0,0) 50%),
    radial-gradient(130% 150% at 50% 125%, rgba(0,0,0,.4), rgba(0,0,0,0) 55%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.014) 0 2px, rgba(0,0,0,.02) 2px 4px),
    linear-gradient(160deg, #35896a 0%, #22664e 55%, #184c3a 100%);
}
body.in-game .eyebrow { color: rgba(255,255,255,.72); }
body.in-game h1 { background: linear-gradient(180deg, #ffffff, #d7ebe2); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 1px 0 rgba(0,0,0,.18); }
body.in-game .icon-btn { background: rgba(255,255,255,.9); }
h1, h2, h3 { font-family: "Fredoka", "Nunito", ui-rounded, system-ui, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; font-weight: 800; }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 3px solid rgba(31,122,104,.55); outline-offset: 2px; }

.app-shell { width: min(1100px, 100%); margin: 0 auto; padding: 22px clamp(12px, 3vw, 32px) 60px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; flex-direction: column; }
.eyebrow { margin: 0 0 5px; font-size: 11.5px; font-weight: 800; letter-spacing: .2em; color: #a08d6b; text-transform: uppercase; }
.small { font-size: 13px; }
h1 { margin: 0; font-size: clamp(31px, 5.6vw, 52px); letter-spacing: -0.015em; line-height: .98;
     background: linear-gradient(180deg, #24907a, #124f42); -webkit-background-clip: text; background-clip: text; color: transparent;
     text-shadow: 0 1px 0 rgba(255,255,255,.4); }
h2 { margin: 0 0 10px; font-size: clamp(23px, 4vw, 33px); letter-spacing: -0.01em; }
h3 { margin: 0 0 6px; font-size: clamp(20px, 4vw, 26px); }
p { margin-top: 0; line-height: 1.5; }
.muted { color: #7d7359; }

/* Cards */
.card {
  background: linear-gradient(180deg, var(--paper), var(--paper-2));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(18px, 4vw, 30px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.8);
}
.hidden { display: none !important; }

/* Buttons — chunky and tactile */
button.primary, button.secondary, button.ghost, button.danger {
  border: 0; border-radius: 16px; min-height: 54px; padding: 13px 22px; font-size: 16px; position: relative;
  transition: transform .07s ease, box-shadow .14s ease, background .15s ease, filter .15s ease;
}
button.primary::after, button.danger::after {
  content: ""; position: absolute; inset: 2px 2px 50% 2px; border-radius: 14px 14px 30px 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0)); pointer-events: none;
}
.primary { color: #fff; background: linear-gradient(180deg, #2ba189, var(--accent));
  box-shadow: 0 6px 0 var(--accent-dark), 0 14px 24px rgba(18,79,66,.30); }
.primary:hover:not(:disabled) { filter: brightness(1.05); }
.primary:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--accent-dark), 0 6px 12px rgba(18,79,66,.24); }
.secondary { color: var(--accent-dark); background: linear-gradient(180deg, #fff, var(--accent-soft));
  border: 1px solid #bcdfd4; box-shadow: 0 5px 0 #cfe4dc, 0 10px 18px rgba(58,45,24,.10); }
.secondary:hover:not(:disabled) { filter: brightness(1.02); }
.secondary:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 2px 0 #cfe4dc; }
.ghost { background: rgba(255,255,255,.55); color: var(--ink); border: 1px solid var(--line); box-shadow: none; min-height: 46px; border-radius: 12px; }
.ghost:hover { background: #fff; }
.danger { color: #fff; background: linear-gradient(180deg, #cf5844, var(--danger)); box-shadow: 0 6px 0 var(--danger-dark), 0 12px 22px rgba(138,49,33,.28); }
.danger:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 2px 0 var(--danger-dark); }
.big { min-height: 62px; font-size: 18px; }
.reset-btn { margin-top: 14px; width: 100%; min-height: 42px; font-size: 13px; color: #8a6f5a; }
.icon-btn { min-height: 46px; min-width: 46px; border-radius: 14px; background: rgba(255,255,255,.72);
  border: 1px solid var(--line); font-size: 20px; padding: 6px; box-shadow: 0 4px 0 #ece1cb; transition: transform .07s; }
.icon-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #ece1cb; }
.icon-btn.is-muted { opacity: .6; }

/* Home */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); gap: 18px; align-items: start; margin-top: 4vh; }
.home-card { text-align: center; position: relative; overflow: hidden; }
.home-card::before {
  content: ""; position: absolute; inset: auto -46px -54px auto; width: 200px; height: 200px;
  background: radial-gradient(circle at 30% 30%, rgba(234,163,60,.20), rgba(234,163,60,0) 70%); pointer-events: none;
}
.home-card::after {
  content: ""; position: absolute; inset: -60px auto auto -50px; width: 180px; height: 180px;
  background: radial-gradient(circle at 60% 60%, rgba(31,122,104,.12), rgba(31,122,104,0) 70%); pointer-events: none;
}
.home-card h2 { font-size: clamp(26px, 5vw, 36px); }
.home-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.panel { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--line); text-align: left; }
label { display: block; font-weight: 800; margin: 12px 0; color: #5f5744; font-size: 15px; }
input { width: 100%; min-height: 54px; margin-top: 7px; border-radius: 14px; border: 1.5px solid var(--line);
  background: #fffdf8; padding: 12px 16px; font-size: 18px; font-weight: 700; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #b7ab90; font-weight: 600; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31,122,104,.16); }
#joinRoom { letter-spacing: .2em; text-transform: uppercase; font-weight: 800; }

/* Lobby / room code */
.room-card { margin-bottom: 16px; text-align: center; }
.room-code-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.room-code { font-family: "Fredoka", sans-serif; font-size: clamp(36px, 10vw, 62px); letter-spacing: .16em; color: var(--accent-dark);
  background: linear-gradient(180deg, #fff, var(--accent-soft)); padding: 6px 20px; border-radius: 16px; border: 2px dashed #bcdfd4;
  box-shadow: inset 0 2px 6px rgba(31,122,104,.08); }
#roomPinText { font-family: "Fredoka", sans-serif; letter-spacing: .12em; color: var(--gold-dark); font-size: 1.15em; }
#namePanel, #rpsPanel { max-width: 720px; margin: 16px auto; text-align: center; }
#namePanel input { max-width: 340px; margin: 0 auto 14px; }
#lobbyStatus { display: inline-flex; align-items: center; gap: 9px; }
#lobbyStatus::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(234,163,60,.5); animation: ping 1.5s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(234,163,60,.5); } 100% { box-shadow: 0 0 0 10px rgba(234,163,60,0); } }

/* Rock paper scissors */
.rps-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0; }
.rps { min-height: 128px; font-size: 50px; border-radius: 20px; border: 2px solid var(--line);
  background: linear-gradient(180deg, #fffdf8, #f3ead7); box-shadow: 0 6px 0 #e6dbc3, 0 12px 20px rgba(58,45,24,.10);
  transition: transform .1s ease, box-shadow .1s ease, border-color .1s; }
.rps span { display: block; font-size: 15px; margin-top: 6px; font-weight: 800; color: #6a6047; }
.rps:hover { transform: translateY(-3px); }
.rps:active { transform: translateY(3px); box-shadow: 0 2px 0 #e6dbc3; }
.rps.selected { border-color: var(--accent); background: linear-gradient(180deg, #fff, var(--accent-soft));
  box-shadow: 0 6px 0 #bcdfd4, 0 0 0 4px rgba(31,122,104,.16); }
.notice { min-height: 24px; font-weight: 800; color: #5a6b62; }

/* Game layout */
.game-layout { display: grid; gap: 16px; }
.status-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; transition: box-shadow .25s, border-color .25s, background .25s; }
.status-card h2 { margin: 0; display: inline-flex; align-items: center; gap: 10px; }
.status-card.my-turn { border-color: var(--accent);
  background: linear-gradient(180deg, #f2fbf7, #e9f6f0);
  box-shadow: 0 0 0 3px rgba(31,122,104,.22), var(--shadow); animation: turnpulse 1.8s ease-in-out infinite; }
.status-card.my-turn #turnText { color: var(--accent-dark); }
.status-card.my-turn #turnText::before { content: "▶"; font-size: .7em; margin-right: 2px; color: var(--accent);
  animation: nudge 1.1s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translateX(0); } 50% { transform: translateX(3px); } }
@keyframes turnpulse { 0%,100% { box-shadow: 0 0 0 3px rgba(31,122,104,.22), var(--shadow); } 50% { box-shadow: 0 0 0 8px rgba(31,122,104,.10), var(--shadow); } }
.opponent-box { min-width: 150px; text-align: right; }
.opponent-box span, .opponent-box strong { display: block; }
.opponent-box strong { font-family: "Fredoka", sans-serif; font-size: 18px; color: var(--accent-dark); }

/* The felt table — wooden rail around green felt */
.board-card { min-height: 300px; overflow: hidden; padding: 14px;
  background: linear-gradient(158deg, var(--wood-lit), var(--wood) 45%, var(--wood-2));
  border: 1px solid #48301c;
  box-shadow: var(--shadow-lg), inset 0 2px 0 rgba(255,255,255,.18), inset 0 -3px 8px rgba(0,0,0,.35); }
.board {
  display: flex; align-items: center; justify-content: center; overflow: hidden; min-height: 244px; padding: 20px 16px; border-radius: 14px;
  background:
    radial-gradient(130% 150% at 50% 0%, rgba(255,255,255,.12), rgba(0,0,0,0) 45%),
    radial-gradient(130% 170% at 50% 120%, rgba(0,0,0,.34), rgba(0,0,0,0) 55%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, rgba(0,0,0,.018) 2px 4px),
    linear-gradient(160deg, var(--felt), var(--felt-dark));
  box-shadow: inset 0 3px 14px rgba(0,0,0,.36), inset 0 0 0 2px rgba(0,0,0,.18), inset 0 0 0 5px rgba(255,255,255,.06);
}
/* Inner row holds the domino chain and is scaled to always fit the felt. */
.board-inner { display: inline-flex; align-items: center; gap: 8px; transform-origin: center center; transition: transform .2s ease; }
.board:empty { justify-content: center; }
.board:empty::before { content: "🁢  Waiting for the first domino…"; color: rgba(255,255,255,.8); font-weight: 800; margin: auto; letter-spacing: .01em; }
#boardHint { margin: 12px 4px 2px; text-align: center; color: #6a5a44; font-weight: 700; }
body.in-game #boardHint { color: rgba(255,255,255,.85); }

/* Hand — a bone rack */
.hand-card { background: linear-gradient(180deg, #fffdf7, #f7efdf); }
.hand-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hand-heading h2 { margin: 0; }
.hand { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; justify-content: center;
  padding: 16px 12px 14px; border-radius: 16px;
  background: linear-gradient(180deg, #efe4cf, #e7d9bd);
  box-shadow: inset 0 2px 6px rgba(120,95,55,.28), inset 0 -2px 0 rgba(255,255,255,.5); }
.hand:empty { display: none; }

/* Dominoes — bone tiles with a bevel and drilled pips */
.domino {
  width: 72px; height: 136px; border-radius: 13px; padding: 0; flex: 0 0 auto; color: var(--pip);
  background: linear-gradient(158deg, var(--bone) 0%, #faf3e5 55%, var(--bone-2) 100%);
  border: 1px solid var(--bone-edge);
  display: grid; grid-template-rows: 1fr 4px 1fr; overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,.24), 0 2px 4px rgba(0,0,0,.14),
    inset 0 2px 0 rgba(255,255,255,.95), inset 0 -3px 7px rgba(120,100,60,.20);
}
.domino::before {
  content: ""; position: absolute; inset: 0; border-radius: 13px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 32%);
}
.domino { position: relative; }
.domino.horizontal { width: 136px; height: 72px; grid-template-rows: 1fr; grid-template-columns: 1fr 4px 1fr; }
.domino .divider { background: linear-gradient(#cabd9a, #a8996f); border-radius: 2px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.3), 0 1px 0 rgba(255,255,255,.7); }
.domino.is-double { box-shadow: 0 8px 16px rgba(0,0,0,.24), 0 2px 4px rgba(0,0,0,.14),
  inset 0 2px 0 rgba(255,255,255,.95), inset 0 0 0 2px rgba(234,163,60,.6); }
.pips { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 9px; position: relative; z-index: 1; }
.domino .divider { position: relative; z-index: 1; }
.pip { width: 11px; height: 11px; border-radius: 50%; place-self: center;
  background: radial-gradient(circle at 38% 32%, #566a5e 0%, #283630 55%, #171f1b 100%);
  box-shadow: inset 0 2px 2px rgba(0,0,0,.6), inset 0 -1px 1px rgba(255,255,255,.15), 0 1px 0 rgba(255,255,255,.55); }
/* Playable tiles in hand — invite a tap; unplayable recede */
.hand .domino:not(.playable) { opacity: .82; filter: saturate(.9); }
.domino.playable { cursor: pointer; z-index: 1;
  box-shadow: 0 12px 20px rgba(31,122,104,.30), 0 0 0 3px rgba(31,122,104,.55), 0 0 22px rgba(31,122,104,.28),
    inset 0 2px 0 rgba(255,255,255,.95);
  transform: translateY(-5px); transition: transform .14s ease, box-shadow .14s ease; animation: bob 2.6s ease-in-out infinite; }
.domino.playable:nth-child(2n) { animation-delay: .35s; }
.domino.playable:nth-child(3n) { animation-delay: .7s; }
.domino.playable:hover { transform: translateY(-10px) scale(1.04); }
.domino.playable:active { transform: translateY(-2px) scale(.99); }
@keyframes bob { 0%,100% { transform: translateY(-5px); } 50% { transform: translateY(-9px); } }
/* Board tiles sit still; only the tile that JUST moved animates + glows, so it's
   obvious who moved and where their piece went. */
.domino.board-tile { cursor: default; }
.domino.just-placed { z-index: 3; animation: placeIn .5s cubic-bezier(.2,1.3,.4,1); }
.domino.just-placed::after {
  content: ""; position: absolute; inset: -4px; border-radius: 16px; pointer-events: none;
  box-shadow: 0 0 0 3px rgba(234,163,60,.95), 0 0 24px 4px rgba(234,163,60,.7);
  animation: placeGlow 1.4s ease-out forwards;
}
@keyframes placeIn { 0% { transform: translateY(-30px) scale(.8) rotate(-5deg); opacity: 0; }
  55% { transform: translateY(3px) scale(1.05) rotate(0); } 100% { transform: none; opacity: 1; } }
@keyframes placeGlow { 0% { opacity: 1; } 70% { opacity: .9; } 100% { opacity: 0; } }

/* Winner */
.winner-stack { display: grid; gap: 16px; max-width: 760px; margin: 3vh auto 0; }
.winner-card { text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #fffdf5, #fdf1d5); border-color: #f0d9a6; }
.winner-card::before { content: ""; position: absolute; inset: -40% -10% auto -10%; height: 80%;
  background: radial-gradient(closest-side, rgba(234,163,60,.20), rgba(234,163,60,0)); pointer-events: none; }
.winner-card h2 { font-size: clamp(30px, 7vw, 46px); background: linear-gradient(180deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.trophy { font-size: 88px; animation: pop .6s cubic-bezier(.2,1.4,.4,1), floaty 3s ease-in-out .6s infinite; filter: drop-shadow(0 8px 10px rgba(201,130,31,.4)); }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes pop { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.18) rotate(4deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: #223129; color: #fff; padding: 13px 20px; border-radius: 999px; font-weight: 800;
  box-shadow: 0 12px 30px rgba(0,0,0,.28); z-index: 120; max-width: 90vw; text-align: center;
  animation: toastIn .28s cubic-bezier(.2,1.3,.4,1); }
@keyframes toastIn { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* Overlays */
.overlay { position: fixed; inset: 0; background: rgba(31,40,34,.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 130; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.overlay-card { background: linear-gradient(180deg, var(--paper), var(--paper-2)); border-radius: 24px; padding: clamp(20px,5vw,30px);
  width: min(440px, 100%); text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.32); animation: pop .24s ease; border: 1px solid var(--line); }
.chooser-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 12px; }
.chooser-buttons .end-num { display: block; font-family: "Fredoka", sans-serif; font-size: 30px; margin-top: 4px; }

/* Leaderboard */
.leaderboard-card { position: relative; }
.home-grid .home-card { margin: 0; }
.leaderboard-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.trophy-small { font-size: 44px; line-height: 1; filter: drop-shadow(0 4px 6px rgba(201,130,31,.3)); }
.leaderboard-empty { color: #8a7d63; padding: 22px 0 8px; }
.table-scroll { overflow-x: auto; }
.leaderboard-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.leaderboard-table th, .leaderboard-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.leaderboard-table th:nth-child(2), .leaderboard-table td:nth-child(2) { text-align: left; width: 100%; }
.leaderboard-table th:first-child, .leaderboard-table td:first-child { text-align: center; width: 38px; }
.leaderboard-table th { color: #9a8c6f; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.leaderboard-table tbody tr { transition: background .15s; }
.leaderboard-table tbody tr:hover { background: rgba(31,122,104,.05); }
.leaderboard-table tbody tr:first-child td { font-weight: 900; color: var(--accent-dark); }
.leaderboard-table tbody tr:first-child td:first-child::after { content: " 👑"; }
.winner-leaderboard { text-align: left; }

/* Confetti */
.confetti-piece { position: fixed; top: -12px; width: 10px; height: 14px; z-index: 140; border-radius: 2px; pointer-events: none;
  animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .9; } }

/* Responsive */
@media (max-width: 820px) { .home-grid { grid-template-columns: 1fr; margin-top: 2vh; } }
@media (max-width: 640px) {
  .home-actions { grid-template-columns: 1fr; }
  .status-card { align-items: flex-start; }
  .domino { width: 64px; height: 120px; }
  .domino.horizontal { width: 120px; height: 64px; }
}
@media (max-width: 380px) {
  .rps { min-height: 100px; font-size: 40px; }
  .domino { width: 56px; height: 106px; }
  .domino.horizontal { width: 106px; height: 56px; }
  .pip { width: 9px; height: 9px; }
}
/* Tablets — a little more generous for touch */
@media (min-width: 768px) and (pointer: coarse) {
  .domino { width: 80px; height: 150px; }
  .domino.horizontal { width: 150px; height: 80px; }
  .pip { width: 12px; height: 12px; }
}
@media (orientation: landscape) and (max-height: 560px) {
  .app-shell { padding-top: 10px; padding-bottom: 20px; }
  .topbar { margin-bottom: 10px; }
  h1 { font-size: clamp(22px, 4.4vh, 34px); }
  .board-card { min-height: 130px; }
  .board { padding: 12px 12px; min-height: 92px; }
  .domino { width: 46px; height: 90px; }
  .domino.horizontal { width: 90px; height: 46px; }
  .pip { width: 7px; height: 7px; }
  .rps { min-height: 84px; font-size: 34px; }
  .card { padding: 14px 18px; }
  .hand { margin-top: 10px; gap: 8px; padding: 10px 8px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
