/* ============================================================
   SCRAPS ON SOLANA — cinematic command interface
   This layer intentionally sits after style.css. It raises the whole
   product toward the lobby concept while keeping the existing DOM and
   game/controller hooks intact.
   ============================================================ */

:root {
    --rr-bg: #05080d;
    --rr-bg-deep: #02050a;
    --rr-panel: rgba(8, 15, 24, .96);
    --rr-panel-b: rgba(4, 9, 16, .98);
    --rr-panel-raise: rgba(17, 30, 44, .96);
    --rr-accent: #a43cff;
    --rr-accent-hi: #d278ff;
    --rr-accent-lo: #5d13a9;
    --rr-accent-soft: rgba(164, 60, 255, .16);
    --rr-accent2: #19e6f2;
    --rr-cyan: #19e6f2;
    --rr-accent2-soft: rgba(25, 230, 242, .12);
    --rr-gold: #ffab3f;
    --rr-gold-soft: rgba(255, 171, 63, .12);
    --rr-text: #f3f7fb;
    --rr-text-dim: #a9b7c8;
    --rr-text-faint: #657487;
    --rr-text-muted: #7f90a3;
    --rr-border: rgba(99, 181, 224, .22);
    --rr-border-strong: rgba(101, 215, 255, .48);
    --rr-edge-dark: #01040a;
    --rr-radius-s: 2px;
    --rr-radius-m: 4px;
    --rr-radius-l: 8px;
    --rr-font: 'Bahnschrift Condensed', 'DIN Condensed', 'Arial Narrow',
        'Helvetica Neue', Arial, sans-serif;
    --rr-font-mono: 'Bahnschrift', ui-monospace, SFMono-Regular, Menlo,
        Consolas, monospace;
    --rr-rail-size: 74px;
    --rr-nav-size: 66px;
    --rr-rim: 0 0 0 1px rgba(87, 190, 230, .08);
    --rr-shadow-1: 0 4px 14px rgba(0, 0, 0, .34);
    --rr-shadow-2: 0 20px 55px rgba(0, 0, 0, .46);
    --rr-bevel-out: inset 1px 1px 0 rgba(201, 241, 255, .10),
        inset -1px -1px 0 rgba(0, 0, 0, .82);
    --rr-bevel-in: inset 0 1px 8px rgba(0, 0, 0, .64);
    --rr-hazard: repeating-linear-gradient(-45deg, #a43cff 0 8px, #09121d 8px 16px);
}

html,
body {
    background: #02050a;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(111, 55, 156, .8) rgba(2, 7, 12, .72);
}

*::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

*::-webkit-scrollbar-track {
    background: rgba(2, 7, 12, .72);
}

*::-webkit-scrollbar-thumb {
    border: 2px solid rgba(2, 7, 12, .72);
    background: linear-gradient(180deg, rgba(37, 192, 210, .72), rgba(155, 50, 224, .82));
}

body {
    background-image:
        radial-gradient(circle at 8% 15%, rgba(0, 209, 227, .08), transparent 28%),
        radial-gradient(circle at 90% 9%, rgba(150, 42, 255, .10), transparent 30%),
        linear-gradient(180deg, #07101a 0%, #03070d 70%);
}

::selection {
    background: rgba(164, 60, 255, .72);
    color: #fff;
}

/* ---------- boot + driver check-in ---------- */
#boot-screen,
#auth-screen {
    background:
        radial-gradient(circle at 50% 30%, rgba(22, 194, 218, .10), transparent 28%),
        linear-gradient(180deg, rgba(1, 5, 10, .18), rgba(1, 4, 9, .94)),
        url('../icons/scraps-cover.jpg') center 40% / cover no-repeat,
        #02050a;
}

#boot-screen::after,
#auth-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(30, 139, 173, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 139, 173, .05) 1px, transparent 1px);
    background-size: 32px 32px;
    box-shadow: inset 0 0 180px 45px rgba(0, 0, 0, .74);
}

.boot-inner {
    position: relative;
    z-index: 1;
    justify-content: center;
    gap: 21px;
}

.boot-inner::before {
    content: '';
    width: min(560px, 84vw);
    aspect-ratio: 650 / 366;
    background: url('../icons/scraps-wordmark.jpg') center / contain no-repeat;
    filter: drop-shadow(0 18px 35px rgba(0, 0, 0, .72));
}

.boot-spinner {
    width: 48px;
    height: 48px;
    border: 2px solid rgba(60, 154, 194, .25);
    border-top-color: #29e7ef;
    border-right-color: #b447ff;
    box-shadow: 0 0 26px rgba(47, 207, 233, .15);
}

.boot-status {
    color: #c9f7ff;
    font-size: 12px;
    letter-spacing: .17em;
}

#auth-screen {
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 28%, rgba(22, 194, 218, .09), transparent 30%),
        linear-gradient(180deg, rgba(1, 5, 10, .56), rgba(1, 4, 9, .93)),
        url('../icons/scraps-cover.jpg') center 78% / cover no-repeat,
        #02050a;
}

.auth-panel {
    position: relative;
    z-index: 1;
    width: min(540px, 100%);
    max-height: calc(100dvh - 38px);
    overflow-y: auto;
    padding: clamp(24px, 4vh, 38px) clamp(20px, 3vw, 34px);
    gap: 16px;
    border-color: rgba(74, 172, 211, .42);
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
    background-image:
        linear-gradient(rgba(51, 153, 189, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(51, 153, 189, .045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(9, 19, 29, .975), rgba(2, 7, 13, .99));
    background-size: 26px 26px, 26px 26px, auto;
    box-shadow:
        inset 0 0 0 3px rgba(1, 4, 8, .72),
        0 0 0 1px rgba(98, 195, 231, .08),
        0 28px 80px rgba(0, 0, 0, .62);
}

.auth-brand {
    width: min(380px, 92%);
    border: 0;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .44);
}

.auth-title {
    color: #f2f7fc;
    font-size: 25px;
    letter-spacing: .075em;
}

.auth-sub {
    max-width: 44ch;
    align-self: center;
    color: #a8b8c8;
    font-size: 14px;
    line-height: 1.45;
}

.auth-wallet-options {
    gap: 12px;
}

.auth-wallet-btn {
    min-height: 70px;
    border-radius: 2px;
    padding: 11px 17px;
    clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
}

.auth-wallet-btn--phantom {
    border-color: #a99bef;
    background: linear-gradient(112deg, rgba(119, 96, 207, .5), rgba(32, 27, 74, .96));
    box-shadow: inset 0 1px 0 rgba(222, 215, 255, .18), 0 0 18px rgba(139, 114, 241, .12);
}

.auth-wallet-btn--solflare {
    border-color: #f4e834;
    background: linear-gradient(112deg, rgba(116, 108, 4, .28), rgba(13, 13, 3, .97));
    box-shadow: inset 0 1px 0 rgba(255, 250, 149, .13), 0 0 18px rgba(242, 233, 51, .06);
}

.auth-wallet-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
}

