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

body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.splash-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.splash-logo {
    margin-bottom: 40px;
}

.splash-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 0px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.splash-title {
    font-size: 42px;
    font-weight: 500;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Форма ввода кода */
.referral-form {
    width: 100%;
    max-width: 300px;
    margin-top: 20px;
}

.referral-form.hidden {
    display: none;
}

.referral-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
}

.referral-input {
    width: 100%;
    padding: 16px 20px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.referral-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 4px;
}

.referral-input:focus {
    border-color: #e94560;
    background: rgba(255, 255, 255, 0.15);
}

.referral-error {
    font-size: 13px;
    color: #ff6b6b;
    margin-top: 10px;
    min-height: 20px;
}

.referral-error.hidden {
    visibility: hidden;
}

.enter-button {
    width: 100%;
    padding: 16px;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 400;
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    border: none;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.enter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.4);
}

.enter-button:active {
    transform: translateY(0);
}

.enter-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Загрузчик */
.splash-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
}

.splash-loader.hidden {
    display: none;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #e94560;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 12px;
}

/* Приветствие */
.welcome-message {
    margin-top: 30px;
    font-size: 20px;
    font-weight: 500;
    color: #4ade80;
    animation: fadeIn 0.5s ease;
}

.welcome-message.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптив */
@media (max-height: 600px) {
    .splash-icon {
        width: 80px;
        height: 80px;
    }
    
    .splash-title {
        font-size: 32px;
    }
    
    .splash-logo {
        margin-bottom: 20px;
    }
}

