:root {
    color-scheme: light;
    --slot-bg: #fff7fb;
    --slot-ink: #2d2329;
    --slot-muted: #7b6973;
    --slot-panel: rgba(255, 255, 255, 0.92);
    --slot-line: rgba(255, 122, 24, 0.35);
    --slot-pink: #f657b5;
    --slot-gold: #ffd04d;
    --slot-cyan: #31b8e8;
    --slot-green: #1cbf72;
    --slot-purple: #7d59e8;
    --slot-red: #ec2d26;
    --slot-orange: #ff7a18;
    --game-header-side-bg: #fff7fb;
    --game-header-center-bg: #fff;
    --game-header-ink: #2d2329;
    --game-header-muted: #7b6973;
    --game-header-accent: var(--slot-pink);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    color: var(--slot-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    letter-spacing: 0;
    background:
        radial-gradient(circle at 50% 0, rgba(246, 87, 181, 0.12), transparent 34%),
        linear-gradient(
            to right,
            var(--slot-bg) 0,
            var(--slot-bg) calc((100% - 450px) / 2),
            #fff calc((100% - 450px) / 2),
            #fff calc((100% + 450px) / 2),
            var(--slot-bg) calc((100% + 450px) / 2),
            var(--slot-bg) 100%
        );
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.game-wallet {
    color: #111827;
}

.game-wallet__value {
    color: #111827;
    text-shadow: none;
}

.slot-shell {
    display: grid;
    place-items: start center;
    min-height: 100vh;
    padding: 8px 12px max(16px, env(safe-area-inset-bottom));
}

.slot-stage {
    width: min(100%, 430px);
    padding-bottom: 14px;
}

.cabinet-top,
.machine-lights,
.reel-actions,
.machine-status,
.slot-lever,
.mission-panel,
.slot-paytable,
.slot-global-panel {
    display: none;
}

.slot-hud {
    display: grid;
    gap: 8px;
}

.slot-hud {
    grid-template-columns: 54px minmax(0, 1fr) 86px;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    margin: 0 14px 6px;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.slot-hud > div,
.jackpot-meter,
.mission-panel,
.slot-paytable,
.slot-global-panel {
    border: 0;
    border-radius: 8px;
    background: var(--slot-panel);
    box-shadow:
        0 8px 18px rgba(157, 80, 54, 0.08);
}

.slot-hud > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.slot-hud > div:nth-child(2) {
    order: -1;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 50%;
    background: linear-gradient(180deg, #ffd84a, #ffb516);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.48),
        0 5px 12px rgba(157, 80, 54, 0.18);
}

.slot-hud > div:nth-child(3) {
    align-items: flex-end;
    min-height: 42px;
    padding: 2px 0 0;
    background: transparent;
    box-shadow: none;
}

.mission-panel span,
.slot-paytable span,
.slot-global-panel dt,
.slot-global-panel-head small {
    color: var(--slot-muted);
    font-size: 10px;
    font-weight: 900;
}

.slot-hud strong {
    min-width: 0;
    color: var(--slot-ink);
    font-size: 19px;
    line-height: 1.08;
    text-shadow: none;
}

.slot-hud > div:first-child strong {
    color: var(--slot-ink);
    font-size: 24px;
    font-weight: 1000;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.78),
        0 0 8px rgba(246, 87, 181, 0.22);
}

.slot-hud > div:nth-child(2) strong {
    color: #4c3200;
    font-size: 17px;
}

.slot-hud > div:nth-child(3) strong {
    color: var(--slot-ink);
    font-size: 18px;
}

.jackpot-meter {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    min-height: 20px;
    margin: 0 18px 8px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.jackpot-track {
    position: relative;
    height: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 0;
    box-shadow:
        inset 0 1px 2px rgba(45, 35, 41, 0.12),
        0 4px 10px rgba(157, 80, 54, 0.08);
}

.jackpot-track i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--slot-orange), var(--slot-gold));
    box-shadow: 0 0 10px rgba(255, 184, 46, 0.52);
    transition: width 220ms ease;
}

.slot-status-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    min-height: 0;
    margin-bottom: 8px;
}

.slot-status-row[hidden] {
    display: none;
}

.slot-status-row span[hidden] {
    display: none;
}