.auth-wallet-btn strong {
    font-size: 15px;
}

.auth-wallet-btn small {
    font-size: 11px;
}

.auth-switch-account {
    border-radius: 2px;
    border-color: rgba(73, 147, 183, .28);
    background: rgba(2, 7, 13, .84);
}

.auth-account-help,
.campaign-auth-entry small {
    color: #718397;
    font-size: 11px;
    line-height: 1.45;
}

.campaign-auth-entry {
    border-color: rgba(75, 153, 192, .18);
}

.campaign-auth-entry > span {
    color: #5d7489;
}

.campaign-auth-entry .rr-btn {
    border-color: rgba(177, 70, 255, .48);
    background: linear-gradient(180deg, rgba(37, 13, 59, .96), rgba(8, 7, 15, .98));
    color: #d987ff;
}

@media (max-width: 560px) {
    #auth-screen {
        justify-content: flex-end;
        padding: 10px 10px max(12px, env(safe-area-inset-bottom));
    }

    .auth-panel {
        max-height: calc(100dvh - 16px);
        padding: 20px 16px;
        gap: 12px;
    }

    .auth-brand {
        width: min(300px, 86%);
    }

    .auth-title {
        font-size: 21px;
    }

    .auth-wallet-btn {
        min-height: 62px;
    }
}

.rr-panel {
    border: 1px solid rgba(82, 150, 188, .28);
    border-radius: 7px;
    background-image:
        radial-gradient(circle 2px at 12px 12px, #61798a 0 1px, #02050a 1.5px 2px, transparent 2.5px),
        radial-gradient(circle 2px at calc(100% - 12px) 12px, #61798a 0 1px, #02050a 1.5px 2px, transparent 2.5px),
        radial-gradient(circle 2px at 12px calc(100% - 12px), #61798a 0 1px, #02050a 1.5px 2px, transparent 2.5px),
        radial-gradient(circle 2px at calc(100% - 12px) calc(100% - 12px), #61798a 0 1px, #02050a 1.5px 2px, transparent 2.5px),
        linear-gradient(180deg, rgba(16, 29, 42, .96), rgba(4, 9, 16, .98));
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, .76),
        0 0 0 3px rgba(65, 137, 175, .09),
        inset 0 1px 0 rgba(193, 238, 255, .08),
        0 20px 55px rgba(0, 0, 0, .38);
}

.rr-btn {
    border-color: rgba(94, 164, 201, .28);
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(22, 34, 48, .96), rgba(6, 11, 18, .98));
    box-shadow: inset 0 1px 0 rgba(218, 244, 255, .09), 0 5px 14px rgba(0, 0, 0, .28);
    color: #cfd9e6;
    font-weight: 800;
    letter-spacing: .075em;
}

.rr-btn:hover {
    filter: none;
    border-color: rgba(110, 221, 255, .62);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(218, 244, 255, .14), 0 0 20px rgba(27, 204, 235, .09);
}

.rr-btn--primary {
    border-color: #c06cff;
    background: linear-gradient(180deg, #bd5cff, #8129d9 64%, #54128f);
    color: #08050b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 18px rgba(164, 60, 255, .28);
}

.rr-btn--secondary {
    border-color: rgba(79, 176, 219, .34);
    background: linear-gradient(180deg, rgba(15, 28, 41, .98), rgba(4, 9, 16, .98));
    color: #b8c9dc;
    box-shadow: inset 0 1px 0 rgba(215, 242, 255, .08), 0 6px 14px rgba(0, 0, 0, .26);
}

.rr-btn--ghost {
    border-color: rgba(90, 144, 174, .26);
    color: #91a3b7;
}

.rr-input,
.rr-select {
    border-color: rgba(78, 147, 184, .34);
    border-radius: 2px;
    background: rgba(1, 5, 10, .92);
    color: #eef8ff;
    box-shadow: inset 0 2px 11px rgba(0, 0, 0, .64);
}

.rr-input:focus,
.rr-select:focus {
    border-color: #19e6f2;
    box-shadow: inset 0 2px 11px rgba(0, 0, 0, .64), 0 0 0 1px rgba(25, 230, 242, .22);
}

/* ---------- shell ---------- */
#start-screen {
    isolation: isolate;
    background: #03070c;
}

#start-screen::before {
    background:
        linear-gradient(rgba(40, 103, 130, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(40, 103, 130, .055) 1px, transparent 1px),
        radial-gradient(circle at 10% 10%, rgba(7, 191, 201, .11), transparent 34%),
        radial-gradient(circle at 92% 7%, rgba(136, 35, 242, .14), transparent 34%),
        linear-gradient(155deg, #07121b 0%, #03070d 47%, #040510 100%);
    background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

#start-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    box-shadow: inset 0 0 160px rgba(0, 0, 0, .72);
}

.mm-header {
    min-height: 68px;
    padding: calc(10px + env(safe-area-inset-top)) 18px 11px;
    border-bottom: 1px solid rgba(52, 152, 190, .26);
    background:
        linear-gradient(90deg, rgba(9, 21, 31, .99), rgba(5, 11, 19, .97) 55%, rgba(15, 8, 27, .97));
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .8), 0 10px 30px rgba(0, 0, 0, .25);
}

.mm-header::after {
    height: 2px;
    background: linear-gradient(90deg, #17e5ef, #6d79ff 48%, #a93bff);
    opacity: .76;
}

.mm-logo-image {
    width: clamp(106px, 12vw, 158px);
    height: 45px;
    border: 0;
    object-position: center;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .65));
}

.mm-header-chips {
    gap: 7px;
}

.mm-profile-chip,
.mm-wallet-chip,
.mm-token-chip,
.mm-conn-chip {
    min-height: 38px;
    border: 1px solid rgba(70, 147, 185, .34);
    border-radius: 2px;
    background: rgba(3, 9, 15, .88);
    box-shadow: inset 0 1px 0 rgba(209, 241, 255, .06);
}

.mm-profile-chip:hover,
.mm-wallet-chip:hover,
.mm-token-chip:hover {
    border-color: rgba(52, 215, 238, .7);
    background: rgba(8, 25, 35, .94);
}

.mm-wallet-chip {
    color: #70dff6;
}

.mm-token-chip {
    border-color: rgba(174, 67, 255, .44);
}

.mm-conn-chip[data-state='connected'] {
    border-color: rgba(37, 232, 137, .46);
    color: #54ef9f;
}

.mm-content {
    padding: 24px 18px calc(var(--rr-nav-size) + 30px + env(safe-area-inset-bottom));
    scroll-padding-top: 20px;
}

.mm-lobby {
    width: min(100%, 1460px);
    max-width: 1460px;
    margin-inline: auto;
    gap: 18px;
}

.mm-lobby-col {
    gap: 18px;
}

/* ---------- command deck ---------- */
.mm-hero {
    gap: 14px;
    padding: 20px;
    border-radius: 3px;
    background-image:
        linear-gradient(90deg, rgba(14, 31, 44, .98), rgba(5, 11, 18, .99) 64%),
        linear-gradient(180deg, rgba(255, 255, 255, .03), transparent);
    overflow: hidden;
}

.mm-hero::after {
    inset: 0;
    opacity: .52;
    background:
        linear-gradient(rgba(57, 161, 197, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57, 161, 197, .055) 1px, transparent 1px);
    background-size: 27px 27px;
    mask-image: linear-gradient(90deg, transparent 18%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 100%);
}

.mm-hero-wordmark {
    width: 100%;
    max-width: none;
    border: 0;
    border-radius: 2px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, .48);
}

