/* VALBLOX Mines page, on top of styles.css (same tokens, plates and buttons).
   One forged plate holds the control panel and a carved board well. Tiles are raised iron-rimmed slabs with a
   carved knot; their bevels are true insets with one tone per facet against the top-left light (top and top-left
   +2, top-right +1, bottom-left -1, bottom and bottom-right -2), the bottom bevel deeper as the slab's front.
   A revealed tile becomes a socket: same walls, inverted normals, so the tones flip. */

.mines, .content--game .bets { width: 100%; }   /* game frame and bets table share the content column (.content carries the gutter) */
.mines fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* ---------------------------------------------------------------- frame */
.mframe { position: relative; isolation: isolate; display: grid; grid-template-columns: 336px minmax(0, 1fr); padding-right: 12px; }
.mframe > .plate {
  --c: 16px; --n: 6px; --bt: rgba(var(--hi), .24); --bb: rgba(var(--lo), .56);
  --face: linear-gradient(122deg, var(--card) 0%, var(--card-b) 100%);
}

/* ---------------------------------------------------------------- panel */
.mpanel { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 8px 0 20px 2px; }
.mpanel__head {
  position: relative; height: 90px; display: flex; align-items: center; gap: 14px; padding: 0 24px 3px 22px;
  background: linear-gradient(90deg, rgba(var(--hi), .34) 0%, rgba(var(--hi), 0) 92%);
  /* the frame face's top-left chamfer line (x + y = 2rw + ci + 1.4142n) in this box's coordinates */
  clip-path: polygon(17.66px 0, 100% 0, 100% 100%, 0 100%, 0 17.66px);
}
.mpanel__head::after {   /* carved seam: dark wall over a lit lip */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(var(--rim-iron) 0 2px, rgba(var(--hi), .6) 2px 3px);
}
.mpanel__icon {
  width: 56px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--lilac);
  background: var(--raised); border: 2px solid var(--rim-iron);
  box-shadow: inset 0 4px 0 rgba(var(--hi), .55), inset 0 -4px 0 rgba(var(--lo), .7), 0 3px 0 rgba(4, 7, 12, .35);
}
.mpanel__icon .ic { width: 28px; height: 28px; margin-top: -2px; filter: drop-shadow(0 0 6px rgba(var(--lilac-rgb), .3)); }
.mpanel__name { display: flex; flex-direction: column; gap: 5px; padding-top: 2px; }
.mpanel__name h1 { font-size: 26px; line-height: 30px; letter-spacing: 1px; color: var(--white); text-transform: uppercase; }
.mpanel__name img { width: 88px; height: 12px; }
.mpanel__body { display: flex; flex-direction: column; padding: 22px 24px 0; }

.mlabel {
  float: left; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0; margin-bottom: 8px;
  font-family: "Skranji", sans-serif; font-size: 16px; line-height: 22px; letter-spacing: .64px; color: var(--muted);
}
.mbal, .mhint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; letter-spacing: .5px; }
.mbal img { width: 16px; height: 17px; }
.mbal b { font-weight: 700; color: var(--white); }
.mhint { color: var(--muted); opacity: .75; }
/* the demo refill beside the balance (as rablox): shown only while the balance is empty and no round is on */
.mbal__refill {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin: 0 -4px 0 -2px; padding: 0;
  border: 0; border-radius: 6px; background: none; color: var(--gold); cursor: pointer; transition: background-color .12s;
}
.mbal__refill .ic { width: 15px; height: 15px; }
.mbal__refill:hover { background: rgba(var(--gold-rgb), .14); }
.mbal__refill:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.mbal__refill[hidden] { display: none; }

