.seo-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#go-to-top { display: none !important; }

.help-section img.logo { max-width: 100%; margin: 0 auto; display: block; clear: both; margin-bottom: 10px; }

#shellBreachBriefing { padding: 12px 14px; margin-bottom: 24px; border-radius: 8px; border: 1px dashed #766BFF; border: 1px dashed var(--numbers-matchup-matchphrase-color); background-color: rgba(118, 107, 255, 0.05); }
    .shell-breach-briefing-title { font-size: 14px; line-height: 20px; font-weight: bold; opacity: 0.75; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.03em; }
        .shell-breach-briefing-title img { float: left; height: 20px; margin-right: 5px; }
        .shell-breach-briefing-title::after { content: ""; display: block; clear: both; }
    #shellBreachBriefing p { margin: 0; font-size: 14px; line-height: 1.5; }
/* Today's countdown to the next system, in the same slot as the past-day line below. */
#sbBriefingCountdown { margin-bottom: 6px; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
    #sbBriefingCountdown .sb-countdown-time { font-weight: bold; }
/* Past-day line under the briefing title. Wraps (rather than nowrap) so "Back to today" drops to its own
   line on a narrow phone instead of overflowing the dashed box. */
#sbBriefingViewingDate { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 2px; margin-bottom: 6px; font-size: 13px; }
    .sb-viewing-date-label { opacity: 0.75; }
    #sbBriefingViewingDateText { font-weight: bold; }
    #sbBriefingBackToToday { margin-left: 6px; font-size: 12px; text-decoration: underline; cursor: pointer; opacity: 0.75; }
        #sbBriefingBackToToday:hover, #sbBriefingBackToToday:focus-visible { opacity: 1; }

#shellBreachMainConsoleWrapper { position: relative; overflow: hidden; border: 1px solid var(--sb-screen-border-color); border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
#shellBreachStatusBar { display: block; background: #555; background: var(--sb-status-bar-background); color: #FFF; color: var(--sb-status-bar-color); font-size: 12px; opacity: 0.7; margin-bottom: 0; padding: 10px; font-family: "Courier New", Consolas, monospace; }
    #shellBreachStatusBar #shellBreachStatusUser { float: left; }
        #shellBreachStatusBar #shellBreachStatusUser b { margin-right: 10px; }
            #shellBreachStatusBar #shellBreachStatusUser b::after { content: "|"; display: inline; margin-left: 10px; }
    #shellBreachStatusBar #shellBreachStatusCount { float: right; }

    /* Forced dark/monospace regardless of the site's own light/dark theme - a terminal reading as a
   terminal is genre convention, not a themeable surface. */
    #shellBreachScreen { background: #0D1117; background: var(--sb-screen-background); padding: 12px 14px; border-top: 1px solid #333; border-top: 1px solid var(--sb-screen-border-color); }

/* Plays once, on the moment a breach is actually solved (ShellBreach.js's own submitCommand success
   handler, never on loading an already-completed day or giving up via Reveal) - a classic CRT power-off:
   the screen stretches into a bright horizontal line, collapses to a point, then snaps back open like the
   monitor powering back on, right as the "Breach complete" banner appears below it. transform-origin stays
   centered so it collapses in place rather than toward a corner; #shellBreachMainConsoleWrapper's own
   overflow:hidden (see its own rule above) clips the brief overshoot at 130% scale so it never pokes past
   the wrapper's rounded corners. */
@keyframes sbCrtOff {
    0% { transform: scale(1, 1); filter: brightness(1); opacity: 1; }
    35% { transform: scale(1.3, 0.02); filter: brightness(6); opacity: 1; }
    50% { transform: scale(0, 0.0001); filter: brightness(20); opacity: 0; }
    65% { transform: scale(0, 0.0001); filter: brightness(20); opacity: 0; }
    80% { transform: scale(1.1, 0.04); filter: brightness(4); opacity: 1; }
    100% { transform: scale(1, 1); filter: brightness(1); opacity: 1; }
}
#shellBreachScreen.sb-crt-off { animation: sbCrtOff 500ms ease-in-out; transform-origin: center center; }
@media (prefers-reduced-motion: reduce) {
    #shellBreachScreen.sb-crt-off { animation: none; }
}

/* The same power-off split in two for a finished challenge: the terminal collapses (first half of
   sbCrtOff), then the stats screen powers on in its place (second half) - see playSbCrtSwapEffect. */
@keyframes sbCrtCollapse {
    0% { transform: scale(1, 1); filter: brightness(1); opacity: 1; }
    70% { transform: scale(1.3, 0.02); filter: brightness(6); opacity: 1; }
    100% { transform: scale(0, 0.0001); filter: brightness(20); opacity: 0; }
}
@keyframes sbCrtReopen {
    0% { transform: scale(0, 0.0001); filter: brightness(20); opacity: 0; }
    30% { transform: scale(0, 0.0001); filter: brightness(20); opacity: 0; }
    60% { transform: scale(1.1, 0.04); filter: brightness(4); opacity: 1; }
    100% { transform: scale(1, 1); filter: brightness(1); opacity: 1; }
}
.sb-crt-collapse { animation: sbCrtCollapse 250ms ease-in forwards; transform-origin: center center; }
.sb-crt-reopen { animation: sbCrtReopen 350ms ease-out; transform-origin: center center; }
@media (prefers-reduced-motion: reduce) {
    .sb-crt-collapse, .sb-crt-reopen { animation: none; }
}

/* End-of-challenge stats - lives in the terminal's frame, so it keeps the terminal's dark, monospace look. */
#sbStatsScreen { background: #0D1117; background: var(--sb-screen-background); border-top: 1px solid #333; border-top: 1px solid var(--sb-screen-border-color); padding: 22px 18px; min-height: 260px; color: #C9D1D9; color: var(--sb-output-color); font-family: "Courier New", Consolas, monospace; text-align: center; }
#sbStatsHeadline { font-size: 26px; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; }
    #sbStatsScreen.is-win #sbStatsHeadline { color: #3FB950; color: var(--sb-line-success-color); }
    #sbStatsScreen.is-loss #sbStatsHeadline { color: #F85149; color: var(--sb-line-error-color); }
