:root {
    --v66-orange: #ff4b0b;
    --v66-orange-dark: #d93600;
    --v66-gold: #ffc83d;
    --v66-brown: #2b140c;
    --v66-background: #f3f3f3;
    --v66-border: #eeeeee;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

button:focus-visible, a:focus-visible {
    outline: 3px solid var(--v66-gold);
    outline-offset: 4px;
}

.brand { min-width: 0; }
.pusher-status { line-height: 1.5; overflow-wrap: anywhere; }

@media (max-width: 420px) {
    .pusher-header { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .brand { order: -1; flex-basis: 100%; justify-content: center; }
    .pusher-header .back-button { margin-right: auto; }
    .pusher-game { padding-right: 10px; padding-left: 10px; }
}

body {
    min-height: 100vh;
    padding: 28px 16px;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--v66-brown);
    background:
        radial-gradient(
            circle at top right,
            rgba(255, 75, 11, 0.1),
            transparent 32%
        ),
        var(--v66-background);
}

.pusher-container {
    width: 100%;
    max-width: 1150px;
    min-height: calc(100vh - 56px);
    margin: 0 auto;
    overflow: hidden;
    background: white;
    border: 1px solid var(--v66-border);
    border-radius: 24px;
    box-shadow: 0 20px 55px rgba(60, 30, 15, 0.14);
}

.pusher-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 24px;
    border-bottom: 3px solid var(--v66-orange);
}

.back-button {
    color: var(--v66-orange-dark);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    padding: 8px 13px;
    color: white;
    font-size: 22px;
    font-weight: 900;
    font-style: italic;
    background: linear-gradient(
        135deg,
        var(--v66-gold),
        var(--v66-orange)
    );
    border-radius: 9px;
    box-shadow: 0 5px 12px rgba(255, 75, 11, 0.25);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 14px;
    letter-spacing: 1.5px;
}

.brand small {
    margin-top: 3px;
    color: #888888;
    font-size: 9px;
    letter-spacing: 1px;
}

.chance-box {
    flex-shrink: 0;
    padding: 9px 14px;
    color: var(--v66-orange-dark);
    font-size: 13px;
    font-weight: 700;
    background: #fff0e9;
    border: 1px solid rgba(255, 75, 11, 0.3);
    border-radius: 999px;
}

.pusher-intro {
    padding: 30px 20px;
    color: white;
    text-align: center;
    background:
        radial-gradient(
            circle at center,
            rgba(255, 225, 105, 0.27),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            var(--v66-orange),
            #ff7900
        );
}

.pusher-intro span {
    color: #fff1b7;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 4px;
}

.pusher-intro h1 {
    margin: 8px 0 9px;
    font-size: clamp(32px, 6vw, 50px);
    line-height: 1;
    text-shadow: 0 4px 10px rgba(90, 25, 0, 0.25);
}

.pusher-intro p {
    color: #fff7f2;
    font-size: 15px;
}

.pusher-game {
    padding: 28px 20px 35px;
    text-align: center;
    background:
        radial-gradient(
            circle at center,
            rgba(255, 185, 35, 0.14),
            transparent 48%
        ),
        #1e0d07;
}

.machine-information {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(100%, 760px);
    margin: 0 auto 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 204, 70, 0.28);
    border-radius: 16px;
}

.machine-information div {
    padding: 13px 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.machine-information div:last-child {
    border-right: 0;
}

.machine-information small,
.machine-information strong {
    display: block;
}

.machine-information small {
    margin-bottom: 6px;
    color: #bca89d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.machine-information strong {
    color: var(--v66-gold);
    font-size: 15px;
}

.coin-pusher-machine {
    position: relative;
    width: min(100%, 820px);
    margin: 0 auto 24px;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            rgba(255, 154, 29, 0.12),
            transparent 30%
        ),
        #170805;
    border: 6px solid #f58b13;
    border-radius: 30px;
    box-shadow:
        inset 0 0 45px rgba(255, 151, 25, 0.15),
        0 20px 35px rgba(0, 0, 0, 0.28);
}

#coinPusherCanvas {
    display: block;
    width: 100%;
    height: auto;
}

.machine-glass {
    position: absolute;
    z-index: 5;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            115deg,
            rgba(255, 255, 255, 0.15),
            transparent 22%,
            transparent 67%,
            rgba(255, 255, 255, 0.05)
        );
    border-radius: 23px;
}

