/* slots.css — ОБНОВЛЕННЫЙ + КРАСИВЫЕ УВЕДОМЛЕНИЯ */

/* ... (ВЕСЬ ПРЕДЫДУЩИЙ КОД ОСТАВЛЯЕМ, КРОМЕ ИЗМЕНЕНИЙ НИЖЕ) ... */
/* Лучше замени файл целиком, чтобы ничего не потерять */

#scaler {
    width: 500px;
    height: 650px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    z-index: 10;
}

#shaker-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.machine-shake {
    animation: shakeHard 0.4s ease-in-out;
}

@keyframes shakeHard {
    0% {
        transform: scale(1);
    }

    20% {
        transform: scale(0.98) translateY(5px) rotate(-1deg);
    }

    40% {
        transform: scale(1.02) translateY(-3px) rotate(1deg);
    }

    60% {
        transform: scale(0.99) translateY(2px);
    }

    100% {
        transform: scale(1);
    }
}

.machine-body {
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    border: 3px solid var(--neon-cyan);
    box-shadow: 0 0 20px var(--neon-cyan), inset 0 0 30px rgba(0, 255, 242, 0.2), 0 30px 60px rgba(0,0,0,0.8);
    position: relative;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.top-decor {
    position: absolute;
    top: -25px;
    width: 60%;
    height: 50px;
    background: var(--glass-bg);
    border: 2px solid var(--neon-pink);
    box-shadow: 0 -5px 20px var(--neon-pink);
    border-radius: 20px 20px 0 0;
    z-index: 20;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5px;
}

    .top-decor::after {
        content: '•••';
        color: var(--neon-pink);
        opacity: 0.3;
        font-size: 14px;
        letter-spacing: 2px;
    }

    .top-decor:hover {
        filter: brightness(1.3);
        top: -30px;
        box-shadow: 0 -5px 30px var(--neon-pink);
    }

    .top-decor:active {
        filter: brightness(0.8);
    }

.logo {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    color: white;
    background: linear-gradient(to right, var(--neon-cyan), #fff, var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
    letter-spacing: 2px;
    pointer-events: none;
}

.screen-container {
    width: 100%;
    height: 250px;
    background: rgba(0, 10, 20, 0.9);
    border-radius: 20px;
    border: 4px solid #333;
    box-shadow: inset 0 0 30px rgba(0, 255, 242, 0.3), 0 0 15px var(--neon-purple);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screen-fx-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.3), rgba(0,0,0,0.3) 2px, transparent 2px, transparent 4px);
    pointer-events: none;
    z-index: 10;
    opacity: 0.5;
}

.screen-fx-glass {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
    z-index: 11;
    pointer-events: none;
}

.laser-line {
    position: absolute;
    top: 50%;
    left: -10%;
    width: 120%;
    height: 10px;
    background: #fff;
    box-shadow: 0 0 20px #ff0000, 0 0 50px #ff0000, 0 0 80px #ff0000;
    z-index: 50;
    opacity: 0;
    transform: scaleX(0);
}

.laser-active {
    animation: laserBlast 0.6s forwards ease-out;
}

@keyframes laserBlast {
    0% {
        transform: scaleX(0);
        opacity: 1;
    }

    50% {
        transform: scaleX(1);
        opacity: 1;
    }

    100% {
        transform: scaleX(1.1);
        opacity: 0;
    }
}

.reels {
    display: flex;
    justify-content: space-evenly;
    width: 95%;
    height: 80%;
    z-index: 5;
}

.reel-col {
    width: 30%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.8), rgba(50,50,50,0.5) 50%, rgba(0,0,0,0.8));
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 242, 0.3);
    overflow: hidden;
    position: relative;
}

.reel-tape {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
    transform: translate3d(0,0,0);
}

.symbol-box {
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

.sym img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
    border-radius: 10px;
}

