#app {
    --violet-950: #140e2b;
    --violet-900: #1d1638;
    --violet-800: #2b2350;
    --violet-700: #3b2f6b;
    --lavender: #b28dcc;
    --pink: #f599c8;
    --neon-pink: #ff5fb0;
    --peach: #f6ac90;
    --sand: #f7cbb1;
    --teal: #76abc7;
    --neon-teal: #5fe3d0;
    --gold: #ffd36e;
    --money: #7cfc8a;
    --chrome: linear-gradient(180deg, #fbf9ff 0%, #cfc8e8 16%, #7f77a3 44%, #efebff 60%, #8c84ae 82%, #d8d2ef 100%);
    --font: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", "WenQuanYi Zen Hei", system-ui, sans-serif;
    --font-display: "Anton", "Arial Black", Impact, var(--font);
    font-family: var(--font);
    color: #fff;
    background: radial-gradient(ellipse at 50% 30%, #6f4f96 0%, var(--violet-900) 70%);
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation
}

#app button {
    font-family: var(--font);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent
}

#app button:disabled {
    cursor: default
}

.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
    pointer-events: none
}

.bg-fallback {
    background: radial-gradient(circle at 50% 46%, rgba(247, 203, 177, .9) 0 12%, transparent 30%), linear-gradient(180deg, #4a3b77, #b28dcc 38%, #f599c8, #76abc7 66%, #2b2350)
}

.bg-tint {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 120% 80% at 50% 45%, #140e2b00 55%, #0c081c8c), linear-gradient(180deg, #1d163852, #1d16380d 18%, #1d163800 40%, #140e2b4d 72%, #140e2b9e)
}

.world {
    position: absolute;
    inset: 0;
    transform-origin: 0 0
}

.house {
    --hx: 50%;
    --hy: calc(var(--stage-y) + var(--stage-h) * .42);
    --hrx: calc(var(--stage-w) * .95);
    --hry: calc(var(--stage-h) * .62);
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(var(--hrx) var(--hry) at var(--hx) var(--hy), rgba(12, 8, 24, 0) 0%, rgba(12, 8, 24, 0) 26%, rgba(12, 8, 24, .16) 44%, rgba(12, 8, 24, .4) 62%, rgba(12, 8, 24, .58) 80%, rgba(12, 8, 24, .64) 100%);
    transition: opacity .7s ease
}

.house.on {
    opacity: 1;
    transition-duration: .45s
}

.spot {
    --px: 50%;
    --py: 50%;
    --prx: 140px;
    --pry: 200px;
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none
}

.spot>* {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .25s ease-out
}

.spot-dark {
    mix-blend-mode: multiply;
    transform-origin: var(--px) var(--py);
    background: radial-gradient(calc(var(--prx) * 1.35) calc(var(--pry) * 1.35) at var(--px) var(--py), rgba(14, 12, 10, 0) 0%, rgba(14, 12, 10, 0) 26%, rgba(14, 12, 10, .23) 44%, rgba(14, 12, 10, .57) 62%, rgba(14, 12, 10, .83) 80%, rgba(14, 12, 10, .92) 100%)
}

.spot-beam {
    mix-blend-mode: screen;
    filter: blur(16px)
}

.spot-beam i {
    position: absolute;
    inset: 0
}

.spot-pool {
    mix-blend-mode: soft-light;
    background: radial-gradient(calc(var(--prx) * 1.2) calc(var(--pry) * 1.2) at var(--px) var(--py), rgba(255, 238, 212, .24) 0%, rgba(255, 238, 212, .12) 50%, rgba(255, 238, 212, 0) 80%)
}

.spot.on>* {
    opacity: 1;
    animation: lampOn .2s linear
}

.spot.on .spot-dark {
    animation: lampOn .2s linear, poolLock .47s .13s ease-out
}

@keyframes lampOn {
    0% {
        opacity: 0
    }
    40% {
        opacity: 1
    }
    60% {
        opacity: .62
    }
    to {
        opacity: 1
    }
}

@keyframes poolLock {
    0%,
    to {
        transform: none
    }
    30% {
        transform: scale(1.06)
    }
}

.rays {
    position: absolute;
    left: 50%;
    top: calc(var(--stage-y) + var(--stage-h) * .5);
    z-index: 1;
    width: 1000px;
    height: 1000px;
    margin: -500px 0 0 -500px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    background: repeating-conic-gradient(from 0deg, rgba(255, 211, 110, .42) 0deg 7deg, transparent 7deg 18deg);
    -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%);
    mask: radial-gradient(circle, #000 18%, transparent 68%)
}

.rays.show {
    animation: rays 2.6s ease-out
}

.rays[data-tone=epic] {
    background: repeating-conic-gradient(from 0deg, rgba(185, 140, 255, .42) 0deg 7deg, transparent 7deg 18deg)
}

@keyframes rays {
    0% {
        opacity: 0;
        transform: rotate(0) scale(.5)
    }
    18% {
        opacity: 1
    }
    to {
        opacity: 0;
        transform: rotate(70deg) scale(1.15)
    }
}

#app.flash-screen:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 31;
    pointer-events: none;
    background: #fff;
    animation: screenFlash .4s ease-out forwards
}

#app.flash-screen[data-flash=gold]:after {
    background: radial-gradient(ellipse at 50% 48%, #fff0bef2, #ffc45099 42%, #ff96282e 80%);
    animation-duration: .55s
}

#app.flash-screen[data-flash=purple]:after {
    background: radial-gradient(ellipse at 50% 48%, #f4eaffeb, #aa78ff8c 42%, #6e3cdc29 80%);
    animation-duration: .5s
}

@keyframes screenFlash {
    0% {
        opacity: .85
    }
    to {
        opacity: 0
    }
}

.fx-layer {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 32;
    pointer-events: none
}

.stage {
    position: absolute;
    z-index: 2;
    left: var(--stage-x);
    top: var(--stage-y);
    width: var(--stage-w);
    height: var(--stage-h);
    display: flex;
    flex-direction: column;
    gap: 8px
}

.stage.hidden {
    visibility: hidden
}

#app.wasted .world,
#app.wasted .judge-screen {
    filter: grayscale(1) brightness(.7) contrast(1.1);
    transition: filter .25s
}

#app.impact {
    background: #0d0e12
}

#app.impact>:not(.speedlines):not(.bigtext) {
    filter: invert(1) grayscale(1) contrast(1.45)
}

.speedlines {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 35;
    display: none;
    pointer-events: none
}

.speedlines.on {
    display: block
}

.white-pop {
    position: absolute;
    inset: 0;
    z-index: 31;
    opacity: 0;
    pointer-events: none;
    background: #fff
}

.hud {
    flex: none;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 8px
}

.hud-chat-icon {
    display: block;
    flex: 0 1 60px;
    min-width: 0;
    height: 60px;
    object-fit: contain;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
    .hud-chat-icon {
        animation: hud-chat-wiggle 3.8s ease-out infinite;
    }
}

@keyframes hud-chat-wiggle {
    0%, 8%, 25%, 100% { transform: none; }
    11% { transform: translateX(-2px) rotate(-7deg) scale(1.05); }
    15% { transform: translateX(2px) rotate(7deg) scale(1.08); }
    19% { transform: translateX(-1px) rotate(-4deg) scale(1.04); }
    22% { transform: rotate(2deg); }
}

.icon-btn {
    flex: none;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .28);
    background: #1d1638b3;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    padding: 0
}

.wallet {
    flex: none;
    height: 42px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    background: #080514c7;
    border: 1px solid rgba(124, 252, 138, .5);
    box-shadow: inset 0 0 14px #7cfc8a2e
}

.wallet.gain {
    animation: walletGain .45s ease-out
}

.wallet.loss {
    animation: walletLoss .45s ease-out
}

.wallet.bump {
    animation: walletGain .25s ease-out
}

.hud .wallet {
    height: 50px;
    box-sizing: border-box;
    padding: 0 11px 0 10px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 3px;
    border: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, .05) .8px, transparent 1.3px) 0 0 / 4px 4px, linear-gradient(180deg, #06120a, #0b1a10);
    box-shadow: 0 0 0 2px #cfc8e8, 0 0 0 3.5px #3d3466, inset 0 4px 10px #000000b3, 0 0 14px #7cfc8a38
}

.led-cap {
    font-family: var(--font-display);
    font-size: 9px;
    line-height: 1;
    letter-spacing: 2px;
    color: #7cfc8a9e
}

.led-row {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 25px;
    color: var(--money);
    filter: drop-shadow(0 0 4px rgba(124, 252, 138, .75))
}

.led-row i {
    font-style: normal;
    font-family: var(--font-display);
    font-size: 18px;
    line-height: 1
}

.hud .wallet.gain {
    animation: creditGain .45s ease-out
}

@keyframes creditGain {
    0% {
        transform: scale(1.14);
        box-shadow: 0 0 0 2px #e9ffe9, 0 0 0 3.5px #3d3466, inset 0 4px 10px #000000b3, 0 0 26px #7cfc8ae6
    }
    to {
        transform: scale(1)
    }
}

@keyframes walletGain {
    0% {
        transform: scale(1.18);
        box-shadow: 0 0 22px #7cfc8ae6
    }
    to {
        transform: scale(1)
    }
}

@keyframes walletLoss {
    0% {
        transform: translate(-4px);
        border-color: #ff6b6b
    }
    40% {
        transform: translate(4px)
    }
    to {
        transform: none
    }
}

.work-btn {
    flex: none;
    height: 50px;
    padding: 0 12px 0 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 211, 110, .7);
    background: linear-gradient(180deg, #4a3008d9, #201304e6);
    color: var(--gold);
    font-size: 15px;
    font-weight: 900;
    white-space: nowrap
}

.work-btn img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    box-shadow: 0 0 0 2px #fff, 0 0 8px #ff5fb0cc
}

.work-btn.pulse {
    animation: pulse .9s ease-in-out infinite
}

.chip {
    height: 32px;
    padding: 0 11px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    white-space: nowrap;
    background: #140e2bb8;
    border: 1px solid rgba(255, 255, 255, .2)
}

.chip b {
    color: var(--gold);
    font-size: 18px;
    font-family: var(--font-display);
    font-weight: 400
}

.band {
    flex: 1 1 auto;
    min-height: 32px;
    position: relative
}

.danmaku {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(-1 * var(--stage-x));
    width: var(--surface-width);
    overflow: hidden;
    pointer-events: none
}

.danmaku span {
    position: absolute;
    left: 0;
    height: 25px;
    line-height: 25px;
    padding: 0 11px;
    border-radius: 13px;
    white-space: nowrap;
    font-size: 14px;
    color: #fff;
    background: #140e2b73;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
    will-change: transform
}

