/* =================================================================================
 * KEYSTONE — main menu (#start-modal) and the game-wide corner tiles
 * ---------------------------------------------------------------------------------
 * Replaces menu-aaa.css. The modes are a list grouped by the tagline's verbs
 * (Stack · Breathe · Ascend); the stage beside them describes the current mode and
 * holds its one primary action; the dock names every secondary destination.
 * Behaviour: src/ui/main-menu/main-menu.js. Record: docs/MENU_UI_OVERHAUL_2026-10.md.
 *
 * No backdrop-filter anywhere here: the menu floats over the live intro scene
 * (docs/CORE_UI_PERFORMANCE_FIXES_2026-10.md, scripts/windows-menu-visual-validation).
 * ============================================================================== */

/* ---- One logo: the DOM wordmark is the menu's identity on every platform -------
 * The intro title flies into this slot (intro-menu-wordmark-handoff.js targets
 * `.main-menu-logo img` when the shrunken intro title is not displayed), exactly the
 * path packaged Electron builds already take. */
body.start-modal-open .intro-title-container.shrink-to-logo {
    display: none !important;
}

body.start-modal-open #start-modal .main-menu-logo {
    display: block !important;
}

/* ---- Menu root -------------------------------------------------------------------- */
/* The widest the menu lays out: its 1080p composition. A wider screen (ultrawide, or QHD
 * and up) centres that frame, so the stage stays beside the list instead of drifting
 * into the middle of the extra width; the scene fills the margins. The wide-screen
 * block under Responsive starts one pixel past this width. */
:root {
    --sb-menu-max: 1920px;
}

#start-modal.modal.game-mode-selection {
    display: block;
    background: transparent;
    overflow: hidden;
    pointer-events: none;
}

/* Legibility: a left scrim under the list and a floor under the dock. The mode's own light
   lies beneath it (.sb-menu-light). */
#start-modal.game-mode-selection::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(7, 6, 22, 0.66) 0%, rgba(7, 6, 22, 0.28) 34%, rgba(7, 6, 22, 0) 58%),
        linear-gradient(0deg, rgba(7, 6, 22, 0.55) 0%, rgba(7, 6, 22, 0) 22%);
}

/* ---- The page's light: the current mode lends it (main-menu.js, MenuLight) -------------
 * The way a chapter tints the Odyssey navigator's sky: a soft glow around the stage, a
 * wash from the top corner and a floor of light under the stage, in the mode's hue. Two
 * layers hand the light over (opacity only), so a change of mode cross-fades instead of
 * switching; at rest they cost nothing. Gradients only, no blur; above the intro world,
 * which shows through, and beneath the legibility scrim. */
#start-modal .sb-menu-light {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

#start-modal .sb-menu-light__layer {
    --sb-light-rgb: var(--sb-aqua-rgb);
    --sb-light-x: 66%;
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 76% at var(--sb-light-x) 48%,
            rgba(var(--sb-light-rgb), 0.24), rgba(var(--sb-light-rgb), 0.15) 48%,
            rgba(var(--sb-light-rgb), 0.055) 72%, transparent 92%),
        radial-gradient(40% 50% at 100% 0%, rgba(var(--sb-light-rgb), 0.16), transparent 72%),
        radial-gradient(50% 30% at var(--sb-light-x) 104%, rgba(var(--sb-light-rgb), 0.16), transparent 72%);
    opacity: 0;
    transition: opacity 0.9s var(--sb-ease-breathe);
}

#start-modal .sb-menu-light__layer.is-on {
    opacity: 1;
}

#start-modal .sb-menu-light__layer[data-light='single'] { --sb-light-rgb: var(--sb-aqua-rgb); }
#start-modal .sb-menu-light__layer[data-light='infinity'] { --sb-light-rgb: var(--sb-lavender-rgb); }
#start-modal .sb-menu-light__layer[data-light='stillfall'] { --sb-light-rgb: var(--sb-coral-rgb); }
#start-modal .sb-menu-light__layer[data-light='local-multiplayer'] { --sb-light-rgb: var(--sb-rose-rgb); }
#start-modal .sb-menu-light__layer[data-light='online-multiplayer'] { --sb-light-rgb: var(--sb-sky-rgb); }
#start-modal .sb-menu-light__layer:is([data-light='serenity'], [data-light='sukha']) { --sb-light-rgb: var(--sb-mint-rgb); }
#start-modal .sb-menu-light__layer[data-light='odyssey'] { --sb-light-rgb: var(--sb-gold-rgb); }

#start-modal .sb-menu {
    --sb-pad-x: clamp(24px, 5vw, 88px);
    position: relative;
    display: grid;
    /* In rem, with the breakpoints in em: larger text widens the list (and switches to the
       stacked layout sooner) instead of cutting "Online Versus" to "Onli…". 280-380 px at 16 px. */
    grid-template-columns: minmax(17.5rem, 23.75rem) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    column-gap: clamp(28px, 6vw, 112px);
    width: 100%;
    max-width: var(--sb-menu-max);
    height: 100%;
    min-height: 100%;
    margin-inline: auto;
    padding: clamp(22px, 4.6vh, 50px) var(--sb-pad-x) clamp(16px, 3vh, 30px);
    box-sizing: border-box;
    color: var(--sb-text);
    font-family: var(--sb-font-text);
    pointer-events: none;
}

