:root {
  --taskbar-height: 82px;
  --glass: #1b1922b8;
  --glass-line: #ffffff24;
  --text: #f3efeb;
  --soft: #c3bac6;
  --accent: #e6c6b0;
  color-scheme: dark;
}

.wallpaper {
  background-color: #302735;
  background-position: center;
  animation: none;
  transition: filter .4s;
}

.wallpaper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s linear;
}

.wallpaper video.visible {
  opacity: 1;
  z-index: 2;
}

.wallpaper video.fading-out {
  opacity: 1;
  z-index: 1;
}

.wallpaper video:not(.visible) {
  transition-property: none;
}

.wallpaper-shade {
  background: linear-gradient(90deg, #12101c55, transparent 30%, #12101c18),
    linear-gradient(0deg, #15121c59, transparent 30%, #17131b26);
}

.desktop-apps {
  inset: 0;
  width: 100%;
  padding: 0;
  display: block;
  pointer-events: none;
}

.desktop-app {
  position: absolute;
  pointer-events: auto;
  touch-action: none;
  border-radius: 9px;
  gap: 7px;
}

.desktop-app .app-art {
  width: 40px;
  height: 40px;
  transition: transform .2s ease;
}

.desktop-app:hover .app-art {
  transform: translateY(-3px);
}

.desktop-app:hover {
  background: #ffffff12;
  border-color: #ffffff24;
}

.desktop-app.selected {
  background: #ffffff1a;
  border-color: #ffffff40;
}

.app-art.art-settings svg {
  color: #f5f5f7;
}

.desktop-app > span:last-child {
  color: #fff;
  font-size: 11px;
}

#desktop-widgets {
  pointer-events: none;
}

.desktop-widget {
  position: absolute;
  width: 270px;
  min-height: 148px;
  padding: 20px 21px 15px;
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  background: linear-gradient(120deg, #231e2bdb, #28202dd1);
  backdrop-filter: blur(26px);
  box-shadow: 0 8px 30px #120e2026, inset 0 1px #ffffff0d;
  color: var(--text);
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  cursor: grab;
  animation: widget-in .5s ease both;
}

.desktop-widget.repositioning,
.desktop-app.repositioning {
  cursor: grabbing;
  z-index: 3;
  animation: none;
  box-shadow: 0 15px 40px #14101d55;
}

.widget-eyebrow,
.section-kicker {
  display: block;
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #d3c4ce;
  font-weight: 600;
}

#widget-time {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 10px 0 4px;
  font-family: "Segoe UI", sans-serif;
  font-size: 56px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
  color: #fffaf6;
  text-shadow: 0 2px 6px #0003;
}

.clock-period {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .3px;
  color: #d7cbd8;
}

#widget-date {
  display: block;
  font-size: 12px;
  color: #f0e2ee;
}

.widget-hint {
  display: block;
  margin-top: 13px;
  color: #b6aab9;
  font-size: 9px;
}

#weather-widget {
  animation-delay: .08s;
}

[data-weather] {
  display: flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  text-align: left;
  color: inherit;
}

#weather-widget [data-weather] {
  width: 100%;
  padding: 10px 0 0;
}

