/* The Domino table (public/js/player-domino.js): the club room (the wooden frame and the pills of
   Rami's room) around a GREEN felt lit from the upper left, as the owner's reference picture; the
   ivory tiles with their dark pips (an SVG each, scaled with --k), my curved wooden rack, the
   other players' backs, the snake of the line of play, the translucent ghosts that show where a
   chosen tile can go, the boneyard heap, the Draw button, the "Passed" stamps, the round banner,
   the cream SCORES note and the result card's stamp and history. */

/* ---------- Tiles ---------- */
.pa-felt-domino .dm-tile {
  position: absolute; left: 0; top: 0; width: 56px; height: 112px; display: block; transform-origin: 50% 50%;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)) drop-shadow(0 6px 10px rgba(0, 0, 0, .35));
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
.pa-felt-domino .dm-tile > .dm-art { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pa-felt-domino .dm-body { fill: url(#dm-ivory); fill: #f3ead6; stroke: #b9ab8c; stroke-width: 1.1; }
.pa-felt-domino .dm-sheen { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 1; }
.pa-felt-domino .dm-divider { stroke: #2a2430; stroke-width: 1.6; stroke-linecap: round; opacity: .85; }
.pa-felt-domino .dm-pin { fill: #c9a24d; stroke: #7a5d1c; stroke-width: .6; }
.pa-felt-domino .dm-pip { fill: #1f1a28; }
.pa-felt-domino .dm-back .dm-body { fill: #ede3cb; }
.pa-felt-domino .dm-backinset { fill: #e2d6ba; stroke: #cdbf9e; stroke-width: 1; }
.pa-felt-domino .dm-backheart { fill: #d9cbaa; stroke: #b9a985; stroke-width: 1; }
/* a tile of the chain, ivory on the green, a little warmer in the light */
.pa-felt-domino .dm-chain .dm-tile { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)) drop-shadow(0 4px 8px rgba(0, 0, 0, .4)); transition: transform .42s cubic-bezier(.2, .7, .2, 1); }
.pa-felt-domino.pa-reduce .dm-chain .dm-tile { transition: none; }
.pa-felt-domino .dm-chain .dm-tile.dm-last .dm-body { stroke: #ffd166; stroke-width: 2; }
.pa-felt-domino .dm-chain .dm-tile.dm-landing { opacity: 0; }
.pa-felt-domino .dm-chain .dm-tile.dm-landed { animation: dm-land .32s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes dm-land { 0% { filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)) brightness(1.25); } 100% { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)) drop-shadow(0 4px 8px rgba(0, 0, 0, .4)) brightness(1); } }
.pa-felt-domino.pa-reduce .dm-chain .dm-tile.dm-landed { animation: none; }
/* a tile the deal still has to bring: there, but invisible until it lands */
.pa-felt-domino .dm-tile.hb-undealt { opacity: 0 !important; animation: none !important; pointer-events: none; }
.pa-felt-domino .dm-fly { pointer-events: none; }
/* The stir: a tile in the hurricane, a touch lifted off the felt; the boneyard waits out of sight
   until the rest of the set slides over to it. */
.pa-felt-domino .dm-fly .dm-tile.dm-storm { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)) drop-shadow(0 6px 9px rgba(0, 0, 0, .38)); }
.pa-felt-domino .dm-fly .dm-tile.dm-storm > .dm-art { transform-origin: 50% 50%; will-change: transform; }
.pa-felt-domino .dm-bone.dm-bone-wait > *:not(.dm-lain) { opacity: 0; transition: none; }
.pa-felt-domino.dm-storming .dm-bonen, .pa-felt-domino.dm-storming .pa-clock, .pa-felt-domino.dm-storming .pa-meline { opacity: 0; }
.pa-felt-domino .dm-fly .dm-tile { will-change: transform; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)) drop-shadow(0 18px 22px rgba(0, 0, 0, .45)); }
.pa-felt-domino .dm-fly .dm-tile > .dm-art + .dm-art { opacity: 1; }
.pa-felt-domino .dm-stamps, .pa-felt-domino .dm-light, .pa-felt-domino .dm-rackart { pointer-events: none; }

/* The lobby's game card: three small tiles on the green (the website's .domino, scaled down). */
.pa-gcard .art-domino { display: grid; place-items: center; overflow: hidden; }
.pa-gcard .art-domino .domino { width: 22px; height: 44px; border-radius: 4px; transition: none; }
.pa-gcard .art-domino .domino .half { padding: 2px; }
.pa-gcard .art-domino .domino .half i { width: 3.5px; height: 3.5px; }
.pa-gcard .art-domino .domino.d0 { transform: rotate(-16deg) translate(-24px, 4px); }
.pa-gcard .art-domino .domino.d1 { transform: rotate(4deg) translateY(-4px); }
.pa-gcard .art-domino .domino.d2 { transform: rotate(18deg) translate(24px, 5px); }
/* The plane layers take no pointer (player.css): only my rack tiles, the ghosts and the boneyard do. */
.pa-felt-domino .dm-rack > .dm-tile, .pa-felt-domino .dm-ghosts > .dm-ghost, .pa-felt-domino .dm-bone > .dm-tile { pointer-events: auto; }
.pa-felt-domino .dm-rack > .dm-tile.hb-undealt { pointer-events: none; }

/* ---------- My rack ---------- */
.pa-felt-domino .dm-rack .dm-tile { cursor: default; transition: transform .28s cubic-bezier(.2, .8, .2, 1), filter .2s, opacity .2s; }
.pa-felt-domino.pa-reduce .dm-rack .dm-tile { transition: none; }
.pa-felt-domino .dm-rack .dm-tile.dm-fits { cursor: pointer; }
.pa-felt-domino .dm-rack .dm-tile.dm-fits .dm-body { stroke: #e8c46e; stroke-width: 1.6; }
.pa-felt-domino .dm-rack .dm-tile.dm-fits { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)) drop-shadow(0 6px 10px rgba(0, 0, 0, .35)) drop-shadow(0 0 6px rgba(255, 209, 102, .55)); }
.pa-felt-domino .dm-rack .dm-tile.dm-dim { opacity: .62; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)) saturate(.7); }
.pa-felt-domino .dm-rack .dm-tile.dm-selected { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)) drop-shadow(0 10px 14px rgba(0, 0, 0, .4)) drop-shadow(0 0 10px rgba(255, 209, 102, .9)); z-index: 3; }
.pa-felt-domino .dm-rack .dm-tile.dm-selected .dm-body { stroke: #ffd166; stroke-width: 2.4; }
.pa-felt-domino .dm-rack .dm-tile.dm-must .dm-body { stroke: #ff5c9a; stroke-width: 2.4; }
.pa-felt-domino .dm-rack .dm-tile:focus-visible { outline: none; }
.pa-felt-domino .dm-rack .dm-tile:focus-visible .dm-body { stroke: #fff; stroke-width: 2.6; }
.pa-felt-domino .dm-rack .dm-tile.hb-dragging { opacity: .35; }
.pa-felt-domino .dm-rack .dm-tile.dm-shake { animation: dm-shake .36s ease-in-out; }
@keyframes dm-shake { 0%, 100% { margin-left: 0; } 25% { margin-left: -6px; } 50% { margin-left: 6px; } 75% { margin-left: -3px; } }
/* the wooden rack: a curved strip under the tiles' feet */
.pa-felt-domino .dm-rackwood { position: absolute; left: 0; top: 0; overflow: visible; }
.pa-felt-domino .dm-rackshadow { fill: rgba(0, 0, 0, .38); filter: blur(6px); }
.pa-felt-domino .dm-rackback { fill: #5a3a22; }
.pa-felt-domino .dm-rackfront { fill: #8a5a33; }
.pa-felt-domino .dm-rackedge { fill: rgba(255, 226, 190, .35); }
/* the drag ghost (the kit clones the tile; it keeps its own size) */
.hb-drag-ghost.dm-tile { width: 56px; height: 112px; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)); }
.hb-drag-ghost.dm-tile > .dm-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hb-drag-ghost.dm-tile .dm-body { fill: #f3ead6; stroke: #ffd166; stroke-width: 2; }
.hb-drag-ghost.dm-tile .dm-pip { fill: #1f1a28; }
.hb-drag-ghost.dm-tile .dm-divider { stroke: #2a2430; stroke-width: 1.6; }
.hb-drag-ghost.dm-tile .dm-pin { fill: #c9a24d; }

/* ---------- The ghosts: a translucent copy at every end the chosen tile fits ---------- */
.pa-felt-domino .dm-ghosts .dm-tile { cursor: pointer; opacity: .42; filter: none; animation: dm-ghost 1.4s ease-in-out infinite; }
.pa-felt-domino .dm-ghosts .dm-tile.dm-ghost-hover { opacity: .3; animation: none; }
.pa-felt-domino .dm-ghosts .dm-tile .dm-body { fill: #fff8e6; stroke: #ffd166; stroke-width: 2.2; stroke-dasharray: 5 3; }
.pa-felt-domino .dm-ghosts .dm-tile .dm-pip { fill: #3a3148; }
.pa-felt-domino .dm-ghosts .dm-tile:hover, .pa-felt-domino .dm-ghosts .dm-tile.hb-drop-over, .pa-felt-domino .dm-ghosts .dm-tile:focus-visible { opacity: .82; animation: none; outline: none; }
.pa-felt-domino .dm-ghosts .dm-tile.hb-drop-over .dm-body { stroke-dasharray: none; stroke: #fff; }
@keyframes dm-ghost { 0%, 100% { opacity: .34; } 50% { opacity: .55; } }
.pa-felt-domino.pa-reduce .dm-ghosts .dm-tile { animation: none; opacity: .5; }

/* ---------- The other players' tiles ---------- */
.pa-felt-domino .dm-hand .dm-tile.dm-hidden { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)) drop-shadow(0 4px 8px rgba(0, 0, 0, .35)); }
.pa-felt-domino .dm-hand .dm-tile.dm-shown { animation: dm-turn .5s ease-out; }
@keyframes dm-turn { 0% { opacity: 0; } 100% { opacity: 1; } }
.pa-felt-domino.pa-reduce .dm-hand .dm-tile.dm-shown { animation: none; }
.pa-felt-domino .dm-pips {
  position: absolute; left: 0; top: 0; padding: .25em .7em; border-radius: 999em; white-space: nowrap;
  background: rgba(14, 7, 24, .82); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font: 800 15px/1.2 var(--display); font-variant-numeric: tabular-nums;
}
.pa-felt-domino .dm-pips.dm-pips-win { border-color: #ffd166; color: #ffd166; box-shadow: 0 0 14px rgba(255, 209, 102, .45); }

/* ---------- The boneyard ---------- */
.pa-felt-domino .dm-bone .dm-tile { transition: filter .25s; }
.pa-felt-domino .dm-bone.dm-draw .dm-tile { cursor: pointer; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)) drop-shadow(0 0 8px rgba(255, 209, 102, .75)); animation: dm-bone 1.5s ease-in-out infinite; }
@keyframes dm-bone { 0%, 100% { opacity: .9; } 50% { opacity: 1; } }
.pa-felt-domino.pa-reduce .dm-bone.dm-draw .dm-tile { animation: none; }
.pa-felt-domino .dm-bone .dm-tile:focus-visible .dm-body { stroke: #fff; stroke-width: 2.4; }
.pa-felt-domino .hb-hud > .pa-deckn { display: inline-flex; flex-direction: column; align-items: center; gap: .05em; line-height: 1.1; text-align: center; }
.pa-felt-domino .hb-hud > .pa-deckn > b { font: 800 1.15em/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.pa-felt-domino .hb-hud > .pa-deckn > small { font-size: .72em; color: #d9e6d2; white-space: nowrap; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }

/* ---------- The stamp, the banner, the flash ---------- */
.pa-felt-domino .hb-hud > .dm-stamps > .dm-stamp {
  position: absolute; left: 0; top: 0; padding: .2em .7em; border: .14em solid #ff5c9a; border-radius: .3em; color: #ff5c9a; background: rgba(14, 7, 24, .7);
  font: 900 calc(16px * var(--hb-hud-k, 1))/1.1 var(--display); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  animation: dm-stamp 1.4s ease-out forwards;
}
@keyframes dm-stamp { 0% { opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
.pa-felt-domino .hb-hud > .dm-banner {
  position: absolute; left: 0; top: 0; display: inline-flex; flex-direction: column; align-items: center; gap: .2em;
  padding: .75em 1.5em .8em; border-radius: 1.2em; background: rgba(10, 18, 12, .88); border: 1px solid rgba(255, 209, 102, .45);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 40px rgba(255, 209, 102, .18); color: #fff; text-align: center; white-space: nowrap;
  font-size: calc(15px * var(--hb-hud-k, 1)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: dm-banner .4s ease-out;
}
@keyframes dm-banner { 0% { opacity: 0; } 100% { opacity: 1; } }
.pa-felt-domino.pa-reduce .hb-hud > .dm-banner { animation: none; }
.pa-felt-domino .hb-hud > .dm-banner > strong { font: 800 1.2em/1.2 var(--display); }
.pa-felt-domino .hb-hud > .dm-banner .dm-bpips { font-size: .85em; color: #d9e6d2; font-variant-numeric: tabular-nums; }
.pa-felt-domino .hb-hud > .dm-banner.dm-bwin { border-color: #ffd166; }
.pa-felt-domino .hb-hud > .dm-banner.dm-bwin > strong { color: #ffd166; }
.pa-felt-domino .hb-hud > .dm-banner.dm-bvoid > strong { color: #c9c2d8; }
.pa-felt-domino .pa-flash span { color: #ffd166; }
.pa-felt-domino .dm-roundtag { font-weight: 700; letter-spacing: .04em; }

/* ---------- The result card ---------- */
.pa-felt-domino .pa-rcard { position: relative; overflow: hidden; }
.pa-felt-domino .pa-rcard .pa-stamp {
  position: absolute; right: -.4em; top: 1.1em; padding: .1em .5em; border: .14em solid currentColor; border-radius: .25em;
  font: 900 1.6em/1 var(--display); letter-spacing: .14em; transform: rotate(-14deg); opacity: .85; pointer-events: none;
}
.pa-felt-domino .pa-rcard .pa-stamp-win { color: #c81e3a; }
.pa-felt-domino .pa-rcard .pa-stamp-lose { color: #5a5370; }
.pa-felt-domino .pa-rcard .dm-history { width: 100%; margin: .5rem 0 .25rem; border-collapse: collapse; font-size: .82rem; font-variant-numeric: tabular-nums; }
.pa-felt-domino .pa-rcard .dm-history th, .pa-felt-domino .pa-rcard .dm-history td { padding: .15rem .35rem; text-align: center; border-bottom: 1px solid rgba(0, 0, 0, .1); }
.pa-felt-domino .pa-rcard .dm-history th { font-weight: 600; opacity: .7; }
.pa-felt-domino .pa-rcard .dm-history th[scope="row"] { text-align: left; }
.pa-felt-domino .pa-rcard .dm-history td.dm-rwin { font-weight: 800; color: #c81e3a; }
.pa-felt-domino .pa-rcard .dm-history tr.dm-rvoid td { opacity: .55; }
.pa-controls-domino .dm-drawdock { display: inline-flex; align-items: center; gap: .45em; }
.pa-controls-domino .dm-drawdock svg { width: 1.1em; height: 1.1em; }

/* ---------- The club room: the green felt in its wooden frame, lit from the upper left ---------- */
.pa-felt-domino .pa-fx { pointer-events: none; }
.pa-felt-domino.pa-flat, .pa-felt-domino.pa-flat .hb-stage-host, .pa-felt-domino.pa-flat .hb-stage { background: #0a0612; }
.pa-felt-domino.pa-flat .hb-stage > .hb-scene {
  background:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 132px 132px,
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px) 0 0 / 132px 132px,
    radial-gradient(ellipse at 50% 42%, #2a1840 0%, #170d24 48%, #080510 100%);
}
.pa-felt-domino.pa-flat .hb-cam > .hb-plane {
  border-radius: 46px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .95 0 0 0 0 .7 0 0 0 .1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 180px 180px,
    radial-gradient(ellipse at 28% 18%, rgba(255, 232, 170, .22) 0%, rgba(255, 232, 170, .06) 32%, transparent 60%),
    radial-gradient(ellipse at 50% 44%, #1d6b45 0%, #155a3a 42%, #0d4229 78%, #082e1d 100%);
  box-shadow: 0 0 0 3px #150a08, 0 0 0 5px rgba(255, 226, 190, .09), inset 0 0 150px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.pa-felt-domino.pa-flat .hb-cam > .hb-plane::before {
  content: ''; position: absolute; inset: -150px -230px; border-radius: 150px; pointer-events: none; transform: translateZ(-1px);
  background:
    linear-gradient(135deg, rgba(255, 220, 170, .14), transparent 38%, transparent 62%, rgba(255, 220, 170, .05)),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, .35) 100%),
    repeating-linear-gradient(91deg, rgba(0, 0, 0, .16) 0 2px, rgba(255, 235, 210, .035) 2px 3px, transparent 3px 11px),
    repeating-linear-gradient(89.3deg, rgba(0, 0, 0, .08) 0 5px, transparent 5px 23px),
    linear-gradient(180deg, #5a3722 0%, #42261a 48%, #2e1810 100%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .85), 0 0 0 2px #120806, inset 0 2px 0 rgba(255, 225, 190, .12), inset 0 -4px 0 rgba(0, 0, 0, .55), inset 0 0 0 10px rgba(0, 0, 0, .12);
}
.pa-felt-domino.pa-flat .pa-thdr { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "l c r"; align-items: center; }
.pa-felt-domino.pa-flat .pa-thdr-c { font-size: 1em; padding-block: .25em; }
.pa-felt-domino.pa-flat .pa-seat .pa-stag {
  font-size: 1.22em; flex-direction: row; align-items: center; gap: .6em; padding: .3em 1.1em .3em .35em; border-radius: 999em; max-width: none;
  background: linear-gradient(180deg, #2c1744, #170c29);
  border: .09em solid rgba(255, 209, 102, .32); box-shadow: 0 .5em 1.4em rgba(0, 0, 0, .7), inset 0 .07em 0 rgba(255, 255, 255, .06);
}
.pa-felt-domino.pa-flat .pa-seat.pa-turn > .pa-stag { box-shadow: 0 0 0 .12em rgba(255, 209, 102, .55), 0 .5em 1.4em rgba(0, 0, 0, .7); border-color: rgba(10, 6, 18, .9); }
.pa-felt-domino.pa-flat .pa-seat .pa-avatar { --av: 3.1em; box-shadow: 0 0 0 .13em #ffd166, 0 0 0 .2em rgba(0, 0, 0, .5); }
.pa-felt-domino.pa-flat .pa-seat .pa-sid { align-items: flex-start; gap: .25em; max-width: none; }
.pa-felt-domino.pa-flat .pa-seat .pa-sname { font-size: 1.08em; font-weight: 800; color: #fff; max-width: 9em; }
.pa-felt-domino.pa-flat .pa-seat.pa-turn .pa-sname::before { display: none; }
.pa-felt-domino.pa-flat .pa-seat .pa-chips { display: flex; gap: .3em; flex-wrap: wrap; align-items: center; }
.pa-felt-domino.pa-flat .pa-seat .pa-chip {
  padding: .14em .6em; border-radius: 999em; background: rgba(10, 6, 18, .78); border: .07em solid rgba(232, 196, 110, .4);
  color: #ffd166; font: 800 .62em/1.3 var(--display); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.pa-felt-domino.pa-flat .pa-seat .pa-chip-pts { color: var(--hb-silver-2); border-color: rgba(207, 199, 230, .3); }
.pa-felt-domino.pa-flat .pa-seat .pa-badge { font-size: .62em; }
.pa-felt-domino.pa-flat[data-dense="1"] :is(.pa-pos-left, .pa-pos-right) .pa-avatar { display: inline-grid; }
.pa-felt-domino.pa-flat[data-dense="1"] :is(.pa-pos-left, .pa-pos-right) .pa-stag { gap: .4em; padding: .25em .7em .25em .3em; max-width: none; }
.pa-felt-domino .pa-clock {
  position: relative; display: inline-grid; place-items: center; flex: none; width: 2.6em; height: 2.6em; border-radius: 50%;
  background: #1a0f2a; box-shadow: 0 0 0 .14em #ffd166, 0 0 .9em rgba(255, 209, 102, .45);
  color: #ffd166; font: 800 .95em/1 var(--display); font-variant-numeric: tabular-nums;
}
.pa-felt-domino .pa-clock > .pa-ring { position: absolute; inset: -.32em; width: calc(100% + .64em); height: calc(100% + .64em); transform: rotate(-90deg); pointer-events: none; overflow: visible; }
.pa-felt-domino .pa-clock .pa-ring circle { fill: none; stroke-width: 3; }
.pa-felt-domino .pa-clock .pa-ring .bg { stroke: rgba(255, 209, 102, .16); }
.pa-felt-domino .pa-clock .pa-ring .fg { stroke: #ffd166; stroke-linecap: round; transition: stroke-dasharray 1s linear; }
.pa-felt-domino .pa-clock .pa-clock-n:not(:empty)::after { content: 's'; font-size: .62em; margin-left: .06em; opacity: .85; }
.pa-felt-domino .pa-clock.urgent { color: var(--hb-crimson-2); box-shadow: 0 0 0 .14em var(--hb-crimson-2), 0 0 .9em rgba(255, 77, 109, .5); }
.pa-felt-domino .pa-clock.urgent .pa-ring .fg { stroke: var(--hb-crimson-2); }
.pa-felt-domino .hb-hud > .pa-scorenote {
  width: 10.8em; padding: .55em .8em .7em; transform: rotate(-1.5deg);
  border-radius: .25em .9em .35em 1.1em / .8em .3em 1em .35em;
  background: linear-gradient(170deg, #fcf8ec, #ede4cc); color: #2b2436; font: 600 1.1em/1.3 var(--body);
  box-shadow: 0 .4em 1.2em rgba(0, 0, 0, .6), inset 0 0 0 .07em rgba(0, 0, 0, .05), inset 0 -.6em 1em rgba(0, 0, 0, .05);
}
.pa-felt-domino .pa-scorenote-t { display: block; font: 800 1.45em/1.1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #2f2744; margin-bottom: .3em; padding-bottom: .15em; border-bottom: .09em solid rgba(43, 36, 54, .3); }
.pa-felt-domino .pa-scorenote-l { list-style: none; margin: 0; padding: 0; }
.pa-felt-domino .pa-scorenote-l li { display: flex; justify-content: space-between; gap: .6em; align-items: baseline; }
.pa-felt-domino .pa-scorenote-l li.me .pa-scorenote-n::before { content: '●'; font-size: .55em; margin-right: .35em; vertical-align: middle; color: #7a1f8f; }
.pa-felt-domino .pa-scorenote-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #4a4160; }
.pa-felt-domino .pa-scorenote-l strong { font: 800 1.05em/1.2 var(--display); font-variant-numeric: tabular-nums; color: #2b2436; }
.pa-felt-domino .dm-note-r { display: block; margin-top: .3em; font: 600 .7em/1.2 var(--body); color: #6b6380; }
.pa-felt-domino.pa-flat .pa-meline.pa-sline { gap: .5em; padding: 0 .4em; background: none; border: 0; box-shadow: none; }
.pa-felt-domino.pa-flat .pa-sline.pa-turn { box-shadow: none; }
.pa-felt-domino.pa-flat .pa-sline .pa-sline-t { color: #ece5f7; font-weight: 600; font-size: .95em; white-space: nowrap; text-shadow: 0 .1em .4em rgba(0, 0, 0, .9); }
.pa-felt-domino.pa-flat .pa-sline .pa-clock-sm { width: 2.2em; height: 2.2em; font-size: .85em; }
.pa-felt-domino .hb-hud > .pa-openbtn {
  pointer-events: auto; cursor: pointer; appearance: none; border: .1em solid #ffd166; border-radius: 999em; padding: .5em 1.2em;
  background: linear-gradient(180deg, #4a2b12, #2a160a); color: #ffd166; font: 800 .82em/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 0 .9em rgba(255, 209, 102, .4), 0 .4em 1em rgba(0, 0, 0, .6); transition: transform .15s, box-shadow .15s;
}
.pa-felt-domino .hb-hud > .pa-openbtn:hover { transform: translateY(-1px); box-shadow: 0 0 1.2em rgba(255, 209, 102, .6), 0 .5em 1.2em rgba(0, 0, 0, .6); }
/* a phone */
.pa[data-layout="phone"] .pa-felt-domino.pa-flat .pa-seat .pa-stag { font-size: .8em; flex-direction: column; gap: .12em; padding: .28em .45em .4em; border-radius: 1.3em; }
.pa[data-layout="phone"] .pa-felt-domino.pa-flat .pa-seat .pa-avatar { --av: 2.7em; }
.pa[data-layout="phone"] .pa-felt-domino.pa-flat .pa-seat .pa-sid { align-items: center; gap: .12em; }
.pa[data-layout="phone"] .pa-felt-domino.pa-flat .pa-seat .pa-sname { max-width: 6.6em; font-size: .95em; }
.pa[data-layout="phone"] .pa-felt-domino.pa-flat .pa-seat .pa-chip { font-size: .72em; }
.pa[data-layout="phone"] .pa-felt-domino .hb-hud > .pa-scorenote { width: 8.4em; font-size: .78em; padding: .4em .6em .5em; }
.pa[data-layout="phone"] .pa-felt-domino .pa-scorenote-t { font-size: 1.25em; }
.pa[data-layout="phone"] .pa-felt-domino.pa-flat .pa-sline .pa-sline-t { font-size: .84em; white-space: normal; text-align: center; max-width: 70vw; }
.pa[data-layout="phone"] .pa-felt-domino.pa-flat .pa-thdr { font-size: .8em; }
.pa[data-layout="phone"] .pa-felt-domino .hb-hud > .dm-banner { font-size: calc(13px * var(--hb-hud-k, 1)); white-space: normal; max-width: 80vw; }
/* The countdown under the round's line ("Next round in N", review round 6): written in the page's small size (14 px in
   rem), it shrank with the table's layer, 4 px on a 360 px phone. On a phone, upright or sideways, it is sized from the
   banner instead (em, which the label scale --hb-hud-k keeps readable): 10.6 px at 360x640; tablets and desks unchanged. */
@media (max-width: 599px), (max-height: 499px) {
  .pa-felt-domino .hb-hud > .dm-banner > [data-pause-count] { font-size: .95em; }
}
/* The small-screen fit (player-domino.js SMALL_FIT, on: the owner's choice, 2026-11-15): 80% of the screen as seen (the layer is scaled
   with the table; --hb-hud-k is the inverse of that scale) */
.pa[data-layout="phone"] .pa-felt-domino[data-fit="1"] .hb-hud > .dm-banner { max-width: calc(80vw * var(--hb-hud-k, 1)); }
.pa[data-layout="phone"] .pa-felt-domino.pa-flat, .pa[data-layout="phone"] .pa-felt-domino.pa-flat .hb-stage-host, .pa[data-layout="phone"] .pa-felt-domino.pa-flat .hb-stage { background: #3a2016; }
.pa[data-layout="phone"] .pa-felt-domino.pa-flat .hb-stage > .hb-scene {
  background:
    repeating-linear-gradient(91deg, rgba(0, 0, 0, .16) 0 2px, rgba(255, 235, 210, .035) 2px 3px, transparent 3px 11px),
    repeating-linear-gradient(89.3deg, rgba(0, 0, 0, .08) 0 5px, transparent 5px 23px),
    linear-gradient(180deg, #5a3722 0%, #42261a 48%, #2e1810 100%);
}
.pa[data-layout="phone"] .pa-felt-domino.pa-flat .hb-cam > .hb-plane::before { inset: -420px -320px; border-radius: 160px; }

/* ---------- The lobby's house-rule chips for Domino (public/js/player-app.js dominoRulesBlock) ---------- */
.pa-house-domino { display: flex; flex-direction: column; gap: .35rem; }
.pa-house-domino .pa-levels { flex-wrap: wrap; }

/* Graphics quality: Medium keeps one soft shadow under a stirring tile, Low has none (and no hurricane). */
.pa-felt-domino.pa-med .dm-fly .dm-tile.dm-storm { filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .4)); }
.pa-felt-domino.pa-lite .dm-fly .dm-tile.dm-storm, .pa-felt-domino.pa-lite .dm-bone.dm-draw .dm-tile { filter: none; }
