.stream-spin-page {
    --spin-blue: #2f7bff;
    --spin-cyan: #30d9ff;
    background: #030405;
    overflow-x: auto;
}

.stream-spin-page .logo-wrld-accent { color: var(--spin-blue); }

.spin-shell {
    width: min(1660px, calc(100vw - 18px));
    min-width: 1120px;
    margin: 0 auto;
    padding: 70px 0 10px;
}

.spin-game-frame {
    display: grid;
    grid-template-columns: 286px minmax(600px, 1fr) 276px;
    min-height: calc(100vh - 80px);
    max-height: 780px;
    overflow: hidden;
    border: 2px solid #123e79;
    background: #030405;
    box-shadow: inset 0 0 0 1px #08162a;
}

.spin-sidebar {
    padding: 23px 18px 16px;
    border-right: 1px solid #123e79;
}

.spin-heading {
    padding: 0 8px 17px;
    border-bottom: 2px dotted #205cab;
}

.spin-pixel-label,
.spin-filters label > span,
.spin-machine-topline {
    color: var(--spin-cyan);
    font-family: "Press Start 2P", monospace;
    font-size: 8px;
    line-height: 1.7;
}

.spin-heading .spin-pixel-label { margin: 0 0 12px; }

.spin-heading h1 {
    margin: 0;
    color: #f8f6ff;
    font-family: "Press Start 2P", monospace;
    font-size: 37px;
    font-weight: 400;
    letter-spacing: -.075em;
    line-height: 1.2;
    text-transform: uppercase;
}

.spin-demo-note {
    margin: 14px 0 0;
    color: #64dfff;
    font: 6px/1.6 "Press Start 2P", monospace;
}

.spin-filters {
    display: grid;
    gap: 10px;
    margin-top: 17px;
}

.spin-filters label {
    position: relative;
    display: grid;
    min-height: 54px;
    grid-template-columns: 47px minmax(0, 1fr);
    grid-template-rows: 22px 24px;
    padding: 5px 8px 4px 0;
    border: 2px solid #1759a4;
    background: #020508;
    box-shadow: 4px 4px 0 #071d38;
}

.spin-filters label::before {
    content: attr(data-icon);
    display: grid;
    grid-row: 1 / 3;
    place-items: center;
    border-right: 1px solid #1759a4;
    color: var(--spin-cyan);
    font: 25px/1 "Press Start 2P", monospace;
}

.spin-filters label > span {
    align-self: end;
    padding-left: 12px;
    font-size: 6px;
}

.spin-filters select {
    align-self: start;
    width: 100%;
    padding: 2px 7px 0 10px;
    border: 0;
    outline: 0;
    background: #020508;
    color: #fff;
    font: 700 11px Inter, system-ui, sans-serif;
}

.spin-controls { margin: 20px 0 0; }

.spin-primary-button {
    width: calc(100% - 8px);
    min-height: 58px;
    border: 0;
    background: #fff;
    color: #050506;
    cursor: pointer;
    font-family: "Press Start 2P", monospace;
    font-size: 9px;
    box-shadow: 8px 8px 0 var(--spin-blue);
}

.spin-primary-button:disabled { cursor: not-allowed; opacity: .42; }

.spin-sound-toggle {
    margin-top: 12px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: #8993a3;
    cursor: pointer;
    font: 6px "Press Start 2P", monospace;
}

.spin-sound-toggle span { color: var(--spin-cyan); font-size: 12px; }

.spin-status {
    margin: 12px 0 0;
    color: #667185;
    font: 6px/1.7 "Press Start 2P", monospace;
}

.spin-machine {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.spin-machine-topline {
    position: absolute;
    z-index: 8;
    top: 20px;
    right: 24px;
    left: 24px;
    display: flex;
    justify-content: space-between;
}

.spin-machine-topline strong {
    color: #8d96a5;
    font: 9px Inter, system-ui, sans-serif;
}

.spin-globe-stage {
    position: absolute;
    inset: 42px 0 0;
}

.orbit-track {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(74%, 680px);
    aspect-ratio: 1.35;
    border: 1px dashed rgba(47, 123, 255, .58);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-globe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(210px, 28vw, 292px);
    max-width: 34%;
    aspect-ratio: 1;
    background: url("/static/assets/stream-spin-globe.png") center / contain no-repeat;
    image-rendering: pixelated;
    transform: translate(-50%, -50%);
}

.orbit-globe::before,
.orbit-globe::after,
.orbit-globe i,
.orbit-globe b { display: none; }

.orbit-card {
    position: absolute;
    display: grid;
    width: 128px;
    height: 54px;
    box-sizing: border-box;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 2px solid #17529a;
    background: #03070c;
    color: #fff;
    transform: translate(-50%, -50%);
}

.orbit-card img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border: 2px solid #2f7bff;
    background: #09111c;
}