/* recessed fields (inputs, stats): the shared plate with the bands swapped, so they read as cut into the panel */
:is(.minput, .mstat) {
  --c: 11px; --n: 4px; --rim: var(--rim-iron); --bt: rgba(5, 8, 12, .5); --bb: rgba(var(--hi), .34);
  --face: linear-gradient(180deg, #19202B 0%, #1D2531 100%);
}
.minput { clear: both; height: 53px; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 16px; }
.minput > img { width: 20px; height: 21px; flex: none; }
.minput input {
  flex: 1; min-width: 0; height: 100%; padding: 0 0 2px; border: 0; background: transparent; outline: 0;
  font-family: "Skranji", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: .7px; color: var(--white);
}
.minput input::placeholder { font-weight: 400; color: var(--muted); opacity: .62; }
.minput input[readonly] { color: var(--muted); }
.minput:focus-within { --rim: rgba(var(--lilac-rgb), .8); --glow: inset 0 0 12px rgba(var(--lilac-rgb), .18); }
.minput.is-error { --rim: var(--red); --glow: inset 0 0 12px rgba(253, 74, 63, .2); }
.merr {
  clear: both; display: flex; align-items: center; gap: 6px; margin-top: 6px;
  font-family: "Skranji", sans-serif; font-size: 13px; line-height: 17px; letter-spacing: .4px; color: var(--salmon);
}
.merr[hidden] { display: none; }
.merr::before {
  content: "!"; width: 15px; height: 15px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--red); color: #1A0D0B; font-size: 11px; font-weight: 700; line-height: 1;
}

.mquick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.mquick .btn, .mseg .btn { height: 40px; padding: 0 0 4px; --c: 9px; --n: 3px; }
.mquick .btn { font-size: 15px; }
.mquick .btn[data-bet="half"] { font-family: "Skranji", sans-serif; font-weight: 700; font-size: 19px; padding-bottom: 3px; }   /* the display face has no ½ */