.mm-hero-eyebrow {
    color: #23e9f4;
    font: 800 18px/1.05 var(--rr-font);
    letter-spacing: .055em;
    text-transform: uppercase;
    text-shadow: 0 0 18px rgba(35, 233, 244, .26);
}

.mm-hero-sub {
    max-width: none;
    color: #c3ceda;
    font-size: 18px;
    line-height: 1.35;
    letter-spacing: .015em;
}

.mm-action-copy {
    min-width: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    text-align: left;
}

.mm-action-copy strong {
    font: 800 1em/1 var(--rr-font);
    letter-spacing: .04em;
}

.mm-action-copy small {
    color: currentColor;
    font: 500 .55em/1.05 var(--rr-font);
    letter-spacing: .075em;
    opacity: .75;
}

.mm-action-chevron {
    flex: 0 0 auto;
    font: 300 2.2em/.8 Arial, sans-serif;
    opacity: .8;
}

.rr-btn--hero::before,
.rr-btn--hero::after,
.mm-practice-btn::after,
.mm-garage-btn::after {
    content: none;
}

.mm-hero #mm-play-btn,
.mm-practice-btn {
    width: 100%;
    min-height: 112px;
    justify-content: flex-start;
    gap: 18px;
    padding: 18px 22px;
    clip-path: polygon(12px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}

.mm-hero #mm-play-btn {
    border: 2px solid #ce75ff;
    background:
        linear-gradient(118deg, rgba(217, 122, 255, .20), transparent 45%),
        linear-gradient(180deg, rgba(99, 25, 151, .98), rgba(47, 13, 82, .99));
    color: #f2c8ff;
    font-size: clamp(27px, 2.1vw, 36px);
    box-shadow:
        inset 0 0 0 3px rgba(15, 5, 27, .76),
        inset 0 0 0 4px rgba(217, 122, 255, .34),
        0 0 22px rgba(178, 60, 255, .32),
        0 0 55px rgba(155, 44, 255, .14);
    text-shadow: 0 0 14px rgba(232, 149, 255, .32);
}

.mm-hero #mm-play-btn:hover {
    border-color: #edb4ff;
    box-shadow:
        inset 0 0 0 3px rgba(15, 5, 27, .76),
        inset 0 0 0 4px rgba(239, 180, 255, .48),
        0 0 28px rgba(190, 73, 255, .48),
        0 0 65px rgba(155, 44, 255, .2);
}

.rr-btn-hero-icon,
.mm-bot-icon {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
}

.rr-btn-hero-icon svg,
.mm-bot-icon svg {
    width: 100%;
    height: 100%;
}

.mm-practice-btn {
    border: 1px solid rgba(69, 163, 213, .55);
    background:
        linear-gradient(118deg, rgba(31, 120, 161, .12), transparent 45%),
        linear-gradient(180deg, rgba(8, 21, 33, .98), rgba(3, 9, 16, .99));
    color: #72c8f5;
    font-size: clamp(21px, 1.55vw, 28px);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .52), 0 0 30px rgba(20, 145, 208, .06);
}

.mm-practice-btn:hover {
    border-color: #69d8ff;
    color: #b7edff;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .52), 0 0 24px rgba(30, 188, 255, .16);
}

.mm-diff-seg {
    width: 100%;
    gap: 10px;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.mm-diff-seg::before {
    content: 'DIFFICULTY';
    position: absolute;
    left: 0;
    top: -23px;
    color: #97a8b9;
    font: 700 13px/1 var(--rr-font);
    letter-spacing: .07em;
}

.mm-diff-opt {
    flex: 1 1 0;
    min-width: 0;
    min-height: 52px;
    border: 1px solid rgba(72, 139, 176, .3) !important;
    clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
    background: rgba(3, 10, 17, .82);
    color: #a9b7c7;
    font-size: 15px;
}

.mm-diff-opt[aria-checked='true'] {
    border-color: #c660ff !important;
    background: linear-gradient(180deg, rgba(113, 34, 164, .92), rgba(50, 15, 82, .98));
    color: #f0c8ff;
    box-shadow: inset 0 0 0 2px rgba(3, 7, 12, .58), 0 0 18px rgba(174, 61, 255, .2);
    text-shadow: 0 0 12px rgba(214, 118, 255, .3);
}

.mm-practice-map-picker {
    position: relative;
    width: 100%;
    padding-top: 18px;
    border-top: 1px solid rgba(66, 139, 175, .16);
}

.mm-practice-map-label {
    position: relative;
    margin: 0 0 14px;
    padding-left: 20px;
    color: #21dbe7;
    font: 800 18px/1 var(--rr-font);
    letter-spacing: .09em;
}

.mm-practice-map-label::before,
.mm-practice-map-label::after {
    content: '';
    position: absolute;
    top: 50%;
    height: 2px;
    background: #20dce8;
    transform: skewX(-38deg);
}

.mm-practice-map-label::before {
    left: 2px;
    width: 9px;
}

.mm-practice-map-label::after {
    left: 165px;
    width: 38px;
    opacity: .6;
}

.mm-practice-map-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.6vw, 22px);
}

.mm-practice-map-options .lobby-map-option {
    position: relative;
    min-height: clamp(210px, 20vw, 292px);
    padding: 0;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(74, 158, 201, .38);
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
    background: rgba(2, 7, 13, .96);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .64), 0 12px 24px rgba(0, 0, 0, .28);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.mm-practice-map-options .lobby-map-option:hover {
    transform: translateY(-3px);
    border-color: #2ce0ee;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .64), 0 0 24px rgba(30, 216, 234, .13);
}