.slot-status-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 208, 77, 0.34);
    border-radius: 999px;
    color: var(--slot-gold);
    font-size: 10px;
    font-weight: 1000;
    background: rgba(5, 6, 6, 0.82);
    box-shadow: 0 0 12px rgba(255, 122, 24, 0.14);
}

.slot-machine {
    position: relative;
    overflow: visible;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.cabinet-top {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 8px;
    min-height: 26px;
    margin-bottom: 8px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 122, 24, 0.36);
    border-radius: 5px;
    background: #080909;
}

.cabinet-top i,
.cabinet-top b {
    height: 10px;
    border-radius: 2px;
    background: var(--slot-red);
    box-shadow: 0 0 10px rgba(236, 45, 38, 0.74);
}

.cabinet-top span {
    height: 4px;
    border-radius: 999px;
    background: repeating-linear-gradient(90deg, #39140c 0 8px, #ff4a12 8px 13px);
    box-shadow: 0 0 10px rgba(255, 74, 18, 0.32);
}

.machine-lights {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.machine-lights i {
    height: 8px;
    border-radius: 999px;
    background: var(--slot-orange);
    box-shadow: 0 0 12px rgba(255, 122, 24, 0.62);
    animation: slotLight 900ms ease-in-out infinite alternate;
}

.machine-lights i:nth-child(2n) {
    background: var(--slot-gold);
    box-shadow: 0 0 12px rgba(255, 208, 77, 0.56);
    animation-delay: 180ms;
}

.machine-lights i:nth-child(3n) {
    background: var(--slot-red);
    box-shadow: 0 0 12px rgba(236, 45, 38, 0.56);
    animation-delay: 320ms;
}

.reel-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    min-height: 220px;
    padding: 12px 10px;
    border: 0;
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 50%, rgba(194, 0, 0, 0.18), transparent 66%),
        #020202;
}

.reel {
    display: grid;
    place-items: center;
    min-height: 188px;
    min-width: 0;
    overflow: hidden;
    border: 0;
    border-right: 3px solid rgba(255, 122, 24, 0.58);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.reel:last-child {
    border-right: 0;
}

.reel.is-spinning .symbol {
    transform: translateY(4px) scale(0.94);
    filter: blur(1px) saturate(1.22);
}

.reel-strip {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 2px;
    width: 100%;
    height: 100%;
    padding: 2px 5px;
}

.reel.is-held {
    border-color: rgba(246, 183, 60, 0.82);
    box-shadow:
        inset 0 8px 16px rgba(255, 255, 255, 0.72),
        inset 0 -10px 18px rgba(32, 29, 42, 0.08),
        0 0 0 3px rgba(246, 183, 60, 0.22),
        0 8px 18px rgba(32, 29, 42, 0.08);
}

.reel.is-hit .symbol {
    animation: symbolPop 430ms cubic-bezier(0.2, 1.7, 0.38, 1);
}

.symbol {
    display: grid;
    place-items: center;
    width: min(96%, 56px);
    aspect-ratio: 1;
    border-radius: 50%;
    color: #fff;
    font-size: 31px;
    font-weight: 1000;
    line-height: 1;
    background:
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--symbol-a) 58%, transparent), transparent 64%),
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--symbol-b) 34%, transparent), transparent 78%);
    image-rendering: pixelated;
    box-shadow:
        0 0 10px color-mix(in srgb, var(--symbol-a) 58%, transparent),
        0 0 22px color-mix(in srgb, var(--symbol-b) 26%, transparent);
    transition: transform 90ms ease, filter 90ms ease;
}

.symbol img {
    width: 92%;
    height: 92%;
    border: 0;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
    filter:
        drop-shadow(0 0 5px color-mix(in srgb, var(--symbol-a) 76%, transparent))
        drop-shadow(0 0 10px color-mix(in srgb, var(--symbol-b) 34%, transparent));
}

.symbol small {
    font-size: 28px;
    filter:
        drop-shadow(0 0 4px color-mix(in srgb, var(--symbol-a) 82%, transparent))
        drop-shadow(0 0 9px color-mix(in srgb, var(--symbol-b) 42%, transparent));
}

.reel-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 9px;
}

.reel-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border: 1px solid rgba(32, 29, 42, 0.1);
    border-radius: 8px;
    color: var(--slot-ink);
    font: inherit;
    font-size: 11px;
    font-weight: 1000;
    background: #24231f;
    cursor: pointer;
}

