/* byhamza.dev: a web port of DashX360's Metro dashboard (github.com/ZivvoZ/dashx360).
   Every screen is a 1280x720 canvas scaled to fit the window, like DashX360's
   Viewbox, so the pixel values below are DashX360's own. */

@font-face { font-family: Selawik; font-weight: 300; font-display: block; src: url(/assets/fonts/selawkl.woff2) format("woff2"); }
@font-face { font-family: Selawik; font-weight: 350; font-display: block; src: url(/assets/fonts/selawksl.woff2) format("woff2"); }
@font-face { font-family: Selawik; font-weight: 400; font-display: block; src: url(/assets/fonts/selawk.woff2) format("woff2"); }
@font-face { font-family: Selawik; font-weight: 600; font-display: block; src: url(/assets/fonts/selawksb.woff2) format("woff2"); }
@font-face { font-family: Selawik; font-weight: 700; font-display: block; src: url(/assets/fonts/selawkb.woff2) format("woff2"); }

:root {
  --s: 1;
  --green: #028d02;
  --tile: linear-gradient(to bottom right, #1ea91e 0%, #0c970c 28%, #028d02 58%, #007d00 100%);
  --cubic-out: cubic-bezier(.215, .61, .355, 1);
  --cubic-in: cubic-bezier(.55, .055, .675, .19);
  --sine-out: cubic-bezier(.39, .575, .565, 1);
  --sine-in: cubic-bezier(.47, 0, .745, .715);
  --quart-out: cubic-bezier(.165, .84, .44, 1);
  --quart-inout: cubic-bezier(.77, 0, .175, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: linear-gradient(#3c4143 0%, #666b6d 42%, #c7c9c8 100%) fixed;
  color: #fff;
  font: 400 16px/1.33 "Segoe UI", Selawik, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
body.pad, body.pad * { cursor: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; }
button:focus, a:focus, input:focus, [tabindex]:focus { outline: none; }
img { display: block; -webkit-user-drag: none; }
[hidden] { display: none !important; }

/* Full-window layers, each with a 1280x720 canvas in the middle. */
.layer { position: fixed; inset: 0; overflow: hidden; }
.canvas { position: absolute; left: 50%; top: 50%; width: 1280px; height: 720px; margin: -360px 0 0 -640px; transform: scale(var(--s)); }
.abs { position: absolute; }
.tx { position: absolute; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.33; }
.wrap { white-space: normal; }

/* The page summary is for search engines and screen readers. */
.about { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nojs { position: fixed; inset: auto 0 40px; text-align: center; font-size: 18px; }

/* ---------- Window backgrounds (DashboardBackgroundBrush plus the theme layer) ---------- */
#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#bg > div { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .32s var(--sine-out); }
#bg > div::after { content: ""; position: absolute; inset: 0; }
.bg-theme::after { background: rgba(0, 0, 0, .2); }
#bg > div.on { opacity: 1; }
#dash { z-index: 1; }

/* ---------- Start gate and boot ---------- */
#gate { z-index: 90; background: #000; display: grid; place-items: center; cursor: pointer; }
#gate p { margin: 0; font-size: 20px; font-weight: 300; color: rgba(255, 255, 255, .72); letter-spacing: .02em; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
#boot { z-index: 80; background: #fff; }
/* Cover, so a 16:10 or ultrawide screen gets no bars around the 16:9 video. */
#boot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }

/* FakeLoadingOverlay */
#loading { z-index: 70; background: linear-gradient(#384141 0%, #65706e 44%, #9a9f9c 100%); }
#loading::before { content: ""; position: absolute; inset: 0; opacity: .32; background: radial-gradient(72% 72% at 50% 34%, rgba(255, 255, 255, .53) 0%, rgba(255, 255, 255, .16) 50%, transparent 100%); }
#blackout { z-index: 150; background: #000; }
#loading .ring { position: absolute; left: 592px; top: 311px; width: 96px; height: 96px; fill: none; stroke: rgba(255, 255, 255, .96); stroke-width: 3.7; stroke-linecap: round; animation: spin .76s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Dashboard shell ---------- */
.radial { position: absolute; inset: 0; opacity: .08; pointer-events: none; background: radial-gradient(85% 70% at 28% 22%, rgba(255, 255, 255, .8) 0%, rgba(255, 255, 255, .4) 45%, rgba(255, 255, 255, 0) 100%); }
.host { position: absolute; inset: 0; transform-origin: 50% 50%; }

.tabs { position: absolute; left: 180px; top: 112px; height: 46px; display: flex; gap: 38px; }
.tab { position: relative; height: 40px; text-align: center; font-size: 27px; font-weight: 300; line-height: 1.33; color: rgba(255, 255, 255, .333); transform-origin: 50% 55%; transition: transform .13s var(--sine-out); }
.tab span { display: block; margin-top: -2px; white-space: nowrap; }
.tab:hover, .tab.sel { color: rgba(255, 255, 255, .95); }
.tab.sel { transform: scale(1.025); transition: transform .18s var(--cubic-out); }

.me { position: absolute; right: 96px; top: 42px; width: 360px; height: 38px; opacity: .88; }
.me__state { position: absolute; right: 40px; top: 0; height: 38px; display: flex; align-items: center; gap: 0; transition: opacity .28s linear; white-space: nowrap; }
.me__tag { font-size: 19px; color: rgba(255, 255, 255, .94); margin-right: 9px; text-shadow: .7px .7px 2px rgba(17, 17, 17, .35); }
.me__stats { opacity: 0; font-size: 18px; color: rgba(255, 255, 255, .94); }
.me__stats b { font-weight: 600; margin-left: 5px; }
.me__pic { position: absolute; right: 0; top: 3.5px; width: 31px; height: 31px; background: var(--green); overflow: hidden; }
.me__pic img { width: 100%; height: 100%; object-fit: cover; }
.me button { position: absolute; right: 0; top: 0; height: 38px; width: 220px; }

.frame { position: absolute; left: 0; top: 146px; width: 1280px; height: 502px; }
.pages, .strip { position: absolute; inset: 0; }
.page { position: absolute; left: 0; top: 0; width: 1280px; height: 502px; }
.pages .page:not(.cur) { display: none; }
.pages.sliding { opacity: 0; }
.strip { z-index: 60; overflow: hidden; pointer-events: none; }
.peek { position: absolute; top: 0; width: 104px; height: 502px; overflow: hidden; opacity: .36; z-index: 80; pointer-events: none; }
.peek--l { left: 0; }
.peek--r { left: 1176px; }
.peek__in { position: absolute; inset: 0; }
.peek .page { pointer-events: none; }
.peek-hit { position: absolute; top: 0; width: 104px; height: 502px; z-index: 81; }
.peek-hit--l { left: 0; } .peek-hit--r { left: 1176px; }
.foot { position: absolute; left: 112px; top: 682px; display: flex; align-items: center; }
/* Every screen's button bar sits in the same place, at the same size. */
.ofoot { position: absolute; left: 112px; top: 682px; color: #fff; }
.ofoot .h { cursor: pointer; }

/* Pad glyph hints (A Select  Y Search and the menu footers): a glossy disc
   in the button's colour with the letter drawn on top. */
.hints { position: absolute; display: flex; align-items: center; white-space: pre; font-size: 15px; line-height: 1.33; }
.g { position: relative; display: inline-block; width: 18px; height: 18px; border-radius: 50%; flex: none; font-style: normal; vertical-align: middle;
  background: radial-gradient(circle at 50% 30%, var(--g1) 0%, var(--g2) 55%, var(--g3) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .3), 0 1px 1.5px rgba(0, 0, 0, .35); }
.g::before { content: ""; position: absolute; left: 20%; right: 20%; top: 6%; height: 40%; border-radius: 50%; background: linear-gradient(rgba(255, 255, 255, .5), rgba(255, 255, 255, 0)); }
.g svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 2.3; stroke-linejoin: bevel; filter: drop-shadow(0 .5px .5px rgba(0, 0, 0, .45)); }
.g--a { --g1: #9fdc6a; --g2: #5aa82c; --g3: #2c6512; }
.g--b { --g1: #ff8b7f; --g2: #d4342c; --g3: #7d1410; }
.g--x { --g1: #86c6ff; --g2: #2b7fcf; --g3: #0f4580; }
.g--y { --g1: #ffe58c; --g2: #e3ad12; --g3: #8e6300; }
.hints .h { display: flex; align-items: center; }
.hints .h[data-act] { cursor: pointer; }

/* ---------- Tiles (X360TileButtonStyle) ---------- */
.t { position: absolute; z-index: 0; transform-origin: 50% 50%; transition: transform .12s var(--sine-out); }
.t > .f { position: absolute; inset: 0; overflow: hidden; background: var(--tile); }
.t.on { z-index: 100; transform: scale(1.07); transition: transform .16s var(--cubic-out); }
.t.on > .f { box-shadow: 6.4px 6.4px 18px rgba(0, 0, 0, .34); }
.t:active > .f { opacity: .82; }
.f > img.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.f > img.ico { position: absolute; object-fit: contain; }
.f > .sh { position: absolute; inset: 0; }
.f > .bar { position: absolute; left: 0; right: 0; bottom: 0; }
.advert { position: absolute; font-size: 13px; color: #bfc4c2; line-height: 1.33; }

/* Tile art drawn in HTML */
.big-n { position: absolute; left: 0; right: 0; text-align: center; font-weight: 300; line-height: 1; }
.logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }

/* Portfolio tiles */
.tile__glyph svg { width: 100%; height: 100%; fill: rgba(255, 255, 255, .93); }
.chips { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.chips i { font-style: normal; padding: 3px 9px 4px; font-size: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); }
.say { position: absolute; width: 270px; color: rgba(40, 44, 46, .78); }
.say b { display: block; font-size: 34px; font-weight: 300; line-height: 1.2; color: rgba(40, 44, 46, .85); }
.say span { display: block; margin-top: 8px; font-size: 22px; font-weight: 300; line-height: 1.3; white-space: normal; }
.say em { display: block; margin-top: 14px; font-style: normal; font-size: 17px; }

/* Live tiles */
.hello { position: absolute; left: 34px; right: 34px; top: 40px; }
.hello img { width: 88px; height: 88px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .3)); }
.hello b { display: block; margin-top: 26px; font-size: 64px; font-weight: 300; line-height: 1; }
.hello span { display: block; margin-top: 18px; font-size: 21px; line-height: 1.35; color: rgba(255, 255, 255, .92); white-space: normal; }
.hello em { display: block; margin-top: 14px; font-style: normal; font-size: 17px; color: rgba(255, 255, 255, .72); }
.tile__note { position: absolute; left: 12px; right: 12px; bottom: 36px; font-size: 14px; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__big { position: absolute; left: 12px; right: 12px; top: 14px; font-size: 26px; font-weight: 300; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lines { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 3px; }
.lines i, .lines .li { font-style: normal; font-size: 15px; line-height: 1.3; color: rgba(255, 255, 255, .9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lines--2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
.val { position: absolute; left: 14px; right: 12px; top: 16px; }
.val small { display: block; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.val__rank { display: block; margin-top: 8px; font-size: 26px; font-weight: 300; line-height: 1.15; white-space: normal; }
.val__peak { display: block; margin-top: 6px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.statcol { position: absolute; left: 14px; right: 12px; top: 18px; }
.statcol b { display: block; font-size: 40px; font-weight: 300; line-height: 1; }
.statcol > span { display: block; margin: 3px 0 18px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.journey { position: absolute; left: 14px; right: 14px; top: 20px; height: 44px; display: flex; align-items: center; justify-content: space-between; font-size: 18px; }
.journey em { font-style: normal; color: rgba(255, 255, 255, .55); }
.journey .jx { width: 26px; height: 26px; }
.journey .jl { display: block; height: 44px; }
.journey .jl--psp, .journey .jl--ps4 { width: 40px; }
.journey .jl--pc { width: 24px; }
.journey svg { display: block; width: 100%; height: 100%; fill: #fff; }
.poster { position: absolute; top: 18px; width: 102px; height: 153px; overflow: hidden; background: rgba(255, 255, 255, .08); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.brand { position: absolute; right: 11px; bottom: 9px; pointer-events: none; }
.brand svg { display: block; width: 100%; height: 100%; fill: rgba(255, 255, 255, .95); }

/* ---------- Sign-in and notification toast ---------- */
.toast { position: absolute; left: 479.33px; top: 581.33px; width: 319.33px; height: 78.67px; z-index: 1000; opacity: 0; pointer-events: none; filter: drop-shadow(0 2px 7px rgba(0, 0, 0, .48)); }
.toast > * { position: absolute; }
.toast__glow, .toast__pill { left: 8.67px; top: 7.33px; width: 302px; height: 64px; border-radius: 32px; transform-origin: 0 50%; transform: scaleX(0); opacity: 0; }
.toast__glow { border: 1px solid rgba(255, 255, 255, .45); box-shadow: 0 0 12px rgba(255, 255, 255, .3); }
.toast__pill { background: linear-gradient(rgba(90, 93, 93, .92) 0%, rgba(68, 70, 70, .94) 42%, rgba(44, 46, 46, .94) 100%); border: 1px solid; border-image: none; border-color: rgba(255, 255, 255, .5) rgba(255, 255, 255, .25) rgba(0, 0, 0, .4); }
.toast__icon { left: 8.67px; top: 7.33px; width: 64px; height: 64px; opacity: 0; transform: scale(.56); }
.toast__icon img { position: absolute; inset: 0; width: 64px; height: 64px; }
.toast__icon .orb { opacity: 1; }
.toast__icon .alert { opacity: 0; }
.toast__icon.blink .orb { animation: blink-orb 2.16s linear infinite; }
.toast__icon.blink .alert { animation: blink-alert 2.16s linear infinite; }
@keyframes blink-orb { 0%, 44.4% { opacity: 1; } 50%, 94.4% { opacity: 0; } 100% { opacity: 1; } }
@keyframes blink-alert { 0%, 44.4% { opacity: 0; } 50%, 94.4% { opacity: 1; } 100% { opacity: 0; } }
.toast__text { left: 78.67px; top: 12.67px; width: 226.67px; height: 60px; opacity: 0; }
.toast__text div { position: absolute; left: 0; width: 226.67px; font-size: 20px; line-height: 1.33; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255, 255, 255, .97); text-shadow: 0 0 6px rgba(255, 255, 255, .16); }
.toast__text div + div { top: 23.33px; }

/* ---------- Overlays on the dashboard canvas ---------- */
.ov { position: absolute; inset: 0; z-index: 200; }

/* Windows: one per tile, on the System Settings layout. */
/* The backdrop runs 4000 px past the canvas each way, so a 16:10 or ultrawide
   screen gets no strips of dashboard around it. The stops keep the gradient
   where it was on the canvas itself. */
.win::before { content: ""; position: absolute; inset: -4000px; z-index: -1; background: linear-gradient(rgba(6, 7, 8, .94) 45.87%, rgba(22, 26, 28, .92) 50.41%, rgba(2, 2, 3, .94) 54.13%); }
.win__title { position: absolute; left: 138px; top: 62px; font-size: 32px; font-weight: 300; line-height: 1.33; }
.win__panel { position: absolute; left: 200px; top: 119px; width: 880px; height: 482px; background: rgba(95, 102, 104, .85); border: 1px solid rgba(174, 179, 181, .5); }
.win__body { position: absolute; inset: 0; padding: 30px 40px; overflow-y: auto; white-space: normal; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .35) transparent; }
.win__body p { margin: 0 0 14px; font-size: 20px; line-height: 1.45; color: rgba(255, 255, 255, .93); }
.win__body h3 { margin: 0 0 10px; font-size: 26px; font-weight: 300; line-height: 1.25; }
.win__body h3 small { margin-left: 6px; font-size: 18px; color: rgba(255, 255, 255, .7); }
.win__body > h4:first-child { margin-top: 0; }
.win__body h4 { margin: 20px 0 6px; font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.wdim { color: rgba(255, 255, 255, .7) !important; }
.wme { display: flex; gap: 26px; margin-bottom: 10px; }
.wme img { width: 112px; height: 112px; flex: none; object-fit: cover; }
.wrows { margin: 8px 0 0; }
.wrows + p { margin-top: 18px; }
.wrows div { display: flex; min-height: 38px; align-items: center; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 19px; }
.wrows dt { width: 210px; flex: none; color: rgba(255, 255, 255, .7); }
.wrows dd { margin: 0; }
.wlist { margin: 0; padding: 0; list-style: none; }
.wlist li { padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.wlist li:first-child { border-top: 0; padding-top: 0; }
.wlist b { display: block; font-size: 26px; font-weight: 300; }
.wlist span { display: block; margin-top: 2px; font-size: 19px; }
.wlist small { display: block; margin-top: 4px; font-size: 16px; color: rgba(255, 255, 255, .7); }
.wlist .wnote { margin: 8px 0 0 !important; font-size: 17px !important; line-height: 1.35 !important; }
.wlist h4 { margin: 14px 0 8px; }
.wmods { display: flex; flex-wrap: wrap; gap: 8px; }
.wmods i { padding: 5px 11px; font-style: normal; font-size: 15px; background: rgba(255, 255, 255, .1); border-left: 3px solid var(--green); }
.wchips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wchips div { padding: 10px 14px; background: rgba(255, 255, 255, .1); border-left: 3px solid var(--green); }
.wchips b { display: block; font-size: 20px; font-weight: 600; }
.wchips span { display: block; font-size: 16px; color: rgba(255, 255, 255, .8); }
.wpick { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 58px; margin-bottom: 4px; padding: 8px 18px; background: rgba(255, 255, 255, .1); text-align: left; }
.wpick b { display: block; font-size: 21px; font-weight: 400; }
.wpick small { display: block; font-size: 15px; color: rgba(255, 255, 255, .78); }
.wpick em { font-style: normal; font-size: 15px; color: rgba(255, 255, 255, .78); }
.wpick.on, .wpick:hover { background: var(--green); }
.wpick.on small, .wpick:hover small { color: #fff; }
.wbig { font-size: 52px !important; font-weight: 300; line-height: 1.1 !important; margin-bottom: 6px !important; }
.wbig small { display: block; font-size: 16px; color: rgba(255, 255, 255, .7); }
.wbig--mail { font-size: 38px !important; }
.wcols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.wcols .wrows dt { width: 150px; }
.wcols--val { grid-template-columns: 1.25fr 1fr; gap: 30px; }
.wcols--val .wrows dt { width: 140px; }
.wcols .wrows div { font-size: 17px; min-height: 34px; }
.wsmall { margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
/* Message Hamza: the fields, and the keyboard that types into them. */
.wfield { display: block; width: 100%; margin-bottom: 10px; padding: 9px 14px; background: rgba(255, 255, 255, .1); border: 2px solid transparent; text-align: left; }
.wfield.on { border-color: var(--green); background: rgba(255, 255, 255, .16); }
.wfield small { display: block; font-size: 14px; color: rgba(255, 255, 255, .7); }
.wfield span { display: block; min-height: 27px; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wfield--multi span { height: 84px; white-space: pre-wrap; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.wfield i { font-style: normal; color: rgba(255, 255, 255, .5); }
.wsend { display: flex; align-items: center; gap: 18px; margin-top: 4px; }
.wsend .wpick { flex: none; width: 260px; margin: 0; }
.wsend p { margin: 0 !important; font-size: 16px !important; }
.kb::before { content: ""; position: absolute; inset: -4000px; background: rgba(0, 0, 0, .62); }
.kb__panel { position: absolute; left: 240px; top: 92px; width: 800px; padding: 22px 26px 26px; background: linear-gradient(#f3f5f5, #dfe3e4); color: #2b2f31; box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.kb__label { font-size: 20px; line-height: 1.3; }
.kb__box { position: relative; margin-top: 8px; height: 48px; padding: 9px 12px; overflow: hidden auto; background: #fff; border: 1px solid #b9c1c4; font-size: 21px; line-height: 1.3; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-width: thin; }
.kb__box--multi { height: 112px; }
.kb__caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 1px; vertical-align: text-bottom; background: #2b2f31; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.kb__count { margin: 6px 0 12px; text-align: right; font-size: 13px; color: #6b7376; }
.kb__keys { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.kkey { height: 50px; display: grid; place-items: center; background: #fbfcfc; border: 1px solid #c3cacc; color: #2b2f31; font-size: 22px; line-height: 1; text-align: center; transition: transform .1s var(--sine-out); }
.kkey.on { background: var(--green); border-color: var(--green); color: #fff; transform: scale(1.06); box-shadow: 0 4px 12px rgba(0, 0, 0, .28); position: relative; z-index: 1; }
.kkey--wide { grid-column: span 2; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 17px; }
.kkey--wide small { padding: 1px 6px; font-size: 11px; font-weight: 600; border-radius: 9px; background: rgba(0, 0, 0, .1); }
.kkey.on small { background: rgba(255, 255, 255, .25); }
.kkey.lit:not(.on) { background: #d9eed2; border-color: #8cc47c; }
.kpill { display: inline-block; padding: 0 7px; margin-right: 2px; font-style: normal; font-size: 12px; font-weight: 600; line-height: 19px; border-radius: 10px; background: #e8eaeb; color: #2b2f31; vertical-align: 1px; }
.wstack { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.wstack > div { display: flex; align-items: center; gap: 14px; padding: 10px 12px; background: rgba(255, 255, 255, .08); }
.wstack i { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 4px; }
.wstack i svg { width: 28px; height: 28px; fill: #fff; }
.wstack b { display: block; font-size: 20px; font-weight: 400; }
.wstack small { display: block; font-size: 15px; color: rgba(255, 255, 255, .75); }
.stackrow { position: absolute; left: 0; right: 0; top: 30px; display: flex; justify-content: center; gap: 14px; }
.stackrow svg { width: 30px; height: 30px; fill: #fff; }
.wpair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.wpair figure { margin: 0; }
.wpair img { display: block; width: 100%; height: 230px; object-fit: cover; object-position: 50% 30%; background: #111; }
.wpair img[src*="minecraft"] { image-rendering: pixelated; object-position: 70% 50%; }
.wpair figcaption { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.wpair b { font-size: 24px; font-weight: 300; }
.wpair small { font-size: 16px; color: rgba(255, 255, 255, .7); }
.wposters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.wposters figure { margin: 0; min-width: 0; }
.wposters img, .wposters i { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: rgba(255, 255, 255, .1); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); outline: 1px solid rgba(255, 255, 255, .18); outline-offset: -1px; }
.wposters figcaption { margin-top: 10px; }
.wposters b { display: block; font-size: 17px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wposters small { display: block; font-size: 14px; color: rgba(255, 255, 255, .7); }
.wposters span { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.wposters em { font-style: normal; }
.wposters .mine { font-size: 15px; color: #9be27a; letter-spacing: 1px; }
.wposters .imdb { padding: 1px 6px; font-size: 13px; font-weight: 600; color: #111; background: #f5c518; border-radius: 3px; }
.wjourney { display: flex; align-items: flex-start; gap: 0; margin: 20px 0 6px; padding: 0; list-style: none; }
.wjourney li { flex: 1; position: relative; padding-top: 22px; border-top: 4px solid var(--green); }
.wjourney li::before { content: ""; position: absolute; left: 0; top: -12px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--green); }
.wjourney b { display: block; font-size: 24px; font-weight: 300; }
.wjourney small { display: block; font-size: 15px; color: rgba(255, 255, 255, .75); }
.wgames { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 34px; }
.wgames li { display: flex; justify-content: space-between; gap: 10px; min-height: 36px; align-items: center; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 18px; break-inside: avoid; }
.wgames li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wgames li img, .wgames li > i { width: 54px; height: 30px; flex: none; object-fit: cover; background: rgba(255, 255, 255, .1); }
.wgames li img + span, .wgames li > i + span { flex: 1; min-width: 0; }
.gico { display: grid; place-items: center; }
.gico svg { width: 18px; height: 18px; fill: #fff; }
.gico--valorant { background: #ff4655 !important; }
.wgames small { flex: none; font-size: 15px; color: rgba(255, 255, 255, .65); }
.wgames li.fav span { color: #ffd34d; }
.wgames--tight li { min-height: 31px; font-size: 17px; }
.wcols .wgames { columns: 1; }
.wstats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wstats div { padding: 9px 12px; background: rgba(255, 255, 255, .08); border-left: 3px solid #ff4655; }
.wstats b { display: block; font-size: 24px; font-weight: 300; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wstats small { display: block; font-size: 13px; color: rgba(255, 255, 255, .7); }
.wsmall { margin-top: 12px !important; font-size: 15px !important; line-height: 1.4 !important; }
.wrank small { display: block; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.wrank b { display: block; font-size: 54px; font-weight: 300; line-height: 1.1; }
.wrank span { display: block; margin-bottom: 14px; font-size: 20px; color: rgba(255, 255, 255, .85); }
.wfilms { margin: 0; padding: 0; list-style: none; }
.film { display: flex; align-items: center; gap: 16px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.film:first-child { border-top: 0; padding-top: 0; }
.film img, .film > i { width: 46px; height: 69px; flex: none; object-fit: cover; background: rgba(255, 255, 255, .1); }
.film > span { flex: 1; min-width: 0; }
.film b { display: block; font-size: 20px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.film small { display: block; font-size: 15px; color: rgba(255, 255, 255, .7); }
.film em { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-style: normal; }
.film .mine { font-size: 17px; color: #9be27a; letter-spacing: 1px; }
.film .imdb { padding: 1px 7px; font-size: 14px; font-weight: 600; color: #111; background: #f5c518; border-radius: 3px; }

/* System Settings and the Theme menu share DashX360's light menu style. */
.set__title { position: absolute; left: 138px; top: 62px; font-size: 32px; font-weight: 600; line-height: 1.33; }
.set__frame { position: absolute; left: 198px; top: 119px; width: 884px; height: 482px; display: grid; grid-template-columns: 442px 442px; }
.set__left { background: rgba(243, 245, 245, .933); position: relative; overflow: hidden; }
.set__right { background: rgba(95, 102, 104, .85); padding: 30px 40px 0 30px; }
.set__right h3 { margin: 0; font-size: 26px; font-weight: 300; line-height: 1.33; }
.set__right p { margin: 18px 0 0; font-size: 22px; line-height: 34px; color: rgba(255, 255, 255, .91); }
.mbtn { display: flex; align-items: center; width: 100%; height: 48px; padding: 0 14px 0 32px; font-size: 21px; color: #2e3336; background: rgba(247, 248, 248, .957); border-bottom: 1px solid rgba(0, 0, 0, .267); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbtn.on, .mbtn:hover { background: var(--green); color: #fff; }
.opt { margin: 0 30px; color: #333; }
.opt label { display: block; margin: 12px 0 4px; font-size: 15px; line-height: 1.33; }
.obtn { display: flex; align-items: center; height: 36px; margin: 8px 18px 0; padding: 0 16px; width: calc(100% - 36px); background: var(--green); color: #fff; font-size: 16px; font-weight: 600; border: 1px solid rgba(255, 255, 255, .53); border-radius: 2px; white-space: nowrap; }
.obtn.on, .obtn:hover { border-color: rgba(0, 0, 0, .4); box-shadow: 0 0 10px rgba(121, 213, 68, .6); }
.ochk { display: flex; align-items: center; gap: 10px; margin: 6px 30px 0; padding: 6px 0; font-size: 18px; color: #333; width: calc(100% - 60px); }
.ochk i { width: 18px; height: 18px; flex: none; border: 1px solid #707070; background: #fff; display: grid; place-items: center; }
.ochk.chk i::after { content: ""; width: 10px; height: 10px; background: #333; }
.ochk.on { color: var(--green); font-weight: 600; }
.ochk.on i { border: 2px solid var(--green); }
.oval { display: flex; align-items: center; justify-content: space-between; height: 42px; margin: 4px 30px 8px; padding: 0 12px; font-size: 18px; color: #333; background: #fff; border: 1px solid rgba(153, 153, 153, .4); width: calc(100% - 60px); }
.oval.on { border: 3px solid var(--green); padding: 0 10px; }
.oval small { font-size: 16px; color: #666; }
.oslider { display: flex; align-items: center; gap: 14px; height: 42px; margin: 6px 30px 0; width: calc(100% - 60px); font-size: 16px; color: #333; }
.oslider .track { position: relative; flex: 1; height: 4px; background: #c8c8c8; }
.oslider .track i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--green); }
.oslider .track b { position: absolute; top: -9px; width: 11px; height: 22px; margin-left: -5px; background: #333; border-radius: 2px; }
.oslider.on .track b { background: var(--green); }
.otext { margin: 14px 30px 0; font-size: 16px; line-height: 1.45; color: #333; white-space: normal; }
.otext a { color: var(--green); font-weight: 600; text-decoration: none; }
.set__scroll { position: absolute; inset: 0; overflow: hidden; }
.set__scroll > div { padding-bottom: 18px; transition: transform .2s var(--cubic-out); }

.themes__back { position: absolute; inset: -4000px; background: rgba(0, 0, 0, .533); }
.themes__panel { position: absolute; left: 182px; top: 120px; width: 420px; height: 430px; background: rgba(247, 247, 247, .965); border: 1px solid rgba(255, 255, 255, .4); overflow: hidden; }
.themes__head { height: 68px; padding-left: 24px; display: flex; align-items: center; background: #fdfdfd; color: #666; font-size: 25px; }
.tbtn { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 58px; padding: 0 24px; font-size: 24px; color: #2b2b2b; background: #f4f4f4; border-bottom: 1px solid #d5d5d5; }
.tbtn.on, .tbtn:hover { background: var(--green); color: #fff; }
.tbtn small { font-size: 16px; opacity: .8; }

/* ---------- Xbox Guide (GuideWindow) ---------- */
#guide { z-index: 100; background: rgba(0, 0, 0, .9); }
#guide .canvas { overflow: visible; }
/* Achievements opened from a tile: the screen alone, over a lighter dim. */
#guide.direct { background: rgba(0, 0, 0, .5); }
.gd--direct .gd__title, .gd--direct .gd__pic, .gd--direct .gd__clock, .gd--direct .gd__wrap { display: none; }
.gd { position: absolute; inset: 0; transform-origin: 50% 50%; }
.gd__title { position: absolute; left: 354px; top: 165px; font-size: 23px; font-weight: 300; color: #e8eaeb; line-height: 1.33; }
.gd__pic { position: absolute; left: 607px; top: 146px; width: 48px; height: 48px; object-fit: cover; }
.gd__clock { position: absolute; left: 790px; top: 166px; width: 150px; font-size: 21px; font-weight: 600; color: #e8eaeb; line-height: 1.33; white-space: pre; }
.gd__blade { position: absolute; left: 314px; top: 204px; width: 694px; height: 315px; display: grid; grid-template-columns: 48px 58px 490px 53px 45px; }
.gd__side { display: grid; place-items: center; overflow: hidden; cursor: pointer; }
.gd__side span { writing-mode: vertical-rl; white-space: nowrap; max-height: 300px; overflow: hidden; text-overflow: ellipsis; line-height: 1; }
.gd__s0 { background: #bbc6cc; border-right: 1px solid #9ba5aa; color: #4a555d; font-size: 20px; font-weight: 600; }
.gd__s1 { background: #e8eeee; border-right: 1px solid #bdc5c8; color: #3c4144; font-size: 20px; font-weight: 600; }
.gd__s3 { background: #47545d; border-left: 1px solid #3e4a52; color: #dde2e4; font-size: 21px; }
.gd__s4 { background: #bbc6cc; color: #4a555d; font-size: 21px; font-weight: 600; }
.gd__center { position: relative; background: #e5eaeb; overflow: hidden; }
.gd__list { position: absolute; inset: 0; }
.grow { position: relative; display: grid; grid-template-columns: 1fr 42px 32px; align-items: center; width: 100%; height: 42px; padding: 0 13px 0 18px; color: #333638; background: #e5eaeb; border-bottom: 1px solid #c0c8ca; font-size: 20px; font-weight: 600; line-height: 1; }
.grow > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grow .cnt { text-align: right; font-size: 21px; font-weight: 400; }
.grow svg { justify-self: end; width: 21px; height: 21px; fill: currentColor; }
.grow.sel { background: var(--green); color: #fff; }
.grow.nudge { animation: nudge .105s var(--cubic-out); }
@keyframes nudge { from { transform: translateX(5px); opacity: .96; } }
/* The Guide's buttons sit on the same bar as every other screen's, above the community overlays. */
.gd__foot { z-index: 30; }

/* Community overlays: Achievements, Friends */
.gx__dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .478); }
.gx { position: absolute; left: 210px; top: 50px; width: 860px; height: 606px; transform-origin: 50% 50%; }
.gx__head { position: relative; height: 42px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; font-size: 23px; color: #fff; }
.gx__head img { position: absolute; left: 412px; top: -8px; width: 36px; height: 36px; object-fit: cover; background: #d7dddf; border: 1px solid rgba(0, 0, 0, .4); }
.gx__body { position: relative; height: 526px; background: #e8ecee; border: 1px solid #98a2a8; color: #384047; overflow: hidden; }
.ach-game { display: grid; grid-template-columns: 52px 1fr; align-items: center; width: 100%; height: 58px; padding: 0 22px 0 14px; background: #f1f6f8; border-bottom: 1px solid #b9c4cb; color: #384047; }
.ach-game.sel { background: var(--green); border-color: var(--green); color: #fff; }
.ach-game img { width: 42px; height: 42px; object-fit: cover; border: 1px solid rgba(255, 255, 255, .8); background: #9aa1a5; }
.ach-game b { display: block; font-size: 22px; font-weight: 400; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ach-game span { display: block; font-size: 15px; opacity: .92; margin-top: 2px; }
.ach__top { height: 160px; padding: 18px 22px 16px 18px; display: grid; grid-template-columns: 1fr 190px; background: linear-gradient(#a8b2b5, #6e787c); border-bottom: 1px solid #929a9e; color: #fff; }
.ach__top b { display: block; font-size: 24px; font-weight: 600; line-height: 1.33; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ach__top .a-t { margin-top: 10px; font-size: 25px; color: rgba(255, 255, 255, .95); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ach__top .a-d { margin-top: 8px; font-size: 21px; color: rgba(255, 255, 255, .9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ach__top .a-r { text-align: right; font-size: 24px; }
.ach__top .a-r span { display: block; margin-top: 8px; font-size: 22px; color: rgba(255, 255, 255, .91); }
.ach__grid { position: absolute; left: 0; right: 0; top: 161px; bottom: 36px; overflow: hidden; }
.ach__grid > div { display: flex; flex-wrap: wrap; padding: 18px 22px 0 62px; transition: transform .2s var(--cubic-out); }
.ach { width: 97px; height: 104px; display: grid; place-items: center; color: #8b9295; }
.ach i { width: 78px; height: 78px; display: grid; place-items: center; }
.ach.sel i { background: var(--green); color: #fff; }
.ach svg { width: 42px; height: 42px; fill: currentColor; }
.ach.locked svg { width: 46px; height: 48px; }
.ach__foot { position: absolute; left: 18px; right: 18px; bottom: 0; height: 36px; display: flex; align-items: center; justify-content: space-between; font-size: 17px; color: #1f2427; }
.ach__foot span { font-size: 13px; color: #555e64; }

/* Small screens: the canvas still scales, a hint suggests turning the phone. */
.rotate { position: fixed; left: 0; right: 0; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 95; text-align: center; font-size: 14px; color: rgba(255, 255, 255, .75); pointer-events: none; display: none; }
@media (orientation: portrait) and (max-width: 820px) { .rotate { display: block; } }

@media (prefers-reduced-motion: reduce) {
  .t, .t.on, .tab, .tab.sel { transition-duration: 0s !important; }
  #loading .ring { animation-duration: 2s; }
}
