Skip to content

Open-source Xbox-inspired desktop launcher for Xodus on Linux

TypeScript
59.2 KB
Raw Blame
:root {
  color-scheme: dark;
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  color: #f5f5f5;
  background: #17191c;
  --green: #65a945;
  --green-hover: #75b755;
  --sidebar: #25282e;
  --canvas: #1d1f24;
  --surface: #282b31;
  --surface-hover: #343840;
  --line: rgba(255, 255, 255, .12);
  --muted: #b4b8bf;
  --faint: #737980;
  --danger: #f17070;
}

* { box-sizing: border-box; }
html, body, #root { width: 100%; height: 100%; margin: 0; overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { -webkit-app-region: no-drag; }
code, .mono { font-family: "Cascadia Mono", "SFMono-Regular", monospace; }

/* Controller focus is opt-in by input method. Pointer/keyboard styles and
   handlers are untouched when this attribute is absent. */
html[data-gamepad-navigation] [data-gamepad-focus] {
  outline: 3px solid #fff !important;
  outline-offset: 4px;
  border-radius: 8px;
  box-shadow: none;
}
/* Inset the ring only on edge-to-edge scrolling panels so it cannot be clipped
   by their parent. Buttons and cards keep a padded ring outside their edge. */
html[data-gamepad-navigation] [data-gamepad-scroll][data-gamepad-focus] { outline-offset: -7px; }
/* Show one ring on the whole card, including sidebar auto-select controls.
   Preserve ordinary keyboard focus outside controller mode. */
html[data-gamepad-navigation] [data-gamepad-auto-select]:focus,
html[data-gamepad-navigation] [data-gamepad-card][data-gamepad-focus] :focus { outline: none; box-shadow: none; }
/* Keep a complete-card keyboard indicator across pointer/keyboard handoffs,
   never Chromium's inner button rectangle ending above the status footer. */