/* Per-mode hue, shared by the list item, the stage and the aura. */
#start-modal [data-mode='single'],
#start-modal .sb-menu[data-current='single'] { --sb-mode-rgb: var(--sb-aqua-rgb); --sb-mode: var(--sb-aqua); }
#start-modal [data-mode='infinity'],
#start-modal .sb-menu[data-current='infinity'] { --sb-mode-rgb: var(--sb-lavender-rgb); --sb-mode: var(--sb-lavender); }
/* Stillfall' in-game hue (stillfall.css: the well walls and the panel's edge). */
#start-modal [data-mode='stillfall'],
#start-modal .sb-menu[data-current='stillfall'] { --sb-mode-rgb: var(--sb-coral-rgb); --sb-mode: var(--sb-coral); }
#start-modal [data-mode='local-multiplayer'],
#start-modal .sb-menu[data-current='local-multiplayer'] { --sb-mode-rgb: var(--sb-rose-rgb); --sb-mode: var(--sb-rose); }
#start-modal [data-mode='online-multiplayer'],
#start-modal .sb-menu[data-current='online-multiplayer'] { --sb-mode-rgb: var(--sb-sky-rgb); --sb-mode: var(--sb-sky); }
#start-modal [data-mode='serenity'],
#start-modal .sb-menu[data-current='serenity'] { --sb-mode-rgb: var(--sb-mint-rgb); --sb-mode: var(--sb-mint); }
#start-modal [data-mode='sukha'],
#start-modal .sb-menu[data-current='sukha'] { --sb-mode-rgb: var(--sb-mint-rgb); --sb-mode: var(--sb-mint); }
#start-modal [data-mode='odyssey'],
#start-modal .sb-menu[data-current='odyssey'] { --sb-mode-rgb: var(--sb-gold-rgb); --sb-mode: var(--sb-gold); }

/* ---- Brand ------------------------------------------------------------------------ */
#start-modal .sb-menu__brand {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 14px;
    pointer-events: none;
}

#start-modal .main-menu-logo {
    position: relative;
    margin: 0;
    padding: 0;
    font-size: 0;
    line-height: 0;
    text-align: left;
    background: none;
    text-shadow: none;
    filter: none;
    animation: sb-rise-in 0.7s var(--sb-ease-lock) both;
}

#start-modal .main-menu-logo::after {
    content: none;
}

#start-modal .main-menu-logo img {
    display: block;
    width: clamp(168px, 17vw, 252px);
    height: auto;
    margin: 0;
    transform-origin: left center;
    /* Same pulse name as the intro title so the handoff hands its phase over. */
    animation: sb-wordmark-pulse var(--sb-logo-pulse-duration) ease-in-out infinite;
}

#start-modal .sb-menu__tagline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding-left: 2px;
    font: 600 0.625rem / 1 var(--sb-font-display);
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: var(--sb-text-faint);
    animation: sb-fade-in 0.9s ease-out 0.35s both;
}

#start-modal .sb-menu__tagline i {
    width: 4px;
    height: 4px;
    border-radius: 1px;
    background: currentColor;
    opacity: 0.7;
}

/* ---- Mode list ----------------------------------------------------------------------- */
#start-modal .game-mode-cards-container.sb-modes {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 2.2vh, 22px);
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(16px, 3vh, 28px) 0;
    perspective: none;
    pointer-events: auto;
    animation: none;
}

#start-modal .sb-modes__group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#start-modal .sb-modes__label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 6px 16px;
    font: 600 0.625rem / 1 var(--sb-font-display);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--sb-text-faint);
}

#start-modal .sb-modes__label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--sb-line-strong), transparent);
}

#start-modal .game-mode-card {
    position: relative;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    min-height: 46px;
    padding: 9px 16px;
    border-radius: var(--sb-r-md);
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    color: var(--sb-text-muted);
    cursor: pointer;
    overflow: visible;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: none !important;
    transition:
        background var(--sb-dur-2) var(--sb-ease-lock),
        border-color var(--sb-dur-2) var(--sb-ease-lock),
        color var(--sb-dur-2) var(--sb-ease-lock);
    animation: sb-rise-in 0.55s var(--sb-ease-lock) both;
}

/* Stagger the entrance down the list. */
#start-modal .sb-modes__group:nth-of-type(1) .game-mode-card:nth-of-type(1) { animation-delay: 0.04s; }
#start-modal .sb-modes__group:nth-of-type(1) .game-mode-card:nth-of-type(2) { animation-delay: 0.08s; }
#start-modal .sb-modes__group:nth-of-type(1) .game-mode-card:nth-of-type(3) { animation-delay: 0.12s; }
#start-modal .sb-modes__group:nth-of-type(1) .game-mode-card:nth-of-type(4) { animation-delay: 0.16s; }
#start-modal .sb-modes__group:nth-of-type(2) .game-mode-card:nth-of-type(1) { animation-delay: 0.22s; }
#start-modal .sb-modes__group:nth-of-type(2) .game-mode-card:nth-of-type(2) { animation-delay: 0.26s; }
#start-modal .sb-modes__group:nth-of-type(3) .game-mode-card:nth-of-type(1) { animation-delay: 0.32s; }

#start-modal .mode-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin: 0;
    color: var(--sb-mode);
    opacity: 0.72;
    filter: none;
    animation: none;
    transform: none;
    transition: opacity var(--sb-dur-2) var(--sb-ease-lock);
}

#start-modal .mode-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    filter: none;
    transform: none;
    transition: none;
}

#start-modal .mode-card-title {
    margin: 0;
    font: 600 1.0625rem / 1.15 var(--sb-font-display);
    letter-spacing: 0.005em;
    text-transform: none;
    text-align: left;
    color: inherit;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    text-shadow: none;
    transform: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Desktop: the stage carries the description; keep it for assistive tech. */
#start-modal .mode-card-desc {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* A resting pointer only lifts the text; the current item carries the full state. */
#start-modal .game-mode-card:hover {
    color: var(--sb-text);
    background: rgba(var(--sb-mode-rgb), 0.06);
}