.weather-art {
  display: flex;
  flex-shrink: 0;
  width: 47px;
  height: 47px;
  filter: drop-shadow(0 3px 8px #bbb8da30);
}

.weather-art svg {
  width: 100%;
  height: 100%;
}

.window-title .art-settings svg {
  color: #decddd;
}

.dock-app .art-settings svg {
  color: #e4d7e5;
}

.weather-copy {
  min-width: 0;
}

.weather-copy strong,
.weather-copy small {
  display: block;
}

.weather-copy strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.weather-copy small {
  margin-top: 3px;
  font-size: 9px;
  color: var(--soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taskbar {
  inset: auto auto 14px 50%;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 32px));
  max-width: calc(100% - 28px);
  height: 58px;
  padding: 6px 12px;
  display: flex;
  gap: 14px;
  border: 1px solid #ffffff29;
  border-radius: 21px;
  background: #ffffff0a;
  color: #f5f5f7;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px #0002, inset 0 1px #ffffff15;
  animation: dock-arrive .45s cubic-bezier(.2,.8,.2,1) both;
}

.taskbar-left {
  display: none;
}

.taskbar-center {
  flex: 1;
  display: grid;
  grid-template-columns: 38px 148px minmax(0, 1fr);
  gap: 10px;
}

.taskbar .dock-launcher {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 13px;
  background: transparent;
  border: 1px solid #ffffff12;
}

.dock-launcher > img {
  width: 27px;
  height: 27px;
  object-fit: cover;
  border-radius: 50%;
  filter: grayscale(1);
}

.taskbar .dock-launcher[aria-expanded=true] {
  background: #ffffff18;
  border-color: #ffffff30;
}

.taskbar-search {
  width: 148px;
  height: 36px;
  padding: 0 10px;
  margin: 0;
  justify-content: center;
  border: 1px solid #ffffff0e;
  border-radius: 12px;
  background: #ffffff08;
  color: #f5f5f7;
  box-shadow: none;
  transition: background .2s, border-color .2s;
}

.taskbar-search > span:first-child {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  font-size: 11px;
}

.taskbar-search > span > span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.taskbar-search svg,
.taskbar-search kbd {
  flex-shrink: 0;
}

.taskbar-search kbd {
  margin-left: auto;
  padding: 2px 4px;
  border: 1px solid #ffffff17;
  border-radius: 3px;
  color: #e1e1e7;
  font: inherit;
  font-size: 9px;
  white-space: nowrap;
}

.taskbar-search-text,
#taskbar-clock,
.tray-connection {
  display: none;
}

#dock {
  width: max-content;
  max-width: 100%;
  height: 44px;
  gap: 4px;
  padding: 3px;
  margin-inline: auto;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  align-items: center;
}

.dock-app {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 36px;
  min-width: 84px;
  padding: 0 11px;
  gap: 7px;
  border-radius: 11px;
  position: relative;
  color: #ededf2;
  border: 1px solid transparent;
  transition: color .22s, background .22s, border-color .22s, box-shadow .22s;
}

.dock-label {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.dock-app.running {
  background: transparent;
}

.dock-app .app-art,
.dock-app .app-art.full {
  width: 21px;
  height: 21px;
  background: transparent;
  border-radius: 0;
  flex-shrink: 0;
  transition: transform .3s cubic-bezier(.2,1.5,.4,1), background .22s;
}

.dock-app .app-art img,
.dock-app .app-art.full img {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.dock-app .app-art.dock-mask {
  background: currentColor;
  mask: var(--dock-image) center / contain no-repeat;
}

.dock-app .dock-mask img {
  visibility: hidden;
}

.dock-glyph svg {
  display: block;
  width: 100%;
  height: 100%;
}

.dock-app:hover,
.dock-launcher:hover,
.taskbar-search:hover {
  background: #ffffff0b;
  transform: none;
  color: #f4f4f6;
}

.dock-app:hover .app-art {
  transform: translateY(-3px) scale(1.09);
}

.dock-app:active .app-art {
  transform: translateY(0) scale(.86);
}

.dock-app.active {
  background: #ffffff1a;
  border-color: #ffffff40;
  box-shadow: inset 0 1px #ffffff12;
  color: #fff;
}

.dock-app.dock-dragging {
  opacity: .35;
  outline: 1px dashed #d1d1d8;
}

.dock-app[draggable=true] {
  cursor: grab;
}

.dock-app.running:before {
  height: 2px;
  width: 4px;
  left: calc(50% - 2px);
  bottom: 3px;
  background: #ffffff99;
  transition: width .25s, left .25s, background .25s;
}

.dock-app.active:before {
  width: 10px;
  left: calc(50% - 5px);
  background: #fff;
}

.taskbar-tray {
  gap: 3px;
  padding-left: 0;
  border-left: 0;
}

#dock-weather {
  max-width: 172px;
  min-width: 138px;
  height: 38px;
  padding: 0 12px 0 8px;
  border-right: 1px solid #ffffff12;
  border-radius: 0;
  color: #f5f5f7;
}

#dock-weather .weather-art {
  width: 27px;
  height: 27px;
  filter: grayscale(1);
}

