:root {
    --bonus-surface: linear-gradient(180deg, rgba(13, 21, 37, 0.96), rgba(8, 14, 25, 0.96));
    --bonus-border: rgba(96, 165, 250, 0.16);
    --bonus-muted: rgba(148, 163, 184, 0.78);
}

.bonus-page {
    position: relative;
    min-height: 100vh;
    padding: 128px 0 96px;
    overflow: hidden;
}

.bonus-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at 50% 0, black, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 0, black, transparent 75%);
    pointer-events: none;
}

.bonus-page__glow {
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(16px);
    opacity: 0.9;
}

.bonus-page__glow--one {
    top: 40px;
    left: -120px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 68%);
}

.bonus-page__glow--two {
    right: -120px;
    bottom: 40px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.1), transparent 72%);
}

.bonus-shell {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.bonus-heading {
    max-width: 760px;
}

.bonus-heading__copy h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
    max-width: 10ch;
}

.bonus-heading__copy p {
    margin-top: 18px;
    max-width: 620px;
    color: var(--bonus-muted);
    font-size: 1.02rem;
}

.bonus-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
    gap: 36px;
    align-items: center;
    padding: 34px;
    border-radius: 28px;
    background: var(--bonus-surface);
    border: 1px solid var(--bonus-border);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.bonus-stage__wheel {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 18px;
}

.bonus-wheel-frame {
    position: relative;
    width: min(100%, 560px);
    aspect-ratio: 1;
    margin: 0 auto;
}

.bonus-wheel-pointer {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 36px;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    background: linear-gradient(180deg, #93c5fd, #2563eb);
    box-shadow: 0 0 32px rgba(37, 99, 235, 0.32);
    z-index: 3;
}

.bonus-wheel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bonus-wheel__disc {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 16px solid rgba(7, 11, 20, 0.88);
    box-shadow:
        inset 0 0 0 1px rgba(147, 197, 253, 0.18),
        0 18px 48px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transition: transform 4.6s cubic-bezier(0.17, 0.9, 0.12, 1);
}

.bonus-wheel__disc::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, transparent 0 31%, rgba(7, 11, 20, 0.44) 31.5%, transparent 32%),
        radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 46%),
        repeating-conic-gradient(from -90deg, rgba(255, 255, 255, 0.08) 0deg 0.7deg, transparent 0.7deg 45deg);
    opacity: 0.8;
}

.bonus-wheel__disc::after {
    content: '';
    position: absolute;
    inset: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.bonus-wheel__label {
    position: absolute;
    inset: 0;
    transform: rotate(calc((var(--index) + 0.5) * 1turn / var(--count)));
    pointer-events: none;
}

.bonus-wheel__label span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 136px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transform: translate(-50%, -50%) translateY(-168px) rotate(calc((var(--index) + 0.5) * -1turn / var(--count)));
    color: #f8fafc;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.06;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.bonus-wheel__label em {
    display: block;
    font-style: normal;
}

.bonus-wheel__label-text--none {
    color: rgba(255, 255, 255, 0.78);
}

.bonus-wheel__hub {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 132px;
    height: 132px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(10, 17, 31, 0.98), rgba(6, 10, 19, 0.98));
    border: 1px solid rgba(96, 165, 250, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 10px 24px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.bonus-wheel__hub-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-light);
}

.bonus-wheel__hub strong {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: -0.03em;
}

.bonus-wheel-notes {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.bonus-wheel-notes span {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.bonus-stage__controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bonus-panel {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.bonus-panel__intro h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.bonus-panel__intro p {
    margin-top: 12px;
    color: var(--bonus-muted);
    line-height: 1.65;
}

.bonus-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bonus-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bonus-field span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.bonus-field input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(96, 165, 250, 0.16);
    background: rgba(7, 11, 20, 0.72);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: none;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.bonus-field input:focus {
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    background: rgba(7, 11, 20, 0.9);
}

.bonus-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.bonus-button {
    min-width: 160px;
    justify-content: center;
}

.bonus-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
}

.bonus-button--ghost {
    background: rgba(255, 255, 255, 0.02);
}

.bonus-notice {
    min-height: 24px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.bonus-notice[data-tone="error"] {
    color: #fca5a5;
}

.bonus-notice[data-tone="ready"] {
    color: #bfdbfe;
}

.bonus-notice[data-tone="done"] {
    color: #dbeafe;
}

.bonus-result {
    padding: 20px 22px;
    border-radius: 18px;
    background: rgba(8, 13, 24, 0.82);
    border: 1px solid rgba(96, 165, 250, 0.12);
}

.bonus-result__label {
    color: var(--text-secondary);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bonus-result__title {
    margin-top: 10px;
    font-family: var(--font-display);
    font-size: 1.7rem;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.bonus-result__text {
    margin-top: 10px;
    color: var(--bonus-muted);
    line-height: 1.6;
}

.bonus-result__order {
    margin-top: 16px;
    color: var(--accent-light);
    font-family: var(--font-mono);
    font-size: 0.86rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.bonus-pool__header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
}

.bonus-pool__header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    letter-spacing: -0.03em;
}

.bonus-pool__header p {
    max-width: 520px;
    color: var(--bonus-muted);
}

.bonus-pool__table {
    margin-top: 16px;
    border-top: 1px solid rgba(96, 165, 250, 0.14);
}

.bonus-pool__row {
    display: grid;
    grid-template-columns: minmax(0, 190px) 130px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bonus-pool__reward {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.bonus-pool__type {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
}

.bonus-pool__text {
    color: var(--text-secondary);
    line-height: 1.55;
}

.bonus-tone--discount {
    color: #c4b5fd;
}

.bonus-tone--jackpot {
    color: #fbbf24;
}

.bonus-tone--credit {
    color: #c4b5fd;
}

.bonus-tone--product {
    color: #4ade80;
}

.bonus-tone--month {
    color: #c4b5fd;
}

.bonus-tone--none {
    color: #fbbf24;
}

@media (max-width: 1080px) {
    .bonus-stage {
        grid-template-columns: 1fr;
    }

    .bonus-stage__controls {
        max-width: 640px;
    }
}

@media (max-width: 720px) {
    .bonus-page {
        padding-top: 108px;
        padding-bottom: 72px;
    }

    .bonus-stage {
        padding: 22px;
        border-radius: 22px;
        gap: 24px;
    }

    .bonus-wheel-frame {
        width: min(100%, 420px);
    }

    .bonus-wheel__hub {
        width: 112px;
        height: 112px;
    }

    .bonus-wheel__label span {
        width: 104px;
        font-size: 0.76rem;
        transform: translate(-50%, -50%) translateY(-132px) rotate(calc((var(--index) + 0.5) * -1turn / var(--count)));
    }

    .bonus-pool__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .bonus-shell {
        gap: 24px;
    }

    .bonus-wheel-frame {
        width: min(100%, 340px);
    }

    .bonus-wheel__disc {
        border-width: 12px;
    }

    .bonus-wheel__hub {
        width: 96px;
        height: 96px;
    }

    .bonus-wheel__hub-label {
        font-size: 0.63rem;
    }

    .bonus-wheel__hub strong {
        font-size: 1rem;
    }

    .bonus-wheel__label {
    }

    .bonus-wheel__label span {
        width: 84px;
        font-size: 0.62rem;
        transform: translate(-50%, -50%) translateY(-108px) rotate(calc((var(--index) + 0.5) * -1turn / var(--count)));
    }

    .bonus-actions {
        flex-direction: column;
    }

    .bonus-button {
        width: 100%;
    }

    .bonus-pool__row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bonus-wheel__disc {
        transition: none;
    }
}
