@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #080b0f;
    color: #f2f5f4;
    font-family: 'Inter', sans-serif;
}


/* =========================================
   PAGE
========================================= */

.pump-page {
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 50px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 24px;
}


/* =========================================
   GAME HEADER
========================================= */

.game-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    margin-bottom: 18px;
}

.game-label {
    color: #69e4a5;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1.4px;

    margin-bottom: 7px;
}

.game-header h1 {
    margin: 0;

    font-size: 30px;
    line-height: 1.1;

    font-weight: 900;
    letter-spacing: -.7px;
}

.game-header p {
    margin: 9px 0 0;

    color: #7e8888;

    font-size: 13px;
    line-height: 1.5;
}


/* =========================================
   ROUND BOX
========================================= */

.round-box {
    min-width: 105px;

    padding: 11px 14px;

    border: 1px solid #20282b;
    border-radius: 10px;

    background: #0d1216;

    text-align: center;
}

.round-box span {
    display: block;

    color: #687274;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1.2px;

    margin-bottom: 4px;
}

.round-box strong {
    color: #e9efed;

    font-size: 14px;
    font-weight: 900;
}


/* =========================================
   PUMP CARD
========================================= */

.pump-card {
    position: relative;

    min-height: 610px;

    overflow: hidden;

    border: 1px solid #20272a;
    border-radius: 16px;

    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(76, 220, 151, .075),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #0d1317,
            #0a0e12
        );

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .22);
}

.pump-card::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    opacity: .25;

    background-image:
        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size: 42px 42px;
}


/* =========================================
   STATUS
========================================= */

.pump-status {
    position: absolute;

    top: 18px;
    left: 20px;

    z-index: 5;

    padding: 7px 10px;

    border-radius: 7px;

    background: #11181c;

    border: 1px solid #232d30;

    color: #7c8889;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1px;
}

.pump-status.active {
    color: #69e4a5;

    border-color: rgba(105,228,165,.25);

    background: rgba(105,228,165,.06);
}

.pump-status.win {
    color: #efd16d;

    border-color: rgba(239,209,109,.25);

    background: rgba(239,209,109,.06);
}

.pump-status.danger {
    color: #ff7777;

    border-color: rgba(255,100,100,.25);

    background: rgba(255,100,100,.06);
}


/* =========================================
   PUMP STAGE
========================================= */

.pump-stage {
    position: relative;

    min-height: 535px;

    padding: 70px 20px 90px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;
}


/* =========================================
   POP TEXT
========================================= */

.pop-text {
    position: absolute;

    top: 115px;

    z-index: 20;

    opacity: 0;
    pointer-events: none;

    color: #ff7272;

    font-size: 28px;
    font-weight: 1000;

    letter-spacing: 1px;

    text-shadow:
        0 0 25px rgba(255,90,90,.25);
}

.pop-text.show {
    animation: popText .7s cubic-bezier(.2,.8,.2,1) forwards;
}

@keyframes popText {

    0% {
        opacity: 0;
        transform: translateY(10px) scale(.65) rotate(-4deg);
    }

    20% {
        opacity: 1;
        transform: translateY(0) scale(1.12) rotate(2deg);
    }

    45% {
        opacity: 1;
        transform: translateY(-3px) scale(1.02) rotate(-1deg);
    }

    100% {
        opacity: 0;
        transform: translateY(-30px) scale(1.12);
    }
}

/* =========================================
   BALLOON
========================================= */

.balloon-wrap {
    position: relative;

    width: 190px;
    height: 250px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform-origin: center bottom;
}

.balloon {
    position: relative;

    width: 115px;
    height: 145px;

    border-radius: 53% 47% 50% 50% / 56% 55% 45% 44%;

    background:
        radial-gradient(
            circle at 34% 27%,
            rgba(255,255,255,.34),
            transparent 9%
        ),
        radial-gradient(
            circle at 38% 38%,
            #7ceab0 0%,
            #52d394 38%,
            #35ad77 75%,
            #27855c 100%
        );

    box-shadow:
        inset -13px -16px 24px rgba(0,0,0,.14),
        inset 10px 10px 22px rgba(255,255,255,.08),
        0 15px 45px rgba(70,215,145,.15);

    transform-origin: center bottom;

    transform: scale(var(--balloon-scale, 1));

    transition:
        transform .12s ease;
}

.balloon::after {
    content: "";

    position: absolute;

    bottom: -10px;
    left: 50%;

    transform: translateX(-50%);

    width: 17px;
    height: 17px;

    background: #36a874;

    clip-path: polygon(
        0 0,
        100% 0,
        75% 100%,
        25% 100%
    );
}

