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

html,
body {
    height: 100%;
    background: rgb(13, 15, 26);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden;
    color: #e6e6e6;
}

/* Iframe modunda: içerik kadar uzasın — parent siteyle bütünleşik scroll için.
   Iframe.js içerideki scrollHeight'ı dinleyip kendi yüksekliğini eşitliyor;
   bu yüzden iframe'de overflow saklanmamalı, height: 100% kalmamalı. */
html.is-embedded,
body.is-embedded {
    height: auto;
    min-height: 100%;
    overflow: visible;
}

body {
    position: relative;
    isolation: isolate;
}

/* Slowly drifting color washes — teal & orange pulled from the wheel's
   palette, soft enough to read as ambience, not pattern. */
body::before {
    content: "";
    position: fixed;
    inset: -10%;
    z-index: -1;

    filter: blur(40px);
    animation: bg-drift 24s ease-in-out infinite alternate;
    pointer-events: none;
    will-change: transform, opacity;
}

@keyframes bg-drift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.85;
    }

    50% {
        transform: translate3d(-2%, 1.5%, 0) scale(1.08);
        opacity: 1;
    }

    100% {
        transform: translate3d(2%, -1%, 0) scale(1.04);
        opacity: 0.9;
    }
}

.stage {
    min-height: 100vh;
    height: 100vh;
    display: grid;
    grid-template-columns: 65% 35%;
}

/* Iframe modunda: stage parent yüksekliğine değil, içeriğe göre uzasın.
   Ardından iframe.js scrollHeight'ı yakalayıp iframe height'ını eşitliyor. */
body.is-embedded .stage {
    height: auto;
    min-height: 0;
}

/* Iframe modunda kompakt boyut — parent sayfanın viewport'una göre değil,
   sabit bir hedef boyuta göre çark/padding küçültülür. */
body.is-embedded .pane {
    padding: 20px 22px;
    gap: 14px;
}
body.is-embedded .wheel-assembly {
    width: min(500px, 90%);
}
body.is-embedded .section-header {
    gap: 12px;
}

.pane {
    display: grid;
    grid-template-rows: auto 1fr;
    align-items: stretch;
    justify-items: center;
    gap: clamp(14px, 2vh, 22px);
    padding: clamp(20px, 3vw, 40px);
    min-width: 0;
    min-height: 0;
}

.pane--results {
    justify-items: stretch;
}

.wheel-assembly {
    position: relative;
    isolation: isolate;
    /* Fixed at 660px on roomy viewports; scales down only when the
       remaining vertical space (after the section header + paddings)
       can't hold the wheel + base. */
    width: min(660px, calc(82vh - 160px));
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    justify-self: center;
}

/* Soft circular halo for the wheel — sits BELOW the base in the
   local stacking order so the stand stays opaque and isn't washed out. */
.wheel-assembly::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    box-shadow:
        0 0 0 1px rgba(0, 252, 236, 0.18),
        0 0 10px rgba(0, 252, 236, 0.32),
        0 0 10px rgba(0, 252, 236, 0.18),
        0 0 160px rgba(0, 252, 236, 0.08);
    z-index: 0;
    pointer-events: none;
    animation: wheel-glow 5s ease-in-out infinite alternate;
    will-change: opacity, transform;
}

/* ─── Section header (pill + form/search) ──────────────────────── */

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 560px;
    padding-top: 4px;
}

.pane--results .section-header {
    max-width: none;
}