#sbStatsSubline { font-size: 14px; margin-top: 6px; opacity: 0.85; }
#sbStatsGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 20px 0 16px; }
.sb-stats-tile { border: 1px solid rgba(255, 255, 255, 0.12); border: 1px solid var(--sb-inputrow-border-top-color); border-radius: 8px; padding: 10px 8px; }
    .sb-stats-tile-value { display: block; font-size: 22px; font-weight: bold; font-variant-numeric: tabular-nums; }
    .sb-stats-tile-label { display: block; font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; opacity: 0.7; margin-top: 3px; }
#sbStatsStages { text-align: left; max-width: 420px; margin: 0 auto 18px; font-size: 13.5px; }
.sb-stats-stage { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.12); border-bottom: 1px dashed var(--sb-inputrow-border-top-color); }
    .sb-stats-stage-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
    .sb-stats-stage.is-cleared .sb-stats-stage-count { color: #3FB950; color: var(--sb-line-success-color); }
    .sb-stats-stage.is-failed .sb-stats-stage-count { color: #F85149; color: var(--sb-line-error-color); }
    .sb-stats-stage.is-unplayed { opacity: 0.45; }
#sbViewStatsHolder { margin-top: 12px; text-align: center; }
#sbStatsActions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; font-family: inherit; }
    #sbStatsActions .sb-versus-btn { flex: 0 1 180px; }

#shellBreachOutput { max-height: 420px; min-height: 220px; overflow: auto; scrollbar-width: thin; font-family: "Courier New", Consolas, monospace; font-size: 13.5px; line-height: 1.55; color: #C9D1D9; color: var(--sb-output-color); }
    .shell-breach-line { white-space: pre-wrap; word-break: break-word; }
    .shell-breach-line-echo { color: #8B949E; color: var(--sb-line-echo-color); margin-top: 6px; }
        .shell-breach-echo-prompt { color: #58A6FF; color: var(--sb-echo-prompt-color); font-weight: bold; }
    .shell-breach-line-info { color: #C9D1D9; color: var(--sb-line-info-color); }
    .shell-breach-line-success { color: #3FB950; color: var(--sb-line-success-color); }
    .shell-breach-line-error { color: #F85149; color: var(--sb-line-error-color); }
.shell-breach-line-info, .shell-breach-line-success, .shell-breach-line-error { line-height: 20px; padding-bottom: 5px; }
.shell-breach-line.is-help-wrapper::after { content: ""; display: block; clear: both; }
.shell-breach-line-text { display: block; clear: both; }
    .shell-breach-line-text.is-help-line span.help-name { width: 230px; float: left; }
    .shell-breach-line-text.is-help-line span.help-description { float: left; }
        .shell-breach-line-text.is-help-line span.help-description::before { content: "-"; display: inline; margin-right: 5px; }

#shellBreachInputRow { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); border-top: 1px solid var(--sb-inputrow-border-top-color); font-family: "Courier New", Consolas, monospace; }
    #shellBreachInputRow.disabled { display: none; }
    #shellBreachPrompt { color: #58A6FF; color: var(--sb-prompt-color); font-weight: bold; font-size: 14px; }
    #shellBreachInput { flex: 1 1 auto; background: transparent; border: none; outline: none; color: #C9D1D9; color: var(--sb-input-color); font-family: "Courier New", Consolas, monospace; font-size: 14px; caret-color: #58a6ff; }
        #shellBreachInput::placeholder { color: #4D5560; color: var(--sb-input-placeholder-color); }
        #shellBreachInput:disabled { opacity: 0.5; }

#shellBreachSolvedBanner { margin-top: 14px; padding: 12px 14px; border-radius: 8px; background: rgba(63, 185, 80, 0.12); border: 1px solid rgba(63, 185, 80, 0.4); color: #2e9e5b; font-weight: 600; text-align: center; }

/* Top-of-page score widget - same shape/behavior as Word Snaps' #secretWordTopScore and Number Connect's
   #dailyHighScore (icon + rank number, a "Best: N" sub-line, a hover-brightening "View Leaderboard"
   link), just centered rather than floated since there's no paired stat sitting on the other side of it
   the way those games pair theirs with a guess/score counter - the terminal's own command count already
   lives inside the dark screen below instead. */
.shellBreachTopScore-holder img.shellBreach-large-logo { float: left; margin-top: 5px; max-width: 240px; }
#shellBreachTopScore { display: inline-block; text-align: center; font-size: 18px; cursor: pointer; margin-bottom: 14px; }
    #shellBreachTopScore::before { content: ""; display: inline-block; background-image: url(../../Assets/icons/highscore.png); background-position: center center; background-repeat: no-repeat; background-size: 20px; width: 20px; height: 20px; margin-right: 4px; margin-top: -2px; vertical-align: middle; }
    #shellBreachTopScore .points { display: inline-block; }
#shellBreachTopScoreSub { display: block; font-size: 11px; opacity: 1; font-weight: normal; margin-top: 1px; }
#shellBreachHighScoresBtnTop { display: block; font-size: 12px; margin-top: 2px; opacity: 0.85; text-decoration: underline; }
    #shellBreachTopScore:hover #shellBreachHighScoresBtnTop { opacity: 1; }

#sbDailyRevealHolder { display: block; clear: both; margin-top: 25px; text-align: right; }
#sbDailyRevealBtn { display: inline-block; cursor: pointer; user-select: none; font-size: 12.5px; font-weight: 600; padding: 5px 14px; border-radius: 16px; opacity: 0.85; background-color: rgba(118, 107, 255, 0.12); transition: all .2s ease-in-out; }
    #sbDailyRevealBtn:hover { opacity: 1; }
    #sbDailyRevealBtn:active { transform: scale(0.97); }
    #sbDailyRevealBtn:focus-visible { outline: 2px solid var(--input-button-background-color); outline-offset: 1px; }

/* Replay calendar - same grid/cell shape as Word Snaps' own #swDailyCalendarHolder/.sw-cal-day, just
   restyled to sit under the terminal's dark screen rather than a light section. */
#sbDailyCalendarHolder { display: block; clear: both; margin-top: 18px; padding-top: 14px; border-top: 1px solid #EEE; border-top: 1px solid var(--menu-bar-border-color); }
#sbDailyCalendarHeader { display: block; clear: both; }
    #sbDailyCalendarTitle { float: left; font-weight: 600; font-size: 14px; line-height: 24px; }

#sbDailyCalendarBody { display: block; clear: both; border: 1px solid var(--section-border-color); background: var(--sidebar-background-color); border-radius: 15px; padding: 10px; margin-top: 10px; }

#sbDailyCalendarWeekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin-bottom: 8px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; opacity: 0.55; }
#sbDailyCalendarGrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
#sbDailyCalendarHint { font-size: 12px; opacity: 0.7; margin-top: 10px; line-height: 1.5; }

.sb-cal-day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; user-select: none; aspect-ratio: 1; border-radius: 10px; box-sizing: border-box; border: 1px solid #DEDEDE; border: 1px solid var(--home-news-item-border-bottom-color); background-color: var(--formcontrol-background); transition: all .15s ease-in-out; }
    .sb-cal-day:hover { background-color: rgba(118, 107, 255, 0.1); }
    .sb-cal-day:active { transform: scale(0.97); }
    .sb-cal-day:focus-visible { outline: 2px solid var(--input-button-background-color); outline-offset: 1px; }
    .sb-cal-num { font-size: 18px; font-weight: 700; line-height: 1.1; }
    .sb-cal-sub { font-size: 14px; opacity: 0.65; line-height: 1.3; font-variant-numeric: tabular-nums; }
    .sb-cal-day.is-played { background-color: rgba(76, 175, 80, 0.14); border-color: rgba(76, 175, 80, 0.5); }
    .sb-cal-day.is-today .sb-cal-num { color: #766BFF; color: var(--input-button-background-color); }
    .sb-cal-day.is-today::after { content: ""; position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background-color: #766BFF; background-color: var(--input-button-background-color); }
    .sb-cal-day.is-selected { border-width: 2px; border-style: solid; border-color: #766BFF; border-color: var(--input-button-background-color); }
    .sb-cal-day.is-revealed { background-color: rgba(0, 0, 0, 0.05); border-style: dashed; opacity: 0.8; }
    .sb-cal-day.sb-cal-day-empty { cursor: default; pointer-events: none; border-color: transparent; background-color: transparent; }

@media screen and (max-width: 600px) {
    .sb-cal-num { font-size: 15px; }
    .sb-cal-sub { font-size: 12px; }
}

@media screen and (max-width: 565px) {
    #shellBreachStatusUser b { display: block; clear: both; }
        #shellBreachStatusUser b::after { display: none !important; }
    #sbDailyCalendarWeekdays, #sbDailyCalendarGrid { gap: 6px; }
    #sbDailyCalendarWeekdays { font-size: 9px; }
    #sbDailyCalendarBody { overflow: auto; }
}

@media screen and (max-width: 550px) {
    .sb-cal-num { font-size: 14px; }
    #shellBreachOutput, #shellBreachInput { font-size: 16px; }
    .shell-breach-line.is-help-wrapper { padding: 10px; border: 1px dashed var(--sb-line-echo-color); margin-bottom: 10px; box-sizing: border-box; }
    .shell-breach-line-text.is-help-line span.help-name { display: block; clear: both; width: 100%; float: none; }
    .shell-breach-line-text.is-help-line span.help-description { display: block; clear: both; float: none; margin-bottom: 10px; margin-top: -3px; font-size: 13px; font-style: italic; }
}

@media screen and (max-width: 450px) {
    .shellBreachTopScore-holder img.shellBreach-large-logo { width: 200px; }
    .sb-cal-day.is-today::after { bottom: 2px; }
}

@media screen and (max-width: 400px) {
    .shellBreachTopScore-holder img.shellBreach-large-logo { width: 175px; margin-top: 10px; }
    .sb-cal-num { font-size: 12px; }
    .sb-cal-sub { font-size: 10px; }
}

@media screen and (max-width: 375px) {
    .shellBreachTopScore-holder img.shellBreach-large-logo { width: 50%; }
}

/* Panel switch entrance/exit - identical animation to Word Snaps'/Number Connect's own swPanelIn/
   swPanelOut (same offset, duration and easing), played by switchToShellBreachPanel whenever the
   terminal, leaderboard or how-to-play panel swaps in. Purely decorative - each panel is already in its
   final position and fully readable without it - so the reduced-motion guard drops it entirely rather
   than shortening it. */
@keyframes sbPanelIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes sbPanelOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-8px); }
}
.sb-panel-in { animation: sbPanelIn 0.25s ease-out both; }
.sb-panel-out { animation: sbPanelOut 0.15s ease-in both; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
    .sb-panel-in, .sb-panel-out { animation: none; }
}

/* Leaderboard panel - reuses the site-wide .user-score-table look (same table other games' leaderboards
   use), just with Shell Breach's own filter/stat block classes so they don't collide with Word
   Snaps'/Number Connect's near-identical ones. */
#shellBreachLeaderboardHolder { display: block; clear: both; }

/* Shell Breach never had its own copy of this - every other game defines .help-section-title itself
   rather than sharing one (see SecretWord.css/numbersMatchup.css), so without this the page title in the
   leaderboard shell above was rendering as plain unstyled text. */
.help-section-title { font-size: 15px; font-weight: bold; margin-bottom: 8px; padding-bottom: 4px; border-bottom: 1px solid #EEE; border-bottom: 1px solid var(--top-search-border-color); }
    .help-section-title > img { height: 20px; float: left; margin-top: -2px; margin-right: 5px; }

/* Smaller, borderless variant for the sub-heading each board (today's/all-time) gets under the shared
   page title above, so they read as sections of one panel rather than competing with it. */
.sb-section-subtitle { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; opacity: 0.6; border-bottom: none; margin-bottom: 6px; padding-bottom: 0; }

/* "Back to game"/"Play Now" buttons on the leaderboard panel - identical treatment to
   #backToSecretWordGameBtn/#secretWordPlayNowBtn and #backToGameBtn/#dailyCompletedViewLeaderboardBtn on
   Number Connect: a plain hover-highlight pill for both, with the back button additionally getting the
   bordered/filled-on-hover pill and back-arrow icon. */
#backToShellBreachGameBtn, #shellBreachPlayNowBtn, #backFromShellBreachHelpBtn, #shellBreachHelpBtn { cursor: pointer; display: inline-block; user-select: none; line-height: 18px; color: #34363E; color: var(--body-text-color); padding: 5px 10px; text-decoration: none; margin-right: 3px; margin-left: 3px; font-size: 14px; border-radius: 20px; background-color: transparent; transition: all .2s ease-in-out; }
    #backToShellBreachGameBtn:hover, #shellBreachPlayNowBtn:hover, #backFromShellBreachHelpBtn:hover, #shellBreachHelpBtn:hover { text-decoration: none; background-color: rgba(0, 0, 0, 0.1); background-color: var(--link-hover-background-color); box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px !important; }
    #backToShellBreachGameBtn:active, #shellBreachPlayNowBtn:active, #backFromShellBreachHelpBtn:active, #shellBreachHelpBtn:active { transform: scale(0.9); }

#backToShellBreachGameBtn, #backFromShellBreachHelpBtn { padding: 8px 18px; text-decoration: none !important; font-size: 13px; font-weight: bold; border: 1.5px solid #766BFF; border: 1.5px solid var(--input-button-background-color); color: #766BFF !important; color: var(--input-button-background-color) !important; background-color: transparent !important; margin-bottom: 14px; }
    #backToShellBreachGameBtn:hover, #backFromShellBreachHelpBtn:hover { background-color: #766BFF !important; background-color: var(--input-button-background-color) !important; color: #FFF !important; color: var(--input-button-text-color) !important; box-shadow: 0 4px 12px rgba(118, 107, 255, 0.35) !important; }
    #backToShellBreachGameBtn:active, #backFromShellBreachHelpBtn:active { transform: scale(0.95); }
    #backToShellBreachGameBtn::before, #backFromShellBreachHelpBtn::before { content: ""; display: inline-block; float: left; background-image: url(../../Assets/icons/back.png); background-repeat: no-repeat; background-position: center center; background-size: contain; margin-top: 2px; margin-right: 5px; width: 14px; height: 14px; filter: var(--formcontrol-field-image-filter); transition: all .2s ease-in-out; }
    #backToShellBreachGameBtn:hover::before, #backToShellBreachGameBtn:active::before, #backFromShellBreachHelpBtn:hover::before, #backFromShellBreachHelpBtn:active::before { filter: grayscale(1) invert(1) brightness(100); }

/* Trigger button for the How to Play panel - plain pill (no border), float-left so it sits under the
   short hint line above it, same shape as Word Snaps' #secretWordHelpBtn. */
#shellBreachHelpBtn { float: left; cursor: pointer; display: inline-block; user-select: none; line-height: 18px; color: #34363E; color: var(--body-text-color); padding: 5px 10px; text-decoration: none; margin-right: 3px; margin-left: 3px; font-size: 14px; border-radius: 20px; background-color: transparent; transition: all .2s ease-in-out; box-shadow: rgba(0, 0, 0, 0.0) 0 0 0; }
    #shellBreachHelpBtn:hover { text-decoration: none; background-color: rgba(0, 0, 0, 0.1); background-color: var(--link-hover-background-color); box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px !important; }
    #shellBreachHelpBtn:active { transform: scale(0.9); }
    #shellBreachHelpBtn::before { content: "?"; display: inline-flex; align-items: center; margin-top: -3px; justify-content: center; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 9px; font-weight: bold; margin-right: 4px; vertical-align: middle; }
#shell-breach-help-header-actions { display: block; }
    #shell-breach-help-header-actions::after { content: ""; display: block; clear: both; }

.sb-filter-holder { float: right; font-size: 13px; }
    .sb-filter-holder label { margin-right: 6px; opacity: 0.75; }

.sb-leaderboard-caption { font-size: 12.5px; opacity: 0.75; line-height: 1.5; }

/* Personal stats bar - identical to Word Snaps'/Number Connect's own .sw-personal-stats/.nm-personal-stats
   (one tinted container, plain columns inside) rather than a card-per-stat treatment, so this reads as
   the same site-wide "stats bar" component players already know from those games. */
.sb-personal-stats { display: flex; gap: 25px 50px; flex-wrap: wrap; background: rgba(118, 107, 255, 0.07); border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; }
    .sb-personal-stats .sb-stat { display: flex; flex-direction: column; }
    .sb-personal-stats .sb-stat-label { font-size: 10px; font-weight: 600; opacity: 0.55; text-transform: uppercase; letter-spacing: 0.4px; }
    .sb-personal-stats .sb-stat-value { font-size: 18px; font-weight: 700; margin-top: 2px; color: #766BFF; color: var(--input-button-background-color); }
    .sb-personal-stats .sb-stat-suffix { font-size: 11px; font-weight: 600; opacity: 0.6; }

tr.sb-your-row .user-score-name { font-weight: 700; }
.sb-daily-leaderboard-date { font-size: 12.5px; opacity: 0.75; margin-bottom: 10px; }
.sb-replay-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 9px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; opacity: 0.75; background-color: rgba(0, 0, 0, 0.08); }

#btnStandaloneApp, #backToGameListBtn { cursor: pointer; display: inline-block; line-height: 18px; color: #34363E; color: var(--body-text-color); padding: 5px 10px; text-decoration: none; margin-right: 3px; margin-left: 3px; font-size: 12px; border-radius: 15px; background-color: transparent; transition: all .2s ease-in-out; backdrop-filter: blur(10px); box-shadow: rgba(0, 0, 0, 0.0) 0 0 0; }
    #btnStandaloneApp:hover, #backToGameListBtn:hover { text-decoration: none; background-color: rgba(0, 0, 0, 0.1); background-color: var(--link-hover-background-color); box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px !important; }
    #btnStandaloneApp:active, #backToGameListBtn:active { transform: scale(0.9); }
#btnStandaloneApp { float: right; }
    #btnStandaloneApp[data-type="browser"]::before { content: ""; display: inline-block; float: left; margin-right: 5px; width: 18px; height: 18px; background-image: url(../../Assets/icons/desktopview.png); background-size: contain; background-repeat: no-repeat; background-position: center center; }
    #btnStandaloneApp[data-type="app"]::before { content: ""; display: inline-block; float: left; margin-right: 5px; width: 18px; height: 18px; background-image: url(../../Assets/icons/appview.png); background-size: contain; background-repeat: no-repeat; background-position: center center; }
#backToGameListBtn { float: left !important; }
    #backToGameListBtn::before { content: ""; float: left; width: 18px; height: 18px; margin-top: -1px; margin-right: 5px; background-image: url(../../Assets/Games/Logos/GamesApp.png); background-repeat: no-repeat; background-position: center center; background-size: 18px; }
body[data-theme="Default"] #btnStandaloneApp, body[data-theme="Default"] #backToGameListBtn { background: rgba(255, 255, 255, 0.5); }
body[data-theme="Dark"] #btnStandaloneApp, body[data-theme="Dark"] #backToGameListBtn { background: rgba(0, 0, 0, 0.5); }

/* Crawlable "about" section - same shape as Word Snaps' .sw-about-game/Number Connect's equivalent
   (collapsed <details>, heading+lede always visible in the <summary>, native disclosure marker rotated
   via the [open] attribute rather than JS). */
.sb-about-game { clear: both; margin-top: 28px; padding-top: 18px; border-top: 1px solid #EEE; border-top: 1px solid var(--top-search-border-color); opacity: 0.85; }
    .sb-about-game > summary { cursor: pointer; list-style: none; }
        .sb-about-game > summary::-webkit-details-marker { display: none; }
        .sb-about-game > summary:focus-visible { outline: 2px solid var(--input-button-background-color); outline-offset: 3px; }
    .sb-about-game .about-header { display: inline-block; font-size: 16px; font-weight: bold; margin: 0 0 6px; }
        .sb-about-game .about-header::after { content: "\25BE"; display: inline-block; margin-left: 7px; font-size: 13px; transition: transform .2s ease-in-out; }
    .sb-about-game[open] .about-header::after { transform: rotate(180deg); }
    .sb-about-lede, .sb-about-lede h1 { display: block; font-size: 14px; line-height: 1.7; max-width: 70ch; font-weight: normal; }
        .sb-about-lede h1 { display: inline-block; margin: 0; }
    .sb-about-game p { font-size: 14px; margin: 10px 0 0; line-height: 1.7; max-width: 70ch; }
    .sb-about-game code { font-family: "Courier New", Consolas, monospace; font-size: 0.9em; background-color: rgba(118, 107, 255, 0.1); padding: 1px 5px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
    .sb-about-game .about-header::after { transition: none; }
}

/* Worked example - a miniature, non-interactive echo of the real dark terminal screen (#shellBreachScreen/
   #shellBreachOutput) rather than another paragraph, same "show it, don't just describe it" reasoning
   as Word Snaps' .sw-rank-example. Built from markup, not a screenshot, so it never needs re-shooting and
   stays selectable/translatable. Deliberately its own classes rather than the live #shellBreachOutput
   ones - this block is static content, not a real session, and must never be reachable by the terminal's
   own JS. */
.sb-about-example { margin: 12px 0 0; max-width: 460px; background: #0d1117; border-radius: 10px; padding: 12px 14px; font-family: "Courier New", Consolas, monospace; font-size: 12.5px; line-height: 1.55; color: #c9d1d9; }
    .sb-about-example-line { white-space: pre-wrap; word-break: break-word; }
    .sb-about-example-echo { color: #58a6ff; font-weight: bold; margin-top: 6px; }
        .sb-about-example-echo:first-child { margin-top: 0; }
    .sb-about-example-success { color: #3fb950; }
    .sb-about-example-error { color: #f85149; }
.sb-about-example-caption { font-size: 12px; opacity: 0.65; margin-top: 6px; }

/* How to Play panel - Shell Breach never had its own copy of .help-content/.help-section either
   (same gap as .help-section-title above; every game defines these itself rather than sharing one). */
.help-content { max-width: 560px; margin: 0 auto; }
.help-section { margin-bottom: 22px; }
    .help-section p { font-size: 14px; margin: 0 0 8px; line-height: 1.7; }
    .help-section ul { padding-left: 18px; }
    .help-section ul li { font-size: 14px; line-height: 1.7; }

/* Command reference table inside the "Commands" help section - plain two-column list, the command
   itself in monospace so it reads as literal input rather than prose. */
.sb-command-ref { width: 100%; border-collapse: collapse; margin-top: 8px; }
    .sb-command-ref tr { border-bottom: 1px solid #EEE; border-bottom: 1px solid var(--top-search-border-color); }
        .sb-command-ref tr:last-child { border-bottom: none; }
    .sb-command-ref td { padding: 7px 0; font-size: 13.5px; line-height: 1.5; vertical-align: top; }
        .sb-command-ref td:first-child { white-space: nowrap; padding-right: 16px; font-weight: 600; }
        .sb-command-ref td:first-child code { font-family: "Courier New", Consolas, monospace; font-size: 0.95em; background-color: rgba(118, 107, 255, 0.1); padding: 1px 5px; border-radius: 4px; }

/* Gameplay screenshots in the "What the Shell Looks Like" help section - same flex-row shape as Word
   Snaps' .sw-about-gallery/.sw-about-shot so screenshots present identically across games. Native
   loading="lazy" rather than the sitewide .lazyload/data-src convention, since the sitewide lazyLoadImages()
   in booster.js is built for images scrolling into view, which never fires inside a display:none help
   panel until it's opened. */
.sb-about-gallery { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.sb-about-shot { margin: 0; max-width: 90%; flex: 1 1 260px; }
    .sb-about-shot img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); }
    .sb-about-shot figcaption { font-size: 12px; opacity: 0.65; margin-top: 6px; text-align: center; }

/* First-time interactive tutorial - same shape as Word Snaps'/Number Connect's own tutorial classes
   (overlay + floating card + pulsing spotlight on the current target element), just under a sb- prefix
   so it can't collide with either. */
#retakeShellBreachTutorialBtn { cursor: pointer; float: right; display: inline-block; user-select: none; line-height: 18px; padding: 8px 18px; font-size: 13px; font-weight: 500; border-radius: 20px; border: 1.5px solid #766BFF; border: 1.5px solid var(--input-button-background-color); background: #766BFF; background: var(--input-button-background-color); color: #FFF !important; color: var(--input-button-text-color) !important; transition: all .2s ease-in-out; user-select: none; }
    #retakeShellBreachTutorialBtn:hover { opacity: 0.85; box-shadow: 0 4px 12px rgba(118,107,255,0.4); }
    #retakeShellBreachTutorialBtn:active { transform: scale(0.95); }

#sb-tutorial-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 2000; }
#sb-tutorial-card { position: fixed; left: 50%; transform: translateX(-50%); z-index: 2002; width: 340px; max-width: calc(100vw - 32px); background: #FFF; background: var(--section-background-color); border-radius: 18px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); padding: 22px 24px; backdrop-filter: blur(5px); }
    #sb-tutorial-card.sb-card-bottom { bottom: 70px; top: auto; }
    #sb-tutorial-card.sb-card-top { top: 16px; bottom: auto; }
#sb-tutorial-progress { display: flex; gap: 6px; margin-bottom: 16px; }
.sb-tutorial-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(0, 0, 0, 0.15); transition: all .25s ease; }
    .sb-tutorial-dot.active { width: 18px; border-radius: 4px; background: #766BFF; background: var(--input-button-background-color); }
#sb-tutorial-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #766BFF; color: var(--input-button-background-color); }
#sb-tutorial-text { font-size: 15px; line-height: 1.5; color: #34363E; color: var(--body-text-color); margin-bottom: 16px; }
    #sb-tutorial-text code { font-family: "Courier New", Consolas, monospace; font-size: 0.9em; background-color: rgba(118, 107, 255, 0.1); padding: 1px 5px; border-radius: 4px; }
#sb-tutorial-actions { display: flex; justify-content: space-between; align-items: center; }
/* .sb-inline-skip is the practice panel's own Skip, rendered inside #shellBreachBriefing (see
   ShellBreach.js's _buildPracticeActions) rather than in this modal card - sharing the look rather
   than the element, since the two live in entirely different places in the DOM while practice is active. */
#sb-tutorial-skip, .sb-inline-skip { font-size: 14px; color: #34363E; color: var(--body-text-color); opacity: 0.4; cursor: pointer; padding: 4px 0; transition: opacity .2s; }
    #sb-tutorial-skip:hover, .sb-inline-skip:hover { opacity: 0.7; }
#sb-tutorial-next { cursor: pointer; padding: 9px 22px; font-size: 13px; font-weight: 600; border-radius: 20px; background: #766BFF; background: var(--input-button-background-color); color: #FFF; color: var(--input-button-text-color); transition: all .2s ease-in-out; user-select: none; }
    #sb-tutorial-next:hover { opacity: 0.85; box-shadow: 0 4px 12px rgba(118, 107, 255, 0.4); }
    #sb-tutorial-next:active { transform: scale(0.95); }
/* The practice panel's "fill the input for me, don't submit it" escape hatch - see .sb-inline-skip's own
   comment above on why this lives in the briefing box rather than the modal card. */
.sb-inline-fill { cursor: pointer; padding: 4px 0; font-size: 13px; font-weight: 600; color: #766BFF; color: var(--input-button-background-color); text-decoration: underline; user-select: none; transition: opacity .2s; }
    .sb-inline-fill:hover { opacity: 0.7; }
/* The practice panel's Skip/Fill row, directly inside #shellBreachBriefing - inherits that box's own
   border/background, so this only needs to lay out its two children. */
#sb-inline-practice-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
/* Frames the terminal during the scripted DemoCorp practice run so it visually reads as "sandbox", not
   the player's real system - output/path/input here are all swapped out and restored afterward, see
   ShellBreach.js's _enterSandbox/_exitSandbox. Dashed rather than solid so it doesn't look like an
   error or validation state. */
#shellBreachScreen.sb-tutorial-sandbox-active { outline: 2px dashed #766BFF; outline: 2px dashed var(--input-button-background-color); outline-offset: -2px; }
.sb-tutorial-target { position: relative !important; z-index: 2001 !important; border-radius: 8px; animation: sbTutorialPulse 1.8s ease-in-out infinite; }
@keyframes sbTutorialPulse {
    0%, 100% { outline: 3px solid rgba(118, 107, 255, 0.9); outline-offset: 6px; box-shadow: 0 0 0 0 rgba(118, 107, 255, 0.4); }
    50% { outline: 3px solid rgba(118, 107, 255, 0.9); outline-offset: 6px; box-shadow: 0 0 0 8px rgba(118, 107, 255, 0); }
}
/* The original Word Snaps version this is modeled on has no such guard for its own pulse - adding one
   here rather than carrying the gap forward, same as the other animation fixes made for this game. */
@media (prefers-reduced-motion: reduce) {
    .sb-tutorial-target { animation: none; outline: 3px solid rgba(118, 107, 255, 0.9); outline-offset: 6px; }
}

@media screen and (max-width: 800px) {
    #sb-tutorial-card { width: 100%; max-width: 100%; left: 0; transform: none; border-radius: 18px; padding: 18px 18px 16px; }
        #sb-tutorial-card.sb-card-bottom { box-sizing: border-box; bottom: 0; border-radius: 18px 18px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
        #sb-tutorial-card.sb-card-top { box-sizing: border-box; top: 0; border-radius: 0 0 18px 18px; }
    #sb-tutorial-title { font-size: 17px; }
    #sb-tutorial-text { font-size: 16px; margin-bottom: 12px; }
    #sb-tutorial-next { padding: 8px 18px; font-size: 15px; }
    .sb-inline-fill, .sb-inline-skip { font-size: 15px; }
}

/* ---- Mode switcher (Daily Breach / Versus) - same pill-and-sliding-indicator shape as Word Snaps'
   #secretWordModeHolder, two options instead of three. ---- */
#sbModeHolder { position: relative; display: block; clear: both; margin-bottom: 14px; padding: 4px; border-radius: 18px; background-color: rgba(0, 0, 0, 0.05); background-color: var(--link-hover-background-color); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); }
    #sbModeIndicator { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 14px; background: linear-gradient(135deg, #8B82FF 0%, #6E79F9 100%); background: linear-gradient(135deg, var(--input-button-background-color) 0%, var(--input-button-hover-background-color) 100%); box-shadow: 0 3px 8px rgba(118, 107, 255, 0.35); transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1); }
    #sbModeHolder.sb-mode-versus-active #sbModeIndicator { transform: translateX(100%); }
    .sb-mode-option { display: inline-block; width: 50%; height: 34px; float: left; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1; white-space: nowrap; cursor: pointer; user-select: none; text-align: center; padding: 8px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; color: #34363E; color: var(--body-text-color); opacity: 0.6; transition: color .2s ease-in-out, opacity .2s ease-in-out, transform .15s ease-in-out; }
        .sb-mode-option:hover:not(.sb-mode-active) { opacity: 0.85; }
        .sb-mode-option:active { transform: scale(0.96); }
        .sb-mode-option:focus-visible { outline: 2px solid var(--input-button-background-color); outline-offset: 1px; }
        .sb-mode-option.sb-mode-active { opacity: 1; color: #FFF; color: var(--input-button-text-color); }
        .sb-mode-option::before { content: ""; display: inline-block; position: relative; bottom: -5px; margin-top: -8px; margin-right: 5px; width: 20px; height: 20px; background-position: center center; background-size: 20px 20px; background-repeat: no-repeat; }
        .sb-mode-option[data-mode="daily"]::before { background-image: url(../../Assets/Games/Images/dailychallenge.png); }
        .sb-mode-option[data-mode="versus"]::before { background-image: url(../../Assets/Games/Images/challenge.png); filter: none !important; }

@media (prefers-reduced-motion: reduce) {
    #sbModeIndicator { transition: none; }
}

/* ---- Versus lobby ---- */
.sb-versus-btn { display: inline-block; cursor: pointer; user-select: none; text-align: center; padding: 9px 18px; font-size: 13.5px; font-weight: 600; border-radius: 12px; border: 1.5px solid #766BFF; border: 1.5px solid var(--input-button-background-color); background: transparent; color: #766BFF; color: var(--input-button-background-color); transition: all .2s ease-in-out; }
    .sb-versus-btn:hover { background-color: rgba(118, 107, 255, 0.1); }
    .sb-versus-btn:active { transform: scale(0.98); }
    .sb-versus-btn:focus-visible { outline: 2px solid var(--input-button-background-color); outline-offset: 2px; }
    .sb-versus-btn.sb-versus-btn-primary { background: #766BFF; background: var(--input-button-background-color); color: #FFF; color: var(--input-button-text-color); }
        .sb-versus-btn.sb-versus-btn-primary:hover { box-shadow: 0 4px 12px rgba(118, 107, 255, 0.35); }
    .sb-versus-btn.is-busy { opacity: 0.6; cursor: progress; }

.sb-versus-link { cursor: pointer; user-select: none; font-size: 12.5px; font-weight: 600; color: #766BFF; color: var(--input-button-background-color); text-decoration: underline; text-underline-offset: 2px; }
    .sb-versus-link:focus-visible { outline: 2px solid var(--input-button-background-color); outline-offset: 2px; }
.sb-versus-link-right { float: right; letter-spacing: 0; text-transform: none; }

#sbVersusNewChallenge { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
    #sbVersusNewChallenge .sb-versus-btn { flex: 1 1 180px; padding: 13px 18px; font-size: 14px; }

.sb-versus-empty { padding: 18px; text-align: center; font-size: 13.5px; line-height: 1.5; opacity: 0.75; border: 1px dashed var(--section-border-color); border-radius: 12px; }

/* display:flex is safe unconditionally - the inline display:none used to hide these always wins. */
#sbVersusSetupPanel { display: flex; flex-direction: column; gap: 18px; margin-bottom: 20px; padding: 16px; border: 1px solid var(--section-border-color); border-radius: 15px; background: var(--sidebar-background-color); }
.sb-versus-setup-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; margin-bottom: 8px; opacity: 0.8; }
.sb-versus-setup-count { margin-left: 6px; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: 0.7; font-variant-numeric: tabular-nums; }
.sb-versus-setup-hint { font-size: 12px; line-height: 1.5; opacity: 0.7; margin-top: 6px; }
#sbVersusMaxCommands { max-width: 140px; font-variant-numeric: tabular-nums; }

#sbVersusSoloToggleRow { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
    #sbVersusSoloToggle { width: 16px; height: 16px; margin: 0; cursor: pointer; accent-color: #766BFF; accent-color: var(--input-button-background-color); }
#sbVersusSoloHint { margin-top: -4px; margin-bottom: 4px; }
#sbVersusOpponentPicked { display: flex; align-items: center; gap: 10px; }
    #sbVersusOpponentPickedImg { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
    #sbVersusOpponentPickedName { font-weight: 600; }
#sbVersusOpponentResults { margin-top: 6px; border: 1px solid var(--section-border-color); border-radius: 10px; overflow: hidden; background: var(--formcontrol-background); }
.sb-versus-opponent-result { display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; transition: background-color .15s ease-in-out; }
    .sb-versus-opponent-result:hover, .sb-versus-opponent-result:focus-visible { background-color: rgba(118, 107, 255, 0.1); outline: none; }
    .sb-versus-opponent-result img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.sb-versus-opponent-none { padding: 8px 10px; font-size: 13px; opacity: 0.7; }

/* Ordered stage list - the numbers are real: stages are breached in this order. */
#sbVersusStageList { margin: 0; padding: 0; list-style: none; counter-reset: sbstage; display: flex; flex-direction: column; gap: 6px; }
    #sbVersusStageList:empty { display: none; }
    #sbVersusStageList li { counter-increment: sbstage; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid #766BFF; border: 1px solid var(--input-button-background-color); background-color: rgba(118, 107, 255, 0.08); font-size: 13.5px; }
        #sbVersusStageList li::before { content: counter(sbstage); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; height: 22px; border-radius: 50%; background: #766BFF; background: var(--input-button-background-color); color: #FFF; color: var(--input-button-text-color); font-size: 12px; font-weight: 700; }
.sb-versus-stage-title { flex: 1 1 auto; font-weight: 600; }
.sb-versus-stage-min { font-size: 11.5px; opacity: 0.65; font-variant-numeric: tabular-nums; margin-left: 6px; }
/* Optional custom passwords/keys - full-width row under the stage title, lined up past the number badge. */
.sb-versus-stage-fields { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px 12px; padding-left: 32px; box-sizing: border-box; }
.sb-versus-stage-field { display: flex; flex-direction: column; gap: 3px; flex: 1 1 160px; font-size: 11.5px; font-weight: 600; opacity: 0.9; }
    .sb-versus-stage-field .form-control { font-family: "Courier New", Consolas, monospace; font-size: 13px; padding: 6px 8px; }
    .sb-versus-stage-field .form-control.is-invalid { border-color: #F85149 !important; box-shadow: 0 0 0 2px rgba(248, 81, 73, 0.2); }
@media screen and (max-width: 450px) {
    .sb-versus-stage-fields { padding-left: 0; }
}
.sb-versus-stage-remove { cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; opacity: 0.6; }
    .sb-versus-stage-remove:hover { opacity: 1; }
    .sb-versus-stage-remove:focus-visible { outline: 2px solid var(--input-button-background-color); border-radius: 4px; opacity: 1; }

#sbVersusCatalog { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sb-versus-catalog-item { cursor: pointer; user-select: none; padding: 6px 12px; border-radius: 16px; font-size: 13px; border: 1px solid var(--section-border-color); background-color: var(--formcontrol-background); transition: all .15s ease-in-out; }
    .sb-versus-catalog-item::before { content: "+"; margin-right: 5px; font-weight: 700; opacity: 0.6; }
    .sb-versus-catalog-item:hover { border-color: #766BFF; border-color: var(--input-button-background-color); }
    .sb-versus-catalog-item:active { transform: scale(0.97); }
    .sb-versus-catalog-item:focus-visible { outline: 2px solid var(--input-button-background-color); outline-offset: 1px; }
    .sb-versus-catalog-item.is-disabled { opacity: 0.4; cursor: default; pointer-events: none; }

#sbVersusSetupActions { display: flex; flex-wrap: wrap; gap: 8px; }
    #sbVersusSetupActions .sb-versus-btn { flex: 1 1 140px; }
#sbVersusSetupError, #sbVersusError { padding: 10px 12px; border-radius: 10px; font-size: 13px; background: rgba(248, 81, 73, 0.1); border: 1px solid rgba(248, 81, 73, 0.4); color: #C83F38; }
#sbVersusError { margin-bottom: 12px; }

/* Match list */
#sbVersusMatchList { display: flex; flex-direction: column; gap: 10px; }
.sb-versus-match { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--section-border-color); background: var(--sidebar-background-color); }
.sb-versus-match-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sb-versus-match-title { font-weight: 700; font-size: 14px; }
.sb-versus-match-summary { font-size: 13px; opacity: 0.8; margin-top: 4px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.sb-versus-match-stages { margin: 8px 0 0; padding-left: 20px; font-size: 12.5px; opacity: 0.75; line-height: 1.6; }
    .sb-versus-match-stages li.is-current { font-weight: 700; opacity: 1; }
.sb-versus-match-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
    .sb-versus-match-actions .sb-versus-btn { padding: 6px 14px; font-size: 12.5px; border-radius: 10px; }

.sb-versus-chip { flex: 0 0 auto; padding: 3px 10px; border-radius: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.2px; white-space: nowrap; }
    .sb-versus-chip.is-yours { background: #766BFF; background: var(--input-button-background-color); color: #FFF; color: var(--input-button-text-color); }
    .sb-versus-chip.is-waiting { background: rgba(118, 107, 255, 0.12); color: #766BFF; color: var(--input-button-background-color); }
    .sb-versus-chip.is-win { background: rgba(63, 185, 80, 0.15); color: #2E9E5B; }
    .sb-versus-chip.is-loss { background: rgba(248, 81, 73, 0.12); color: #C83F38; }
    .sb-versus-chip.is-closed { background: rgba(0, 0, 0, 0.06); opacity: 0.8; }

/* ---- In-match bar above the terminal ---- */
#sbVersusBar { margin-bottom: 14px; }
#sbVersusBackBtn { cursor: pointer; display: inline-block; user-select: none; padding: 8px 18px; font-size: 13px; font-weight: bold; border-radius: 20px; border: 1.5px solid #766BFF; border: 1.5px solid var(--input-button-background-color); color: #766BFF; color: var(--input-button-background-color); margin-bottom: 12px; transition: all .2s ease-in-out; }
    #sbVersusBackBtn:hover { background-color: #766BFF; background-color: var(--input-button-background-color); color: #FFF; color: var(--input-button-text-color); }
    #sbVersusBackBtn:active { transform: scale(0.95); }
    #sbVersusBackBtn:focus-visible { outline: 2px solid var(--input-button-background-color); outline-offset: 2px; }
#sbVersusForfeitBtn { float: right; cursor: pointer; display: inline-block; user-select: none; padding: 8px 18px; font-size: 13px; font-weight: bold; border-radius: 20px; border: 1.5px solid #C83F38; color: #C83F38; margin-bottom: 12px; transition: all .2s ease-in-out; }
    #sbVersusForfeitBtn:hover { background-color: #C83F38; color: #FFF; }
    #sbVersusForfeitBtn:active { transform: scale(0.95); }
    #sbVersusForfeitBtn:focus-visible { outline: 2px solid #C83F38; outline-offset: 2px; }
#sbVersusBarInfo { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 13.5px; }
    #sbVersusBarVs { font-weight: 700; flex: 1 1 auto; }
    #sbVersusBarStage { font-weight: 600; }
    #sbVersusBarBudget { font-weight: 700; font-variant-numeric: tabular-nums; }
#sbVersusBarMeter { height: 6px; margin-top: 8px; border-radius: 3px; overflow: hidden; background: rgba(0, 0, 0, 0.08); background: var(--link-hover-background-color); }
    #sbVersusBarMeterFill { display: block; height: 100%; width: 0; border-radius: 3px; background: #766BFF; background: var(--input-button-background-color); transition: width .3s ease-out, background-color .3s ease-out; }
#sbVersusBar.is-warn #sbVersusBarBudget { color: #C98A0B; }
#sbVersusBar.is-warn #sbVersusBarMeterFill { background: #E3A21A; }
#sbVersusBar.is-danger #sbVersusBarBudget { color: #C83F38; }
#sbVersusBar.is-danger #sbVersusBarMeterFill { background: #F85149; }

@media (prefers-reduced-motion: reduce) {
    #sbVersusBarMeterFill { transition: none; }
}

#sbVersusResultBanner { margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-weight: 600; text-align: center; background: rgba(0, 0, 0, 0.05); border: 1px solid var(--section-border-color); }
    #sbVersusResultBanner.is-win { background: rgba(63, 185, 80, 0.12); border-color: rgba(63, 185, 80, 0.4); color: #2E9E5B; }
    #sbVersusResultBanner.is-loss { background: rgba(248, 81, 73, 0.1); border-color: rgba(248, 81, 73, 0.4); color: #C83F38; }

@media screen and (max-width: 450px) {
    #sbVersusSetupPanel { padding: 12px; }
    .sb-mode-option { padding: 8px 6px; font-size: 13px; }
}