/* ================================================================
   ВИЗУАЛЬНОЕ ОБНОВЛЕНИЕ: более выразительная шапка и рулетка
   Файл подключён после styles.css и содержит только точечные улучшения.
   ================================================================ */

/* Обновлённая верхняя панель */
.site-header {
    position: relative;
    z-index: 10;
}

.topbar {
    position: relative;
    min-height: 68px;
    overflow: hidden;
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.06), transparent 42%),
        linear-gradient(145deg, rgba(61, 28, 78, 0.94), rgba(23, 12, 32, 0.88));
    box-shadow:
        0 18px 50px rgba(2, 0, 7, 0.38),
        0 0 34px rgba(181, 49, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topbar::after {
    position: absolute;
    top: -80%;
    left: -10%;
    width: 38%;
    height: 250%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
    content: "";
    pointer-events: none;
    transform: rotate(18deg);
}

.brand-mark {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    background:
        radial-gradient(circle, #ffecf8 0 13%, transparent 14%),
        conic-gradient(from 22.5deg, #ff2fa4 0 25%, #8c44ed 0 50%, #ff72be 0 75%, #653bd5 0);
    box-shadow: 0 0 18px rgba(255, 53, 169, 0.38);
}

.brand-mark::after {
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    content: "";
}

.brand-mark span {
    position: relative;
    z-index: 1;
    color: #752158;
    font-size: 0.72rem;
}

.brand-copy__title {
    font-size: 1.02rem;
    font-weight: 900;
    letter-spacing: -0.015em;
}

.availability {
    border-color: rgba(255, 76, 178, 0.32);
    padding: 9px 16px 9px 10px;
    color: #ddcfdf;
    background:
        linear-gradient(90deg, rgba(255, 42, 158, 0.12), rgba(147, 65, 231, 0.09)),
        rgba(25, 12, 34, 0.84);
    box-shadow: 0 10px 30px rgba(2, 0, 8, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.availability__icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--gradient-primary);
    box-shadow: 0 0 16px rgba(255, 39, 160, 0.36);
}

/* Новый фон и типографика первого экрана */
.hero {
    position: relative;
    isolation: isolate;
}

.hero::before {
    position: absolute;
    z-index: -2;
    top: 16px;
    right: -26%;
    width: min(82vw, 720px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 48, 169, 0.12) 0 22%, rgba(125, 50, 210, 0.08) 42%, transparent 69%);
    content: "";
    filter: blur(4px);
    pointer-events: none;
}

.hero::after {
    position: absolute;
    z-index: -1;
    top: 7%;
    right: 2%;
    width: 35%;
    height: 72%;
    border: 1px solid rgba(255, 92, 186, 0.07);
    border-radius: 50%;
    content: "";
    pointer-events: none;
    transform: rotate(-18deg);
}

.hero .eyebrow {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 91, 186, 0.22);
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(255, 50, 163, 0.055);
}

.hero h1 {
    background: linear-gradient(115deg, #fff 15%, #ffd3eb 48%, #ff66bb 76%, #bf75ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 12px 30px rgba(255, 43, 161, 0.15));
    -webkit-text-fill-color: transparent;
}

.hero__subtitle {
    text-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}

/* Объёмный светящийся обод рулетки */
.wheel-stage {
    width: min(86vw, 580px);
}

.wheel-wrap {
    filter: drop-shadow(0 26px 38px rgba(0, 0, 0, 0.5));
}

.wheel-wrap::before {
    position: absolute;
    z-index: 0;
    inset: -3.2%;
    border: 2px solid rgba(255, 255, 255, 0.36);
    border-radius: 50%;
    background:
        radial-gradient(circle, transparent 0 68%, rgba(255, 255, 255, 0.06) 68.5% 70%, transparent 70.5%),
        conic-gradient(from 0deg, #ff4cae, #7e3ee7 24%, #ff8bc8 48%, #943ee4 72%, #ff4cae);
    box-shadow:
        inset 0 0 0 5px rgba(34, 10, 44, 0.78),
        inset 0 0 18px rgba(255, 255, 255, 0.22),
        0 0 0 5px rgba(73, 31, 90, 0.82),
        0 0 34px rgba(255, 49, 168, 0.36),
        0 24px 44px rgba(0, 0, 0, 0.42);
    content: "";
}

.wheel-wrap::after {
    position: absolute;
    z-index: 3;
    inset: 2.1%;
    border: 2px solid rgba(255, 255, 255, 0.36);
    border-radius: 50%;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.12);
    content: "";
    pointer-events: none;
}

.wheel-lights {
    position: absolute;
    z-index: 5;
    inset: -1.3%;
    border-radius: 50%;
    pointer-events: none;
}

.wheel-lights span {
    position: absolute;
    width: clamp(5px, 1.65vw, 10px);
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    background: #fff7c8;
    box-shadow: 0 0 6px #fff, 0 0 13px #ff55b3, 0 0 22px rgba(255, 52, 169, 0.7);
    transform: translate(-50%, -50%);
}

.wheel-lights span:nth-child(1) { top: 1%; left: 50%; }
.wheel-lights span:nth-child(2) { top: 8%; left: 74%; }
.wheel-lights span:nth-child(3) { top: 26%; left: 92%; }
.wheel-lights span:nth-child(4) { top: 50%; left: 99%; }
.wheel-lights span:nth-child(5) { top: 74%; left: 92%; }
.wheel-lights span:nth-child(6) { top: 92%; left: 74%; }
.wheel-lights span:nth-child(7) { top: 99%; left: 50%; }
.wheel-lights span:nth-child(8) { top: 92%; left: 26%; }
.wheel-lights span:nth-child(9) { top: 74%; left: 8%; }
.wheel-lights span:nth-child(10) { top: 50%; left: 1%; }
.wheel-lights span:nth-child(11) { top: 26%; left: 8%; }
.wheel-lights span:nth-child(12) { top: 8%; left: 26%; }

.wheel-lights span:nth-child(2n) {
    background: #ffc3e5;
    box-shadow: 0 0 6px #fff, 0 0 13px #c754ff, 0 0 22px rgba(157, 68, 255, 0.7);
}

/* Улучшенное резервное колесо, видимое без koleso.png */
.wheel-fallback {
    border-color: #3c174d;
    background:
        radial-gradient(circle, #fff 0 4.5%, #ffb9df 4.8% 6%, #e83fa5 6.3% 10%, transparent 10.5%),
        radial-gradient(circle, transparent 0 76%, rgba(255, 255, 255, 0.12) 76.5% 78%, transparent 78.5%),
        repeating-conic-gradient(from -22.5deg, rgba(255, 255, 255, 0.3) 0 1deg, transparent 1deg 45deg),
        conic-gradient(from -22.5deg,
            #ff3da9 0 45deg,
            #6f3bdc 45deg 90deg,
            #ff76bd 90deg 135deg,
            #9d3dda 135deg 180deg,
            #ed309d 180deg 225deg,
            #593bd0 225deg 270deg,
            #ff63b2 270deg 315deg,
            #8435c9 315deg 360deg);
    box-shadow:
        inset 0 0 0 5px rgba(255, 255, 255, 0.1),
        inset 0 0 42px rgba(25, 4, 39, 0.52);
}

.primary-button--link {
    margin-top: 22px;
}

@media (min-width: 900px) {
    .wheel-stage {
        width: min(47vw, 590px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .wheel-lights span {
        box-shadow: 0 0 8px rgba(255, 96, 187, 0.65);
    }
}

/* ================================================================
   ПРЕМИАЛЬНЫЙ ВАРИАНТ ПЕРВОГО ЭКРАНА
   ================================================================ */
.hero__copy {
    position: relative;
}

.hero h1 {
    max-width: 760px;
    margin-inline: auto;
    font-size: clamp(3rem, 14vw, 5.5rem);
    font-weight: 950;
    letter-spacing: -0.075em;
    line-height: 0.92;
    background:
        linear-gradient(180deg, #fff 0%, #ffe5f4 31%, #ff86c9 65%, #cf5cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter:
        drop-shadow(0 3px 0 rgba(105, 24, 103, 0.74))
        drop-shadow(0 14px 30px rgba(255, 40, 159, 0.24));
    text-wrap: balance;
    -webkit-text-fill-color: transparent;
}

.hero .eyebrow {
    margin-bottom: 22px;
    box-shadow: 0 0 26px rgba(255, 44, 163, 0.12);
}

/* Более дорогой обод, указатель и центральная кнопка рулетки */
.wheel-stage::after {
    position: absolute;
    z-index: -1;
    inset: -8%;
    border-radius: 50%;
    background:
        repeating-conic-gradient(from 0deg, rgba(255, 90, 187, 0.1) 0 1deg, transparent 1deg 15deg);
    content: "";
    opacity: 0.56;
    -webkit-mask: radial-gradient(circle, transparent 0 67%, #000 68% 69%, transparent 70%);
    mask: radial-gradient(circle, transparent 0 67%, #000 68% 69%, transparent 70%);
    pointer-events: none;
}

.wheel-wrap::before {
    border-width: 3px;
    background:
        radial-gradient(circle, transparent 0 65%, rgba(255, 255, 255, 0.08) 66% 69%, transparent 70%),
        conic-gradient(from 0deg, #ff87ca, #a347f1 18%, #ff2fa4 36%, #7139d8 54%, #ff96d2 72%, #aa46ee 88%, #ff87ca);
    box-shadow:
        inset 0 0 0 5px rgba(25, 8, 34, 0.9),
        inset 0 0 22px rgba(255, 255, 255, 0.28),
        0 0 0 5px rgba(75, 27, 92, 0.86),
        0 0 0 7px rgba(255, 116, 197, 0.14),
        0 0 42px rgba(255, 49, 168, 0.46),
        0 28px 52px rgba(0, 0, 0, 0.52);
}

.wheel-fallback::before {
    position: absolute;
    z-index: 1;
    top: 5%;
    left: 15%;
    width: 55%;
    height: 32%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.18), transparent 68%);
    content: "";
    filter: blur(7px);
    pointer-events: none;
    transform: rotate(-18deg);
}

.wheel-image {
    filter: saturate(1.12) contrast(1.04) drop-shadow(0 0 10px rgba(255, 73, 177, 0.2));
}

.wheel-hub {
    width: 17%;
    border: 4px solid rgba(255, 255, 255, 0.82);
    color: #8d1a6c;
    background:
        radial-gradient(circle at 36% 28%, #fff 0 16%, transparent 17%),
        linear-gradient(145deg, #fff8fc, #ffb8df 68%, #d96eff);
    box-shadow:
        0 0 0 6px rgba(85, 22, 98, 0.55),
        0 8px 24px rgba(37, 4, 42, 0.62),
        0 0 30px rgba(255, 255, 255, 0.22);
}

.pointer {
    top: -15px;
    border-top-color: #fff6fb;
    filter:
        drop-shadow(0 5px 0 rgba(112, 24, 89, 0.52))
        drop-shadow(0 9px 15px rgba(255, 38, 155, 0.52));
}

.pointer::after {
    border-top-color: #ff279c;
}

.pointer__cap {
    width: 15px;
    height: 15px;
    border-width: 4px;
    background: #ff3ca6;
    box-shadow: 0 0 18px rgba(255, 42, 160, 0.78);
}

/* Новый счётчик оставшихся вращений */
.spin-counter {
    min-width: min(100%, 272px);
    min-height: 64px;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 26px;
    border: 1px solid rgba(255, 92, 187, 0.32);
    border-radius: 22px;
    padding: 8px 9px;
    color: #fff;
    background:
        linear-gradient(105deg, rgba(255, 37, 157, 0.14), rgba(139, 61, 224, 0.12)),
        rgba(29, 14, 40, 0.9);
    box-shadow:
        0 15px 34px rgba(3, 0, 8, 0.33),
        0 0 28px rgba(255, 38, 157, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}

.spin-counter__mini-wheel {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.48);
    border-radius: 50%;
    color: #fff;
    background: conic-gradient(#ff3ca6 0 25%, #8342df 0 50%, #ff79c1 0 75%, #6339ce 0);
    box-shadow: 0 0 18px rgba(255, 44, 165, 0.4);
}

.spin-counter__mini-wheel::after {
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
    content: "";
}

.spin-counter__mini-wheel > span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    color: #8b236d;
    background: #fff;
    font-size: 0.55rem;
}

.spin-counter__content {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.spin-counter__label {
    color: #eaddea;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.spin-counter strong {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, #ff319f, #a83fee);
    box-shadow: 0 8px 20px rgba(226, 38, 166, 0.34);
    font-size: 1.32rem;
    font-weight: 950;
}

/* Новая большая кнопка вращения */
#desktop-spin-button,
#mobile-spin-button {
    min-height: 66px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    background:
        linear-gradient(105deg, rgba(255, 255, 255, 0.12), transparent 34%),
        linear-gradient(135deg, #ff0e8e 0%, #f02db8 42%, #a23fff 100%);
    box-shadow:
        0 18px 38px rgba(211, 27, 164, 0.34),
        0 0 36px rgba(255, 29, 150, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 -5px 12px rgba(78, 16, 120, 0.2);
    font-size: 0.94rem;
    font-weight: 950;
    letter-spacing: 0.045em;
}

#desktop-spin-button::after,
#mobile-spin-button::after {
    position: absolute;
    top: -40%;
    right: -10%;
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 66%);
    content: "";
    pointer-events: none;
}

#desktop-spin-button .button-arrow,
#mobile-spin-button .button-arrow {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

#desktop-spin-button:hover:not(:disabled),
#mobile-spin-button:hover:not(:disabled) {
    box-shadow:
        0 22px 44px rgba(220, 31, 170, 0.42),
        0 0 50px rgba(255, 32, 157, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.36);
    transform: translateY(-3px) scale(1.01);
}

@media (min-width: 900px) {
    .hero h1 {
        margin-inline: 0;
        font-size: clamp(4.4rem, 6.3vw, 5.5rem);
    }
}