#dock-weather .weather-copy strong {
  font-size: 11px;
  white-space: nowrap;
}

#dock-weather .weather-copy small {
  max-width: 115px;
  font-size: 9px;
  color: #e1e1e7;
}

.taskbar .tray-button {
  display: grid;
  width: 34px;
  height: 36px;
  border-radius: 11px;
  color: #f5f5f7;
}

.taskbar .tray-button .dock-glyph {
  width: 17px;
  height: 17px;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.taskbar .show-desktop {
  display: grid;
  place-items: center;
  height: 36px;
  width: 30px;
  border: 0;
  border-radius: 11px;
  margin-left: 0;
  color: #f5f5f7;
  background: transparent;
}

.taskbar .show-desktop svg {
  display: block;
  width: 16px;
  height: 16px;
}

.taskbar .tray-button:hover,
.taskbar .show-desktop:hover {
  background: #ffffff0b;
  color: #f4f4f6;
}

.taskbar button:focus-visible {
  outline-color: #fff;
}

.taskbar .dock-label,
.taskbar .weather-copy,
.taskbar-search {
  text-shadow: 0 1px 5px #0009;
}

.launcher {
  color: var(--text);
  border: 1px solid var(--glass-line);
  background: #24202cde;
  backdrop-filter: blur(30px);
}

.launcher:not(.hidden) {
  animation: surface-arrive .2s ease-out both;
}

.taskbar .dock-launcher > img {
  transition: transform .3s cubic-bezier(.2,1.5,.4,1);
}

.taskbar .dock-launcher:hover > img {
  transform: rotate(-6deg) scale(1.08);
}

.taskbar .tray-button svg,
.browser-toolbar .icon-button svg,
.settings-nav button svg {
  transition: transform .25s cubic-bezier(.2,1.4,.4,1);
}

.taskbar .tray-button:hover svg {
  transform: rotate(30deg);
}

.browser-toolbar .icon-button:hover:not(:disabled) svg,
.settings-nav button:hover svg {
  transform: translateY(-1px) scale(1.08);
}

.browser-toolbar [data-nav=reload]:active svg {
  transform: rotate(100deg);
}

.browser-tab {
  transition: background .2s, color .2s, border-color .2s;
}

.weather-art {
  animation: weather-float 5s ease-in-out infinite;
}

.launcher .search-field {
  background: #ffffff09;
  border-color: #ffffff20;
  color: var(--soft);
}

.launcher input {
  color: var(--text);
}

.launcher .eyebrow {
  color: #dddde3;
}

.launcher .icon-button {
  background: transparent;
  color: #f5f5f7;
}

.launcher .icon-button:hover {
  background: #ffffff0d;
}

.launcher .search-field kbd {
  background: #ffffff0c;
  border-color: #ffffff20;
  color: #dddde3;
}

.launcher-app {
  border: 1px solid transparent;
  border-radius: 12px;
  color: #f5f5f7;
}

.launcher-app:hover {
  background: #ffffff0d;
  border-color: #ffffff20;
}

.launcher-footer,
.pinned-heading {
  color: var(--soft);
  border-color: #ffffff17;
}

.launcher-app .app-art {
  background: transparent;
  box-shadow: none;
}

.launcher-app .art-ai img {
  filter: invert(1);
}

.os-window,
.browser-window {
  background: var(--glass);
  color: var(--text);
  border: 1px solid #ffffff2b;
  border-radius: 13px;
  backdrop-filter: blur(26px) saturate(.85);
  box-shadow: 0 22px 80px #100d1859;
}

.window-titlebar,
.browser-window .window-titlebar {
  background: #1d192358;
  color: #f0e9f0;
  border-bottom: 1px solid #ffffff14;
  height: 42px;
  min-height: 42px;
}

.browser-window {
  background: #1d17252e;
  backdrop-filter: blur(7px) saturate(.9);
}

.window-title .app-art {
  background: transparent;
}

.window-controls button,
.browser-window .window-controls button {
  color: #d0c7d2;
}

.window-controls button:hover,
.browser-window .window-controls button:hover {
  background: #ffffff15;
}

.window-controls [data-action=close]:hover {
  background: #b65b69;
}

.browser-tab {
  color: #c1b6c4;
}

.browser-tab:has([aria-selected=true]) {
  background: #ffffff0c;
  border-color: #ffffff20;
  color: #f7eff5;
}

.browser-tabs .new-tab {
  color: #dccfde;
}

.browser-toolbar {
  background: #201b2538;
  border-color: #ffffff14;
}

.browser-toolbar .icon-button,
.browser-toolbar .address-form svg {
  color: #e0d6e2;
}

.browser-toolbar .icon-button {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.browser-toolbar .icon-button:disabled {
  opacity: .38;
}

.browser-toolbar .icon-button:hover {
  background: #ffffff12;
  color: #fff3fa;
}

.browser-toolbar .address-form {
  background: #ffffff08;
  border-color: #ffffff1c;
  border-radius: 9px;
  box-shadow: none;
}

.browser-toolbar .address-form:focus-within {
  border-color: #d7beca80;
  box-shadow: 0 0 0 2px #cdb3c010;
}

.browser-toolbar .address-form input {
  color: #f5edf3;
}

.address-form input::placeholder {
  color: #c1b2c2;
}

.browser-home,
.browser-stage,
.browser-panel,
.browser-shell {
  background: transparent;
}

.browser-home h2 {
  color: #f6e8ed;
  text-shadow: 0 3px 20px #21112550;
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: 7px;
}

.browser-home .home-search {
  background: #e7d4e314;
  border-color: #ffffff33;
  box-shadow: 0 5px 25px #130b1b15;
}

.browser-home .home-search:focus-within {
  background: #e7d4e323;
  border-color: #f2dce791;
}

.browser-home .home-search input,
.home-search-submit,
.home-search > span,
.browser-shortcuts button {
  color: #f5eaf2;
}

.home-search input::placeholder {
  color: #d8c9d8;
}

.browser-shortcuts button:hover {
  background: #ffffff13;
}

.browser-status {
  background: #d8c0aa;
}

.browser-window .browser-notice {
  background: #211b2a80;
  border-color: #ffffff13;
  color: #dbcfdc;
}

.browser-window .browser-notice button {
  color: #ecd3b8;
}

.browser-loading,
.browser-error {
  background: #221d2ce8;
  color: var(--text);
}

.browser-loading p,
.browser-error p {
  color: var(--soft);
}

.primary-button,
.secondary-button {
  min-height: 34px;
  border-radius: 6px;
  padding: 7px 15px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1px;
}

.primary-button {
  background: linear-gradient(#f7e9dd, #dfc5b2);
  color: #30252b;
  border-color: #ffecdf;
  box-shadow: inset 0 1px #fffc, 0 1px 3px #0005;
}

.primary-button:hover {
  background: #f2dac8;
}

.secondary-button {
  background: linear-gradient(#625668, #493e51);
  border-color: #ffffff33;
  color: #fff5fd;
  box-shadow: inset 0 1px #ffffff24, 0 1px 3px #0004;
}

.secondary-button:hover {
  background: #66576a;
  border-color: #ffffff4d;
}

.settings-layout {
  display: flex;
  height: 100%;
  min-height: 0;
}

.settings-window {
  background: #211b2bea;
  backdrop-filter: blur(20px);
}

.settings-nav {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 195px;
  padding: 25px 13px 20px;
  background: #18131ec9;
  border-right: 1px solid #ffffff12;
}

.settings-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  font-weight: 600;
  font-size: 13px;
}

.settings-identity img {
  width: 41px;
  height: 41px;
  border-radius: 50%;
}

.settings-identity small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 400;
  color: var(--soft);
}

.settings-nav button {
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
  min-height: 45px;
  padding: 9px 12px;
  margin-bottom: 5px;
  border-radius: 7px;
  background: transparent;
  color: #d1c5d5;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
}

.settings-nav button.active {
  background: #dbc3d322;
  color: #fff3f6;
}

.settings-nav button.active::before {
  content: "";
  position: absolute;
  left: 0;
  width: 3px;
  height: 20px;
  background: #eed5c4;
  border-radius: 3px;
}

.settings-nav button:hover:not(.active) {
  background: #ffffff09;
  color: #fff3f9;
}

.settings-nav svg {
  box-sizing: content-box;
  width: 17px;
  height: 17px;
  padding: 5px;
  border-radius: 6px;
  background: #b6a2c01c;
  box-shadow: inset 0 0 0 1px #ffffff0a;
}

.settings-nav button.active svg {
  background: #ebd0bc;
  color: #3a2a3c;
}

.settings-version {
  margin: auto 10px 0;
  padding-top: 30px;
  color: #a898ac;
  font-size: 8px;
  letter-spacing: 1px;
}

.settings-panels {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 32px;
}

.settings-panels h2 {
  margin: 9px 0 10px;
  font-family: "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 30px;
  letter-spacing: -.7px;
}

.settings-panels h3 {
  margin-top: 25px;
  color: #e2d4e2;
  font-size: 13px;
}

.settings-panels p {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.8;
}

.settings-panels .section-description {
  margin: 0 0 24px;
}

.settings-panels a {
  color: #e4c5b7;
}

.wallpaper-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 20px;
}

.wallpaper-option {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid #ffffff20;
  border-radius: 10px;
  background: #211c2880;
  text-align: left;
}

.wallpaper-option > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .35s ease;
}