/* Current = hovered, focused, or last chosen (main-menu.js sets .is-current). */
#start-modal .game-mode-card.is-current,
#start-modal .game-mode-card:focus-visible,
#start-modal .game-mode-card.gamepad-focused {
    color: var(--sb-text);
    border-color: rgba(var(--sb-mode-rgb), 0.3);
    background:
        radial-gradient(160px circle at calc(50% + var(--spotlight-x, 0px)) calc(50% + var(--spotlight-y, 0px)), rgba(var(--sb-mode-rgb), 0.12), transparent 70%),
        linear-gradient(90deg, rgba(var(--sb-mode-rgb), 0.17) 0%, rgba(var(--sb-mode-rgb), 0.04) 70%, rgba(var(--sb-mode-rgb), 0) 100%);
    box-shadow: none;
    transform: none !important;
}

#start-modal .game-mode-card.is-current .mode-card-icon,
#start-modal .game-mode-card:hover .mode-card-icon,
#start-modal .game-mode-card:focus-visible .mode-card-icon {
    opacity: 1;
}

#start-modal .game-mode-card:focus-visible,
#start-modal .game-mode-card.gamepad-focused {
    outline: 2px solid rgba(var(--sb-cream-rgb), 0.82);
    outline-offset: 3px;
}

#start-modal .game-mode-card:active {
    background: rgba(var(--sb-mode-rgb), 0.22);
}

/* Steam-gated online: calm and explicit, never silent. */
#start-modal .game-mode-card.steam-disabled {
    opacity: 1;
    filter: none;
    cursor: default;
    color: var(--sb-text-faint);
    box-shadow: none;
}

#start-modal .game-mode-card.steam-disabled .mode-card-icon {
    opacity: 0.4;
}

#start-modal .game-mode-card.steam-disabled::after {
    content: attr(data-disabled-label);
    position: static;
    grid-column: 3;
    padding: 5px 7px;
    border-radius: 6px;
    border: 1px solid var(--sb-line-strong);
    background: transparent;
    color: var(--sb-text-faint);
    font: 600 0.5625rem / 1 var(--sb-font-display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    white-space: nowrap;
}

#start-modal .game-mode-card.steam-disabled:hover,
#start-modal .game-mode-card.steam-disabled.is-current {
    color: var(--sb-text-muted);
    border-color: var(--sb-line);
    background: rgba(var(--sb-cream-rgb), 0.03);
}

/* ---- Stage ---------------------------------------------------------------------------- */
#start-modal .sb-stage {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: center;
    position: relative;
    width: min(720px, 100%);
    margin-top: clamp(8px, 4vh, 48px);
    pointer-events: auto;
}

#start-modal .sb-stage:empty {
    display: none;
}

#start-modal .sb-stage__panel {
    /* The picture across the top, and how far the eyebrow and wordmark rise into its fade. */
    --sb-art-h: clamp(176px, 31vh, 300px);
    --sb-art-rise: clamp(54px, 7.4vh, 70px);
    /* Room under the picture for the longest copy (Sukha Sessions with its note). */
    --sb-copy-min: clamp(394px, 57vh, 448px);
    position: relative;
    display: flex;
    flex-direction: column;
    /* One height for every mode, so the panel never jumps and Play stays put. */
    min-height: calc(var(--sb-art-h) - var(--sb-art-rise) + var(--sb-copy-min));
    padding: calc(var(--sb-art-h) - var(--sb-art-rise)) clamp(26px, 3vw, 42px) clamp(26px, 4vh, 36px);
    overflow: hidden;
    border-radius: var(--sb-r-xl);
    border: 1px solid var(--sb-line);
    background:
        radial-gradient(90% 70% at 100% 0%, rgba(var(--sb-mode-rgb), 0.13), transparent 62%),
        linear-gradient(180deg, rgba(27, 23, 60, 0.88) 0%, rgba(12, 10, 30, 0.93) 100%);
    box-shadow: inset 0 1px 0 rgba(var(--sb-cream-rgb), 0.07);
    transition: background 0.5s var(--sb-ease-breathe);
}

#start-modal .sb-stage__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    animation: sb-stage-swap 0.42s var(--sb-ease-lock) both;
}

@keyframes sb-stage-swap {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* ---- Stage art: the mode, captured from the game (src/ui/main-menu/stage-art.js) ----
 * The layer keeps the mode's hue glow under the picture, so a picture still loading (or
 * missing) leaves an intentional panel. The mask fades it into the night glass; the
 * panel's rounded corners clip it (overflow: hidden). */
#start-modal .sb-stage__art {
    position: absolute;
    inset: 0 0 auto;
    height: var(--sb-art-h);
    background:
        radial-gradient(70% 90% at 72% 30%, rgba(var(--sb-mode-rgb), 0.2), transparent 72%);
    -webkit-mask: linear-gradient(180deg, #000 0%, #000 46%, rgba(0, 0, 0, 0.55) 72%, rgba(0, 0, 0, 0.16) 88%, transparent 100%);
    mask: linear-gradient(180deg, #000 0%, #000 46%, rgba(0, 0, 0, 0.55) 72%, rgba(0, 0, 0, 0.16) 88%, transparent 100%);
    pointer-events: none;
}

/* A night wash from the lower left: the eyebrow and wordmark stand on it. */
#start-modal .sb-stage__art::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(80% 70% at 0% 100%, rgba(10, 8, 26, 0.72), transparent 70%),
        linear-gradient(180deg, rgba(10, 8, 26, 0.14), rgba(10, 8, 26, 0) 30%);
}