.reel-action-button.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--slot-orange), var(--slot-red));
    box-shadow: 0 8px 16px rgba(236, 45, 38, 0.28);
}

.reel-action-button.is-stop {
    color: #fff;
    background: linear-gradient(135deg, var(--slot-cyan), var(--slot-purple));
}

.reel-action-button:disabled {
    opacity: 0.52;
    cursor: default;
}

.machine-status {
    display: grid;
    gap: 3px;
    min-height: 52px;
    margin-top: 12px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--slot-ink);
    background: rgba(0, 0, 0, 0.56);
    border: 1px solid rgba(255, 122, 24, 0.32);
}

.machine-status strong {
    font-size: 17px;
    line-height: 1.25;
}

.machine-status span {
    color: var(--slot-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.slot-machine.is-jackpot {
    animation: jackpotPulse 640ms ease-in-out 3;
}

.slot-machine.is-rush {
    border-color: rgba(255, 208, 77, 0.86);
    background:
        linear-gradient(180deg, rgba(68, 43, 12, 0.84), rgba(5, 7, 7, 0.94)),
        repeating-linear-gradient(90deg, rgba(255, 208, 77, 0.12) 0 2px, transparent 2px 8px),
        #0b0d0d;
}

.slot-lever {
    position: absolute;
    right: 12px;
    top: 96px;
    z-index: 3;
    width: 34px;
    height: 132px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.slot-lever::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 22px;
    width: 7px;
    height: 94px;
    border-radius: 999px;
    background: var(--slot-gold);
    box-shadow: 0 0 10px rgba(255, 208, 77, 0.52);
    transform: rotate(14deg);
    transform-origin: bottom center;
}

.slot-lever span {
    position: absolute;
    left: 2px;
    top: 0;
    width: 31px;
    height: 31px;
    border: 4px solid var(--slot-gold);
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ff8077, #a20e0a 72%);
    box-shadow: 0 8px 0 #3e0705, 0 0 16px rgba(236, 45, 38, 0.64);
    transition: transform 120ms ease;
}

.slot-lever:active span,
.slot-lever.is-pulled span {
    transform: translateY(34px);
}

.slot-lever:disabled {
    opacity: 0.56;
    cursor: default;
}

.burst-layer {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

.burst-particle,
.burst-heart,
.burst-ring,
.burst-wave,
.burst-score {
    position: absolute;
    left: var(--x);
    top: var(--y);
    pointer-events: none;
}

.burst-particle {
    width: var(--size);
    height: var(--size);
    border-radius: 999px;
    background: var(--color);
    box-shadow: 0 0 10px var(--color);
    animation: burstParticle var(--life) ease-out forwards;
}

.burst-heart {
    width: var(--size);
    height: var(--size);
    color: var(--color);
    font-size: var(--size);
    line-height: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.86), 0 0 14px var(--color);
    transform: translate(-50%, -50%);
    animation: burstHeart var(--life) ease-out forwards;
}

.burst-ring,
.burst-wave {
    width: var(--size);
    height: var(--size);
    border-radius: 999px;
    border: var(--line) solid rgba(255, 255, 255, 0.94);
    box-shadow: 0 0 0 2px var(--color), 0 0 22px var(--color);
    transform: translate(-50%, -50%) scale(0.24);
    animation: burstRing var(--life) ease-out forwards;
}

.burst-wave {
    opacity: 0.84;
    border-color: var(--color);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.88), 0 0 28px var(--color);
}

.burst-score {
    z-index: 4;
    color: var(--color);
    font-size: var(--size);
    font-weight: 1000;
    line-height: 1;
    white-space: nowrap;
    text-shadow:
        0 2px 0 #fff,
        0 -2px 0 #fff,
        2px 0 0 #fff,
        -2px 0 0 #fff,
        0 0 14px rgba(255, 255, 255, 0.9),
        0 0 18px var(--color);
    transform: translate(-50%, -50%);
    animation: burstScore var(--life) ease-out forwards;
}

.slot-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(255, 248, 244, 0.78);
    backdrop-filter: blur(12px) saturate(1.08);
    -webkit-backdrop-filter: blur(12px) saturate(1.08);
}

.slot-overlay[hidden] {
    display: none;
}

