/* ==========================================================================
   SeeTech — рулетка призов (окно по кнопке «Рулетка» в шапке и в кабинете).
   Палитра и радиусы как на остальном сайте: чёрный + зелёный бренда.
   ========================================================================== */

/* ---------- Кнопка в шапке ---------- */
.stw-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    margin: 0 12px 0 20px;
    border: 1px solid rgba(10, 10, 10, 0.1);
    border-radius: 100px;
    background: #fff;
    color: #0a0a0a;
    font: 600 12px/1 'Montserrat', sans-serif;
    letter-spacing: 0.2px;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .3s ease, color .3s ease, box-shadow .3s ease;
}

.stw-open svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.stw-open:hover,
.stw-open:focus-visible {
    border-color: #00C853;
    color: #00A844;
    box-shadow: 0 6px 20px -8px rgba(0, 200, 83, 0.55);
}

@media (max-width: 575.98px) {
    .stw-open {
        width: 40px;
        padding: 0;
        margin: 0 8px 0 12px;
        justify-content: center;
    }

    .stw-open span {
        display: none;
    }
}

/* ---------- Плашка в кабинете ---------- */
.stw-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    padding: 22px 26px;
    border-radius: 20px;
    background: #0a0a0a;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.stw-banner__title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.stw-banner__text {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 575.98px) {
    .stw-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* ---------- Окно ---------- */
html.stw-lock {
    overflow: hidden;
}

.stw {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: 'Montserrat', sans-serif;
}

.stw[hidden] {
    display: none;
}

.stw *,
.stw *::before,
.stw *::after {
    box-sizing: border-box;
}

.stw__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.62);
    backdrop-filter: blur(6px);
    animation: stwFade .25s ease both;
}

.stw__dialog {
    position: relative;
    width: min(440px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    border-radius: 26px;
    background: #fff;
    color: #0a0a0a;
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
    animation: stwRise .35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes stwFade { from { opacity: 0; } }
@keyframes stwRise { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.stw__head {
    position: relative;
    padding: 28px 28px 22px;
    background: #0a0a0a;
    color: #fff;
}

.stw__head::after {
    content: '';
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 0;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #00E676, #00C853 55%, transparent);
}

.stw__kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #00E676;
}

.stw__title {
    margin: 6px 0 0;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.stw__sub {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
}

.stw__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    transition: background-color .25s ease;
}

.stw__close:hover,
.stw__close:focus-visible {
    background: rgba(255, 255, 255, 0.22);
}

.stw__body {
    padding: 24px 28px 28px;
}

.stw-text {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.55;
    color: #5a5a5a;
}

.stw-note {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    color: #6b6b6b;
}

.stw-note--error {
    color: #d93025;
}

.stw-loading {
    padding: 40px 0;
    text-align: center;
    font-size: 13px;
    color: #6b6b6b;
}

/* ---------- Кнопки ---------- */
.stw-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid #0a0a0a;
    border-radius: 100px;
    background: #0a0a0a;
    color: #fff;
    font: 700 14px/1 'Montserrat', sans-serif;
    letter-spacing: 0.2px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .3s ease, border-color .3s ease, color .3s ease, opacity .3s ease;
}

.stw-btn:hover,
.stw-btn:focus-visible {
    background: #00C853;
    border-color: #00C853;
    color: #0a0a0a;
}

.stw-btn:disabled {
    opacity: .45;
    cursor: default;
}

.stw-btn--green {
    background: #00C853;
    border-color: #00C853;
    color: #0a0a0a;
}

.stw-btn--green:hover,
.stw-btn--green:focus-visible {
    background: #00E676;
    border-color: #00E676;
}

.stw-btn--ghost {
    background: transparent;
    color: #0a0a0a;
    border-color: rgba(10, 10, 10, 0.15);
    margin-top: 10px;
}

.stw-banner .stw-btn {
    width: auto;
    flex: none;
}

/* ---------- Лента ---------- */
.stw-reel {
    position: relative;
    height: 228px; /* 3 строки по 76px */
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 20px;
    background: #f3f5f7;
}

.stw-reel__track {
    will-change: transform;
}

.stw-reel__fade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(#f3f5f7 0, rgba(243, 245, 247, 0) 34%, rgba(243, 245, 247, 0) 66%, #f3f5f7 100%);
}

.stw-reel__marker {
    position: absolute;
    left: 8px;
    right: 8px;
    top: 76px;
    height: 76px;
    border: 2px solid #00C853;
    border-radius: 16px;
    pointer-events: none;
    box-shadow: 0 0 0 4px rgba(0, 200, 83, 0.14);
}

.stw-row {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 76px;
    padding: 0 22px;
    box-sizing: border-box;
}

.stw-row__pic {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

.stw-row__pic img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stw-row__pic--badge {
    background: #0a0a0a;
    color: #00E676;
    font-size: 15px;
    font-weight: 800;
}

.stw-row__label {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

/* ---------- Приз ---------- */
.stw-prize {
    text-align: center;
}

.stw-prize__badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 22px;
    border-radius: 100px;
    background: #0a0a0a;
    color: #00E676;
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.stw-prize__badge--off {
    background: #e6e8ea;
    color: #8a8f94;
}

.stw-prize__title {
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

.stw-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 8px 8px 8px 20px;
    border: 2px dashed rgba(10, 10, 10, 0.25);
    border-radius: 16px;
    background: #f3f5f7;
}

.stw-code__value {
    font: 800 20px/1 'Montserrat', monospace;
    letter-spacing: 0.06em;
    user-select: all;
}

.stw-code__copy {
    flex: none;
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 100px;
    background: #0a0a0a;
    color: #fff;
    font: 700 12px/1 'Montserrat', sans-serif;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease;
}

.stw-code__copy:hover,
.stw-code__copy:focus-visible {
    background: #00C853;
    color: #0a0a0a;
}

.stw-rules {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    font-size: 12px;
    line-height: 1.7;
    color: #6b6b6b;
}

@media (prefers-reduced-motion: reduce) {
    .stw__backdrop,
    .stw__dialog {
        animation: none;
    }
}
