/**
 * Lobbynite Set Locker — cinematic visual pilot.
 *
 * This layer is intentionally scoped to .set-locker-page. It only changes
 * presentation and leaves the wizard IDs, data attributes and API flow intact.
 */

body .set-locker-page {
    --locker-ink: #020617;
    --locker-panel: rgba(3, 8, 24, 0.91);
    --locker-panel-soft: rgba(7, 14, 35, 0.84);
    --locker-cyan: #1de7ff;
    --locker-blue: #2788ff;
    --locker-violet: #8b5cf6;
    --locker-magenta: #e83cff;
    --locker-green: #37ffc1;
    --locker-line: rgba(91, 132, 255, 0.34);
    position: relative;
    isolation: isolate;
    width: 100vw;
    max-width: none;
    min-height: 100vh;
    margin: 0 0 0 calc(50% - 50vw);
    padding: clamp(44px, 6vw, 86px) max(20px, calc((100vw - 1240px) / 2)) 96px;
    overflow: hidden;
    background: var(--locker-ink);
}

body .set-locker-page::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        url('../images/set-locker-cinematic-v1.webp') center top / max(100vw, 1500px) auto no-repeat,
        #020617;
    filter: none;
}

body .set-locker-page::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.1) 0, rgba(2, 6, 23, 0.5) 410px, #020617 1120px),
        radial-gradient(circle at 50% 260px, transparent 0, rgba(2, 6, 23, 0.14) 36%, rgba(2, 6, 23, 0.72) 78%),
        linear-gradient(90deg, rgba(0, 177, 255, 0.1), transparent 25%, transparent 75%, rgba(192, 38, 255, 0.12));
    pointer-events: none;
}

main:has(.set-locker-page) {
    overflow: visible;
}

body .set-locker-page .set-header {
    position: relative;
    max-width: 1060px;
    margin: 0 auto clamp(30px, 5vw, 58px);
    padding: clamp(26px, 4vw, 46px) 22px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

body .set-locker-page .set-header::before {
    content: 'LOBBYNITE  /  LOCKER STUDIO';
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 13px;
    padding: 5px 16px;
    border: 1px solid rgba(29, 231, 255, 0.46);
    border-radius: 999px;
    background: rgba(3, 9, 26, 0.66);
    box-shadow: 0 0 28px rgba(29, 231, 255, 0.2), inset 0 0 14px rgba(29, 231, 255, 0.08);
    color: #7ceeff;
    font: 800 0.74rem/1 'Outfit', 'Poppins', sans-serif;
    letter-spacing: 0.22em;
}

body .set-locker-page .set-header h1 {
    margin: 0 0 10px;
    color: #fff;
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: clamp(3rem, 8vw, 6.6rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.9;
    text-transform: uppercase;
    text-shadow:
        0 2px 0 rgba(255, 255, 255, 0.2),
        0 0 24px rgba(29, 231, 255, 0.48),
        0 0 60px rgba(124, 58, 237, 0.48),
        0 12px 35px rgba(0, 0, 0, 0.9);
}

body .set-locker-page .set-description {
    max-width: 760px;
    margin: 0 auto;
    color: rgba(240, 247, 255, 0.9);
    font-size: clamp(0.98rem, 1.8vw, 1.18rem);
    font-weight: 500;
    line-height: 1.55;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.92);
}

body .set-locker-page .current-set-preview,
body .set-locker-page .step-wizard {
    width: min(1180px, 100%);
    margin-right: auto;
    margin-left: auto;
    border: 1px solid var(--locker-line);
    background:
        linear-gradient(145deg, rgba(9, 21, 52, 0.87), rgba(2, 6, 23, 0.96) 58%),
        var(--locker-panel);
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.72),
        0 0 0 1px rgba(29, 231, 255, 0.05),
        -14px 0 50px rgba(0, 173, 255, 0.09),
        14px 0 50px rgba(207, 39, 255, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: none;
}

body .set-locker-page .current-set-preview {
    position: relative;
    margin-top: 0;
    margin-bottom: 12px;
    padding: 24px clamp(20px, 4vw, 42px) 42px;
    overflow: hidden;
    border-color: rgba(29, 231, 255, 0.48);
    border-radius: 26px 26px 14px 14px;
}

body .set-locker-page .current-set-preview::before {
    content: '';
    position: absolute;
    top: 0;
    right: 8%;
    left: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--locker-cyan), var(--locker-violet), var(--locker-magenta), transparent);
    box-shadow: 0 0 20px rgba(29, 231, 255, 0.9);
}