.mm-practice-map-options .lobby-map-option.is-selected {
    transform: translateY(-3px);
    border-color: #d15fff;
    background: rgba(9, 5, 16, .98);
    box-shadow:
        inset 0 0 0 2px rgba(0, 0, 0, .62),
        inset 0 0 0 3px rgba(199, 89, 255, .26),
        0 0 20px rgba(188, 57, 255, .31),
        0 14px 28px rgba(0, 0, 0, .38);
}

.mm-practice-map-options .lobby-map-option.is-selected::after {
    content: '✓';
    position: absolute;
    z-index: 7;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 2px solid #c954ff;
    border-radius: 50%;
    background: rgba(12, 5, 22, .76);
    color: #d46cff;
    font: 800 25px/1 Arial, sans-serif;
    box-shadow: 0 0 18px rgba(192, 65, 255, .35);
}

.mm-practice-map-options .lobby-map-thumb {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    background-position: center;
    background-size: cover;
    box-shadow: inset 0 -50px 70px rgba(0, 0, 0, .18);
}

.mm-practice-map-options .lobby-map-thumb::before,
.mm-practice-map-options .lobby-map-thumb::after,
.mm-practice-map-options .lobby-map-thumb__deck {
    display: none;
}

.mm-practice-map-options .lobby-map-option[data-arena-id='rooftop'] .lobby-map-thumb {
    background-image:
        linear-gradient(180deg, rgba(71, 23, 120, .04), rgba(15, 4, 29, .28)),
        url('../icons/arenas/rooftop.jpg');
    filter: brightness(1.22) saturate(1.22) contrast(1.08);
}

.mm-practice-map-options .lobby-map-option[data-arena-id='pyramid_apex'] .lobby-map-thumb {
    background-image:
        linear-gradient(180deg, rgba(255, 194, 63, .02), rgba(77, 36, 0, .13)),
        url('../icons/arenas/pyramid_apex.jpg');
    filter: saturate(1.12) contrast(1.04);
}

.mm-practice-map-options .lobby-map-option[data-arena-id='dubai_helipad'] .lobby-map-thumb {
    background-image:
        linear-gradient(180deg, rgba(23, 173, 220, .02), rgba(0, 43, 63, .12)),
        url('../icons/arenas/dubai_helipad.jpg');
    filter: saturate(1.16) contrast(1.04);
}

.mm-practice-map-options .lobby-map-option[data-arena-id='whiteglass_lab'] .lobby-map-thumb {
    background-image:
        linear-gradient(180deg, rgba(26, 228, 239, .01), rgba(80, 27, 119, .11)),
        url('../icons/arenas/whiteglass_lab.jpg');
    filter: saturate(1.08) contrast(1.03);
}

.mm-practice-map-options .lobby-map-copy {
    width: 100%;
    min-height: 58px;
    padding: 11px 12px 9px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-top: 1px solid rgba(63, 148, 190, .26);
    background: rgba(2, 7, 13, .96);
    text-align: center;
}

.mm-practice-map-options .lobby-map-copy strong {
    color: #eff6fb;
    font: 800 clamp(15px, 1.3vw, 20px)/1 var(--rr-font);
    letter-spacing: .065em;
}

.mm-practice-map-options .lobby-map-copy small {
    color: #60798d;
    font: 700 8px/1 var(--rr-font-mono);
    letter-spacing: .11em;
}

.rr-btn--story {
    min-height: 96px;
    padding: 14px 20px;
    border: 1px solid rgba(203, 92, 255, .58);
    background:
        linear-gradient(90deg, rgba(2, 7, 15, .98) 0%, rgba(4, 8, 17, .94) 32%, rgba(8, 5, 18, .62) 56%, rgba(24, 8, 42, .18)),
        url('../icons/story/dead-circuit-journey.webp') center / cover no-repeat;
    box-shadow: inset 0 0 0 3px rgba(2, 5, 10, .74), 0 0 18px rgba(170, 50, 255, .11);
    color: #f2eaff;
    clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
    font-size: clamp(19px, 1.6vw, 25px);
    text-shadow: 0 2px 5px #000;
}

.rr-btn--story > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid #d86aff;
    color: #dc73ff;
    transform: rotate(45deg);
    font-size: 18px;
    text-shadow: none;
}

.rr-btn--story small {
    color: #d6c7df;
    font: 600 11px/1.2 var(--rr-font-mono);
    text-shadow: 0 2px 4px #000;
}