.danmaku span.hot {
    font-weight: 800;
    background: linear-gradient(90deg, #ff5fb0c7, #f6ac90b8)
}

.cabinet {
    --led-a: #ff5fb0;
    --led-b: #ffb35c;
    --led-c: #5fe3d0;
    --led-speed: 2.6s;
    --spill: rgba(255, 95, 176, .38);
    flex: none;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    border-radius: 28px;
    background: var(--chrome);
    box-shadow: inset 0 0 0 1px #ffffff8c, 0 0 0 1px #140a2899, 0 0 26px #ff5fb06b, 0 22px 40px #06031299, 0 54px 70px -24px var(--spill)
}

.cabinet:before,
.cabinet:after {
    content: "";
    position: absolute;
    top: 54px;
    bottom: 54px;
    width: 5px;
    border-radius: 3px;
    pointer-events: none;
    background-image: repeating-linear-gradient(180deg, var(--led-a) 0, var(--led-b) 40px, var(--led-c) 80px, var(--led-a) 120px);
    box-shadow: 0 0 8px var(--led-a), 0 0 16px var(--spill);
    animation: ledFlow var(--led-speed) linear infinite
}

.cabinet:before {
    left: -3px
}

.cabinet:after {
    right: -3px;
    animation-direction: reverse
}

@keyframes ledFlow {
    to {
        background-position: 0 120px
    }
}

.cabinet.spinning {
    --led-speed: .7s
}

.cabinet.hot-gold {
    --led-a: #ffc94d;
    --led-b: #fff1b8;
    --led-c: #ff9b2f;
    --led-speed: .9s;
    --spill: rgba(255, 201, 77, .5)
}

.cabinet.hot-epic {
    --led-a: #b98cff;
    --led-b: #f0e6ff;
    --led-c: #7b4dff;
    --led-speed: 1.1s;
    --spill: rgba(185, 140, 255, .45)
}

.cabinet.glow-legendary {
    animation: cabGold 1.3s ease-out
}

.cabinet.glow-epic {
    animation: cabEpic .9s ease-out
}

.cabinet.glow-legendary:before,
.cabinet.glow-legendary:after {
    animation: ledFlow .4s linear infinite, ledGold 1.3s ease-out
}

.cabinet.glow-epic:before,
.cabinet.glow-epic:after {
    animation: ledFlow .5s linear infinite, ledEpic .9s ease-out
}

@keyframes cabGold {
    0%,
    35% {
        box-shadow: inset 0 0 0 1px #ffffff8c, 0 0 0 2px #ffe08a, 0 0 50px #ffc94df2, 0 22px 40px #06031299, 0 54px 70px -24px #ffc94da6
    }
}

@keyframes cabEpic {
    0%,
    30% {
        box-shadow: inset 0 0 0 1px #ffffff8c, 0 0 0 2px #dcc8ff, 0 0 40px #b98cffe6, 0 22px 40px #06031299, 0 54px 70px -24px #b98cff8c
    }
}

@keyframes ledGold {
    0%,
    45% {
        background-image: repeating-linear-gradient(180deg, #fff6d6 0, #ffc94d 30px, #ff9b2f 60px, #fff6d6 120px);
        box-shadow: 0 0 14px #ffc94d, 0 0 30px #ffc94dd9
    }
}

@keyframes ledEpic {
    0%,
    35% {
        background-image: repeating-linear-gradient(180deg, #f3ebff 0, #b98cff 30px, #7b4dff 60px, #f3ebff 120px);
        box-shadow: 0 0 14px #b98cff, 0 0 26px #b98cffcc
    }
}

.machine {
    flex: none;
    position: relative;
    padding: 9px 10px 10px;
    border-radius: 23px 23px 10px 10px;
    background: radial-gradient(ellipse 90% 30% at 50% 0%, #ff5fb04d, #ff5fb000 70%), linear-gradient(180deg, #3b2b6e, #271c50 42%, #1c1439);
    box-shadow: inset 0 2px #ffffff29, inset 0 0 0 1px #00000073
}

.machine:after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    box-shadow: 0 0 0 4px #ffd36e, 0 0 46px 10px #ffd36ed9
}

.machine.frenzy:after {
    animation: frenzyGlow 1.7s ease-out
}

@keyframes frenzyGlow {
    0%,
    30%,
    60% {
        opacity: 1
    }
    15%,
    45% {
        opacity: .25
    }
    to {
        opacity: 0
    }
}

.machine.jolt {
    animation: jolt .2s ease-out
}

@keyframes jolt {
    0% {
        transform: translateY(0)
    }
    35% {
        transform: translateY(4px) scale(1.005)
    }
    to {
        transform: none
    }
}

.machine.jolt-big {
    animation: joltBig .34s ease-out
}

@keyframes joltBig {
    0% {
        transform: translateY(0)
    }
    18% {
        transform: translateY(9px) scale(1.014)
    }
    42% {
        transform: translateY(-3px)
    }
    68% {
        transform: translateY(2px)
    }
    to {
        transform: none
    }
}

.reel-window.tease {
    animation: teaseShake .09s linear infinite
}

.reel-window.tease:before {
    border: 2px solid #fff;
    animation: teasePulse .18s ease-in-out infinite alternate
}

@keyframes teaseShake {
    0%,
    to {
        transform: translate(0)
    }
    25% {
        transform: translate(-1.5px)
    }
    75% {
        transform: translate(1.5px)
    }
}

@keyframes teasePulse {
    0% {
        box-shadow: 0 0 10px #ffd36e, inset 0 0 8px #ffd36e66
    }
    to {
        box-shadow: 0 0 28px #ff5fb0, inset 0 0 18px #ff5fb0a6
    }
}

.marquee {
    position: relative;
    height: 54px;
    margin: 4px 2px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    background: radial-gradient(ellipse 70% 90% at 50% 115%, #ff5fb061, #ff5fb000 70%), linear-gradient(180deg, #2c0f42, #150823);
    box-shadow: inset 0 0 0 2px #5fe3d0cc, inset 0 0 14px #5fe3d059, 0 0 12px #5fe3d066
}

.marquee:before,
.marquee:after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    height: 8px;
    pointer-events: none;
    background: radial-gradient(circle at 4px 4px, #fffbe6 0 1.5px, #ffd36e 2.3px, #ffd36e00 3.8px) 0 0 / 16px 8px repeat-x, radial-gradient(circle at 4px 4px, #ffe6f3 0 1.5px, #ff5fb0 2.3px, #ff5fb000 3.8px) 8px 0 / 16px 8px repeat-x;
    filter: drop-shadow(0 0 3px rgba(255, 211, 110, .85));
    animation: chase .8s steps(2) infinite
}

.marquee:before {
    top: -4px
}

.marquee:after {
    bottom: -4px;
    animation-direction: reverse
}

.machine.spinning .marquee:before,
.machine.spinning .marquee:after {
    animation-duration: .24s
}

.machine.tease .marquee:before,
.machine.tease .marquee:after,
.machine.frenzy .marquee:before,
.machine.frenzy .marquee:after {
    animation-duration: .09s;
    filter: drop-shadow(0 0 6px #ffd36e) drop-shadow(0 0 10px #ff5fb0)
}

@keyframes chase {
    to {
        background-position: 16px 0, 24px 0
    }
}

.mq-word {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1;
    white-space: nowrap;
    color: #fff4fa;
    text-shadow: 0 0 2px #fff, 0 0 6px #ff5fb0, 0 0 14px #ff5fb0, 0 0 28px rgba(255, 45, 149, .9);
    animation: neonFlicker 7s linear infinite
}

.mq-word:last-child {
    animation-delay: -3.4s
}

@keyframes neonFlicker {
    0%,
    90%,
    92%,
    94.5%,
    to {
        opacity: 1
    }
    91%,
    93.5% {
        opacity: .5
    }
}

.mq-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 6px rgba(255, 95, 176, .75))
}

.gta {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 30px;
    color: transparent;
    -webkit-text-stroke: 1.5px #fff;
    filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 7px var(--neon-pink))
}

.reels {
    position: relative;
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 52px;
    column-gap: 8px
}

.reel-box {
    position: absolute;
    left: -5px;
    right: 55px;
    top: 18px;
    height: 158px;
    border-radius: 16px;
    background: var(--chrome);
    box-shadow: 0 0 0 1px #0a0519b3, 0 6px 14px #00000080, inset 0 0 0 1px #ffffff80;
    pointer-events: none
}

.reel-col {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0
}

.reel-label {
    height: 18px;
    line-height: 18px;
    text-align: center;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 800;
    color: var(--sand)
}

.reel-label .ico {
    font-size: 15px;
    color: #ffe6f2;
    vertical-align: -3px;
    filter: drop-shadow(0 0 4px rgba(255, 95, 176, .8))
}

.payline {
    position: absolute;
    z-index: 2;
    left: -10px;
    right: 50px;
    top: 95.5px;
    height: 3px;
    pointer-events: none
}

.payline:before {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    top: 0;
    height: 3px;
    border-radius: 2px;
    background: #ffd36e;
    box-shadow: 0 0 8px #ffd36e, 0 0 16px #ffd36eb3;
    opacity: 0;
    transition: opacity .2s
}

.payline i {
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    margin-top: -7px;
    border: 7px solid transparent;
    filter: drop-shadow(0 0 4px rgba(255, 77, 94, .95))
}

.payline i:first-child {
    left: 0;
    border-right-width: 0;
    border-left: 10px solid #ff4d5e
}

.payline i:last-child {
    right: 0;
    border-left-width: 0;
    border-right: 10px solid #ff4d5e
}

.payline.win:before {
    opacity: .4
}

.payline.win i {
    filter: drop-shadow(0 0 6px rgba(255, 211, 110, 1))
}

.payline.win i:first-child {
    border-left-color: #ffd36e
}

.payline.win i:last-child {
    border-right-color: #ffd36e
}

.payline.blink:before {
    animation: paylineBlink .32s steps(1) 4
}

@keyframes paylineBlink {
    0% {
        opacity: 1
    }
    50% {
        opacity: .1
    }
}

.payline.jackpot i {
    animation: arrowPulse .3s ease-in-out infinite alternate
}

@keyframes arrowPulse {
    to {
        transform: scale(1.4)
    }
}

.reel-window {
    --fc: var(--neon-pink);
    --rc: 255, 255, 255;
    position: relative;
    height: 148px;
    border-radius: 12px;
    overflow: hidden;
    background: radial-gradient(ellipse 85% 48% at 50% 50%, #3a2f63, #231a45 52%, #120c2a);
    box-shadow: inset 0 0 0 1px #0009, inset 0 10px 18px #00000080, inset 0 -10px 18px #00000080;
    transition: background .25s
}

.reel-window:before {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    top: 26px;
    height: 96px;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1.5px solid transparent;
    z-index: 2;
    pointer-events: none;
    transition: border-color .2s, box-shadow .2s
}

.reel-window:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(180deg, #0c081eeb, #0c081e00 24% 76%, #0c081eeb)
}

.glass {
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(118deg, #ffffff2b, #ffffff0d 27%, #fff0 28% 63%, #ffffff12 64%, #fff0 77%), linear-gradient(180deg, #ffffff21, #fff0 16%)
}

.reel-rays {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 210px;
    height: 210px;
    margin: -105px 0 0 -105px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    background: repeating-conic-gradient(from 0deg, rgba(var(--rc), .6) 0deg 9deg, rgba(var(--rc), 0) 9deg 24deg);
    -webkit-mask: radial-gradient(circle, #000 10%, transparent 62%);
    mask: radial-gradient(circle, #000 10%, transparent 62%);
    transition: opacity .3s
}

.reel-window.charge-epic,
.reel-window.hit-epic {
    --rc: 185, 140, 255
}

.reel-window.charge-legendary,
.reel-window.hit-legendary {
    --rc: 255, 201, 77
}

.reel-window.charge .reel-rays,
.reel-window.hit-epic .reel-rays,
.reel-window.hit-legendary .reel-rays {
    animation: spinRays 9s linear infinite
}

.reel-window.hit-epic .reel-rays {
    opacity: .5
}

.reel-window.hit-legendary .reel-rays {
    opacity: .95;
    animation-duration: 6s
}

.reel-window.charge .reel-rays {
    opacity: 1;
    animation-duration: 1.3s
}

.reel-window.match:before {
    border: 2px solid var(--fc);
    box-shadow: 0 0 14px var(--fc), inset 0 0 14px var(--fc)
}

.reel-window.hit-epic {
    background: radial-gradient(ellipse 85% 48% at 50% 50%, #7b55c8, #3d2b7c 56%, #1f1645)
}

.reel-window.hit-epic:before {
    border: 2px solid #c9a8ff;
    box-shadow: 0 0 16px #b98cfff2, inset 0 0 14px #b98cff8c
}

.reel-window.hit-legendary {
    background: radial-gradient(ellipse 85% 48% at 50% 50%, #9a6c22, #4d306a 58%, #1f1645)
}

.reel-window.hit-legendary:before {
    border: 2px solid var(--gold);
    box-shadow: 0 0 20px #ffc94df2, inset 0 0 16px #ffc94da6;
    animation: legendFrame 1.4s ease-in-out infinite
}

@keyframes legendFrame {
    50% {
        box-shadow: 0 0 30px #ffdc78, inset 0 0 24px #ffc94dd9
    }
}

.reel-window.charge-epic {
    background: radial-gradient(ellipse 85% 52% at 50% 50%, #e6d6ff, #8d62e0 40%, #2a1858)
}

.reel-window.charge-legendary {
    background: radial-gradient(ellipse 85% 52% at 50% 50%, #fff2c4, #ffbf3d 38%, #7a3f12)
}

.reel-window.charge:before {
    border: 2px solid rgb(var(--rc));
    box-shadow: 0 0 18px rgba(var(--rc), .95), inset 0 0 18px rgba(var(--rc), .75);
    animation: chargePulse .2s ease-in-out infinite alternate
}

@keyframes chargePulse {
    0% {
        opacity: .45
    }
    to {
        opacity: 1
    }
}

.reel-window.held:before {
    box-shadow: inset 0 0 12px #5fe3d059
}

.reticle {
    --k: 1;
    --fx: 0px;
    --fy: 0px;
    --bite: 0px;
    position: absolute;
    left: -4px;
    right: -4px;
    top: 19px;
    height: 156px;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transform: translate(var(--fx), var(--fy)) scale(var(--k))
}

.reticle i {
    position: absolute;
    width: 17px;
    height: 17px;
    box-sizing: border-box;
    border: 0 solid var(--neon-teal);
    filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 5px rgba(95, 227, 208, .85))
}

.reticle i:nth-child(1) {
    left: var(--bite);
    top: var(--bite);
    border-width: 3px 0 0 3px;
    border-top-left-radius: 5px
}

.reticle i:nth-child(2) {
    right: var(--bite);
    top: var(--bite);
    border-width: 3px 3px 0 0;
    border-top-right-radius: 5px
}

.reticle i:nth-child(3) {
    left: var(--bite);
    bottom: var(--bite);
    border-width: 0 0 3px 3px;
    border-bottom-left-radius: 5px
}

.reticle i:nth-child(4) {
    right: var(--bite);
    bottom: var(--bite);
    border-width: 0 3px 3px 0;
    border-bottom-right-radius: 5px
}

.lock-glow {
    position: absolute;
    inset: 0;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(180deg, #fff, #dcfffa8c 60%, #dcfffa59)
}

.reel-window.landed {
    animation: thump .26s ease-out
}

@keyframes thump {
    0% {
        transform: translateY(4px) scaleY(.98)
    }
    to {
        transform: none
    }
}

.win-flash {
    position: absolute;
    inset: 0;
    z-index: 4;
    opacity: 0;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 211, 110, .45) 40%, transparent 72%)
}

.reel-window.hit-epic .win-flash {
    background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(196, 155, 255, .45) 40%, transparent 72%)
}

.reel-window.flash .win-flash {
    animation: winFlash .55s ease-out
}

@keyframes winFlash {
    0% {
        opacity: 1;
        transform: scale(.6)
    }
    to {
        opacity: 0;
        transform: scale(1.4)
    }
}

.rarity-tag {
    position: absolute;
    z-index: 6;
    left: 50%;
    top: 26px;
    padding: 2px 7px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .5px;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0)
}

.rarity-tag.legendary {
    color: #3a1d00;
    background: linear-gradient(180deg, #fff3c2, #ffc94d 55%, #e0961a);
    box-shadow: 0 0 10px #ffc94df2, 0 1px #00000073
}

.rarity-tag.epic {
    color: #fff;
    background: linear-gradient(180deg, #e4d4ff, #a678ff 55%, #6c3fd0);
    box-shadow: 0 0 10px #b98cfff2, 0 1px #00000073;
    text-shadow: 0 1px 1px rgba(40, 10, 90, .6)
}

.rarity-tag.show {
    animation: tagIn .45s cubic-bezier(.2, 1.6, .4, 1) forwards
}

@keyframes tagIn {
    0% {
        transform: translate(-50%, -50%) scale(0)
    }
    to {
        transform: translate(-50%, -50%) scale(1)
    }
}

.strip {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    will-change: transform
}

.reel-window.spinning .strip {
    filter: blur(1.3px)
}

.tile {
    position: relative;
    height: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.tile:before {
    content: "";
    position: absolute;
    inset: 2px 3px;
    border-radius: 12px;
    background: var(--card, none) center / 100% 100% no-repeat
}

.tile>* {
    position: relative
}

.tile img {
    width: 66px;
    height: 66px;
    object-fit: contain;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .45))
}

.tile.pop img {
    animation: tilePop .55s cubic-bezier(.2, 1.5, .4, 1)
}

.reel-window.hit-legendary .tile.pop img {
    animation-name: tilePopBig;
    animation-duration: .7s
}

@keyframes tilePop {
    0% {
        transform: scale(1.4);
        filter: brightness(2.2) drop-shadow(0 0 10px #fff)
    }
    to {
        transform: none
    }
}

@keyframes tilePopBig {
    0% {
        transform: scale(1.7) rotate(-6deg);
        filter: brightness(2.8) drop-shadow(0 0 16px #fff)
    }
    60% {
        transform: scale(.94) rotate(1deg)
    }
    to {
        transform: none
    }
}

.tile .sheen {
    position: absolute;
    left: 50%;
    top: 7px;
    width: 66px;
    height: 66px;
    margin-left: -33px;
    pointer-events: none;
    opacity: 0;
    background: linear-gradient(105deg, #fff0 40%, #ffffffe6, #fff0 60%) 100% 0 / 300% 100% no-repeat;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat
}

.reel-window.hit-legendary .tile.center .sheen,
.reel-window.hit-epic .tile.center .sheen {
    opacity: 1;
    animation: sheen 2.6s ease-in-out infinite
}

.reel-window.hit-epic .tile.center .sheen {
    animation-duration: 3.4s
}

@keyframes sheen {
    0% {
        background-position: 100% 0
    }
    45%,
    to {
        background-position: 0% 0
    }
}

.tile .emoji {
    height: 70px;
    line-height: 70px;
    font-size: 46px
}

.tile .cap {
    max-width: calc(100% - 12px);
    height: 16px;
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .95), 0 0 4px rgba(0, 0, 0, .8);
    opacity: 0
}

.tile.center .cap {
    opacity: 1
}

.tile.center[data-rarity=legendary] .cap {
    color: #fff3c2
}

.tile.center[data-rarity=epic] .cap {
    color: #f0e6ff
}

.hold {
    height: 48px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: none;
    transition: transform .08s, filter .2s
}

.hold-art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .5))
}

.hold .on,
.hold.on .off {
    display: none
}

.hold.on .on {
    display: block
}

.hold:not(:disabled) .hold-art.off {
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .5)) drop-shadow(0 0 8px rgba(255, 196, 61, .55))
}

.hold.on .hold-art.on {
    filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .5)) drop-shadow(0 0 12px rgba(95, 227, 208, .85))
}

.hold-ico {
    font-size: 24px;
    color: #ffd36e
}

.hold-ico.on {
    color: var(--neon-teal)
}

.hold:active:not(:disabled) {
    transform: translateY(2px) scale(.97)
}

.hold:disabled {
    filter: grayscale(.85) brightness(.5)
}

.lever {
    --pull: 0;
    --travel: 112px;
    position: relative;
    z-index: 1;
    grid-column: 4;
    grid-row: 1;
    touch-action: none;
    cursor: grab;
    outline: none
}

.lever.grab {
    cursor: grabbing
}

.lever-rod {
    position: absolute;
    left: 50%;
    top: calc(44px + var(--pull) * var(--travel));
    bottom: 26px;
    width: 9px;
    margin-left: -4.5px;
    border-radius: 4.5px;
    background: linear-gradient(90deg, #1d1a28, #6f6a86 30%, #e8e5f4 48%, #8a85a3 64%, #2a2638);
    box-shadow: 0 0 0 1px #00000059, 0 0 8px #ff5fb040
}

.lever-knob {
    position: absolute;
    left: 50%;
    top: calc(10px + var(--pull) * var(--travel));
    width: 40px;
    height: 40px;
    margin-left: -20px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0 4px, #ff9ad0 9px, #ff3d9a 56%, #a3156a);
    box-shadow: 0 4px 10px #00000073, 0 0 16px #ff5fb0cc;
    transform: scale(calc(1 + var(--pull) * .12));
    transform-origin: 50% 85%
}

.lever-knob.has-art {
    top: calc(2px + var(--pull) * var(--travel));
    width: 46px;
    height: 53px;
    margin-left: -23px;
    border-radius: 0;
    background: none;
    box-shadow: none
}

.knob-art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .55)) drop-shadow(0 0 10px rgba(255, 95, 176, .35))
}