.balloon-shine {
    position: absolute;

    left: 19px;
    top: 18px;

    width: 17px;
    height: 42px;

    border-radius: 50%;

    background: rgba(255,255,255,.18);

    transform: rotate(18deg);

    filter: blur(.4px);
}

.balloon-highlight {
    position: absolute;

    right: 17px;
    top: 31px;

    width: 7px;
    height: 19px;

    border-radius: 50%;

    background: rgba(255,255,255,.11);

    transform: rotate(-18deg);
}


/* =========================================
   BALLOON STATES
========================================= */

.balloon-wrap {
    position: relative;
    z-index: 2;
}

.balloon-wrap.pumping {
    animation: balloonPump .16s ease;
}

@keyframes balloonPump {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.055);
    }

    100% {
        transform: scale(1);
    }
}


/* =========================================
   ВЗРЫВ ШАРА
========================================= */

.balloon.pop {
    animation: balloonPop .38s cubic-bezier(.2,.8,.3,1) forwards;
}

@keyframes balloonPop {

    0% {
        transform: scale(var(--balloon-scale, 1));
        opacity: 1;
        filter: brightness(1);
    }

    25% {
        transform: scale(
            calc(var(--balloon-scale, 1) * 1.13)
        );
        opacity: 1;
        filter: brightness(1.45);
    }

    45% {
        transform: scale(
            calc(var(--balloon-scale, 1) * 1.02)
        );
        opacity: .9;
        filter: brightness(1.8);
    }

    70% {
        transform: scale(.65);
        opacity: .45;
    }

    100% {
        transform: scale(.05);
        opacity: 0;
        filter: brightness(2);
    }
}


/* Вспышка при взрыве */

.balloon-wrap:has(.balloon.pop)::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    transform: translate(-50%, -50%) scale(.2);

    background: radial-gradient(
        circle,
        rgba(255,255,255,.95) 0%,
        rgba(255,120,120,.8) 20%,
        rgba(255,80,80,.35) 45%,
        transparent 72%
    );

    opacity: 0;

    pointer-events: none;

    z-index: 1;

    animation: balloonExplosion .42s ease-out forwards;
}

@keyframes balloonExplosion {

    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.2);
    }

    20% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    55% {
        opacity: .7;
        transform: translate(-50%, -50%) scale(2.1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(3.2);
    }
}


/* Старое состояние больше не используется */

.balloon-wrap.popped {
    animation: none;
}

/* =========================================
   KNOT
========================================= */

.balloon-knot {
    position: absolute;

    bottom: 49px;
    left: 50%;

    transform: translateX(-50%);

    width: 18px;
    height: 14px;

    background: #328f63;

    clip-path: polygon(
        0 0,
        100% 0,
        68% 100%,
        32% 100%
    );
}


/* =========================================
   STRING
========================================= */

.balloon-string {
    position: absolute;

    bottom: 0;
    left: 50%;

    width: 2px;
    height: 53px;

    transform: translateX(-50%);

    background:
        linear-gradient(
            180deg,
            #3e6e5a,
            #273c34
        );

    opacity: .75;
}


/* =========================================
   MULTIPLIER
========================================= */

.multiplier-display {
    margin-top: -8px;

    position: relative;
    z-index: 2;
}

#multiplier {
    display: block;

    color: #f0f5f3;

    font-size: 42px;
    line-height: 1;

    font-weight: 900;

    letter-spacing: -1.8px;

    text-shadow:
        0 0 30px rgba(105,228,165,.12);

    transition:
        color .15s ease,
        transform .12s ease;
}

#multiplier.hot {
    color: #69e4a5;
}

#multiplier.danger {
    color: #ff7474;
}


/* =========================================
   PAYOUT
========================================= */

.payout-display {
    margin-top: 12px;

    color: #697476;

    font-size: 10px;
    font-weight: 700;

    text-align: center;
}

.payout-display strong {
    color: #dbe3e0;

    margin-left: 3px;

    font-size: 12px;
    font-weight: 900;
}


/* =========================================
   PUMP COUNT
========================================= */

.pump-count-display {
    margin-top: 9px;

    color: #596365;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1px;

    text-align: center;
}

.pump-count-display strong {
    color: #7d8989;

    margin-left: 3px;
}


/* =========================================
   INFO BAR
========================================= */

.pump-info {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 76px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid #1c2427;

    background: rgba(9,13,16,.92);

    backdrop-filter: blur(10px);
}

.info-item {
    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    border-right: 1px solid #1c2427;
}

.info-item:last-child {
    border-right: 0;
}

.info-item span {
    color: #596365;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: 1px;

    margin-bottom: 5px;
}

.info-item strong {
    color: #dce4e1;

    font-size: 13px;
    font-weight: 900;
}


/* =========================================
   HISTORY
========================================= */