.wallpaper-option:hover > img {
  transform: scale(1.035);
}

.wallpaper-option > span:not(.wallpaper-check) {
  display: block;
  padding: 10px 12px;
  color: #f2e6ef;
  font-size: 12px;
}

.wallpaper-option small {
  display: block;
  margin-top: 4px;
  color: #bcacbf;
  font-size: 9px;
}

.wallpaper-option[aria-pressed=true] {
  border-color: #ecd3bf;
  box-shadow: 0 0 0 1px #ecd3bf;
}

.wallpaper-check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #ecd3bf;
  color: #362634;
}

.wallpaper-check svg {
  width: 14px;
  height: 14px;
}

[aria-pressed=true] > .wallpaper-check {
  display: grid;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 16px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #ffffff15;
  border-radius: 0;
  background: #ffffff04;
  color: #fff1fc;
  font-size: 13px;
  font-weight: 500;
}

.setting-row small {
  display: block;
  margin-top: 6px;
  max-width: 310px;
  font-size: 10px;
  line-height: 1.6;
  color: #c9b9ce;
  font-weight: 400;
}

.setting-row input[type=checkbox] {
  appearance: none;
  position: relative;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  border: 1px solid #ffffff40;
  border-radius: 14px;
  background: #453b4c;
  box-shadow: inset 0 1px 3px #0005;
  cursor: pointer;
  transition: background .2s;
}