.lever-hub {
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 54px;
    height: auto;
    transform: translate(-50%);
    pointer-events: none;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .55))
}

.is-first .lever:not(.disabled) .lever-knob {
    animation: nudge 1.3s ease-in-out infinite
}

.lever.notch .lever-knob {
    animation: knobNotch .11s ease-out
}

@keyframes knobNotch {
    0% {
        transform: scale(1.14, .88);
        filter: brightness(1.45)
    }
    to {
        transform: scale(calc(1 + var(--pull) * .12));
        filter: none
    }
}

@keyframes nudge {
    0%,
    60%,
    to {
        transform: translateY(0)
    }
    30% {
        transform: translateY(12px)
    }
}

.lever-base {
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 42px;
    height: 38px;
    margin-left: -21px;
    border-radius: 11px;
    background: linear-gradient(180deg, #ece7ff, #8d86a8);
    box-shadow: inset 0 -3px #00000040, 0 4px 8px #0006
}

.lever-base:after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 12px;
    margin: -8px 0 0 -6px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #fff, #a49cc4 60%, #5b5379);
    box-shadow: 0 1px 1px #00000080
}

.lever.disabled {
    cursor: default
}

.lever.disabled .lever-knob {
    filter: saturate(.4) brightness(.8)
}

.combo-banner {
    --fc: var(--neon-pink);
    position: absolute;
    left: 50%;
    top: 42px;
    z-index: 6;
    padding: 7px 16px;
    border-radius: 14px;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(90deg, var(--fc), #ffd36e);
    box-shadow: 0 0 22px var(--fc);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(.6)
}

.combo-banner.big {
    font-size: 21px
}

.combo-banner.show {
    animation: banner 1.9s cubic-bezier(.2, .9, .3, 1.2) forwards
}

@keyframes banner {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.5)
    }
    14% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1)
    }
    24% {
        transform: translate(-50%, -50%) scale(1)
    }
    82% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1)
    }
    to {
        opacity: 0;
        transform: translate(-50%, -80%) scale(1)
    }
}