#start-modal .sb-stage__frame {
    position: absolute;
    inset: 0;
    translate: var(--sb-art-x, 0px) var(--sb-art-y, 0px);
    transition: translate 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
    animation: sb-art-in 0.76s var(--sb-ease-lock) both;
}

/* Under a newer picture: stays opaque until removed. Without one (no art): fades. */
#start-modal .sb-stage__frame.is-fading {
    opacity: 0;
    transition: opacity 0.4s var(--sb-ease-breathe);
}

#start-modal .sb-stage__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--sb-art-focus, 50% 45%);
    animation: sb-art-drift 30s var(--sb-ease-breathe) infinite alternate;
}

@keyframes sb-art-in {
    from { opacity: 0; transform: scale(1.045); }
    to { opacity: 1; transform: none; }
}

/* Slow enough to read as stillness that is alive, never as motion to follow. */
@keyframes sb-art-drift {
    from { transform: scale(1.06) translate3d(-0.7%, 0.4%, 0); }
    to { transform: scale(1.11) translate3d(0.7%, -0.4%, 0); }
}

/* What the picture shows, when it is the player's own (their Odyssey chapter). */
#start-modal .sb-stage__caption {
    position: absolute;
    top: clamp(18px, 2.6vh, 24px);
    left: clamp(26px, 3vw, 42px);
    z-index: 2;
    margin: 0;
    padding: 6px 10px;
    border-radius: var(--sb-r-xs);
    background: rgba(10, 8, 26, 0.62);
    box-shadow: inset 0 0 0 1px rgba(var(--sb-cream-rgb), 0.1);
    color: var(--sb-text);
    font: 600 0.625rem / 1.3 var(--sb-font-display);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    pointer-events: none;
}

#start-modal .sb-stage__caption[hidden] {
    display: none;
}

#start-modal .sb-stage .sb-eyebrow {
    --sb-accent-rgb: var(--sb-mode-rgb);
}

#start-modal .sb-stage__title {
    display: flex;
    align-items: center;
    min-height: 60px;
    margin: 20px 0 16px;
    font: 700 var(--sb-fs-hero) / 1 var(--sb-font-display);
    letter-spacing: -0.01em;
}

#start-modal .sb-stage__wordmark {
    display: block;
    width: auto;
    max-width: 100%;
    height: clamp(40px, 6.2vh, 58px);
    /* Lifts the lettering off the picture's fade; static, so it costs one raster. */
    filter: drop-shadow(0 2px 14px rgba(7, 6, 22, 0.6));
}

#start-modal .sb-stage__wordmark--tall {
    height: clamp(64px, 10vh, 92px);
}

#start-modal .sb-stage__lede {
    max-width: 46ch;
    margin: 0 0 24px;
    color: var(--sb-text-muted);
    font: 500 1.0625rem / 1.6 var(--sb-font-text);
    text-wrap: pretty;
}

#start-modal .sb-stage__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px clamp(20px, 3vw, 36px);
    margin: 0 0 24px;
}

#start-modal .sb-stage__fact {
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    margin: 0;
    min-width: 0;
}

#start-modal .sb-stage__fact dt {
    font: 600 0.5625rem / 1 var(--sb-font-display);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--sb-text-faint);
}

#start-modal .sb-stage__fact dd {
    margin: 0;
    font: 600 1.375rem / 1 var(--sb-font-display);
    font-variant-numeric: tabular-nums;
    color: var(--sb-text);
    white-space: nowrap;
}

#start-modal .sb-stage__progress {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 26px;
}

#start-modal .sb-stage__progress .sb-meter {
    --sb-accent-rgb: var(--sb-mode-rgb);
    flex: 1;
}

#start-modal .sb-stage__note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 22px;
    padding: 12px 14px;
    border-radius: var(--sb-r-sm);
    border: 1px solid var(--sb-line);
    background: rgba(var(--sb-cream-rgb), 0.03);
    color: var(--sb-text-muted);
    font: 500 0.875rem / 1.5 var(--sb-font-text);
}

#start-modal .sb-stage__note::before {
    content: '';
    flex: none;
    width: 7px;
    height: 7px;
    margin-top: 6px;
    border-radius: 2px;
    background: rgba(var(--sb-mode-rgb), 0.9);
}

#start-modal .sb-stage__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 6px;
}

#start-modal .sb-stage__actions .sb-btn--primary {
    min-width: 168px;
}

#start-modal .sb-stage__actions .sb-btn[aria-disabled='true'] {
    background: rgba(var(--sb-cream-rgb), 0.06);
    color: var(--sb-text-muted);
    box-shadow: none;
}

#start-modal .sb-stage__actions .sb-btn[aria-disabled='true'] .sb-kbd {
    display: none;
}

/* ---- Footer: dock, headphones, input hints -------------------------------------- */
#start-modal .sb-menu__footer {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    align-items: center;
    gap: 12px 24px;
    padding-top: 14px;
    pointer-events: none;
    animation: sb-fade-in 0.8s ease-out 0.4s both;
}

#start-modal .sb-dock {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    pointer-events: auto;
}

#start-modal .sb-dock__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--sb-text-muted);
    font: 600 0.65rem / 1 var(--sb-font-display);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        color var(--sb-dur-2) var(--sb-ease-lock),
        background var(--sb-dur-2) var(--sb-ease-lock),
        border-color var(--sb-dur-2) var(--sb-ease-lock);
}

#start-modal .sb-dock__btn svg {
    flex: none;
    opacity: 0.85;
}

#start-modal .sb-dock__btn:hover {
    color: var(--sb-text);
    background: rgba(var(--sb-cream-rgb), 0.06);
    border-color: var(--sb-line);
}

#start-modal .sb-dock__btn:focus-visible {
    outline: 2px solid rgba(var(--sb-cream-rgb), 0.82);
    outline-offset: 2px;
    color: var(--sb-text);
}

