/* ============================================
   ОСНОВНЫЕ СТИЛИ
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: white;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: #1e293b;
    line-height: 1.6;
    padding-top: 1rem;
}

@media (min-width: 1024px) {
    body {
        align-items: center;
        padding-top: 0;
    }
}

/* ============================================
   СНЕЖИНКИ
   ============================================ */

.snowflake {
    position: fixed;
    top: -10px;
    color: #60a5fa;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px rgba(96, 165, 250, 0.8);
    user-select: none;
    z-index: 1;
    pointer-events: none;
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* ============================================
   ОСНОВНОЙ КОНТЕЙНЕР
   ============================================ */

.main-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 1024px) {
    .main-container {
        padding: 2rem 1rem;
    }
}

.content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .content-wrapper {
        gap: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .content-wrapper {
        flex-direction: row;
        gap: 3rem;
    }
}

/* ============================================
   СЕКЦИЯ С ФОРМОЙ
   ============================================ */

.form-section {
    width: 100%;
    max-width: 500px;
    order: 1;
    margin-top: 0;
}

@media (max-width: 768px) {
    .form-section {
        margin-top: 0;
    }
}

@media (min-width: 1024px) {
    .form-section {
        order: 1;
    }
}

/* Заголовок */
.header-section {
    margin-bottom: 0.25rem;
    text-align: center;
}

@media (max-width: 767px) {
    .header-section {
        margin-bottom: 0;
    }
}

@media (min-width: 1024px) {
    .header-section {
        margin-bottom: 0.5rem;
    }
}

.logo-wrapper {
    margin-bottom: 0.25rem;
}

@media (min-width: 1024px) {
    .logo-wrapper {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 768px) {
    .logo-wrapper {
        margin-bottom: 0.05rem;
    }
}

.logo {
    height: 2rem;
    width: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    object-fit: contain;
}

@media (min-width: 768px) {
    .logo {
        height: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .logo {
        height: 4.5rem;
    }
}

.tagline {
    height: auto;
    width: auto;
    max-width: 365px;
    margin: 0 auto;
    margin-bottom: 0;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    object-fit: contain;
}

@media (max-width: 767px) {
    .tagline {
        margin-bottom: -0.5rem;
        max-width: 365px;
    }
}

@media (min-width: 768px) {
    .tagline {
        max-width: 400px;
    }
}

/* Форма */
.form-container {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 2px solid #bfdbfe;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(0.9);
    transform-origin: center;
    margin-top: 0;
}

@media (max-width: 768px) {
    .form-container {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .form-container {
        transform: scale(0.85);
        padding: 1.25rem;
        border-radius: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .form-container {
        transform: scale(0.9);
        padding: 2.5rem;
        border-radius: 1.75rem;
    }
}

.form-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .form-title {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
    }
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .form-label {
        font-size: 1.125rem;
    }
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #bfdbfe;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 10px 20px rgba(14, 165, 233, 0.2);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .form-input {
        font-size: 1.125rem;
        padding: 1.25rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .form-input:focus {
        transform: none;
    }
}

.form-input::placeholder {
    color: #94a3b8;
}

/* Кнопка */
.spin-button {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #2563eb, #9333ea, #06b6d4);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .spin-button {
        font-size: 1.25rem;
        padding: 1.5rem 1.5rem;
    }
}

.spin-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.spin-button:hover::before {
    width: 300px;
    height: 300px;
}

.spin-button:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.spin-button:active {
    transform: scale(0.98);
}

.spin-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   СЕКЦИЯ С БАРАБАНОМ
   ============================================ */

.wheel-section {
    width: 100%;
    display: flex;
    justify-content: center;
    order: 2;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .wheel-section {
        margin-top: 0.25rem;
    }
}

@media (min-width: 1024px) {
    .wheel-section {
        order: 2;
        margin-top: 0;
    }
}

.wheel-container {
    position: relative;
    width: 480px;
    height: 480px;
    max-width: 100%;
    z-index: 10;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), rgba(255,255,255,0.06)),
                linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.22);
    box-shadow:
        0 30px 60px rgba(15, 23, 42, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.25),
        inset 0 -1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    border-radius: 24px;
}

