.home-hero {
  background: radial-gradient(ellipse at 74% 0, #263c47 0%, #151f29 53%, var(--bg) 84%);
}
.home-hero:has(#preview-tab-gaming[aria-selected="true"]) {
  background: radial-gradient(ellipse at 74% 0, #322f49 0%, #1a202c 53%, var(--bg) 84%);
}
.home-hero .hero-grid { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(24px, 4vw, 58px); }
.home-hero h1 { max-width: 12ch; text-wrap: balance; overflow-wrap: anywhere; }
.home-desktop-viewer { min-width: 0; container-type: inline-size; }
.desktop-preview-tabs { display: flex; gap: 6px; margin-block-end: 10px; }
.desktop-preview-tabs[hidden] { display: none; }
.desktop-preview-tabs button {
  min-height: 44px;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #17232f;
  color: var(--text);
  font: inherit;
  font-weight: 650;
  font-size: .9rem;
  cursor: pointer;
}
.desktop-preview-tabs button:hover { background: #2a3848; }
.desktop-preview-tabs button[aria-selected="true"] {
  border-color: var(--edition-accent);
  background: #253444;
  box-shadow: inset 0 -2px var(--edition-accent);
}
#preview-tab-next { --edition-accent: var(--accent); }
#preview-tab-gaming { --edition-accent: #ccb3ff; }
.edition-swatch { flex: none; border-radius: 3px; width: .65em; height: .65em; background: var(--edition-accent); }
.demo-frame { --demo-accent: #acf1d9; border: 1px solid #9abeb560; background: #101a25; overflow: clip; border-radius: 16px; box-shadow: 0 24px 72px #050913a8; }
.demo-frame[data-edition="gaming"] { --demo-accent: #d8c6ff; }
.demo-screen { position: relative; min-block-size: 356px; aspect-ratio: 1.67; isolation: isolate; overflow: clip; background: #182c38; }
.demo-wallpaper { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; z-index: -2; }
.demo-screen::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0b172549, #1016250b 36%), linear-gradient(0deg, #080e2b55, transparent 34%); }
.demo-workspace, .demo-start { position: absolute; inset: 0; }
.demo-start { display: grid; place-items: center; background: radial-gradient(ellipse at 50% 43%, #15243758, #08111dbf 76%); }
.demo-frame[data-boot="off"] .demo-wallpaper { filter: blur(7px) brightness(.82); transform: scale(1.04); }
.demo-start-prompt { display: grid; justify-items: center; gap: 12px; color: #fff; text-align: center; }
.demo-start-prompt .demo-mark { width: 40px; height: 43px; }
.demo-start-edition { font-size: clamp(1.35rem, 3.5cqw, 2.25rem); line-height: 1.2; font-weight: 720; text-shadow: 0 2px 16px #050c1b; }
.demo-power { min-block-size: 46px; padding: 8px 21px; border: 1px solid var(--demo-accent); border-radius: 9px; background: var(--demo-accent); color: #101e2a; font: inherit; font-weight: 720; cursor: pointer; }
.demo-power:hover { box-shadow: 0 0 22px #c8e4f25e; }
.demo-sound { display: flex; align-items: center; gap: 7px; min-block-size: 36px; padding: 4px 11px; border: 1px solid #e1efff64; border-radius: 8px; background: #0b182bc9; color: #fff; font: inherit; font-size: .74rem; cursor: pointer; }
.demo-sound-symbol { width: 16px; height: 16px; background: currentColor; clip-path: polygon(0 34%,25% 34%,58% 8%,58% 92%,25% 66%,0 66%,0 34%,70% 34%,82% 22%,100% 50%,82% 78%,70% 66%,82% 50%,70% 34%); }
.demo-sound[aria-pressed="false"] .demo-sound-symbol { clip-path: polygon(0 34%,25% 34%,58% 8%,58% 92%,25% 66%,0 66%); opacity: .55; }
.demo-boot-logo { display: none; filter: drop-shadow(0 0 26px var(--demo-accent)); }
.demo-boot-logo .demo-mark { display: block; width: clamp(54px, 14cqw, 114px); height: clamp(57px, 15cqw, 122px); }
.demo-frame[data-boot="starting"] .demo-start { background: #091321e8; }
.demo-frame[data-boot="starting"] .demo-start-prompt { display: none; }
.demo-frame[data-boot="starting"] .demo-boot-logo { display: block; animation: demo-logo-boot 1.05s ease both; }
@keyframes demo-logo-boot {
  0% { opacity: 0; transform: scale(.8); }
  46%, 68% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .demo-frame[data-boot="starting"] .demo-boot-logo { animation: none; }
}
.demo-frame [hidden] { display: none; }
.demo-topbar { display: flex; justify-content: space-between; align-items: center; padding-inline: 14px; min-block-size: 30px; border-block-end: 1px solid #d9eeff2c; background: #091320e8; color: #f4f7ff; font-size: .74rem; }
.demo-system { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.demo-mark { width: 12px; height: 13px; background: var(--demo-accent); clip-path: polygon(50% 0,100% 100%,72% 100%,50% 49%,28% 100%,0 100%); }
.demo-clock { font-variant-numeric: tabular-nums; }
.demo-shortcuts { position: absolute; inset: 43px auto auto 12px; display: grid; gap: 6px; }
.demo-icon-button { display: grid; justify-items: center; align-content: center; gap: 4px; min-inline-size: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; text-decoration: none; }
.demo-icon-button:is(:hover, :focus-visible, [aria-pressed="true"]) { background: #31587778; border-color: #b8d8eb6b; }
.demo-shortcuts .demo-icon-button { inline-size: 94px; min-block-size: 62px; padding: 3px 2px; }
.demo-icon-button img { filter: drop-shadow(0 2px 2px #08101f9c); }
.demo-shortcuts img { width: 37px; height: 37px; }
.demo-shortcuts span { max-width: 100%; color: #fff; font-size: .74rem; line-height: 1.22; text-align: center; white-space: nowrap; text-shadow: 0 1px 2px #030710, 0 0 5px #030710, 0 0 9px #030710; }
.demo-dock { position: absolute; inset-inline-start: 50%; inset-block-end: 10px; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px 6px; border: 1px solid #b3cded59; border-radius: 13px; background: #101d2ce8; box-shadow: 0 5px 22px #0507167d; }
.demo-dock:empty { display: none; }
.demo-dock .demo-icon-button { position: relative; min-block-size: 42px; min-inline-size: 42px; padding: 5px; }
.demo-dock img { width: 30px; height: 30px; }
.demo-dock button[aria-pressed="true"]::after { content: ""; position: absolute; inset: auto calc(50% - 2px) 1px; block-size: 3px; border-radius: 4px; background: var(--demo-accent); }
.demo-window { position: absolute; inset: 47px max(15px, 9%) auto max(117px, 19%); max-block-size: calc(100% - 109px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #b2cbd15c; border-radius: 11px; background: #122031fa; color: #f3f8ff; box-shadow: 0 18px 48px #060b16aa; }
.demo-titlebar { display: flex; align-items: center; gap: 8px; flex: none; padding: 4px 6px 4px 11px; background: #243449; border-block-end: 1px solid #b0cdde2c; }
.demo-titlebar h2 { flex: 1; margin: 0; color: inherit; font-size: .84rem; line-height: 1.4; font-weight: 700; letter-spacing: 0; }
.demo-close, .demo-arrow { border: 1px solid #bed6e541; background: #131e2a; color: #f2f6ff; border-radius: 7px; cursor: pointer; font: 1.3rem/1 system-ui,sans-serif; display: grid; place-items: center; }
.demo-close:hover, .demo-arrow:hover { background: #30425b; }
.demo-close { min-block-size: 36px; min-inline-size: 36px; }
.demo-window-body { min-block-size: 0; overflow: auto; padding: 12px clamp(9px,2cqw,18px) 14px; font-size: .82rem; }
.demo-window-body p { margin: 0 0 10px; color: #dce8ef; }
.demo-window-body h3 { margin: 0 0 8px; font-size: .95rem; line-height: 1.3; letter-spacing: 0; }
.demo-app-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-block-end: 9px; font-size: .77rem; }
.demo-action { min-block-size: 36px; padding: 5px 9px; border: 1px solid #8ea9c46b; border-radius: 7px; background: #22364d; color: #f3f8ff; font: inherit; font-weight: 600; cursor: pointer; }
.demo-action:hover, .demo-file-card:hover { border-color: var(--demo-accent); background: #33485f; }
.demo-app-status { display: flex; align-items: baseline; gap: 5px; color: #d1e3ef; font-size: .75rem; }
.demo-app-status :is(output, span[translate="no"]) { color: var(--demo-accent); font-variant-numeric: tabular-nums; }
.demo-folders { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin: 0; padding: 0; list-style: none; }
.demo-file-card { display: grid; justify-items: center; align-content: start; min-width: 0; width: 100%; min-height: 100%; gap: 5px; padding: 8px 3px; border: 1px solid transparent; border-radius: 8px; background: #25354a; color: #f3f8ff; font: inherit; font-size: clamp(.68rem,2cqw,.8rem); line-height: 1.26; text-align: center; text-decoration: none; overflow-wrap: anywhere; cursor: pointer; }
.demo-folders img { width: clamp(24px,7cqw,42px); height: auto; }
.demo-browser-address { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 7px 9px; border-radius: 6px; background: #0b1725; color: #d6e5f3; }
.demo-browser-page { padding: 10px; border-radius: 8px; background: #182c43; }
.demo-browser-page .demo-app-bar { margin-block-end: 0; }
.demo-writer { display: block; box-sizing: border-box; width: 100%; height: clamp(70px, 21cqw, 166px); margin-block-end: 7px; padding: 10px; resize: none; border: 1px solid #7e98b2; border-radius: 6px; background: #f0f5f8; color: #17263b; font: .82rem/1.48 system-ui,sans-serif; }
.demo-player { display: block; width: 100%; max-height: clamp(120px, 28cqw, 218px); background: #09121f; border-radius: 6px; }
.demo-player.demo-audio { height: 53px; }
.demo-player + p { margin-top: 5px; color: #ffcfbc; }
.demo-game-card { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px; border-radius: 8px; background: #25354a; }
.demo-game-card :is(img, button) { flex: none; }
.demo-game-card > div { flex: 1; min-inline-size: 97px; }
.demo-game-card p { margin: 1px 0 0; }
.demo-kart-track { display: grid; grid-template-columns: repeat(3, 1fr); min-height: 49px; margin-bottom: 8px; overflow: hidden; border: 1px solid #a9c9e353; border-radius: 8px; background: #091424; }
.demo-kart-track > div { display: grid; place-items: center; border-inline-end: 1px dashed #b4cad575; }
.demo-kart-track > div:last-child { border: 0; }
.demo-kart-track .is-target { background: #405775; box-shadow: inset 0 -3px var(--demo-accent); }
.demo-kart-controls { margin: 0; }
.demo-kart-controls .demo-app-status { margin-inline-start: auto; }
.demo-setting { display: flex; justify-content: space-between; align-items: center; min-block-size: 40px; padding-inline: 9px; background: #1c2d42; border-radius: 7px; cursor: pointer; }
.demo-setting input { accent-color: var(--demo-accent); width: 17px; height: 17px; }
.demo-app-link { display: inline-flex; align-items: center; min-height: 38px; padding: 4px 9px; border: 1px solid #637f94; border-radius: 7px; background: #22364d; color: #ebf5ff; text-decoration: none; }
.demo-app-link:hover { border-color: var(--demo-accent); background: #334b61; }
.demo-app-link + .demo-app-link { margin-inline-start: 12px; }
.demo-toolbar { display: flex; gap: 4px 12px; min-block-size: 51px; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 7px 11px; border-block-start: 1px solid #abc5d63b; color: #c1d0de; font-size: .78rem; }
.demo-wallpaper-controls { display: flex; align-items: center; gap: 6px; }
.demo-arrow, .demo-open-wallpapers { min-inline-size: 36px; min-block-size: 36px; }
.demo-open-wallpapers { background: #233849; border: 1px solid #688697; border-radius: 8px; color: #e7f5f4; font: inherit; font-weight: 700; padding-inline: 10px; cursor: pointer; }
.demo-open-wallpapers:hover { background: #344f61; border-color: var(--demo-accent); }
.demo-wall-dialog { width: min(760px,calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: clamp(12px,3vw,24px); border: 1px solid #a5c3d961; border-radius: 14px; background: #142134; color: #f3f8ff; }
.demo-wall-dialog::backdrop { background: #06101bf0; }
.demo-dialog-header { display: flex; justify-content: space-between; align-items: center; margin-block-end: 12px; }
.demo-dialog-header h2 { font-size: clamp(1.4rem,3.5vw,1.9rem); margin: 0; letter-spacing: 0; }
.demo-wall-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(127px,45%),1fr)); gap: 9px; }
.demo-wall-gallery button { background: #1b2b40; padding: 3px; text-align: start; border: 1px solid #abbcd338; border-radius: 7px; cursor: pointer; min-inline-size: 0; font-size: .74rem; line-height: 1.35; }
.demo-wall-gallery button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.demo-wall-gallery img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; }
.demo-wall-gallery span { display: block; padding: 4px 2px 2px; }
.demo-wall-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-block-start: 15px; }
.demo-wall-extra p { flex-basis: 100%; margin: 0; color: #d7e2ef; font-size: .78rem; }
.demo-wall-extra .demo-file-status { color: #ffcfbc; }
.demo-announcement { position: absolute; clip-path: inset(50%); margin: 0; width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
@container (max-width: 510px) {
  .desktop-preview-tabs button { gap: 6px; font-size: clamp(.72rem, 3.4cqw, .9rem); white-space: nowrap; }
  .demo-screen { min-block-size: 335px; aspect-ratio: auto; }
  .demo-shortcuts { inset: 39px 6px auto; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 2px; }
  .demo-shortcuts .demo-icon-button { inline-size: auto; min-block-size: 55px; padding-inline: 1px; }
  .demo-shortcuts img { inline-size: 30px; block-size: 30px; }
  .demo-shortcuts span { font-size: clamp(.58rem, 2.6cqw, .71rem); }
  .demo-window { inset: 100px 7px auto; max-block-size: calc(100% - 161px); }
  .demo-dock { gap: 1px; padding-inline: 3px; }
}
.home-section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; margin-block-end: 18px; }
.home-section-heading h2 { margin: 0; }
.home-hero-note { margin: 16px 0 9px; color: #cbdbe6; font-size: .88rem; }
.home-hero-copy .actions { gap: 9px; }
.home-hero-copy [data-start-demo][hidden] { display: none; }
.home-section-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.home-section-actions .text-link { margin: 0; }
.home-edition-picture {
  margin: 0 0 20px; width: 100%; overflow: hidden; aspect-ratio: 1.78; background: #0a141c;
  border: 1px solid #a7ddc16e; border-radius: 11px; box-shadow: 0 14px 35px #090e1470;
}
.home-edition-picture img { inline-size:100%; block-size:100%; object-fit: cover; object-position: center 100%; display: block; }
.home-editions .gaming .home-edition-picture { border-color:#cdb0fa78; }
.home-page .home-nexus-feature {
  grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap: 22px clamp(22px,4vw,58px);
  background: radial-gradient(ellipse at 95% 0,#263f65,#182941 48%,#152231 75%);
  border:1px solid #465e7c; border-radius: 17px;
}
.home-nexus-copy .home-nexus-mark { width: 54px; height: 54px; margin-bottom: 10px; }
.home-nexus-copy .home-section-actions { margin-block-start:16px; }
.home-nexus-feature .home-nexus-picture { min-width: 0; }
.home-nexus-picture img { display:block; width:100%; height:auto; border-radius:10px; border:1px solid #7294c184; box-shadow:0 15px 35px #060b15a8; }
.home-editions .edition-card {
  display: flex;
  flex-direction: column;
  padding: clamp(21px, 3vw, 38px);
  background: linear-gradient(135deg, #203332, var(--panel) 58%);
}
.home-editions .edition-card.gaming { background: linear-gradient(135deg, #302942, var(--panel) 58%); }
.home-edition-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; margin-top: auto; }
.home-edition-actions .text-link { margin: 0; padding-block: 8px; }
.home-live-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.home-live-grid h2 { margin-block: 0 10px; }
.home-live-actions { flex: 0 1 auto; min-width: min(230px, 100%); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
@media (max-width: 760px) {
  .home-hero .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home-hero h1 { max-width: 15ch; }
  .home-live-grid { align-items: flex-start; flex-direction: column; }
  .home-page .home-nexus-feature { grid-template-columns: minmax(0,1fr); }
}
