.stage {
    position: relative; padding: 22px; border-radius: var(--r-xl); overflow: hidden;
    border: 1px solid var(--line);
    background: radial-gradient(120% 80% at 50% -10%, rgba(77,141,255,.14), transparent 62%),
                linear-gradient(168deg, #172134, #0d1320 74%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 18px 44px -28px rgba(0,0,0,.95);
}
.stage .glow {
    position: absolute; inset: -6% 14% auto; height: 36%; pointer-events: none;
    background: radial-gradient(circle at 50% 0%, rgba(77,141,255,.38), transparent 70%);
    filter: blur(16px); animation: glowUp 3.6s ease-in-out infinite;
}
.stage > * { position: relative; }

.stage .fair {
    margin-top: 16px; display: flex; align-items: center; gap: 10px;
    color: var(--faint-2); font-size: 10.5px; font-weight: 700;
}
.stage .fair span { min-width: 0; flex: 1; }
.stage .fair a { flex: none; color: var(--lilac); font-size: 10.5px; font-weight: 800; }
.stage .waiting { display: flex; align-items: center; justify-content: center; gap: 9px; }
.stage .waiting span { color: var(--muted); font-size: 12px; font-weight: 700; }

.mines-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.mines-grid .cell {
    position: relative; aspect-ratio: 1; display: grid; place-items: center;
    border-radius: 16px; font-size: 26px; border: 0; color: var(--dead);
}
.mines-grid .cell.open {
    color: #b9ffe2;
    background: radial-gradient(circle at 50% 32%, rgba(54,216,154,.42), rgba(54,216,154,.1) 62%, rgba(20,40,34,.9));
    box-shadow: inset 0 0 0 1.5px rgba(54,216,154,.5),
                inset 0 -2px 10px rgba(0,0,0,.4),
                0 10px 26px -12px rgba(54,216,154,.9);
    text-shadow: 0 0 14px rgba(111,240,187,.9);
}
.mines-grid .cell.boom {
    color: #ffc2cb;
    background: radial-gradient(circle at 50% 32%, rgba(255,102,133,.45), rgba(255,102,133,.12) 62%, rgba(46,18,26,.9));
    box-shadow: inset 0 0 0 1.5px rgba(255,102,133,.55),
                inset 0 -2px 10px rgba(0,0,0,.4),
                0 10px 26px -12px rgba(255,102,133,.9);
    text-shadow: 0 0 16px rgba(255,102,133,.9);
}

.metrics { display: flex; gap: 10px; }
.metric {
    flex: 1; min-width: 0; padding: 13px 14px; border-radius: var(--r-sm);
    background: rgba(255,255,255,.045); box-shadow: inset 0 0 0 1px var(--line);
}
.metric .cap { display: block; font-size: 9px; margin-bottom: 5px; }
.metric b { display: block; font-family: var(--f-display); font-size: 20px; font-weight: 700; letter-spacing: -.045em; white-space: nowrap; color: var(--green); }
.metric.gold { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); }
.metric.gold .cap { color: var(--gold-warm); }
.metric.gold b { color: var(--gold-text); }