.bigtext {
    position: absolute;
    left: 50%;
    top: calc(var(--stage-y) + var(--stage-h) * .4);
    z-index: 33;
    white-space: nowrap;
    text-align: center;
    font-family: var(--font-display);
    font-size: 66px;
    line-height: 1;
    letter-spacing: 1px;
    color: var(--gold);
    -webkit-text-stroke: 3px #3b0a2e;
    paint-order: stroke fill;
    text-shadow: 0 5px 0 #3b0a2e, 0 0 24px rgba(255, 211, 110, .9);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%)
}

.bigtext small {
    display: block;
    margin-top: 10px;
    font-family: var(--font);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    -webkit-text-stroke: 0;
    text-shadow: 0 2px 0 #3b0a2e, 0 0 12px rgba(255, 211, 110, .9)
}

.bigtext.nice {
    font-size: 56px;
    color: var(--neon-teal);
    text-shadow: 0 5px 0 #0b2a2a, 0 0 22px rgba(95, 227, 208, .9);
    -webkit-text-stroke-color: #0b2a2a
}

.bigtext.epic {
    font-size: 58px;
    color: #dcc8ff;
    text-shadow: 0 5px 0 #26104d, 0 0 26px rgba(185, 140, 255, .95);
    -webkit-text-stroke-color: #26104d
}

.bigtext.epic small {
    text-shadow: 0 2px 0 #26104d, 0 0 12px rgba(185, 140, 255, .95)
}

.viewfinder {
    position: absolute;
    inset: 0;
    z-index: 31;
    display: none;
    pointer-events: none
}

.viewfinder.on {
    display: block
}

.vf-vignette {
    position: absolute;
    inset: 0;
    opacity: .5;
    background: radial-gradient(ellipse 72% 68% at 50% 48%, #0000 42%, #000000d1)
}

.vf-frame {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: visible
}

.vf-edge,
.vf-af {
    fill: none;
    stroke-linecap: square
}

.vf-edge {
    stroke: #ffffff80;
    stroke-width: 2.5
}

.vf-af {
    stroke: #fff;
    stroke-width: 2.5;
    opacity: .85;
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, .6))
}

.vf-af.locked {
    stroke: #e9c77f;
    stroke-width: 3.5;
    opacity: 1
}

.vf-rec {
    position: absolute;
    left: calc(var(--stage-x) + 18px);
    top: calc(var(--stage-y) + 18px);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff453a;
    box-shadow: 0 0 8px #ff453acc
}

.vf-count {
    position: absolute;
    right: calc(100% - var(--stage-x) - var(--stage-w) + 18px);
    bottom: calc(100% - var(--stage-y) - var(--stage-h) + 14px);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 22px;
    letter-spacing: 2px;
    color: #ffffffd9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .8)
}

.vf-flash {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: radial-gradient(ellipse 80% 90% at 50% 45%, #fff 0% 45%, #fafaffdb)
}

.floaters {
    position: absolute;
    inset: 0;
    z-index: 34;
    overflow: hidden;
    pointer-events: none
}

.floater {
    position: absolute;
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1;
    -webkit-text-stroke: 2px #05230b;
    paint-order: stroke fill;
    text-shadow: 0 2px 0 #05230b;
    animation: floatUp .85s ease-out forwards
}

.floater.gain {
    color: var(--money)
}

.floater.spend {
    color: #ff6b6b;
    -webkit-text-stroke-color: #3a0b0b;
    text-shadow: 0 2px 0 #3a0b0b
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translate(-50%, -30%) scale(.6)
    }
    18% {
        opacity: 1;
        transform: translate(-50%, -70%) scale(1.15)
    }
    to {
        opacity: 0;
        transform: translate(-50%, -200%) scale(1)
    }
}

.led {
    display: inline-flex;
    align-items: center;
    line-height: 1
}

.led svg {
    display: block;
    overflow: visible
}

.led .ghost {
    fill: currentColor;
    opacity: .13
}

.led .lit {
    fill: currentColor
}

.meters {
    flex: none;
    padding: 9px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    border-radius: 10px;
    background: radial-gradient(circle, rgba(255, 255, 255, .05) .8px, transparent 1.3px) 0 0 / 4px 4px, linear-gradient(180deg, #0c0720, #130b2b);
    box-shadow: inset 0 0 0 1px #ffffff12, inset 0 8px 16px #000000a6
}

.meter-row {
    height: 24px;
    display: grid;
    grid-template-columns: 28px 1fr 46px;
    align-items: center;
    gap: 8px
}

.m-label {
    white-space: nowrap;
    font-size: 14px;
    font-weight: 800;
    color: #ffbf5e;
    text-shadow: 0 0 6px rgba(255, 181, 71, .55)
}

.bar {
    position: relative;
    height: 12px;
    border-radius: 2px;
    overflow: hidden;
    background: linear-gradient(90deg, #5fe3d0, #ff8fcb 45%, #ff5fb0 70%, #ffc94d);
    -webkit-mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px);
    mask: repeating-linear-gradient(90deg, #000 0 6px, transparent 6px 8px)
}

.bar i {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #2a2342;
    transition: width .55s cubic-bezier(.2, .8, .2, 1)
}

.stars {
    display: flex;
    gap: 4px;
    font-size: 21px;
    line-height: 1
}

.stars i {
    font-style: normal;
    color: #ffffff29;
    -webkit-text-stroke: 1px rgba(0, 0, 0, .5)
}

.stars i.on {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, .8)
}

.stars i.half {
    color: transparent;
    background: linear-gradient(90deg, #fff 50%, #ffffff29 50%);
    -webkit-background-clip: text;
    background-clip: text
}

.stars.hot i.on {
    color: #ffd36e;
    text-shadow: 0 0 10px rgba(255, 211, 110, .9);
    animation: starBlink .7s steps(2) infinite
}

@keyframes starBlink {
    50% {
        color: #fff;
        text-shadow: 0 0 4px rgba(255, 255, 255, .6)
    }
}

.m-num {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 20px;
    color: #ff8fcb;
    filter: drop-shadow(0 0 4px rgba(255, 95, 176, .8))
}

.m-num.brag {
    color: #ff6b6b;
    filter: drop-shadow(0 0 4px rgba(255, 77, 94, .8))
}

.m-num small {
    margin-left: 2px;
    font-size: 12px
}

.status-row {
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
}

.faction-chip {
    --fc: rgba(255, 255, 255, .45);
    flex: 0 1 auto;
    min-width: 0;
    height: 28px;
    padding: 0 10px;
    display: block;
    box-sizing: border-box;
    border-radius: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 26px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 800;
    background: #ffffff14;
    border: 1px solid var(--fc)
}

.faction-chip:before {
    content: "";
    display: inline-block;
    margin-right: 6px;
    vertical-align: 1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--fc);
    box-shadow: 0 0 8px var(--fc)
}

.faction-chip.odds {
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 0;
    background: none
}

.faction-chip.odds:before {
    display: none
}

.faction-chip.odds i {
    padding: 3px 7px;
    border-radius: 9px;
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.1
}

.o-legendary {
    color: #3a1d00;
    background: linear-gradient(180deg, #fff3c2, #ffc94d 60%, #e0961a);
    box-shadow: 0 0 8px #ffc94d99
}

.o-epic {
    color: #fff;
    background: linear-gradient(180deg, #d9c4ff, #9a6bff 60%, #6c3fd0);
    box-shadow: 0 0 8px #b98cff99
}

.o-common {
    color: #e8e4ff;
    background: #ffffff21
}

.status-note {
    flex: none;
    white-space: nowrap;
    font-size: 13px;
    color: #ffffffb8
}

.controls {
    flex: none;
    height: 62px;
    padding: 9px 9px 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    border-radius: 10px 10px 23px 23px;
    background: linear-gradient(180deg, #ffffff1f, #fff0 38%), repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px), linear-gradient(180deg, #3a3550, #1e1b2b);
    box-shadow: inset 0 1px #fff3, inset 0 -2px #00000073
}

.deck-btn {
    position: relative;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .08s, filter .2s
}

.deck-art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .55))
}

.deck-btn.spin .deck-art {
    filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .55)) drop-shadow(0 0 14px rgba(70, 255, 140, .45))
}

.deck-btn.post .deck-art {
    filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .55)) drop-shadow(0 0 14px rgba(255, 60, 90, .45))
}

.deck-btn:active:not(:disabled) {
    transform: translateY(3px) scale(.97)
}

.deck-btn:active:not(:disabled) .deck-art {
    filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .55)) brightness(1.1)
}

.deck-btn:disabled {
    cursor: default;
    filter: grayscale(.9) brightness(.48)
}

.deck-btn.pulse,
.is-first .deck-btn.spin {
    animation: deckPulse 1.2s ease-in-out infinite
}

@keyframes deckPulse {
    50% {
        filter: brightness(1.22) drop-shadow(0 0 10px rgba(255, 255, 255, .45))
    }
}

.deck-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 26px;
    letter-spacing: 2px;
    color: #fff;
    background: linear-gradient(180deg, #7dffb0, #13b85c 55%, #0a7d3c);
    box-shadow: 0 0 0 2px #e9e6f5, 0 4px 0 2px #1c1533
}