.reward-tray {
    position: absolute;
    z-index: 6;
    right: 21%;
    bottom: 12px;
    left: 21%;
    padding: 10px;
    color: #ffd862;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    background:
        linear-gradient(
            180deg,
            #3b190e,
            #160704
        );
    border: 2px solid #ff9d1b;
    border-radius: 8px 8px 18px 18px;
    box-shadow:
        inset 0 7px 12px rgba(0, 0, 0, 0.6),
        0 0 16px rgba(255, 156, 25, 0.25);
}

.position-controls p {
    margin-bottom: 12px;
    color: #c8b4a9;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.position-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.position-button {
    padding: 10px 20px;
    color: #c9b5aa;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    background: #33160d;
    border: 1px solid #713019;
    border-radius: 999px;
    transition: 0.2s ease;
}

.position-button:hover,
.position-button.active {
    color: white;
    background: var(--v66-orange);
    border-color: var(--v66-orange);
    box-shadow: 0 7px 15px rgba(255, 75, 11, 0.25);
}

.position-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.drop-coin-button {
    padding: 15px 32px;
    color: white;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    background: linear-gradient(
        135deg,
        var(--v66-orange),
        var(--v66-orange-dark)
    );
    border: 0;
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(255, 75, 11, 0.28);
    transition: 0.2s ease;
}

.drop-coin-button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.drop-coin-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.pusher-status {
    min-height: 20px;
    margin-top: 14px;
    color: #c8b4a9;
    font-size: 13px;
}

.pusher-rules {
    padding: 30px 22px;
    text-align: center;
}

.pusher-rules h2 {
    margin-bottom: 20px;
    font-size: 22px;
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
}

.rules-grid div {
    padding: 18px 14px;
    background: #fff8f3;
    border: 1px solid #ffe0cf;
    border-radius: 15px;
}

.rules-grid span {
    display: grid;
    width: 30px;
    height: 30px;
    margin: 0 auto 10px;
    place-items: center;
    color: white;
    font-size: 13px;
    font-weight: 900;
    background: var(--v66-orange);
    border-radius: 50%;
}

.rules-grid p {
    color: #777777;
    font-size: 12px;
    line-height: 1.5;
}

.pusher-footer {
    padding: 18px;
    color: #888888;
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
    border-top: 1px solid var(--v66-border);
}

.result-modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(20, 8, 3, 0.76);
    backdrop-filter: blur(6px);
}

.result-modal.show {
    display: grid;
}

.result-card {
    width: min(100%, 390px);
    padding: 32px 25px;
    text-align: center;
    background: white;
    border: 3px solid var(--v66-gold);
    border-radius: 25px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.result-machine-icon {
    display: grid;
    width: 78px;
    height: 78px;
    margin: 0 auto 18px;
    place-items: center;
    color: #8e4100;
    font-size: 19px;
    font-weight: 900;
    font-style: italic;
    background: radial-gradient(
        circle at 35% 28%,
        #fffbd0,
        #ffc52f 50%,
        #d66c00
    );
    border: 6px solid #ff9e17;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(255, 154, 20, 0.3);
}

.result-label {
    color: var(--v66-orange);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3px;
}

.result-card h2 {
    margin: 10px 0;
    font-size: 27px;
}

.reward-amount {
    margin: 16px 0;
    color: var(--v66-orange-dark);
    font-size: 43px;
    font-weight: 900;
}

.result-card > p:last-of-type {
    color: #777777;
    font-size: 13px;
}

#pusherCloseResultButton {
    width: 100%;
    margin-top: 22px;
    padding: 13px;
    color: white;
    font-weight: 900;
    cursor: pointer;
    background: var(--v66-orange);
    border: 0;
    border-radius: 999px;
}

@media (max-width: 700px) {
    body {
        padding: 0;
    }

    .pusher-container {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }

    .pusher-header {
        padding: 14px 12px;
    }

    .brand small {
        display: none;
    }

    .position-button {
        padding: 9px 14px;
    }

    .reward-tray {
        right: 15%;
        left: 15%;
        padding: 7px;
        font-size: 8px;
    }

    .rules-grid {
        grid-template-columns: 1fr;
    }
}