.title-pill {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 12px 24px;
    background: linear-gradient(180deg, rgba(26, 31, 42, 0.85) 0%, rgba(15, 17, 26, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.title-pill::before {
    content: none;
}

.spin-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    width: 100%;
}

.spin-form__field {
    position: relative;
    min-width: 0;
}

/* Auto-detected user (parent site → iframe.js → us via postMessage) */
.user-pill {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    background: linear-gradient(180deg, rgba(0, 252, 236, 0.08) 0%, rgba(0, 252, 236, 0.03) 100%);
    border: 1px solid rgba(0, 252, 236, 0.35);
    border-radius: 10px;
    box-sizing: border-box;
    min-height: 46px;
}

.user-pill__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 252, 236, 0.18);
    color: #00fcec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.user-pill__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.user-pill__name {
    font-size: 13.5px;
    font-weight: 700;
    color: #f3f3f3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-pill__id {
    font-size: 10.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.user-pill__lock {
    font-size: 12px;
    opacity: 0.6;
    flex-shrink: 0;
}

/* Loading state — shown while we wait for the parent iframe.js to
   postMessage the logged-in user. */
.user-pill__spinner {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    animation: pill-spin 0.9s linear infinite;
}

@keyframes pill-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.user-pill.is-loading {
    border-color: rgba(0, 252, 236, 0.2);
    background: linear-gradient(180deg, rgba(0, 252, 236, 0.04) 0%, rgba(0, 252, 236, 0.02) 100%);
}

.user-pill.is-loading .user-pill__name {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    font-style: italic;
}

.user-pill.is-loading .user-pill__id {
    color: rgba(255, 255, 255, 0.35);
}

.user-pill.is-loading .user-pill__lock {
    display: none;
}

/* Inline status under the form (eligibility info, errors, ticket result) */
.spin-status {
    width: 100%;
    margin: 0;
    min-height: 18px;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    transition: color 0.2s ease;
}

.spin-status.is-ok    { color: #5dd1b5; }
.spin-status.is-warn  { color: #f0c79a; }
.spin-status.is-error { color: #f88; }

.search-row {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
}

.text-input {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(13, 15, 26, 0.85) 0%, rgba(20, 24, 40, 0.85) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #f3f3f3;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.text-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.text-input:focus {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.primary-btn {
    padding: 12px 28px;
    background: linear-gradient(180deg, #00fcec 0%, #07c4b6 100%);
    color: #0a0d18;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-family: inherit;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.18s ease, opacity 0.18s ease;
    box-shadow:
        0 4px 16px rgba(0, 252, 236, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 6px 22px rgba(0, 252, 236, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.primary-btn:active {
    transform: translateY(0);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Wheel area holds the pointer + spinning wheel + center button.
   Sits above the base in the stacking order so the wheel obscures
   the upper part of the stand. */
.wheel-area {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* Soft circular halo behind the wheel — pushes it forward visually
   and ties into the teal accent without competing with the center pulse. */
.wheel-area::before {
    content: none;
}

@keyframes wheel-glow {
    0% {
        opacity: 0.75;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.015);
    }
}

/* Pointer (arrow) — anchored to top of wheel area, hugs the rim */
.pointer {
    position: absolute;
    top: -2%;
    left: 50%;
    transform: translateX(-50%);
    width: 11%;
    z-index: 3;
    pointer-events: none;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}

/* Rotor wraps the wheel image + labels overlay so they spin together.
   The deceleration curve has a long "tail" so the wheel visibly crawls
   to a stop as the result lands under the pointer. */
.wheel-rotor {
    position: relative;
    width: 100%;
    height: 100%;
    transform: rotate(0deg);
    transition: transform 7.5s cubic-bezier(0.08, 0.82, 0.08, 1);
    will-change: transform;
}

.wheel-img {
    width: 100%;
    height: 100%;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Labels overlay — same viewBox as the wheel image, so coords align */
.wheel-labels {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}

/* Etched feel: pale tint pulled from the wheel's own palette,
   a soft dark line below for depth, and a faint same-hue glow
   so the text reads as part of the surface rather than a sticker. */
.wheel-label-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    fill: #c5e7e2;
    opacity: 0.92;
    filter:
        drop-shadow(0 0.7px 0 rgba(0, 0, 0, 0.7)) drop-shadow(0 0 1.4px rgba(0, 252, 236, 0.25));
}

.wheel-label-text--bonus {
    fill: #f0c79a;
    filter:
        drop-shadow(0 0.7px 0 rgba(0, 0, 0, 0.7)) drop-shadow(0 0 1.4px rgba(240, 120, 15, 0.3));
}

/* The largest prize gets a touch more presence */
.wheel-label-text--bonus.is-jackpot {
    fill: #ffd9a3;
    filter:
        drop-shadow(0 0.7px 0 rgba(0, 0, 0, 0.75)) drop-shadow(0 0 2px rgba(240, 120, 15, 0.5));
}

/* Center button */
.center-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18%;
    aspect-ratio: 1 / 1;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.center-button:focus {
    outline: none;
}

.center-button:focus-visible {
    outline: 2px solid #00fcec;
    outline-offset: 4px;
}

.center-logo {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    animation: pulse 1.6s ease-in-out infinite;
    transform-origin: center;
    will-change: transform, filter;
}

/* Pulse / breathing effect to invite a click */
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(0, 252, 236, 0));
    }

    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 14px rgba(0, 252, 236, 0.55));
    }
}

/* Press feedback */
.center-button:active .center-logo {
    transform: scale(0.94);
    transition: transform 0.08s ease-out;
}

/* While the wheel is spinning, freeze the pulse so the action feels committed */
.wheel-assembly.is-spinning .center-logo {
    animation-play-state: paused;
    transform: scale(1);
    filter: none;
}

.wheel-assembly.is-spinning .center-button {
    cursor: default;
}

/* Base (foot) — wide stand that sits BEHIND the wheel; the wheel
   covers the upper portion of the column so it looks like one piece. */
.base {
    position: relative;
    width: 55%;
    margin-top: -31%;
    z-index: 1;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* ─── Results panel ────────────────────────────────────────────── */

.results {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #14181f 0%, #0d1117 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

.results::before {
    content: none;
}

.results__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.results__title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(230, 230, 230, 0.78);
    margin: 0;
}

/* ─── User bar above the wheel (current spinner) ─── */

.user-bar {
    position: relative;
    width: min(420px, 100%);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: radial-gradient(circle at 30% 0%, #2a3036 0%, #1a1f25 80%);
    border: 1px solid rgba(0, 252, 236, 0.22);
    border-radius: 14px;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    align-self: start;
    overflow: hidden;
}

.user-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00fcec 0%, #07d9cb 50%, #f0780f 100%);
}

.user-bar .user-avatar {
    width: 42px;
    height: 42px;
    background: radial-gradient(circle at 30% 30%, rgba(0, 252, 236, 0.3), rgba(0, 252, 236, 0.08));
    border-color: rgba(0, 252, 236, 0.5);
}

.user-bar .user-name {
    font-size: 16px;
}

.results__list {
    list-style: none;
    margin: 0;
    padding: 14px 16px;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.results__list::-webkit-scrollbar {
    width: 6px;
}

.results__list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 3px;
}

.results__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    margin: 8px 6px;
    background: linear-gradient(180deg, rgba(26, 30, 38, 0.6) 0%, rgba(18, 22, 28, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    animation: result-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.results__item:first-child {
    border-color: rgba(255, 255, 255, 0.18);
}

@keyframes result-in {
    from {
        opacity: 0;
        transform: translateX(14px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.user-avatar {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
}

.user-avatar svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.user-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.user-name {
    font-size: 15px;
    font-weight: 700;
    color: #f3f3f3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.01em;
}

.user-id {
    font-size: 11px;
    font-weight: 500;
    color: rgba(230, 230, 230, 0.45);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.results__prize {
    flex: 0 0 auto;
    width: 110px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 6px 10px;
    border-radius: 5px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    text-align: center;
    box-sizing: border-box;
}

/* Kazanma tarihi (liste öğesinin sağ kenarında, ödül rozetinin yanında) */
.results__time {
    flex: 0 0 auto;
    width: 88px;
    font-size: 11.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    text-align: center;
    order: 3;
}

.results__prize { order: 2; }
.user-text       { order: 1; }
.user-avatar     { order: 0; }

/* ─── Tablo başlık satırı ───────────────────────────────────── */
.results__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    /* Daralan kolonlarda yazı taşmasın diye font ve tracking responsive */
    font-size: clamp(9px, 0.85vw, 11px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

/* Üç başlık da tek satırda kalsın; sığmazsa kırpılsın (… koymadan, kolonlar zaten dar) */
.results__head-name,
.results__head-prize,
.results__head-date {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

.results__head-name {
    flex: 1 1 auto;
    /* Hesaplama: avatar 38px + gap 14px = 52px sola itiyoruz */
    margin-left: 52px;
}

.results__head-prize {
    flex: 0 0 auto;
    width: 110px;
    text-align: left;
}

.results__head-date {
    flex: 0 0 auto;
    width: 88px;
    text-align: center;
}

.results__prize--fs {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.results__prize--bonus {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.results__empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: rgba(230, 230, 230, 0.45);
    letter-spacing: 0.04em;
    padding: 20px;
}

.results.has-items .results__empty {
    display: none;
}

/* ─── Medium viewports: list drops below the wheel.
   The wheel grows a bit since it now has the full width to itself. */
@media (max-width: 1180px) {

    html,
    body {
        overflow: auto;
    }

    .stage {
        height: auto;
        min-height: 100vh;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 24px;
        padding: clamp(20px, 3vw, 40px);
    }

    .pane {
        padding: 0;
        justify-items: center;
    }

    .pane--results {
        justify-items: center;
    }

    .wheel-assembly {
        width: min(720px, 84vmin);
    }

    .results {
        width: 100%;
        max-width: 720px;
        height: 440px;
    }
}

/* ─── Mobile: tighter sizing ───────────────────────────────── */
@media (max-width: 820px) {

    .stage {
        gap: 16px;
        padding: 16px 12px;
    }

    .wheel-assembly {
        width: min(560px, 92vmin);
    }

    .results {
        height: 360px;
    }

    .title-pill {
        font-size: 13px;
        padding: 9px 22px;
        letter-spacing: 0.14em;
    }

    .text-input,
    .primary-btn {
        font-size: 13px;
        padding: 10px 14px;
    }
}
/* ─── Result modal (opens after the wheel stops spinning) ─────── */

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.22s ease;
}

.modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 14, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal__card {
    position: relative;
    width: min(380px, 92vw);
    background: linear-gradient(180deg, #1a1f29 0%, #0f1219 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 28px 26px 22px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    text-align: center;
    transform: translateY(12px) scale(0.96);
    transition: transform 0.28s cubic-bezier(0.18, 0.9, 0.2, 1.05);
}

.modal[aria-hidden="false"] .modal__card {
    transform: translateY(0) scale(1);
}

.modal__visual {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.65);
}

.modal__visual svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.modal__visual.is-spin svg {
    animation: modal-spin 0.9s linear infinite;
}

@keyframes modal-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.modal__title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #f3f3f3;
    margin: 0 0 14px;
}

.modal__prize {
    display: inline-block;
    padding: 8px 18px;
    margin: 0 auto 18px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 5px;
}

.modal__step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 14px;
    margin: 0 0 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.modal__step-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: currentColor;
}

.modal__step-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.modal__step-icon.is-spin svg {
    animation: modal-spin 0.9s linear infinite;
}

/* State variants for the step row */
.modal[data-state="queued"]     .modal__step { color: rgba(255, 255, 255, 0.7); }
.modal[data-state="processing"] .modal__step { color: #00fcec; border-color: rgba(0, 252, 236, 0.25); background: rgba(0, 252, 236, 0.06); }
.modal[data-state="done"]       .modal__step { color: #5dd1b5; border-color: rgba(93, 209, 181, 0.4); background: rgba(93, 209, 181, 0.08); }
.modal[data-state="error"]      .modal__step { color: #f88;    border-color: rgba(220, 70, 70, 0.4); background: rgba(220, 70, 70, 0.08); }

/* Visual icon variants */
.modal[data-state="done"]  .modal__visual { color: #5dd1b5; border-color: rgba(93, 209, 181, 0.45); background: rgba(93, 209, 181, 0.1); }
.modal[data-state="error"] .modal__visual { color: #f88;    border-color: rgba(220, 70, 70, 0.4);  background: rgba(220, 70, 70, 0.1); }

.modal__close {
    width: 100%;
    padding: 11px 18px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.modal__close:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.modal__claim {
    width: 100%;
    padding: 11px 18px;
    font-size: 13px;
}

.modal[data-state="claimed"] .modal__claim,
.modal[data-state="processing"] .modal__claim,
.modal[data-state="claiming"] .modal__claim,
.modal[data-state="done"] .modal__claim,
.modal[data-state="rejected"] .modal__claim,
.modal[data-state="error"] .modal__claim {
    display: none;
}

.modal[data-state="ready"] .modal__step,
.modal[data-state="initial"] .modal__step {
    display: none;
}

.modal[data-state="queued"] .modal__close,
.modal[data-state="processing"] .modal__close {
    opacity: 0.5;
}