.deck-btn.post .deck-fallback {
    background: linear-gradient(180deg, #ff8a9a, #e0203f 55%, #8e0f25)
}

.deck-fallback .ico {
    font-size: 30px
}

.deck-screen {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 9px;
    background: radial-gradient(circle, rgba(255, 255, 255, .05) .8px, transparent 1.3px) 0 0 / 4px 4px, linear-gradient(180deg, #0b0718, #160d2c);
    box-shadow: 0 0 0 2px #cfc8e8, 0 0 0 3.5px #3d3466, inset 0 4px 10px #000000b3
}

.ds-mode {
    position: absolute;
    left: 6px;
    top: 5px;
    font-size: 12px;
    line-height: 0;
    color: var(--neon-teal);
    filter: drop-shadow(0 0 3px rgba(95, 227, 208, .8))
}

.ds-bet {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px
}

.ds-bet small {
    font-family: var(--font-display);
    font-size: 9px;
    line-height: 1;
    letter-spacing: 2px;
    color: #ffbf5ebf
}

.ds-bet .led-row {
    font-size: 21px;
    color: #ffbf5e;
    filter: drop-shadow(0 0 4px rgba(255, 181, 71, .75))
}

.ds-bet .led-row i {
    font-size: 14px
}

.deck-screen.broke .ds-bet .led-row {
    color: #ff4d5e;
    filter: drop-shadow(0 0 4px rgba(255, 77, 94, .85));
    animation: ledBlink .7s steps(2) infinite
}

@keyframes ledBlink {
    50% {
        opacity: .35
    }
}

.ds-pips {
    display: flex;
    gap: 6px
}

.ds-pips i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff24
}

.ds-pips i.on {
    background: var(--neon-teal);
    box-shadow: 0 0 6px var(--neon-teal)
}

.ds-pips.spent i {
    background: #ff4d5e8c
}

.btn {
    position: relative;
    border: 0;
    border-radius: 18px;
    color: #fff;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: transform .08s, box-shadow .08s, filter .2s
}

.btn-main {
    white-space: nowrap;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.15
}

.btn-sub {
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: .88
}

.btn-spin {
    background: linear-gradient(180deg, #ffa3d3, #ff5fb0 48%, #e23d8f);
    box-shadow: 0 5px #9c1f5f, 0 0 20px #ff5fb08c;
    text-shadow: 0 1px 2px rgba(120, 20, 70, .6)
}

.btn-spin.broke {
    color: #3a2300;
    text-shadow: none;
    background: linear-gradient(180deg, #ffe29a, #ffc43d, #e09a12);
    box-shadow: 0 5px #8a5600, 0 0 20px #ffc43d8c
}

.btn-post {
    color: #1b1640;
    background: linear-gradient(180deg, #b0f8ee, #5fe3d0 48%, #2bb5a5);
    box-shadow: 0 5px #1b7b70, 0 0 20px #5fe3d073
}

.btn:active:not(:disabled) {
    transform: translateY(4px);
    box-shadow: 0 1px #0006, 0 0 14px #fff3
}

.btn:disabled {
    filter: grayscale(.8) brightness(.72)
}

.btn.pulse {
    animation: pulse 1.2s ease-in-out infinite
}

@keyframes pulse {
    0%,
    to {
        filter: brightness(1)
    }
    50% {
        filter: brightness(1.18) drop-shadow(0 0 10px rgba(255, 255, 255, .55))
    }
}

.btn.key {
    --key-glass: linear-gradient(180deg, #52f293 0%, #22cc62 42%, #12a046 58%, #0b7f38 100%);
    --key-lift: 0 5px 0 #08431f, 0 10px 18px rgba(6, 2, 22, .55);
    --key-glow: 0 0 18px rgba(82, 242, 147, .3);
    isolation: isolate;
    overflow: hidden;
    border: 3px solid transparent;
    border-radius: 16px;
    color: #fff;
    background: var(--key-glass) padding-box, linear-gradient(180deg, #fff, #d7dcea 22%, #6c738a 54%, #f2f4fb 80%, #9097ad) border-box;
    box-shadow: inset 0 -6px 12px #00481e99, inset 0 1px #ffffffb3, var(--key-lift), var(--key-glow);
    text-shadow: 0 2px 0 #06521f, 0 0 8px rgba(0, 60, 24, .5)
}

.btn.key:before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 2px;
    left: 8px;
    right: 8px;
    height: 44%;
    border-radius: 11px 11px 50% 50%/11px 11px 8px 8px;
    background: linear-gradient(180deg, #ffffffb3, #ffffff14);
    pointer-events: none
}

.btn.key:active:not(:disabled) {
    --key-lift: 0 1px 0 #08431f, 0 3px 8px rgba(6, 2, 22, .5);
    transform: translateY(4px);
    box-shadow: inset 0 -6px 12px #00481e99, inset 0 1px #ffffffb3, var(--key-lift), var(--key-glow)
}

.btn.key .btn-main {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase
}

:lang(zh) .btn.key .btn-main,
:lang(ja) .btn.key .btn-main,
:lang(ko) .btn.key .btn-main,
:lang(ru) .btn.key .btn-main {
    font-family: var(--font);
    font-weight: 900
}

.btn-start:after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 24%;
    background: linear-gradient(90deg, #fff0, #ffffff73, #fff0);
    transform: translate(-130%) skew(-20deg);
    animation: key-sheen 3.2s ease-in-out .8s infinite;
    pointer-events: none
}

@keyframes key-sheen {
    0% {
        transform: translate(-130%) skew(-20deg)
    }
    45%,
    to {
        transform: translate(460%) skew(-20deg)
    }
}

.overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none
}

.overlay.open,
.overlay.leaving {
    display: block
}

.sheet {
    position: absolute;
    left: var(--stage-x);
    top: var(--stage-y);
    width: var(--stage-w);
    height: var(--stage-h);
    box-sizing: border-box;
    display: flex;
    flex-direction: column
}

.title-screen {
    overflow: hidden;
    background: #140e2b
}

.title-fly {
    position: absolute;
    inset: 0;
    animation: creep 14s ease-in-out infinite alternate
}

@keyframes creep {
    0% {
        transform: scale(1)
    }
    to {
        transform: scale(1.045)
    }
}

.title-plate {
    position: absolute;
    inset: 0;
    z-index: 1
}

.title-art {
    position: absolute;
    z-index: 0;
    max-width: none;
    pointer-events: none
}

.portal-logo,
.plate-glow {
    position: absolute;
    display: none;
    pointer-events: none
}

.portal-logo {
    z-index: 0
}

.portal-logo img,
.plate-glow img {
    display: block;
    width: 100%;
    height: 100%
}

.plate-glow {
    z-index: 3;
    opacity: 0;
    mix-blend-mode: screen
}

.plate-glow img {
    filter: brightness(0) invert(1) sepia(1) saturate(7) hue-rotate(-14deg) blur(7px)
}

.plate-dim {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    background: #0b0716
}

.title-screen.portal .portal-logo,
.title-screen.portal .plate-glow {
    display: block
}

.title-screen.leaving {
    background: transparent;
    pointer-events: none
}

.title-screen.leaving .title-fly {
    animation: none
}

.title-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, #0e0920b8, #0e092000 13% 62%, #0e0920d1 74%, #0e0920f5)
}

.title-word {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    white-space: nowrap;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .05em;
    color: #fff;
    -webkit-text-stroke: .1em #2a0a3d;
    paint-order: stroke fill;
    text-shadow: 0 .07em 0 #2a0a3d, 0 0 .35em rgba(255, 95, 176, .9), 0 0 .7em rgba(255, 95, 176, .5)
}

.title-word.w1 {
    letter-spacing: .12em;
    transform: translate(-50%, -100%) rotate(-3deg)
}

.title-word.w2 {
    padding: .18em .42em .22em;
    border-radius: .3em;
    color: #2a0a3d;
    -webkit-text-stroke: 0;
    text-shadow: none;
    background: linear-gradient(180deg, #ffe58f, #ffc43d 55%, #f39a12);
    box-shadow: 0 0 0 .08em #fff, 0 0 0 .16em #2a0a3d, 0 .22em 0 .16em #2a0a3d, 0 0 1em #ffc43db3;
    transform: translate(-50%, -50%) rotate(-8deg);
    animation: wobble 2.4s ease-in-out infinite
}

@keyframes wobble {
    0%,
    to {
        transform: translate(-50%, -50%) rotate(-8deg) scale(1)
    }
    50% {
        transform: translate(-50%, -50%) rotate(-5deg) scale(1.07)
    }
}

.title-sheet {
    z-index: 2;
    align-items: center;
    gap: 8px;
    text-align: center;
    font-size: 14px
}

.title-gap {
    flex: 1 1 auto;
    min-height: 0
}

.title-panel {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px
}

.title-screen.no-art .title-word {
    display: none
}

.title-screen.no-art .title-gap {
    display: flex;
    align-items: center;
    justify-content: center
}

.title-screen.no-art .title-gap:before {
    content: attr(data-name);
    font-size: 40px;
    font-weight: 900;
    text-shadow: 0 0 12px rgba(255, 95, 176, .9)
}

.steps {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px
}

.steps li {
    position: relative;
    padding: 8px 2px 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    border-radius: 14px;
    background: #140e2bc7;
    border: 1px solid rgba(255, 255, 255, .16)
}

.steps li+li:before {
    content: "›";
    position: absolute;
    left: -12px;
    top: 50%;
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
    color: var(--pink);
    transform: translateY(-55%)
}

.steps b {
    font-size: 22px;
    line-height: 1
}

.steps span {
    max-width: 100%;
    text-align: center;
    line-height: 1.15;
    overflow-wrap: anywhere;
    font-size: 13px;
    font-weight: 800;
    color: #fff
}

.btn-start {
    flex: none;
    width: 100%;
    height: 62px;
    animation: key-breathe 1.6s ease-in-out infinite
}

@keyframes key-breathe {
    0%,
    to {
        filter: brightness(1)
    }
    50% {
        filter: brightness(1.1)
    }
}

.btn.btn-start .btn-main {
    gap: 10px;
    font-size: 30px;
    letter-spacing: 1.5px
}

:lang(zh) .btn-start .btn-main,
:lang(ja) .btn-start .btn-main,
:lang(ko) .btn-start .btn-main {
    font-size: 24px;
    letter-spacing: 4px
}

:lang(ru) .btn-start .btn-main {
    font-size: 24px
}

.btn-start .btn-main .ico {
    flex: none;
    box-sizing: content-box;
    width: 15px;
    height: 15px;
    padding: 7px 6px 7px 8px;
    border-radius: 50%;
    font-size: 15px;
    background: #033a1880;
    box-shadow: inset 0 2px 3px #0006, 0 1px #ffffff73;
    filter: drop-shadow(0 1px 0 #06521f)
}

.record {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: #ffffffc7
}

.fine {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #ffffff80
}

.clicker-screen {
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 45%, #5a2f8f, #23164a 55%, #120b28)
}

.clicker-screen.fever {
    background: radial-gradient(ellipse at 50% 45%, #c28a12, #6a2f8f 52%, #1a0f30)
}

.clicker-rays {
    position: absolute;
    left: 50%;
    top: calc(var(--stage-y) + var(--stage-h) * .5);
    width: 1100px;
    height: 1100px;
    margin: -550px 0 0 -550px;
    border-radius: 50%;
    pointer-events: none;
    background: repeating-conic-gradient(from 0deg, rgba(255, 95, 176, .17) 0deg 9deg, transparent 9deg 22deg);
    -webkit-mask: radial-gradient(circle, #000 14%, transparent 64%);
    mask: radial-gradient(circle, #000 14%, transparent 64%);
    animation: spinRays 20s linear infinite
}

.clicker-screen.fever .clicker-rays {
    animation-duration: 3s;
    background: repeating-conic-gradient(from 0deg, rgba(255, 211, 110, .35) 0deg 9deg, transparent 9deg 22deg)
}

@keyframes spinRays {
    to {
        transform: rotate(360deg)
    }
}

.clicker-sheet {
    z-index: 2;
    align-items: center;
    gap: 8px;
    text-align: center
}

.clicker-title {
    margin: 2px 0 0;
    font-size: 22px;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(255, 95, 176, .9), 0 2px 0 #5a1a4a
}

.clicker-sheet .wallet {
    height: auto;
    padding: 4px 20px;
    font-family: var(--font-display);
    font-size: 50px;
    line-height: 1.1;
    letter-spacing: 1px;
    color: var(--money);
    -webkit-text-stroke: 2px #05230b;
    paint-order: stroke fill;
    text-shadow: 0 3px 0 #05230b, 0 0 16px rgba(124, 252, 138, .5)
}

.clicker-goal {
    margin: 0;
    font-size: 15px;
    color: var(--sand)
}

.clicker-goal.ready {
    color: var(--money);
    font-weight: 900
}

.tap-zone {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center
}

.gta-tap {
    width: 240px;
    height: 240px;
    padding: 0;
    border: 0;
    border-radius: 54px;
    background: none;
    touch-action: none;
    outline: none
}

.tap-icon {
    --grow: 1;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 54px;
    transform: scale(var(--grow));
    box-shadow: 0 0 0 5px #fff, 0 0 0 10px var(--neon-pink), 0 0 44px #ff5fb0d9, 0 18px 40px #00000080;
    transition: transform .12s
}

.tap-icon img {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none
}

.tap-icon.pop {
    animation: tapPop .2s ease-out
}

@keyframes tapPop {
    0% {
        transform: scale(calc(var(--grow) * 1.17)) rotate(-4deg);
        filter: brightness(1.3)
    }
    to {
        transform: scale(var(--grow)) rotate(0);
        filter: none
    }
}

.clicker-screen.fever .tap-icon {
    box-shadow: 0 0 0 5px #fff, 0 0 0 10px var(--gold), 0 0 70px #ffd36ef2, 0 18px 40px #00000080
}

.combo-line {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #fffc
}

.combo-line b {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 28px;
    color: #fff
}

.combo-line i {
    font-style: normal;
    font-family: var(--font-display);
    font-size: 26px;
    color: #ffffff80
}

.combo-line i.hot {
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold)
}

.fever-bar {
    position: relative;
    flex: none;
    box-sizing: border-box;
    width: 100%;
    height: 24px;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff1a;
    border: 1px solid rgba(255, 211, 110, .45)
}

.fever-bar i {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, var(--neon-pink), var(--gold));
    box-shadow: 0 0 12px #ffd36eb3;
    transition: width .15s
}

.fever-bar span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 4px;
    text-shadow: 0 1px 2px #000
}

.btn-back {
    flex: none;
    width: 100%;
    height: 56px
}

.btn-back .btn-main {
    font-size: 23px
}

:lang(zh) .btn-back .btn-main,
:lang(ja) .btn-back .btn-main,
:lang(ko) .btn-back .btn-main,
:lang(ru) .btn-back .btn-main {
    font-size: 19px
}

.judge-screen {
    background: #0e0920d6;
    transition: background-color .35s ease-out
}

.judge-screen.verdict {
    background: #0e092052
}

.judge-sheet {
    align-items: center;
    justify-content: center;
    font-size: 16px
}

.judge-card {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 22px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: 24px;
    border: 2px solid rgba(255, 143, 203, .85);
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(180deg, #3f3072, #1f1840);
    box-shadow: 0 0 26px #ff5fb080, 0 18px 40px #00000080;
    transition: opacity .25s, transform .25s
}

.judge-screen.verdict .judge-card {
    opacity: 0;
    transform: scale(.92)
}

.sirens .judge-card {
    animation: sirenGlow .9s linear infinite
}

@keyframes sirenGlow {
    0%,
    to {
        box-shadow: 0 0 34px #ff2a4abf, 0 18px 40px #00000080;
        border-color: #ff4d6d
    }
    50% {
        box-shadow: 0 0 34px #2a6bffbf, 0 18px 40px #00000080;
        border-color: #4d7dff
    }
}

.police {
    position: absolute;
    top: -9px;
    left: 50%;
    display: flex;
    gap: 8px;
    transform: translate(-50%)
}

.police i {
    width: 56px;
    height: 15px;
    border-radius: 8px;
    background: #5a1020
}

.police i+i {
    background: #10205a
}

.sirens .police i:first-child {
    animation: sirenRed .45s steps(2) infinite
}

.sirens .police i:last-child {
    animation: sirenBlue .45s steps(2) infinite
}

@keyframes sirenRed {
    0% {
        background: #ff2a4a;
        box-shadow: 0 0 20px 7px #ff2a4ad9
    }
    50% {
        background: #5a1020;
        box-shadow: none
    }
}

@keyframes sirenBlue {
    0% {
        background: #10205a;
        box-shadow: none
    }
    50% {
        background: #2a6bff;
        box-shadow: 0 0 20px 7px #2a6bffd9
    }
}

.judge-config {
    margin: 0;
    max-width: 100%;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
    color: #ffffffc7
}

.judge-title {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
    text-shadow: 0 0 12px rgba(255, 95, 176, .8)
}

.gauge {
    width: 290px;
    overflow: visible
}

.g-track,
.g-ok,
.g-bad {
    fill: none;
    stroke-width: 22
}

.g-track {
    stroke: #ffffff1f
}

.g-ok {
    stroke: #4fe3a1;
    filter: drop-shadow(0 0 5px rgba(79, 227, 161, .7))
}

.g-bad {
    stroke: #ff4d6d;
    filter: drop-shadow(0 0 5px rgba(255, 77, 109, .7))
}

.g-cap {
    fill: #fff;
    font-size: 14px;
    font-weight: 800
}

.needle line {
    stroke: #fff;
    stroke-width: 5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px #fff)
}

.needle circle {
    fill: var(--gold)
}

.needle-ghosts line {
    stroke: #fff;
    stroke-width: 5;
    stroke-linecap: round;
    opacity: 0
}

.g-tick {
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    opacity: .3
}

.g-tick.major {
    stroke-width: 3
}

.judge-odds {
    margin: 0;
    font-size: 16px
}

.judge-odds b {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 24px;
    color: #ff8aa0
}

.stamp {
    position: absolute;
    left: 50%;
    top: 50%;
    padding: 4px 20px;
    border: 6px solid currentColor;
    border-radius: 16px;
    white-space: nowrap;
    font-size: 52px;
    font-weight: 900;
    letter-spacing: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-12deg) scale(2.2)
}

.stamp.good {
    color: #4fe3a1;
    text-shadow: 0 0 12px rgba(79, 227, 161, .7);
    background: #0e092099
}

.stamp.bad {
    color: #ff4d6d;
    text-shadow: 0 0 12px rgba(255, 77, 109, .7);
    background: #0e092099
}

.stamp.slam {
    animation: slam .32s cubic-bezier(.3, 1.6, .5, 1) forwards
}

@keyframes slam {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) rotate(-12deg) scale(2.4)
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) rotate(-12deg) scale(1)
    }
}

.shake {
    animation: shake .36s ease-in-out
}

@keyframes shake {
    0%,
    to {
        transform: translate(0)
    }
    20% {
        transform: translate(-7px, 3px)
    }
    40% {
        transform: translate(6px, -4px)
    }
    60% {
        transform: translate(-4px, 2px)
    }
    80% {
        transform: translate(3px, -1px)
    }
}

.gta-banner {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--stage-y) + var(--stage-h) * .5);
    z-index: 30;
    padding: 18px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .88) 12%, rgba(0, 0, 0, .88) 88%, transparent)
}