.setting-row input[type=checkbox]::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(#fffbff, #d4cbd9);
  box-shadow: 0 1px 3px #0005;
  transition: transform .2s, background .2s;
}

.setting-row input[type=checkbox]:checked {
  background: #e9cbb3;
  border-color: #efd6c3;
}

.setting-row input[type=checkbox]:checked::before {
  transform: translateX(18px);
  background: #41313e;
}

.setting-row input[type=range] {
  width: 140px;
  max-width: 100%;
  height: 23px;
  accent-color: #e3c3ae;
  cursor: pointer;
}

.brightness-control {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.brightness-control output {
  color: #e5d3e6;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.shortcut-row {
  color: #c4b5c8;
  border-color: #ffffff0d;
  font-size: 11px;
}

.shortcut-row kbd {
  background: #ffffff09;
  border-color: #ffffff1a;
  color: #d9cadc;
  font-size: 10px;
}

.weather-search label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
}

.weather-search > div {
  display: flex;
  gap: 8px;
}

.weather-search input {
  min-width: 0;
  flex: 1;
  padding: 10px 12px;
  border: 1px solid #ffffff26;
  border-radius: 7px;
  background: #ffffff08;
  color: #f5e9f4;
  font-size: 12px;
}

.city-results button {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 5px;
  border: 1px solid #ffffff1f;
  border-radius: 7px;
  background: #ffffff07;
  color: #e9dbe9;
  text-align: left;
  font-size: 11px;
}

.city-results button:hover {
  background: #ffffff14;
}