body .set-locker-page .current-set-preview h3 {
    margin: 0 0 21px;
    color: #f8fbff;
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-align: center;
    text-transform: uppercase;
}

body .set-locker-page .set-slots {
    display: grid;
    grid-template-columns: repeat(5, minmax(104px, 1fr));
    gap: clamp(12px, 2.2vw, 26px);
    width: min(780px, 100%);
    margin: 0 auto;
}

body .set-locker-page .set-slot {
    width: clamp(88px, 9vw, 112px);
    height: clamp(88px, 9vw, 112px);
    margin: 0 auto;
    border: 2px solid rgba(139, 92, 246, 0.7);
    background:
        radial-gradient(circle at 50% 45%, rgba(37, 99, 235, 0.2), transparent 68%),
        rgba(2, 7, 22, 0.94);
    box-shadow:
        0 0 0 6px rgba(30, 64, 175, 0.07),
        0 0 24px rgba(124, 58, 237, 0.28),
        inset 0 0 24px rgba(29, 231, 255, 0.08);
}

body .set-locker-page .set-slot:nth-child(odd) {
    border-color: rgba(29, 231, 255, 0.72);
    box-shadow:
        0 0 0 6px rgba(8, 145, 178, 0.06),
        0 0 24px rgba(29, 231, 255, 0.22),
        inset 0 0 24px rgba(29, 231, 255, 0.08);
}

body .set-locker-page .set-slot.filled {
    border-color: var(--locker-green);
    box-shadow:
        0 0 0 6px rgba(55, 255, 193, 0.06),
        0 0 28px rgba(55, 255, 193, 0.38),
        inset 0 0 22px rgba(55, 255, 193, 0.09);
}

body .set-locker-page .set-slot:hover {
    border-color: #fff;
    transform: translateY(-4px) scale(1.025);
    box-shadow: 0 0 34px rgba(29, 231, 255, 0.46);
}

body .set-locker-page .set-slot img {
    width: 88%;
    height: 88%;
    filter: drop-shadow(0 9px 12px rgba(0, 0, 0, 0.65));
}

body .set-locker-page .set-slot-label {
    bottom: -25px;
    color: rgba(239, 246, 255, 0.82);
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}

body .set-locker-page .step-wizard {
    position: relative;
    margin-bottom: 0;
    padding: clamp(22px, 4vw, 42px);
    border-color: rgba(139, 92, 246, 0.5);
    border-radius: 14px 14px 28px 28px;
}

body .set-locker-page .step-wizard::after {
    content: '';
    position: absolute;
    right: 24px;
    bottom: -1px;
    left: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--locker-violet), var(--locker-magenta), transparent);
    box-shadow: 0 0 20px rgba(232, 60, 255, 0.72);
}

body .set-locker-page .wizard-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 clamp(28px, 4vw, 42px);
    padding: 15px 12px 13px;
    overflow: visible;
    border: 1px solid rgba(93, 117, 210, 0.26);
    border-radius: 16px;
    background: rgba(1, 5, 18, 0.58);
}

body .set-locker-page .wizard-steps::before {
    top: 34px;
    right: 9%;
    left: 9%;
    height: 1px;
    background: linear-gradient(90deg, rgba(29, 231, 255, 0.52), rgba(139, 92, 246, 0.5));
}

body .set-locker-page .step-item {
    min-width: 0;
}

body .set-locker-page .step-circle {
    width: 40px;
    height: 40px;
    margin-bottom: 7px;
    border: 1px solid rgba(148, 163, 184, 0.58);
    background: #050a18;
    color: #dbeafe;
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 0 0 5px rgba(2, 6, 23, 0.9);
}