/* Quit (desktop only, main-menu.js) is the way out, not a place: a hairline sets it apart
   from the places the dock opens. It asks for a second press before it closes the game. */
#start-modal .sb-dock__btn--quit {
    position: relative;
    margin-left: 13px;
}

#start-modal .sb-dock__btn--quit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -9px;
    width: 1px;
    height: 18px;
    background: var(--sb-line-strong);
    transform: translateY(-50%);
    pointer-events: none;
}

#start-modal .sb-dock__btn--quit.is-confirming {
    color: var(--sb-danger);
    border-color: rgba(var(--sb-danger-rgb), 0.45);
    background: rgba(var(--sb-danger-rgb), 0.08);
}

#start-modal .headphone-badge {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    opacity: 1;
    animation: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    pointer-events: none;
}

#start-modal .headphone-icon {
    width: 14px;
    height: 14px;
    color: var(--sb-text-faint);
    fill: none;
    filter: none;
}

#start-modal .headphone-text {
    color: var(--sb-text-faint);
    font: 500 0.75rem / 1 var(--sb-font-text);
    letter-spacing: 0.01em;
    text-transform: none;
    text-shadow: none;
}

#start-modal .sb-hints {
    margin-left: auto;
}

/* ---- Keystone glyphs (src/ui/components/cosmic-icons.js) ------------------------
 * Each mode icon is a line form completed by one solid tile. The icons rest still; when a
 * mode becomes current its tile locks in once (scale, no fall: the brand guardrails in
 * docs/desktop-icons.md). Reduced motion keeps the tile still. */
#start-modal .cs-icon * {
    transform-box: fill-box;
    transform-origin: center;
}

#start-modal .game-mode-card.is-current .cs-tile,
#start-modal .game-mode-card:focus-visible .cs-tile,
#start-modal .game-mode-card.gamepad-focused .cs-tile {
    animation: sb-tile-lock var(--sb-dur-3, 0.42s) var(--sb-ease-lock) both;
}

@keyframes sb-tile-lock {
    from { transform: scale(0.7); opacity: 0.35; }
    to { transform: none; opacity: 1; }
}

/* ---- Main-menu player card (desktop builds: the Steam account, top right) ----------
 * src/ui/components/main-menu-player-card.js builds it only where a Steam client can be
 * reached (Electron); a browser build has no card. A night tile on the menu frame's
 * corner: the avatar as a rounded tile, the name in Unbounded, one status line with a
 * square status cell. It leaves under any sheet that covers the menu. */
.main-menu-player-card {
    position: fixed;
    top: clamp(22px, 4.6vh, 50px);
    right: clamp(24px, 5vw, 88px);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(320px, calc(100vw - 32px));
    min-height: 52px;
    padding: 6px 14px 6px 6px;
    box-sizing: border-box;
    border-radius: var(--sb-r-md);
    border: 1px solid var(--sb-line);
    background: linear-gradient(180deg, rgba(27, 23, 60, 0.86), rgba(12, 10, 30, 0.9));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(var(--sb-cream-rgb), 0.06);
    color: var(--sb-text);
    font-family: var(--sb-font-text);
    cursor: default;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
        opacity 0.32s var(--sb-ease-lock),
        transform 0.32s var(--sb-ease-lock),
        visibility 0s linear 0.32s,
        border-color var(--sb-dur-2) var(--sb-ease-lock),
        background var(--sb-dur-2) var(--sb-ease-lock);
}

.main-menu-player-card.visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    transition-delay: 0s;
}

/* A sheet over the menu (Hub, Records, Replays, Settings, a match setup) has the screen;
   in the narrow layout (below) the list scrolls under the corner. */
body.start-modal-covered .main-menu-player-card.visible {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0s linear 0.2s;
}

/* Online, it opens the Steam overlay. */
.main-menu-player-card:is([data-state='connected'], [data-state='partial']) {
    cursor: pointer;
}

.main-menu-player-card:is([data-state='connected'], [data-state='partial']):hover {
    border-color: var(--sb-line-strong);
    background: linear-gradient(180deg, rgba(36, 31, 76, 0.9), rgba(16, 13, 38, 0.92));
}

.main-menu-player-card:focus-visible,
body.sb-input-gamepad .main-menu-player-card:focus {
    outline: 2px solid rgba(var(--sb-cream-rgb), 0.82);
    outline-offset: 3px;
}

/* The avatar: a rounded tile, never a circle. */
.main-menu-player-card .mmpc-avatar-container {
    position: relative;
    flex: none;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 11px;
    box-shadow: inset 0 0 0 1px rgba(var(--sb-cream-rgb), 0.12);
    background: rgba(var(--sb-night-rgb), 0.6);
}

.main-menu-player-card .mmpc-avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-menu-player-card .mmpc-avatar-skeleton {
    width: 100%;
    height: 100%;
    background: rgba(var(--sb-cream-rgb), 0.08);
    animation: mmpc-breathe 2.2s var(--sb-ease-breathe) infinite;
}

@keyframes mmpc-breathe {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

.main-menu-player-card .mmpc-avatar-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(90% 90% at 30% 20%, rgba(var(--sb-lavender-rgb), 0.32), transparent 70%),
        rgba(var(--sb-lavender-rgb), 0.1);
    color: var(--sb-text);
    font: 700 0.9375rem / 1 var(--sb-font-display);
}