.mm-garage-btn {
    width: min(420px, 100%);
    min-height: 104px;
    justify-self: end;
    align-self: stretch;
    padding: 16px 20px;
    border-color: rgba(187, 68, 255, .58);
    background:
        linear-gradient(118deg, rgba(157, 37, 217, .15), transparent 52%),
        linear-gradient(180deg, rgba(20, 10, 33, .98), rgba(6, 5, 13, .99));
    color: #c75dff;
    clip-path: polygon(10px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

.mm-private-shortcut {
    width: 100%;
    min-height: 104px;
    justify-content: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border-color: rgba(31, 219, 232, .56);
    background:
        linear-gradient(118deg, rgba(21, 172, 188, .14), transparent 54%),
        linear-gradient(180deg, rgba(7, 25, 34, .98), rgba(3, 9, 15, .99));
    color: #33dfea;
    clip-path: polygon(10px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

.mm-private-shortcut:hover {
    border-color: #65f5fb;
    box-shadow: inset 0 1px 0 rgba(190, 251, 255, .12), 0 0 24px rgba(35, 220, 232, .12);
}

.mm-private-shortcut svg {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.mm-private-shortcut .mm-action-copy strong {
    font-size: 25px;
}

.mm-private-shortcut .mm-action-copy small {
    color: #7d9ba9;
    font-size: 10px;
}

.mm-garage-btn svg {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
}

.mm-garage-btn .mm-action-copy strong {
    font-size: 25px;
}

.mm-garage-btn .mm-action-copy small {
    color: #9e8eaa;
    font-size: 10px;
}

.mm-hero-note {
    color: #6dcfe9;
    font: 700 11px/1.3 var(--rr-font-mono);
}

/* ---------- below-deck social surfaces ---------- */
.lobby-private,
.lobby-chat {
    border-color: rgba(76, 156, 196, .24);
    background-image: linear-gradient(180deg, rgba(10, 20, 30, .98), rgba(3, 8, 14, .99));
}

.lobby-private {
    padding: 18px 20px;
}

.lobby-private.is-attention {
    animation: private-card-attention 860ms ease both;
}

@keyframes private-card-attention {
    0%, 100% { border-color: rgba(76, 156, 196, .24); box-shadow: var(--rr-bevel-out), 0 20px 55px rgba(0, 0, 0, .38); }
    38% { border-color: #25e4ee; box-shadow: 0 0 0 1px rgba(37, 228, 238, .16), 0 0 28px rgba(37, 228, 238, .22); }
}

.lobby-private .rr-section-title,
.lobby-chat-head .rr-section-title {
    width: auto;
    margin: 0;
    padding: 0;
    clip-path: none;
    background: none;
    box-shadow: none;
    color: #1fe4ef;
    font: 800 15px/1 var(--rr-font);
    letter-spacing: .08em;
    text-shadow: 0 0 14px rgba(31, 228, 239, .18);
}

.lobby-private .rr-section-title::after,
.lobby-chat-head .rr-section-title::after {
    content: none;
}

.lobby-private-hint {
    color: #91a2b4;
    font-size: 13px;
}

.lobby-private .lobby-map-options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lobby-private .lobby-map-option {
    min-height: 116px;
    padding: 5px;
}

.lobby-private .lobby-map-copy > span {
    display: none;
}

.lobby-private .lobby-map-thumb {
    min-height: 70px;
}

.lobby-private-join {
    margin-top: 2px;
    border-color: rgba(77, 153, 192, .18);
}

.lobby-chat {
    min-height: 420px;
    height: 100%;
    padding: 18px;
}

.lobby-chat-head {
    border-color: rgba(73, 150, 188, .22);
}

.lobby-chat-log {
    background: rgba(1, 5, 10, .54);
}

.lobby-chat-message {
    border-left-color: rgba(40, 218, 233, .34);
    background: linear-gradient(90deg, rgba(18, 78, 92, .12), rgba(255, 255, 255, .018));
}

.lobby-chat-message strong {
    color: #2adbe7;
}

.mm-search-card {
    border-color: rgba(188, 72, 255, .42);
    background-image: linear-gradient(90deg, rgba(67, 16, 102, .9), rgba(6, 10, 17, .98));
}

/* ---------- shared full-screen tools ---------- */
.mm-garage-overlay,
.mm-market-overlay,
.profile-overlay {
    background:
        linear-gradient(rgba(44, 135, 170, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(44, 135, 170, .045) 1px, transparent 1px),
        radial-gradient(circle at 8% 0, rgba(16, 199, 218, .08), transparent 31%),
        radial-gradient(circle at 91% 0, rgba(151, 47, 236, .12), transparent 34%),
        #03070d;
    background-size: 31px 31px, 31px 31px, auto, auto, auto;
}

.mm-garage-topbar,
.market-topbar,
.profile-topbar {
    min-height: 72px;
    border-bottom: 1px solid rgba(61, 158, 197, .28);
    background: linear-gradient(90deg, rgba(8, 20, 30, .99), rgba(4, 9, 16, .99) 58%, rgba(18, 7, 30, .98));
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .76), 0 12px 30px rgba(0, 0, 0, .25);
}

.mm-garage-topbar::after,
.profile-topbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, #1bdce8, #635dff 48%, #b847ff);
    opacity: .62;
}

.mm-garage-title,
.market-topbar h2,
.profile-topbar h2 {
    color: #eef8ff;
    letter-spacing: .09em;
    text-shadow: 0 0 16px rgba(88, 210, 245, .17);
}

.mm-garage-title {
    color: #c45cff;
}

.mm-garage-scroll,
.market-scroll,
.profile-scroll {
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
}

.mm-garage-scroll,
.market-scroll {
    overflow-x: hidden;
}

.market-kicker,
.market-eyebrow {
    color: #1fe3ef;
}

.market-live-dot {
    background: #31efa1;
    box-shadow: 0 0 12px rgba(49, 239, 161, .46);
}

.market-warning {
    border-color: rgba(255, 178, 62, .46);
    background: linear-gradient(90deg, rgba(91, 55, 8, .28), rgba(13, 11, 9, .74));
}

.market-tape,
.market-book,
.market-ticket,
.market-my-orders,
.profile-hero,
.profile-card,
.profile-rewards,
.profile-security,
.garage-stage-wrap {
    border-color: rgba(77, 158, 198, .27);
    background-image:
        linear-gradient(180deg, rgba(12, 24, 36, .97), rgba(3, 8, 15, .99));
}

.market-chart {
    border-color: rgba(58, 137, 174, .22);
    background:
        linear-gradient(rgba(49, 135, 168, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 135, 168, .08) 1px, transparent 1px),
        rgba(1, 6, 11, .72);
    background-size: 25% 50%, 25% 50%, auto;
}

.market-book-label--ask {
    border-left-color: #20e6d5;
    background: linear-gradient(90deg, rgba(32, 230, 213, .10), transparent);
}

.market-book-label--bid {
    border-left-color: #b14bff;
    background: linear-gradient(90deg, rgba(177, 75, 255, .10), transparent);
}

.profile-page {
    width: min(100%, 1320px);
}

.profile-hero {
    min-height: 132px;
    padding: 22px 24px;
}

.profile-avatar {
    width: 82px;
    height: 82px;
    border: 1px solid #b759ff;
    border-radius: 4px;
    background: linear-gradient(145deg, #be5bff, #6531b3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 0 22px rgba(170, 67, 255, .18);
}

.profile-identity h3 {
    font-size: clamp(28px, 3vw, 40px);
}

.profile-verified-badge {
    color: #4cefa1;
}

.profile-card,
.profile-rewards,
.profile-security {
    padding: 20px 22px;
}

.profile-card .rr-section-title,
.profile-security .rr-section-title {
    margin-bottom: 16px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    background: linear-gradient(90deg, rgba(143, 42, 213, .92), rgba(63, 24, 111, .9));
    color: #f2dfff;
    text-shadow: none;
}

.profile-stat {
    min-height: 58px;
    border-color: rgba(74, 145, 183, .22);
}

.profile-stat strong,
.profile-rewards-amount strong {
    color: #55dfff;
}

.profile-wallet-brand .wallet-provider-mark,
.wallet-provider-mark {
    border-radius: 8px;
}

/* ---------- settings + wallet review + results ---------- */
#settings-screen,
#gameover-screen,
.wallet-review {
    background:
        linear-gradient(rgba(43, 134, 170, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 134, 170, .045) 1px, transparent 1px),
        radial-gradient(circle at 50% 18%, rgba(153, 52, 232, .13), transparent 38%),
        #03070d;
    background-size: 30px 30px, 30px 30px, auto, auto;
}

.settings-panel,
.wallet-review-card,
.gameover-panel {
    border-color: rgba(79, 169, 209, .4);
    clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
    background-image:
        linear-gradient(rgba(46, 142, 178, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 142, 178, .04) 1px, transparent 1px),
        linear-gradient(180deg, rgba(11, 23, 34, .98), rgba(3, 8, 14, .995));
    background-size: 27px 27px, 27px 27px, auto;
}

.settings-panel {
    width: min(680px, 100%);
    max-height: calc(100dvh - 36px);
    padding: clamp(22px, 4vw, 36px);
}

.settings-panel > .rr-screen-title {
    color: #edf8ff;
    font-size: 30px;
    letter-spacing: .09em;
}

.settings-group {
    padding: 15px 17px;
    border: 1px solid rgba(73, 148, 184, .2);
    background: rgba(2, 7, 13, .56);
}

.settings-group .rr-section-title {
    margin: -15px -17px 10px;
    padding: 8px 13px;
    background: linear-gradient(90deg, rgba(129, 39, 198, .9), rgba(39, 19, 69, .78));
    color: #e9ccff;
}

.settings-row + .settings-row {
    border-top: 1px solid rgba(73, 148, 184, .13);
}

.settings-radios .rr-radio {
    border-color: rgba(73, 148, 184, .28);
    border-radius: 2px;
    background: rgba(2, 7, 13, .62);
}

.settings-radios .rr-radio:has(input:checked) {
    border-color: #b451ff;
    background: rgba(101, 34, 149, .28);
    box-shadow: inset 0 0 0 1px rgba(207, 119, 255, .12), 0 0 16px rgba(177, 71, 255, .1);
}

.wallet-review-card {
    width: min(560px, 100%);
    max-height: calc(100dvh - 32px);
    padding: 26px;
}

.wallet-review-row {
    border-color: rgba(76, 151, 188, .2);
}

.gameover-panel {
    width: min(560px, 100%);
    padding: clamp(28px, 5vw, 46px);
}

.gameover-eyebrow {
    color: #26dde8;
    letter-spacing: .16em;
}

.gameover-headline {
    font-size: clamp(46px, 9vw, 76px);
    text-shadow: 0 0 28px rgba(180, 68, 255, .2), 0 4px 0 rgba(0, 0, 0, .72);
}

.gameover-panel[data-result='win'] .gameover-headline {
    color: #c25dff;
}

.gameover-rematch-prompt {
    border-radius: 2px;
    border-color: rgba(192, 82, 255, .44);
    background: rgba(91, 30, 132, .15);
}

.rr-snackbar {
    border-radius: 2px;
    border-color: rgba(68, 183, 219, .44);
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
    background: linear-gradient(90deg, rgba(10, 28, 41, .98), rgba(18, 8, 30, .98));
    box-shadow: 0 12px 36px rgba(0, 0, 0, .56), 0 0 20px rgba(74, 170, 220, .1);
}

@media (max-width: 380px) {
    .wallet-review-actions,
    .gameover-actions,
    .gameover-rematch-answers {
        width: 100%;
        flex-direction: column;
    }

    .wallet-review-actions .rr-btn,
    .gameover-actions .rr-btn,
    .gameover-rematch-answers .rr-btn {
        width: 100%;
    }
}

/* ---------- Dead Circuit command map ---------- */
#campaign-screen {
    --campaign-rust: #ff9648;
    --campaign-cyan: #2ce3ee;
    background:
        linear-gradient(rgba(45, 139, 173, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 139, 173, .045) 1px, transparent 1px),
        radial-gradient(circle at 12% 0, rgba(255, 132, 49, .08), transparent 30%),
        radial-gradient(circle at 88% 0, rgba(161, 49, 235, .10), transparent 34%),
        #03070d;
    background-size: 30px 30px, 30px 30px, auto, auto, auto;
}

.campaign-topbar {
    min-height: 72px;
    border-bottom-color: rgba(61, 159, 198, .30);
    background: linear-gradient(90deg, rgba(10, 21, 31, .99), rgba(4, 9, 15, .99) 58%, rgba(24, 9, 24, .98));
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

.campaign-brand span {
    color: #2cdce8;
}

.campaign-brand strong {
    color: #f2f7fb;
    text-shadow: 0 0 18px rgba(255, 127, 49, .16);
}

.campaign-shell {
    gap: 14px;
    padding: 14px;
}

.campaign-shell .rr-panel,
.campaign-garage > div,
.campaign-archive-panel {
    border-color: rgba(77, 155, 194, .26);
    background-image: linear-gradient(180deg, rgba(11, 23, 34, .98), rgba(3, 8, 14, .995));
}

.campaign-progress-track {
    background: #06111a;
}

.campaign-progress-track i {
    background: linear-gradient(90deg, #f07b38, #c450ff);
    box-shadow: 0 0 12px rgba(245, 121, 59, .24);
}

.campaign-chapter-btn {
    border-left-color: rgba(70, 147, 184, .24);
    color: #8495a7;
}

.campaign-chapter-btn:hover {
    background: rgba(28, 116, 142, .08);
}

.campaign-chapter-btn[aria-current='true'] {
    border-left-color: #c34cff;
    background: linear-gradient(90deg, rgba(127, 37, 178, .25), transparent);
    box-shadow: inset 2px 0 0 rgba(208, 99, 255, .26);
}

.campaign-chapter-btn[aria-current='true'] .campaign-chapter-number {
    color: #d66cff;
}

.campaign-map-head {
    border-bottom-color: rgba(79, 154, 193, .22);
    background: linear-gradient(90deg, rgba(15, 33, 46, .84), rgba(5, 11, 18, .74));
}

.campaign-map-head span {
    color: #2ce0ea;
}

.campaign-map-head h2 {
    color: #f1f7fb;
}

.campaign-map-head p,
.campaign-mission-card p,
.campaign-intel-copy > p {
    color: #8798a9;
}

.campaign-mission-grid {
    gap: 12px;
}

.campaign-mission-card {
    border-color: rgba(75, 148, 184, .23);
    border-radius: 2px;
    background:
        linear-gradient(135deg, rgba(26, 71, 89, .11), transparent 48%),
        rgba(3, 9, 15, .86);
    clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
}

.campaign-mission-card:hover {
    border-color: rgba(55, 218, 233, .58);
    box-shadow: 0 0 18px rgba(42, 208, 226, .09);
}

.campaign-mission-card[aria-current='true'] {
    border-color: #c14eff;
    box-shadow: inset 3px 0 #c14eff, 0 0 20px rgba(179, 60, 242, .13);
}

.campaign-mission-card h3,
.campaign-intel-copy h2 {
    color: #eef6fb;
}

.campaign-intel-art {
    background: linear-gradient(135deg, rgba(31, 199, 214, .18), rgba(112, 32, 154, .17)), #071018;
}

.campaign-intel-actions {
    border-color: rgba(72, 145, 181, .22);
    background: #040a10;
}

.campaign-garage,
.campaign-archive {
    background: rgba(1, 5, 10, .92);
    backdrop-filter: blur(14px);
}

.campaign-garage > div,
.campaign-archive-panel {
    box-shadow: 0 24px 80px rgba(0, 0, 0, .64), 0 0 0 1px rgba(64, 154, 196, .08);
}

.campaign-cine-head,
.campaign-cine-subtitles,
.campaign-combat-hud {
    font-family: var(--rr-font);
}

.campaign-cine-subtitles {
    border-left-color: #c652ff;
    background: linear-gradient(90deg, rgba(3, 5, 10, .94), rgba(10, 6, 17, .64), transparent);
}

.campaign-cine-subtitles strong,
.campaign-combat-hud > span {
    color: #d968ff;
}

.campaign-combat-hud {
    border-left-color: #c552ff;
    background: linear-gradient(90deg, rgba(5, 8, 14, .94), rgba(8, 9, 19, .58), transparent);
}

.campaign-objective-meter i,
.campaign-cine-progress i {
    background: linear-gradient(90deg, #21dfe9, #c650ff);
}

/* ---------- navigation ---------- */
.mm-bottom-nav {
    border-color: rgba(64, 139, 176, .22);
    background: linear-gradient(180deg, rgba(7, 17, 25, .99), rgba(2, 6, 11, .995));
}

.mm-nav-item {
    color: #8250a8;
    text-shadow: none;
}

.mm-nav-item:hover {
    color: #47dce9;
    background: rgba(20, 107, 124, .08);
}

.mm-nav-item.mm-nav-active {
    color: #e8b8ff;
    background: linear-gradient(90deg, rgba(101, 29, 147, .52), rgba(27, 10, 45, .2));
    box-shadow: inset 3px 0 0 #b84cff, inset -1px 0 0 rgba(0, 0, 0, .55);
    text-shadow: 0 0 12px rgba(203, 100, 255, .32);
}

.mm-nav-item.mm-nav-active::before {
    background: linear-gradient(180deg, #34e2ed, #b64cff);
}

/* ---------- desktop composition ---------- */
@media (min-width: 1000px) {
    .mm-header {
        padding-left: calc(var(--rr-rail-size) + 22px);
    }

    .mm-content {
        padding: 25px 32px 52px;
        padding-left: calc(var(--rr-rail-size) + 32px);
    }

    .mm-lobby {
        display: grid;
        grid-template-columns: minmax(0, 1.48fr) minmax(360px, .72fr);
        align-items: stretch;
    }

    .mm-lobby-col--play {
        display: contents;
    }

    .mm-hero,
    .mm-search-card,
    #mm-home-alert {
        grid-column: 1 / -1;
    }

    .mm-hero {
        display: grid;
        grid-template-columns: minmax(0, 1.42fr) minmax(320px, .78fr);
        grid-template-areas:
            'art eyebrow'
            'art intro'
            'art quickplay'
            'art practice'
            'story difficulty'
            'arena arena'
            'note note'
            'private-cta garage';
        grid-template-rows: auto auto auto auto auto auto auto;
        column-gap: clamp(24px, 2.5vw, 42px);
        row-gap: 16px;
        padding: clamp(18px, 2vw, 28px);
    }

    .mm-hero::before {
        content: '';
        position: relative;
        z-index: 1;
        grid-area: art;
        min-height: clamp(360px, 33vw, 500px);
        border: 1px solid rgba(72, 171, 209, .3);
        clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
        background:
            linear-gradient(180deg, rgba(1, 4, 8, .03) 56%, rgba(1, 5, 10, .7) 100%),
            url('../icons/scraps-wordmark.jpg') center / 92% auto no-repeat,
            url('../icons/scraps-cover.jpg') center 62% / cover no-repeat;
        box-shadow: inset 0 0 70px rgba(0, 0, 0, .32), 0 18px 35px rgba(0, 0, 0, .38);
    }

    .mm-hero-wordmark {
        display: none;
    }

    .mm-hero-eyebrow {
        grid-area: eyebrow;
        align-self: end;
        margin: 7px 8px 0;
    }

    .mm-hero-sub {
        grid-area: intro;
        align-self: start;
        margin: -2px 8px 2px;
    }

    .mm-hero #mm-play-btn {
        grid-area: quickplay;
    }

    .mm-hero .mm-practice {
        display: contents;
    }

    .mm-practice-btn {
        grid-area: practice;
    }

    .mm-diff-seg {
        position: relative;
        grid-area: difficulty;
        align-self: center;
        margin-top: 27px;
    }

    .mm-practice-map-picker {
        grid-area: arena;
        margin-top: 8px;
    }

    .rr-btn--story {
        grid-area: story;
    }

    .mm-garage-btn {
        grid-area: garage;
        width: 100%;
    }

    .mm-private-shortcut { grid-area: private-cta; }

    .mm-hero-note {
        grid-area: note;
        align-self: center;
        justify-self: start;
        margin: 0 6px;
    }

    .lobby-private {
        grid-column: 1;
        min-width: 0;
    }

    .mm-lobby-col--room {
        grid-column: 2;
        min-width: 0;
    }

    .lobby-chat {
        min-height: 100%;
        max-height: 620px;
    }
}

@media (min-width: 1450px) {
    .mm-hero {
        grid-template-columns: minmax(560px, 1.5fr) minmax(390px, .72fr);
    }
}

@media (min-width: 1800px) {
    .mm-lobby {
        width: min(100%, 1740px);
        max-width: 1740px;
    }

    .mm-hero {
        grid-template-columns: minmax(0, 1.55fr) minmax(400px, .7fr);
    }
}

@media (min-width: 1000px) and (max-height: 900px) {
    .mm-hero::before {
        min-height: clamp(340px, 47vh, 420px);
    }

    .mm-hero #mm-play-btn,
    .mm-practice-btn {
        min-height: 94px;
    }

    .rr-btn-hero-icon,
    .mm-bot-icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .rr-btn--story,
    .mm-private-shortcut,
    .mm-garage-btn {
        min-height: 84px;
    }

    .mm-practice-map-options .lobby-map-option {
        min-height: 238px;
    }
}

/* ---------- tablet ---------- */
@media (min-width: 769px) and (max-width: 999px) {
    .mm-bottom-nav {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: auto;
        height: calc(var(--rr-nav-size) + env(safe-area-inset-bottom));
        flex-direction: row;
        justify-content: flex-start;
        padding: 0 0 env(safe-area-inset-bottom);
        border-top: 1px solid rgba(64, 139, 176, .22);
        border-right: 0;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    }

    .mm-nav-item {
        flex: 1 1 0;
        width: auto;
        padding: 5px 0;
        gap: 3px;
    }

    .mm-nav-item.mm-nav-active::before {
        top: 0;
        bottom: auto;
        left: 22%;
        right: 22%;
        width: auto;
        height: 3px;
    }

    .mm-nav-utility {
        margin-top: 0;
        border-top: 0;
        border-left: 1px solid rgba(64, 139, 176, .22);
        flex-direction: row;
    }

    .mm-nav-item--utility {
        flex: 0 0 var(--rr-nav-size);
    }

    .mm-header {
        padding-left: 18px;
    }

    .mm-content {
        padding: 18px 18px calc(var(--rr-nav-size) + 28px + env(safe-area-inset-bottom));
    }

    .mm-lobby {
        display: flex;
        grid-template-columns: none;
    }

    .mm-lobby-col {
        display: flex;
    }

    .mm-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            'art'
            'eyebrow'
            'intro'
            'quickplay'
            'practice'
            'difficulty'
            'story'
            'arena'
            'note'
            'private-cta'
            'garage';
    }

    .mm-hero-wordmark { grid-area: art; }
    .mm-hero-eyebrow { grid-area: eyebrow; }
    .mm-hero-sub { grid-area: intro; }
    .mm-hero #mm-play-btn { grid-area: quickplay; }
    .mm-hero .mm-practice-btn { grid-area: practice; }
    .mm-hero .mm-diff-seg { grid-area: difficulty; }
    .mm-hero .mm-practice-map-picker { grid-area: arena; }
    .mm-hero .rr-btn--story { grid-area: story; }
    .mm-hero .mm-garage-btn { grid-area: garage; }
    .mm-hero .mm-private-shortcut { grid-area: private-cta; }
    .mm-hero-note { grid-area: note; }

    .mm-hero .mm-practice {
        display: contents;
    }

    .mm-diff-seg {
        position: relative;
        margin-top: 25px;
    }

    .mm-practice-map-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- phone ---------- */
@media (max-width: 768px) {
    .mm-header {
        min-height: 58px;
        padding-inline: 10px;
    }

    .mm-content {
        padding: 13px 10px calc(var(--rr-nav-size) + 24px + env(safe-area-inset-bottom));
    }

    .mm-lobby,
    .mm-lobby-col {
        gap: 13px;
    }

    .mm-hero {
        padding: 11px;
        gap: 12px;
    }

    .mm-hero-wordmark {
        order: -4;
        width: 100%;
    }

    .mm-hero-eyebrow {
        order: -3;
        padding-top: 3px;
        font-size: 14px;
    }

    .mm-hero-sub {
        order: -2;
        font-size: 15px;
    }

    .mm-hero #mm-play-btn,
    .mm-practice-btn {
        min-height: 88px;
        gap: 13px;
        padding: 14px 15px;
    }

    .mm-hero #mm-play-btn {
        font-size: clamp(22px, 7vw, 30px);
    }

    .mm-practice-btn {
        font-size: clamp(18px, 5.4vw, 23px);
    }

    .rr-btn-hero-icon,
    .mm-bot-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    .mm-action-chevron {
        font-size: 2em;
    }

    .mm-hero .mm-practice {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .mm-diff-seg {
        position: relative;
        margin-top: 22px;
    }

    .mm-diff-seg::before {
        top: -20px;
        font-size: 11px;
    }

    .mm-diff-opt {
        min-height: 48px;
        font-size: 13px;
    }

    .mm-practice-map-picker {
        margin-top: 3px;
        padding-top: 14px;
    }

    .mm-practice-map-label {
        font-size: 15px;
    }

    .mm-practice-map-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .mm-practice-map-options .lobby-map-option {
        min-height: 190px;
    }

    .mm-practice-map-options .lobby-map-copy {
        min-height: 49px;
        padding: 8px;
    }

    .mm-practice-map-options .lobby-map-copy strong {
        font-size: 15px;
    }

    .mm-practice-map-options .lobby-map-option.is-selected::after {
        top: 9px;
        right: 9px;
        width: 34px;
        height: 34px;
        font-size: 19px;
    }

    .rr-btn--story {
        min-height: 82px;
        font-size: 18px;
    }

    .rr-btn--story > span {
        width: 39px;
        height: 39px;
    }

    .mm-garage-btn {
        width: 100%;
        min-height: 86px;
    }

    .mm-private-shortcut {
        min-height: 86px;
    }

    .mm-private-shortcut .mm-action-copy strong {
        font-size: 21px;
    }

    .mm-garage-btn .mm-action-copy strong {
        font-size: 21px;
    }

    .lobby-private {
        padding: 15px 13px;
    }

    .lobby-private .lobby-map-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lobby-chat-fab:not([hidden]) {
        border: 1px solid #bd62ff;
        background: linear-gradient(145deg, #b44dff, #6e20b0);
        color: #fff;
        box-shadow: 0 0 24px rgba(166, 55, 255, .38), 0 10px 24px rgba(0, 0, 0, .48);
    }

    .lobby-chat.lobby-chat--mobile-open {
        background:
            radial-gradient(circle at 50% 0, rgba(142, 45, 229, .16), transparent 34%),
            #03070c;
    }

    .lobby-chat-head,
    .lobby-chat-compose {
        background: rgba(6, 13, 21, .98);
        border-color: rgba(74, 155, 194, .26);
    }

    .mm-bottom-nav {
        background: rgba(3, 9, 15, .98);
        backdrop-filter: blur(18px);
    }

    .mm-nav-item.mm-nav-active {
        box-shadow: inset 0 3px 0 #b84cff;
        background: linear-gradient(180deg, rgba(101, 29, 147, .52), rgba(27, 10, 45, .2));
    }
}

@media (max-width: 430px) {
    .mm-logo-image {
        width: 78px;
        height: 36px;
    }

    .mm-header-chips {
        gap: 4px;
    }

    .mm-profile-chip,
    .mm-wallet-chip,
    .mm-token-chip,
    .mm-conn-chip {
        min-height: 34px;
    }

    .mm-practice-map-options {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: min(78vw, 280px);
        justify-content: start;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 2px;
        padding: 3px 3px 13px;
    }

    .mm-practice-map-options .lobby-map-option {
        min-height: 206px;
        scroll-snap-align: start;
    }

    .mm-practice-map-options .lobby-map-copy small {
        display: none;
    }

    .mm-action-copy small {
        font-size: .5em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mm-practice-map-options .lobby-map-option {
        transition: none;
    }
}