[data-gamepad-card] > :is(.library-card,.catalog-card-install):focus { outline: none; box-shadow: none; }
html:not([data-gamepad-navigation]) [data-gamepad-card][tabindex="0"]:focus-visible,
html:not([data-gamepad-navigation]) [data-gamepad-card]:has(> :is(.library-card,.catalog-card-install):focus-visible) { outline: 1px solid #9aa2ab; outline-offset: -1px; }
.gamepad-hints { position: fixed; z-index: 100; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; max-width: 96vw; width: max-content; padding: 7px 13px; border: 1px solid #596650; border-radius: 5px; background: #172015ed; color: #eff9ea; font-size: 11px; pointer-events: none; }
.gamepad-select-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: #000a; padding: 24px; }
.gamepad-select-dialog { width: min(460px, 90vw); max-height: 75vh; overflow: auto; padding: 18px; border: 1px solid #636971; border-radius: 6px; background: #292d33; }
.gamepad-select-dialog h2 { margin: 0 0 12px; font-size: 18px; }
.gamepad-select-dialog button { display: block; width: 100%; min-height: 42px; margin: 3px 0; padding: 8px 12px; border: 1px solid #59616a; border-radius: 3px; background: #32373e; text-align: left; cursor: pointer; }
.gamepad-select-dialog button:hover { background: #424a53; }
.gamepad-select-dialog button[aria-pressed="true"] { background: #344b2c; }
.gamepad-select-dialog button:disabled { opacity: .45; cursor: default; }

.app-shell { height: 100vh; display: grid; grid-template-columns: 264px minmax(0, 1fr); background: var(--canvas); }
.sidebar { min-height: 0; background: var(--sidebar); border-right: 1px solid rgba(0,0,0,.3); display: flex; flex-direction: column; padding: 14px 12px 12px; }
.account-summary { width: 100%; height: 58px; border: 0; background: transparent; display: grid; grid-template-columns: 38px minmax(0,1fr) 16px; align-items: center; gap: 10px; padding: 6px 8px; text-align: left; cursor: pointer; border-radius: 4px; }
.account-summary:hover { background: #30343a; }
.account-summary > span { min-width: 0; display: grid; gap: 2px; }
.account-summary strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-summary small { color: var(--muted); font-size: 10px; }
.account-summary > svg { width: 14px; color: #8b9097; }
.account-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #3a3e44; color: #d6d9dd; }
.account-avatar svg { width: 21px; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.account-summary .account-membership { display: inline-flex; justify-self: start; align-items: center; width: max-content; max-width: 100%; border: 0; border-radius: 1px; background: #e6e8eb; color: #202327; padding: 0 3px; margin-top: 1px; font-size: 8px; line-height: 12px; font-weight: 800; letter-spacing: .35px; white-space: nowrap; }
.account-avatar.large { width: 54px; height: 54px; }
.account-avatar.large svg { width: 29px; }

.brand-mark { width: 29px; height: 29px; border-radius: 50%; display: grid; place-items: center; background: #348b32; color: #fff; font-weight: 900; font-size: 14px; }
.sidebar nav { display: grid; gap: 3px; }
.nav-item { width: 100%; height: 47px; border: 0; border-radius: 4px; background: transparent; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 0 13px; text-align: left; color: #f2f3f4; cursor: pointer; font-size: 14px; font-weight: 600; position: relative; }
.nav-item svg { width: 20px; height: 20px; color: #d5d7da; }
.nav-item:hover { background: #30343a; }
.nav-item.active { background: #3a3e44; }
.nav-item.active::before { content: ""; position: absolute; left: 0; width: 3px; height: 25px; background: #8e969e; }
.nav-item b { min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; background: var(--green); color: #142000; font-size: 10px; }

/* Leave 8px inside the clip boundary for the 3px ring and its 4px gap.
   Compensating margins keep the game rows in their existing positions. */
.recents { margin: 11px -8px -8px; padding: 8px; display: grid; gap: 4px; min-height: 0; overflow: hidden; }
.recents > span { padding: 0 8px 7px; color: #b0b4ba; font-size: 11px; font-weight: 600; }
.recents button { height: 48px; padding: 5px 8px; border: 0; border-radius: 4px; background: transparent; display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 9px; text-align: left; cursor: pointer; }
.recents button:hover { background: #30343a; }
.recents .game-cover, .recents .cover-placeholder { width: 38px; height: 38px; border-radius: 3px; }
.recents strong { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 4px; }
.queue-summary { min-height: 55px; border: 0; background: transparent; border-radius: 4px; display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 8px; padding: 7px 13px; text-align: left; cursor: pointer; }
.queue-summary:hover { background: #30343a; }
.queue-summary > svg { width: 20px; }
.queue-summary-copy { display: grid; gap: 3px; min-width: 0; }
.queue-summary-copy > strong, .queue-summary-copy > small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-summary:has(.queue-preview-art) { grid-template-columns: 44px minmax(0, 1fr); padding: 10px 8px; }
.queue-summary .queue-preview-art { width: 44px; height: 44px; border-radius: 5px; }
.queue-summary:has(.queue-preview-art) .queue-summary-copy { grid-template-rows: 16px 12px 10px; gap: 3px; }
.queue-summary-copy > strong { line-height: 16px; }
.queue-summary-copy > small { line-height: 12px; }
.queue-summary .queue-preview-progress { margin-top: 0; gap: 6px; }
.queue-summary .queue-preview-progress > span { font-size: 9px; line-height: 10px; }
.queue-summary strong { font-size: 12px; }
.queue-summary small { font-size: 9px; color: var(--muted); }
.queue-shortcut { position: relative; }
.queue-shortcut .queue-summary { width: 100%; }
.queue-preview { position: absolute; z-index: 50; left: 100%; bottom: 0; width: min(390px, calc(100vw - 110px)); padding-left: 12px; }
.queue-preview-card { border: 1px solid var(--line); border-radius: 15px; background: #25282c; box-shadow: 0 12px 36px #0008; overflow: hidden; }
.queue-preview-list { list-style: none; padding: 16px; margin: 0; display: grid; gap: 18px; max-height: min(400px, calc(100vh - 100px)); overflow-y: auto; }
.queue-preview-item { display: grid; grid-template-columns: 58px minmax(0, 1fr); align-items: center; gap: 12px; }
.queue-preview-art { position: relative; width: 58px; height: 58px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: #363b42; color: var(--muted); }
.queue-preview-art img { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.queue-preview-art img:not([hidden]) + svg { display: none; }
.queue-preview-main { min-width: 0; }
.queue-preview-main > strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-preview-main > small { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.queue-preview-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 8px; }
.queue-preview-progress .progress-track { height: 4px; margin: 0; }
.queue-preview-progress > span { min-width: 29px; text-align: right; font-size: 11px; color: var(--muted); }
.queue-preview-item.paused .progress-track i, .queue-preview-item.queued .progress-track i { background: #7c828b; }
.queue-preview-main .queue-preview-state { margin-top: 3px; font-size: 10px; }

.content-shell { min-width: 0; min-height: 0; display: grid; grid-template-rows: 68px minmax(0,1fr); }
.topbar { position: relative; display: flex; justify-content: center; align-items: center; padding: 0 24px; background: rgba(24,26,29,.97); border-bottom: 1px solid rgba(255,255,255,.045); z-index: 10; }
.search-box { width: min(500px, 52vw); height: 37px; border: 1px solid #5b6067; border-radius: 19px; background: #26292d; display: grid; grid-template-columns: 30px 1fr 28px; align-items: center; padding: 0 10px; position: relative; }
.search-box:focus-within { border-color: #8e949b; background: #2b2e33; }
.search-box > svg { width: 18px; color: #c7c9cc; }
.search-box input { border: 0; outline: 0; background: transparent; font-size: 13px; }
.search-box input::placeholder { color: #8d9298; }
.search-box > button { border: 0; background: none; color: #a8acb1; padding: 3px; cursor: pointer; }
.search-box > button svg { width: 15px; }
.search-results { position: absolute; left: 0; right: 0; top: 43px; padding: 8px; background: #292c31; border: 1px solid #484d53; border-radius: 4px; box-shadow: 0 20px 40px rgba(0,0,0,.55); max-height: min(480px, calc(100vh - 110px)); overflow-y: auto; display: grid; gap: 8px; }
.search-results button { width: 100%; height: 52px; border: 0; background: transparent; display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 10px; text-align: left; padding: 6px; cursor: pointer; }
.search-results button:hover { background: #373b40; }
.search-results .search-all-results { border-top: 1px solid #484d53; }
.search-results .search-all-results > svg { width: 20px; height: 20px; justify-self: center; }
.search-results .game-cover, .search-results .cover-placeholder { width: 40px; height: 40px; }
.search-results span { min-width: 0; display: grid; gap: 3px; }
.search-results strong, .search-results small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results strong { font-size: 12px; }
.search-results small { color: var(--muted); font-size: 9px; }
.top-status { position: absolute; right: 22px; display: flex; align-items: center; gap: 8px; color: #c0c3c7; font-size: 10px; }
.top-status button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 4px; cursor: pointer; }
.top-status button:hover { background: #30343a; }
.top-status svg { width: 18px; }
.top-status .update-notice { width: auto; display: flex; gap: 6px; padding: 0 9px; color: #83c975; background: #25382a; white-space: nowrap; }
.queue-summary.active { background: #303d30; border-left: 3px solid var(--green); }
.game-update-badge { display: inline-block; color: #92d385; font-size: 10px; margin-top: 5px; }
.game-update-status p { font-size: 11px; padding: 0 16px; }
.game-dialog.diagnostic-dialog { width: min(1000px, 94vw); }
.diagnostic-dialog pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 65vh; overflow: auto; background: #16191e; padding: 14px; font-size: 11px; user-select: text; }
.diagnostic-report-editor { display: grid; gap: 8px; }
.diagnostic-report-editor textarea { width: 100%; height: min(50vh, 480px); resize: vertical; font: 11px monospace; white-space: pre; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; flex: 0 0 auto; }
.status-dot.amber { background: #e5b84e; box-shadow: 0 0 7px rgba(229,184,78,.4); }
.status-dot.red { background: #e56868; box-shadow: none; }

.page-scroll { min-height: 0; overflow: auto; scrollbar-color: #555a60 transparent; }
.page { max-width: 1460px; margin: 0 auto; padding: 30px 44px 70px; }
.page-header { min-height: 64px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.page-header h1 { margin: 0 0 5px; font-size: 30px; font-weight: 650; letter-spacing: -.035em; }
.page-header p { margin: 0; color: var(--muted); font-size: 12px; }
.overline { color: #c7c9cc; font-size: 10px; font-weight: 700; letter-spacing: .14em; }

.spotlight { min-height: 390px; border: 1px solid rgba(255,255,255,.08); border-radius: 5px; overflow: hidden; position: relative; display: flex; align-items: flex-end; isolation: isolate; background: #25282c; }
.spotlight.has-art::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--spotlight-art); background-size: cover; background-position: 70% 34%; filter: saturate(.8) contrast(1.05); transform: scale(1.02); }
.spotlight::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,16,18,.97) 0%, rgba(15,16,18,.82) 43%, rgba(15,16,18,.22) 78%), linear-gradient(0deg, rgba(12,13,14,.78), transparent 58%); }
.spotlight-copy { max-width: 660px; padding: 42px 42px 45px; }
.spotlight h1 { margin: 12px 0 15px; font-size: clamp(40px, 5vw, 67px); line-height: .99; letter-spacing: -.055em; font-weight: 650; }
.spotlight p { max-width: 620px; margin: 0 0 23px; color: #d0d2d5; font-size: 13px; line-height: 1.55; }
.spotlight-meta { position: absolute; right: 21px; bottom: 18px; display: flex; align-items: center; gap: 10px; color: #d2d4d7; font-size: 9px; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
button.primary, button.secondary { min-height: 39px; border-radius: 3px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; font-size: 12px; font-weight: 650; cursor: pointer; }
button.primary { background: #388e35; color: #fff; }
button.primary:hover:not(:disabled) { background: var(--green-hover); }
button.secondary { background: #32363b; color: #f7f7f8; border-color: rgba(255,255,255,.13); }
button.secondary:hover:not(:disabled) { background: #3b4046; }
button.primary:disabled, button.secondary:disabled { opacity: .42; cursor: not-allowed; }
button.primary svg, button.secondary svg { width: 17px; height: 17px; }
.wide { width: 100%; }
.section-title { margin: 28px 0 13px; display: flex; align-items: center; justify-content: space-between; }
.section-title h2 { margin: 0; font-size: 21px; font-weight: 620; }
.section-title button { border: 0; background: transparent; color: #c3c6ca; display: flex; align-items: center; gap: 3px; cursor: pointer; font-size: 11px; }
.section-title button:hover { color: #fff; }
.section-title svg { width: 15px; }

.poster-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
.poster-card { min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.poster-card .game-cover, .poster-card .cover-placeholder { aspect-ratio: 1/1; border-radius: 5px; transition: transform .14s, outline-color .14s; }
.poster-card:hover .game-cover, .poster-card:hover .cover-placeholder { transform: translateY(-3px); outline: 2px solid rgba(255,255,255,.6); }
.poster-card strong { display: block; margin-top: 9px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-card > span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poster-card .gamepass-badge { display: inline-block; margin-top: 6px; padding: 1px 6px; border: 1px solid #6f9e57; border-radius: 999px; color: #b9e29f; font-size: 9px; line-height: 1.5; }
.section-title .shelf-loading { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.section-title .shelf-loading svg { width: 13px; }
.shelf-warning { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 10px; border: 1px solid #6b5e35; background: #2a271c; color: #e8d9a8; font-size: 10px; }
.shelf-warning svg { width: 14px; flex: none; }
.shelf-warning span { flex: 1; }
.shelf-warning button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #8b7b48; background: transparent; color: inherit; padding: 3px 8px; cursor: pointer; font-size: 10px; }
.shelf-warning button svg { width: 12px; }
.catalog-empty button.secondary { margin-top: 14px; }
.game-cover, .cover-placeholder { width: 100%; object-fit: cover; background: #30343a; }
.game-cover.cover-local { object-fit: contain; }
.cover-placeholder { display: grid; place-items: center; color: #91969c; }
.cover-placeholder svg { width: 30%; }
.empty-strip { min-height: 82px; border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 14px; padding: 15px 18px; }
.empty-strip > svg { color: #9ba0a6; }
.empty-strip > div { display: grid; gap: 4px; }
.empty-strip strong { font-size: 12px; }
.empty-strip span { color: var(--muted); font-size: 10px; }
.home-highlights { display:grid; gap:16px; }
.home-highlights.has-secondary { grid-template-columns:minmax(0,2fr) minmax(0,1fr); }
.home-secondary { display:grid; gap:16px; grid-auto-rows:minmax(0,1fr); }
.home-feature-card { position:relative; isolation:isolate; overflow:hidden; min-width:0; min-height:160px; border:1px solid #ffffff14; border-radius:7px; text-align:left; padding:20px; display:flex; align-items:flex-end; color:var(--text); cursor:pointer; background:#25282c; }
.home-feature-card>.game-cover,.home-feature-card>.cover-placeholder { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.home-feature-card::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,#101216f2,transparent 90%); z-index:-1; }
.home-feature-card>span { display:grid; gap:6px; }
.home-feature-card strong { font-size:18px; line-height:1.25; }
.home-feature-card small { color:#c4c8cc; font-size:12px; }
.home-feature-card:hover { border-color:#8ca881; }
@media(max-width:1050px) { .home-highlights.has-secondary { grid-template-columns:1fr; } .home-secondary { grid-template-columns:1fr 1fr; } }
@media(max-width:650px) { .home-secondary { grid-template-columns:1fr; } }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-grid > button { min-width: 0; min-height: 78px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); display: grid; grid-template-columns: 30px minmax(0,1fr) 18px; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.quick-grid > button:hover { background: var(--surface-hover); }
.quick-grid > button > svg:first-child { width: 22px; color: #d9dadd; }
.quick-grid > button > svg:last-child { width: 16px; color: #858b92; }
.quick-grid span { min-width: 0; display: grid; gap: 4px; }
.quick-grid strong, .quick-grid small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-grid strong { font-size: 12px; }
.quick-grid small { color: var(--muted); font-size: 9px; }
.support-bar { margin-top: 22px; padding: 14px 16px; border-left: 3px solid #d3a84d; background: #26272a; display: grid; grid-template-columns: 22px 1fr; gap: 11px; }
.support-bar > svg { width: 18px; color: #e0b552; }
.support-bar div { display: grid; gap: 4px; }
.support-bar strong { font-size: 11px; }
.support-bar span { color: var(--muted); font-size: 9px; line-height: 1.45; }

.catalog-source { display: flex; align-items: center; gap: 8px; color: #bec2c7; font-size: 10px; }

.catalog-selection { min-height: 315px; margin-top: 14px; position: relative; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(330px,.75fr); align-items: end; overflow: hidden; isolation: isolate; border: 1px solid var(--line); background: #202327; }
.catalog-selection.has-art::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: var(--catalog-hero); background-size: cover; background-position: center 35%; filter: saturate(.82); }
.catalog-selection::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18,20,22,.98) 0%, rgba(18,20,22,.85) 55%, rgba(18,20,22,.57)), linear-gradient(0deg, rgba(18,20,22,.96), transparent 90%); }
.catalog-selection-copy { min-width: 0; padding: 31px 35px; }
.catalog-selection-copy h2 { max-width: 720px; margin: 9px 0 8px; font-size: 34px; line-height: 1.04; letter-spacing: -.04em; }
.catalog-selection-copy > p { max-width: 690px; margin: 12px 0 9px; color: #c5c8cc; font-size: 11px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.catalog-selection-copy > small { color: #9ca1a7; font-size: 9px; }
.catalog-price-summary { display: grid; gap: 6px; }
.catalog-price-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.catalog-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.catalog-badges span { padding: 5px 7px; border: 1px solid rgba(255,255,255,.18); background: rgba(20,22,24,.72); color: #d6d8db; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.catalog-badges .pass { color: #b6d5a5; border-color: rgba(101,169,69,.32); }
.catalog-badges .supported { color: #b6d5a5; border-color: rgba(101,169,69,.32); }
.catalog-badges .unsupported { color: #e5ad68; border-color: rgba(229,173,104,.3); }
.catalog-install-box { margin: 24px; padding: 20px; border: 1px solid rgba(255,255,255,.14); background: rgba(27,30,33,.94); }
.catalog-install-box > p { margin: 0 0 14px; padding-left: 10px; border-left: 2px solid #d9a74e; color: #c6c9cd; font-size: 9px; line-height: 1.5; }
.catalog-install-box > p.supported { border-color: var(--green); }
.catalog-install-box label { display: grid; gap: 7px; color: #d2d4d7; font-size: 9px; }
.catalog-install-box input { width: 100%; height: 38px; border: 1px solid #4b5056; background: #141618; padding: 0 10px; outline: 0; font-size: 9px; }
.catalog-install-box .button-row { margin-top: 12px; }
.catalog-install-box > small { display: block; margin-top: 12px; color: #888e94; font-size: 8px; line-height: 1.45; }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.account-games { min-width: 0; }
.library-pagination { display: flex; justify-content: center; margin-top: 24px; }
.library-loading, .library-pagination button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.library-loading { color: var(--muted); font-size: 12px; }
.library-pagination svg { width: 16px; height: 16px; color: var(--green); }
.library-layout > .account-games { display: contents; }
.account-games-results { min-width: 0; grid-column: 1; }
.library-filters { grid-column: 1 / -1; display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.library-filters label { display: grid; gap: 5px; color: #b8bec6; font-size: 11px; }
.library-filters select, .library-filters input { height: 36px; background: #292e35; color: #f1f3f5; border: 1px solid #4b515b; border-radius: 6px; padding: 7px 10px; }
.library-filters .library-refresh { flex: 0 0 var(--control-height); width: var(--control-height); min-height: var(--control-height); height: var(--control-height); padding: 0; display: grid; place-items: center; }
.library-refresh svg { width: 17px; height: 17px; }
.library-filters .library-filter-search { flex: 1 1 180px; min-width: 150px; }
.library-filter-search input { width: 100%; }
.library-license { display: block; margin: 8px 10px 0; color: #b8bec6; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-library-note { color: #9da2a8; font-size: 11px; line-height: 1.5; margin-top: 20px; }
.catalog-card { min-width: 0; position: relative; padding-bottom: 10px; overflow: hidden; border: 1px solid transparent; background: transparent; }
.catalog-card:hover, .catalog-card:focus-within { border-color: #50555b; }
.catalog-card:focus-within { outline: 1px solid rgba(255,255,255,.4); }
.catalog-card-main { width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.catalog-card-main > img, .catalog-cover-placeholder { width: 100%; aspect-ratio: 1/1; display: grid; place-items: center; object-fit: cover; background: #2c3035; }
.catalog-cover-placeholder svg { width: 33%; color: #7e848a; }
.catalog-card-main > div:last-child { min-width: 0; padding: 11px 11px 6px; display: grid; gap: 4px; }
.catalog-card-main strong, .catalog-card-main small, .catalog-card-main div > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.catalog-card-main strong { font-size: 11px; }
.catalog-card-main small { color: #9da2a8; font-size: 8px; }
.catalog-card-main div > span { color: #c6c9cc; font-size: 8px; }
.catalog-support { position: absolute; top: 8px; left: 8px; padding: 4px 6px; background: rgba(15,17,19,.9); border: 1px solid rgba(255,255,255,.18); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.catalog-support.supported { color: #b6d5a5; border-color: rgba(101,169,69,.38); }
.catalog-support.unsupported { color: #e4ad67; border-color: rgba(228,173,103,.35); }
.catalog-card-install { min-height: 34px; margin: 0 10px; padding: 0 10px; border: 1px solid rgba(255,255,255,.16); background: #34383d; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-size: 9px; font-weight: 650; }
.catalog-card-install:not(:disabled):hover { background: #388e35; color: #fff; border-color: #388e35; }
.catalog-card-install:disabled { opacity: .42; cursor: not-allowed; }
.catalog-card-install svg { width: 14px; height: 14px; }
.load-more { padding: 24px 0 4px; display: flex; justify-content: center; }
.store-pagination { flex-direction: column; gap: 10px; align-items: center; }
.store-pagination > .alert.amber { width: 100%; margin: 0; text-align: left; }
.featured-catalog { margin-top: 4px; }
.catalog-loading { min-height: 260px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px dashed #454a50; color: var(--muted); font-size: 10px; }
.catalog-loading svg { width: 18px; color: var(--green); }
.catalog-empty { min-height: 300px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed #454a50; }
.catalog-empty > svg { width: 37px; color: #8c9298; }
.catalog-empty h2 { margin: 16px 0 7px; font-size: 19px; }
.catalog-empty p { max-width: 580px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.empty-state.compact { min-height: 240px; }

.manual-install { padding: 18px; display: grid; grid-template-columns: minmax(160px,.55fr) minmax(170px,.8fr) minmax(270px,1.4fr) auto; align-items: end; gap: 10px; border: 1px solid var(--line); background: #222529; }
.manual-install label { display: grid; gap: 7px; color: #cdd0d4; font-size: 9px; }
.manual-install label em { color: #777d84; font-style: normal; font-weight: 400; }
.manual-install input { width: 100%; height: 38px; border: 1px solid #4b5056; background: #17191c; padding: 0 10px; outline: 0; font-size: 9px; }
.manual-install button.secondary { height: 38px; }

.store-hero { min-height: 365px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; border: 1px solid var(--line); background: #22252a; }
.store-intro { padding: 44px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; background: #202327; }
.store-intro > svg { width: 42px; height: 42px; color: var(--green); margin-bottom: 28px; }
.store-intro > span { font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.store-intro h2 { max-width: 520px; margin: 10px 0 12px; font-size: 34px; line-height: 1.05; letter-spacing: -.04em; }
.store-intro p { max-width: 560px; margin: 0; color: #b9bdc2; font-size: 12px; line-height: 1.6; }
.install-form { padding: 35px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid var(--line); }
.install-form label, .form-grid label { display: grid; gap: 7px; margin-bottom: 14px; color: #d2d4d7; font-size: 10px; font-weight: 600; }
.install-form label em { color: #777d84; font-style: normal; font-weight: 400; margin-left: 5px; }
.install-form input, .form-grid input { width: 100%; height: 40px; border: 1px solid #4b5056; border-radius: 2px; background: #17191c; padding: 0 11px; outline: 0; font-size: 11px; }
.install-form input:focus, .form-grid input:focus { border-color: #eee; }
.input-action { display: grid; grid-template-columns: minmax(0,1fr) 42px; }
.input-action input { border-radius: 2px 0 0 2px; }
.input-action button { border: 1px solid #4b5056; border-left: 0; border-radius: 0 2px 2px 0; background: #30343a; display: grid; place-items: center; cursor: pointer; }
.input-action button:hover { background: #3b4045; }
.input-action svg { width: 17px; }
.inline-warning { display: flex; gap: 7px; align-items: center; color: #e1b75e; font-size: 9px; }
.inline-warning svg { width: 15px; }
.verified-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 10px; }
.verified-row button { height: 72px; border: 1px solid var(--line); background: var(--surface); padding: 8px; display: grid; grid-template-columns: 54px minmax(0,1fr) 18px; gap: 11px; align-items: center; text-align: left; cursor: pointer; }
.verified-row button:hover { background: var(--surface-hover); }
.verified-row .game-cover, .verified-row .cover-placeholder { width: 54px; height: 54px; }
.verified-row span { min-width: 0; display: grid; gap: 5px; }
.verified-row strong, .verified-row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.verified-row strong { font-size: 11px; }
.verified-row small { color: var(--muted); font: 9px monospace; }
.verified-row svg { width: 15px; color: #8d9298; }

.library-layout { display: grid; grid-template-columns: minmax(0,1fr); align-items: start; gap: 16px; }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); align-content: start; gap: 16px; }
.library-card-wrap { position: relative; min-width: 0; }
.library-card { min-width: 0; padding: 0 0 10px; border: 1px solid transparent; background: transparent; border-radius: 4px; text-align: left; cursor: pointer; overflow: hidden; }
.library-card-wrap > .library-card { width: 100%; }
.library-card-menu-button { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 4px; background: rgba(23,25,28,.85); cursor: pointer; }
.library-card-menu-button:hover { background: #464b52; }
.library-card-menu-button svg { width: 17px; }
.game-context-menu { position: fixed; z-index: 30; width: 215px; max-height: calc(100vh - 16px); overflow-y: auto; padding: 5px; background: #30343a; border: 1px solid #575d65; border-radius: 5px; box-shadow: 0 15px 40px rgba(0,0,0,.5); }
.game-context-menu button { width: 100%; padding: 10px; display: flex; align-items: center; gap: 10px; border: 0; border-radius: 3px; background: transparent; text-align: left; cursor: pointer; font-size: 12px; }
.game-context-menu button:hover { background: #464b52; }
.game-context-menu button.danger { color: #ffaaaa; }
.game-context-menu svg { width: 16px; height: 16px; }
.dialog-backdrop { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.7); }
.game-dialog { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 26px; background: #292d33; border: 1px solid #636971; border-radius: 6px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.game-dialog h2 { margin: 0 0 13px; font-size: 21px; }
.game-dialog p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.remove-path { display: block; padding: 10px; background: #1c1f23; color: #dce0e3; font-size: 11px; overflow-wrap: anywhere; }
.game-dialog form { display: grid; gap: 14px; }
.game-dialog label { display: grid; gap: 6px; font-size: 11px; color: #d8dce0; }
.game-dialog input, .game-dialog select { width: 100%; height: 39px; padding: 0 10px; border: 1px solid #5b626b; border-radius: 4px; background: #1c1f23; color: #f4f4f4; font-size: 12px; }
.game-dialog .input-action input { border: 0; }
.game-launch-tools { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: 5px; }
.game-launch-tools legend { padding: 0 5px; font-size: 12px; font-weight: 600; }
.game-launch-tools small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.game-launch-tools textarea { width: 100%; min-height: 72px; resize: vertical; padding: 9px 10px; border: 1px solid #5b626b; border-radius: 4px; background: #1c1f23; color: #f4f4f4; font: 11px/1.5 monospace; }
.game-launch-tools summary { font-size: 11px; cursor: pointer; }
.game-launch-tools details[open] summary { margin-bottom: 12px; }
.dialog-actions { margin-top: 24px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.dialog-actions button { min-height: 36px; }
.package-dialog { width: min(720px, 100%); }
.package-choices { display: grid; gap: 10px; }
.game-dialog .package-choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid #515860; border-radius: 4px; cursor: pointer; }
.game-dialog .package-choice:has(input:checked) { border-color: #75be55; background: #283526; }
.game-dialog .package-choice input { flex: 0 0 18px; width: 18px; height: 18px; padding: 0; margin: 2px 0 0; accent-color: #75be55; }
.package-choice span { min-width: 0; display: grid; gap: 5px; }
.package-choice strong { font-size: 14px; }
.package-choice small { color: var(--muted); overflow-wrap: anywhere; }
.package-choice.unsupported { opacity: .55; cursor: default; }
.install-storage { margin-top: 18px; padding: 14px; border: 1px solid var(--line); border-radius: 5px; }
.install-storage dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 12px; }
.install-storage dt, .install-storage small { color: var(--muted); font-size: 12px; }
.install-storage dd { margin: 5px 0 0; font-weight: 600; }
.install-storage .install-destination { margin: 0 0 12px; font-size: 12px; overflow-wrap: anywhere; color: var(--muted); }
.install-storage p.warning-text { margin: 0; font-size: 13px; }
.package-content-id { font-family: monospace; }
.library-card:hover, .library-card.selected { background: #24272b; border-color: #5a5f66; }
.library-card.selected { outline: 2px solid rgba(255,255,255,.45); }
.library-card .game-cover, .library-card .cover-placeholder { aspect-ratio: 1/1; }
.library-card strong, .library-card > span { display: block; margin: 9px 10px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.library-card strong { font-size: 11px; }
.library-card > span { color: var(--muted); font-size: 9px; margin-top: 4px; }
.state-pill { width: fit-content; display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; background: rgba(139,216,10,.14); color: var(--green); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.state-pill svg { width: 11px; height: 11px; }
.state-pill.offline, .state-pill.incomplete { color: #e1b653; background: rgba(225,182,83,.12); }
.state-pill.imported { color: #aab0b6; background: rgba(170,176,182,.1); }
.icon-button { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid var(--line); background: #32363b; cursor: pointer; }
.icon-button:hover { background: #3c4147; }
.icon-button svg { width: 18px; }
.secondary.danger { color: #ff9a9a; }
.support-note, .fine-print { color: #92979d; font-size: 9px; line-height: 1.55; }
.support-note { margin: 10px 20px 20px; }
.alert { display: flex; align-items: flex-start; gap: 8px; padding: 10px 11px; font-size: 9px; line-height: 1.45; }
.alert svg { width: 15px; flex: 0 0 auto; }
.alert.amber { margin: 12px 20px 4px; color: #e3bd69; background: rgba(227,189,105,.08); border: 1px solid rgba(227,189,105,.18); }
.settings-card > .alert.amber { margin: 12px 0; }
.game-operation { margin: 0 12px 12px; padding: 11px; border: 1px solid rgba(139,216,10,.2); background: rgba(139,216,10,.05); }
.game-operation summary { cursor: pointer; font-size: 12px; }
.game-operation summary span { margin-left: 10px; }
.game-operation[open] > pre, .game-operation[open] > button { margin-top: 10px; }
.game-operation > div { display: grid; gap: 4px; }
.game-operation strong { font-size: 12px; }
.game-operation span { color: #b9bdc1; font-size: 11px; overflow-wrap: anywhere; }
.game-operation pre { max-height: 140px; margin: 0; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #121416; padding: 8px; font: 11px/1.45 monospace; color: #aab1b7; }
.game-operation.failed { border-color: rgba(241,112,112,.3); background: rgba(241,112,112,.05); }
.game-operation.complete { border-color: var(--line); background: rgba(255,255,255,.02); }
.empty-state { min-height: 390px; border: 1px dashed #454a50; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-state > div { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: #25282c; color: #90959b; }
.empty-state > div svg { width: 34px; }
.empty-state h2 { margin: 15px 0 7px; font-size: 18px; }
.empty-state p { margin: 0 0 18px; color: var(--muted); font-size: 10px; }

.download-list { display: grid; gap: 9px; }
.download-item { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; gap: 13px; padding: 17px; background: var(--surface); border: 1px solid var(--line); }
.download-status { position: relative; width: 39px; height: 39px; display: grid; place-items: center; background: #30352c; color: var(--green); border-radius: 3px; overflow: hidden; }
.download-status img.download-cover { width: 100%; height: 100%; object-fit: cover; }
.download-badge { position: absolute; right: 1px; bottom: 1px; display: grid; place-items: center; padding: 2px; background: rgba(10, 12, 14, .78); color: var(--green); border-radius: 3px; }
.download-badge.failed { color: var(--danger); }
.download-badge svg { width: 10px; height: 10px; }
.download-item.failed .download-status { background: rgba(241,112,112,.1); color: var(--danger); }
.download-status > svg { width: 20px; }
.download-heading { display: flex; justify-content: space-between; gap: 15px; }
.download-heading h3 { margin: 0 0 4px; font-size: 12px; }
.download-heading span { color: var(--faint); font: 9px monospace; }
.download-heading strong { color: #d2d4d7; font-size: 10px; text-transform: capitalize; }
.progress-track { height: 4px; margin: 11px 0 7px; background: #3b3f44; overflow: hidden; }
.progress-track i { display: block; height: 100%; background: var(--green); transition: width .2s; }
.progress-track.indeterminate i { width: 28%; animation: indeterminate 1.4s infinite ease-in-out; }
.download-main > p { margin: 0; color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.error-text { color: var(--danger) !important; }
.download-actions { display: flex; gap: 5px; }
.download-actions button { width: 33px; height: 33px; border: 1px solid var(--line); background: #30343a; display: grid; place-items: center; cursor: pointer; }
.download-actions button:hover { background: #3a3f45; }
.download-actions svg { width: 16px; }
.task-log, .build-log { max-height: 240px; overflow: auto; white-space: pre-wrap; background: #111315; border: 1px solid #3b3f44; color: #b0b6bb; padding: 11px; font: 9px/1.5 monospace; }
.task-log { margin: 12px 0 0; }

.settings-page { max-width: 1240px; }
.settings-card { margin-bottom: 14px; padding: 24px; background: #222529; border: 1px solid var(--line); }
.settings-card.compact { margin-bottom: 0; }
.offline-permissions-card .offline-permissions-note { display: flex; align-items: center; gap: 8px; margin: 6px 0; color: #c2c5c9; font-size: 10px; line-height: 1.5; }
.offline-permissions-card .offline-permissions-limit { margin: 4px 0 12px; color: #e3bd69; font-size: 10px; }
.offline-permissions-card .offline-permissions-limit.exhausted { color: #ed9090; }
.settings-storage { margin-bottom: 14px; }
.settings-storage > .settings-card + .settings-card { margin-top: 14px; }
.settings-storage .form-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.settings-diagnostics { padding: 0; }
.settings-diagnostics > summary { display: flex; align-items: center; gap: 12px; padding: 18px 24px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; }
.settings-diagnostics > summary::-webkit-details-marker { display: none; }
.settings-diagnostics > summary:hover { background: #292d32; }
.settings-diagnostics > summary:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }
.settings-diagnostics > summary > svg { width: 18px; height: 18px; color: var(--muted); }
.settings-diagnostics > summary > svg:last-child { margin-left: auto; transition: transform .15s ease; }
.settings-diagnostics[open] > summary > svg:last-child { transform: rotate(90deg); }
.diagnostics-content { padding: 0 24px 24px; }
.diagnostics-content section + section { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.diagnostics-content h3 { margin: 8px 0 12px; font-size: 12px; }
.diagnostics-content .button-row { margin-top: 14px; }
.backend-diagnostic-action { margin: 14px 0; }
.backend-diagnostic-action .fine-print { margin: 8px 0 0; }
.account-games-results .alert { flex-wrap: wrap; }
.diagnostic-path { overflow-wrap: anywhere; color: var(--muted); font-size: 10px; }
.launcher-card { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.launcher-card .settings-heading { margin: 0; }
.launcher-card .component-update-details { flex: 1 1 100%; min-width: 0; }
.button-row a.primary { display: inline-flex; align-items: center; gap: 8px; padding: 0 17px; min-height: 39px; border-radius: 3px; background: #388e35; color: #fff; border: 1px solid transparent; font-size: 12px; font-weight: 650; text-decoration: none; }
.button-row a.primary:hover { background: var(--green-hover); }
.button-row a.primary svg { width: 17px; height: 17px; }

.wizard-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(8, 10, 12, .74); backdrop-filter: blur(3px); display: grid; place-items: center; }
.wizard { width: min(540px, 92vw); padding: 30px 32px; background: #1c1f23; border: 1px solid var(--line); border-radius: 7px; display: grid; gap: 16px; }
.wizard h1 { margin: 6px 0 0; font-size: 27px; letter-spacing: -.03em; }
.wizard > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.wizard-disclaimer { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; padding: 14px; border: 1px solid rgba(227,189,105,.35); border-radius: 5px; background: rgba(227,189,105,.07); }
.wizard-disclaimer > svg { width: 18px; height: 18px; color: #e3bd69; margin-top: 1px; }
.wizard-disclaimer h2 { margin: 0 0 7px; font-size: 13px; line-height: 1.4; color: #e3bd69; }
.wizard-disclaimer p { margin: 0; font-size: 12px; line-height: 1.5; color: #d0d2d5; overflow-wrap: anywhere; }
.wizard-disclaimer p + p { margin-top: 8px; }
.wizard-disclaimer a { color: #e3bd69; text-decoration: underline; text-underline-offset: 2px; }
.wizard-disclaimer a:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.wizard-field { display: grid; gap: 6px; font-size: 10px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.wizard-field small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--faint); }
.wizard-account { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.wizard-account small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.wizard { max-height: 94vh; overflow-y: auto; }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wizard-actions > span { color: var(--faint); font-size: 9px; max-width: 250px; }
.passkey-sign-in-notice { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.wizard-actions { flex-wrap: wrap; }
.wizard-actions > .passkey-sign-in-notice { flex: 0 0 100%; margin: 0 0 4px; }
.process-mode { margin: 0 0 14px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: #222529; border: 1px solid var(--line); font-size: 11px; }
.process-mode > span { font-weight: 700; }
.process-mode label { display: flex; align-items: center; gap: 9px; color: #d2d6d9; cursor: pointer; }
.process-mode input { accent-color: #568f59; width: 16px; height: 16px; }
.settings-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.settings-heading > div:nth-child(2) { min-width: 0; }
.settings-heading h2 { margin: 2px 0 4px; font-size: 16px; }
.settings-heading p { margin: 0; color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.settings-icon { width: 42px; height: 42px; display: grid; place-items: center; background: #34383d; color: #d5d7da; }
.settings-icon svg { width: 21px; }
.status-label { margin-left: auto; display: flex; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid var(--line); color: #c2c5c9; font-size: 8px; font-weight: 700; }
.status-label.ready { color: #b9e879; border-color: rgba(139,216,10,.25); }
.status-label.off { color: #ed9090; border-color: rgba(241,112,112,.24); }
.status-label.unknown { color: #e3bd69; border-color: rgba(227,189,105,.22); }
.account-note { display: flex; gap: 8px; padding: 12px; margin-bottom: 15px; background: #292c30; color: #c8cbd0; font-size: 9px; line-height: 1.5; }
.account-note svg { width: 16px; flex: 0 0 auto; color: #d6ad56; }
.account-card .fine-print { margin: 14px 0 0; max-width: 920px; }
.account-card .account-management-row { margin-top: 12px; }
.meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.meta-grid div { min-width: 0; padding: 11px 13px; background: #1b1d20; display: grid; gap: 5px; }
.meta-grid span { color: var(--faint); font-size: 8px; }
.meta-grid strong { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.capability-row { margin: 14px 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.capability-row > span { color: var(--muted); font-size: 9px; margin-right: 4px; }
.dependency { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border: 1px solid rgba(241,112,112,.18); color: #d98585; background: rgba(241,112,112,.04); font-size: 8px; }
.dependency.ok { border-color: rgba(139,216,10,.2); color: #b6df79; background: rgba(139,216,10,.04); }
.dependency svg { width: 12px; height: 12px; }
.button-row.end { justify-content: flex-end; }
.build-log { margin: 14px 0 0; }
.runtime-phase { margin: 11px 0; padding: 10px 12px; display: flex; align-items: center; gap: 8px; background: #1b1e21; border: 1px solid var(--line); color: #c3c6ca; font-size: 9px; }
.runtime-phase svg { width: 15px; color: var(--green); }
.settings-columns { display: grid; grid-template-columns: 1.45fr .55fr; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 110px 125px; gap: 0 11px; }
.form-grid label:nth-child(4), .form-grid label:nth-child(5), .form-grid label:nth-child(6) { grid-column: 1 / -1; }
.dependency-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.dependency-grid .dependency { padding: 10px; }
.save-row { margin-top: 5px; padding-top: 15px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.save-row span { color: var(--muted); font-size: 9px; }

.toggle-row { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); display: grid; grid-template-columns: 1fr; gap: 7px; }
.toggle-row p { margin: 0; color: var(--faint); font-size: 10px; line-height: 1.5; }

.toast { position: fixed; right: 22px; bottom: 22px; width: min(430px, calc(100vw - 44px)); min-height: 51px; display: grid; grid-template-columns: 20px 1fr 20px; align-items: center; gap: 9px; padding: 12px 14px; background: #283022; border: 1px solid rgba(139,216,10,.3); box-shadow: 0 16px 45px rgba(0,0,0,.55); z-index: 100; font-size: 10px; }
.toast > svg { width: 17px; color: var(--green); }
.toast.error { background: #342225; border-color: rgba(241,112,112,.32); }
.toast.error > svg { color: var(--danger); }
.toast button { border: 0; background: transparent; color: #a1a6ac; cursor: pointer; padding: 0; }
.toast button svg { width: 15px; }
.boot { height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 13px; background: var(--canvas); color: var(--muted); font-size: 10px; }
.boot .brand-mark { margin-bottom: 8px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes indeterminate { from { transform: translateX(-110%); } to { transform: translateX(460%); } }

/* Desktop storefront: artwork and readable hierarchy, with green reserved for actions. */
.app-shell { grid-template-columns: 242px minmax(0, 1fr); }
.sidebar { padding: 18px 13px 14px; }
.brand-mark { width: 26px; height: 26px; }
.sidebar nav { gap: 2px; }
.nav-item { height: 51px; border-radius: 7px; }
.nav-item.active { background: #383d46; }
.account-summary { margin-bottom: 13px; }
.content-shell { grid-template-rows: 62px minmax(0,1fr); }
.topbar { background: #202228; border-bottom-color: rgba(255,255,255,.08); }
.search-box { background: #2c3038; border-color: #595f68; }
.page { padding: 28px 38px 75px; }
.page-header { margin-bottom: 17px; }
.page-header h1 { font-size: 34px; letter-spacing: -.025em; }
.page-header p { font-size: 13px; }
.section-title { margin-top: 27px; }
.section-title h2 { font-size: 23px; }
.overline { color: #c9cdd2; letter-spacing: .07em; }
.spotlight, .catalog-selection { border-radius: 7px; }
.spotlight { min-height: 345px; }
.spotlight::after { background: linear-gradient(90deg, rgba(16,18,22,.98), rgba(16,18,22,.75) 52%, rgba(16,18,22,.14) 90%); }
.spotlight-copy { padding: 34px 38px; }
.spotlight h1 { font-size: clamp(34px, 4.4vw, 58px); letter-spacing: -.035em; }
.spotlight p { font-size: 14px; }
button.primary, button.secondary { border-radius: 5px; min-height: 40px; font-size: 12px; }
.catalog-card { border-radius: 7px; background: #282b31; border-color: rgba(255,255,255,.06); }
.catalog-card-main > img, .catalog-cover-placeholder { aspect-ratio: 1/1; }
.catalog-card-main strong { font-size: 13px; }
.catalog-card-main small, .catalog-card-main div > span { font-size: 10px; }
.catalog-card-install { border-radius: 5px; font-size: 11px; }
.account-games-results .catalog-card { display: flex; flex-direction: column; }
.account-games-results .catalog-card-main { flex: 1; display: block; cursor: default; }
.account-games-results .library-card { padding: 0; border: 0; background: transparent; border-radius: 0; cursor: pointer; }
.account-games-results .library-card strong { margin: 0; font-size: 13px; }
.account-games-results .catalog-card-main > div:last-child { min-height: 71px; }
.account-games-results .catalog-card-install, .catalog-card-status { align-self: flex-start; height: 34px; min-height: 34px; }
.catalog-card-status { display: flex; align-items: center; gap: 6px; margin: 0 10px; padding: 0 1px; font-size: 11px; color: #b8bec6; }
.catalog-card-status svg { width: 14px; height: 14px; }
.account-games-results .game-cover, .account-games-results .cover-placeholder { display: block; width: 100%; aspect-ratio: 1/1; }
.account-games-results .cover-placeholder { display: grid; }
.catalog-grid { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 13px; }
.featured-catalog > .section-title:first-child { margin-top: 5px; }
.featured-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.featured-tile { min-width: 0; height: clamp(210px, 19vw, 295px); padding: 0; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; background: #31353d; color: #fff; overflow: hidden; position: relative; display: block; text-align: left; cursor: pointer; }
.featured-tile:hover { border-color: #a4aab2; }
.featured-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.featured-tile::after { content: ""; position: absolute; inset: 25% 0 0; background: linear-gradient(transparent, rgba(8,10,13,.9)); pointer-events: none; }
.featured-tile-copy { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: grid; gap: 5px; }
.featured-tile-copy strong { font-size: clamp(16px, 1.5vw, 22px); line-height: 1.15; }
.featured-tile-copy small { color: #e1e3e6; font-size: 11px; }
.featured-tile-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: #343942; }
.featured-tile-placeholder svg { width: 66px; color: #a3a9b0; }
.fine-print { font-size: 10px; }
.status-label.ready, .dependency.ok { color: #a9d396; border-color: rgba(101,169,69,.3); background: rgba(101,169,69,.08); }
.toast { background: #2b332a; border-color: rgba(101,169,69,.35); }
.progress-track { height: 6px; border-radius: 4px; }
.progress-track i { border-radius: 4px; background: #529b48; }
.download-heading h3 { font-size: 14px; }
.download-main > p { font-size: 11px; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 82px minmax(0,1fr); }
  .account-summary { grid-template-columns: 1fr; justify-items: center; }
  .account-summary > span, .account-summary > svg, .nav-item span, .recents, .queue-summary-copy { display: none; }
  .nav-item { grid-template-columns: 1fr; justify-items: center; padding: 0; }
  .nav-item b { position: absolute; margin: -23px 0 0 27px; }
  .queue-summary, .queue-summary:has(.queue-preview-art) { grid-template-columns: 1fr; justify-items: center; }
  .page { padding-left: 28px; padding-right: 28px; }
  .settings-columns { grid-template-columns: 1fr; }
  .featured-tile { height: 220px; }
}

@media (max-width: 820px) {
  .top-status span { display: none; }
  .topbar { justify-content: flex-start; }
  .search-box { width: calc(100% - 55px); }
  .store-hero, .library-layout, .settings-columns, .catalog-selection, .manual-install { grid-template-columns: 1fr; }
  .catalog-selection { align-items: stretch; }
  .catalog-install-box { margin-top: 0; }
  .install-form { border-left: 0; border-top: 1px solid var(--line); }
  .quick-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid label { grid-column: auto !important; }
  .meta-grid { grid-template-columns: 1fr; }
  .spotlight-copy { padding: 30px; }
  .spotlight-meta { display: none; }
  .featured-rail { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 1280px) {
  .library-page { padding: 22px 24px 60px; }
  .library-page .page-header { flex-wrap: wrap; gap: 12px; }
  .library-page .page-header h1 { font-size: 28px; }
  .library-page .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 820px) {
  .library-page { padding: 18px 16px 60px; }
  .library-page .page-header h1 { font-size: 24px; }
  .library-page .catalog-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
.content-dialog { width: min(760px, 94vw); max-height: 85vh; overflow: auto; }
.content-list { display: grid; gap: 12px; margin: 20px 0; }
.content-list article { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--border, #40444a); border-radius: 6px; }
.content-list article > div { min-width: 0; }
.content-list strong, .content-list small { display: block; overflow-wrap: anywhere; }
.content-list small { margin-top: 5px; color: #b6bec8; }
.content-list button { flex-shrink: 0; }
.keyring-setup { margin: 16px 0; padding: 14px; border: 1px solid var(--border, #3a4046); border-radius: 6px; }
.keyring-status { display: flex; align-items: flex-start; gap: 10px; }
.keyring-status > svg { flex: 0 0 20px; width: 20px; height: 20px; }
.keyring-status p { margin: 6px 0 12px; }
.keyring-setup .fine-print { margin: 10px 0 0; }
.keyring-setup .button-row { margin-top: 12px; flex-wrap: wrap; }
.keyring-compact { padding: 10px 12px; margin: 12px 0; }
.keyring-compact-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.keyring-compact .keyring-status { align-items: center; gap: 8px; }
.keyring-compact .keyring-status > svg { flex-basis: 16px; width: 16px; height: 16px; }
.keyring-compact .keyring-status strong { font-size: 12px; }
.keyring-compact .keyring-status small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.keyring-compact .button-row { flex: 0 0 auto; margin: 0; gap: 6px; }
.keyring-compact button { min-height: 32px; padding: 6px 9px; font-size: 11px; }
.keyring-compact .keyring-problem { margin: 10px 0 0; font-size: 12px; line-height: 1.5; }
.keyring-help { margin-top: 8px; font-size: 11px; color: var(--muted); }
.keyring-help > summary { cursor: pointer; width: fit-content; }

.content-shell:has(> .cloud-save-warning) { grid-template-rows: 62px auto minmax(0, 1fr); }
.cloud-save-warning { display: flex; align-items: center; gap: 12px; max-height: 40vh; overflow: auto; margin: 12px 20px 0; padding: 12px; border: 1px solid #9c7b38; background: #332c1e; color: #f2dfb9; }
.cloud-save-warning > div { min-width: 0; flex: 1; }
.cloud-save-warning strong { font-size: 13px; overflow-wrap: anywhere; }
.cloud-save-warning p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.cloud-save-warning > button { flex-shrink: 0; }
@media (max-width: 800px) { .cloud-save-warning { margin: 8px 12px 0; flex-wrap: wrap; } .cloud-save-warning > div { flex-basis: 100%; } }

.managed-runtime-settings p { overflow-wrap: anywhere; }
.managed-runtime-binary { display: grid; gap: 5px; margin: 10px 0 0; }
.managed-runtime-binary .diagnostic-path { margin: 0; }
.managed-runtime-binary small { color: var(--muted); font-size: 10px; line-height: 1.45; }

.component-update-results { list-style: none; padding: 0; margin: 8px 0 0; }
.component-update-results li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.component-update-results li > div { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.component-update-results li small { color: var(--muted); }
.component-update-results li > button { flex-shrink: 0; }
@media (max-width: 900px) { .component-update-results li { flex-wrap: wrap; } }
.component-update-details button, .managed-runtime-settings button { min-height: 44px; }