.settings-actions,
.settings-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.weather-attribution {
  display: inline-block;
  margin-top: 24px;
  font-size: 10px;
}

.about-logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 24px;
}

.game-library,
.library-main {
  background: transparent;
}

.library-sidebar {
  width: 184px;
  background: #19161e5e;
  border-color: #ffffff14;
}

.library-brand,
.library-intro h2 {
  color: #f5e9f2;
}

.library-brand img {
  width: 36px;
  height: 36px;
}

.library-sidebar button {
  padding: 11px;
  border-radius: 8px;
  color: #c1b2c6;
}

.library-sidebar button.active {
  background: #ddbdcb1f;
  border-color: #ddbdcb21;
  color: #f9e5ed;
}

.library-brand small,
.sidebar-label,
.nav-count,
.library-breadcrumb,
.library-sort,
.results-label,
.library-collection {
  color: #baacc0;
}

.library-sidebar .sidebar-bottom {
  border-color: #ffffff17;
}

.sidebar-bottom a {
  color: #c6b5cd;
}

.library-intro {
  padding-top: 25px;
}

.library-intro h2 {
  font-size: 29px;
  font-weight: 500;
}

.library-filters .search-field,
.library-filters select {
  background: #ffffff09;
  border-color: #ffffff21;
  color: #d9ccdf;
  border-radius: 8px;
  height: 38px;
}

.library-filters input {
  color: #f5e6f4;
}

.library-filters select option {
  background: #28212e;
}

.game-grid {
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  scrollbar-color: #bba8c052 transparent;
}