body .set-locker-page .step-item.active .step-circle {
    border-color: #c5f7ff;
    background: linear-gradient(145deg, #12d9ff, #1688ff);
    color: #00111a;
    box-shadow: 0 0 0 5px rgba(2, 6, 23, 0.9), 0 0 26px rgba(29, 231, 255, 0.72);
}

body .set-locker-page .step-item.completed .step-circle {
    border-color: #b8ffe8;
    background: linear-gradient(145deg, #37ffc1, #16c79a);
    color: #001810;
}

body .set-locker-page .step-label {
    overflow: hidden;
    color: #98a6c6;
    font-size: clamp(0.65rem, 1vw, 0.78rem);
    font-weight: 650;
    text-overflow: ellipsis;
}

body .set-locker-page .step-item.active .step-label {
    color: var(--locker-cyan);
    font-weight: 800;
    text-shadow: 0 0 13px rgba(29, 231, 255, 0.46);
}

body .set-locker-page .wizard-title {
    margin-bottom: 3px;
    color: #fff;
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 0 24px rgba(139, 92, 246, 0.32);
}

body .set-locker-page .wizard-subtitle {
    margin-bottom: 24px;
    color: #9eabc8;
    font-size: 0.9rem;
}

body .set-locker-page .filters-bar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
    padding: 16px;
    border: 1px solid rgba(88, 111, 194, 0.22);
    border-radius: 15px;
    background: rgba(1, 5, 18, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body .set-locker-page .filter-group {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

body .set-locker-page .filter-group:first-child {
    grid-column: span 2;
}

body .set-locker-page .filter-label {
    color: #96a4c4;
    font-size: 0.72rem;
    font-weight: 750;
}

body .set-locker-page .filter-select,
body .set-locker-page .filter-search {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid rgba(104, 125, 206, 0.34);
    border-radius: 10px;
    outline: 0;
    background-color: rgba(9, 15, 35, 0.96);
    color: #eef6ff;
    font-size: 0.78rem;
    box-shadow: inset 0 1px 7px rgba(0, 0, 0, 0.35);
}

body .set-locker-page .filter-select:focus,
body .set-locker-page .filter-search:focus {
    border-color: var(--locker-cyan);
    box-shadow: 0 0 0 3px rgba(29, 231, 255, 0.12), 0 0 18px rgba(29, 231, 255, 0.16);
}

body .set-locker-page .filter-search::placeholder {
    color: #6f7d9e;
}

body .set-locker-page .results-counter {
    margin: 0 0 10px;
    color: #8997b7;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
}

body .set-locker-page .results-counter #resultsCount {
    color: var(--locker-cyan);
    font-weight: 800;
}

body .set-locker-page .selection-grid {
    grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
    gap: 13px;
    max-height: 760px;
    margin: 0 0 22px;
    padding: 15px;
    border: 1px solid rgba(82, 105, 190, 0.18);
    border-radius: 17px;
    background: rgba(0, 3, 14, 0.62);
    scrollbar-color: var(--locker-cyan) rgba(3, 8, 24, 0.75);
    scrollbar-width: thin;
}

body .set-locker-page .selection-grid::-webkit-scrollbar {
    width: 8px;
}

body .set-locker-page .selection-grid::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(3, 8, 24, 0.75);
}

body .set-locker-page .selection-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(var(--locker-cyan), var(--locker-violet));
}

body .set-locker-page .selection-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(129, 91, 246, 0.68);
    border-radius: 13px;
    background: linear-gradient(160deg, rgba(20, 20, 54, 0.96), rgba(5, 8, 24, 0.98));
    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.38),
        0 0 16px rgba(124, 58, 237, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body .set-locker-page .selection-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 10%;
    left: 10%;
    z-index: 2;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 60, 255, 0.88), transparent);
}

body .set-locker-page .selection-card:hover {
    z-index: 2;
    border-color: var(--locker-cyan);
    transform: translateY(-5px) scale(1.015);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), 0 0 24px rgba(29, 231, 255, 0.32);
}

body .set-locker-page .selection-card.selected {
    border-color: var(--locker-green);
    box-shadow: 0 0 0 1px rgba(55, 255, 193, 0.42), 0 0 30px rgba(55, 255, 193, 0.36);
}

body .set-locker-page .selection-card.selected::after {
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: var(--locker-green);
    color: #001810;
    box-shadow: 0 0 18px rgba(55, 255, 193, 0.72);
}

body .set-locker-page .selection-image {
    position: relative;
    padding: 9px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 46%, rgba(60, 93, 246, 0.28), transparent 58%),
        linear-gradient(180deg, rgba(13, 20, 51, 0.92), rgba(2, 5, 18, 0.96));
}

body .set-locker-page .selection-image::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 38%;
    background: linear-gradient(transparent, rgba(4, 6, 21, 0.64));
    pointer-events: none;
}

body .set-locker-page .selection-image img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 9px 10px rgba(0, 0, 0, 0.58));
    transition: transform 220ms ease;
}

body .set-locker-page .selection-card:hover .selection-image img {
    transform: scale(1.055);
}