.history-panel {
    margin-top: 18px;

    padding: 18px;

    border: 1px solid #20272a;
    border-radius: 14px;

    background: #0b1014;
}

.panel-title {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 13px;
}

.panel-title span {
    color: #b7c0be;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1px;
}

.panel-title small {
    color: #4f595b;

    font-size: 9px;
}

.history-list {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.empty-history {
    width: 100%;

    padding: 15px;

    border: 1px dashed #1e272a;
    border-radius: 8px;

    color: #505a5c;

    font-size: 10px;

    text-align: center;
}

.history-item {
    min-width: 78px;

    padding: 9px 10px;

    border-radius: 8px;

    background: #11171b;

    border: 1px solid #20292c;

    text-align: center;
}

.history-item strong {
    display: block;

    font-size: 11px;
    font-weight: 900;

    margin-bottom: 3px;
}

.history-item span {
    color: #697476;

    font-size: 8px;
}

.history-item.win {
    border-color: rgba(105,228,165,.18);
}

.history-item.win strong {
    color: #69e4a5;
}

.history-item.loss {
    border-color: rgba(255,100,100,.15);
}

.history-item.loss strong {
    color: #ff7474;
}


/* =========================================
   CONTROL PANEL
========================================= */

.control-panel {
    align-self: start;

    padding: 20px;

    border: 1px solid #20272a;
    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            #0d1317,
            #0a0f13
        );

    box-shadow:
        0 20px 50px rgba(0,0,0,.18);
}

.control-title {
    color: #707b7c;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1.2px;

    margin-bottom: 10px;
}


/* =========================================
   BET INPUT
========================================= */

.bet-input-wrap {
    height: 47px;

    display: flex;
    align-items: center;

    padding: 0 13px;

    border: 1px solid #242d30;
    border-radius: 9px;

    background: #090e12;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.bet-input-wrap:focus-within {
    border-color: rgba(105,228,165,.35);

    box-shadow:
        0 0 0 3px rgba(105,228,165,.05);
}

.bet-input-wrap > span {
    color: #687375;

    font-size: 13px;
    font-weight: 800;

    margin-right: 7px;
}

.bet-input-wrap input {
    width: 100%;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: #edf3f0;

    font-family: inherit;

    font-size: 14px;
    font-weight: 800;
}

.bet-input-wrap input::-webkit-inner-spin-button,
.bet-input-wrap input::-webkit-outer-spin-button {
    opacity: 0;
}


/* =========================================
   QUICK BETS
========================================= */

.quick-bets {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 7px;

    margin-top: 9px;
}

.quick-bets button {
    height: 34px;

    border: 1px solid #222b2e;
    border-radius: 7px;

    background: #10161a;

    color: #778181;

    font-family: inherit;

    font-size: 9px;
    font-weight: 900;

    cursor: pointer;

    transition:
        background .15s ease,
        color .15s ease,
        border-color .15s ease,
        transform .12s ease;
}

.quick-bets button:hover {
    background: #151d21;

    color: #c5cecb;

    border-color: #303a3d;
}

.quick-bets button:active {
    transform: scale(.97);
}


/* =========================================
   ACTION AREA
   ФИКСИРОВАННАЯ ПОЗИЦИЯ
========================================= */

.action-buttons {
    position: relative;

    width: 100%;
    height: 53px;

    margin-top: 18px;
}


/* =========================================
   START BUTTON
========================================= */

.start-action {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 53px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #69e4a5,
            #49c98b
        ) !important;

    color: #07130d !important;

    font-family: inherit;

    font-size: 11px;
    font-weight: 1000;

    letter-spacing: .3px;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 1;
    visibility: visible;

    box-shadow:
        0 8px 25px rgba(89,217,154,.10),
        inset 0 1px rgba(255,255,255,.22);

    transition:
        opacity .15s ease,
        visibility .15s ease,
        transform .12s ease,
        filter .15s ease,
        box-shadow .15s ease;
}

.start-action.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.start-action:hover {
    filter: brightness(1.07);

    box-shadow:
        0 10px 32px rgba(89,217,154,.16),
        inset 0 1px rgba(255,255,255,.25);
}

.start-action:active {
    transform: scale(.985);
}


/* =========================================
   GAME BUTTONS
========================================= */

.game-actions {
    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 53px;

    display: grid;

    grid-template-columns: 1fr 1fr;
    gap: 9px;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .15s ease,
        visibility .15s ease;
}

.game-actions.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* =========================================
   PUMP BUTTON
========================================= */

