@import "https://senoval.cdn.sports.ru/static-resources/fonts/roboto.css";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

@font-face {
    font-family: 'TT Neoris';
    src: url('https://static.sports.ru/fonts/TTNeoris-DemiBold.woff2') format('woff2'),
         url('https://static.sports.ru/fonts/TTNeoris-DemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --sports-primary-color: #00c78b;
    --sports-primary-color-hover: #21a67e;
    --sports-grey-100: #d8d8d8;
    --sports-grey-50: #efefef;
    --ui-bg: #fff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'TT Neoris', 'Inter', sans-serif;
    background: inherit;
}

.container {
    padding: 0;
    margin: 0;
    background: transparent;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .widget-container {
        width: 100%;
        min-width: 280px;
        height: 100px;
        padding: 8px;
        border-radius: 12px;
        border-width: 2px;
    }
    
    .slot-machine {
        gap: 8px;
    }
    
    .slot-frame {
        border-radius: 8px;
        padding: 4px;
    }
    
    .slot-window {
        border-radius: 6px;
    }
    
    .slot-sector {
        height: 24px;
        padding: 2px 6px;
    }
    
    .sector-logo {
        height: 18px;
        max-width: 60px;
    }
    
    .sector-freebet {
        font-family: 'TT Neoris', 'Inter', sans-serif;
        font-size: 10px;
        font-weight: 600;
        margin-left: 2px;
        letter-spacing: -0.01em;
    }
    
    .spin-button {
        width: 55px;
        height: 55px;
        font-size: 11px;
    }
    
    .pointer-arrow-left {
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-left: 10px solid var(--sports-primary-color);
    }
    
    .pointer-arrow-right {
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-right: 10px solid var(--sports-primary-color);
    }
    
    .slot-pointer-left {
        left: 4px;
    }
    
    .slot-pointer-right {
        right: 4px;
    }
}

.widget-container {
    background: transparent;
    border: 2px solid var(--sports-primary-color);
    border-radius: 16px;
    padding: 12px;
    width: 100%;
    max-width: 600px;
    height: 120px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 0 1px rgba(0, 199, 139, 0.3),
        0 0 20px rgba(0, 199, 139, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin: 0;
    box-sizing: border-box;
}

.slot-machine {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 100%;
}

.slot-frame {
    background: linear-gradient(145deg, var(--sports-grey-100), var(--sports-grey-50));
    border: none;
    border-radius: 12px;
    padding: 6px;
    position: relative;
    flex: 1;
    height: 100%;
}

.slot-window {
    background: var(--ui-bg);
    border-radius: 8px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slot-drum {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform 3.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-height: 100%; /* Обеспечиваем минимальную высоту */
}

.slot-sector {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--sports-grey-100);
    background: var(--ui-bg);
    position: relative;
    padding: 4px 8px;
}

.slot-sector:nth-child(even) {
    background: var(--sports-grey-50);
}

.sector-logo {
    height: 22px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    flex-shrink: 0;
}

.sector-freebet {
    font-family: 'TT Neoris', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--sports-primary-color);
    text-align: right;
    white-space: nowrap;
    margin-left: 4px;
    letter-spacing: -0.02em;
}

.slot-pointer-left {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.slot-pointer-right {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.pointer-arrow-left {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid var(--sports-primary-color);
}

.pointer-arrow-right {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 12px solid var(--sports-primary-color);
}

.spin-button {
    background: 
        linear-gradient(145deg, var(--sports-primary-color) 0%, var(--sports-primary-color-hover) 100%),
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    color: white;
    font-family: 'TT Neoris', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: -0.01em;
    box-shadow: 
        0 6px 20px rgba(0, 199, 139, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.spin-button::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50%;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

.spin-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.2),
        0 0 0 4px rgba(255, 255, 255, 0.1);
    z-index: 2;
}

.spin-button:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(0, 199, 139, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.spin-button:hover::after {
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.3),
        0 0 0 6px rgba(255, 255, 255, 0.1),
        0 0 8px rgba(255, 255, 255, 0.5);
}

.spin-button:active {
    transform: scale(0.98) translateY(0px);
    box-shadow: 
        0 4px 15px rgba(0, 199, 139, 0.4),
        inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.spin-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0, 199, 139, 0.2);
    filter: grayscale(0.3);
}

.spin-button:disabled::after {
    opacity: 0.3;
}

/* Анимация пульсации при готовности */
@keyframes pulse {
    0%, 100% { 
        box-shadow: 
            0 6px 20px rgba(0, 199, 139, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }
    50% { 
        box-shadow: 
            0 6px 20px rgba(0, 199, 139, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    }
}

.spin-button:not(:disabled):not(:hover) {
    animation: pulse 2s ease-in-out infinite;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.popup {
    background: white;
    padding: 12px 16px 10px 16px;
    border-radius: 12px;
    text-align: center;
    max-width: 180px;
    max-height: 90px;
    width: 60%;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-bonus {
    margin-bottom: 12px;
    font-family: 'TT Neoris', 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--sports-primary-color);
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.0;
}

.claim-button {
    background: linear-gradient(135deg, var(--sports-primary-color), var(--sports-primary-color-hover));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-family: 'TT Neoris', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 8px rgba(0, 199, 139, 0.3);
    letter-spacing: -0.01em;
}

.claim-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 199, 139, 0.4);
}

.claim-button:active {
    transform: translateY(0px);
    box-shadow: 0 2px 6px rgba(0, 199, 139, 0.3);
}