@media (max-width: 768px) {
    .wheel-container {
        width: 304px;
        height: 304px;
    }
}

@media (max-width: 480px) {
    .wheel-container {
        width: 288px;
        height: 288px;
    }
}

@media (max-width: 360px) {
    .wheel-container {
        width: 256px;
        height: 256px;
    }
}

/* Старые стили указателя удалены - используем новые ниже */

.wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 40px rgba(14, 165, 233, 0.6),
        0 0 80px rgba(14, 165, 233, 0.4),
        inset 0 0 60px rgba(0, 0, 0, 0.1);
    border: 8px solid #0284C7;
    transition: transform 0.1s;
}

@media (max-width: 480px) {
    .wheel {
        border-width: 6px;
    }
}

.wheel-spinning {
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

.wheel-sector-text {
    pointer-events: none;
    user-select: none;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #0284C7, #0369A1);
    border-radius: 50%;
    border: 6px solid white;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.8);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

@media (max-width: 768px) {
    .wheel-center {
        width: 60px;
        height: 60px;
        border-width: 4px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .wheel-center {
        width: 50px;
        height: 50px;
        border-width: 3px;
        font-size: 12px;
    }
}

.wheel-center-content {
    text-align: center;
}

.wheel-icon {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .wheel-icon {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .wheel-icon {
        font-size: 1rem;
    }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   МОДАЛЬНОЕ ОКНО
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .modal-overlay {
        padding: 10px;
        align-items: flex-start;
        padding-top: 20px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 30px;
    padding: 50px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 40px 30px;
        border-radius: 25px;
        width: 85%;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 30px 20px;
        border-radius: 20px;
        width: 90%;
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.prize-icon {
    font-size: 80px;
    animation: bounce 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@media (max-width: 768px) {
    .prize-icon {
        font-size: 60px;
    }
}

@media (max-width: 480px) {
    .prize-icon {
        font-size: 50px;
    }
}

.modal-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

@media (max-width: 480px) {
    .modal-title {
        font-size: 2rem;
    }
}

.modal-subtitle {
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.5rem;
}

@media (max-width: 480px) {
    .modal-subtitle {
        font-size: 1rem;
    }
}

.modal-prize {
    font-size: 3rem;
    font-weight: 700;
    color: #fef08a;
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .modal-prize {
        font-size: 2.5rem;
    }
}

.modal-button {
    background: white;
    color: #9333ea;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .modal-button {
        padding: 0.75rem 2rem;
        font-size: 1rem;
    }
}

.modal-button:hover {
    background: #fef08a;
    transform: scale(1.05);
}

/* ============================================
   КОНФЕТТИ
   ============================================ */

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #f0f;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(500px) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   УТИЛИТЫ
   ============================================ */

.prize-result {
    animation: fadeIn 0.5s ease-in;
}

/* ============================================
   МОДАЛЬНОЕ ОКНО "УЖЕ УЧАСТВОВАЛИ"
   ============================================ */

.already-participated-modal {
    text-align: center;
}

.already-participated-modal .logo-wrapper {
    margin-bottom: 1.5rem;
}

.already-participated-modal .logo {
    height: 4rem;
    width: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.already-participated-icon {
    font-size: 80px;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.already-participated-text {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .already-participated-modal .logo {
        height: 3rem;
    }
    
    .already-participated-icon {
        font-size: 60px;
    }
    
    .already-participated-text {
        font-size: 1.125rem;
    }
}

/* ============================================
   МОДАЛЬНОЕ ОКНО ВЫБОРА ГОРОДА
   ============================================ */

.city-selection-modal {
    text-align: center;
}

.city-selection-modal .logo-wrapper {
    margin-bottom: 1.5rem;
}

.city-selection-modal .logo {
    height: 4rem;
    width: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

@media (max-width: 768px) {
    .city-selection-modal {
        padding: 30px 20px !important;
    }
    
    .city-selection-modal .logo {
        height: 3rem;
    }
    
    .city-selection-modal .modal-title {
        font-size: 1.5rem !important;
    }
    
    .city-selection-modal .modal-subtitle {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .city-selection-modal {
        padding: 20px 15px !important;
        width: 95% !important;
        max-width: 95% !important;
    }
    
    .city-selection-modal .logo {
        height: 2.5rem;
    }
    
    .city-selection-modal .logo-wrapper {
        margin-bottom: 1rem;
    }
    
    .city-selection-modal .modal-title {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .city-selection-modal .modal-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
}

.cities-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

@media (max-width: 480px) {
    .cities-list {
        margin-top: 1rem;
        gap: 0.75rem;
        max-height: 300px;
    }
}

.city-button {
    background: white;
    color: #1e40af;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1.25rem 2rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: capitalize;
    width: 100%;
}

.city-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.city-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .city-button {
        padding: 1rem 1.5rem;
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .city-button {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        border-radius: 0.5rem;
    }
}

/* ============================================
   ЭКРАН "АКЦИЯ ЗАКОНЧИЛАСЬ"
   ============================================ */

/* ============================================
   ПРЕМИУМ РУЛЕТКА
   ============================================ */

.wheel-section {
    width: 100%;
    display: flex;
    justify-content: center;
    order: 2;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .wheel-section {
        margin-top: 0.25rem;
    }
}

@media (min-width: 1024px) {
    .wheel-section {
        order: 2;
        margin-top: 0;
    }
}

.wheel-container {
    position: relative;
    width: 480px;
    height: 480px;
    max-width: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .wheel-container {
        width: 304px;
        height: 304px;
    }
}

@media (max-width: 480px) {
    .wheel-container {
        width: 288px;
        height: 288px;
    }
}

@media (max-width: 360px) {
    .wheel-container {
        width: 256px;
        height: 256px;
    }
}

.wheel-pointer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 35px;
    background: linear-gradient(180deg, 
        #ff4d4d 0%, 
        #ff1f1f 25%,
        #e60000 50%,
        #b80000 75%,
        #8b0000 100%);
    border-radius: 3px;
    z-index: 20;
    box-shadow: 
        0 3px 16px rgba(0,0,0,0.6),
        0 0 32px rgba(255, 77, 77, 0.95),
        0 0 60px rgba(255, 0, 0, 0.85),
        inset 0 1px 10px rgba(255, 255, 255, 0.7),
        inset 0 -1px 10px rgba(139, 0, 0, 0.75);
    /* Убираем transition, так как JS управляет анимацией плавно */
    animation: pointerPulse 2s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.6);
    transform-origin: center bottom;
    /* Убираем все маргины, теперь всё через JS transform */
    margin: 0 !important;
}

.wheel-pointer::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 17px solid #ffecec;
    filter: 
        drop-shadow(0 2px 6px rgba(0,0,0,0.5)) 
        drop-shadow(0 0 22px rgba(255, 77, 77, 1))
        drop-shadow(0 0 36px rgba(255, 0, 0, 0.85));
}

.wheel-container:has(.wheel-spinning) .wheel-pointer {
    /* Тряску пока убираем, чтобы не конфликтовала с JS-вращением */
    animation: pointerPulse 0.5s ease-in-out infinite;
}

@media (max-width: 768px) {
    .wheel-pointer {
        width: 4px;
        height: 30px;
    }
    .wheel-pointer::after {
        border-top-width: 8px;
        border-bottom-width: 8px;
        border-left-width: 10px;
        border-right-width: 10px;
    }
}

@media (max-width: 480px) {
    .wheel-pointer {
        width: 3px;
        height: 25px;
    }
    .wheel-pointer::after {
        border-top-width: 7px;
        border-bottom-width: 7px;
        border-left-width: 9px;
        border-right-width: 9px;
    }
}

/* Специально для высоких DPI экранов (Pixel 9 и подобные) */
@media (-webkit-min-device-pixel-ratio: 3), (min-resolution: 3dppx) {
    .wheel-pointer {
        width: 4px;
        height: 32px;
    }
    .wheel-pointer::after {
        border-top-width: 7px;
        border-bottom-width: 7px;
        border-left-width: 11px;
        border-right-width: 11px;
    }
}

.wheel-wrapper {
    position: relative;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    transform-style: preserve-3d;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.35),
        0 0 80px rgba(59, 130, 246, 0.35),
        inset 0 0 40px rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

.wheel-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        #0EA5E9 0deg 40deg,
        #06B6D4 40deg 80deg,
        #3B82F6 80deg 120deg,
        #0284C7 120deg 160deg,
        #0891B2 160deg 200deg,
        #2563EB 200deg 240deg,
        #0369A1 240deg 280deg,
        #1D4ED8 280deg 320deg,
        #0C4A6E 320deg 360deg
    );
    z-index: -1;
    filter: blur(25px);
    opacity: 0.8;
    animation: glow 3s ease-in-out infinite, rotate 15s linear infinite;
}

@keyframes glow {
    0%, 100% { 
        opacity: 0.5;
        transform: scale(1);
    }
    50% { 
        opacity: 0.9;
        transform: scale(1.05);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Стили для spin-wheel */
.wheel-wrapper canvas {
    border-radius: 50%;
    display: block;
}

#canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), rgba(255,255,255,0.05)),
                linear-gradient(145deg, rgba(59,130,246,0.85), rgba(56,189,248,0.75));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 15px 40px rgba(15, 23, 42, 0.35),
        0 0 40px rgba(56, 189, 248, 0.55),
        inset 0 0 20px rgba(255,255,255,0.25),
        inset 0 -12px 28px rgba(15, 23, 42, 0.35);
    z-index: 15;
    border: 6px solid rgba(224, 242, 254, 0.85);
    pointer-events: none;
}

.wheel-center::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 70%);
    z-index: -1;
}

.wheel-center-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.wheel-icon {
    font-size: 40px;
}

@media (max-width: 768px) {
    .wheel-wrapper {
        width: 304px;
        height: 304px;
    }
    .wheel-center {
        width: 70px;
        height: 70px;
        border-width: 6px;
    }
    .wheel-center-content {
        font-size: 32px;
    }
    .wheel-icon {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .wheel-wrapper {
        width: 288px;
        height: 288px;
    }
    .wheel-center {
        width: 60px;
        height: 60px;
        border-width: 5px;
    }
    .wheel-center-content {
        font-size: 28px;
    }
    .wheel-icon {
        font-size: 28px;
    }
}

@media (max-width: 360px) {
    .wheel-wrapper {
        width: 256px;
        height: 256px;
    }
}

.wheel::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(14, 165, 233, 0.4) 0%,
        rgba(2, 132, 199, 0.6) 50%,
        rgba(3, 105, 161, 0.4) 100%);
    z-index: -1;
    filter: blur(10px);
}

@media (max-width: 768px) {
    .wheel {
        box-shadow: 
            0 0 40px rgba(14, 165, 233, 0.7),
            0 0 80px rgba(14, 165, 233, 0.4),
            0 15px 30px rgba(0, 0, 0, 0.25),
            inset 0 0 60px rgba(0, 0, 0, 0.15),
            inset 0 0 30px rgba(255, 255, 255, 0.08);
    }
}

@media (max-width: 480px) {
    .wheel {
        border-width: 8px;
        box-shadow: 
            0 0 30px rgba(14, 165, 233, 0.6),
            0 0 60px rgba(14, 165, 233, 0.3),
            0 12px 25px rgba(0, 0, 0, 0.2),
            inset 0 0 50px rgba(0, 0, 0, 0.12),
            inset 0 0 25px rgba(255, 255, 255, 0.06);
    }
}

.wheel-spinning {
    transition: transform 4.5s cubic-bezier(0.17, 0.67, 0.12, 0.99);
}

@keyframes pointerPulse {
    0%, 100% { 
        box-shadow: 
            0 4px 16px rgba(0,0,0,0.6),
            0 0 40px rgba(14, 165, 233, 1),
            0 0 60px rgba(56, 189, 248, 0.8),
            inset 0 2px 10px rgba(255, 255, 255, 0.6),
            inset 0 -2px 10px rgba(2, 132, 199, 0.6);
    }
    50% { 
        box-shadow: 
            0 6px 20px rgba(0,0,0,0.7),
            0 0 50px rgba(14, 165, 233, 1),
            0 0 80px rgba(56, 189, 248, 1),
            inset 0 2px 15px rgba(255, 255, 255, 0.8),
            inset 0 -2px 15px rgba(2, 132, 199, 0.8);
    }
}

@keyframes pointerShake {
    0%, 100% { 
        transform: translateX(0);
    }
    25% { 
        transform: translateX(-2px);
    }
    75% { 
        transform: translateX(2px);
    }
}

/* Анимация увеличения секторов */
.wheel-sector-highlight {
    animation: sectorScaleUp 0.3s ease-out forwards;
}

@keyframes sectorScaleUp {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

@keyframes sectorScaleDown {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1);
    }
}

.wheel-sector-text {
    position: absolute;
    pointer-events: none;
    user-select: none;
    font-weight: 900;
    color: #fff;
    text-shadow: 
        2px 2px 8px rgba(0,0,0,0.9),
        0 0 20px rgba(0,0,0,0.6),
        0 0 40px rgba(255,255,255,0.3);
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
    z-index: 10;
}

@media (max-width: 768px) {
    .wheel-sector-text {
        text-shadow: 
            1px 1px 6px rgba(0,0,0,0.9),
            0 0 15px rgba(0,0,0,0.6),
            0 0 30px rgba(255,255,255,0.3);
        letter-spacing: 0.3px;
    }
}

@media (max-width: 480px) {
    .wheel-sector-text {
        text-shadow: 
            1px 1px 4px rgba(0,0,0,0.9),
            0 0 12px rgba(0,0,0,0.6),
            0 0 25px rgba(255,255,255,0.3);
        letter-spacing: 0.2px;
    }
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.4),
        0 0 30px rgba(59, 130, 246, 0.6),
        inset 0 0 20px rgba(255,255,255,0.3),
        inset 0 -10px 30px rgba(0,0,0,0.3);
    z-index: 15;
    border: 8px solid #e0f2fe;
    transform-style: preserve-3d;
}

.wheel-center::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent 70%);
    z-index: -1;
}