.main-menu-player-card .mmpc-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.main-menu-player-card .mmpc-name {
    max-width: 180px;
    overflow: hidden;
    color: var(--sb-text);
    font: 600 0.8125rem / 1.15 var(--sb-font-display);
    letter-spacing: 0.005em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.main-menu-player-card .mmpc-status {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 18px;
    color: var(--sb-text-muted);
    font: 500 0.75rem / 1.2 var(--sb-font-text);
    white-space: nowrap;
}

/* The status cell: the eyebrow's square, in the state's light. */
.main-menu-player-card .mmpc-status-dot {
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--sb-text-faint);
}

.main-menu-player-card .mmpc-status-dot.online {
    background: var(--sb-success);
}

.main-menu-player-card .mmpc-status-dot.connecting {
    background: var(--sb-warning);
    animation: mmpc-breathe 1.6s var(--sb-ease-breathe) infinite;
}

/* Friends playing and "Limited": words on the status line, after a middot. */
.main-menu-player-card :is(.mmpc-friends-badge, .mmpc-state-pill) {
    display: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-menu-player-card :is(.mmpc-friends-badge, .mmpc-state-pill).visible {
    display: inline-block;
}

.main-menu-player-card :is(.mmpc-friends-badge, .mmpc-state-pill)::before {
    content: '\00b7';
    margin-right: 7px;
    color: var(--sb-text-faint);
}

.main-menu-player-card .mmpc-friends-badge {
    color: var(--sb-mint);
}

.main-menu-player-card .mmpc-state-pill.partial {
    color: rgba(var(--sb-warning-rgb), 0.9);
}

.main-menu-player-card .mmpc-retry-btn {
    display: none;
    align-items: center;
    height: 18px;
    margin-left: 3px;
    padding: 0 7px;
    border: 1px solid var(--sb-line-strong);
    border-radius: var(--sb-r-xs);
    background: transparent;
    color: var(--sb-text-muted);
    font: 600 0.5625rem / 1 var(--sb-font-display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        color var(--sb-dur-2) var(--sb-ease-lock),
        border-color var(--sb-dur-2) var(--sb-ease-lock),
        background var(--sb-dur-2) var(--sb-ease-lock);
}

.main-menu-player-card .mmpc-retry-btn.visible {
    display: inline-flex;
}

.main-menu-player-card .mmpc-retry-btn:hover {
    border-color: rgba(var(--sb-cream-rgb), 0.4);
    background: rgba(var(--sb-cream-rgb), 0.06);
    color: var(--sb-text);
}

.main-menu-player-card .mmpc-retry-btn:focus-visible {
    outline: 2px solid rgba(var(--sb-cream-rgb), 0.82);
    outline-offset: 2px;
}

/* ---- Corner tiles (game-wide) ----------------------------------------------------
 * Hub, records, replays, the Odyssey navigator and settings share one rounded-square
 * tile on the right edge in every mode. On the main menu the dock replaces them. */
.serenity-hub-icon,
.replays-icon,
.highscores-icon,
.odyssey-navigator-icon,
#settings-btn-global.floating-settings-btn {
    border-radius: 14px;
    border: 1px solid var(--sb-line-strong);
    background: linear-gradient(180deg, rgba(27, 23, 60, 0.86), rgba(12, 10, 30, 0.9));
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(var(--sb-cream-rgb), 0.07);
    color: var(--sb-text-muted);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition:
        border-color var(--sb-dur-2) var(--sb-ease-lock),
        color var(--sb-dur-2) var(--sb-ease-lock),
        background var(--sb-dur-2) var(--sb-ease-lock),
        opacity 0.32s ease;
}

.serenity-hub-icon {
    width: 50px;
    height: 50px;
    right: 15px;
    bottom: 92px;
}

.highscores-icon,
.odyssey-navigator-icon {
    right: 15px;
    bottom: 154px;
}

.replays-icon {
    right: 15px;
    bottom: 216px;
}

#settings-btn-global.floating-settings-btn {
    width: 50px;
    height: 50px;
    padding: 12px;
}

#settings-btn-global.floating-settings-btn::before {
    display: none;
}

.serenity-hub-icon:hover,
.replays-icon.visible:hover,
.highscores-icon.visible:hover,
.odyssey-navigator-icon.visible:hover,
#settings-btn-global.floating-settings-btn:hover {
    border-color: rgba(var(--sb-cream-rgb), 0.34);
    color: var(--sb-text);
    background: linear-gradient(180deg, rgba(38, 33, 80, 0.9), rgba(16, 13, 38, 0.92));
}

.serenity-hub-icon:focus-visible,
.replays-icon:focus-visible,
.highscores-icon:focus-visible,
.odyssey-navigator-icon:focus-visible,
#settings-btn-global.floating-settings-btn:focus-visible {
    outline: 2px solid rgba(var(--sb-cream-rgb), 0.82);
    outline-offset: 3px;
}

.replays-icon .replays-icon-svg,
.highscores-icon .highscores-icon-svg {
    padding: 9px;
    box-sizing: border-box;
}

.serenity-hub-icon .hub-icon-svg {
    padding: 0;
    box-sizing: border-box;
    transform: translateY(-15%) scale(1.18);
    transform-origin: center;
}

.odyssey-navigator-icon .odyssey-navigator-icon-svg {
    width: 30px;
    height: 30px;
}

/* On the main menu the dock names these destinations; the tiles and the floating
 * Sukha entry would only repeat it. They stay in the DOM — the dock proxies to them. */
body.start-modal-open #serenity-hub-icon,
body.start-modal-open #open-replays-btn,
body.start-modal-open #highscores-icon-btn,
body.start-modal-open #settings-btn-global,
body.start-modal-open #sukha-sessions-btn.sukha-sessions-entry {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ---- Responsive -------------------------------------------------------------------- */
/* Large displays: a roomier stage. */
@media (min-width: 100em) and (min-height: 56.25em) {
    #start-modal .sb-stage { width: min(780px, 100%); }
    #start-modal .sb-stage__lede { font-size: 1.125rem; }
}