body .set-locker-page .selection-info {
    position: relative;
    z-index: 2;
    padding: 10px 9px 11px;
    border-top: 1px solid rgba(124, 92, 246, 0.28);
    background: linear-gradient(180deg, rgba(15, 16, 45, 0.96), rgba(5, 7, 22, 0.98));
    text-align: center;
}

body .set-locker-page .selection-name {
    color: #f8fbff;
    font-size: 0.8rem;
    font-weight: 750;
}

body .set-locker-page .selection-rarity {
    margin-top: 2px;
    font-family: 'Outfit', 'Poppins', sans-serif;
    letter-spacing: 0.055em;
}

body .set-locker-page .selection-set {
    color: #7d89a7;
}

body .set-locker-page .wizard-actions {
    gap: 12px;
    margin-top: 24px;
}

body .set-locker-page .wizard-actions .btn {
    min-width: 170px;
    min-height: 50px;
    border-radius: 13px;
    font-family: 'Outfit', 'Poppins', sans-serif;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body .set-locker-page .wizard-actions .btn-primary,
body .set-locker-page .wizard-actions .btn-success {
    border: 1px solid rgba(166, 243, 255, 0.74);
    background: linear-gradient(100deg, #0878f5, #6d35e7 60%, #d62de9);
    color: #fff;
    box-shadow: 0 0 25px rgba(27, 169, 255, 0.28), 0 0 28px rgba(210, 45, 233, 0.18);
}

body .set-locker-page .wizard-actions .btn:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

body .set-locker-page .wizard-actions .btn:disabled {
    opacity: 0.42;
    filter: grayscale(0.45);
}

body .set-locker-page .set-choice-modal {
    background: rgba(1, 4, 15, 0.82);
    backdrop-filter: blur(12px);
}

body .set-locker-page .set-choice-dialog {
    border: 1px solid rgba(29, 231, 255, 0.45);
    background: linear-gradient(145deg, rgba(8, 18, 43, 0.98), rgba(3, 6, 21, 0.99));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72), 0 0 34px rgba(124, 58, 237, 0.24);
}

@media (max-width: 980px) {
    body .set-locker-page .filters-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .set-locker-page .filter-group:first-child {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    body .set-locker-page {
        padding: 42px 14px 66px;
    }

    body .set-locker-page::before {
        background-position: 42% top;
        background-size: auto 760px;
    }

    body .set-locker-page .set-header {
        margin-bottom: 24px;
        padding: 24px 10px;
    }

    body .set-locker-page .set-header::before {
        letter-spacing: 0.16em;
    }

    body .set-locker-page .current-set-preview {
        padding: 22px 15px 40px;
        border-radius: 20px 20px 12px 12px;
    }

    body .set-locker-page .set-slots {
        display: flex;
        gap: 12px 9px;
        justify-content: center;
    }

    body .set-locker-page .set-slot {
        width: 76px;
        height: 76px;
    }

    body .set-locker-page .step-wizard {
        padding: 18px 13px 26px;
        border-radius: 12px 12px 22px 22px;
    }

    body .set-locker-page .wizard-steps {
        grid-template-columns: repeat(5, minmax(64px, 1fr));
        padding-right: 6px;
        padding-left: 6px;
        overflow-x: auto;
    }

    body .set-locker-page .step-circle {
        width: 35px;
        height: 35px;
    }

    body .set-locker-page .filters-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding: 12px;
    }

    body .set-locker-page .filter-group {
        width: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    body .set-locker-page .filter-group:first-child {
        grid-column: 1 / -1;
    }

    body .set-locker-page .selection-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
        padding: 9px;
    }
}

@media (max-width: 520px) {
    body .set-locker-page .set-header::before {
        font-size: 0.62rem;
    }

    body .set-locker-page .set-header h1 {
        font-size: clamp(2.7rem, 14vw, 4.1rem);
    }

    body .set-locker-page .set-slots {
        width: 290px;
    }

    body .set-locker-page .set-slot {
        width: 72px;
        height: 72px;
    }

    body .set-locker-page .wizard-title {
        font-size: 1.75rem;
    }

    body .set-locker-page .filters-bar {
        grid-template-columns: 1fr;
    }

    body .set-locker-page .filter-group:first-child {
        grid-column: auto;
    }

    body .set-locker-page .selection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body .set-locker-page .wizard-actions .btn {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .set-locker-page *,
    body .set-locker-page *::before,
    body .set-locker-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