.slot-overlay-panel {
    display: grid;
    justify-items: center;
    gap: 12px;
    width: min(100%, 310px);
    padding: 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 122, 24, 0.22);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 36px rgba(148, 68, 29, 0.18);
    text-align: center;
}

.slot-overlay-panel > strong {
    font-size: 24px;
    line-height: 1.16;
}

.slot-overlay-panel > span {
    color: #b45309;
    font-size: 11px;
    font-weight: 1000;
}

.slot-overlay-panel p {
    margin: 0;
    color: var(--slot-muted);
    font-size: 13px;
    font-weight: 700;
}

.slot-start-cost {
    color: #b45309 !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.slot-start-hint {
    min-height: 18px;
}

.start-symbols {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.start-symbols img,
.start-symbols b {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background: linear-gradient(160deg, var(--slot-pink), var(--slot-purple));
    color: #fff;
    font-size: 31px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(32, 29, 42, 0.12);
}

.slot-overlay-panel button,
.spin-button {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    border: 2px solid rgba(255, 238, 154, 0.72);
    border-radius: 14px;
    overflow: hidden;
    color: #fff;
    font: inherit;
    font-size: 17px;
    font-weight: 1000;
    text-shadow: 0 2px 0 rgba(92, 8, 5, 0.62), 0 0 14px rgba(255, 255, 255, 0.66);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 30%),
        linear-gradient(135deg, #ffcf4a 0%, var(--slot-orange) 34%, #ff3330 72%, #c11117 100%);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.48),
        inset 0 -6px 0 rgba(104, 10, 8, 0.38),
        0 0 0 2px rgba(255, 122, 24, 0.14),
        0 16px 30px rgba(236, 45, 38, 0.4),
        0 0 34px rgba(255, 122, 24, 0.28);
    cursor: pointer;
    transform: translateY(0);
    transition: transform 120ms ease, filter 120ms ease, box-shadow 120ms ease;
}

.spin-button::before {
    content: "";
    position: absolute;
    inset: 4px 8px auto;
    height: 38%;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0));
    opacity: 0.72;
    pointer-events: none;
}

.spin-button::after {
    content: "";
    position: absolute;
    inset: -35% auto -35% -24%;
    width: 32%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.56), transparent);
    transform: skewX(-18deg);
    animation: buttonShine 2.4s ease-in-out infinite;
    pointer-events: none;
}

.slot-overlay-panel button {
    min-width: 118px;
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    font-size: 14px;
    text-shadow: none;
    background: linear-gradient(135deg, var(--slot-orange), var(--slot-red));
    box-shadow: 0 12px 22px rgba(236, 45, 38, 0.32);
}

.result-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.result-actions button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    font-size: 13px;
}

.slot-overlay-panel button.slot-secondary-button {
    color: var(--slot-ink);
    border: 1px solid rgba(255, 122, 24, 0.26);
    background: rgba(255, 248, 244, 0.88);
    box-shadow: none;
}

.slot-overlay-panel button:disabled {
    opacity: 0.48;
    cursor: default;
    filter: grayscale(0.22);
}

.spin-button {
    flex-direction: column;
    gap: 4px;
    width: 100%;
    min-height: 74px;
    margin-top: 10px;
    padding: 10px 24px 12px 108px;
    letter-spacing: 0;
    animation: pullButtonPulse 1.55s ease-in-out infinite;
}

.spin-button .pull-label {
    position: relative;
    z-index: 1;
    max-width: 100%;
    font-size: 20px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pull-hint {
    position: relative;
    z-index: 1;
    max-width: 100%;
    color: rgba(255, 247, 211, 0.92);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 0 rgba(92, 8, 5, 0.45);
    white-space: nowrap;
}

.spin-button.is-start-offer .pull-label {
    font-size: 22px;
}

.spin-button.is-start-offer .pull-hint {
    display: none;
}

.pull-handle {
    position: absolute;
    left: 24px;
    top: 10px;
    bottom: 10px;
    z-index: 1;
    width: 58px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 42%, rgba(0, 0, 0, 0.22)),
        rgba(55, 12, 10, 0.42);
    box-shadow:
        inset 0 0 0 2px rgba(255, 238, 154, 0.42),
        inset 0 10px 18px rgba(0, 0, 0, 0.2),
        0 0 18px rgba(255, 208, 77, 0.22);
}