/* Wider than the menu frame (one pixel past --sb-menu-max): the ambient light lies on the
 * centred frame as it lies on the whole screen up to that width (left of the frame the
 * scrim keeps its edge tone), and the player card keeps to the frame's corner. Plain
 * calc() only: Chromium rejects min() in a radial-gradient's size, which voids the whole
 * background. */
@media (min-width: 120.0625em) and (min-height: 33.8125em) and (min-height: 649px) {
    :root {
        /* The frame's left edge; 50% resolves against the screen-wide box that uses it. */
        --sb-frame-x: calc(50% - var(--sb-menu-max) / 2);
    }

    /* The light keeps to the stage on the centred frame. */
    #start-modal .sb-menu-light__layer {
        --sb-light-x: calc(var(--sb-frame-x) + var(--sb-menu-max) * 0.66);
    }

    #start-modal.game-mode-selection::before {
        background:
            linear-gradient(90deg,
                rgba(7, 6, 22, 0.66) var(--sb-frame-x),
                rgba(7, 6, 22, 0.28) calc(var(--sb-frame-x) + var(--sb-menu-max) * 0.34),
                rgba(7, 6, 22, 0) calc(var(--sb-frame-x) + var(--sb-menu-max) * 0.58)),
            linear-gradient(0deg, rgba(7, 6, 22, 0.55) 0%, rgba(7, 6, 22, 0) 22%);
    }

    /* The player card keeps to the frame's corner (its right padding, --sb-pad-x). */
    .main-menu-player-card {
        right: calc(var(--sb-frame-x) + 88px);
    }
}

/* Short windows give the copy its room before the picture. */
@media (max-height: 50em) and (min-width: 56.3125em) and (min-height: 33.8125em) and (min-height: 649px) {
    #start-modal .sb-stage__panel { --sb-art-h: clamp(160px, 26vh, 210px); }
}

/* Short windows: the player card keeps to the band above the stage. */
@media (max-height: 53.75em) and (min-width: 56.3125em) and (min-height: 33.8125em) and (min-height: 649px) {
    .main-menu-player-card {
        top: 14px;
        gap: 10px;
        min-height: 44px;
        padding: 5px 12px 5px 5px;
    }

    .main-menu-player-card .mmpc-avatar-container {
        width: 32px;
        height: 32px;
        border-radius: 9px;
    }

    .main-menu-player-card .mmpc-info { gap: 4px; }
    .main-menu-player-card .mmpc-name { font-size: 0.75rem; }
    .main-menu-player-card .mmpc-status { font-size: 0.6875rem; }
}

/* Desktop builds end the dock with Quit; on a laptop-width screen the footer keeps to one
   line (so the stage keeps its height) by leaving out the headphones note. */
@media (max-width: 90em) and (min-width: 56.3125em) and (min-height: 33.8125em) and (min-height: 649px) {
    #start-modal .sb-menu__footer:has(.sb-dock__btn--quit) .headphone-badge {
        display: none;
    }
}

/* Narrower still, the footer wrapped (1024 x 768 left Settings alone on a second row, and
   the hints under it): the note goes in every build, the dock tightens, and under 1100 px the
   hints keep Play and Settings (the list shows its own arrows). One line from 901 px up,
   with or without Quit (measured: the footer's height at every width). */
@media (max-width: 79.9375em) and (min-width: 56.3125em) and (min-height: 33.8125em) and (min-height: 649px) {
    #start-modal .sb-menu__footer .headphone-badge {
        display: none;
    }

    #start-modal .sb-dock__btn {
        gap: 8px;
        padding: 0 10px;
        letter-spacing: 0.12em;
    }
}

@media (max-width: 68.6875em) and (min-width: 56.3125em) and (min-height: 33.8125em) and (min-height: 649px) {
    #start-modal .sb-menu__footer .sb-hints > li:first-child {
        display: none;
    }
}

@media (max-width: 61.1875em) and (min-width: 56.3125em) and (min-height: 33.8125em) and (min-height: 649px) {
    #start-modal .sb-menu__footer {
        column-gap: 16px;
    }

    #start-modal .sb-dock__btn {
        padding: 0 8px;
        letter-spacing: 0.08em;
    }
}

/* Laptops / short windows: tighter rhythm, smaller stage typography. */
@media (max-height: 47.5em) and (min-width: 56.3125em) and (min-height: 33.8125em) and (min-height: 649px) {
    #start-modal .game-mode-card { min-height: 40px; padding-block: 7px; }
    #start-modal .sb-modes__label { margin-bottom: 4px; }
    #start-modal .sb-stage__title { margin: 14px 0 12px; min-height: 48px; }
    #start-modal .sb-stage__lede { margin-bottom: 18px; font-size: 1rem; }
    #start-modal .sb-stage__facts { margin-bottom: 18px; }
    #start-modal .sb-stage__progress { margin-bottom: 20px; }
}

/* Tablets and narrow windows: one column, the descriptions move into the list. The
   breakpoints are in em, so a player's larger default text reaches this layout sooner (at
   32 px text a 1600-wide window, and a 1920 x 1080 one, whose height is 33.75 em, where the
   two-column menu ran off its own bottom edge). Under 648 px tall the list ran into the
   footer and the tagline into its first label at any text size. */