.gta-banner b {
    white-space: nowrap;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 54px;
    line-height: 1;
    letter-spacing: 1px;
    color: #f5c542;
    -webkit-text-stroke: 2.5px #000;
    paint-order: stroke fill;
    text-shadow: 0 4px 0 #000
}

.gta-banner.busted b {
    font-size: 80px;
    color: #e8323c
}

.gta-banner span {
    font-size: 16px;
    font-weight: 800;
    text-shadow: 0 1px 3px #000
}

.gta-banner.show {
    animation: gtaBanner 1.9s ease-out forwards
}

@keyframes gtaBanner {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(1.35)
    }
    12% {
        opacity: 1;
        transform: translateY(-50%) scale(1)
    }
    86% {
        opacity: 1;
        transform: translateY(-50%) scale(1)
    }
    to {
        opacity: 0;
        transform: translateY(-50%) scale(1)
    }
}

.result-screen {
    overflow: hidden;
    background: #000
}

.result-sheet {
    --x-line: #2f3336;
    --x-dim: #71767b;
    --x-blue: #1d9bf0;
    --x-text: #e7e9ea;
    color: var(--x-text);
    font-size: 15px;
    line-height: 1.35
}

.result-screen.pushing {
    box-shadow: 0 -20px 56px #0009
}

.result-screen.pushing:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 5;
    height: 2px;
    background: #ffffff29
}

.result-screen.reveal .x-post>*,
.result-screen.reveal .x-src-note,
.result-screen.reveal .x-reply {
    animation: postIn .42s cubic-bezier(.16, 1, .3, 1) backwards;
    animation-delay: calc(.4s + var(--i, 0) * 55ms)
}

@keyframes postIn {
    0% {
        opacity: 0;
        transform: translateY(14px)
    }
}

.result-screen.reveal .xm {
    animation: photoLand .4s backwards;
    animation-delay: calc(.56s + var(--j, 0) * .14s)
}

@keyframes photoLand {
    0% {
        opacity: 0;
        transform: translateY(-14px) scale(1.06);
        box-shadow: 0 16px 25px -6px #00000024, 0 26px 54px #00000038;
        animation-timing-function: cubic-bezier(.55, .055, .675, .19)
    }
    67% {
        opacity: 1;
        transform: scale(.99);
        box-shadow: 0 2px 3px #00000052, 0 6px 14px #00000017;
        animation-timing-function: ease-out
    }
    to {
        transform: none;
        box-shadow: none
    }
}

.x-top {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--post-top, 0px);
    height: 52px;
    display: flex;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--x-line);
    padding-right: 48px
}

.x-top h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    color: #fff
}

.x-back {
    flex: none;
    width: 48px;
    height: 48px;
    margin-left: -6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: none;
    font-size: 22px
}

.x-back:active {
    background: #e7e9ea1a
}

.x-feed {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--post-top, 0px) + 52px);
    bottom: 64px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-y
}

.x-feed::-webkit-scrollbar {
    display: none
}

.x-post {
    padding: 12px 2px 0;
    border-bottom: 1px solid var(--x-line)
}

.x-author {
    display: flex;
    align-items: center;
    gap: 10px
}

.x-av {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover
}

.x-av.big {
    width: 44px;
    height: 44px
}

.x-av-fb {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    background: hsl(var(--h, 320), 62%, 44%)
}

.x-id {
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.25
}

.x-id b {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    font-weight: 800;
    color: #fff
}

.x-id>span {
    color: var(--x-dim)
}

.x-verified {
    flex: none;
    display: inline-flex;
    font-size: 18px
}

.x-verified.blue {
    color: var(--x-blue)
}

.x-verified.gold {
    color: #e8b339
}

.x-text {
    margin: 12px 0;
    font-size: 17px;
    line-height: 1.42;
    color: var(--x-text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    user-select: text;
    -webkit-user-select: text
}

.x-tag {
    color: var(--x-blue)
}

.x-media {
    position: relative;
    height: 212px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--x-line)
}

.xm {
    position: relative;
    margin: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #16181c
}

.xm:before {
    content: "";
    position: absolute;
    inset: -18%;
    background: var(--card, none) center / cover no-repeat
}

.xm>* {
    position: relative
}

.xm-main {
    grid-row: 1 / span 2
}

.xm-item {
    width: 68%;
    height: 68%;
    object-fit: contain;
    filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5))
}

.xm-main .xm-item {
    width: 84%;
    height: 72%
}

.xm-emoji {
    font-size: 42px
}

.xm .xm-gem {
    position: absolute;
    left: 10px;
    top: 8px;
    width: 22px;
    height: 22px
}

.xm>figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 8px 5px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.x-note {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--x-line);
    border-radius: 16px;
    background: #16181c
}

.x-note h3 {
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 800;
    color: #fff
}

.x-note h3 .ico {
    font-size: 18px;
    color: #ffd400
}

.x-note p {
    margin: 0;
    font-size: 15px
}

.x-note p b {
    color: #ff6b7d
}

.x-note .x-note-foot {
    margin-top: 6px;
    font-size: 13px;
    color: var(--x-dim)
}

.x-analytics {
    margin-top: 12px;
    padding: 10px 12px 12px;
    border: 1px solid var(--x-line);
    border-radius: 16px
}

.x-analytics h3 {
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--x-dim)
}

.x-analytics h3 .ico {
    font-size: 15px
}

.x-analytics em {
    margin-left: auto;
    padding: 1px 8px;
    border-radius: 9px;
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    color: #000;
    background: #ffd400
}

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

