/* Расклад: three large cards on the stage, the product building up above, the risk table under them */
.g-spread .g-stage { padding: 0; }
.sprd-wrap { position: relative; padding: 38px 12px 12px; }

/* product: the formula, then the total in huge type */
.sprd-head { display: grid; justify-items: center; gap: 0; margin-bottom: 8px; }
.sprd-eq { height: 24px; display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 900; color: #efeff4; white-space: nowrap; }
.sprd-eq span { display: inline-block; min-width: 22px; text-align: center; color: #a9acbf; }
.sprd-eq i { font-style: normal; font-size: 14px; color: #a9acbf; }
.sprd-totrow { height: 64px; display: flex; align-items: center; justify-content: center; gap: 12px; white-space: nowrap; }
.sprd-tot { display: inline-flex; align-items: baseline; gap: 8px; font-size: 60px; line-height: 1; font-weight: 900; letter-spacing: -2px; color: #efeff4; will-change: transform; }
.sprd-tot small { font-size: 18px; font-weight: 800; letter-spacing: 0; color: #a9acbf; }
.sprd-tot.idle { font-size: 50px; }
.sprd-tot.run { color: #efeff4; }
.sprd-tot.w { color: var(--win); text-shadow: 0 0 34px rgba(212,255,58,.45), 0 0 10px rgba(212,255,58,.25); }
.sprd-tot.top { color: var(--gold); text-shadow: 0 0 40px rgba(255,195,55,.6), 0 0 12px rgba(255,195,55,.35); }
.sprd-tot.l { color: var(--loss); }
.sprd-tot.push { color: #efeff4; }
.sprd-amt { height: 36px; padding: 0 14px; border-radius: 18px; display: inline-flex; align-items: center; gap: 5px; background: var(--win); color: var(--on-accent); font-size: 19px; font-weight: 900; box-shadow: 0 4px 0 #8fb012, 0 8px 22px rgba(212,255,58,.25); }
.sprd-amt:empty { display: none; }
.sprd-amt.top { background: var(--gold); box-shadow: 0 4px 0 #b07d12, 0 8px 26px rgba(255,195,55,.35); }
.sprd-amt.back { background: #2f3248; color: #efeff4; box-shadow: 0 4px 0 #181a26; }
.sprd-amt img { width: 18px; height: 18px; }

/* the row of cards; sizes follow the stage width */
.sprd-row { container-type: inline-size; display: flex; align-items: flex-end; justify-content: center; gap: 0; padding-bottom: 6px; }
.sprd-card { --w: min(92px, 26.5cqw); position: relative; flex: none; width: var(--w); height: calc(var(--w) * 1.4); border-radius: calc(var(--w) * .1); }
.sprd-card.sprd-c { --w: min(104px, 30cqw); margin-bottom: 12px; }
.sprd-x { flex: none; width: min(24px, 6.5cqw); align-self: center; text-align: center; font-size: 20px; font-weight: 900; color: #a9acbf; }
.sprd-flip { position: absolute; inset: 0; will-change: transform; }
.sprd-glow { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; }
.sprd-flash { position: absolute; inset: 0; border-radius: inherit; background: rgba(255,93,99,.9); opacity: 0; pointer-events: none; z-index: 3; mix-blend-mode: screen; }

/* back: deep violet, a fine lattice, the bolt in a medallion */
.sprd-back { position: absolute; inset: 0; border-radius: calc(var(--w) * .1); overflow: hidden; background: radial-gradient(80% 60% at 50% 40%, #3a2a9a 0%, #2a1d78 55%, #1d1358 100%); box-shadow: 0 5px 0 #120b3d, 0 12px 20px rgba(0,0,0,.55); }
.sprd-back::before { content: ""; position: absolute; inset: calc(var(--w) * .07); border-radius: calc(var(--w) * .05); box-shadow: inset 0 0 0 1.5px rgba(185,173,255,.6);
  background:
    repeating-linear-gradient(60deg, rgba(185,173,255,.16) 0 1px, rgba(0,0,0,0) 1px calc(var(--w) * .09)),
    repeating-linear-gradient(-60deg, rgba(185,173,255,.16) 0 1px, rgba(0,0,0,0) 1px calc(var(--w) * .09)),
    repeating-linear-gradient(0deg, rgba(185,173,255,.08) 0 1px, rgba(0,0,0,0) 1px calc(var(--w) * .078)); }
.sprd-back::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 45%; background: linear-gradient(180deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,0) 100%); }
.sprd-medal { position: absolute; left: 50%; top: 50%; z-index: 1; width: calc(var(--w) * .5); height: calc(var(--w) * .5); transform: translate(-50%, -50%); filter: drop-shadow(0 0 8px rgba(212,255,58,.25)); }

/* face: an ornamental frame, one emblem, the multiplier in big type */
.sprd-face { position: absolute; inset: 0; border-radius: calc(var(--w) * .1); overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 55%), var(--f); box-shadow: 0 5px 0 var(--e), 0 12px 20px rgba(0,0,0,.55); color: var(--k); }
.sprd-orn { position: absolute; inset: 0; width: 100%; height: 100%; }
.sprd-m { position: absolute; left: 0; right: 0; bottom: calc(var(--w) * .16); text-align: center; font-size: calc(var(--w) * .3); line-height: 1; font-weight: 900; letter-spacing: -.03em; white-space: nowrap; }

/* the current risk's table: raised chips, the value just turned takes its colour */
.sprd-tab { display: grid; gap: 7px; margin-top: 8px; }
.sprd-tr { display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center; gap: 6px; }
.sprd-tl { font-size: 12px; font-weight: 800; color: #a9acbf; letter-spacing: .02em; }
.sprd-chips { display: grid; grid-template-columns: repeat(var(--k, 4), minmax(0, 1fr)); gap: 5px; padding-bottom: 4px; }
.sprd-li { height: 38px; border-radius: 9px; background: var(--tile); box-shadow: 0 4px 0 var(--c), inset 0 1px 0 rgba(255,255,255,.06); display: grid; place-content: center; justify-items: center; gap: 2px; min-width: 0; color: var(--fg); }
.sprd-li b { font-size: 13px; font-weight: 900; line-height: 1; white-space: nowrap; }
.sprd-li small { font-size: 10.5px; font-weight: 700; line-height: 1; color: var(--fg2); white-space: nowrap; }
.sprd-li.on { background: var(--hf); color: var(--ink); box-shadow: 0 4px 0 var(--e), inset 0 1px 0 rgba(255,255,255,.3); }
.sprd-li.on small { color: var(--ink); opacity: .75; }

/* risk: raised segmented chips */
.sprd-seg { padding: 3px; gap: 3px; }
.sprd-seg button { height: 40px; padding: 0; font-size: 13.5px; min-width: 0; }
.sprd-seg button.on { background: var(--tile-hi); box-shadow: 0 3px 0 var(--tile-edge); color: #ffffff; }
.sprd-seg button:disabled { opacity: .55; }

/* lobby tile */
.sprd-tile { overflow: hidden; }