.payout {
    display: flex; align-items: center; gap: 10px; padding: 15px; border-radius: 17px;
    border: 1px solid var(--gold-line); background: var(--gold-soft);
}
.payout .cap { display: block; color: var(--gold-warm); font-size: 9px; margin-bottom: 5px; }
.payout b { display: block; font-family: var(--f-display); font-size: 21px; font-weight: 700; letter-spacing: -.04em; color: var(--gold-text); white-space: nowrap; }
.payout .x { margin-left: auto; flex: none; padding: 7px 11px; border-radius: 999px; color: var(--gold-ink); background: linear-gradient(135deg,#ffe08a,#f0a62c); font-size: 12px; font-weight: 800; }
.payout.green { border-color: rgba(55,216,156,.26); background: rgba(55,216,156,.09); }
.payout.green .cap { color: var(--mint-2); }
.payout.green b { color: #6ff0bb; }
.payout.green .x { color: var(--green-ink); background: linear-gradient(135deg,#6ff0bb,#36d89a); }

.hint { color: var(--faint); font-size: 11px; line-height: 1.6; text-align: center; }

.round-acts { display: flex; flex-direction: column; gap: 9px; }
@media (max-width: 760px) {
    .round-acts { flex-direction: row-reverse; }
    .round-acts .btn-soft { flex: 0 0 40%; min-height: 54px; border-radius: 16px; }
    .round-acts .btn-green { flex: 1; min-height: 54px; border-radius: 16px; font-size: 14px; }
}

.bubble-hist { display: flex; gap: 6px; overflow: hidden; margin-bottom: 14px; }
.bubble-hist span {
    flex: none; height: 26px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 999px;
    font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--mint);
    background: var(--green-soft-2); box-shadow: inset 0 0 0 1px var(--green-line);
    animation: histIn .35s var(--ease);
}
.bubble-hist span.lose { color: #ff9db1; background: rgba(255,102,133,.12); box-shadow: inset 0 0 0 1px rgba(255,102,133,.26); }
@keyframes histIn { from { opacity: 0; transform: translateX(-10px) scale(.9); } }

.bubble-field {
    position: relative; min-height: 300px; display: grid; place-items: center;
    border-radius: var(--r-lg); overflow: hidden;
    box-shadow: inset 0 0 0 1px var(--line-soft);
    background: radial-gradient(70% 60% at 50% 74%, rgba(58,182,232,.22), transparent 70%),
                linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
}

.bubble-field .drift { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bubble-field .drift i {
    position: absolute; bottom: -20px; border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, rgba(223,248,255,.85), rgba(95,204,255,.25) 60%, transparent 72%);
    animation: driftUp linear infinite;
}
@keyframes driftUp {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    12%  { opacity: .7; }
    80%  { opacity: .5; }
    100% { transform: translateY(-330px) translateX(14px); opacity: 0; }
}

.bubble-field .goal-ring {
    position: absolute; width: 232px; height: 232px; border-radius: 50%;
    border: 2px dashed rgba(95,204,255,.32);
    animation: ringSpin 26s linear infinite;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
.bubble-field .goal-tag {
    position: absolute; z-index: 3; top: 12px; left: 50%; transform: translateX(-50%);
    height: 26px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px;
    border-radius: 999px; color: var(--cyan); background: rgba(8,14,24,.6);
    box-shadow: inset 0 0 0 1px var(--cyan-line); backdrop-filter: blur(10px);
    font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums;
}

.bubble-field .b { z-index: 2; display: grid; place-items: center; }
.bubble-field .cur {
    position: relative; width: 132px; height: 132px; border-radius: 50%;
    display: grid; place-items: center; color: #eafcff;
    font-family: var(--f-display); font-size: 25px; font-weight: 700; letter-spacing: -.045em;
    text-shadow: 0 2px 10px rgba(6,26,42,.7);
    background: radial-gradient(circle at 34% 28%, rgba(240,253,255,.95), rgba(79,216,240,.55) 42%, rgba(20,104,143,.5) 74%, rgba(158,240,255,.55) 100%);
    box-shadow: inset 0 -14px 26px rgba(10,60,92,.45), inset 0 10px 22px rgba(255,255,255,.35),
                0 0 54px -6px rgba(53,184,232,.75);
    transition: transform .12s linear, box-shadow .3s;
    animation: bubWobble 3.4s ease-in-out infinite;
}

.bubble-field .cur::before {
    content: ''; position: absolute; inset: 3px; border-radius: 50%; pointer-events: none;
    background: conic-gradient(from 210deg, rgba(143,230,255,.5), rgba(127,157,255,.3) 28%,
                rgba(143,230,200,.25) 52%, rgba(255,231,168,.35) 74%, rgba(143,230,255,.5));
    mix-blend-mode: screen; opacity: .5;
    animation: filmSpin 9s linear infinite;
}
.bubble-field .cur::after {
    content: ''; position: absolute; left: 20%; top: 15%; width: 26%; height: 17%;
    border-radius: 50%; background: rgba(255,255,255,.85); filter: blur(1px);
    transform: rotate(-28deg); pointer-events: none;
}
@keyframes bubWobble {
    0%, 100% { border-radius: 50%; }
    33%      { border-radius: 52% 48% 47% 53% / 49% 52% 48% 51%; }
    66%      { border-radius: 48% 52% 53% 47% / 52% 48% 51% 49%; }
}
@keyframes filmSpin { to { transform: rotate(360deg); } }

.bubble-field.hot .cur { animation-duration: 1.1s; box-shadow: inset 0 -14px 26px rgba(10,60,92,.45), inset 0 10px 22px rgba(255,255,255,.4), 0 0 74px -2px rgba(95,204,255,.95); }
.bubble-field.hot .goal-ring { border-color: rgba(127,240,192,.6); }

.bubble-field .b small {
    position: absolute; z-index: 3; left: 0; right: 0; bottom: 12px; text-align: center;
    color: var(--faint); font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}

.bubble-field .cur.burst { animation: burstPop .42s var(--ease) forwards; }
@keyframes burstPop {
    0%   { transform: scale(1); opacity: 1; }
    35%  { transform: scale(1.28); opacity: .9; }
    100% { transform: scale(.35); opacity: 0; }
}

.bubble-field .splash { position: absolute; inset: 0; pointer-events: none; display: none; }
.bubble-field.popped .splash { display: block; }
.bubble-field .splash i {
    position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
    border-radius: 50%; background: rgba(223,248,255,.9);
    animation: splashOut .55s var(--ease) forwards;
}
@keyframes splashOut { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }

.bubble-goal { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 14px; }
.bubble-goal span { color: var(--muted); font-size: 12px; font-weight: 700; }
.bubble-goal b { color: var(--cyan); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bubble-goal .sep { width: 1px; height: 16px; background: var(--line-2); }

@media (prefers-reduced-motion: reduce) {
    .bubble-field .drift i, .bubble-field .goal-ring, .bubble-field .cur, .bubble-field .cur::before { animation: none; }
}

.dice-face {

    min-height: 0; padding: 26px 20px 20px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
    border-radius: 20px; border: 1px solid var(--line-soft); margin-bottom: 16px;
    background: radial-gradient(520px 260px at 50% 20%, rgba(77,141,255,.16), transparent 70%), rgba(255,255,255,.025);
}
.dice-face .roll { font-family: var(--f-display); font-size: 66px; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.dice-face .roll.win { color: var(--green); }
.dice-face .roll.lose { color: var(--pink); }
.dice-face .bar { width: 220px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.dice-face .bar i { display: block; height: 100%; width: 50%; background: var(--acc-grad); border-radius: 999px; transition: width .3s; }
.dice-sides { display: flex; gap: 12px; margin-bottom: 14px; }
.dice-sides button {
    flex: 1; min-height: 82px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border-radius: var(--r-md); font-size: 15px; font-weight: 800;
    color: var(--dim); background: var(--surface-2); border: 1px solid var(--line-2);
}
.dice-sides button small { font-size: 11.5px; font-weight: 700; opacity: .8; }
.dice-sides button.on.under { color: #0a1020; background: linear-gradient(135deg,#8fe4ff,#3ba7f0); border: 0; box-shadow: 0 16px 34px -16px rgba(59,167,240,.9); }
.dice-sides button.on.over { color: #fff; background: var(--acc-grad); border: 0; box-shadow: 0 16px 34px -16px rgba(77,141,255,.9); }

.fish-accept {
    --ph: #37d7f2;
    padding: 15px 18px; border-radius: var(--r-md);
    border: 1px solid color-mix(in srgb, var(--ph) 30%, transparent);
    background: linear-gradient(120deg,
        color-mix(in srgb, var(--ph) 16%, transparent),
        color-mix(in srgb, var(--ph) 4%, transparent));
    transition: border-color .4s var(--ease), background .4s var(--ease);
}
.fish-accept[data-phase="spinning"] { --ph: #f7c94b; }
.fish-accept[data-phase="settled"]  { --ph: #36d89a; }
.fish-accept[data-phase="offline"]  { --ph: #8e97aa; }
.fish-accept[data-phase="offline"] .cd { visibility: hidden; }

.fish-accept .head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.fish-accept .head strong:first-child {
    color: var(--ph); font-size: 10px; font-weight: 800;
    letter-spacing: .14em; text-transform: uppercase;
}
.fish-accept .head .cd {
    margin-left: auto; font-family: var(--f-display); font-size: 20px; font-weight: 700;
    color: var(--ph); font-variant-numeric: tabular-nums;
}

.fish-accept .head .cd::after {
    content: 'с'; font-size: 12px; font-weight: 700; opacity: .55; margin-left: 2px;
}
.fish-accept .prog i { background: var(--ph) !important; }

.fish-accept .head .rid {
    color: var(--faint); font-size: 11px; font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.fish-accept .head .rid:empty { display: none; }

.fish-accept .meta {
    display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px;
    padding-top: 11px; border-top: 1px solid color-mix(in srgb, var(--ph) 16%, transparent);
}
.fish-accept .meta .m { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.fish-accept .meta .m.push { margin-left: auto; }
.fish-accept .meta small {
    color: var(--faint); font-size: 9.5px; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.fish-accept .meta b {
    font-family: var(--f-display); font-size: 14px; font-weight: 700;
    letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums;
}

.fish-accept .meta .m.push b { color: var(--gold-text); }

@media (max-width: 560px) {
    .fish-accept .meta { gap: 8px 14px; }
    .fish-accept .meta .m.push { margin-left: 0; }
}

.fish-accept .head strong:first-child::before {
    content: ''; display: inline-block; vertical-align: middle;
    width: 6px; height: 6px; margin-right: 7px; border-radius: 50%;
    background: var(--ph); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ph) 22%, transparent);
    animation: pulseDot 1.8s ease-in-out infinite;
}

.fish-stage { container-type: inline-size; container-name: icew; position: relative; }
.fish-stage::before {
    content: ''; position: absolute; inset: -14% -6% 18%; z-index: -1; pointer-events: none;
    background:
        radial-gradient(48% 62% at 28% 42%, rgba(55,215,242,.20), transparent 68%),
        radial-gradient(44% 56% at 74% 34%, rgba(77,141,255,.18), transparent 70%);
    filter: blur(28px);
    animation: fishAurora 18s ease-in-out infinite alternate;
}
@keyframes fishAurora {
    from { transform: translate3d(-2%, 0, 0); opacity: .75; }
    to   { transform: translate3d(2%, -2%, 0); opacity: 1; }
}

.fish-table {

    position: relative; height: clamp(170px, 62.4cqw, 300px);
    overflow: hidden; border-radius: var(--r-lg);
    border: 1px solid var(--line-2);
    background: radial-gradient(80% 120% at 50% 112%, #1b3a5e 0%, #0c1b2c 100%);
}

.fish-table::after {
    content: ''; position: absolute; left: 50%; bottom: -46%; width: 150%; height: 70%;
    transform: translateX(-50%); pointer-events: none;
    background: radial-gradient(closest-side, rgba(90,175,255,.22), transparent 72%);
}

.fish-table .ice {
    position: absolute; left: 50%; top: 0; transform: translateX(-50%);
    width: 240%; height: auto; aspect-ratio: 1; border-radius: 50%;
    z-index: 2;
}

.fish-table .ice {
    object-fit: contain; display: block; user-select: none;
    transform-origin: 50% 50%;
    filter: drop-shadow(0 -18px 60px rgba(0,0,0,.4));
}

.fish-table.is-spinning .ice { will-change: transform; }
.fish-table.is-landed::before {
    content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none;
    background: radial-gradient(60% 40% at 50% 14%, rgba(170,225,255,.45), transparent 70%);
    animation: iceFlash .5s ease-out forwards;
}
@keyframes iceFlash { from { opacity: 1; } to { opacity: 0; } }

.fish-table .sector {
    position: absolute; inset: 0;
    z-index: 3; pointer-events: none;
    background: radial-gradient(70% 90% at 50% -18%, rgba(255,255,255,.3), transparent 62%);
    mix-blend-mode: screen;
}
.fish-table .logo {

    position: absolute; left: 50%; bottom: clamp(6px, 1.4cqw, 14px);
    transform: translateX(-50%); z-index: 3; pointer-events: none;
    padding: clamp(5px, .85cqw, 9px) clamp(11px, 1.9cqw, 20px);
    display: flex; align-items: center; border-radius: 999px;
    color: #0f2137;
    background: linear-gradient(180deg, #fff 0%, #eaf0f8 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.9),
        inset 0 -1px 0 rgba(19,42,74,.06),
        0 1px 1px rgba(9,24,48,.1),
        0 6px 16px rgba(9,24,48,.18);
    font-family: var(--f-display);
    font-size: clamp(12px, 1.6cqw, 17px); font-weight: 800; letter-spacing: -.02em;
}

.fish-table .pin {
    position: absolute; left: 50%; top: 0; transform: translateX(-50%);
    width: clamp(30px, 11.8cqw, 56px); z-index: 4;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,.5));
}
.fish-table .pin img { display: block; width: 100%; height: auto; }

.fish-table.is-landed .pin { animation: icePin .5s cubic-bezier(.2,.9,.25,1) both; }
@keyframes icePin {
    0%   { transform: translateX(-50%) translateY(-6px) scale(1.1); }
    55%  { transform: translateX(-50%) translateY(2px) scale(1.04); }
    100% { transform: translateX(-50%) translateY(0) scale(1); }
}

.fish-last {
    display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: 17px;
    border: 1px solid var(--line); background: var(--panel);
}
.fish-last .row { min-width: 0; flex: 1; display: flex; gap: 6px; overflow: hidden; }
.fish-last .row span {
    flex: none; padding: 6px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800;
    color: var(--dim); background: rgba(255,255,255,.05); border: 1px solid var(--line);
}

.fish-last .row span.hit { color: #eaf4ff; background: rgba(74,168,245,.26); border-color: rgba(74,168,245,.4); }
.fish-last .row span.w1  { color: #eaf4ff; background: rgba(74,168,245,.26); border-color: rgba(74,168,245,.42); }
.fish-last .row span.w2  { color: #ffe1a8; background: rgba(247,201,75,.2);  border-color: rgba(247,201,75,.42); }
.fish-last .row span.w3  {
    color: #fff3d0; background: linear-gradient(140deg, rgba(247,201,75,.36), rgba(240,120,40,.28));
    border-color: rgba(247,201,75,.6);
    box-shadow: 0 0 14px -2px rgba(247,201,75,.45);
}

.fish-fields { display: flex; gap: 11px; }
.fish-fields .f {
    flex: 1; min-width: 0; padding: 13px; border-radius: 17px;
    border: 0; background: var(--fbg); color: var(--ffg);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5),
                inset 0 0 0 1px var(--fb),
                inset 0 -3px 0 rgba(0,0,0,.18),
                0 8px 18px -10px var(--solid, rgba(0,0,0,.8)),
                0 2px 6px -3px rgba(0,0,0,.6);
    transition: transform .18s var(--ease), box-shadow .2s var(--ease);
}
.fish-fields .f:hover {
    transform: translateY(-3px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6),
                inset 0 0 0 1px var(--fb),
                inset 0 -3px 0 rgba(0,0,0,.18),
                0 16px 28px -12px var(--solid, rgba(0,0,0,.8)),
                0 4px 10px -4px rgba(0,0,0,.6);
}
.fish-fields .f .n { display: block; font-size: 12px; font-weight: 800; margin-bottom: 3px; }
.fish-fields .f .m { display: block; font-family: var(--f-display); font-size: 17px; font-weight: 700; letter-spacing: -.035em; margin-bottom: 7px; }
.fish-fields .f .foot { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 800; opacity: .75; }

.fish-fields .f .mine {
    display: flex; align-items: center; gap: 6px; margin-top: 9px;
    padding: 5px 9px 5px 5px; border-radius: 10px;
    background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
    font-size: 11px; font-weight: 800; color: #0f1a26;
}
.fish-fields .f .mine::before {
    content: ''; flex: none; width: 16px; height: 16px; border-radius: 50%;
    background: var(--solid, #4d8dff); box-shadow: inset 0 0 0 2px rgba(255,255,255,.75);
}
.fish-fields .f .mine span { opacity: .62; font-weight: 700; }
.fish-fields .f .mine:empty { display: none; }

.fish-fields.is-settled .f { opacity: .42; filter: saturate(.55); }
.fish-fields.is-settled .f.win {
    opacity: 1; filter: none; transform: translateY(-4px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6),
                inset 0 0 0 2px #fff,
                inset 0 -3px 0 rgba(0,0,0,.18),
                0 18px 34px -12px var(--solid, rgba(0,0,0,.8)),
                0 0 0 3px color-mix(in srgb, var(--solid, #fff) 45%, transparent);
}
.fish-fields .f { transition: transform .25s var(--ease), box-shadow .25s var(--ease),
                              opacity .3s var(--ease), filter .3s var(--ease); }

.fish-all {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md);
    border: 1px solid var(--line); background: var(--panel);
}

.fish-all { width: 100%; text-align: left; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.fish-all:hover { border-color: var(--line-2); background: var(--surface-3); }
.fish-all:active { transform: scale(.995); }

.fish-all .dots { flex: none; display: flex; align-items: center; }
.fish-all .dots i {
    width: 21px; height: 21px; border-radius: 50%;
    border: 2px solid var(--panel);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.fish-all .dots i + i { margin-left: -8px; }
.fish-all .dots .b { background: linear-gradient(160deg,#4aa8f5,#1f6fd0); }
.fish-all .dots .o { background: linear-gradient(160deg,#f7a94b,#e2701e); }
.fish-all .dots .r { background: linear-gradient(160deg,#f2585f,#c8202f); }
.fish-all b { display: block; font-size: 12.5px; font-weight: 800; }
.fish-all small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.fish-all .x3 { margin-left: auto; flex: none; padding: 7px 12px; border-radius: 999px; color: #fff; background: var(--acc-soft-2); border: 1px solid rgba(124,180,255,.3); font-size: 11.5px; font-weight: 800; }

.fish-bar { padding: 15px 16px; }
.fish-bar .head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fish-bar .head .hint { color: var(--muted); font-size: 11px; font-weight: 700; }

.fish-bar .total { display: flex; align-items: baseline; gap: 8px; }
.fish-bar .total small { color: var(--faint); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.fish-bar .total b { font-family: var(--f-display); font-size: 17px; font-weight: 700; letter-spacing: -.03em; color: var(--gold-text); }

.fish-bar .acts { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.fish-bar .acts .btn { min-height: 42px; padding: 0 16px; border-radius: 13px; font-size: 12.5px; }

.fish-bar .acts .btn.danger { color: var(--pink); border-color: rgba(255,102,133,.3); }
.fish-bar .acts .btn.danger:hover { background: rgba(255,102,133,.1); }

.fish-bar .acts .btn.is-off { opacity: .4; pointer-events: none; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chips .c {
    width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%;
    font-size: 12px; font-weight: 800; color: #10131e;
    background: radial-gradient(circle at 50% 30%, #fff8, transparent 60%), var(--cc);
    border: 3px solid rgba(255,255,255,.35); transition: .15s;
}
.chips .c:hover { transform: translateY(-2px); }
.chips .c.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(60,201,140,.4); }

.case-cards { display: flex; gap: 12px; }
.case-cards .c {
    flex: 1; min-width: 0; padding: 15px; border-radius: 20px; text-align: center;
    border: 1px solid var(--line); background: radial-gradient(300px 180px at 50% 0%, var(--tone-a), transparent 70%), var(--panel-2);
    transition: .2s var(--ease);
}
.case-cards .c:hover { transform: translateY(-3px); }
.case-cards .c.on { border-color: var(--tone-b); box-shadow: 0 18px 40px -20px var(--tone-b); }
.case-cards .c .art {
    height: 104px; margin-bottom: 12px; border-radius: var(--r-sm);
    background: repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 8px, transparent 8px 18px),
                radial-gradient(120% 100% at 50% 20%, var(--tone-c), transparent 68%),
                linear-gradient(160deg,#1d2231,#11141f);
}
.case-cards .c b { display: block; font-family: var(--f-display); font-size: 16px; font-weight: 700; letter-spacing: -.035em; margin-bottom: 9px; }
.case-cards .c .price { display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #10131e; background: var(--tone); }
.case-cards .c small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; margin-top: 9px; }

.case-reel {
    position: relative; padding: 16px 0; border-radius: var(--r-md); overflow: hidden; margin-bottom: 16px;
    background: rgba(255,255,255,.025); border: 1px solid var(--line-soft);
}
.case-reel .strip {
    display: flex; gap: 10px; padding: 0 16px;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    transition: transform 4s cubic-bezier(.12,.8,.15,1);
}
.case-reel .it {
    flex: none; width: 118px; padding: 11px; border-radius: var(--r-sm); text-align: center;
    background: linear-gradient(170deg,#1d2231,#12151f); border: 1px solid var(--line);
}
.case-reel .it.hit { border-color: rgba(255,122,176,.5); }
.case-reel .it .art { height: 58px; margin-bottom: 9px; border-radius: var(--r-2xs); background: radial-gradient(90% 90% at 50% 25%, rgba(255,122,176,.34), transparent 70%), #181c28; }
.case-reel .it small { display: block; color: var(--muted); font-size: 10px; font-weight: 700; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-reel .it b { display: block; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.case-reel .needle { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg,#8fe4ff,#3ba7f0); box-shadow: 0 0 18px rgba(59,167,240,.9); }

.case-result { display: flex; flex-direction: column; align-items: center; gap: 7px; margin-top: 16px; }
.case-result .sep { width: 26px; height: 2px; border-radius: 999px; background: var(--line-2); }
.case-result span { color: var(--muted); font-size: 12px; font-weight: 700; }

.up-row {
    display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    gap: 16px; align-items: stretch; margin-bottom: 20px;
}

.up-box {
    position: relative; overflow: hidden; padding: 18px 16px; border-radius: var(--r-lg); text-align: center;
    display: flex; flex-direction: column; align-items: center;
    background: linear-gradient(170deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
    box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255,255,255,.08);
}

.up-box::before {
    content: ''; display: block; width: 44px; height: 38px; margin: 0 0 12px; flex: none;
    background: var(--gemA); clip-path: polygon(50% 0, 100% 34%, 50% 100%, 0 34%);
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.5));
}
.up-row > .up-box:first-child { --gemA: linear-gradient(160deg, #9aa7bb, #5e6b7e 55%, #39434f); }
.up-row > .up-box:last-child  { --gemA: linear-gradient(160deg, #d8ffef, #4fd7a2 52%, #128f63); }
.up-row > .up-box:last-child { box-shadow: inset 0 0 0 1px var(--green-line), inset 0 1px 0 rgba(255,255,255,.12), 0 0 44px -18px rgba(54,216,154,.9); }
.up-box .cap { display: block; font-size: 9.5px; letter-spacing: .12em; margin-bottom: 8px; }
.up-box b { display: block; font-family: var(--f-display); font-size: 30px; font-weight: 700; letter-spacing: -.045em; margin-bottom: 7px; }
.up-row > .up-box:last-child b { color: var(--mint); }

.up-box small, .up-box .tag { margin-top: auto; min-height: 27px; }
.up-box small { display: flex; align-items: center; color: var(--muted); font-size: 11px; font-weight: 700; }
.up-box .tag {
    display: inline-flex; align-items: center; padding: 0 11px; border-radius: 999px;
    color: var(--mint); background: var(--green-soft-2); box-shadow: inset 0 0 0 1px var(--green-line);
    font-size: 11px; font-weight: 800; white-space: nowrap;
}

.up-gauge-wrap { position: relative; display: grid; place-items: center; }
.up-gauge-wrap::before {
    content: ''; position: absolute; width: 210px; height: 210px; border-radius: 50%;
    background: radial-gradient(circle closest-side, rgba(77,141,255,.35), transparent 72%);
    pointer-events: none;
}
.up-gauge {
    position: relative; width: 178px; height: 178px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(#3ee0a4 0, #16b97c var(--p,50%), rgba(255,255,255,.055) var(--p,50%) 100%);
    box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 18px 40px -20px rgba(0,0,0,.9);
    transition: background .3s;
}

.up-gauge::before {
    content: ''; position: absolute; inset: 9px; border-radius: 50%; pointer-events: none;
    background: repeating-conic-gradient(rgba(255,255,255,.22) 0 1deg, transparent 1deg 10deg);
    -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%);
            mask: radial-gradient(circle, transparent 66%, #000 67%);
}
.up-gauge .in {
    position: relative; width: 136px; height: 136px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: radial-gradient(circle at 50% 28%, #1a2338, #0d1220 72%);
    box-shadow: inset 0 2px 14px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.05);
}
.up-gauge .in b { font-family: var(--f-display); font-size: 24px; font-weight: 700; letter-spacing: -.045em; color: #fff; }
.up-gauge .in small { color: var(--lilac); font-size: 10.5px; font-weight: 800; }

.up-needle {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    transition: transform 3.2s cubic-bezier(.16,.86,.2,1);
}
.up-needle i {
    position: absolute; left: 50%; top: -13px; margin-left: -10px;
    width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent;
    border-top: 19px solid #fff; filter: drop-shadow(0 4px 9px rgba(0,0,0,.8));
}

.up-result.is-spin > span[data-up-result] { color: var(--gold-text); }
.up-result.is-win  { box-shadow: inset 0 0 0 1px var(--green-line); background: var(--green-soft); }
.up-result.is-win  > span[data-up-result] { color: var(--mint); }
.up-result.is-lose { box-shadow: inset 0 0 0 1px rgba(255,102,133,.26); background: rgba(255,102,133,.07); }
.up-result.is-lose > span[data-up-result] { color: #ff9db1; }

.up-arrow {
    display: none; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    color: var(--acc-2); background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--acc-line);
    font-size: 15px; font-weight: 800;
}

.up-result {
    padding: 16px 18px; border-radius: var(--r-md); text-align: center;
    background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line-soft);
}
.up-result .cap { display: block; font-size: 9.5px; letter-spacing: .12em; margin-bottom: 9px; }
.up-result .sep { display: block; width: 26px; height: 2px; margin: 0 auto 11px; border-radius: 999px; background: var(--line-2); }
.up-result > span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 10px; }

.stage .brandline { text-align: center; font-family: var(--f-display); font-size: 16px; font-weight: 800; letter-spacing: -.04em; color: var(--muted); margin-bottom: 18px; }
.target-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.target-grid button {
    flex: 1; min-width: 60px; min-height: 44px; border: 0; border-radius: var(--r-xs);
    font-size: 13px; font-weight: 800; color: var(--dim);
    background: linear-gradient(180deg, #2a3550, #1b2437);
    box-shadow: inset 0 1.5px 0 rgba(255,255,255,.1), inset 0 -2px 0 rgba(0,0,0,.35);
    transition: transform .14s var(--ease), color .16s, box-shadow .16s;
}
.target-grid button:active { transform: translateY(1px) scale(.97); }
.target-grid button.on {
    color: #fff; background: var(--acc-grad);
    box-shadow: inset 0 1.5px 0 rgba(255,255,255,.3), 0 8px 18px -10px rgba(77,141,255,1);
}

[data-upgrade] .m-stage { container-type: inline-size; }
@container (max-width: 430px) {
    .up-row {
        grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
        grid-template-areas: "from arrow to" "gauge gauge gauge";
        justify-items: stretch; align-items: stretch; gap: 12px 10px;
    }
    .up-row > .up-box:first-child { grid-area: from; }
    .up-row > .up-box:last-child { grid-area: to; }
    .up-gauge-wrap { grid-area: gauge; margin-top: 4px; }
    .up-arrow { grid-area: arrow; display: grid; align-self: center; }
    .up-box { padding: 14px 12px; }
    .up-box::before { width: 34px; height: 30px; margin-bottom: 9px; }
    .up-box b { font-size: 24px; margin-bottom: 5px; }
}

@media (max-width: 1040px) {
    .up-row {
        grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
        grid-template-areas: "from arrow to" "gauge gauge gauge";
        justify-items: stretch; align-items: stretch; gap: 12px 10px;
    }
    .up-row > .up-box:first-child { grid-area: from; }
    .up-row > .up-box:last-child { grid-area: to; }
    .up-gauge-wrap { grid-area: gauge; margin-top: 4px; }
    .up-arrow { grid-area: arrow; display: grid; align-self: center; }
    .up-box { padding: 14px 12px; }
    .up-box::before { width: 34px; height: 30px; margin-bottom: 9px; }
    .up-box b { font-size: 24px; margin-bottom: 5px; }
}
@media (max-width: 760px) {
    .up-gauge { width: 158px; height: 158px; }
    .up-gauge .in { width: 120px; height: 120px; }
    .up-gauge .in b { font-size: 21px; }
    .up-gauge-wrap::before { width: 186px; height: 186px; }
    .stage .brandline { font-size: 14px; margin-bottom: 14px; }
}

.keno-grid { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }

.keno-grid button {
    position: relative; aspect-ratio: 1.24; display: grid; place-items: center;
    border-radius: 14px; border: 0;
    font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums;
    color: var(--dim);
}
.keno-pay {
    display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 16px;
    background: var(--surface); border: 1px solid var(--line-2);
}
.keno-pay b { margin-left: auto; color: #d6bcf5; font-size: 12px; font-weight: 800; }
.format-row { display: flex; gap: 7px; margin-bottom: 18px; }
.format-row .f {
    flex: 1; padding: 11px; border-radius: 14px; text-align: center;
    border: 1px solid var(--line-2); background: var(--surface-2);
}
.format-row .f.on { border-color: rgba(111,134,255,.45); background: rgba(111,134,255,.18); }
.format-row .f b { display: block; font-family: var(--f-display); font-size: 19px; font-weight: 700; letter-spacing: -.04em; }
.format-row .f small { display: block; color: var(--muted); font-size: 10.5px; font-weight: 700; }
.format-row .f.on small { color: #d6bcf5; }
.risk-row { display: flex; gap: 6px; margin-bottom: 18px; }
.risk-row button {
    flex: 1; min-height: 44px; border-radius: var(--r-xs); font-size: 12.5px; font-weight: 800;
    color: var(--dim); background: var(--surface-2); border: 1px solid var(--line-2);
}
.risk-row button.on { color: var(--gold-text); background: rgba(247,201,75,.14); border-color: rgba(247,201,75,.4); }

.slots-bar { display: flex; gap: 10px; padding: 14px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.025), transparent), var(--panel); margin-bottom: 16px; }
.slots-bar .search-box { flex: 1; min-width: 0; }
.slots-bar .select-box.prov { flex: 0 0 178px; }
.slots-bar .select-box.sort { flex: 0 0 172px; }

.slots-chips {
    display: flex; gap: 6px; margin: -4px 0 16px; padding-bottom: 4px;
    overflow-x: auto; scrollbar-width: none;
}
.slots-chips::-webkit-scrollbar { display: none; }
.slots-chips:empty { display: none; }
.slots-chips button {
    flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 13px;
    border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap;
    color: var(--dim); background: var(--surface-2); border: 1px solid var(--line-2);
    transition: background .15s, color .15s, border-color .15s;
}
.slots-chips button:hover { color: var(--text); background: var(--surface-4); }
.slots-chips button.on { color: #fff; background: var(--acc-soft-2); border-color: var(--acc-line-2); }
.slots-chips button .n { color: var(--faint); font-size: 10.5px; font-weight: 800; }
.slots-chips button.on .n { color: var(--lilac); }
.slots-chips button.fs-chip { color: var(--mint); border-color: var(--green-line); }
.slots-chips button.fs-chip.on { color: var(--green-ink); background: var(--green-grad); border-color: transparent; }
.slots-chips button.fs-chip.on .n { color: var(--green-ink); }
.slots-more { margin-top: 14px; }

.slots-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.slot {
    border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-2); background: var(--panel-2);
    transition: transform .2s var(--ease), border-color .2s;
}
.slot:hover { transform: translateY(-3px); border-color: var(--acc-line); }

.slot .thumb { display: block; position: relative; aspect-ratio: 1.02; container-type: inline-size; }
.slot .meta { display: block; }

.slot .art {
    position: absolute; inset: 0; overflow: hidden;
    background: radial-gradient(140% 110% at 70% 14%, var(--c2), transparent 62%),
                linear-gradient(150deg, var(--c1), #0d101a 92%);
}
.slot .art::after {
    content: attr(data-l);
    position: absolute; right: -4%; bottom: -26%;
    font-family: var(--f-display); font-size: 58cqw; font-weight: 800; line-height: 1;
    letter-spacing: -.06em; color: rgba(255,255,255,.11);
}

.slot .art::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.14), transparent 46%);
}

.slot .cover {
    position: absolute; inset: 0; z-index: 1;
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.slot .veil, .slot .fs, .slot .demo { z-index: 2; }
.slot .veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,15,.35), rgba(7,9,15,0) 40%, rgba(7,9,15,.55)); }

.slot.is-loading { opacity: .55; pointer-events: none; }

.slots-main.is-playing > :not(.splay) { display: none; }
.splay {
    display: flex; flex-direction: column; overflow: hidden;
    height: calc(100dvh - 120px); min-height: 520px;
    border-radius: var(--r); background: #05070c;
    border: 1px solid rgba(124,180,255,.14);
    box-shadow: 0 30px 70px -40px rgba(0,0,0,.9);
}
.splay[hidden] { display: none; }
.splay.is-full { position: fixed; inset: 0; z-index: 2600; height: auto; min-height: 0; border-radius: 0; border: 0; }
html.splay-lock, html.splay-lock body { overflow: hidden; }
.splay-bar {
    flex: none; display: flex; align-items: center; gap: 10px; padding: 9px 10px;
    background: linear-gradient(180deg,#121b2b,#0d1420); border-bottom: 1px solid rgba(255,255,255,.06);
}
.splay-btn {
    flex: none; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
    border-radius: 12px; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.06);
    transition: background .15s, border-color .15s, color .15s;
}
.splay-btn:hover { background: rgba(255,255,255,.12); }
.splay-x:hover { background: rgba(255,102,133,.22); border-color: rgba(255,102,133,.4); color: #fff; }
.splay-cover {
    flex: none; width: 38px; height: 38px; border-radius: 10px; background: #14243f center / cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.splay-cover[hidden] { display: none; }
.splay-id { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.splay-id b { font-size: 14.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.splay-id small { color: var(--faint); font-size: 11.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.splay-id small:empty { display: none; }
.splay-tag {
    flex: none; height: 24px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 999px;
    font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
    color: var(--dim); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
}
.splay-tag.fs { color: #0c1624; background: linear-gradient(90deg,#b5edff,#5fccff); border-color: transparent; }
.splay-tag[hidden] { display: none; }
.splay-frame { position: relative; flex: 1; min-height: 0; }
.splay-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #05070c; }
.splay-wait {
    position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    padding: 20px; text-align: center; color: var(--dim); font-size: 13.5px; font-weight: 700; background: #05070c;
}
.splay-wait p { max-width: 420px; line-height: 1.5; }
.splay-wait.is-gate {
    overflow-y: auto; justify-content: safe center;
    background:
        radial-gradient(520px 320px at 50% 30%, rgba(77,141,255,.16), transparent 70%),
        radial-gradient(420px 260px at 50% 100%, rgba(255,200,90,.07), transparent 70%),
        #05070c;
}
.sg-card {
    position: relative; width: min(400px, 100%); padding: 26px 24px 18px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    border-radius: 22px; color: var(--text);
    background: linear-gradient(180deg, rgba(23,32,48,.92), rgba(14,20,32,.92));
    border: 1px solid var(--line-2);
    box-shadow: 0 30px 60px -24px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
    animation: sg-in .45s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes sg-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.sg-art { position: relative; width: 112px; height: 112px; margin: -4px 0 2px; display: grid; place-items: end center; }
.sg-glow { position: absolute; inset: 12px; border-radius: 50%; background: radial-gradient(circle, rgba(107,160,255,.45), transparent 70%); filter: blur(6px); }
.sg-art img { position: relative; height: 112px; width: auto; filter: drop-shadow(0 10px 16px rgba(0,0,0,.5)); animation: sg-float 4.2s ease-in-out infinite; }
@keyframes sg-float { 50% { transform: translateY(-4px); } }
.sg-lock {
    position: absolute; right: 6px; bottom: 4px; width: 32px; height: 32px; display: grid; place-items: center;
    border-radius: 50%; color: #1a1406; background: linear-gradient(140deg,#ffe08a,#f2b33d);
    box-shadow: 0 0 0 3px #121a28, 0 6px 14px -4px rgba(242,179,61,.7);
}
.sg-title { font-family: var(--f-display); font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.splay-wait .sg-text { max-width: 330px; margin: 0; color: var(--dim); font-size: 13px; font-weight: 600; line-height: 1.5; }
.sg-meter { width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-soft); text-align: left; }
.sg-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12px; color: var(--muted); }
.sg-row b { color: var(--text); font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.sg-row i { font-style: normal; color: var(--faint); font-weight: 700; }
.sg-bar { position: relative; height: 8px; margin: 10px 0 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.sg-bar span {
    position: absolute; inset: 0 auto 0 0; width: max(var(--p), 6px); border-radius: inherit;
    background: var(--acc-grad); box-shadow: 0 0 12px rgba(77,141,255,.6);
    animation: sg-fill .9s .2s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes sg-fill { from { width: 0; } }
.sg-left { font-size: 12px; color: var(--muted); font-weight: 700; }
.sg-left b { color: #ffd36b; font-weight: 800; }
.sg-acts { width: 100%; margin-top: 6px; display: grid; grid-template-columns: 1fr; gap: 8px; }
.sg-acts:has(> :nth-child(2)) { grid-template-columns: 1.3fr 1fr; }
.sg-acts .btn { width: 100%; white-space: nowrap; }
.sg-back {
    margin-top: 2px; padding: 6px 10px; border: 0; background: none; cursor: pointer;
    color: var(--faint); font: inherit; font-size: 12.5px; font-weight: 700; transition: color .15s;
}
.sg-back:hover { color: var(--text); }
@media (max-width: 420px) {
    .sg-card { padding: 22px 16px 14px; }
    .sg-acts:has(> :nth-child(2)) { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .sg-card, .sg-art img, .sg-bar span { animation: none; }
}
.splay-spin {
    width: 34px; height: 34px; border-radius: 50%;
    border: 3px solid rgba(95,204,255,.15); border-top-color: var(--cyan);
    animation: fs-orbit .8s linear infinite;
}
@keyframes fs-orbit { to { transform: rotate(1turn); } }
.splay-warn {
    position: absolute; left: 50%; bottom: 20px; z-index: 2; transform: translateX(-50%);
    width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 14px;
    color: var(--text); font-size: 12.5px; line-height: 1.45; text-align: center;
    background: rgba(13,20,32,.94); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 12px 30px rgba(0,0,0,.4);
}
@media (max-width: 760px) {
    .splay { height: calc(100dvh - 96px); min-height: 420px; border-radius: 14px; }
    .splay-full { display: none; }
}
.slot .fs {
    position: absolute; top: 9px; left: 9px; height: 22px; padding: 0 9px; display: inline-flex; align-items: center;
    border-radius: 8px; color: #10131e; background: linear-gradient(90deg,#8fe4ff,#3ba7f0); font-size: 10px; font-weight: 800;
}
.slot .demo {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    min-height: 34px; padding: 0 15px; display: inline-flex; align-items: center; border-radius: var(--r-2xs);
    color: #fff; background: rgba(9,11,18,.72); border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(10px); font-size: 12px; font-weight: 800; opacity: 0; transition: opacity .2s;
}
.slot:hover .demo { opacity: 1; }
.slot .meta { padding: 10px 11px 12px; }
.slot .meta b { display: block; font-size: 12.5px; font-weight: 800; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slot .meta small { display: block; color: var(--faint); font-size: 11px; font-weight: 700; }

.fsp {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; gap: 14px;
    padding: 16px; border-radius: var(--r); border: 1px solid rgba(95,204,255,.2);
    background:
        radial-gradient(280px 160px at 100% 0%, rgba(95,204,255,.16), transparent 70%),
        linear-gradient(170deg,#111c2b,#0d131e 70%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 50px -36px rgba(55,215,242,.5);
}
.fsp[data-state="run"] { border-color: rgba(54,216,154,.3); }

.fsp-h { display: flex; align-items: center; gap: 11px; }
.fsp-ic {
    flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
    color: #bdeeff; background: linear-gradient(150deg,rgba(95,204,255,.28),rgba(77,141,255,.12));
    border: 1px solid rgba(143,228,255,.28); box-shadow: 0 8px 20px -10px rgba(95,204,255,.8);
}
.fsp-t { min-width: 0; flex: 1; }
.fsp-t b { display: block; font-family: var(--f-display); font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.fsp-t small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsp[data-state="list"] .fsp-t small { color: var(--cyan-2); }
.fsp[data-state="run"] .fsp-t small { color: var(--green); }
.fsp-q {
    flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    color: var(--muted); background: var(--surface-3); border: 1px solid var(--line);
    font-size: 13px; font-weight: 800; cursor: pointer; transition: color .2s, border-color .2s, background .2s;
}
.fsp-q:hover, .fsp-q[aria-expanded="true"] { color: #fff; border-color: var(--cyan-line); background: rgba(95,204,255,.12); }

.fsp-how {
    padding: 11px 13px; border-radius: 13px; background: rgba(8,12,20,.5); border: 1px solid var(--line-soft);
    color: var(--dim); font-size: 12px; line-height: 1.55;
}
.fsp-how p + p { margin-top: 6px; }
.fsp-how em {
    font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 5px;
    color: var(--green-ink); background: var(--green);
}

.fsp-body { display: flex; flex-direction: column; gap: 10px; min-height: 44px; }

.fsp-total { display: flex; align-items: center; gap: 12px; }
.fsp-total b {
    font-family: var(--f-display); font-size: 42px; font-weight: 700; letter-spacing: -.05em; line-height: .9;
    background: linear-gradient(180deg,#fff 20%,#9fe3ff); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 6px 18px rgba(95,204,255,.35));
}
.fsp-total span { color: var(--muted); font-size: 11.5px; font-weight: 700; line-height: 1.3; }

.fsp-list { display: flex; flex-direction: column; gap: 6px; }
.fsp-row {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px 7px 7px; text-align: left;
    border-radius: 14px; background: rgba(8,12,20,.5); border: 1px solid var(--line-soft); color: var(--text);
    cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease, ease);
}
.fsp-row:hover { border-color: var(--cyan-line); background: rgba(95,204,255,.07); }
.fsp-row:active { transform: scale(.985); }
.fsp-row:disabled, .fsp-row.is-off { cursor: default; opacity: .55; transform: none; }
.fsp-art {
    position: relative; flex: none; width: 42px; height: 42px; border-radius: 10px; overflow: hidden;
    display: grid; place-items: center; background: #0b111b; border: 1px solid rgba(255,255,255,.08);
}
.fsp-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fsp-art.is-num { color: var(--cyan-2); background: linear-gradient(150deg,rgba(95,204,255,.18),rgba(77,141,255,.06)); }
.fsp-art.lg { width: 54px; height: 54px; border-radius: 13px; }
.fsp-rt { flex: 1; min-width: 0; }
.fsp-rt b { display: block; font-size: 12.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsp-rt small { display: block; margin-top: 2px; color: var(--faint); font-size: 10.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsp-rt small em { font-style: normal; color: var(--cyan-2); font-weight: 800; }
.fsp-run .fsp-rt small em { color: var(--green); }
.fsp-go {
    flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    color: #fff; background: var(--acc-grad); box-shadow: var(--acc-sh); transition: transform .2s var(--ease, ease);
}
.fsp-go svg { margin-left: 1px; }
.fsp-go.is-pick { background: var(--surface-4); box-shadow: none; }
.fsp-go.is-pick svg, .fsp-all svg { transform: scaleX(-1); margin: 0; }
.fsp-row:hover .fsp-go { transform: scale(1.08); }
.fsp-row.is-off .fsp-go { display: none; }

.fsp-all {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; align-self: center;
    padding: 4px 8px; border: 0; background: none; cursor: pointer;
    color: var(--cyan-2); font-size: 12px; font-weight: 800; transition: color .2s;
}
.fsp-all:hover { color: #fff; }

.fsp-run { display: flex; align-items: center; gap: 12px; }
.fsp-live {
    display: inline-flex; align-items: center; gap: 6px; margin-bottom: 3px;
    color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.fsp-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(54,216,154,.6); animation: fsp-pulse 1.8s ease-out infinite; }
@keyframes fsp-pulse { to { box-shadow: 0 0 0 8px rgba(54,216,154,0); } }
.fsp-run .fsp-rt b { font-size: 14px; }
.fsp-prog { display: flex; flex-direction: column; gap: 6px; }
.fsp-bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.fsp-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#36d89a,#5fccff); transition: width .4s var(--ease, ease); }
.fsp-prog span { color: var(--muted); font-size: 11.5px; font-weight: 700; }
.fsp-prog span b { color: var(--text); font-weight: 800; }
.fsp-cta { gap: 8px; }

.fsp-empty strong { display: block; margin-bottom: 4px; font-size: 13.5px; font-weight: 800; }
.fsp-empty p { color: var(--dim); font-size: 12px; line-height: 1.55; }
.fsp-empty p b { color: var(--gold-text); }
.fsp-empty .btn { margin-top: 10px; }
.fsp-note { color: var(--muted); font-size: 11.5px; line-height: 1.5; }
.fsp-note.bad { color: var(--pink); }

.fsp-skel { display: flex; flex-direction: column; gap: 8px; }
.fsp-skel i {
    height: 44px; border-radius: 12px;
    background: linear-gradient(90deg,rgba(255,255,255,.04),rgba(255,255,255,.08),rgba(255,255,255,.04)) 0 0 / 200% 100%;
    animation: fsp-skel 1.3s linear infinite;
}
.fsp-skel i:first-child { width: 55%; }
@keyframes fsp-skel { to { background-position: -200% 0; } }

.fsp-get { padding-top: 12px; border-top: 1px solid var(--line-soft); }
.fsp-get-t { display: block; margin-bottom: 8px; color: var(--faint); font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fsp-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fsp-way {
    display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; padding: 10px 4px 9px;
    border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line-soft);
    color: var(--text); text-decoration: none; text-align: center; cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s var(--ease, ease);
}
.fsp-way i {
    width: 32px; height: 32px; margin-bottom: 3px; border-radius: 10px; display: grid; place-items: center;
    font-style: normal; color: var(--cyan-2); background: rgba(95,204,255,.1);
}
.fsp-way b { font-size: 11.5px; font-weight: 800; }
.fsp-way small { color: var(--faint); font-size: 9.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fsp-way:hover { border-color: var(--cyan-line); background: rgba(95,204,255,.06); transform: translateY(-1px); }
.fsp-way.is-wheel i { color: var(--gold); background: var(--gold-soft-2); }
.fsp-way.is-wheel:hover { border-color: var(--gold-line); background: var(--gold-soft); }

.fsp[data-state="empty"] .fsp-way.is-wheel { border-color: var(--gold-line); background: var(--gold-soft); box-shadow: 0 10px 24px -16px rgba(247,201,75,.8); }

.mdl.mdl-fsx {
    width: min(640px, calc(100vw - 32px)); overflow: hidden;
    background: linear-gradient(180deg, #0d1626, var(--screen) 260px);
    border-color: rgba(120,180,255,.14);
}
.mdl.mdl-fsx::before {
    content: ""; position: absolute; inset: 0 0 auto; height: 260px; pointer-events: none;
    background:
        radial-gradient(360px 180px at 10% -20%, rgba(95,204,255,.26), transparent 70%),
        radial-gradient(300px 160px at 95% -5%, rgba(120,92,255,.2), transparent 72%);
}

.mdl.mdl-fsx::after {
    content: ""; position: absolute; inset: 0 0 auto; height: 200px; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 14px 14px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent); mask-image: linear-gradient(180deg, #000, transparent);
}
.mdl-fsx .mdl-scroll { position: relative; z-index: 1; }

.fsx-head { position: relative; display: flex; align-items: center; gap: 14px; padding-right: 44px; margin-bottom: 18px; }
.fsx-head .mdl-title { margin: 0 0 4px; font-size: 23px; letter-spacing: -.035em; }
.fsx-head p { color: var(--dim); font-size: 12.5px; line-height: 1.45; }
.fsx-ic {
    position: relative; flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px;
    color: #fff; border: 0;
    background: linear-gradient(145deg, #6fd6ff, #3b7cf6 55%, #6a4dff);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -8px 16px rgba(30,20,110,.35), 0 14px 30px -12px rgba(77,141,255,.95);
    transform: rotate(-6deg);
}
.fsx-ic svg { transform: rotate(6deg); filter: drop-shadow(0 1px 2px rgba(10,20,60,.5)); }
.fsx-ic::after { content: none; }

.fsx-sum {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 18px 18px 18px 20px; margin-bottom: 14px; border-radius: 22px; overflow: hidden; isolation: isolate;
    background:
        radial-gradient(260px 160px at 0% 100%, rgba(95,204,255,.2), transparent 70%),
        radial-gradient(240px 140px at 100% 0%, rgba(120,92,255,.18), transparent 70%),
        linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
    border: 1px solid rgba(140,200,255,.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 24px 48px -32px rgba(77,141,255,.8);
}

.fsx-sum::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, rgba(160,220,255,.09) 45%, rgba(160,220,255,.02) 55%, transparent 70%);
    transform: translateX(-100%); animation: fsx-sheen 7s ease-in-out infinite;
}
@keyframes fsx-sheen { 0%, 55% { transform: translateX(-100%); } 90%, 100% { transform: translateX(100%); } }
.fsx-sum-n { display: grid; grid-template-columns: auto auto; align-items: end; column-gap: 10px; }
.fsx-sum-n i {
    grid-column: 1 / -1; margin-bottom: 4px; font-style: normal; color: var(--cyan-2);
    font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.fsx-sum-n b {

    font-family: var(--f-display); font-size: 52px; font-weight: 700; letter-spacing: -.055em; line-height: 1.05;
    padding: 0 .04em .04em 0; margin-bottom: -.1em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg, #fff 30%, #9fdcff 75%, #7aa6ff); -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 6px 18px rgba(95,204,255,.35));
}
.fsx-sum-n span { padding-bottom: 8px; color: var(--dim); font-size: 13px; font-weight: 700; }
.fsx-sum-k { display: flex; gap: 8px; }
.fsx-sum-k span {
    display: flex; flex-direction: column; gap: 4px; min-width: 84px; padding: 9px 13px; border-radius: 14px;
    font-size: 17px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
    background: rgba(6,10,18,.5); border: 1px solid rgba(255,255,255,.07);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.fsx-sum-k i { font-style: normal; color: var(--muted); font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.fsx-list { position: relative; display: grid; gap: 10px; margin-bottom: 14px; }
.fsx-games {
    position: relative; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px;
    margin-bottom: 14px;
}

.fsx-b {
    --cut: 99px;
    position: relative; display: flex; gap: 12px; align-items: center; padding: 11px 12px 11px 11px; border-radius: 20px;
    color: inherit; font: inherit; text-align: left;
    background:
        radial-gradient(180px 120px at 0% 50%, rgba(95,204,255,.1), transparent 70%),
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid rgba(255,255,255,.08);
    -webkit-mask:
        radial-gradient(circle 9px at var(--cut) 0, #0000 98%, #000) top / 100% 51% no-repeat,
        radial-gradient(circle 9px at var(--cut) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
            mask:
        radial-gradient(circle 9px at var(--cut) 0, #0000 98%, #000) top / 100% 51% no-repeat,
        radial-gradient(circle 9px at var(--cut) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
    transition: border-color .2s, background .2s, transform .2s var(--ease, ease);
}
.fsx-b:hover {
    border-color: rgba(95,204,255,.32); transform: translateY(-2px);
    background:
        radial-gradient(200px 130px at 0% 50%, rgba(95,204,255,.18), transparent 70%),
        linear-gradient(180deg, rgba(95,204,255,.08), rgba(255,255,255,.02));
}
.fsx-b.is-run {
    border-color: var(--cyan-line);
    background: linear-gradient(120deg, rgba(95,204,255,.15), rgba(95,204,255,.03) 60%), rgba(10,14,22,.6);
}
.fsx-perf {
    flex: none; align-self: stretch; width: 0; margin: 6px 0; border-left: 2px dashed rgba(255,255,255,.12);
}
.fsx-art {
    flex: none; width: 64px; height: 64px; border-radius: 11px; overflow: visible; display: grid; place-items: center;
    color: var(--cyan); border: 1px solid rgba(95,204,255,.18);
    background: radial-gradient(circle at 50% 30%, rgba(95,204,255,.22), transparent 70%), #0c1522;
}
.fsx-art img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.fsx-b .fsx-art { position: relative; width: 76px; height: 76px; border-radius: 16px; overflow: hidden; }
.fsx-b .fsx-art.is-num {
    align-content: center; gap: 2px; border: 0;
    background:
        radial-gradient(circle at 28% 18%, rgba(255,255,255,.35), transparent 42%),
        linear-gradient(150deg, #6fd6ff, #3b7cf6 55%, #5a46e8);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -12px 22px rgba(30,20,110,.4), 0 14px 28px -14px rgba(77,141,255,1);
}
.fsx-art.is-num b { font-family: var(--f-display); font-size: 29px; font-weight: 700; letter-spacing: -.045em; line-height: 1; color: #fff; text-shadow: 0 2px 10px rgba(10,20,60,.45); }
.fsx-art.is-num em {
    justify-self: center; padding: 1px 7px; border-radius: 999px; font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .16em;
    color: #fff; background: rgba(10,20,60,.28); text-align: center;
}
.fsx-art.is-num::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.32) 50%, transparent 65%);
    transform: translateX(-120%); animation: fsx-shine 4.5s ease-in-out infinite;
}
@keyframes fsx-shine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.fsx-qty {
    position: absolute; left: 5px; right: 5px; bottom: 5px; text-align: center; white-space: nowrap;
    padding: 2px 0; border-radius: 8px; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .03em;
    color: #fff; background: rgba(8,14,26,.72); backdrop-filter: blur(6px);
}
.fsx-body { flex: 1; min-width: 0; display: block; }
.fsx-body b { display: block; font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsx-body small { display: block; margin-top: 2px; color: var(--faint); font-size: 11.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fsx-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.fsx-chip {
    display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 9px 0 7px; border-radius: 8px;
    font-size: 11.5px; font-weight: 800; white-space: nowrap;
    color: var(--dim); background: rgba(255,255,255,.05);
}
.fsx-chip svg { flex: none; opacity: .75; }
.fsx-chip.ok, .fsx-chip.win { color: var(--mint); background: rgba(54,216,154,.1); }
.fsx-chip.warn { color: var(--gold); background: var(--gold-soft); }
.fsx-cta { flex: none; display: flex; align-items: center; justify-content: flex-end; max-width: 200px; text-align: right; }
.fsx-cta .btn {
    min-width: 140px; min-height: 46px; border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 14px 28px -14px rgba(77,141,255,1);
}
.fsx-cta .btn svg { transition: transform .2s var(--ease, ease); }
.fsx-cta [data-fs-pick] svg { transform: rotate(180deg); }
.fsx-b:hover .fsx-cta [data-fs-pick] svg { transform: rotate(180deg) translateX(-3px); }
.fsx-st { color: var(--muted); font-size: 11.5px; font-weight: 700; line-height: 1.4; }
.fsx-st.run { display: inline-flex; align-items: center; gap: 7px; color: var(--cyan); }
.fsx-st.run::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgba(95,204,255,.6); animation: fsx-ping 1.6s ease-out infinite; }
@keyframes fsx-ping { to { box-shadow: 0 0 0 8px rgba(95,204,255,0); } }
.fsx-st.win { color: var(--mint); }
.fsx-st.bad { color: var(--pink); }

.fsx-g {
    position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 10px 8px 8px; border-radius: 16px;
    color: inherit; font: inherit; text-align: left; cursor: pointer;
    background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.08);
    transition: border-color .18s, background .18s, transform .18s var(--ease, ease), box-shadow .18s;
}
.fsx-g .fsx-art { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; transition: transform .25s var(--ease, ease); }
.fsx-g .fsx-body b { font-size: 13px; }
.fsx-g .fsx-body small { font-size: 11px; }
.fsx-go {
    flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
    color: var(--cyan-2); background: rgba(95,204,255,.08); border: 1px solid rgba(95,204,255,.16);
    transition: background .18s, color .18s, transform .18s;
}
.fsx-g:hover, .fsx-g:focus-visible {
    border-color: var(--acc-line-2); transform: translateY(-1px);
    background: linear-gradient(135deg, rgba(77,141,255,.16), rgba(95,204,255,.05));
    box-shadow: 0 14px 28px -18px rgba(77,141,255,.9);
}
.fsx-g:hover .fsx-art { transform: scale(1.05); }
.fsx-g:hover .fsx-go { color: #fff; background: var(--acc-grad); border-color: transparent; transform: scale(1.06); }
.fsx-g:disabled { opacity: .55; pointer-events: none; }
.fsx-back {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; border-radius: 14px;
    color: var(--dim); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
    background: transparent; border: 1px dashed rgba(255,255,255,.12); transition: color .18s, border-color .18s, background .18s;
}
.fsx-back:hover { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.03); }

.fsx-act {
    position: relative; padding: 18px; margin-bottom: 14px; border-radius: 22px; border: 1px solid var(--cyan-line);
    background: radial-gradient(300px 140px at 100% 0%, rgba(95,204,255,.18), transparent 70%), rgba(10,16,26,.7);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
}
.fsx-num { display: flex; align-items: baseline; gap: 8px; }
.fsx-num b {
    font-family: var(--f-display); font-size: 40px; font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums;
    background: linear-gradient(180deg,#fff 20%,#9fe3ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fsx-num span { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.fsx-bar { height: 8px; margin: 12px 0 9px; border-radius: 8px; background: rgba(255,255,255,.06); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.4); }
.fsx-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#3b7cf6,#5fccff 70%,#c9f3ff); box-shadow: 0 0 12px rgba(95,204,255,.6); }
.fsx-act p { color: var(--dim); font-size: 12px; line-height: 1.5; }
.fsx-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fsx-btns .btn { flex: 1 1 160px; }

.fsx-note {
    position: relative; padding: 10px 12px 10px 38px; border-radius: 14px; color: var(--muted); font-size: 11.5px; line-height: 1.5;
    background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05);
}
.fsx-note::before {
    content: "i"; position: absolute; left: 12px; top: 10px; width: 17px; height: 17px; display: grid; place-items: center;
    border-radius: 50%; font-size: 10.5px; font-weight: 800; font-style: italic; color: var(--cyan-2); background: rgba(95,204,255,.14);
}
.fsx-note.bad { margin-top: 8px; color: var(--pink); border-color: rgba(255,90,140,.18); }
.fsx-note.bad::before { content: "!"; font-style: normal; color: var(--pink); background: rgba(255,90,140,.14); }

@media (max-width: 760px) { .mdl.mdl-fsx { width: 100%; } }
@media (max-width: 560px) {
    .fsx-games { grid-template-columns: minmax(0,1fr); }
    .fsx-head { gap: 12px; }
    .fsx-head .mdl-title { font-size: 19px; }
    .fsx-ic { width: 40px; height: 40px; border-radius: 13px; }
    .fsx-sum { padding: 14px; gap: 12px; }
    .fsx-sum-n b { font-size: 42px; }
    .fsx-sum-k { width: 100%; }
    .fsx-sum-k span { flex: 1; }

    .fsx-b { flex-wrap: wrap; gap: 12px; padding: 10px; -webkit-mask: none; mask: none; }
    .fsx-b .fsx-art { width: 64px; height: 64px; }
    .fsx-perf { display: none; }
    .fsx-art.is-num b { font-size: 24px; }
    .fsx-body { flex-basis: calc(100% - 76px); }
    .fsx-cta { max-width: none; width: 100%; justify-content: stretch; text-align: left; }
    .fsx-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .fsp-live i, .fsp-skel i, .fsx-st.run::before, .fsx-art.is-num::after, .fsx-sum::before { animation: none; }
}

@media (max-width: 1180px) {
    .slots-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .fish-fields { flex-wrap: wrap; }
    .fish-fields .f { flex: 1 1 30%; }
}
@media (max-width: 1040px) {
    .launch { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {

    .g-screen { display: flex; flex-direction: column; gap: 14px; }
    .g-screen > .col.m-controls { display: contents; }
    .g-screen .m-metrics  { order: 1; }
    .g-screen .m-stage    { order: 2; }
    .g-screen .m-nudge    { order: 3; }
    .g-screen .m-bet      { order: 4; }
    .g-screen .m-rail     { order: 5; }

    .stage { padding: 13px; border-radius: var(--r-lg); }
    .stage .glow { inset: -6% 12% auto; height: 40%; filter: blur(12px); }
    .mines-grid { gap: 7px; }
    .mines-grid .cell { border-radius: var(--r-xs); font-size: 17px; }
    .metric { padding: 11px 12px; border-radius: 16px; }
    .metric .cap { font-size: 8px; }
    .metric b { font-size: 18px; }
    .stage .fair { margin-top: 12px; flex-direction: column; align-items: flex-start; gap: 6px; }
    .stage .fair a { margin-left: 0; }

    .bet-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
    .bubble-field { min-height: 268px; }
    .bubble-field .cur { width: 104px; height: 104px; font-size: 20px; }
    .bubble-field .goal-ring { width: 186px; height: 186px; }
    .bubble-field .b small { bottom: 10px; font-size: 9.5px; }

    .dice-face { min-height: 220px; }
    .dice-face .roll { font-size: 48px; }
    .dice-sides { gap: 8px; }
    .dice-sides button { min-height: 70px; font-size: 13px; }

    .fish-fields { gap: 8px; }
    .fish-fields .f { flex: 1 1 45%; padding: 11px; border-radius: 15px; }
    .chips .c { width: 42px; height: 42px; font-size: 11px; }

    .case-cards { flex-wrap: wrap; }
    .case-cards .c { flex: 1 1 45%; padding: 12px; }
    .case-cards .c .art { height: 72px; }
    .case-reel .it { width: 96px; }

    .up-box b { font-size: 26px; }
    .up-gauge { width: 150px; height: 150px; }
    .up-gauge .in { width: 114px; height: 114px; }

    .keno-grid { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 7px; }
    .keno-grid button { border-radius: var(--r-2xs); font-size: 13px; }

    .slots-bar { flex-wrap: wrap; padding: 12px; }
    .slots-bar .search-box { flex: 1 1 100%; }
    .slots-bar .select-box.prov, .slots-bar .select-box.sort { flex: 1 1 45%; }
    .slots-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
    .slot .demo { opacity: 1; }
}

@media (min-width: 761px) {

    .mines-grid,
    .m-stage .mult-strip   { width: 100%; max-width: 560px; margin-inline: auto; }
    .keno-grid,
    .keno-bar, .keno-pays  { width: 100%; max-width: 820px; margin-inline: auto; }
    .dice-face, .dice-sides { width: 100%; max-width: 660px; margin-inline: auto; }
    .bubble-field, .bubble-hist { width: 100%; max-width: 760px; margin-inline: auto; }
    .case-reel             { width: 100%; max-width: 900px; margin-inline: auto; }

    .fish-stage            { width: 100%; }
    .fish-last, .fish-fields, .fish-all { width: 100%; }

    .slots-grid { grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); }
}

.mario-stage {
    --tone: #f7c94b;
    --deck: #0f1523;
    --abyss: #05070d;
    position: relative; overflow: hidden; padding: 16px 0 0;
    border-radius: var(--r-xl); border: 1px solid var(--line);
    background:
        radial-gradient(120% 82% at 50% 104%, color-mix(in srgb, var(--tone) 20%, transparent), transparent 64%),
        radial-gradient(90% 60% at 50% -14%, rgba(255,255,255,.05), transparent 70%),
        linear-gradient(180deg, #080b14 0%, #0c1120 54%, #111829 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 60px -30px rgba(0,0,0,.95);
    color: #eef2fb;
    transition: background .6s ease;
}

.mario-stage[data-mode="easy"]     { --tone: #36d89a; }
.mario-stage[data-mode="medium"]   { --tone: #f7c94b; }
.mario-stage[data-mode="hard"]     { --tone: #ff9a3d; }
.mario-stage[data-mode="hardcore"] { --tone: #ff4d4d; }

.mario-stage::after {

    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit;
    background:
        linear-gradient(90deg, rgba(5,8,14,.55), transparent 9%, transparent 91%, rgba(5,8,14,.55)),
        radial-gradient(120% 80% at 50% 112%, transparent 52%, rgba(5,8,14,.4));
}
.mario-stage > .hud, .mario-stage > .road { z-index: 2; }

.mario-stage .sky {
    position: absolute; inset: 0; pointer-events: none; --sx: 0px;
    background: linear-gradient(180deg, transparent 38%, color-mix(in srgb, var(--tone) 9%, transparent) 62%, transparent 76%);
}
.mario-stage .sky::before, .mario-stage .sky::after {
    content: ''; position: absolute; inset: 0;
    -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
}

.mario-stage .sky::before {
    background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 22%, #121a2e), #0a0f1c);
    opacity: .3; filter: blur(1.5px);
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120' preserveAspectRatio='none'><path d='M0 120V74h40V52h34v22h26V38h44v36h30V58h38v16h28V30h46v44h34V50h40v24h32V42h42v32h30V60h36v14h30V46h40v28h30v46z' fill='black'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120' preserveAspectRatio='none'><path d='M0 120V74h40V52h34v22h26V38h44v36h30V58h38v16h28V30h46v44h34V50h40v24h32V42h42v32h30V60h36v14h30V46h40v28h30v46z' fill='black'/></svg>");
    -webkit-mask-size: 900px 132px; mask-size: 900px 132px;
    -webkit-mask-position: calc(var(--sx) * -.12) 44%; mask-position: calc(var(--sx) * -.12) 44%;
}

.mario-stage .sky::after {
    background: linear-gradient(180deg, #0c1322, #070b14);
    opacity: .6; filter: blur(.6px);
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120' preserveAspectRatio='none'><path d='M0 120V88h56V66h40v22h48V58h52v30h44V72h56v16h46V60h58v28h48V78h52v42z' fill='black'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 120' preserveAspectRatio='none'><path d='M0 120V88h56V66h40v22h48V58h52v30h44V72h56v16h46V60h58v28h48V78h52v42z' fill='black'/></svg>");
    -webkit-mask-size: 680px 124px; mask-size: 680px 124px;
    -webkit-mask-position: calc(var(--sx) * -.26) 56%; mask-position: calc(var(--sx) * -.26) 56%;
}

.mario-stage .stars {
    position: absolute; inset: 0 0 42% 0; pointer-events: none; opacity: .5;
    transition: opacity .6s ease;
    background:
        radial-gradient(1.4px 1.4px at 12% 22%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 28% 12%, #fff, transparent),
        radial-gradient(1.6px 1.6px at 41% 30%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 57% 16%, #fff, transparent),
        radial-gradient(1.5px 1.5px at 68% 34%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 81% 20%, #fff, transparent),
        radial-gradient(1.4px 1.4px at 92% 30%, #fff, transparent),
        radial-gradient(1.1px 1.1px at 19% 40%, #fff, transparent),
        radial-gradient(1.1px 1.1px at 47% 44%, #fff, transparent),
        radial-gradient(1.3px 1.3px at 74% 46%, #fff, transparent);
    animation: marioStars 5s ease-in-out infinite alternate;
}
@keyframes marioStars { to { opacity: .22; } }

.mario-stage .sun {
    position: absolute; right: 14%; top: 30px; width: 200px; height: 130px;
    border-radius: 50%; pointer-events: none;
    background: radial-gradient(60% 70% at 50% 60%, color-mix(in srgb, var(--tone) 34%, transparent), transparent 72%);
    filter: blur(14px);
    animation: marioGlow 7s ease-in-out infinite alternate;
}
.mario-stage .sun::before {
    content: ''; position: absolute; left: 50%; top: 52%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--tone) 70%, #fff) 0%, transparent 70%);
}
@keyframes marioGlow { to { opacity: .55; transform: scale(1.06); } }
.mario-stage > * { position: relative; }

.mario-stage .hud {
    display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap;
    margin: 0 16px 8px; padding: 10px 14px; border-radius: 14px;
    background: rgba(9, 14, 26, .62); color: #fff;
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.mario-stage .hud .m.push { margin-left: auto; text-align: right; }
.mario-stage .hud small {
    display: block; margin-bottom: 3px; color: rgba(255,255,255,.55);
    font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.mario-stage .hud b {
    font-family: var(--f-display); font-size: 19px; font-weight: 700;
    letter-spacing: -.04em; font-variant-numeric: tabular-nums;
}
.mario-stage .hud .m:nth-child(2) b { color: var(--gold-text); }
.mario-stage .hud .m.push b { color: var(--tone); }

.mario-stage .road {
    --pw: 92px; --gap: 22px; --ground: 54px; --slab: 40px;
    position: relative; display: flex; align-items: flex-end; gap: var(--gap);
    height: 300px; padding: 0 40px var(--ground) 130px;
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none; scroll-behavior: smooth;
    background:

        linear-gradient(90deg, color-mix(in srgb, var(--tone) 55%, transparent), color-mix(in srgb, var(--tone) 18%, transparent)) 0 calc(100% - var(--ground)) / 100% 2px repeat-x,

        linear-gradient(180deg, color-mix(in srgb, var(--tone) 12%, transparent), transparent 70%) 0 calc(100% - var(--ground)) / 100% var(--ground) repeat-x,

        repeating-linear-gradient(90deg, rgba(255,255,255,.055) 0 1px, transparent 1px 92px) 0 calc(100% - var(--ground) + 2px) / 100% 12px repeat-x,

        linear-gradient(180deg, transparent calc(100% - var(--ground)), var(--deck) calc(100% - var(--ground)), var(--abyss) 100%);
    background-repeat: repeat-x, repeat-x, repeat-x, no-repeat;
}
.mario-stage .road::-webkit-scrollbar { display: none; }

.mario-stage .road .pipe {
    position: absolute; left: 38px; bottom: var(--ground); width: 62px; height: var(--slab);
    background: linear-gradient(180deg, #1b2438, #0f1524);
    border-radius: 6px 6px 3px 3px;
    box-shadow: inset 0 1px 0 color-mix(in srgb, var(--tone) 50%, transparent),
                0 -14px 26px -12px color-mix(in srgb, var(--tone) 60%, transparent),
                0 10px 18px -10px #000;
}
.mario-stage .road .pipe::before {
    content: ''; position: absolute; left: 12px; right: 12px; top: -1px; height: 2px;
    background: var(--tone); border-radius: 2px;
    box-shadow: 0 0 12px color-mix(in srgb, var(--tone) 80%, transparent);
}

.mario-stage .road .p {

    --edge: color-mix(in srgb, var(--tone) calc((1 - var(--heat, 0)) * 100%), #ff4d4d);
    position: relative; flex: none; width: var(--pw);
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    transform: translateY(calc(var(--lift, 0) * -0.7px));
}

.mario-stage .road .p .coin {
    width: 20px; height: 20px; border-radius: 50%;
    background: radial-gradient(circle at 34% 30%, #fff6d0, #f3c445 52%, #9c6f16);
    box-shadow: inset 0 0 0 2px rgba(255,255,255,.35), 0 0 14px -2px rgba(247,201,75,.7);
    animation: marioCoin 2.4s ease-in-out infinite;
}
@keyframes marioCoin { 50% { transform: translateY(-7px); } }

.mario-stage .road .p .x {
    position: absolute; left: 0; right: 0; bottom: 0; height: var(--slab); z-index: 1;
    display: grid; place-items: center; pointer-events: none;
    font-family: var(--f-display); font-size: 12px; font-weight: 700; font-style: normal;
    color: #cfd8ea; letter-spacing: -.02em; white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0,0,0,.6);
    font-variant-numeric: tabular-nums;
    transition: transform .5s ease-in, opacity .3s;
}

.mario-stage .road .p::before {
    content: ''; position: absolute; left: -6%; right: -6%; bottom: calc(var(--lift, 0) * 0.7px * -1 - 14px);
    height: 20px; border-radius: 50%;
    background: radial-gradient(52% 100% at 50% 50%, color-mix(in srgb, var(--edge) 46%, transparent), transparent 74%);
    filter: blur(4px);
}
.mario-stage .road .p .slab {
    position: relative;
    display: grid; place-items: center; width: 100%; height: var(--slab); border-radius: 9px;
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--edge) 14%, #212c46), #141c31 46%, #0b1120);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.16),
                inset 0 -3px 0 color-mix(in srgb, var(--edge) 55%, transparent),
                0 0 0 1px color-mix(in srgb, var(--edge) 22%, transparent),
                0 14px 22px -14px #000;
    transition: box-shadow .3s var(--ease), background .3s var(--ease);
}

.mario-stage .road .p .slab::before {
    content: ''; position: absolute; left: 8px; right: 8px; top: 3px; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--edge) 85%, transparent), transparent);
}

.mario-stage .road .p .burst {
    position: absolute; top: 4px; left: 50%; width: 64px; height: 64px; margin-left: -32px;
    pointer-events: none; opacity: 0; border-radius: 50%;
    border: 2px solid color-mix(in srgb, var(--tone) 85%, #fff);
}
.mario-stage .road .p.pop .burst { animation: marioBurst .6s ease-out forwards; }
@keyframes marioBurst {
    0%   { opacity: .95; transform: scale(.25); }
    100% { opacity: 0;   transform: scale(1.5); }
}

.mario-stage .road .p.done .coin { opacity: 0; transform: translateY(-28px) scale(.4); transition: all .35s var(--ease); animation: none; }
.mario-stage .road .p.done .slab { background: linear-gradient(180deg,#151b29,#0d1220); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); opacity: .6; }
.mario-stage .road .p.done .slab::before { background: rgba(255,255,255,.12); }
.mario-stage .road .p.done .x { opacity: .4; }

.mario-stage .road .p.here .coin { opacity: 0; animation: none; }
.mario-stage .road .p.here .slab {
    background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 30%, #16203a), #0e1526);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.28),
                inset 0 -2px 0 var(--tone),
                0 0 0 1px color-mix(in srgb, var(--tone) 55%, transparent),
                0 16px 30px -14px color-mix(in srgb, var(--tone) 80%, transparent);
}
.mario-stage .road .p.here .slab::before { background: var(--tone); box-shadow: 0 0 10px var(--tone); }
.mario-stage .road .p.here .x { color: #fff; font-size: 13px; text-shadow: 0 0 10px var(--tone), 0 1px 2px rgba(0,0,0,.7); }

.mario-stage .road .p.pit .slab {
    background: linear-gradient(180deg,#2a0f14,#140508);
    box-shadow: inset 0 0 0 1px rgba(255,77,77,.45);
    transform: translateY(52px) rotate(-9deg); opacity: .55;
    transition: transform .5s ease-in, opacity .5s ease-in;
}
.mario-stage .road .p.pit .slab::before { background: transparent; }
.mario-stage .road .p.pit::after {
    content: ''; position: absolute; left: -10px; right: -10px; bottom: -58px; height: 58px;
    background: radial-gradient(60% 90% at 50% 100%, #ff6a3d, rgba(255,60,60,.65) 55%, transparent 100%);
    filter: blur(1px);
    animation: marioLava .7s ease-in-out infinite alternate;
}
@keyframes marioLava { to { filter: blur(1px) brightness(1.35); transform: scaleY(1.12); } }
.mario-stage .road .p.pit .x { opacity: 0; transform: translateY(52px) rotate(-9deg); }

.mario-stage .road .p.cracking .slab {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -3px 0 rgba(255,77,77,.75),
                0 0 0 1px rgba(255,77,77,.5), 0 0 26px -6px rgba(255,77,77,.8);
}
.mario-stage .road .p.cracking .slab::after, .mario-stage .road .p.pit .slab::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 40'><path d='M44 0 L40 10 L49 17 L42 26 L47 40 M49 17 L61 14 L68 21 M40 10 L29 7' stroke='%23ff6a5a' stroke-width='1.7' fill='none' stroke-linejoin='round'/></svg>") center / 100% 100% no-repeat;
}
.mario-stage .road .p.pit .coin { opacity: 0; }

.mario-stage .road .flag {
    position: relative; flex: none; width: 54px; height: 170px; margin-left: 10px;
}
.mario-stage .road .flag::before {

    content: ''; position: absolute; left: 6px; right: 6px; top: 22px; bottom: 0;
    background:
        linear-gradient(180deg, transparent, color-mix(in srgb, var(--tone) 70%, transparent)) left / 3px 100% no-repeat,
        linear-gradient(180deg, transparent, color-mix(in srgb, var(--tone) 70%, transparent)) right / 3px 100% no-repeat;
}

.mario-stage .road .flag::after {
    content: ''; position: absolute; left: 9px; right: 9px; top: 26px; bottom: 0;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--tone) 30%, transparent));
    box-shadow: 0 0 34px -6px color-mix(in srgb, var(--tone) 70%, transparent);
    animation: marioGate 2.4s ease-in-out infinite alternate;
}
@keyframes marioGate { to { opacity: .45; } }

.mario-stage .road .hero {
    --hh: 84px; --hw: 61px;
    position: absolute; z-index: 3; left: 0; bottom: calc(var(--ground) + var(--slab) - 2px);
    width: var(--hw); height: var(--hh); pointer-events: none;
    transform: translate3d(calc(var(--x, 0px) - var(--hw) / 2), calc(var(--y, 0) * -0.7px), 0);
}
.mario-stage .road .hero > b { position: absolute; inset: 0; display: block; transform-origin: 50% 100%; }
.mario-stage .road .hero img {
    position: absolute; bottom: 0; left: 50%; translate: -50% 0; width: auto; display: none;

    filter: drop-shadow(0 6px 6px rgba(0,0,0,.6)) drop-shadow(0 0 10px color-mix(in srgb, var(--tone) 40%, transparent));
}
.mario-stage .road .hero img[data-f="st"]   { height: 100%; transform-origin: 50% 100%; animation: marioBreathe 2.6s ease-in-out infinite; }
.mario-stage .road .hero img[data-f="jp"]   { height: 125%; }
.mario-stage .road .hero img[data-f="fall"] { height: 110%; }
.mario-stage .road .hero img[data-f="win"]  { height: 126%; }
.mario-stage .road .hero[data-pose="st"]   img[data-f="st"],
.mario-stage .road .hero[data-pose="jp"]   img[data-f="jp"],
.mario-stage .road .hero[data-pose="fall"] img[data-f="fall"],
.mario-stage .road .hero[data-pose="win"]  img[data-f="win"] { display: block; }
.mario-stage .road .hero.air img[data-f="st"] { animation: none; }
@keyframes marioBreathe { 50% { transform: scale(1.015, 1.035); } }

.mario-stage .road .hero::after {
    content: ''; position: absolute; left: 50%; bottom: -4px; width: 36px; height: 7px; margin-left: -18px;
    border-radius: 50%; background: rgba(0,0,0,.6); filter: blur(3px);
    transition: opacity .15s;
}
.mario-stage .road .hero.air::after { opacity: 0; }

.mario-stage .road .hero.ghost { z-index: 2; opacity: 0; }
.mario-stage .road .hero.ghost img { filter: saturate(.5) brightness(1.4) drop-shadow(0 0 8px color-mix(in srgb, var(--tone) 60%, transparent)); }
.mario-stage .road .hero.ghost::after { display: none; }

.mario-stage .road .mfx { position: absolute; left: 0; bottom: calc(var(--ground) + var(--slab)); pointer-events: none; z-index: 4; }
.mario-stage .road .mfx.ring {
    width: 60px; height: 14px; margin: 0 0 -7px -30px; border-radius: 50%;
    border: 1.5px solid color-mix(in srgb, var(--tone) 80%, #fff);
}
.mario-stage .road .mfx.puff {
    width: 14px; height: 9px; margin: 0 0 -4px -7px; border-radius: 50%;
    background: radial-gradient(circle, rgba(220,228,245,.75), rgba(220,228,245,0) 70%);
}
.mario-stage .road .mfx.spark {
    width: 6px; height: 6px; margin: 0 0 -3px -3px; border-radius: 50%;
    background: #ff7a6a; box-shadow: 0 0 10px #ff4d4d;
}
.mario-stage .road .mfx.glow {
    width: 220px; height: 130px; margin: 0 0 -65px -110px; border-radius: 50%; mix-blend-mode: screen;
    background: radial-gradient(50% 60% at 50% 60%, rgba(255,90,60,.7), rgba(255,40,40,.22) 55%, transparent 75%);
    filter: blur(6px);
}

.mario-stage .m-fx { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; border-radius: inherit; }
.mario-stage .m-fx .m-coin {
    position: absolute; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff6c8, #f7c94b 45%, #b07a14);
    box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45), 0 0 10px rgba(247,201,75,.6);
}
.mario-stage .road .mfx.rays {
    z-index: 2; width: 240px; height: 240px; margin: 0 0 -120px -120px; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--tone) 40%, transparent) 0 7deg, transparent 7deg 22deg);
    -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%);
            mask: radial-gradient(circle, #000 18%, transparent 68%);
}

@media (max-width: 760px) {

    .mario-stage .road { --pw: 76px; --gap: 16px; height: 268px; padding-left: 104px; }
    .mario-stage .road .hero { --hh: 70px; --hw: 51px; }
    .mario-stage .road .p .x { font-size: 10.5px; }
    .mario-stage .hud b { font-size: 16px; }
    .mario-stage .sun { width: 84px; height: 84px; top: 26px; }
}

.mario-ladder {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    padding: 2px 0;
}
.mario-ladder::-webkit-scrollbar { display: none; }
.mario-ladder .l {
    flex: none; padding: 7px 11px; border-radius: 999px;
    border: 1px solid var(--line-2); background: var(--surface);
    color: var(--dim); font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums;
}
.mario-ladder .l.past { color: var(--faint-2); opacity: .55; }
.mario-ladder .l.on {
    color: var(--green-ink); background: var(--green-grad); border-color: transparent;
    box-shadow: 0 10px 22px -12px rgba(54,216,154,.9);
}

.mario-modes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px; }
.mario-modes .mm {
    padding: 10px; border-radius: var(--r-xs); border: 1px solid var(--line-2);
    background: var(--surface); color: var(--dim); text-align: left; cursor: pointer;
    transition: color .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.mario-modes .mm:hover { color: var(--text); background: var(--surface-3); }
.mario-modes .mm.on { color: #fff; border-color: var(--acc-line-2); background: var(--acc-soft-2); }
.mario-modes .mm b { display: block; font-size: 12.5px; font-weight: 800; }
.mario-modes .mm small { display: block; margin-top: 3px; font-size: 10px; font-weight: 700; opacity: .8; }

.mario-bet { display: flex; align-items: center; gap: 7px; }
.mario-bet input {
    flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: var(--r-xs);
    border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--text);
    font-family: var(--f-display); font-size: 17px; font-weight: 700; letter-spacing: -.03em;
}
.mario-bet input:focus { outline: none; border-color: var(--acc-line-2); }
.mario-bet .step {
    flex: none; width: 44px; height: 44px; border-radius: var(--r-xs);
    border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
    font-size: 18px; font-weight: 800; cursor: pointer;
}
.mario-bet .step:hover { background: var(--surface-4); }

.w-full { width: 100%; }
.stage-note { font-size: 11.5px; line-height: 1.6; }

.mines-grid.is-idle .cell { opacity: .88; }
.mines-grid.is-idle .cell:hover { opacity: 1; }