.game-card {
  border-color: #ffffff1c;
  border-radius: 10px;
  background: #231d2b73;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}

.game-card:hover,
.game-card:focus-within {
  transform: translateY(-3px);
  border-color: #e9c9d26e;
  box-shadow: 0 9px 20px #140b252b;
}

.game-cover {
  border-color: #ffffff14;
  background: #2f2536;
  aspect-ratio: 16 / 11;
}

.game-cover img {
  transition: filter .2s, transform .3s;
}

.game-play:hover .game-cover img {
  transform: scale(1.025);
  filter: brightness(.8);
}

.game-name {
  margin: 12px 12px 5px;
  color: #f0e4f0;
  font-size: 12px;
}

.game-author {
  margin: 0 12px 3px;
  color: #b4a1bf;
  font-size: 9px;
}

.favorite-button {
  background: #211829bf;
  border-color: #ffffff38;
  color: #f3e5ef;
  backdrop-filter: blur(10px);
  border-radius: 50%;
}

.favorite-button:hover,
.favorite-button.selected {
  background: #e9c6a9;
  border-color: #f7ddc6;
  color: #48313a;
}

.game-launch {
  border-color: #ffffff40;
  background: #eee0e5f2;
  color: #382736;
  border-radius: 5px;
}

.library-credit {
  background: #18141c33;
  color: #b7a5bf;
  border-color: #ffffff14;
  font-size: 8px;
}

.library-empty {
  color: #d9c7e0;
}

button,
a,
.icon-button {
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}

button:active:not(:disabled) {
  transform: scale(.97);
}

button:focus-visible,
a:focus-visible,
.browser-window button:focus-visible,
.browser-window a:focus-visible {
  outline: 2px solid #ebcdb9;
}

.toast {
  background: #27202fe8;
  color: #f6e9f3;
  border: 1px solid #ffffff26;
  backdrop-filter: blur(20px);
}

[hidden] {
  display: none !important;
}

@keyframes widget-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dock-arrive {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes surface-arrive {
  from { opacity: 0; translate: 0 7px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes weather-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@media (max-width: 850px) {
  .settings-nav { width: 160px; }
  .settings-panels { padding: 25px; }
  #dock-weather { min-width: 110px; max-width: 140px; }
  #dock-weather .weather-copy strong { font-size: 10px; }
  .taskbar-search { width: 32px; padding: 0; border: 0; background: none; }
  .taskbar-search > span:first-child { justify-content: center; }
  .taskbar-search > span > span, .taskbar-search kbd { display: none; }
  .taskbar-center { grid-template-columns: 38px 32px minmax(0, 1fr); }
}

@media (max-width: 700px) {
  :root { --taskbar-height: 78px; }
  .desktop-apps {
    display: grid;
    inset: 0 auto auto 0;
    width: 100%;
    height: calc(100% - 182px);
    padding: 10px 6px;
    grid-auto-columns: 76px;
    grid-template-rows: repeat(auto-fill, 84px);
    gap: 2px;
  }
  .desktop-app {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 76px;
    height: 82px;
    touch-action: auto;
  }
  #desktop-widgets {
    position: absolute;
    bottom: 8px;
    left: 12px;
    right: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .desktop-widget {
    position: relative;
    inset: auto !important;
    width: auto;
    min-width: 0;
    min-height: 142px;
    padding: 15px 12px;
    border-radius: 13px;
    cursor: default;
    touch-action: auto;
  }
  .widget-eyebrow { font-size: 7px; letter-spacing: 1px; }
  #widget-time { font-size: 33px; letter-spacing: -1px; gap: 5px; }
  .clock-period { font-size: 11px; }
  #widget-date { font-size: 9px; line-height: 1.5; }
  .widget-hint { display: none; }
  #weather-widget [data-weather] { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 5px; }
  #weather-widget .weather-art { width: 34px; height: 34px; }
  #weather-widget .weather-copy strong { font-size: 11px; }
  #weather-widget .weather-copy small { max-width: 130px; font-size: 8px; }
  .taskbar {
    bottom: 9px;
    width: calc(100% - 14px);
    height: 58px;
    gap: 5px;
    max-width: calc(100% - 14px);
    padding: 5px;
    border-radius: 19px;
  }
  .taskbar-center { display: flex; overflow: visible; flex: 1; gap: 3px; min-width: 0; }
  .taskbar .dock-launcher { width: 34px; min-width: 34px; }
  .dock-launcher > img { width: 29px; height: 29px; }
  .taskbar-search { width: 25px; margin: 0; }
  #dock { max-width: 100%; gap: 2px; margin: 0 auto; padding: 3px; }
  .dock-app { width: 32px; height: 36px; min-width: 32px; padding: 0; }
  .dock-label { display: none; }
  .dock-app .app-art { width: 20px; height: 20px; }
  .taskbar-tray { gap: 0; padding-left: 6px; flex-shrink: 0; }
  #dock-weather { min-width: 0; max-width: 96px; padding: 0 4px 0 0; gap: 3px; }
  #dock-weather .weather-art { width: 25px; height: 25px; }
  #dock-weather .weather-copy strong { max-width: 65px; overflow: hidden; text-overflow: ellipsis; font-size: 9px; }
  #dock-weather .weather-copy small { display: none; }
  .taskbar .tray-button { width: 27px; height: 34px; }
  .taskbar .show-desktop { display: none; }
  .settings-nav { width: 55px; padding: 18px 5px; }
  .settings-identity { margin-bottom: 22px; justify-content: center; }
  .settings-identity img { width: 32px; height: 32px; }
  .settings-identity span, .settings-nav button span, .settings-version { display: none; }
  .settings-nav button { justify-content: center; padding: 13px 10px; }
  .settings-panels { padding: 24px 16px; }
  .settings-panels h2 { font-size: 24px; }
  .section-kicker { font-size: 8px; letter-spacing: 1px; }
  .wallpaper-options { gap: 10px; }
  .wallpaper-option > span:not(.wallpaper-check) { padding: 9px 8px; font-size: 10px; }
  .wallpaper-option small { font-size: 8px; line-height: 1.4; }
  .setting-row { gap: 10px; }
  .setting-row { padding: 14px 11px; }
  .setting-row input[type=range] { width: 90px; }
  .setting-row small { max-width: 180px; }
  .library-sidebar { width: 50px; }
  .library-intro h2 { font-size: 25px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 12px; }
  .game-name { margin: 10px 8px 5px; font-size: 10px; }
  .game-author { margin: 0 8px; font-size: 8px; }
  .browser-toolbar .icon-button { width: 25px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.reduced-motion *,
.reduced-motion *::before,
.reduced-motion *::after {
  animation-duration: .01ms !important;
  transition-duration: .01ms !important;
}
