/* Hot Plates: the page's own pieces, after look.css and bk.css. Only bk-plates- and bkp- classes; no lk- class is restyled.
   The art is inline SVG (a sprite added by js/bk-plates.js). Everything that moves stops under prefers-reduced-motion. */

.bk-plates { --heat: 0; }
.bk-plates-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* the ticket on the pass: what the table is worth now and what the next good plate makes it; after a round, the result */
.bkp-pass { position: relative; margin-top: .15rem; }
.bk-plates .bkp-ticket { --c: color-mix(in srgb, #c0260f calc(var(--heat) * 100%), #7a4a00); position: absolute; left: 50%; top: 0; z-index: 3; display: block; margin: 0; padding: .32rem .95rem .36rem; border-radius: .55rem; transform: translate(-50%, -58%) rotate(-1.2deg); background: var(--lk-cream); color: var(--lk-ink); font-size: .86rem; font-weight: 700; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; box-shadow: 0 .45rem 1rem rgba(0, 0, 0, .5), 0 0 calc(var(--heat) * 1.4rem) rgba(255, 110, 50, calc(var(--heat) * .55)); pointer-events: none; }
.bkp-ticket::before { content: ""; position: absolute; left: 50%; top: -.28rem; width: .7rem; height: .7rem; margin-left: -.35rem; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff0bd, #f6c453 45%, #9a6a14); box-shadow: 0 .1rem .2rem rgba(0, 0, 0, .5); }
.bkp-ticket b { font-family: Bricolage, sans-serif; font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; color: var(--c); display: inline-block; transform-origin: 50% 70%; }
.bkp-ticket #bkp-t-a { color: #6b4a58; }
.bkp-ticket #bkp-t-c { color: #3a1b2a; display: inline-block; transform-origin: 0 60%; white-space: pre; }
.bk-plates .bkp-ticket[data-state="won"] { background: linear-gradient(180deg, #fff6d8, #ffe08a); box-shadow: 0 .45rem 1rem rgba(0, 0, 0, .5), 0 0 1.6rem rgba(246, 196, 83, .55); }
.bkp-ticket[data-state="won"] b { color: #1f6b42; }
.bk-plates .bkp-ticket[data-state="lost"] { background: #ffe3e3; }
.bkp-ticket[data-state="lost"] b { color: #b3121f; }
.bkp-ticket b.is-pop { animation: bkp-pop .42s cubic-bezier(.25, 1.7, .5, 1); }
.bkp-ticket.is-stamp { animation: bkp-stamp .5s cubic-bezier(.2, 1.5, .4, 1); }
.bk-plates.is-hot #bkp-t-c { color: #b3121f; animation: bkp-tease 1.1s ease-in-out infinite; }
@keyframes bkp-pop { 0% { transform: scale(1.45); filter: brightness(1.5); } 100% { transform: none; filter: none; } }
@keyframes bkp-stamp { 0% { transform: translate(-50%, -58%) rotate(-3deg) scale(1.05); opacity: 0; } 55% { transform: translate(-50%, -58%) rotate(-2deg) scale(.96); opacity: 1; } 100% { transform: translate(-50%, -58%) rotate(-1.2deg); } }
@keyframes bkp-tease { 50% { transform: scale(1.1); } }

/* the pass: a steel counter under a heat lamp. The lamp warms as the multiplier climbs */
.bk-plates-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.22rem, 1.1vw, .5rem); padding: .95rem clamp(.4rem, 1.6vw, .8rem) clamp(.3rem, 1.2vw, .7rem); overflow: visible; isolation: isolate; border-color: rgba(255, 255, 255, .1);
  background:
    radial-gradient(120% 75% at 50% -12%, rgba(255, 170, 70, calc(.16 + var(--heat) * .3)), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 4px),
    linear-gradient(170deg, #173a3a, #0b1d1e 58%, #061011);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 -1.2rem 2rem rgba(0, 0, 0, .35); transition: box-shadow .4s; }
.bk-plates-board::before, .bk-plates-board::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; }
.bk-plates-board::after { background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), rgba(255, 92, 40, .55), rgba(255, 40, 60, .12) 45%, transparent 70%); }
.bk-plates-board::before { background: linear-gradient(105deg, transparent 38%, rgba(255, 233, 170, .32) 50%, transparent 62%) 0 0 / 260% 100% no-repeat; }
.bk-plates-board.is-flash::after { animation: bkp-flash .75s ease-out; }
.bk-plates-board.is-sheen::before { animation: bkp-sheen 1.2s ease-out; }
.bk-plates-board.is-quake { animation: bkp-quake .5s cubic-bezier(.36, .07, .19, .97); }
.bk-plates-board.is-won { box-shadow: inset 0 0 0 2px rgba(246, 196, 83, .75), 0 0 2.6rem rgba(246, 196, 83, .2), inset 0 -1.2rem 2rem rgba(0, 0, 0, .35); }
.bk-plates-board.is-lost { box-shadow: inset 0 0 0 2px rgba(255, 111, 111, .55), 0 0 2.4rem rgba(255, 70, 50, .14), inset 0 -1.2rem 2rem rgba(0, 0, 0, .35); }
@keyframes bkp-flash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bkp-sheen { 0% { opacity: 1; background-position: 120% 0; } 100% { opacity: 1; background-position: -30% 0; } }
@keyframes bkp-quake { 0%, 100% { transform: none; } 12% { transform: translate(-6px, 2px) rotate(-.6deg); } 26% { transform: translate(6px, -2px) rotate(.6deg); } 40% { transform: translate(-5px, 1px); } 56% { transform: translate(4px, 0); } 72% { transform: translate(-2px, 0); } 86% { transform: translate(1px, 0); } }

/* a plate: a real button with four layers (plate, dish, steam or smoke, cover) */
.bk-plates-cell { position: relative; display: block; width: 100%; min-width: 44px; aspect-ratio: 1 / .77; min-height: 44px; padding: 0; border: 0; border-radius: .9rem; cursor: default; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  background: radial-gradient(closest-side at 50% 74%, rgba(255, 238, 205, .08), transparent); }
.bk-plates-cell > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.bk-plates-cell:focus-visible { outline-offset: 1px; }
.bkp-food { opacity: 0; transform-origin: 50% 76%; }
.bkp-lid { transform-origin: 50% 78%; transition: transform .22s cubic-bezier(.3, 1.4, .5, 1), opacity .3s; filter: drop-shadow(0 .14rem .1rem rgba(0, 0, 0, .45)); }
.bkp-warm { opacity: calc(.3 + var(--heat) * .7); }
.bkp-fx { z-index: 1; }
.bkp-lid { z-index: 2; }
.bkp-steam { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 2.6; stroke-linecap: round; opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.bkp-smoke { fill: url(#bkp-g-smoke); opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.bkp-heat { opacity: 0; }
.bkp-flame { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.bkp-glint { opacity: 0; transform-box: fill-box; }
.bk-plates-cell.is-glint:not(.is-open) .bkp-glint { animation: bkp-glint .9s ease-in-out; }
@keyframes bkp-glint { 0% { opacity: 0; transform: translateX(0); } 20% { opacity: .9; } 80% { opacity: .9; } 100% { opacity: 0; transform: translateX(780%); } }
.bkp-spark { fill: #ffe9a8; opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.bkp-spark:nth-of-type(1) { --sx: -14px; --sy: -12px; } .bkp-spark:nth-of-type(2) { --sx: 15px; --sy: -10px; }
.bkp-spark:nth-of-type(3) { --sx: -12px; --sy: 7px; } .bkp-spark:nth-of-type(4) { --sx: 13px; --sy: 9px; }

/* live: the covers invite a touch. Hover or focus lifts one a little and the lamp light leaks out from under it */
.is-live .bk-plates-cell:not(.is-open) { cursor: pointer; }
@media (hover: hover) {
  .is-live .bk-plates-cell:not(.is-open):hover .bkp-lid { transform: translateY(-7%) rotate(-4deg); }
  .is-live .bk-plates-cell:not(.is-open):hover { background: radial-gradient(closest-side at 50% 76%, rgba(255, 196, 92, .32), transparent); }
}
.is-live .bk-plates-cell:not(.is-open):focus-visible .bkp-lid { transform: translateY(-7%) rotate(-4deg); }
.is-live .bk-plates-cell:not(.is-open):focus-visible { background: radial-gradient(closest-side at 50% 76%, rgba(255, 196, 92, .32), transparent); }
.is-live .bk-plates-cell:not(.is-open):active .bkp-lid { transform: translateY(-2%) scale(.95); transition-duration: .08s; }
/* after a round, the covers nobody lifted rest a little dimmer */
.is-done .bk-plates-cell:not(.is-open) .bkp-lid { filter: brightness(.48) saturate(.5) drop-shadow(0 .14rem .1rem rgba(0, 0, 0, .45)); }
.is-won .bk-plates-cell:not(.is-open) .bkp-lid { filter: brightness(.78) saturate(.75) drop-shadow(0 .14rem .1rem rgba(0, 0, 0, .45)); }

/* a new table: the covers come down in a wave */
.bk-plates-cell.is-drop .bkp-lid { animation: bkp-cover .5s cubic-bezier(.3, 1.35, .55, 1) var(--d, 0s) both; }
@keyframes bkp-cover { 0% { opacity: 0; transform: translateY(-38%) rotate(6deg); } 60% { opacity: 1; } 100% { transform: none; } }

/* lifted, good: the cover sails off, the dish settles, steam rises */
.bk-plates-cell.is-open .bkp-lid { opacity: 0; animation: bkp-lift .62s cubic-bezier(.2, .75, .3, 1) var(--d, 0s) both; }
.bk-plates-cell.is-open .bkp-food { opacity: 1; animation: bkp-dish .5s cubic-bezier(.3, 1.6, .5, 1) calc(var(--d, 0s) + .1s) both; }
.bk-plates-cell.is-good:not(.is-shown) .bkp-steam { animation: bkp-steam 1.9s ease-out calc(var(--d, 0s) + .28s) 2 both; }
.bk-plates-cell.is-good:not(.is-shown) .bkp-steam:nth-of-type(2) { animation-delay: calc(var(--d, 0s) + .5s); }
.bk-plates-cell.is-good:not(.is-shown) .bkp-steam:nth-of-type(3) { animation-delay: calc(var(--d, 0s) + .72s); }
.bk-plates-cell::before { content: ""; position: absolute; inset: -8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 120, .65), rgba(255, 214, 120, 0)); opacity: 0; pointer-events: none; }
.bk-plates-cell.is-good.is-new::before { animation: bkp-burst .85s ease-out; }
.bk-plates-cell.is-good.is-new .bkp-spark { animation: bkp-spark .7s cubic-bezier(.2, .8, .3, 1) .12s both; }
.bk-plates-cell.is-open:not(.is-shown)[data-dish="jelly"] .bkp-food { animation: bkp-dish .5s cubic-bezier(.3, 1.6, .5, 1) .1s both, bkp-wobble .9s ease-in-out .55s; }
@keyframes bkp-lift { 0% { opacity: 1; transform: none; } 32% { opacity: 1; transform: translateY(-30%) rotate(-9deg); } 100% { opacity: 0; transform: translate(16%, -66%) rotate(-24deg) scale(.9); } }
@keyframes bkp-dish { 0% { opacity: 0; transform: scale(.72) translateY(5%); } }
@keyframes bkp-steam { 0% { opacity: 0; transform: translateY(14%) scaleY(.7); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-28%) scaleY(1.15); } }
@keyframes bkp-burst { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.25); } }
@keyframes bkp-spark { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 35% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--sx), var(--sy)) scale(1); } }
@keyframes bkp-wobble { 0%, 100% { transform: none; } 20% { transform: scale(1.07, .93); } 40% { transform: scale(.95, 1.05); } 60% { transform: scale(1.03, .97); } 80% { transform: scale(.99, 1.01); } }

/* lifted, burnt: the cover jumps, the plate shakes, black smoke, embers in the char */
.bk-plates-cell.is-hit { background: radial-gradient(closest-side at 50% 72%, rgba(255, 86, 40, .5), transparent); animation: bkp-shake .5s cubic-bezier(.36, .07, .19, .97); }
.bk-plates-cell.is-hit .bkp-lid { animation: bkp-jump .55s cubic-bezier(.2, .8, .3, 1) both; }
.bk-plates-cell.is-hit .bkp-smoke { animation: bkp-smoke 1.7s ease-out 2 both; }
.bk-plates-cell.is-hit .bkp-smoke:nth-of-type(2) { animation-delay: .22s; }
.bk-plates-cell.is-hit .bkp-smoke:nth-of-type(3) { animation-delay: .44s; }
.bk-plates-cell.is-hit .bkp-heat { opacity: .6; animation: bkp-ember 1.1s ease-in-out 4 alternate; }
.bk-plates-cell.is-hit .bkp-flame { animation: bkp-flame .85s cubic-bezier(.2, .9, .3, 1) .05s both; }
.bk-plates-cell.is-hit .bkp-spark { fill: #ffb347; animation: bkp-ember-fly .8s cubic-bezier(.15, .8, .3, 1) .08s both; }
.bk-plates-cell.is-hit .bkp-spark:nth-of-type(odd) { fill: #ff6a1a; }
@keyframes bkp-flame { 0% { opacity: 0; transform: translateY(12%) scale(.3, .2); } 18% { opacity: 1; transform: scale(1.15, 1.25); } 45% { opacity: .95; transform: scale(.92, 1.08); } 100% { opacity: 0; transform: translateY(-14%) scale(.5, 1.3); } }
@keyframes bkp-ember-fly { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(var(--sx) * 1.6), calc(var(--sy) * 1.6 - 18px)) scale(.7); } }
.bk-plates-cell.is-shown .bkp-food, .bk-plates-cell.is-shown .bkp-base { opacity: .62; }
.bk-plates-cell.is-shown.is-good .bkp-food, .bk-plates-cell.is-shown.is-good .bkp-base { opacity: .38; }
.bk-plates-cell.is-shown.is-good .bkp-lid { animation-name: bkp-lift-soft; }
@keyframes bkp-lift-soft { 0% { opacity: .5; transform: none; } 100% { opacity: 0; transform: translateY(-34%) rotate(-8deg); } }
.bk-plates-cell.is-shown .bkp-smoke:nth-of-type(1) { animation: bkp-smoke 1.5s ease-out calc(var(--d, 0s) + .15s) both; }
@keyframes bkp-shake { 0%, 100% { transform: none; } 14% { transform: translateX(-5px) rotate(-3deg); } 28% { transform: translateX(5px) rotate(3deg); } 42% { transform: translateX(-4px) rotate(-2deg); } 58% { transform: translateX(3px) rotate(1deg); } 76% { transform: translateX(-2px); } }
@keyframes bkp-jump { 0% { opacity: 1; transform: none; } 20% { opacity: 1; transform: translateY(-34%) rotate(12deg); } 100% { opacity: 0; transform: translate(-14%, -78%) rotate(34deg) scale(.9); } }
@keyframes bkp-smoke { 0% { opacity: 0; transform: translateY(18%) scale(.45); } 22% { opacity: .9; } 100% { opacity: 0; transform: translateY(-160%) scale(2.2); } }
@keyframes bkp-ember { 0% { opacity: .25; } 100% { opacity: .8; } }

/* one compact row above the main button: the settings before a round, the run's heat during one (same height, nothing jumps) */
.bkp-slot { position: relative; min-height: 3.2rem; margin-top: .35rem; }
.bkp-set { display: flex; align-items: stretch; justify-content: space-between; gap: .4rem; }
.bk-plates[data-phase="live"] .bkp-set { visibility: hidden; }
.bkp-field { position: relative; display: block; min-width: 0; height: 3.2rem; border-radius: .9rem; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.bkp-field > span { position: absolute; left: .7rem; top: .32rem; font-size: .8rem; font-weight: 600; line-height: 1; color: var(--lk-soft2); pointer-events: none; }
.bkp-field select, .bkp-field input { display: block; width: 100%; height: 100%; margin: 0; padding: 1.05rem .7rem 0; border: 0; border-radius: inherit; background: none; color: var(--lk-text); font: inherit; font-size: max(1rem, 16px); font-weight: 800; font-variant-numeric: tabular-nums; -webkit-appearance: none; appearance: none; }
.bkp-field select { padding-right: 1.9rem; cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbf3f6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right .6rem center / .85rem no-repeat; }
.bkp-field select option { color: #1d0612; }
.bkp-field:focus-within { box-shadow: inset 0 0 0 2px var(--lk-gold); }
.bkp-field select:focus-visible, .bkp-field input:focus-visible { outline: none; }
.bkp-ksel { flex: 0 0 4.55rem; }
.bkp-bet { display: flex; flex: 1 1 auto; min-width: 0; }
.bkp-betf { flex: 1 1 3.4rem; border-radius: 0; }
.bkp-betf input { text-align: center; padding-inline: .1rem; letter-spacing: -.02em; }
.bkp-betf > span { left: 50%; transform: translateX(-50%); }
.bkp-seg { display: flex; flex: none; }
.bkp-btn { flex: none; min-width: 44px; width: 2.75rem; height: 3.2rem; padding: 0; border: 0; background: var(--lk-panel); color: var(--lk-text); font: inherit; font-size: 1.15rem; font-weight: 800; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2); touch-action: manipulation; }
.bkp-bet > .bkp-btn:first-child, .bkp-seg > .bkp-btn:first-child { border-radius: .9rem 0 0 .9rem; }
.bkp-bet > .bkp-btn:last-child, .bkp-seg > .bkp-btn:last-child { border-radius: 0 .9rem .9rem 0; }
.bkp-seg > .bkp-btn { font-size: 1rem; }
@media (hover: hover) { .bkp-btn:not(:disabled):hover { background: #2e1626; } }
.bkp-btn:not(:disabled):active { background: #3a1b30; }
.bkp-btn:disabled { color: rgba(251, 243, 246, .35); cursor: default; }
.bkp-kpills { display: none; align-items: center; gap: .55rem; }
.bkp-kpills .bkp-k { flex-wrap: nowrap; }
.bkp-k > button { min-width: 44px; font-variant-numeric: tabular-nums; }
.bkp-cap { font-size: .86rem; font-weight: 600; color: var(--lk-soft2); }
.bkp-live { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: .45rem; padding: 0 .1rem; }
.bkp-live p { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin: 0; font-size: .86rem; font-weight: 600; color: var(--lk-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bkp-live b { color: var(--lk-strong); font-weight: 800; }
.bkp-live.is-clearing #bkp-left { color: var(--lk-gold); }
.bkp-bar { position: relative; display: block; height: .42rem; border-radius: 999px; background: rgba(255, 255, 255, .09); }
.bkp-bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #f6c453, #ff8a3d 45%, #ff3d5e 80%); clip-path: inset(0 calc(100% - var(--risk, 0) * 100%) 0 0 round 999px); transition: clip-path .4s cubic-bezier(.3, 1.3, .5, 1); }
@media (max-width: 359px) {
  .bkp-set { flex-wrap: wrap; } .bkp-ksel { flex: 1 1 4.6rem; } .bkp-bet { flex: 1 1 100%; order: 3; } .bkp-seg { flex: 1 1 auto; } .bkp-seg > .bkp-btn { flex: 1 1 50%; }
  .bkp-slot { min-height: 6.85rem; }
}
@media (min-width: 1000px) and (min-height: 600px) {
  .bkp-ksel { display: none; } .bkp-kpills { display: flex; }
  .bkp-set { gap: .8rem; } .bkp-bet { flex: 0 1 10rem; }
}

/* the main button's words stay on one line, a little smaller on a narrow phone */
.bk-plates-go { white-space: nowrap; font-size: min(1em, 4.9vw); }

/* desktop: the game column is wider than the kit's tool column (the board is 600px or more at 1440), and she stays beside it */
@media (min-width: 1000px) and (min-height: 600px) {
  .bk-plates-split { grid-template-columns: minmax(0, 1fr) minmax(0, min(42rem, 50vw)); }
  .bk-plates-cell { aspect-ratio: 1 / .7; }
}
/* from 1200 the room's shared layout (.bk-wide in bk.css) gives the game column 52rem: flatter cells keep the board's height, so
   the bet row and Serve stay on a 900px-high screen */
@media (min-width: 1200px) and (min-height: 600px) {
  .bk-plates-cell { aspect-ratio: 1 / .54; }
}

/* a plate on its way up (the live room answers in a moment): the cover rises a touch and the lamp light leaks out */
.bk-plates-cell.is-lifting .bkp-lid { transform: translateY(-12%) rotate(-5deg); animation: bkp-lifting .5s ease-in-out infinite alternate; }
.bk-plates-cell.is-lifting { background: radial-gradient(closest-side at 50% 76%, rgba(255, 196, 92, .4), transparent); }
@keyframes bkp-lifting { to { transform: translateY(-17%) rotate(-7deg); } }
.bk-plates .bkp-cap-note { color: var(--lk-soft2); }

/* at the tables: your seat, the room's big wins, and the Bar (under the game, never in the way of the first screen) */
.bkp-rail { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "seat main" "seat bar"; align-items: center; gap: .3rem .9rem; margin-top: .9rem; padding: .7rem .9rem .8rem .6rem; border-radius: 1.3rem; background: linear-gradient(180deg, rgba(34, 16, 28, .9), rgba(23, 8, 19, .9)); box-shadow: inset 0 0 0 1.5px rgba(201, 154, 59, .35); }
.bkp-rail-seat { grid-area: seat; width: 6.5rem; --sw: 6.5rem; }
.bkp-rail-main { grid-area: main; min-width: 0; }
.bkp-rail-k { display: flex; align-items: center; gap: .45rem; margin: 0 0 .35rem; font-family: Bricolage, sans-serif; font-weight: 800; font-size: 1.02rem; color: var(--lk-gold); }
.bkp-rail-k i { width: .5rem; height: .5rem; border-radius: 50%; background: #5fe08a; box-shadow: 0 0 .5rem #5fe08a; animation: bkp-blink 2.4s ease-in-out infinite; }
@keyframes bkp-blink { 50% { opacity: .35; } }
.bkp-rail-list { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; font-size: .86rem; color: var(--lk-soft); }
.bkp-rail-list li { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.3; }
.bkp-rail-list li:nth-child(n + 3) { display: none; }
.bkp-rail-list li.is-quiet { white-space: normal; color: var(--lk-soft2); }
.bkp-rail-list li.is-new { animation: bkp-feed-in .6s cubic-bezier(.2, .9, .3, 1); }
@keyframes bkp-feed-in { from { opacity: 0; transform: translateX(-.8rem); } }
.bkp-rail-list b { color: var(--lk-strong); font-weight: 800; }
.bkp-rail-list .bkp-gain { color: var(--lk-pass); font-weight: 800; }
.bkp-rail-list small { color: var(--lk-soft2); font-size: max(.8rem, 12px); }
.bkp-rail-bar { grid-area: bar; justify-self: start; gap: .4rem; }
.bkp-rail-bar img { width: 1.6rem; height: 1.6rem; margin-left: -.3rem; }
@media (min-width: 1000px) { .bkp-rail-list li:nth-child(n + 3) { display: -webkit-box; } .bkp-rail-list li:nth-child(n + 5) { display: none; } }

/* phones, signed in: her row is compact so the board, the settings and the button share the first screen */
@media (max-width: 759px) {
  #bkp-wife.bkp-compact { grid-template-columns: 31% minmax(0, 1fr); }
  #bkp-wife.bkp-compact .lk-say q { font-size: clamp(1.1rem, 4.8vw, 1.35rem); }
}
/* desktops: the board's width follows the screen's height, so the bet row never hides under the button (1280x720) */
@media (min-width: 1000px) and (min-height: 600px) { .bkp-pass { max-width: calc((100svh - 20rem) * 1.5); margin-inline: auto; } }

/* the last ten rounds */
.bk-plates-last { margin-top: .4rem; }
.bk-plates-last ol { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.bk-plates-last li { display: inline-flex; align-items: center; min-height: 1.9rem; padding: 0 .65rem; border-radius: 999px; background: rgba(95, 224, 138, .13); color: var(--lk-pass); font-size: .84rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.bk-plates-last li.is-burnt { background: rgba(255, 79, 147, .14); color: var(--lk-pink2); }
.bk-plates-last li.is-empty { padding: 0; background: none; color: var(--lk-soft2); font-weight: 600; }
.bk-plates-last li.is-new { animation: bkp-chip .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bkp-chip { 0% { transform: scale(.4); opacity: 0; } }

/* the odds table follows the choice of burnt plates; the row you have reached is gold */
.bk-plates-odds tr.is-now th, .bk-plates-odds tr.is-now td { color: var(--lk-gold); }
.bk-plates-back { margin-top: 1.2rem; max-width: 30rem; }

/* the Wife changes pose with the state of the table */
.bk-plates-pose { animation: bkp-pose .4s ease-out; }
@keyframes bkp-pose { 0% { opacity: .2; } }

/* the win, and it grows with the multiplier (tiers: under x2, x2+, x5+, x10+): the multiplier rises off the pass, rays of lamp
   light, gold stars at x5+, and spoons fly to the Spoons chip in the header (7, 12, 18 or 28 of them) */
.bkp-float { position: absolute; left: 50%; top: 44%; z-index: 4; display: grid; justify-items: center; padding: .35rem 1.1rem .4rem; border-radius: 1.1rem; background: linear-gradient(180deg, #fff1b8, var(--lk-gold)); color: var(--lk-ink); font-family: Bricolage, sans-serif; font-weight: 800; font-size: clamp(1.25rem, 5vw, 1.6rem); line-height: 1; letter-spacing: -.02em; white-space: nowrap; box-shadow: 0 .5rem 1.6rem rgba(0, 0, 0, .5), 0 0 0 3px rgba(29, 6, 18, .35); pointer-events: none; transform: translate(-50%, -50%); animation: bkp-rise 1.9s cubic-bezier(.2, .8, .3, 1) both; }
.bkp-float small { margin-top: .15rem; font-family: Geist, sans-serif; font-size: max(.55em, 12px); font-weight: 800; color: #1f6b42; letter-spacing: 0; }
.bkp-float[data-tier="1"] { font-size: clamp(1.5rem, 6vw, 2rem); }
.bkp-float[data-tier="2"] { font-size: clamp(1.8rem, 7.5vw, 2.5rem); animation-duration: 2.2s; }
.bkp-float[data-tier="3"] { font-size: clamp(2.1rem, 9vw, 3rem); animation-duration: 2.6s; box-shadow: 0 .5rem 1.6rem rgba(0, 0, 0, .5), 0 0 0 3px rgba(29, 6, 18, .35), 0 0 2.6rem rgba(255, 214, 102, .8); }
@keyframes bkp-rise { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.5) rotate(-6deg); } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1.12) rotate(-2deg); } 24% { transform: translate(-50%, -50%) scale(1) rotate(-2deg); } 72% { opacity: 1; transform: translate(-50%, -78%) rotate(-2deg); } 100% { opacity: 0; transform: translate(-50%, -125%) scale(.92) rotate(-2deg); } }
.bkp-burst { position: absolute; left: 0; right: 0; top: 50%; z-index: 3; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(rgba(255, 226, 140, .5) 0deg 6deg, rgba(255, 226, 140, 0) 6deg 20deg);
  -webkit-mask: radial-gradient(closest-side, #000 18%, transparent 74%); mask: radial-gradient(closest-side, #000 18%, transparent 74%);
  animation: bkp-rays 1.5s ease-out both; }
.bkp-burst[data-tier="2"] { animation-duration: 1.9s; }
.bkp-burst[data-tier="3"] { animation-duration: 2.4s; background: repeating-conic-gradient(rgba(255, 236, 160, .75) 0deg 7deg, rgba(255, 140, 80, 0) 7deg 18deg); }
@keyframes bkp-rays { 0% { opacity: 0; transform: translateY(-50%) scale(.25) rotate(0deg); } 22% { opacity: 1; } 100% { opacity: 0; transform: translateY(-50%) scale(1) rotate(50deg); } }
.bk-plates-board.is-won[data-tier="2"], .bk-plates-board.is-won[data-tier="3"] { box-shadow: inset 0 0 0 2px rgba(246, 196, 83, .9), 0 0 3.4rem rgba(246, 196, 83, .32), inset 0 -1.2rem 2rem rgba(0, 0, 0, .35); }
.bkp-fly { position: fixed; left: 0; top: 0; z-index: 60; width: 2.1rem; height: 2.1rem; margin: -1.05rem 0 0 -1.05rem; pointer-events: none; color: var(--lk-gold); filter: drop-shadow(0 0 .35rem rgba(255, 210, 110, .85)) drop-shadow(0 .2rem .3rem rgba(0, 0, 0, .5)); will-change: transform, opacity; }
.bkp-star { position: fixed; left: 0; top: 0; z-index: 59; width: .95rem; height: .95rem; margin: -.475rem 0 0 -.475rem; pointer-events: none; background: #ffe08a; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); will-change: transform, opacity; }
.bkp-star:nth-child(3n) { background: #ff8ab8; } .bkp-star:nth-child(4n) { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .bk-plates *, .bk-plates *::before, .bk-plates *::after, .bk-plates-pose, .bkp-fly, .bkp-star, .bkp-rail * { animation: none !important; transition: none !important; }
  .bk-plates-cell.is-hit .bkp-smoke { opacity: .55; }
  .bk-plates-cell.is-hit .bkp-smoke:nth-of-type(3) { opacity: 0; }
}
/* r7: a solo game has no seat thumbnail (a stool with initials read as a placeholder): the row is the room's feed and the Bar */
.bkp-rail { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main bar"; }
.bkp-rail-seat { display: none; }
@media (max-width: 559px) { .bkp-rail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "bar"; } }
/* ============================================================== r8 (15 Nov review) */
/* the ticket hangs half above the pass: the pass leaves room for it, so it never sits on the header's chips or the CRO plaque */
.bk-plates .bkp-pass { margin-top: 1.8rem; }
/* r9 (15 Nov review): a step button that can't act now (½, ×2, − and + at their ends) keeps a solid, muted look whose sign reads at
   4.5:1 or better (it was see-through, 2.98:1), as the other games' idle tools do */
.bkp-btn:disabled { color: #a3909b; background: #140711; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12); cursor: not-allowed; }
/* ============================================================== r10 (15 Nov review) */
/* the table's top win (CRO): its own first line in the seal paragraph, so on a phone's first screen it ends just above the sticky Serve
   bar; the bar's fade over the page is a slim one there, so that line is never half hidden (the seal's hash may sit under the bar) */
.bk-plates .bkp-cap-note { display: block; margin-bottom: .15rem; font-weight: 600; }
@media (max-width: 759px) { #bkp-go::before { height: .45rem; } }
/* the gold card says it as every game does: what came back (big), the net under it, bold enough to read at a glance */
.bkp-moment[data-kind="won"] .bkp-card span { font-size: max(1em, 14px); font-weight: 800; color: #4a3008; font-variant-numeric: tabular-nums; }
/* ============================================================== r11 (15 Nov review, 8.7) */
/* desktops up to 820px tall (1280x720, 1366x768, 1440x800): the pass is a little smaller, so the whole bet row (Burnt plates, −/+, ½/×2,
   the bet) ends above the sticky Serve button's solid band and its fade, in both rooms (the CRO room's plaque puts the pass lower; at
   1280x720 the bet "0.1" was cut in half) */
@media (min-width: 1000px) and (min-height: 600px) and (max-height: 820px) { .bkp-pass { max-width: calc((100svh - 23rem) * 1.5); } }
/* r11: the flying spoon is the room's one spoon (js/bk-ui.js SPOON_SVG); it fills its box */
.bkp-fly svg { display: block; width: 100%; height: 100%; }
/* r11: the seal's label and its hash on one line; the hash gives way first and ends in "…" (it wrapped, leaving "3d…" alone on a phone) */
.bk-seal-row { display: flex; align-items: baseline; column-gap: .3em; min-width: 0; }
.bk-seal-row > span { flex: 0 1 auto; min-width: 0; }
.bk-seal-row > [data-hash] { flex: 0 1000 auto; min-width: 3.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
/* r12: a narrow phone (360-379): the bet field keeps 44px or more between − and + (it was 39px): the burnt picker and the gaps a little
   tighter */
@media (min-width: 360px) and (max-width: 379px) {
  .bkp-set { gap: .3rem; }
  .bkp-ksel { flex-basis: 4.2rem; }
  .bkp-betf { min-width: 44px; }
}
/* ============================================================== r16 (16 Nov review, 8.3) */
/* B3: the row under the board steps aside while the sticky Serve bar would cut it (js: .is-underbar; css/bk-stage.css) */
.bkp-slot, #bkp-seal, .bk-plates-last { transition: opacity .15s; }
/* polish 4: a line the sticky Serve bar would cut in half steps aside until it is whole (js; on a 1280x720 desktop "Last 10 rounds" sat
   half under the bar) */
:is(.bkp-slot, #bkp-seal, .bk-plates-last).is-underbar { opacity: 0; }
/* ============================================================== r19 (16 Nov review: 7.9 / 8.3) */
/* S6: a big win's rays turn inside the board, clipped to it: at 320 the turning square ran 20px past the screen's edge and the phone zoomed
   the page out for a moment (js: .bkp-burstclip around .bkp-burst) */
.bkp-burstclip { position: absolute; inset: 0; z-index: 3; overflow: hidden; border-radius: inherit; pointer-events: none; }
.bkp-burstclip > .bkp-burst { z-index: auto; }
/* S1: what happened to a typed bet, said where the player is looking: the line under the bet row */
.bkp-betnote { margin: .5rem 0 0; font-size: max(.86rem, 13px); font-weight: 650; line-height: 1.3; color: var(--lk-gold); text-wrap: pretty; }
.bkp-betnote[hidden] { display: none; }
/* S5: a tablet held upright (760-999 wide, portrait): the game uses the width, as at 390 and 1024 (it sat in a 350px column on the right, the plates
   smaller than on a phone, with a small floating Wife and 500px of empty wall on the left). One column: her row (her picture beside her
   order ticket) above the card, the card and the button the column's width */
@media (min-width: 760px) and (max-width: 999px) and (min-height: 600px) and (orientation: portrait) {
  .bkp-ksel { display: none; } .bkp-kpills { display: flex; } .bkp-set { gap: .8rem; } .bkp-bet { flex: 0 1 11rem; }   /* the burnt plates as pills, as from 1000 */
  .lk-split.bk-stagewrap--pass { grid-template-columns: minmax(0, 1fr); max-width: 44rem; gap: 0; padding-top: .9rem; }
  .lk-split.bk-stagewrap--pass > .bk-tool { grid-area: auto; }
  .lk-split.bk-stagewrap--pass > #bkp-wife { --lk-wife-h: 12.5rem; grid-area: auto; position: relative; top: auto; z-index: 1; display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); align-items: end; gap: 0 1.2rem; justify-self: stretch; margin: 0 0 -.4rem; padding: 0 1rem; }
  #bkp-wife .lk-shot { width: 100%; }
  #bkp-wife .lk-shot img { display: block; margin-inline: auto; }
  #bkp-wife .lk-say { order: 0; align-self: center; justify-self: start; max-width: 27rem; margin: 0 0 1.4rem; }
  #bkp-wife .lk-say q { font-size: 1.55rem; }
}
