@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

@font-face {
    font-family: 'TT Neoris';
    src: url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
    font-weight: normal;
    font-style: normal;
}

:root {
    --sports-primary-color: #00c78b;
    --sports-primary-color-hover: #00b17a;
    --sports-grey-50: #f9fafb;
    --sports-grey-100: #f3f4f6;
    --sports-grey-200: #e5e7eb;
    --sports-grey-300: #d1d5db;
    --sports-grey-400: #9ca3af;
    --sports-grey-500: #6b7280;
    --sports-grey-600: #4b5563;
    --sports-grey-700: #374151;
    --sports-grey-800: #1f2937;
    --sports-grey-900: #111827;
    --ui-bg: #ffffff;
    --ui-text: #1f2937;
    --ui-text-secondary: #6b7280;
    --ui-border: #e5e7eb;
}

* {
    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: 10px;
        border-radius: 12px;
        border-width: 2px;
        gap: 8px;
    }
    
    .bonus-section {
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }
    
    .bonus-card {
        flex: 1;
        min-height: 70px;
        padding: 12px;
    }
    
    .bonus-content {
        gap: 8px;
    }
    
    .bonus-title {
        font-size: 13px;
    }
    
    .timer-section {
        min-width: 110px;
        gap: 4px;
        padding: 2px 0;
    }
    
    .timer-display {
        font-size: 24px;
        padding: 8px 14px;
        min-width: 80px;
    }
    
    .timer-label {
        font-size: 9px;
    }
    
    .timer-button {
        font-size: 10px;
        padding: 6px 10px;
    }
}

.widget-container {
    background: transparent;
    border: 2px solid var(--sports-primary-color);
    border-radius: 16px;
    padding: 16px;
    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;
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: stretch;
}

.bonus-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    flex: 1;
    height: 100%;
}

.bonus-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('./bd2c1334e425b4813f5766b139bec.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    padding: 20px;
    flex: 1;
    min-height: 88px;
    box-shadow: 
        0 3px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.bonus-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.bonus-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--sports-primary-color), var(--sports-primary-color-hover));
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 199, 139, 0.25);
    padding: 8px;
}

.gift-image {
    width: 100%;
    height: 100%;
    color: white;
}

.bonus-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bonus-title {
    font-family: 'TT Neoris', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    text-align: center;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 1px 2px rgba(0, 0, 0, 0.9);
}

.timer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    height: 100%;
    min-width: 140px;
    flex-shrink: 0;
    padding: 8px 0;
}

.timer-label {
    font-family: 'TT Neoris', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--ui-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timer-display {
    font-family: 'TT Neoris', 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--sports-primary-color);
    background: linear-gradient(145deg, var(--sports-grey-100), var(--sports-grey-50));
    border-radius: 10px;
    padding: 12px 20px;
    min-width: 100px;
    text-align: center;
    letter-spacing: 0.05em;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 199, 139, 0.15),
        0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(0, 199, 139, 0.3);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-display.expired {
    color: var(--sports-grey-400);
    animation: none;
}

.timer-display:not(.expired) {
    animation: pulse-timer 1s ease-in-out infinite;
}

@keyframes pulse-timer {
    0%, 100% {
        box-shadow: 
            inset 0 1px 3px rgba(0, 0, 0, 0.1),
            0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 0 rgba(0, 199, 139, 0);
    }
    50% {
        box-shadow: 
            inset 0 1px 3px rgba(0, 0, 0, 0.1),
            0 1px 0 rgba(255, 255, 255, 0.1),
            0 0 20px rgba(0, 199, 139, 0.3);
    }
}

.claim-button {
    background: linear-gradient(
        135deg,
        var(--sports-primary-color) 0%,
        var(--sports-primary-color-hover) 100%
    ),
    radial-gradient(
        circle at 50% 0%,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 50%
    );
    background-blend-mode: normal, overlay;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-family: 'TT Neoris', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 2px 6px rgba(0, 199, 139, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: -0.01em;
    width: 100%;
    max-width: 100%;
    height: auto;
    flex-shrink: 0;
}

.claim-button::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.05) 100%
    );
    border-radius: 10px 10px 50% 50%;
    pointer-events: none;
}

.claim-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.4) 40%,
        transparent 70%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    box-shadow: 
        0 0 8px rgba(255, 255, 255, 0.4),
        0 0 16px rgba(255, 255, 255, 0.2);
}

.claim-button:not(:disabled):hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 6px 20px rgba(0, 199, 139, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.claim-button:not(:disabled):active {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 
        0 3px 12px rgba(0, 199, 139, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.claim-button:disabled {
    background: linear-gradient(135deg, var(--sports-grey-400), var(--sports-grey-500));
    color: var(--sports-grey-300);
    cursor: not-allowed;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: none;
}

.claim-button:disabled::before {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.02) 100%
    );
}

.claim-button:disabled::after {
    display: none;
}

.claim-button:not(:disabled):not(:hover) {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 
            0 4px 14px rgba(0, 199, 139, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 4px 20px rgba(0, 199, 139, 0.6),
            0 2px 4px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

.timer-button {
    background: linear-gradient(
        135deg,
        var(--sports-primary-color) 0%,
        var(--sports-primary-color-hover) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    font-family: 'TT Neoris', 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 3px 8px rgba(0, 199, 139, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.timer-button:not(:disabled):hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 4px 12px rgba(0, 199, 139, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.timer-button:not(:disabled):active {
    transform: translateY(0px) scale(1.01);
    box-shadow: 
        0 2px 4px rgba(0, 199, 139, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.timer-button:disabled {
    background: linear-gradient(135deg, var(--sports-grey-400), var(--sports-grey-500));
    color: var(--sports-grey-300);
    cursor: not-allowed;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: none;
}

.timer-button:not(:disabled):not(:hover) {
    animation: pulse-timer-button 2.5s ease-in-out infinite;
}

@keyframes pulse-timer-button {
    0%, 100% {
        box-shadow: 
            0 2px 6px rgba(0, 199, 139, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 2px 10px rgba(0, 199, 139, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}