.pull-rail {
    position: absolute;
    left: 50%;
    top: 9px;
    bottom: 9px;
    width: 8px;
    border-radius: 999px;
    background:
        linear-gradient(90deg, #ffefaa, #b16b18 45%, #5c170d);
    box-shadow:
        inset 1px 0 0 rgba(255, 255, 255, 0.5),
        0 0 10px rgba(255, 208, 77, 0.3);
    transform: translateX(-50%);
}

.pull-knob {
    position: absolute;
    left: 50%;
    top: 4px;
    width: 36px;
    height: 36px;
    border: 4px solid rgba(255, 238, 154, 0.86);
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.78), transparent 22%),
        radial-gradient(circle at 45% 42%, #ff6862, #b90f0c 66%, #5c0705);
    box-shadow:
        inset 0 -4px 0 rgba(55, 5, 4, 0.36),
        0 4px 0 rgba(74, 9, 6, 0.58),
        0 0 20px rgba(255, 58, 48, 0.62);
    transform: translateX(-50%);
    transition: transform 180ms cubic-bezier(0.2, 1.45, 0.38, 1), filter 140ms ease;
}

.spin-button:hover:not(:disabled) .pull-knob {
    filter: brightness(1.1) saturate(1.1);
}

.spin-button:hover:not(:disabled) {
    filter: brightness(1.08) saturate(1.12);
    transform: translateY(-1px);
}

.spin-button:active:not(:disabled) {
    transform: translateY(3px) scale(0.992);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        inset 0 3px 10px rgba(104, 10, 8, 0.42),
        0 8px 18px rgba(236, 45, 38, 0.34),
        0 0 24px rgba(255, 122, 24, 0.24);
}

.spin-button:active:not(:disabled) .pull-knob,
.spin-button.is-pulled .pull-knob {
    transform: translate(-50%, 21px) scale(0.96);
}

.spin-button:active:not(:disabled) .pull-rail,
.spin-button.is-pulled .pull-rail {
    filter: brightness(1.2);
}

.spin-button:disabled {
    opacity: 0.5;
    cursor: default;
    animation: none;
}

.spin-button:disabled::after {
    animation: none;
    opacity: 0;
}

.mission-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 9px 10px;
}

.mission-panel strong {
    min-width: 0;
    font-size: 13px;
    line-height: 1.3;
}

.mission-track {
    grid-column: 1 / -1;
    position: relative;
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf5;
    background: #08090a;
    border: 1px solid rgba(255, 122, 24, 0.26);
}

.mission-track i {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--slot-green), var(--slot-gold));
    transition: width 180ms ease;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 0;
}

.result-stats div,
.slot-paytable div,
.slot-global-grid div {
    min-width: 0;
    padding: 9px;
    border-radius: 8px;
    background: rgba(248, 251, 255, 0.86);
    border: 1px solid rgba(32, 29, 42, 0.08);
}

.result-stats dt,
.result-stats dd {
    margin: 0;
}

.result-stats dt {
    color: var(--slot-muted);
    font-size: 10px;
    font-weight: 900;
}

.result-stats dd {
    margin-top: 2px;
    font-size: 15px;
    font-weight: 900;
}

.slot-paytable {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
    padding: 8px;
}

.slot-paytable strong {
    display: block;
    margin-top: 2px;
    font-size: 12px;
}

.slot-global-panel {
    margin-top: 10px;
    padding: 10px;
}

.slot-global-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.slot-global-panel-head span {
    font-size: 13px;
    font-weight: 900;
}

.slot-global-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.slot-global-grid dt,
.slot-global-grid dd {
    margin: 0;
}

.slot-global-grid dd {
    margin-top: 3px;
    font-size: 13px;
    font-weight: 900;
}