.sym-text {
    font-size: 80px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

.motion-blur img, .motion-blur.sym-text {
    filter: blur(5px) brightness(1.5);
    transform: scaleY(1.1);
}

.lever-container {
    position: absolute;
    right: -28px;
    top: 55%;
    transform: translateY(-50%);
    z-index: -1;
}

.lever-base {
    width: 45px;
    height: 90px;
    background: linear-gradient(to right, #111, #333);
    border-radius: 0 20px 20px 0;
    border: 2px solid #555;
    border-left: none;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.5);
}

.lever-arm {
    position: absolute;
    bottom: 45px;
    right: 15px;
    width: 12px;
    height: 140px;
    background: linear-gradient(90deg, #999, #fff, #999);
    border-radius: 6px;
    transform-origin: bottom center;
    transition: transform 0.3s cubic-bezier(0.5, 0, 0.5, 1);
    z-index: 1;
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
}

    .lever-arm::before {
        content: '';
        position: absolute;
        bottom: -5px;
        left: -4px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #555;
        box-shadow: inset 0 0 5px #000;
    }

.lever-knob {
    position: absolute;
    top: -35px;
    left: -24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ff4444, #990000);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5), inset 0 5px 10px rgba(255,255,255,0.5);
    cursor: pointer;
    z-index: 10;
}

    .lever-knob:active {
        background: radial-gradient(circle at 35% 35%, #ff0000, #660000);
        transform: scale(0.95);
    }

.lever-pulled {
    transform: rotate(150deg);
}

.controls-panel {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.info-box {
    background: rgba(0,0,0,0.5);
    border: 2px solid var(--neon-cyan);
    padding: 10px 25px;
    border-radius: 50px;
    display: flex;
    gap: 10px;
    align-items: center;
    box-shadow: 0 0 15px var(--neon-cyan);
}

.info-label {
    color: var(--neon-cyan);
    font-size: 14px;
    letter-spacing: 1px;
}

.info-value {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px white;
}

.spin-btn {
    width: 100%;
    padding: 20px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 3px;
    cursor: pointer;
    box-shadow: 0 10px 0 #550055, 0 0 30px var(--neon-pink);
    transition: all 0.1s;
    position: relative;
    overflow: hidden;
}

    .spin-btn:active {
        transform: translateY(10px);
        box-shadow: 0 0 0 #550055, 0 0 50px var(--neon-pink);
    }

    .spin-btn:disabled {
        filter: grayscale(1) brightness(0.5);
        cursor: not-allowed;
        transform: translateY(10px);
        box-shadow: none;
    }

.win-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 40px;
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold), 0 0 40px red;
    z-index: 60;
    pointer-events: none;
    transition: transform 0.3s;
    white-space: nowrap;
}

    .win-message.show {
        transform: translate(-50%, -50%) scale(1);
    }

/* --- АДМИНКА --- */
.admin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.admin-hidden {
    display: none !important;
}

.admin-panel {
    background: rgba(15, 10, 25, 0.95);
    border: 2px solid var(--neon-pink);
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 80vh;
}

.admin-header {
    background: linear-gradient(90deg, #440044, #220022);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--neon-pink);
}

.admin-title {
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

.admin-close {
    background: none;
    border: none;
    color: var(--neon-pink);
    font-size: 32px;
    cursor: pointer;
}

.admin-mode-selector {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: rgba(0,0,0,0.5);
}

.btn-mode {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--neon-cyan);
    background: transparent;
    color: var(--neon-cyan);
    font-weight: bold;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

    .btn-mode.active {
        background: var(--neon-cyan);
        color: black;
        box-shadow: 0 0 15px var(--neon-cyan);
    }

.admin-body {
    padding: 15px;
    overflow-y: auto;
}

.admin-symbol-row {
    background: rgba(255,255,255,0.03);
    border: 1px solid #333;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.url-input-container {
    display: none;
    margin-top: 5px;
}

    .url-input-container.show {
        display: block;
    }

.admin-input {
    width: 100%;
    background: #050505;
    border: 1px solid #444;
    color: var(--neon-cyan);
    padding: 8px;
    box-sizing: border-box;
    border-radius: 6px;
    font-size: 14px;
}

.btn-edit-img {
    background: #333;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
}

    .btn-edit-img:hover {
        background: var(--neon-purple);
    }

.admin-footer {
    padding: 15px;
    background: #080508;
    text-align: right;
    display: flex;
    justify-content: space-between;
}

.btn-admin-save {
    background: var(--neon-cyan);
    color: black;
    border: none;
    padding: 10px 20px;
    font-weight: 900;
    border-radius: 8px;
    cursor: pointer;
}

.btn-admin-reset {
    background: transparent;
    color: #ff4444;
    border: 1px solid #ff4444;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}

/* --- СТИЛИ ДЛЯ ОТОБРАЖЕНИЯ ПРОЦЕНТОВ --- */
.chance-display {
    color: var(--gold);
    font-weight: bold;
    font-size: 14px;
    margin-left: 10px;
}

/* --- ВСПЛЫВАЮЩЕЕ УВЕДОМЛЕНИЕ (TOAST) --- */
#gameToast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 255, 242, 0.9);
    color: black;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: 0 0 20px var(--neon-cyan);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

    #gameToast.toast-visible {
        opacity: 1;
        transform: translateX(-50%) translateY(10px);
    }

    #gameToast.toast-hidden {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

/* --- ОКНО ПИН-КОДА --- */
.pin-panel {
    background: #000;
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.4);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    width: 300px;
    animation: slideUp 0.3s ease-out;
}

.pin-title {
    color: var(--neon-pink);
    font-weight: 900;
    font-size: 20px;
    margin-bottom: 5px;
    letter-spacing: 2px;
}

.pin-subtitle {
    color: #fff;
    font-size: 12px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.pin-input {
    width: 100%;
    background: #111;
    border: 2px solid #333;
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    letter-spacing: 10px;
    margin-bottom: 20px;
    outline: none;
    transition: all 0.3s;
}

    .pin-input:focus {
        border-color: var(--neon-cyan);
        box-shadow: 0 0 15px rgba(0, 255, 242, 0.3);
    }

.pin-buttons {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.btn-pin-submit {
    flex: 1;
    padding: 12px;
    background: var(--neon-cyan);
    border: none;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
}

.btn-pin-cancel {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: 1px solid #555;
    color: #aaa;
    border-radius: 8px;
    cursor: pointer;
}

.shake-error {
    animation: shakeError 0.4s ease-in-out;
    border-color: red !important;
}

@keyframes shakeError {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}