.orbit-placeholder-avatar {
    display: grid !important;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 2px solid #17529a;
    background: repeating-linear-gradient(135deg, #06101e 0 7px, #091a30 7px 14px);
    color: var(--spin-cyan);
    font: 10px "Press Start 2P", monospace;
}

.orbit-card.is-placeholder {
    border-style: dashed;
    background: rgba(3, 7, 12, .72);
    color: #6f7d91;
}

.orbit-card.is-placeholder strong {
    color: #7e8ba0;
    font: 6px/1.6 "Press Start 2P", monospace;
}

.orbit-card.is-placeholder small {
    color: #31547c;
    font: 6px "Press Start 2P", monospace;
}

.orbit-card span,
.orbit-card strong,
.orbit-card small { display: block; min-width: 0; }
.orbit-card strong { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.orbit-card small { margin-top: 4px; color: #aeb5c2; font-size: 5px; }
.orbit-card i { font-style: normal; font-weight: 900; text-transform: uppercase; }

.orbit-card-0  { top: 12%; left: 50%; }
.orbit-card-1  { top: 18%; left: 68%; }
.orbit-card-2  { top: 31%; left: 82%; }
.orbit-card-3  { top: 50%; left: 87%; }
.orbit-card-4  { top: 69%; left: 82%; }
.orbit-card-5  { top: 82%; left: 68%; }
.orbit-card-6  { top: 88%; left: 50%; }
.orbit-card-7  { top: 82%; left: 32%; }
.orbit-card-8  { top: 69%; left: 18%; }
.orbit-card-9  { top: 50%; left: 13%; }
.orbit-card-10 { top: 31%; left: 18%; }
.orbit-card-11 { top: 18%; left: 32%; }

.orbit-card.is-active {
    z-index: 5;
    border: 2px solid #fff;
    outline: 3px solid var(--spin-blue);
    background: #113b70;
    box-shadow: 0 0 25px rgba(48, 217, 255, .85);
    filter: brightness(1.22);
}

.orbit-card.is-winner { background: #123d73; }
.spin-globe-stage.is-spinning .orbit-globe { animation: earth-pulse .52s steps(2, end) infinite; }
.spin-globe-stage.has-winner .orbit-card.is-winner { animation: winner-lock .7s steps(3, end); }

@keyframes earth-pulse { 50% { filter: brightness(1.12) drop-shadow(0 0 9px rgba(48, 217, 255, .55)); } }
@keyframes winner-lock { 50% { filter: brightness(1.65); box-shadow: 0 0 34px var(--spin-cyan); } }
@keyframes spin-preview-drift {
    from { transform: scale(1.02) translate3d(-1%, 0, 0); filter: brightness(.82) saturate(.9); }
    to { transform: scale(1.1) translate3d(2%, -1%, 0); filter: brightness(1) saturate(1.1); }
}

.spin-result {
    align-self: center;
    margin: 18px 12px;
}

.spin-result > .spin-pixel-label {
    margin: 0;
    padding: 13px 14px 10px;
    border: 2px solid #17529a;
    border-bottom: 0;
}

.spin-result-card {
    overflow: hidden;
    border: 2px solid #17529a;
    background: #03070c;
    box-shadow: 7px 7px 0 #071d38;
}

.spin-result-empty {
    display: grid;
    min-height: 365px;
    place-content: center;
    padding: 24px;
    color: #7f899a;
    text-align: center;
}

.spin-result-empty strong,
.spin-result-empty small { display: block; margin-top: 14px; }
.spin-result-placeholder { color: var(--spin-cyan); font: 42px "Press Start 2P", monospace; }
.spin-result-image { position: relative; height: 172px; overflow: hidden; background: #0b1118; }
.spin-result-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(180deg, transparent 0 5px, rgba(47, 123, 255, .08) 5px 6px);
    box-shadow: inset 0 0 45px rgba(0, 0, 0, .55);
}
.spin-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: spin-preview-drift 8s ease-in-out infinite alternate;
}
.spin-result-image > span {
    position: absolute;
    z-index: 2;
    top: 13px;
    padding: 7px 9px;
    color: #fff;
    font: 6px "Press Start 2P", monospace;
}
.spin-live-badge { left: 13px; background: #ff3659; }
.spin-preview-badge { right: 13px; border: 1px solid #2f7bff; background: rgba(2, 5, 8, .88); }
.spin-result-body { padding: 15px; }
.spin-result-body > small { color: var(--spin-cyan); font: 6px "Press Start 2P", monospace; }
.spin-result-body h2 { margin: 10px 0 8px; font-size: 23px; }
.spin-result-body p { display: flex; gap: 9px; margin: 0 0 13px; color: #aaaeb8; font-size: 10px; }
.spin-result-body p b { font-size: 8px; }
.spin-result-body > strong { font-size: 11px; }
.spin-result-body a {
    display: flex;
    justify-content: space-between;
    margin: 15px -8px -8px;
    padding: 16px 14px;
    border: 2px solid #fff;
    background: #fff;
    color: #030405;
    font: 8px "Press Start 2P", monospace;
    text-decoration: none;
    box-shadow: 7px 7px 0 #2f7bff;
}
.spin-result-body a:hover,
.spin-result-body a:focus-visible { background: #30d9ff; border-color: #30d9ff; outline: 2px solid #fff; outline-offset: 3px; }
.platform-twitch { color: #b47aff !important; }
.platform-kick { color: #53fc18 !important; }
.platform-youtube { color: #ff3659 !important; }

@media (max-height: 780px) {
    .spin-shell { padding-top: 62px; }
    .spin-game-frame { min-height: 650px; }
    .spin-sidebar { padding-top: 16px; }
    .spin-heading h1 { font-size: 34px; }
    .spin-heading { padding-bottom: 12px; }
    .spin-filters { gap: 7px; margin-top: 12px; }
    .spin-filters label { min-height: 48px; grid-template-rows: 19px 22px; }
    .spin-controls { margin-top: 14px; }
    .spin-primary-button { min-height: 52px; }
    .orbit-card-0 { top: 11%; }
    .orbit-card-6 { top: 89%; }
}

@media (max-width: 760px) {
    .stream-spin-page {
        overflow-x: hidden;
    }

    .spin-shell {
        width: 100%;
        min-width: 0;
        padding: 62px 0 0;
    }

    .spin-game-frame {
        display: flex;
        min-height: 0;
        max-height: none;
        flex-direction: column;
        overflow: visible;
        border-width: 1px 0;
    }

    .spin-sidebar {
        padding: 16px 14px 18px;
        border-right: 0;
        border-bottom: 1px solid #123e79;
    }

    .spin-heading {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 12px;
        padding: 0 2px 12px;
    }

    .spin-heading .spin-pixel-label {
        margin: 0 0 4px;
    }

    .spin-heading h1 {
        max-width: 220px;
        font-size: clamp(25px, 8vw, 34px);
        line-height: 1.08;
    }

    .spin-demo-note {
        display: none;
    }

    .spin-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 12px;
    }

    .spin-filters label {
        min-width: 0;
        min-height: 50px;
        grid-template-columns: 35px minmax(0, 1fr);
        grid-template-rows: 20px 22px;
        border-width: 1px;
        box-shadow: 3px 3px 0 #071d38;
    }

    .spin-filters label::before {
        font-size: 16px;
    }

    .spin-filters label > span {
        padding-left: 8px;
        font-size: 5px;
    }

    .spin-filters select {
        min-width: 0;
        padding-left: 6px;
        font-size: 10px;
    }

    .spin-controls {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
        margin-top: 14px;
    }

    .spin-primary-button {
        width: 100%;
        min-height: 50px;
        font-size: 8px;
        box-shadow: 5px 5px 0 var(--spin-blue);
    }

    .spin-sound-toggle {
        margin: 0;
        padding: 12px 4px;
    }

    .spin-status {
        margin-top: 10px;
        font-size: 5px;
    }

    .spin-machine {
        width: 100%;
        height: min(104vw, 430px);
        min-height: 350px;
        border-bottom: 1px solid #123e79;
    }

    .spin-machine-topline {
        top: 14px;
        right: 14px;
        left: 14px;
    }

    .spin-globe-stage {
        inset: 36px 0 0;
    }

    .orbit-track {
        width: 90%;
        aspect-ratio: 1.05;
    }

    .orbit-globe {
        width: clamp(126px, 40vw, 172px);
        max-width: none;
    }

    .orbit-card {
        width: clamp(76px, 23vw, 94px);
        height: 40px;
        grid-template-columns: 27px minmax(0, 1fr);
        gap: 4px;
        padding: 4px;
        border-width: 1px;
    }

    .orbit-card img,
    .orbit-placeholder-avatar {
        width: 25px;
        height: 25px;
        border-width: 1px;
    }

    .orbit-card strong {
        font-size: 6px;
    }

    .orbit-card small,
    .orbit-card.is-placeholder small {
        margin-top: 3px;
        font-size: 4px;
    }

    .orbit-card.is-placeholder strong {
        font-size: 4px;
    }

    .orbit-card.is-active {
        border-width: 1px;
        outline-width: 2px;
    }

    .orbit-card-0  { top: 9%; }
    .orbit-card-1  { top: 15%; left: 70%; }
    .orbit-card-2  { top: 29%; left: 86%; }
    .orbit-card-3  { left: 88%; }
    .orbit-card-4  { top: 71%; left: 86%; }
    .orbit-card-5  { top: 85%; left: 70%; }
    .orbit-card-6  { top: 91%; }
    .orbit-card-7  { top: 85%; left: 30%; }
    .orbit-card-8  { top: 71%; left: 14%; }
    .orbit-card-9  { left: 12%; }
    .orbit-card-10 { top: 29%; left: 14%; }
    .orbit-card-11 { top: 15%; left: 30%; }

    .spin-result {
        width: auto;
        align-self: stretch;
        margin: 16px 14px 24px;
    }

    .spin-result-empty {
        min-height: 160px;
    }

    .spin-result-image {
        height: min(54vw, 220px);
    }

    .spin-result-body a {
        min-height: 52px;
        align-items: center;
    }
}

@media (max-width: 380px) {
    .spin-filters {
        grid-template-columns: 1fr;
    }

    .spin-machine {
        height: 390px;
    }

    .orbit-card {
        width: 78px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .spin-globe-stage.is-spinning .orbit-globe,
    .spin-globe-stage.has-winner .orbit-card.is-winner,
    .spin-result-image img { animation: none; }
}