@media (max-width: 56.25em), (max-height: 33.75em), (max-height: 648px) {
    #start-modal.modal.game-mode-selection {
        overflow-x: hidden;
        overflow-y: auto;
        pointer-events: auto;
    }

    #start-modal.game-mode-selection::before {
        position: fixed;
        background: linear-gradient(180deg, rgba(7, 6, 22, 0.35), rgba(7, 6, 22, 0.7));
    }

    /* One column: the light falls from above, over the list. */
    #start-modal .sb-menu-light {
        position: fixed;
    }

    #start-modal .sb-menu-light__layer {
        background:
            radial-gradient(90% 46% at 50% 22%, rgba(var(--sb-light-rgb), 0.16), transparent 72%),
            radial-gradient(70% 30% at 100% 0%, rgba(var(--sb-light-rgb), 0.12), transparent 72%);
    }

    #start-modal .sb-menu {
        display: flex;
        flex-direction: column;
        gap: 18px;
        height: auto;
        min-height: 100%;
        max-width: 38.75rem;
        margin: 0 auto;
        padding: max(18px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
        pointer-events: auto;
    }

    /* Room for the player card in the top-right corner. */
    #start-modal .sb-menu__brand {
        padding-right: 150px;
        gap: 10px;
    }

    /* The card on the brand's line: avatar, name and the status cell's word. */
    .main-menu-player-card {
        top: max(18px, env(safe-area-inset-top));
        right: 16px;
        gap: 10px;
        min-height: 46px;
        padding: 5px 12px 5px 5px;
    }

    .main-menu-player-card .mmpc-avatar-container {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .main-menu-player-card .mmpc-name {
        max-width: 112px;
    }

    .main-menu-player-card :is(.mmpc-friends-badge, .mmpc-state-pill).visible {
        display: none;
    }

    .main-menu-player-card.visible.is-scrolled {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        pointer-events: none;
        transition:
            opacity 0.2s ease,
            transform 0.2s ease,
            visibility 0s linear 0.2s;
    }

    #start-modal .main-menu-logo img {
        width: clamp(140px, 38vw, 200px);
    }

    #start-modal .game-mode-cards-container.sb-modes {
        padding: 0;
        gap: 16px;
    }

    #start-modal .sb-stage {
        display: none;
    }

    #start-modal .game-mode-card {
        grid-template-columns: 26px minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        row-gap: 3px;
        min-height: 60px;
        padding: 11px 14px;
        border-color: var(--sb-line);
        background: linear-gradient(180deg, rgba(27, 23, 60, 0.72), rgba(12, 10, 30, 0.78));
    }

    #start-modal .mode-card-icon {
        grid-row: 1 / span 2;
    }

    #start-modal .mode-card-title {
        grid-column: 2;
        font-size: 1rem;
    }

    #start-modal .mode-card-desc {
        position: static;
        grid-column: 2;
        width: auto;
        height: auto;
        margin: 0;
        overflow: visible;
        clip: auto;
        clip-path: none;
        white-space: normal;
        color: var(--sb-text-faint);
        font: 500 0.8125rem / 1.4 var(--sb-font-text);
        text-align: left;
    }

    #start-modal .game-mode-card.steam-disabled::after {
        grid-row: 1 / span 2;
    }

    #start-modal .sb-menu__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding-top: 4px;
    }

    #start-modal .sb-dock {
        display: grid;
        grid-auto-columns: minmax(0, 1fr);
        grid-auto-flow: column;
        gap: 6px;
    }

    #start-modal .sb-dock__btn {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        min-height: 58px;
        padding: 8px 4px;
        border-color: var(--sb-line);
        background: rgba(var(--sb-night-rgb), 0.5);
        font-size: 0.55rem;
        letter-spacing: 0.12em;
        text-align: center;
    }

    /* Tiles here: a wider gap, not the hairline, sets Quit apart. */
    #start-modal .sb-dock__btn--quit {
        margin-left: 6px;
    }

    #start-modal .sb-dock__btn--quit::before {
        content: none;
    }

    #start-modal .headphone-badge {
        justify-content: center;
    }

    #start-modal .sb-hints {
        display: none;
    }
}

@media (max-width: 23.75em) {
    #start-modal .sb-menu__brand { padding-right: 0; }
    .main-menu-player-card .mmpc-name { max-width: 72px; }
    .main-menu-player-card .mmpc-retry-btn.visible { display: none; }
    #start-modal .sb-dock__btn { font-size: 0.5rem; letter-spacing: 0.08em; }
}

/* Touch-first devices have no keys to hint at. */
@media (hover: none) and (pointer: coarse) {
    #start-modal .sb-hints { display: none; }
}

/* ---- Reduced motion -------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    #start-modal .game-mode-card,
    #start-modal .main-menu-logo,
    #start-modal .main-menu-logo img,
    #start-modal .sb-menu__tagline,
    #start-modal .sb-menu__footer,
    #start-modal .sb-stage__content,
    #start-modal .sb-stage__frame img,
    #start-modal .cs-icon *,
    #start-modal .cs-icon {
        animation: none !important;
    }

    /* Pictures still cross-fade (opacity only): no settle, drift or lean. */
    #start-modal .sb-stage__frame {
        translate: none;
        animation-name: sb-art-fade !important;
    }

    @keyframes sb-art-fade {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    #start-modal .sb-stage__panel {
        transition: none !important;
    }

    /* The light still hands over, as a shorter plain fade. */
    #start-modal .sb-menu-light__layer {
        transition-duration: 0.5s;
        transition-timing-function: linear;
    }

    /* The card fades (opacity only) and never slides; its cells hold still. */
    .main-menu-player-card,
    .main-menu-player-card.visible {
        transform: none !important;
    }

    .main-menu-player-card .mmpc-avatar-skeleton,
    .main-menu-player-card .mmpc-status-dot.connecting {
        animation: none;
    }

    #start-modal .cs-icon * {
        transform: none !important;
        stroke-dashoffset: 0 !important;
    }
}