@media (max-width: 768px) {
    .wheel-center {
        width: 70px;
        height: 70px;
        border-width: 6px;
    }
}

@media (max-width: 480px) {
    .wheel-center {
        width: 60px;
        height: 60px;
        border-width: 5px;
    }
}

.wheel-center-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

@media (max-width: 768px) {
    .wheel-center-content {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .wheel-center-content {
        font-size: 28px;
    }
}

.wheel-icon {
    font-size: 40px;
}

@media (max-width: 768px) {
    .wheel-icon {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .wheel-icon {
        font-size: 28px;
    }
}

.campaign-ended-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem;
}

.campaign-ended-content {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    border: 2px solid #bfdbfe;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    max-width: 600px;
    width: 100%;
}

.campaign-ended-content .logo-wrapper {
    margin-bottom: 2rem;
}

.campaign-ended-content .logo {
    height: 5rem;
    width: auto;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.campaign-ended-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 1.5rem;
}

.campaign-ended-text {
    font-size: 1.5rem;
    color: #ffffff;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .campaign-ended-content {
        padding: 2rem 1.5rem;
    }
    
    .campaign-ended-content .logo {
        height: 4rem;
    }
    
    .campaign-ended-title {
        font-size: 2rem;
    }
    
    .campaign-ended-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .campaign-ended-screen {
        padding: 1rem;
    }
    
    .campaign-ended-content {
        padding: 1.5rem 1rem;
    }
    
    .campaign-ended-content .logo {
        height: 3rem;
    }
    
    .campaign-ended-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .campaign-ended-text {
        font-size: 1.125rem;
    }
}