.mfield + .mfield { margin-top: 18px; }
.mseg { clear: both; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mseg .btn { font-size: 14px; letter-spacing: 1px; }
.mseg .btn[aria-pressed="true"] {
  color: var(--lilac-light); --rim: rgba(var(--lilac-rgb), .75);
  --face: linear-gradient(rgba(var(--lilac-rgb), .2) 0%, rgba(var(--lilac-rgb), .04) 100%), var(--raised);
  --glow: inset 0 0 14px rgba(var(--lilac-rgb), .22); text-shadow: 0 0 10px rgba(var(--lilac-rgb), .45);
}

.mfield--band {
  margin: 20px -24px 0 !important; padding: 18px 24px 20px;
  background: linear-gradient(90deg, rgba(var(--hi), .2) 0%, rgba(var(--hi), 0) 100%);
}
.mstep { padding-left: 12px; gap: 10px; }
.mstep .mstep__mine { width: 30px; height: 30px; }
.mstep__btns { display: flex; gap: 3px; }
.mstep__btns .btn { width: 38px; height: 37px; padding: 0 0 3px; --c: 8px; --n: 3px; color: var(--lilac); }
.mstep__btns .btn .ic { width: 18px; height: 18px; }

.mstart { width: 100%; height: 56px; margin-top: 24px; padding: 0 20px 5px; gap: 12px; font-size: 18px; letter-spacing: 1.44px; --c: 12px; --n: 5px; }
.mstart.is-cash {
  color: var(--green); --rim: var(--rim-iron); --rw: 2px;
  --bt: rgba(var(--green-bevel), .36); --bb: var(--green-deep);
  --face: linear-gradient(rgba(var(--green-2-rgb), .36) 0%, rgba(var(--green-rgb), 0) 100%), linear-gradient(var(--acc-a) 0%, var(--acc-b) 100%);
  --glow: inset 0 0 20px rgba(var(--green-rgb), .24);
}
.mstart[aria-disabled="true"] { filter: saturate(.35) brightness(.8); cursor: default; }
/* a click on an idle tile nudges Start (as rablox) */
.mstart.is-nudge { animation: m-nudge 320ms ease 2; }
@keyframes m-nudge { 25% { translate: -4px 0; } 75% { translate: 4px 0; } }
.mstart__pay { display: inline-flex; align-items: center; gap: 6px; font-family: "Skranji", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: .6px; color: var(--white); }
.mstart__pay[hidden] { display: none; }
.mstart__pay img { width: 18px; height: 19px; }
/* Random Pick: under Start/Cashout, so Cashout still comes up exactly where Start was; a real button, a step under it */
.mrand { width: 100%; height: 42px; margin-top: 10px; padding: 0 16px 4px; gap: 8px; font-size: 14px; --c: 9px; --n: 3px; }
.mrand .ic { width: 18px; height: 18px; color: var(--lilac); }
.mrand[aria-disabled="true"] { filter: saturate(.4) brightness(.72); cursor: default; }

.mpanel .btn:disabled { filter: saturate(.4) brightness(.72); cursor: default; }
.mtools { display: flex; gap: 10px; margin-top: 14px; }
.mfair { flex: 1; gap: 10px; }
.mfair .ic { width: 19px; height: 19px; color: var(--muted); }
.mslide .ic { width: 21px; height: 21px; }
.mslide[aria-pressed="true"] {
  color: var(--gold); --rim: var(--gold);
  --face: linear-gradient(rgba(var(--gold-rgb), 0) 0%, rgba(var(--gold-rgb), .24) 100%), var(--raised);
}

/* in-round stats replace the quick-bet row and the grid size, so the panel keeps its height */
.mstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.mstat { height: 56px; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 0 14px 2px; }
.mstat > span { font-family: "Skranji", sans-serif; font-size: 12px; line-height: 16px; letter-spacing: .5px; color: var(--muted); }
.mstat > b { display: flex; align-items: center; gap: 6px; font-family: "Skranji", sans-serif; font-weight: 700; font-size: 18px; line-height: 23px; letter-spacing: .6px; color: var(--white); }
.mstat img { width: 16px; height: 17px; }
.mstat .ic--sm { width: 17px; height: 17px; color: var(--muted); }
.mstat .is-up { color: var(--green); }
#m-multi { color: var(--gold); }
#m-next { color: var(--lilac-light); }
.mpanel:not([data-state="play"]) [data-play] { display: none; }
.mpanel[data-state="play"] [data-idle] { display: none; }
/* Mines page: 18 + 56 + 10 + 56 = 140px, as tall as the quick bets and Grid Size, so Cashout comes up exactly where
   Start was (with 12px it jumped 6px) */
.mgame .mstats { margin-top: 18px; }

/* ---------------------------------------------------------------- board well */
.mboard {
  position: relative; isolation: isolate; container-type: inline-size; margin: 12px 0;
  display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 32px; min-height: 626px;
}
.mboard__well {
  --c: 11px; --n: 5px; --bt: rgba(5, 8, 12, .5); --bb: rgba(var(--hi), .36);
  --face:
    linear-gradient(90deg, rgba(var(--blue-2-rgb), .13) 0%, rgba(var(--blue-2-rgb), 0) 46%),
    radial-gradient(87% 100% at 50% 100%, #202A39 0%, #141B28 100%);
  background:   /* the forged rim with inverted facets: a carved well's upper walls face away from the light */
    linear-gradient(var(--iron-lo2) 0 0) 0 0 / 50% var(--c) no-repeat,
    linear-gradient(var(--iron-lo2) 0 0) 100% 0 / 50% var(--rw) no-repeat,
    linear-gradient(var(--iron-lo1) 0 0) 100% var(--rw) / 50% calc(var(--c) - var(--rw)) no-repeat,
    linear-gradient(var(--iron-lo1) 0 0) 0 var(--c) / 50% calc(100% - 2 * var(--c)) no-repeat,
    linear-gradient(var(--iron-hi2) 0 0) 0 100% / 50% var(--rw) no-repeat,
    linear-gradient(var(--iron-hi2) 0 0) 100% 100% / 50% var(--c) no-repeat,
    var(--iron-hi1);
}
.mboard > :not(.plate) { grid-area: 1 / 1; }   /* grid, effects layer and plates share one centred cell (the well stays on the padding box) */
/* Mines page: that cell is as tall as the idle well (626 - 2 x 32) and sits at the top of the board, so the grid is
   centred where it always was, but an error line that makes the panel (and so the board) taller no longer moves the
   tiles (they went down 8px). The board scrolls into view on phones with a little room below it. */
.mgame .mboard { grid-template-rows: minmax(562px, auto); align-content: start; scroll-margin-bottom: 12px; }
.mgame .mresult { cursor: pointer; }   /* a click or Escape puts the plate away, to see where the mines were */

/* ---------------------------------------------------------------- tiles */
.mgrid {
  --s: 5; --t: 106px; --g: 8px; --c: 12px; --tt: 3px; --tb: 8px; --emb: 64px;
  display: grid; grid-template-columns: repeat(var(--s), var(--t)); grid-auto-rows: var(--t); gap: var(--g);
}
/* whole-pixel tiles that all fit the same 562px cell, so switching sizes never moves the frame */
.mgrid[data-size="6"] { --s: 6; --t: 88px; --g: 6px; --c: 11px; --tt: 3px; --tb: 7px; --emb: 54px; }
.mgrid[data-size="7"] { --s: 7; --t: 76px; --g: 5px; --c: 10px; --tt: 3px; --tb: 6px; --emb: 46px; }
.mgrid[data-size="8"] { --s: 8; --t: 66px; --g: 4px; --c: 9px; --tt: 2px; --tb: 5px; --emb: 40px; }
.mgrid.is-slide { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mgrid.is-slide.is-play { touch-action: none; }   /* a slide does not scroll the page, but only during a round */
/* the slide's trail (mines.js): one canvas over the whole board, never in the way of a press */
.mboard > .mtrail { position: absolute; z-index: 3; inset: 0; grid-area: auto; width: 100%; height: 100%; pointer-events: none; }

.mtile {
  --rw: 2px; --ci: calc(var(--c) - var(--rw) * .4142);
  --rim: #0B0F15;
  --t2: #505E76; --t1: #404D63; --b1: #1F2635; --b2: #181D28;
  --face: linear-gradient(180deg, #37445B 0%, #2C3648 100%);
  --emblem: url("assets/img/mines/knot.svg");
  position: relative; width: var(--t); height: var(--t); padding: 0; border: 0; background: none; color: inherit;
  transition: transform .12s ease-out;
}
.mtile[aria-disabled="true"] { cursor: default; }   /* idle and opened tiles: aria-disabled, so an idle click can still nudge Start */
.mtile__plate {
  position: absolute; inset: 0; isolation: isolate; background: var(--rim);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)),
                     calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.mtile__plate::before, .mtile__plate::after, .mtile::before, .mtile::after { content: ""; position: absolute; inset: var(--rw); pointer-events: none; }
.mtile__plate::before {   /* bevel ring: upper half +2, lower half -2 */
  background: linear-gradient(var(--t2) 0 50%, var(--b2) 50% 100%);
  clip-path: polygon(var(--ci) 0, calc(100% - var(--ci)) 0, 100% var(--ci), 100% calc(100% - var(--ci)),
                     calc(100% - var(--ci)) 100%, var(--ci) 100%, 0 calc(100% - var(--ci)), 0 var(--ci));
}
.mtile__plate::after {    /* face: every edge moved in along its normal (--tt at the top, --tb at the bottom) */
  background: var(--emblem) 50% calc(50% - (var(--tb) - var(--tt)) / 2) / var(--emb) var(--emb) no-repeat, var(--face);
  clip-path: polygon(calc(var(--ci) + var(--tt) * .4142) var(--tt), calc(100% - var(--ci) - var(--tt) * .4142) var(--tt),
                     100% calc(var(--ci) + var(--tt) * 1.4142), 100% calc(100% - var(--ci) - var(--tb) * 1.4142),
                     calc(100% - var(--ci) - var(--tb) * .4142) calc(100% - var(--tb)), calc(var(--ci) + var(--tb) * .4142) calc(100% - var(--tb)),
                     0 calc(100% - var(--ci) - var(--tb) * 1.4142), 0 calc(var(--ci) + var(--tt) * 1.4142));
}
.mtile::before {          /* top-right chamfer bevel (+1) */
  z-index: 1; background: var(--t1);
  clip-path: polygon(calc(100% - var(--ci)) 0, 100% var(--ci), 100% calc(var(--ci) + var(--tt) * 1.4142), calc(100% - var(--ci) - var(--tt) * .4142) var(--tt));
}
.mtile::after {           /* bottom-left chamfer bevel (-1) */
  z-index: 1; background: var(--b1);
  clip-path: polygon(0 calc(100% - var(--ci)), var(--ci) 100%, calc(var(--ci) + var(--tb) * .4142) calc(100% - var(--tb)), 0 calc(100% - var(--ci) - var(--tb) * 1.4142));
}
.mtile__art { position: absolute; z-index: 2; inset: 0; margin: auto; width: 78%; height: 78%; object-fit: contain; pointer-events: none; }

.mtile:not([aria-disabled="true"]):not(.is-open):hover {
  transform: translateY(-3px);
  --rim: #2E4A60; --face: linear-gradient(180deg, #3F4D66 0%, #333E52 100%); --t2: #5B6A84; --t1: #4A5870;
}
.mtile:not([aria-disabled="true"]):not(.is-open):active { transform: translateY(1px); --tb: calc(var(--tt) + 2px); }
/* a clear frost outline on top of the lit rim and glow (the rim alone was hard to see on the dark well) */
.mtile:focus-visible { outline: 2px solid var(--lilac-light); outline-offset: 3px; --rim: var(--lilac); filter: drop-shadow(0 0 6px rgba(var(--lilac-rgb), .45)); }

/* revealed: a socket. Same walls, inverted normals: top and top-left -2, top-right -1, bottom-left +1, bottom +2 */
.mtile.is-gem, .mtile.is-mine {
  --tt: 5px; --tb: 5px; --emblem: none;
  --t2: #0C1017; --t1: #121822; --b1: #2B3547; --b2: #374358;
}
.mtile.is-gem {
  --rim: #2D5268;
  --face: radial-gradient(58% 58% at 50% 46%, rgba(var(--lilac-rgb), .34) 0%, rgba(var(--lilac-rgb), 0) 100%), linear-gradient(180deg, #151C27 0%, #1B2431 100%);
}
.mtile.is-mine {
  --rim: #5B2620;
  --face: radial-gradient(58% 58% at 50% 46%, rgba(253, 74, 63, .38) 0%, rgba(253, 74, 63, 0) 100%), linear-gradient(180deg, #1A1519 0%, #221B20 100%);
}
.mtile.is-dim { --rim: #0B0F15; --face: linear-gradient(180deg, #141A24 0%, #18202B 100%); --b1: #222B3A; --b2: #2B3546; }
.mtile.is-dim .mtile__art { opacity: .42; transform: scale(.8); filter: saturate(.55); }

/* a picked gem's light, while the round is on (mines.js, "a picked gem's light"); the dimmed end-of-round gems get none.
   The glow: a soft pool of frost behind the gem, inside the socket (over the face, under the art), steady. */
.mtile__glow {
  position: absolute; z-index: 2; inset: 8%; border-radius: 50%; pointer-events: none; opacity: .93;   /* GLOW_REST in mines.js */
  /* centred low, round the crystals' feet, so their tips keep the dark socket behind them */
  background: radial-gradient(closest-side at 50% 57%, rgba(var(--lilac-rgb), .42) 0%, rgba(var(--lilac-rgb), .18) 46%, rgba(var(--lilac-rgb), 0) 100%);
}
/* A glint: a box twice the art's size, centred on it, holding a brightened copy of the art (on the gem, as the art
   box: 78% of the tile, centred) that shows only through its mask, one thin diagonal stripe with soft shoulders.
   mines.js moves the box and the copy against each other; --ga is the stripe's angle, set per glint. */
.mglint {
  --ga: 120deg;
  --band: linear-gradient(var(--ga), transparent 46.2%, rgba(0, 0, 0, .14) 47.4%, rgba(0, 0, 0, .55) 48.7%, #000 49.6%, #000 50.4%,
                          rgba(0, 0, 0, .55) 51.3%, rgba(0, 0, 0, .14) 52.6%, transparent 53.8%);
  position: absolute; z-index: 3; left: -28%; top: -28%; width: 156%; height: 156%; pointer-events: none; opacity: 0;
  -webkit-mask-image: var(--band); mask-image: var(--band);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
/* the copy: the art's solid body only (#mglint-solid, made by mines.js), lit to near white */
.mglint__art { position: absolute; left: 25%; top: 25%; width: 50%; height: 50%; object-fit: contain; filter: url(#mglint-solid) brightness(2) saturate(.4); }
/* the star a glint leaves on a facet tip: four rays, the upright pair longer, on a small frost halo */
.mglint__star {
  position: absolute; z-index: 3; width: 13%; height: 13%; pointer-events: none; opacity: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cdefs%3E%3CradialGradient id='h'%3E%3Cstop offset='0' stop-color='%23E0F5FF' stop-opacity='.8'/%3E%3Cstop offset='.45' stop-color='%238FD4F3' stop-opacity='.26'/%3E%3Cstop offset='1' stop-color='%238FD4F3' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle r='6.5' fill='url(%23h)'/%3E%3Cpath d='M0-11.5C.7-3 3-.8 8 0 3 .8.7 3 0 11.5-.7 3-3 .8-8 0-3-.8-.7-3 0-11.5Z' fill='%23F4FBFF'/%3E%3C/svg%3E") 50% 50% / contain no-repeat;
}

/* ---------------------------------------------------------------- effects */
.mfx { position: relative; z-index: 3; width: 100%; height: 100%; pointer-events: none; align-self: stretch; justify-self: stretch; }
.mfx__p { position: absolute; display: block; transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 0 6px 1px var(--glow-c, transparent); }
.mfx__boom, .mfx__blast { position: absolute; display: block; transform: translate(-50%, -50%); }
.mfx__boom {
  border-radius: 50%;
  background: radial-gradient(closest-side, #FFF1C9 0%, #FFD27A 22%, rgba(253, 138, 63, .85) 42%, rgba(253, 74, 63, .45) 62%, rgba(253, 74, 63, 0) 100%);
}

/* ---------------------------------------------------------------- result and fairness plates */
.mresult, .mnote { position: relative; z-index: 4; isolation: isolate; text-align: center; }
.mresult[hidden], .mnote[hidden] { display: none; }
.mresult { min-width: 344px; padding: 24px 24px 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mresult > .plate, .mnote > .plate {
  --c: 16px; --n: 6px; --bt: rgba(var(--hi), .3); --bb: rgba(var(--lo), .6);
  --face: radial-gradient(70% 90% at 50% 0%, rgba(var(--gold-rgb), .16) 0%, rgba(var(--gold-rgb), 0) 100%), linear-gradient(180deg, #2A3446 0%, #1F2734 100%);
  filter: drop-shadow(0 12px 18px rgba(4, 7, 12, .55));
}
.mresult__kicker { font-size: 14px; line-height: 19px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--lilac-light); }   /* "Cashed out", "Every gem found" (as rablox) */
.mresult__multi.h-gold { font-size: 42px; line-height: 48px; gap: 14px; text-shadow: 0 0 18px rgba(var(--gold-rgb), .35), 0 3px 0 rgba(0, 0, 0, .3); }
.mresult__pay { display: flex; align-items: center; gap: 8px; font-family: "Skranji", sans-serif; font-weight: 700; font-size: 24px; line-height: 30px; letter-spacing: .8px; }
.mresult__pay img { width: 22px; height: 23px; }
.mnote { width: min(440px, calc(100% - 32px)); padding: 26px 30px 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mnote > .plate { --face: radial-gradient(70% 90% at 50% 0%, rgba(var(--lilac-rgb), .12) 0%, rgba(var(--lilac-rgb), 0) 100%), linear-gradient(180deg, #2A3446 0%, #1F2734 100%); }
.mnote__t { font-size: 22px; line-height: 30px; color: var(--lilac-light); text-transform: uppercase; }
.mnote p { font-family: "Skranji", sans-serif; font-size: 14px; line-height: 20px; letter-spacing: .4px; color: var(--muted); }
.mnote .mnote__demo { color: var(--gold); }
.mnote__x { margin-top: 4px; height: 40px; }

/* ---------------------------------------------------------------- bets below the game */
.content--game .bets { margin-top: 64px; }

/* ---------------------------------------------------------------- narrower boards: fluid tiles */
/* the board is narrower than a fixed grid needs: tiles share the width, and the cut, the slab front and the
   emblem scale with the tile (rounded to whole pixels where round() exists, so the rims stay crisp) */
@container (max-width: 561px) {
  .mgrid, .mgrid[data-size] {
    --t: calc((100cqw - (var(--s) - 1) * var(--g)) / var(--s));
    --c: max(6px, calc(var(--t) * .11)); --tt: 2px; --tb: max(3px, calc(var(--t) * .075)); --emb: calc(var(--t) * .6);
  }
}
@supports (width: round(down, 10.5px, 1px)) {
  @container (max-width: 561px) {
    .mgrid, .mgrid[data-size] {
      --t: round(down, calc((100cqw - (var(--s) - 1) * var(--g)) / var(--s)), 2px);   /* even tiles + even gap sums: an even grid that centres on whole pixels */
      justify-self: start; margin-left: round(down, calc((100cqw - var(--s) * var(--t) - (var(--s) - 1) * var(--g)) / 2), 1px);
    }
  }
}
@media (max-width: 1100px) {
  .mboard { padding: 24px; min-height: 0; }
  .mgame .mboard { grid-template-rows: minmax(578px, auto); }   /* the idle panel (650) less the board's margins and padding */
}
@media (max-width: 860px) {
  .mframe { grid-template-columns: minmax(0, 1fr); padding-right: 0; }
  .mpanel { padding-bottom: 6px; }
  .mboard { margin: 0 12px 12px; }
  .mgame .mboard { grid-template-rows: minmax(0, 1fr); }        /* stacked: the well hugs the grid */
}
@media (max-width: 600px) {
  .mpanel__head { height: 78px; padding: 0 16px 3px 16px; gap: 12px; }
  .mpanel__icon { width: 48px; height: 46px; }
  .mpanel__icon .ic { width: 24px; height: 24px; }
  .mpanel__name h1 { font-size: 22px; line-height: 26px; }
  .mpanel__body { padding: 18px 16px 0; }
  .mfield--band { margin: 18px -16px 0 !important; padding: 16px 16px 18px; }
  .mboard { margin: 0 10px 10px; padding: 12px; }
  .mgrid, .mgrid[data-size="6"], .mgrid[data-size="8"] { --g: 4px; }
  .mgrid[data-size="7"] { --g: 3px; }
  .mtile { --rw: 1.5px; }
  .mtile__glow { inset: 18%; background: radial-gradient(closest-side at 50% 58%, rgba(var(--lilac-rgb), .26) 0%, rgba(var(--lilac-rgb), .1) 46%, rgba(var(--lilac-rgb), 0) 100%); }   /* small tiles: a smaller, softer pool, not a bloom */
  .mresult { min-width: 0; width: calc(100% - 24px); padding: 18px 12px 20px; }
  .mresult__multi.h-gold { font-size: 32px; line-height: 38px; }
  .content--game .bets { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .mtile { transition: none; }
  .mstart.is-nudge { animation: none; }
}

/* bets table tabs (assets/js/bets-tabs.js): filtered rows hide; an empty filter says so */
.bets .brows > [hidden], .bets__empty[hidden] { display: none; }
.bets__empty { width: 100%; height: 56px; margin: 0; display: grid; place-items: center; font-family: "Skranji", sans-serif; font-size: 15px; letter-spacing: .6px; color: var(--muted); }