.xa-rank {
    min-width: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1px
}

.xa-verdict {
    margin: 0 0 10px;
    font-size: 14px;
    color: var(--x-text)
}

.xa-stamp {
    flex: none;
    width: 104px;
    margin: -4px 0
}

.xa-stamp.good {
    color: #3ddc84
}

.xa-stamp.bad {
    color: #ff485c
}

.xa-stamp img {
    display: block;
    width: 100%;
    height: auto
}

.xa-stamp span {
    display: block;
    padding: 2px 6px;
    border: 3px solid currentColor;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
    transform: rotate(-8deg)
}

.result-screen.reveal .xa-stamp {
    animation: stampOn .42s cubic-bezier(.3, 1.6, .5, 1) 1s backwards
}

@keyframes stampOn {
    0% {
        opacity: 0;
        transform: scale(2.4) rotate(6deg)
    }
    to {
        opacity: 1;
        transform: none
    }
}

.xa-rank span,
.xa-grid span {
    font-size: 13px;
    color: var(--x-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.xa-rank b {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.15;
    color: transparent;
    background: linear-gradient(180deg, #fff3c2, #ffc94d 60%, #e0961a);
    -webkit-background-clip: text;
    background-clip: text
}

.x-post.busted .xa-rank b {
    background: linear-gradient(180deg, #ffb3bd, #ff485c);
    -webkit-background-clip: text;
    background-clip: text
}

.xa-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px
}

.xa-grid p {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0
}

.xa-grid b {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap
}

.xa-grid b.xa-gold {
    color: #ffc94d
}

.xa-grid b.plus {
    color: #00ba7c
}

.x-meta {
    margin: 12px 0;
    color: var(--x-dim);
    font-size: 14px
}

.x-meta b {
    color: #fff;
    font-weight: 800
}

.x-stats {
    margin: 0;
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    border-top: 1px solid var(--x-line);
    font-size: 14px;
    color: var(--x-dim)
}

.x-stats b {
    color: #fff;
    font-weight: 800
}

.x-acts {
    margin: 0;
    padding: 8px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--x-line);
    color: var(--x-dim);
    font-size: 22px
}

.x-src-note {
    margin: 0;
    padding: 7px 2px;
    border-bottom: 1px solid var(--x-line);
    font-size: 12px;
    color: var(--x-dim)
}

.x-replies {
    margin: 0;
    padding: 0;
    list-style: none
}

.x-reply {
    display: flex;
    gap: 10px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--x-line)
}

.xr-body {
    flex: 1;
    min-width: 0
}

.xr-head {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden
}

.xr-head b {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 800;
    color: #fff
}

.xr-head span {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    color: var(--x-dim)
}

.xr-to {
    margin: 0;
    font-size: 13px;
    color: var(--x-dim)
}

.xr-text {
    margin: 2px 0 0;
    overflow-wrap: anywhere
}

.xr-src {
    margin: 3px 0 0;
    font-size: 12px;
    color: var(--x-dim)
}

.xr-acts {
    margin: 6px 0 0;
    display: flex;
    justify-content: space-between;
    max-width: 300px;
    font-size: 12.5px;
    color: var(--x-dim)
}

.xr-acts span {
    display: inline-flex;
    align-items: center;
    gap: 4px
}

.xr-acts .ico {
    font-size: 15px
}

.x-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--x-line)
}

.x-pill {
    flex: none;
    height: 48px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform .08s, background .15s
}

.x-pill.copy {
    padding: 0 13px;
    border: 0;
    color: #0f1419;
    background: #eff3f4
}

.x-pill.swap {
    width: 48px;
    padding: 0;
    color: #eff3f4;
    background: none;
    border: 1px solid #536471;
    font-size: 20px
}

.x-pill:active {
    transform: scale(.96)
}

.x-tabs {
    position: absolute;
    left: var(--stage-x);
    width: var(--stage-w);
    top: calc(var(--stage-y) + var(--stage-h));
    height: var(--post-tabs, 0px);
    display: none;
    align-items: center;
    justify-content: space-around;
    color: #71767b;
    font-size: 24px
}

#app.post-tabs .x-tabs {
    display: flex
}

.is-landscape .x-tabs {
    display: none
}

.btn-retry {
    flex: 1 1 0;
    min-width: 0;
    height: 56px;
    padding: 0 8px;
    border-radius: 999px
}

.btn-retry.key:before {
    top: 3px;
    left: 12px;
    right: 12px;
    height: 42%;
    border-radius: 20px 20px 12px 12px/16px 16px 6px 6px
}

.btn-retry .btn-main {
    gap: 5px;
    font-size: 17px;
    line-height: 1.05;
    white-space: normal;
    text-align: center
}

:lang(zh) .btn-retry .btn-main,
:lang(ja) .btn-retry .btn-main,
:lang(ko) .btn-retry .btn-main,
:lang(ru) .btn-retry .btn-main {
    font-size: 14px;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none
}

.btn-retry .btn-ico-art {
    flex: none;
    width: 26px;
    height: 26px
}

.toast {
    position: absolute;
    left: calc(var(--stage-x) + 2px);
    top: calc(var(--stage-y) + 58px);
    z-index: 40;
    max-width: calc(var(--stage-w) - 60px);
    padding: 10px 14px;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    background: #000c;
    box-shadow: 0 4px 14px #00000073;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .2s, transform .2s
}

.toast.show {
    opacity: 1;
    transform: none
}

img[data-asset]:not([src]) {
    visibility: hidden
}

.art-fb:not(.on) {
    display: none
}

html[lang=zh-TW] #app {
    --font: "PingFang TC", "Noto Sans TC", "Noto Sans CJK TC", "Source Han Sans TC", "Microsoft JhengHei", system-ui, sans-serif
}

html[lang=ja] #app {
    --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP", system-ui, sans-serif
}

html[lang=ko] #app {
    --font: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", system-ui, sans-serif
}

html[lang=en] #app,
html[lang=es] #app,
html[lang=pt] #app,
html[lang=ru] #app {
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif
}

.title-screen[data-cover=portrait] .title-art.wide,
.title-screen[data-cover=wide] .title-art.portrait,
.title-screen.no-art .title-art {
    display: none
}

.title-top {
    flex: none;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-right: 48px
}

.lang-chip {
    flex: none;
    width: 50px;
    height: 50px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff;
    background: #140e2bb8;
    font-size: 22px
}

.lang-chip span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%)
}

.btn-progress {
    display: none
}

.btn-start.loading {
    --key-glass: linear-gradient(180deg, #1f5a38 0%, #164a2d 50%, #0e3620 100%);
    --key-glow: 0 0 0 transparent;
    pointer-events: none;
    animation: none
}

.btn-start.loading:after {
    animation: none;
    opacity: 0
}

.btn-start.loading .btn-progress {
    display: block;
    position: absolute;
    z-index: -2;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    background: linear-gradient(180deg, #52f293, #22cc62 42%, #12a046 58%, #0b7f38);
    box-shadow: 2px 0 10px #aaffcdbf;
    transition: width .15s linear
}

.btn-start.loading .btn-main {
    font-size: 20px
}

:lang(zh) .btn-start.loading .btn-main,
:lang(ja) .btn-start.loading .btn-main,
:lang(ko) .btn-start.loading .btn-main,
:lang(ru) .btn-start.loading .btn-main {
    font-size: 17px;
    letter-spacing: 1px
}

.settings-screen {
    background: #080418bd
}

.settings-sheet {
    top: calc(var(--stage-y) + var(--stage-h) * .5);
    height: auto;
    max-height: var(--stage-h);
    gap: 10px;
    padding: 12px 14px 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, #2a2047, #161030);
    box-shadow: 0 0 0 2px #ffffff29, 0 18px 40px #0009;
    transform: translateY(-50%)
}

.set-head {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.set-head h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 800
}

.set-close {
    width: 50px;
    height: 50px;
    margin-right: -6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #ffffff14;
    font-size: 18px
}

.set-row {
    height: 48px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: #ffffff12;
    font-size: 15px
}

.set-row>span {
    font-size: 20px;
    line-height: 0
}

.set-row b {
    flex: 1;
    text-align: left;
    font-weight: 700
}

.switch {
    width: 44px;
    height: 26px;
    padding: 3px;
    box-sizing: border-box;
    border-radius: 13px;
    background: var(--neon-teal);
    transition: background .15s
}

.switch i {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    transform: translate(18px);
    transition: transform .15s
}

.set-row.off .switch {
    background: #ffffff38
}

.set-row.off .switch i {
    transform: none
}

.set-label {
    margin: 4px 0 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffffb8
}

.lang-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px
}

.lang-grid.busy {
    opacity: .55;
    pointer-events: none
}

.lang-opt {
    height: 50px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    color: #fff;
    background: #ffffff0d;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap
}

.lang-opt.on {
    border-color: var(--neon-teal);
    color: var(--neon-teal);
    background: #5fe3d01f
}

.lang-opt .ico {
    font-size: 15px
}

.is-landscape .settings-sheet {
    left: calc(var(--stage-x) + (var(--stage-w) - min(var(--stage-w), 520px)) / 2);
    width: min(var(--stage-w), 520px)
}

.is-landscape .lang-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

.is-landscape .faction-chip.odds {
    gap: 3px
}

.is-landscape .faction-chip.odds i {
    padding: 2px 5px 2px 3px
}

.is-landscape .lang-opt {
    padding: 0 4px;
    font-size: 14px
}

.ico {
    display: inline-block;
    flex: none;
    width: 1em;
    height: 1em;
    vertical-align: -.14em;
    overflow: visible
}

.icon-btn .ico {
    font-size: 25px;
    vertical-align: middle;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .7))
}

.icon-btn.off {
    color: #ff8a8a
}

.work-btn {
    padding: 0 6px;
    gap: 0
}

.work-cash {
    width: 40px;
    height: 40px;
    margin-left: -6px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45))
}

.work-plus {
    margin-left: 4px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    color: var(--money)
}

.mq-art {
    flex: 1 1 0;
    min-width: 0;
    height: 46px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 95, 176, .55))
}

.mq-logo {
    flex: none
}

.marquee {
    padding: 0 12px
}

.m-label {
    display: flex;
    align-items: center;
    justify-content: center
}

.m-label .ico {
    font-size: 21px;
    color: #ffbf5e;
    filter: drop-shadow(0 0 4px rgba(255, 181, 71, .65))
}

.m-badge {
    width: 27px;
    height: 27px
}

.m-star {
    color: #ffbf5e;
    font-size: 20px
}

.status-note {
    display: inline-flex;
    align-items: center;
    gap: 4px
}

.status-note .ico {
    font-size: 14px;
    color: #ffbf5e
}

.gem {
    display: block;
    flex: none;
    width: 18px;
    height: 18px
}

.gem-dot {
    display: block;
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e8e4ff
}

.gem-dot.legendary {
    background: var(--gold)
}

.gem-dot.epic {
    background: #b98cff
}

.faction-chip.odds i {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 8px 2px 4px
}

.rarity-tag {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding-left: 3px
}

.rarity-tag .gem {
    width: 15px;
    height: 15px
}

.title-word.has-art {
    -webkit-text-stroke: 0;
    text-shadow: none;
    letter-spacing: 0;
    line-height: 0
}

.title-word .tw-art {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(var(--stage-w) * .8);
    max-height: 1.3em;
    filter: drop-shadow(0 6px 10px rgba(20, 5, 40, .6))
}