#pumpAction {
    width: 100% !important;
    height: 53px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    border-radius: 10px !important;

    background:
        linear-gradient(
            135deg,
            #69e4a5,
            #49c98b
        ) !important;

    color: #07130d !important;

    font-family: inherit !important;

    font-size: 11px !important;
    font-weight: 1000 !important;

    letter-spacing: .3px;

    cursor: pointer !important;

    box-shadow:
        0 8px 25px rgba(89,217,154,.10),
        inset 0 1px rgba(255,255,255,.22) !important;

    transition:
        transform .12s ease,
        filter .15s ease,
        box-shadow .15s ease !important;
}

#pumpAction:hover {
    filter: brightness(1.07) !important;

    box-shadow:
        0 10px 30px rgba(89,217,154,.15),
        inset 0 1px rgba(255,255,255,.25) !important;
}

#pumpAction:active {
    transform: scale(.975) !important;
}

#pumpAction:disabled {
    opacity: .45 !important;

    cursor: default !important;
}


/* =========================================
   CASHOUT BUTTON
========================================= */

#cashoutAction {
    width: 100% !important;
    height: 53px !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    border: 0 !important;
    border-radius: 10px !important;

    background:
        linear-gradient(
            135deg,
            #efd16d,
            #dcb64d
        ) !important;

    color: #171308 !important;

    font-family: inherit !important;

    font-size: 11px !important;
    font-weight: 1000 !important;

    letter-spacing: .3px;

    cursor: pointer !important;

    box-shadow:
        0 8px 25px rgba(231,195,90,.08),
        inset 0 1px rgba(255,255,255,.22) !important;

    transition:
        transform .12s ease,
        filter .15s ease,
        box-shadow .15s ease !important;
}

#cashoutAction:hover {
    filter: brightness(1.07) !important;

    box-shadow:
        0 10px 30px rgba(231,195,90,.13),
        inset 0 1px rgba(255,255,255,.25) !important;
}

#cashoutAction:active {
    transform: scale(.975) !important;
}

#cashoutAction:disabled {
    opacity: .4 !important;

    cursor: default !important;
}


/* =========================================
   RULES
========================================= */

.rules {
    margin-top: 20px;

    padding-top: 18px;

    border-top: 1px solid #1b2326;
}

.rules-title {
    color: #707a7b;

    font-size: 9px;
    font-weight: 900;

    letter-spacing: 1px;

    margin-bottom: 12px;
}

.rule-row {
    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 8px 0;

    border-bottom: 1px solid rgba(255,255,255,.025);
}

.rule-row:last-child {
    border-bottom: 0;
}

.rule-row span {
    color: #687274;

    font-size: 9px;
}

.rule-row strong {
    color: #b8c1bf;

    font-size: 9px;
    font-weight: 800;

    text-align: right;
}


/* =========================================
   NOTIFICATION
========================================= */

.notification {
    position: fixed;

    left: 50%;
    bottom: 25px;

    z-index: 1000;

    min-width: 230px;

    padding: 12px 17px;

    border: 1px solid #273134;
    border-radius: 9px;

    background: #11181c;

    color: #dbe3e0;

    font-size: 10px;
    font-weight: 700;

    text-align: center;

    box-shadow:
        0 15px 40px rgba(0,0,0,.3);

    transform:
        translate(-50%, 20px);

    opacity: 0;
    pointer-events: none;

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.notification.show {
    opacity: 1;

    transform:
        translate(-50%, 0);
}

.notification.success {
    border-color: rgba(105,228,165,.3);
}

.notification.error {
    border-color: rgba(255,100,100,.3);
}


/* =========================================
   SOFT PULSE
========================================= */

.soft-pulse {
    animation: softPulse 1.2s ease-in-out infinite;
}

@keyframes softPulse {
    0%,
    100% {
        box-shadow:
            0 0 0 rgba(105,228,165,0);
    }

    50% {
        box-shadow:
            0 0 25px rgba(105,228,165,.08);
    }
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 950px) {

    .pump-page {
        grid-template-columns: 1fr;
    }

    .control-panel {
        width: 100%;
    }

}


@media (max-width: 600px) {

    .pump-page {
        width: min(100% - 20px, 1380px);

        padding-top: 20px;
    }

    .game-header {
        gap: 15px;
    }

    .game-header h1 {
        font-size: 25px;
    }

    .game-header p {
        font-size: 11px;
    }

    .round-box {
        min-width: 85px;

        padding: 9px 10px;
    }

    .pump-card {
        min-height: 560px;
    }

    .pump-stage {
        min-height: 485px;

        padding-left: 10px;
        padding-right: 10px;
    }

    .balloon-wrap {
        transform: scale(.9);
    }

    #multiplier {
        font-size: 36px;
    }

    .pump-info {
        height: 70px;
    }

    .info-item span {
        font-size: 7px;
    }

    .info-item strong {
        font-size: 11px;
    }

    .control-panel {
        padding: 16px;
    }

}