@keyframes slotLight {
    from {
        opacity: 0.46;
        transform: scaleX(0.84);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes pullButtonPulse {
    0%,
    100% {
        box-shadow:
            inset 0 2px 0 rgba(255, 255, 255, 0.48),
            inset 0 -6px 0 rgba(104, 10, 8, 0.38),
            0 0 0 2px rgba(255, 122, 24, 0.14),
            0 16px 30px rgba(236, 45, 38, 0.4),
            0 0 34px rgba(255, 122, 24, 0.28);
    }
    50% {
        box-shadow:
            inset 0 2px 0 rgba(255, 255, 255, 0.58),
            inset 0 -6px 0 rgba(104, 10, 8, 0.32),
            0 0 0 3px rgba(255, 208, 77, 0.24),
            0 18px 34px rgba(236, 45, 38, 0.48),
            0 0 48px rgba(255, 208, 77, 0.36);
    }
}

@keyframes buttonShine {
    0%,
    34% {
        left: -28%;
        opacity: 0;
    }
    48% {
        opacity: 0.82;
    }
    68%,
    100% {
        left: 104%;
        opacity: 0;
    }
}

@keyframes jackpotPulse {
    0%,
    100% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.92),
            0 18px 34px rgba(45, 78, 112, 0.12);
    }
    50% {
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.92),
            0 0 0 4px rgba(246, 183, 60, 0.32),
            0 20px 38px rgba(246, 87, 181, 0.22);
    }
}

@keyframes symbolPop {
    0% {
        transform: scale(1);
        filter: brightness(1);
    }
    42% {
        transform: translateY(-5px) scale(1.16);
        filter: brightness(1.18) saturate(1.16);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

@keyframes burstParticle {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.16);
    }
}

@keyframes burstHeart {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.72) rotate(-8deg);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.16) rotate(18deg);
    }
}

@keyframes burstRing {
    0% {
        opacity: 0.94;
        transform: translate(-50%, -50%) scale(0.24);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.55);
    }
}

@keyframes burstScore {
    0% {
        opacity: 0;
        transform: translate(-50%, -30%) scale(0.58) rotate(-2deg);
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -70%) scale(1.28) rotate(2deg);
    }
    18% {
        opacity: 1;
        transform: translate(-50%, -56%) scale(0.96) rotate(-1deg);
    }
    30% {
        opacity: 1;
        transform: translate(-50%, -62%) scale(1.08) rotate(0deg);
    }
    72% {
        opacity: 1;
        transform: translate(-50%, -76%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -142%) scale(0.94);
    }
}

@media (max-width: 390px) {
    .slot-hud {
        grid-template-columns: 50px minmax(0, 1fr) 78px;
        gap: 10px;
        min-height: 50px;
        margin-right: 12px;
        margin-left: 12px;
    }

    .slot-hud > div:nth-child(2) {
        width: 44px;
        height: 44px;
    }

    .slot-hud > div:first-child strong {
        font-size: 22px;
    }

    .slot-hud > div:nth-child(3) {
        min-height: 40px;
    }

    .slot-hud > div:nth-child(3) strong {
        font-size: 17px;
    }

    .jackpot-meter {
        grid-template-columns: minmax(0, 1fr);
        margin-right: 14px;
        margin-left: 14px;
    }

    .reel-grid {
        min-height: 190px;
        padding: 9px 8px;
    }

    .symbol {
        width: min(98%, 46px);
        font-size: 25px;
    }

    .symbol small {
        font-size: 23px;
    }

    .spin-button {
        min-height: 68px;
        padding-left: 88px;
    }

    .pull-handle {
        left: 18px;
        width: 50px;
    }

    .pull-knob {
        width: 32px;
        height: 32px;
    }

    .spin-button .pull-label {
        font-size: 18px;
    }

    .slot-global-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Keep the slot screen focused: hide decorative controls, keep live meters in the cabinet. */
.cabinet-top,
.machine-lights,
.reel-actions,
.machine-status,
.slot-lever,
.mission-panel,
.slot-paytable,
.slot-global-panel {
    display: none !important;
}

.slot-stage {
    padding-top: 8px;
}

.slot-machine {
    padding: 0 !important;
}

.slot-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000 !important;
    padding: 18px !important;
    background: rgba(255, 248, 244, 0.82) !important;
}

.slot-overlay-panel {
    width: min(100%, 320px) !important;
    max-height: calc(100vh - 44px);
    overflow: auto;
    border-color: rgba(255, 122, 24, 0.24) !important;
    background: #fff !important;
}

.result-stats div {
    background: #fff8f1 !important;
    border-color: rgba(255, 122, 24, 0.2) !important;
}

.result-stats dt {
    color: #9c5a12 !important;
}

.result-stats dd {
    color: var(--slot-ink) !important;
}

.result-panel button {
    width: 100%;
    min-height: 46px;
}