.title-word.w2.has-art {
    padding: 0;
    border-radius: 0;
    background: none;
    box-shadow: none
}

.title-word.w2 .tw-art {
    max-width: calc(var(--stage-w) * .62);
    max-height: 1.9em
}

.steps .step-art {
    display: block;
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .45))
}

.steps .step-ico {
    font-size: 26px;
    color: #ffd36e
}

.btn .btn-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px
}

.btn .btn-main .ico {
    font-size: .9em
}

.btn-ico-art {
    display: block;
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45))
}

.ct-art {
    width: 36px;
    height: 36px;
    margin-right: 6px;
    vertical-align: middle
}

.clicker-title {
    display: flex;
    align-items: center;
    justify-content: center
}

.judge-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px
}

.jt-art {
    width: 30px;
    height: 30px
}

.jo-art {
    width: 24px;
    height: 24px;
    margin-right: 6px;
    vertical-align: -6px
}

.stamp.has-art {
    padding: 0;
    border: 0;
    line-height: 0
}

.stamp-art {
    display: block;
    width: 236px;
    height: auto;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, .35)) drop-shadow(0 6px 10px rgba(0, 0, 0, .5))
}

.gta-banner b.has-art {
    line-height: 0;
    -webkit-text-stroke: 0;
    text-shadow: none
}

.gta-art {
    display: block;
    width: auto;
    height: 54px;
    max-width: 92vw;
    object-fit: contain
}

.gta-banner.busted .gta-art {
    height: 88px
}

.bigtext.has-art {
    -webkit-text-stroke: 0;
    text-shadow: none
}

.bigtext.has-art {
    width: 340px
}

.bt-art {
    display: block;
    width: 100%;
    height: 96px;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 0 rgba(30, 5, 40, .55)) drop-shadow(0 0 20px rgba(255, 211, 110, .55))
}

.bigtext.epic .bt-art {
    filter: drop-shadow(0 6px 0 rgba(30, 5, 40, .55)) drop-shadow(0 0 20px rgba(185, 140, 255, .65))
}

.bigtext.nice .bt-art {
    height: 86px;
    filter: drop-shadow(0 6px 0 rgba(5, 30, 30, .55)) drop-shadow(0 0 18px rgba(95, 227, 208, .6))
}

.is-landscape .stage {
    display: grid;
    grid-template-columns: 372px minmax(0, 1fr);
    grid-template-rows: 50px minmax(0, 1fr) auto auto;
    column-gap: 14px;
    row-gap: 8px
}

.is-landscape .hud {
    grid-column: 2;
    grid-row: 1
}

.is-landscape .band {
    grid-column: 2;
    grid-row: 2;
    min-height: 0
}

.is-landscape .meters {
    grid-column: 2;
    grid-row: 3
}

.is-landscape .controls {
    grid-column: 2;
    grid-row: 4
}

.is-landscape .cabinet {
    display: contents
}

.is-landscape .cabinet:before,
.is-landscape .cabinet:after {
    display: none
}

.is-landscape .machine {
    grid-column: 1;
    grid-row: 1 / span 4;
    align-self: center;
    border-radius: 24px;
    box-shadow: inset 0 2px #ffffff29, 0 0 0 3px #d8d2ee, 0 0 0 5px #3d3466, 0 0 26px #ff5fb080, 0 16px 34px #0804188c
}

.is-landscape .cabinet.hot-gold .machine,
.is-landscape .cabinet.glow-legendary .machine {
    box-shadow: inset 0 2px #ffffff29, 0 0 0 3px #ffe08a, 0 0 0 5px #7a4a10, 0 0 40px #ffc94dd9, 0 16px 34px #0804188c
}

.is-landscape .cabinet.hot-epic .machine,
.is-landscape .cabinet.glow-epic .machine {
    box-shadow: inset 0 2px #ffffff29, 0 0 0 3px #dcc8ff, 0 0 0 5px #3d2370, 0 0 36px #b98cffcc, 0 16px 34px #0804188c
}

.is-landscape .meters {
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px #ffffff12, inset 0 8px 16px #000000a6, 0 0 0 3px #d8d2ee, 0 0 0 5px #3d3466
}

.is-landscape .controls {
    border-radius: 16px;
    box-shadow: inset 0 1px #ffffff29, 0 0 0 3px #d8d2ee, 0 0 0 5px #3d3466
}

.is-landscape .danmaku {
    left: 0;
    width: 100%;
    border-radius: 14px
}

.is-landscape .rays,
.is-landscape .bigtext {
    left: calc(var(--stage-x) + 186px)
}

.is-landscape .house {
    --hx: calc(var(--stage-x) + 186px);
    --hy: calc(var(--stage-y) + var(--stage-h) * .5);
    --hrx: 540px;
    --hry: calc(var(--stage-h) * .95)
}

.is-landscape .title-shade {
    background: linear-gradient(90deg, #0e092033, #0e092000 28%, #0e092040 46%, #0e0920e6 58%, #0e0920f7)
}

.is-landscape .title-sheet {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 18px;
    align-items: start
}

.is-landscape .title-top {
    grid-column: 2;
    grid-row: 1
}

.is-landscape .title-gap {
    grid-column: 1;
    grid-row: 1 / span 2
}

.is-landscape .title-panel {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    gap: 12px
}

.is-landscape .btn-start {
    height: 56px
}

.is-landscape .clicker-sheet {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
    column-gap: 18px;
    row-gap: 8px;
    align-items: center
}

.is-landscape .tap-zone {
    grid-column: 1;
    grid-row: 1 / span 6;
    height: 100%
}

.is-landscape .clicker-title,
.is-landscape .clicker-sheet .wallet,
.is-landscape .clicker-goal,
.is-landscape .combo-line,
.is-landscape .fever-bar,
.is-landscape .btn-back {
    grid-column: 2
}

.is-landscape .btn-back {
    align-self: end
}

.is-landscape .gta-tap {
    width: 220px;
    height: 220px
}

.is-landscape .clicker-sheet .wallet {
    font-size: 44px;
    justify-self: center
}

.is-landscape .clicker-rays {
    left: calc(var(--stage-x) + var(--stage-w) * .25)
}

.is-landscape .judge-card {
    width: min(100%, 440px);
    padding: 18px 14px 12px;
    gap: 6px
}

.is-landscape .gauge {
    width: 240px
}

.is-landscape .result-sheet {
    left: calc(var(--stage-x) + (var(--stage-w) - min(var(--stage-w), 520px)) / 2);
    width: min(var(--stage-w), 520px)
}

@media(prefers-reduced-motion:reduce) {
    .marquee:before,
    .marquee:after,
    .mq-word,
    .cabinet:before,
    .cabinet:after,
    .reel-rays,
    .tile .sheen,
    .reel-window.charge:before,
    .reel-window.hit-legendary:before,
    .payline.jackpot i,
    .btn.pulse,
    .btn-start,
    .btn-start:after,
    .is-first .deck-btn.spin,
    .deck-btn.pulse,
    .deck-screen.broke .ds-bet .led-row,
    .is-first .lever:not(.disabled) .lever-knob,
    .clicker-rays,
    .title-word.w2,
    .title-fly,
    .spot.on>*,
    .result-screen.reveal .x-post>*,
    .result-screen.reveal .x-src-note,
    .result-screen.reveal .x-reply,
    .result-screen.reveal .xm,
    .stars.hot i.on {
        animation: none
    }
}
/* Prevent focus from scrolling the fixed game surface during screen changes. */
#app { overflow: clip; }

/* Leave the casino machines visible around the portrait cabinet. */
#app:not(.is-landscape) .stage {
    --portrait-stage-width: min(var(--stage-w), calc(var(--surface-width) * .85));
    left: calc((var(--surface-width) - var(--portrait-stage-width)) / 2);
    width: var(--portrait-stage-width);
}
#app:not(.is-landscape) .stage .danmaku { left: calc((100% - var(--surface-width)) / 2); }
#app:not(.is-landscape) .controls {
    height: 66px;
    grid-template-columns: minmax(0, 1fr) minmax(74px, .86fr) minmax(0, 1.1fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 7px;
}
#app:not(.is-landscape) .controls > * { min-height: 0; }
#app:not(.is-landscape) .tile img { width: 72px; height: 72px; max-width: 95%; }
.reel-window.spinning .strip { filter: blur(.55px); }
.tile img { filter: saturate(1.12) contrast(1.05) drop-shadow(0 3px 3px rgba(0,0,0,.48)); }
@media (prefers-reduced-motion: no-preference) {
    #app:not(.is-landscape) .deck-btn.spin:not(:disabled) { animation: spinReadyGlow 2s ease-in-out infinite; }
    #app:not(.is-landscape) .cabinet { --led-speed: 1.75s; }
}
@keyframes spinReadyGlow {
    50% { filter: brightness(1.17) drop-shadow(0 0 8px #53ff97a0); }
}

/* Card art stays crisp while the center caption remains readable. */
.tile img { filter: saturate(1.07) contrast(1.06) drop-shadow(0 3px 3px #000b); }
.tile.center img { position: absolute; top: 3px; }
.tile.center .cap {
    position: absolute;
    bottom: 4px;
    height: auto;
    max-height: 25px;
    width: calc(100% - 10px);
    max-width: none;
    box-sizing: border-box;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    text-overflow: clip;
    padding: 2px 4px 1px;
    border-radius: 0 0 8px 8px;
    background: linear-gradient(transparent, #080615de 45%);
    font-size: 11px;
    line-height: 11px;
    text-align: center;
}
.hit-epic .tile.center::before {
    box-shadow: inset 0 0 0 2px #d09bff, inset 0 0 15px #aa5dff94;
}
.hit-legendary .tile.center::before {
    box-shadow: inset 0 0 0 2px #ffe598, inset 0 0 18px #ffbf52aa;
}
.gta-banner.passed { border-block: 1px solid #60f4ae7a; }
.gta-banner.busted { border-block: 1px solid #ff526789; }
.floater.confirmed-gain {
    padding: 5px 9px;
    border-radius: 8px;
    background: #071f17e8;
    color: #aaffb9;
    font-size: clamp(16px, 5vw, 24px);
}
@media (prefers-reduced-motion: no-preference) {
    .celebrate-triple .reel-window { animation: triple-reel-glow .82s ease-out; }
    .celebrate-jackpot .reel-window { animation: jackpot-reel-glow 1.4s ease-out; }
    .celebrate-jackpot .machine { animation: jackpot-cabinet-glow 1.45s ease-out; }
    .judge-card.verdict-green { animation: judge-approve .9s ease-out; }
    .judge-card.verdict-red { animation: judge-reject .64s ease-out; }
}
@keyframes triple-reel-glow {
    20% { box-shadow: inset 0 0 20px #72f5f6b8, 0 0 12px #72f5f6; }
}
@keyframes jackpot-reel-glow {
    22% { box-shadow: inset 0 0 22px #ffe194c9, 0 0 14px #ffe194; }
    54% { box-shadow: inset 0 0 12px #ffca6775, 0 0 8px #ffca67; }
}
@keyframes jackpot-cabinet-glow {
    24% { filter: brightness(1.20) drop-shadow(0 0 15px #ffcc68ba); }
}
@keyframes judge-approve {
    22% { box-shadow: 0 0 25px #34e69fb3, inset 0 0 12px #34e69f78; }
}
@keyframes judge-reject {
    20%, 46% { transform: translateX(-2px); box-shadow: 0 0 18px #ff315d9c; }
    32% { transform: translateX(2px); }
}
