:root {
  --xp-blue: #1d6fe8;
  --xp-blue-dark: #12439f;
  --xp-blue-mid: #1960cf;
  --xp-blue-light: #73b7ff;
  --xp-border: #1851b7;
  --xp-cream: #f4f4f0;
  --xp-panel: #ffffff;
  --xp-text: #152744;
  --xp-muted: #5b6980;
  --xp-green: #39b889;
  --xp-yellow: #ffd762;
  --xp-pink: #ffd7ee;
  --shadow-hard: 4px 5px 0 rgba(0, 35, 120, 0.28);
  --shadow-window: 0 18px 34px rgba(0, 33, 96, 0.28);
  --ui-font: Tahoma, Verdana, "Microsoft YaHei", "Yu Gothic", "MS PGothic", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #2297f2;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--xp-text);
  font-family: var(--ui-font);
  letter-spacing: 0;
  cursor: default;
  caret-color: transparent;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

.site-shell {
  min-width: 0;
  max-width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 84% 72%, rgba(255, 255, 255, 0.2) 0 1px, transparent 2px 100%),
    linear-gradient(180deg, #228ff2 0%, #35a9ff 43%, #8fdb6a 72%, #4ab438 100%);
}

.xp-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  min-height: 56px;
  padding: 8px 24px;
  overflow: hidden;
  color: #fff;
  border-bottom: 3px solid #0439a8;
  background: linear-gradient(180deg, #4aa4ff 0%, #1d6fe8 48%, #12439f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 3px 0 rgba(1, 45, 144, 0.25);
}

.brand-button,
.lang-button,
.start-button,
.taskbar-tabs button,
.window-toolbar button,
.filter-row button,
.xp-button,
.card-action {
  border: 2px solid #0c45a8;
  border-radius: 6px;
  color: #082f78;
  background: linear-gradient(180deg, #ffffff 0%, #dceeff 42%, #76b7ff 100%);
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 rgba(0, 45, 120, 0.24), 1px 1px 0 rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.brand-button {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: min(360px, 36vw);
  gap: 10px;
  padding: 0;
  color: #fff;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: 18px;
  font-weight: 900;
  text-shadow: 2px 2px 0 #093eaa;
}

.page-home,
.brand-button,
.xp-taskbar,
.window-titlebar,
.desktop-icon,
.desktop-intro,
.filter-row,
.category-panel,
.article-detail-head {
  -webkit-user-select: none;
  user-select: none;
}

.brand-button span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-orb {
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(2px 2px 0 rgba(0, 25, 90, 0.3));
}

.topbar-actions,
.language-switcher,
.status-tray {
  display: flex;
  align-items: center;
}

.topbar-actions {
  gap: 10px;
  min-width: max-content;
}

.account-widget {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
}

.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 88px;
  height: 34px;
  padding: 0 10px;
  border: 2px solid #0c45a8;
  border-radius: 6px;
  color: #082f78;
  background: linear-gradient(180deg, #ffffff 0%, #dceeff 42%, #76b7ff 100%);
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 rgba(0, 45, 120, 0.24), 1px 1px 0 rgba(0, 0, 0, 0.18);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.account-button.signed-in {
  min-width: 132px;
  max-width: 220px;
}

.account-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-popover {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 60;
  width: min(320px, calc(100vw - 24px));
  padding: 10px;
  border: 3px solid var(--xp-border);
  border-radius: 8px;
  color: var(--xp-text);
  background: #f7fbff;
  box-shadow: var(--shadow-hard);
}

.account-popover[hidden] {
  display: none;
}

.account-form,
.account-signed-in {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.account-form strong,
.account-signed-in strong {
  color: var(--xp-blue-dark);
  font-size: 14px;
}

.account-form input {
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border: 2px inset #d2e2ff;
  border-radius: 4px;
  color: var(--xp-text);
  background: #fff;
  caret-color: auto;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.account-note {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  color: var(--xp-muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.language-switcher {
  gap: 8px;
}

.lang-button {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 34px;
  padding: 0;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.lang-button.active {
  color: #673800;
  background: linear-gradient(180deg, #fff3a7, #ffbd38);
}

.top-updated {
  font-size: 14px;
  font-weight: 900;
  text-shadow: 1px 1px 0 #002b8b;
}

main {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
}

.page {
  display: none;
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 100%;
  padding: 26px;
  animation: popIn 180ms ease-out;
}

.page.active {
  display: block;
}

.page-home {
  position: relative;
  overflow: hidden;
  padding: 0 24px 72px 24px;
}

.sky-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cloud {
  position: absolute;
  width: 138px;
  height: 32px;
  border-radius: 2px;
  background:
    linear-gradient(#fff, #e7f6ff);
  box-shadow:
    18px -15px 0 2px #fff,
    42px -28px 0 8px #fff,
    74px -22px 0 11px #fff,
    102px -10px 0 6px #fff,
    0 6px 0 #c7e7ff,
    28px 8px 0 #c7e7ff,
    74px 9px 0 #c7e7ff;
  image-rendering: pixelated;
  opacity: 0.95;
  animation: cloudFloat 18s ease-in-out infinite;
}

.cloud-a {
  top: 92px;
  left: 8%;
}

.cloud-b {
  top: 132px;
  right: 4%;
  transform: scale(1.2);
  animation-duration: 24s;
}

.cloud-c {
  top: 375px;
  right: 11%;
  transform: scale(0.9);
  animation-duration: 30s;
}

.bird {
  position: absolute;
  width: 30px;
  height: 12px;
  border-top: 4px solid #e9f7ff;
  border-radius: 50%;
  filter: drop-shadow(2px 2px 0 rgba(0, 80, 150, 0.28));
}

.bird::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -4px;
  width: 30px;
  height: 12px;
  border-top: 4px solid #e9f7ff;
  border-radius: 50%;
}

.bird-a {
  left: 26%;
  top: 130px;
}

.bird-b {
  right: 22%;
  top: 238px;
  transform: scale(0.75);
}

.hill {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 0;
  height: 34%;
  border-top: 5px solid rgba(255, 255, 255, 0.28);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 10px, transparent 10px 24px),
    linear-gradient(180deg, #7ed84f 0%, #57bd38 56%, #229532 100%);
  clip-path: polygon(0 40%, 16% 36%, 28% 47%, 42% 34%, 60% 43%, 76% 28%, 100% 39%, 100% 100%, 0 100%);
}

.hill-b {
  bottom: 17%;
  height: 22%;
  background: linear-gradient(180deg, rgba(60, 145, 70, 0.62), rgba(43, 125, 75, 0.45));
  clip-path: polygon(0 62%, 20% 42%, 38% 58%, 58% 38%, 80% 55%, 100% 32%, 100% 100%, 0 100%);
}

.path-ribbon {
  position: absolute;
  right: 4%;
  bottom: 0;
  width: 30%;
  height: 43%;
  border-left: 18px solid #f3e3a0;
  border-radius: 64% 0 0 0;
  transform: rotate(8deg);
  opacity: 0.92;
}

.tree {
  position: absolute;
  bottom: 225px;
  width: 28px;
  height: 84px;
  background: #2e7f30;
  clip-path: polygon(50% 0, 76% 28%, 62% 28%, 88% 58%, 68% 58%, 96% 92%, 4% 92%, 32% 58%, 12% 58%, 38% 28%, 24% 28%);
  filter: drop-shadow(5px 5px 0 rgba(0, 80, 30, 0.22));
}

.tree::after {
  content: "";
  position: absolute;
  left: 11px;
  bottom: -8px;
  width: 7px;
  height: 22px;
  background: #7d5a2a;
}

.tree-a {
  right: 94px;
}

.tree-b {
  right: 148px;
  transform: scale(0.82);
}

.flowers {
  position: absolute;
  bottom: 20px;
  width: 150px;
  height: 70px;
  background:
    radial-gradient(circle, #fff 0 4px, transparent 5px) 8px 26px / 36px 36px,
    radial-gradient(circle, #ffe559 0 4px, transparent 5px) 28px 6px / 42px 42px,
    radial-gradient(circle, #ffb05f 0 4px, transparent 5px) 82px 18px / 36px 36px;
  opacity: 0.94;
}

.flowers-a {
  left: 7%;
}

.flowers-b {
  right: 22%;
  transform: scale(1.2);
}

.desktop-intro {
  position: relative;
  z-index: 2;
  width: min(620px, 50vw);
  margin: 92px auto 0;
  text-align: center;
  color: #fff;
  text-shadow: 4px 4px 0 #0b55b8, 0 3px 7px rgba(0, 39, 116, 0.42);
}

.desktop-intro h1 {
  position: relative;
  margin: 0;
  font-size: clamp(36px, 4.8vw, 62px);
  line-height: 1.05;
  font-weight: 900;
  white-space: nowrap;
}

.desktop-intro h1::after {
  content: "★";
  position: absolute;
  top: -4px;
  margin-left: 10px;
  color: #ffe25c;
  font-size: 0.58em;
  text-shadow: 2px 2px 0 #8d6310;
}

.hero-en {
  margin: 10px 0 12px;
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 900;
  white-space: nowrap;
}

.hero-lead {
  margin: 0 auto;
  padding-top: 14px;
  border-top: 2px solid rgba(255, 255, 255, 0.78);
  max-width: 540px;
  font-size: clamp(14px, 1.7vw, 18px);
  font-weight: 900;
}

.desktop-icons {
  position: absolute;
  z-index: 3;
  top: 196px;
  left: 48px;
  display: grid;
  grid-template-columns: repeat(3, 136px);
  grid-auto-rows: 132px;
  gap: 16px 20px;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-items: center;
  justify-content: flex-start;
  gap: 2px;
  width: 136px;
  height: 132px;
  padding: 7px 7px 8px;
  border: 2px solid transparent;
  border-radius: 5px;
  color: #fff;
  background: transparent;
  text-align: center;
  text-shadow: 2px 2px 0 #0a3f96, 0 2px 4px rgba(0, 45, 120, 0.48);
}

.desktop-icon:hover,
.desktop-icon:focus-visible,
.desktop-icon.is-hovered,
.desktop-icon.is-active {
  outline: none;
  border-color: transparent;
  background: transparent;
  animation: iconHop 380ms ease;
}

.icon-title {
  display: block;
  width: 100%;
  min-height: 36px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
}

.icon-caption {
  display: none;
  width: 100%;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.pixel-icon {
  position: relative;
  display: block;
  width: 70px;
  height: 70px;
  image-rendering: pixelated;
  filter: drop-shadow(4px 5px 0 rgba(0, 33, 110, 0.32));
}

.folder-icon {
  margin-top: 6px;
  height: 56px;
  border: 5px solid #8f5e0d;
  border-radius: 3px;
  background: linear-gradient(180deg, #fff39a, #ffc94f 48%, #ffb42d);
}

.folder-icon::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 6px;
  width: 36px;
  height: 20px;
  border: 5px solid #8f5e0d;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: #ffe77a;
}

.tv-icon {
  width: 64px;
  height: 58px;
  margin-top: 8px;
  border: 6px solid #3d3f45;
  border-radius: 8px;
  background: linear-gradient(135deg, #8ce9ff, #2269d8 72%);
}

.tv-icon::before,
.tv-icon::after {
  content: "";
  position: absolute;
  background: #30323a;
}

.tv-icon::before {
  left: 10px;
  top: -18px;
  width: 5px;
  height: 25px;
  transform: rotate(-42deg);
}

.tv-icon::after {
  right: 10px;
  top: -18px;
  width: 5px;
  height: 25px;
  transform: rotate(42deg);
}

.disk-icon {
  width: 62px;
  height: 70px;
  border: 5px solid #173f95;
  border-radius: 6px;
  background: linear-gradient(180deg, #2386ff 0 33%, #0b5cdd 33% 100%);
}

.disk-icon::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 8px;
  width: 20px;
  height: 18px;
  background: #d9efff;
  box-shadow: inset -4px 0 0 #9cc8e8;
}

.disk-icon::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 9px;
  width: 36px;
  height: 20px;
  background: #f7fbff;
}

.game-icon {
  width: 66px;
  height: 54px;
  margin-top: 12px;
  border: 5px solid #4b3150;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff95cf, #e65ab1);
}

.game-icon::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 22px;
  width: 22px;
  height: 7px;
  background: #4b3150;
  box-shadow: 7px -7px 0 -1px #4b3150, 7px 7px 0 -1px #4b3150, 38px -2px 0 -1px #4b3150, 47px 6px 0 -1px #4b3150;
}

.chat-icon {
  width: 66px;
  height: 52px;
  margin-top: 10px;
  border: 5px solid #2d5d88;
  border-radius: 13px;
  background: linear-gradient(180deg, #d7f5ff, #87ceff);
}

.chat-icon::before,
.chat-icon::after {
  content: "";
  position: absolute;
  top: 20px;
  width: 7px;
  height: 7px;
  background: #2d5d88;
}

.chat-icon::before {
  left: 18px;
  box-shadow: 14px 0 0 #2d5d88;
}

.chat-icon::after {
  left: 9px;
  bottom: -16px;
  top: auto;
  width: 18px;
  height: 18px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.avatar-icon,
.pixel-face {
  border: 6px solid #173f36;
  border-radius: 50% 50% 44% 44%;
  background: linear-gradient(180deg, #ffdcae 0 64%, #55c65d 64% 100%);
}

.avatar-icon {
  width: 64px;
  height: 70px;
}

.avatar-icon::before,
.avatar-icon::after,
.pixel-face::before,
.pixel-face::after {
  content: "";
  position: absolute;
  top: 30px;
  width: 8px;
  height: 8px;
  background: #18253d;
}

.avatar-icon::before,
.pixel-face::before {
  left: 17px;
}

.avatar-icon::after,
.pixel-face::after {
  right: 17px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.xp-window {
  position: relative;
  z-index: 5;
  width: min(1040px, 100%);
  margin: 24px auto 0;
  border: 3px solid var(--xp-border);
  border-radius: 7px 7px 5px 5px;
  background: var(--xp-cream);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 5px 7px 5px 12px;
  color: #fff;
  background: linear-gradient(180deg, #3c91ff 0%, #1262df 44%, #0639a9 100%);
  font-size: 17px;
  font-weight: 900;
  text-shadow: 2px 2px 0 #002d92;
}

.window-titlebar > span {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.window-titlebar > span > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-controls {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
}

.knowledge-window-controls {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
}

.title-icon {
  margin-right: 8px;
  color: #ffe25c;
  text-shadow: 1px 1px 0 #7c5a06;
}

.section-title-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 34px 34px;
  image-rendering: auto;
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.28));
  text-shadow: none;
  transform: translateY(1px);
}

.title-icon-knowledge {
  background-image: url("../assets/images/icon-window-knowledge-64.png");
}

.title-icon-videos {
  background-image: url("../assets/images/icon-window-videos-64.png");
}

.title-icon-resources {
  background-image: url("../assets/images/icon-window-resources-64.png");
}

.title-icon-games {
  background-image: url("../assets/images/icon-window-games-64.png");
}

.title-icon-blog,
.title-icon-chatroom {
  background-image: url("../assets/images/icon-window-blog-64.png");
}

.title-icon-about {
  background-image: url("../assets/images/icon-window-about-64.png");
}

.close-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(180deg, #ff9b70, #f33f20 58%, #c71d10);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.55), 2px 2px 0 rgba(0, 0, 0, 0.22);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.titlebar-button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 2px solid #d7ecff;
  border-radius: 4px;
  color: #fff;
  background: linear-gradient(180deg, #65b7ff, #136de3 58%, #0742ad);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.55), 2px 2px 0 rgba(0, 0, 0, 0.22);
}

.titlebar-button:hover,
.titlebar-button:focus-visible {
  background: linear-gradient(180deg, #8acaff, #2f82f1 58%, #0b53c9);
}

.minimize-button::before {
  content: "";
  display: block;
  width: 15px;
  height: 4px;
  margin-top: 12px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.maximize-button::before {
  content: "";
  display: block;
  width: 15px;
  height: 12px;
  border: 3px solid #fff;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.55);
}

.maximize-button[aria-pressed="true"]::before {
  width: 13px;
  height: 10px;
  transform: translate(2px, -1px);
  box-shadow:
    -5px 5px 0 -2px #136de3,
    -5px 5px 0 0 #fff,
    inset 0 3px 0 rgba(255, 255, 255, 0.55);
}

.window-toolbar,
.filter-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border-bottom: 2px solid #d3d0bd;
  background: #f7f4e8;
  overflow-x: auto;
}

.window-toolbar button,
.filter-row button,
.card-action,
.xp-button {
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.filter-row button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: min(260px, 100%);
  overflow: hidden;
}

.filter-row button > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-count {
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid #5e95c7;
  border-radius: 999px;
  background: linear-gradient(180deg, #f7feff, #bfe3f1);
  color: #06436b;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.8);
  font-variant-numeric: tabular-nums;
}

.filter-row button.active .filter-count {
  border-color: #9a6d00;
  background: #fff8c5;
  color: #704200;
}

.window-toolbar span {
  min-width: max-content;
  color: var(--xp-muted);
  font-size: 13px;
  font-weight: 700;
}

.folder-layout {
  display: grid;
  grid-template-columns: 222px 1fr;
  min-height: 500px;
}

.folder-layout.is-reading {
  grid-template-columns: 1fr;
}

.folder-layout.is-reading .category-panel,
.folder-layout.is-reading .content-list {
  display: none;
}

.knowledge-searchbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-bottom: 2px solid #d3d0bd;
  background: linear-gradient(180deg, #fff8d8, #e9f6ff);
}

.knowledge-searchbar[hidden],
.content-list[hidden],
.article-detail[hidden] {
  display: none !important;
}

.knowledge-searchbar label {
  color: #123f88;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.knowledge-searchbar input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 6px 9px;
  border: 2px inset #f8f8f8;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  outline: 0;
}

.knowledge-searchbar input:focus {
  box-shadow: 0 0 0 2px rgba(45, 133, 255, 0.28);
}

.knowledge-searchbar .xp-button {
  min-height: 34px;
  padding: 5px 12px;
}

.knowledge-searchbar .xp-button:disabled {
  color: #657082;
  cursor: default;
  filter: grayscale(0.35);
  opacity: 0.72;
}

#knowledge-search-status {
  color: #315b8d;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.category-panel {
  padding: 13px;
  border-right: 2px solid #d3d0bd;
  background: linear-gradient(180deg, #ddecff, #f6fbff);
}

.category-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  margin-bottom: 8px;
  padding: 7px 10px;
  border: 2px solid transparent;
  border-radius: 6px;
  color: #143f84;
  background: transparent;
  font-weight: 900;
  text-align: left;
  overflow: hidden;
}

.category-button > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-button.active,
.category-button:hover {
  border-color: #6aa3ff;
  background: #fff;
}

.content-list,
.card-grid,
.download-list,
.notepad-paper,
.game-list {
  padding: 16px;
}

#knowledge .xp-window {
  display: flex;
  flex-direction: column;
  width: min(1560px, calc(100% - 16px));
  min-height: 560px;
  height: calc(100dvh - 176px);
  max-height: calc(100dvh - 176px);
}

#videos .xp-window,
#resources .xp-window,
#blog .xp-window {
  display: flex;
  flex-direction: column;
  width: min(1120px, calc(100% - 16px));
  height: min(760px, calc(100dvh - 166px));
  max-height: calc(100dvh - 166px);
}

#videos .xp-window {
  width: min(1280px, calc(100% - 16px));
  min-height: min(760px, calc(100dvh - 166px));
  height: calc(100dvh - 166px);
  max-height: calc(100dvh - 166px);
}

#games .xp-window {
  display: flex;
  flex-direction: column;
  width: min(960px, calc(100% - 16px));
  min-height: min(420px, calc(100dvh - 166px));
  max-height: min(760px, calc(100dvh - 166px));
}

#about .xp-window {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  max-height: calc(100vh - 162px);
}

#knowledge .folder-layout,
#videos .card-grid,
#resources .download-list,
#blog .notepad-paper,
#about .profile-card {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

#knowledge .folder-layout {
  overflow: hidden;
}

.content-list,
.card-grid,
.download-list,
.notepad-paper,
.game-list,
.article-detail,
.welcome-window,
.modal-window {
  scrollbar-color: #73b7ff #e9f3ff;
  scrollbar-width: thin;
}

.content-list::-webkit-scrollbar,
.card-grid::-webkit-scrollbar,
.download-list::-webkit-scrollbar,
.notepad-paper::-webkit-scrollbar,
.game-list::-webkit-scrollbar,
.article-detail::-webkit-scrollbar,
.welcome-window::-webkit-scrollbar,
.modal-window::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

.content-list::-webkit-scrollbar-track,
.card-grid::-webkit-scrollbar-track,
.download-list::-webkit-scrollbar-track,
.notepad-paper::-webkit-scrollbar-track,
.game-list::-webkit-scrollbar-track,
.article-detail::-webkit-scrollbar-track,
.welcome-window::-webkit-scrollbar-track,
.modal-window::-webkit-scrollbar-track {
  border-left: 1px solid #b7c9e8;
  background: #e9f3ff;
}

.content-list::-webkit-scrollbar-thumb,
.card-grid::-webkit-scrollbar-thumb,
.download-list::-webkit-scrollbar-thumb,
.notepad-paper::-webkit-scrollbar-thumb,
.game-list::-webkit-scrollbar-thumb,
.article-detail::-webkit-scrollbar-thumb,
.welcome-window::-webkit-scrollbar-thumb,
.modal-window::-webkit-scrollbar-thumb {
  border: 2px solid #e9f3ff;
  border-radius: 6px;
  background: linear-gradient(180deg, #bfe1ff, #4c9df6);
}

body.is-article-reading {
  overflow: auto;
}

body.is-article-reading .xp-topbar,
body.is-article-reading .xp-taskbar {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

body.is-article-reading .xp-taskbar {
  transform: none;
}

body.is-article-reading #knowledge {
  position: static;
  inset: auto;
  z-index: auto;
}

body.is-article-reading #knowledge .xp-window {
  width: min(1560px, calc(100% - 16px));
  height: calc(100dvh - 176px);
  max-height: calc(100dvh - 176px);
  margin: 24px auto 0;
  border-radius: 7px 7px 5px 5px;
}

body.is-article-reading.is-article-window-restored {
  overflow: auto;
}

body.is-article-reading.is-article-window-restored .xp-topbar,
body.is-article-reading.is-article-window-restored .xp-taskbar {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

body.is-article-reading.is-article-window-restored #knowledge {
  position: static;
  inset: auto;
  z-index: auto;
}

body.is-article-reading.is-article-window-restored #knowledge .xp-window {
  width: min(1240px, calc(100% - 16px));
  height: calc(100dvh - 176px);
  max-height: calc(100dvh - 176px);
  margin: 24px auto 0;
  border-radius: 7px 7px 5px 5px;
}

body.is-article-reading #knowledge .window-titlebar {
  min-height: 48px;
  padding: 6px 8px 6px 15px;
}

body.is-article-reading #knowledge .close-button {
  width: 32px;
  height: 32px;
  font-size: 22px;
}

#knowledge .category-panel,
#knowledge .content-list,
#knowledge .article-detail {
  min-height: 0;
  overflow: auto;
}

#videos .filter-row,
#resources .filter-row,
#knowledge .window-toolbar,
#blog .notepad-menu {
  flex: 0 0 auto;
}

.article-card,
.video-card,
.resource-card,
.blog-card,
.game-card {
  border: 2px solid #a9a58f;
  border-radius: 7px;
  background: #fff;
  box-shadow: inset 1px 1px 0 #fff, 3px 3px 0 rgba(0, 60, 158, 0.15);
}

.article-card,
.resource-card,
.blog-card,
.game-card {
  display: grid;
  gap: 8px;
  margin-bottom: 13px;
  padding: 14px;
}

.blog-card {
  min-width: 0;
  overflow: hidden;
}

.blog-card > * {
  min-width: 0;
  max-width: 100%;
}

.article-card h3,
.video-card h3,
.resource-card h3,
.blog-card h3,
.game-card h3 {
  margin: 0;
  color: #073a91;
  font-size: 18px;
  line-height: 1.25;
}

.blog-card h3,
.blog-card p,
.blog-card .tag,
.blog-card .card-action {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.blog-card .tag {
  white-space: normal;
}

.article-card p,
.video-card p,
.resource-card p,
.blog-card p,
.game-card p {
  margin: 0;
  color: var(--xp-muted);
  line-height: 1.6;
}

.resource-empty-state {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 132px;
  padding: 18px;
  border: 2px dashed #9d9275;
  border-radius: 7px;
  background: linear-gradient(180deg, #fffdf0, #eaf5ff);
  box-shadow: inset 1px 1px 0 #fff, 3px 3px 0 rgba(0, 60, 158, 0.12);
}

.resource-empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 2px solid #6b98c6;
  border-radius: 6px;
  background: linear-gradient(180deg, #dff6ff, #9fd0f0);
  font-size: 32px;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.75);
}

.resource-empty-copy {
  min-width: 0;
}

.resource-empty-copy h3 {
  margin: 0 0 6px;
  color: #073a91;
  font-size: 18px;
}

.resource-empty-copy p {
  margin: 0;
  color: #45516a;
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.article-detail {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 14px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(52, 134, 255, 0.08) 0 1px, transparent 1px 100%),
    repeating-linear-gradient(180deg, #fff 0 34px, #d6ecff 35px),
    #fff;
}

.folder-layout.is-reading .article-detail {
  grid-column: 1 / -1;
  grid-template-columns: 242px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 22px 118px;
}

body.is-article-reading .folder-layout.is-reading .article-detail {
  padding: 18px 46px 118px 22px;
}

body.is-article-reading .folder-layout.is-reading .article-detail::after {
  content: "";
  position: fixed;
  right: max(56px, calc((100vw - 1560px) / 2 + 22px));
  bottom: 124px;
  left: max(56px, calc((100vw - 1560px) / 2 + 22px));
  z-index: 43;
  border-top: 2px dashed rgba(126, 173, 255, 0.72);
  pointer-events: none;
}

.article-back-button {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 38px;
  margin: 0;
}

.article-reader-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  align-self: start;
  min-width: 0;
  min-height: min(640px, calc(100dvh - 280px));
  position: sticky;
  top: 0;
}

body.is-article-reading .article-reader-sidebar {
  min-height: min(640px, calc(100dvh - 280px));
}

.article-detail-card {
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 24px 26px 28px;
  border: 1px solid #8db7ff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 1px 1px 0 #fff,
    0 0 0 1px rgba(255, 255, 255, 0.85),
    2px 2px 0 rgba(0, 60, 158, 0.1);
}

.article-detail-head {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 2px dashed #a9caff;
}

.article-detail-head h2 {
  margin: 10px 0 8px;
  color: #073a91;
  font-size: clamp(25px, 2vw, 31px);
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-detail-head p {
  margin: 0;
  color: var(--xp-muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.article-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #31516f;
  font-weight: 800;
}

.article-meta-item::before {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #0645ad;
  font-size: 15px;
  line-height: 1;
}

.article-meta-category::before {
  content: "🏠";
}

.article-meta-published::before {
  content: "◷";
}

.article-read-progress {
  display: grid;
  gap: 8px;
  position: fixed;
  right: clamp(222px, 14vw, 292px);
  bottom: 50px;
  left: clamp(22px, 4vw, 72px);
  z-index: 44;
  margin: 0;
  padding: 12px 14px 14px;
  border: 1px solid #b5d2ff;
  border-radius: 8px;
  background: rgba(248, 252, 255, 0.96);
  box-shadow: inset 1px 1px 0 #fff, 2px 2px 0 rgba(0, 60, 158, 0.1);
  pointer-events: none;
}

.article-read-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #073a91;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.article-read-progress-label strong {
  color: #0759d6;
  font-size: 15px;
}

.article-read-progress-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border: 1px solid #6686c7;
  border-radius: 999px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.68) 0 9px, transparent 9px 18px),
    #dceaff;
}

.article-read-progress-track span {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms ease;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 10px, transparent 10px 18px),
    linear-gradient(90deg, #0759d6, #0b70ff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.article-toc {
  display: grid;
  align-self: start;
  overflow: hidden;
  border: 1px solid #a8c8ff;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 255, 0.96)),
    #fff;
  box-shadow: inset 1px 1px 0 #fff, 2px 2px 0 rgba(0, 60, 158, 0.08);
}

.article-toc[hidden] {
  display: none;
}

.article-toc p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 12px 13px;
  border-bottom: 1px solid #d3e3ff;
  color: #073a91;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(180deg, #f8fbff, #edf5ff);
}

#article-detail-toc-list {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.article-toc-link {
  width: 100%;
  max-width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #143570;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.article-toc-link:hover,
.article-toc-link:focus-visible,
.article-toc-link.is-active {
  border-color: #a8c6ff;
  color: #0645ad;
  background: linear-gradient(180deg, #ffffff, #e7f0ff);
  box-shadow: inset 1px 1px 0 #fff;
}

.article-toc-link.level-3 {
  padding-left: 18px;
  color: #31516f;
  font-size: 12px;
}

.article-toc-link.level-3.is-active,
.article-toc-link.level-3:hover,
.article-toc-link.level-3:focus-visible {
  color: #0645ad;
}

.article-toc-tip {
  align-self: end;
  padding: 14px 13px;
  border: 1px solid #d9dcc3;
  border-radius: 7px;
  background: linear-gradient(180deg, #fffef4, #f7fbff);
  color: #26405f;
  box-shadow: inset 1px 1px 0 #fff;
}

.article-toc-tip strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  color: #244e84;
}

.article-toc-tip p {
  margin: 0;
  line-height: 1.65;
}

.article-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 12px;
  min-width: 0;
  max-width: 100%;
}

.article-detail-actions > * {
  min-width: 0;
}

.article-copy-link,
.article-top-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 12px;
  white-space: nowrap;
}

.article-top-link {
  position: fixed;
  right: clamp(20px, 4vw, 64px);
  bottom: 62px;
  z-index: 45;
  color: #184d0d;
  background: linear-gradient(180deg, #ffffff, #dff7c8);
  box-shadow: inset 1px 1px 0 #fff, 2px 2px 0 rgba(0, 60, 158, 0.18);
}

body.is-article-reading .article-read-progress {
  grid-template-columns: 118px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
  left: max(56px, calc((100vw - 1560px) / 2 + 22px));
  right: max(232px, calc((100vw - 1560px) / 2 + 232px));
  bottom: 64px;
  min-height: 50px;
  padding: 7px 16px;
}

body.is-article-reading .article-read-progress-label {
  display: contents;
}

body.is-article-reading .article-read-progress-label span {
  display: inline-flex;
  grid-column: 1;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

body.is-article-reading .article-read-progress-label span::before {
  content: "📖";
  font-size: 18px;
  line-height: 1;
}

body.is-article-reading .article-read-progress-label strong {
  grid-column: 3;
  justify-self: end;
  font-size: 16px;
}

body.is-article-reading .article-read-progress-track {
  grid-column: 2;
  height: 9px;
  border-color: transparent;
  background:
    linear-gradient(90deg, transparent 0 calc(var(--article-progress, 0) * 1%), rgba(218, 232, 255, 0.88) 0),
    repeating-linear-gradient(90deg, #0a5ee8 0 16px, transparent 16px 20px),
    #dceaff;
}

body.is-article-reading .article-top-link {
  right: max(57px, calc((100vw - 1560px) / 2 + 57px));
  bottom: 65px;
  min-width: 116px;
  min-height: 38px;
  justify-content: center;
}

.article-copy-link.is-done {
  background: linear-gradient(180deg, #eaffd9, #b9f090);
  color: #184d0d;
}

.article-copy-icon {
  line-height: 1;
}

.article-copy-status {
  flex: 1 1 180px;
  max-width: 100%;
  min-height: 20px;
  color: #12616f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.markdown-body {
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #1f2a3a;
  background: transparent;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  margin: 18px 0 8px;
  color: #073a91;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.markdown-body h1:first-child,
.markdown-body h2:first-child,
.markdown-body h3:first-child {
  margin-top: 0;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body pre,
.markdown-body blockquote,
.article-callout,
.article-figure {
  margin: 0 0 12px;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.4em;
}

.markdown-body li {
  padding-left: 0.15em;
  margin: 0 0 6px;
}

.markdown-body code {
  padding: 1px 5px;
  border: 1px solid #b7d0ff;
  border-radius: 4px;
  color: #113d91;
  background: #eef6ff;
}

.markdown-body pre {
  max-width: 100%;
  padding: 12px;
  border: 1px solid #9bbcff;
  border-radius: 6px;
  background: #eef6ff;
  overflow: auto;
}

.markdown-body pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

.markdown-body blockquote {
  padding: 8px 12px;
  border-left: 5px solid #2f77df;
  background: #edf5ff;
}

.article-callout {
  padding: 14px 18px;
  border: 1px solid #8db7ff;
  border-radius: 6px;
  color: #1552af;
  background: #edf6ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
  line-height: 1.75;
}

.article-callout p {
  margin: 0 0 4px;
}

.article-callout p:last-child {
  margin-bottom: 0;
}

.article-figure {
  padding: 9px;
  border: 2px solid #9bbcff;
  border-radius: 7px;
  background: linear-gradient(180deg, #f9fcff, #eef6ff);
  box-shadow: inset 1px 1px 0 #fff, 2px 2px 0 rgba(0, 60, 158, 0.12);
}

.article-figure img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border: 1px solid #c4d9ff;
  border-radius: 4px;
  background: #fff;
}

.article-figure figcaption {
  margin-top: 7px;
  color: #1552af;
  font-size: 13px;
  line-height: 1.5;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  color: #555;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.meta-row span {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 2px 7px;
  border: 1px solid #9bbcff;
  border-radius: 4px;
  color: #1748a7;
  background: #eaf3ff;
  font-weight: 800;
}

.language-support-label {
  color: #555;
  font-weight: 800;
}

.language-tag {
  border-color: #76b884;
  color: #155f25;
  background: #e9f8ec;
}

.language-tag.unsupported {
  border-color: #b8b8b8;
  color: #777;
  background: #f3f3f3;
}

.game-save-tag {
  border-color: #6bbf8d;
  color: #135f32;
  background: #e5f9ed;
}

.game-source-link {
  border-color: #b59be8;
  color: #4b278f;
  background: #f1eaff;
  text-decoration: none;
}

.game-source-link:hover,
.game-source-link:focus-visible {
  text-decoration: underline;
}

.resource-status-tag.is-ready {
  border-color: #6bbf8d;
  color: #135f32;
  background: #e5f9ed;
}

.resource-status-tag.is-pending {
  border-color: #d8b05b;
  color: #704200;
  background: #fff4c7;
}

.filter-row button.active {
  color: #704200;
  background: linear-gradient(180deg, #fff7b7, #ffcc4f);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 16px;
  grid-auto-rows: auto;
}

.video-empty-state {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 126px;
  padding: 16px;
  border: 2px dashed #7fa4df;
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(232, 245, 255, 0.94)),
    repeating-linear-gradient(90deg, rgba(59, 128, 226, 0.08) 0 1px, transparent 1px 18px);
  box-shadow: inset 1px 1px 0 #fff, 3px 3px 0 rgba(0, 60, 158, 0.12);
}

.video-empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid #285fb8;
  border-radius: 6px;
  color: #073a91;
  background: linear-gradient(180deg, #fff7b7, #90d6ff);
  font-size: 28px;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.82), 2px 2px 0 rgba(0, 60, 158, 0.24);
}

.video-empty-copy {
  min-width: 0;
}

.video-empty-copy h3 {
  margin: 0 0 5px;
  color: #073a91;
  font-size: 18px;
  line-height: 1.25;
}

.video-empty-copy p {
  margin: 0;
  color: var(--xp-muted);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

body.is-article-reading .markdown-body {
  line-height: 1.9;
}

body.is-article-reading .markdown-body p,
body.is-article-reading .markdown-body ul,
body.is-article-reading .markdown-body ol,
body.is-article-reading .markdown-body pre,
body.is-article-reading .markdown-body blockquote,
body.is-article-reading .article-callout {
  margin-bottom: 20px;
}

body.is-article-reading .article-figure {
  margin-top: 22px;
}

.video-empty-state .xp-button {
  min-height: 34px;
  white-space: nowrap;
}

.video-status-state {
  grid-template-columns: 58px minmax(0, 1fr);
}

.video-card {
  display: grid;
  grid-template-rows: 188px 1fr;
  flex: 0 0 calc((100% - 32px) / 3);
  align-self: start;
  height: 424px;
  min-height: 0;
  overflow: hidden;
}

.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 188px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-bottom: 2px solid #9d9a86;
  appearance: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent 40%),
    var(--thumb-bg, #74b9ff);
  cursor: pointer;
  overflow: hidden;
}

.video-thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.video-thumb.is-fallback {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.24) 0 12%, transparent 13%),
    linear-gradient(135deg, #a8dcff, #5aaef0 55%, #2d74cf);
}

.video-thumb::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 4px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
}

.video-thumb::after {
  content: "▶";
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border: 3px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 60, 158, 0.62);
  font-size: 23px;
  text-indent: 3px;
}

.video-body {
  display: grid;
  grid-template-rows: auto minmax(42px, auto) minmax(40px, auto) auto auto;
  align-content: start;
  gap: 6px;
  min-height: 0;
  padding: 12px 13px 14px;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 4px 8px;
  min-height: 22px;
  color: #17233a;
  font-size: 12px;
  line-height: 1.3;
}

.video-body h3,
.video-body p {
  min-width: 0;
}

.video-body p,
.resource-main p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}

.video-body h3,
.resource-main h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.video-meta span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.video-body .card-action,
.resource-card .card-action {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  justify-self: start;
  align-self: end;
  margin-top: 2px;
  line-height: 1;
}

.video-body .card-action {
  max-width: min(220px, 100%);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.resource-card .card-action,
.game-card .card-action {
  align-self: center;
  min-width: 112px;
  max-width: 100%;
  text-align: center;
}

.game-card .card-action {
  max-width: min(220px, 100%);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.video-body .card-action {
  width: fit-content;
  justify-self: start;
  max-width: 100%;
  min-width: 88px;
  padding-inline: 14px;
  white-space: normal;
  text-align: center;
}

.card-action.is-disabled,
.card-action:disabled {
  color: #52647d;
  background: linear-gradient(180deg, #f7f7f7 0%, #e2e6ec 48%, #c0c8d3 100%);
  border-color: #8797ad;
  box-shadow: inset 1px 1px 0 #fff;
  filter: grayscale(0.2);
}

.platform {
  width: fit-content;
  height: 22px;
  justify-self: start;
  padding: 3px 7px;
  border: 1px solid #707070;
  border-radius: 4px;
  color: #333;
  background: #f4f4f4;
  font-size: 12px;
  font-weight: 900;
}

.platform.bilibili {
  border-color: #00a3d7;
  color: #007ca5;
  background: #dff7ff;
}

.platform.youtube {
  border-color: #d91414;
  color: #c20b0b;
  background: #ffe7e7;
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  align-content: stretch;
}

.download-list > .resource-card {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.resource-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  align-self: start;
  height: auto;
  min-height: 126px;
}

.resource-main {
  display: grid;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}

.resource-icon {
  margin-right: 6px;
}

.game-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(520px, calc(100vh - 210px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.game-list > .game-card {
  flex: 0 0 auto;
  margin-bottom: 0;
}

.game-card {
  grid-template-columns: 72px minmax(0, 1fr) minmax(112px, 220px);
  align-items: center;
  gap: 13px;
  margin: 0;
  min-height: 108px;
  padding: 12px;
}

.game-main {
  display: grid;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}

.game-main h3,
.game-main p {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.game-main h3 {
  -webkit-line-clamp: 1;
}

.game-main p {
  -webkit-line-clamp: 2;
}

.game-badge {
  display: grid;
  place-items: center;
  min-width: 72px;
  min-height: 54px;
  border: 3px solid #684178;
  border-radius: 10px;
  color: #684178;
  background: linear-gradient(180deg, #ffe3f5, #ffc0e5);
  font-weight: 900;
}

.game-cover {
  width: 64px;
  height: 64px;
  object-fit: contain;
  padding: 7px;
  border: 2px solid #9bbcff;
  border-radius: 8px;
  background: linear-gradient(180deg, #e9f5ff, #c9e3ff);
}

.loading-text {
  margin: 0;
  padding: 14px;
  min-width: 0;
  max-width: 100%;
  border: 2px dashed #8bb4ff;
  border-radius: 8px;
  background: #f7fbff;
  color: var(--xp-muted);
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.video-grid > .loading-text,
.card-grid > .loading-text,
.game-list > .loading-text {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 126px;
  color: #174176;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(232, 245, 255, 0.96)),
    repeating-linear-gradient(90deg, rgba(59, 128, 226, 0.08) 0 1px, transparent 1px 18px);
  box-shadow: inset 1px 1px 0 #fff, 3px 3px 0 rgba(0, 60, 158, 0.12);
  text-align: center;
}

.content-list > .loading-text {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  color: #174176;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(232, 245, 255, 0.96)),
    repeating-linear-gradient(90deg, rgba(59, 128, 226, 0.08) 0 1px, transparent 1px 18px);
  box-shadow: inset 1px 1px 0 #fff, 3px 3px 0 rgba(0, 60, 158, 0.12);
}

.content-list > .loading-text::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 2px solid #285fb8;
  border-radius: 6px;
  color: #004aa2;
  background: linear-gradient(180deg, #fff7b7, #90d6ff);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.82), 2px 2px 0 rgba(0, 60, 158, 0.18);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 1px 1px 0 #fff;
}

.notepad-window {
  background: #f6f6f6;
}

.notepad-menu {
  padding: 7px 12px;
  border-bottom: 1px solid #c7c7c7;
  color: #222;
  background: #efefef;
  font-size: 13px;
}

.notepad-paper {
  background:
    repeating-linear-gradient(180deg, #fff 0 34px, #d6ecff 35px),
    #fff;
}

.welcome-status-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.welcome-status-copy strong {
  color: #073a91;
  font-size: 17px;
  line-height: 1.25;
}

.welcome-status-copy p {
  margin: 0;
  color: var(--xp-muted);
  line-height: 1.55;
}

.recent-update-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.recent-panel li > .recent-update-link {
  grid-column: 1 / -1;
}

.recent-update-link > span:last-child {
  min-width: 0;
}

.recent-update-link strong,
.recent-update-link small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-update-link:hover strong {
  color: #073a91;
  text-decoration: underline;
}

.chatroom-window {
  width: min(742px, 100%);
  display: grid;
  grid-template-rows: auto auto minmax(220px, 1fr) auto auto;
  max-height: calc(100dvh - 168px);
  margin-top: 24px;
  background: #f5efe4;
}

.chatroom-title-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-radius: 0;
  background-color: transparent;
}

.chatroom-header {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) minmax(0, 220px);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-bottom: 2px solid #d1c8b7;
  background: #f4ecdf;
}

.chatroom-avatar {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border: 2px solid #9da1a6;
  border-radius: 6px;
  background: #eef6ff;
  image-rendering: auto;
  box-shadow: inset 1px 1px 0 #fff, 2px 2px 0 rgba(0, 50, 120, 0.16);
}

.chatroom-nickname-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  min-width: 0;
  font-weight: 900;
}

.chatroom-nickname-row strong {
  min-width: 0;
  color: #0f6d2f;
  overflow-wrap: anywhere;
}

.chat-nickname-button {
  padding: 7px 12px;
}

.chatroom-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  max-width: min(220px, 100%);
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chatroom-status span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.chatroom-log {
  height: auto;
  min-height: min(34vh, 300px);
  margin: 0 16px;
  padding: 16px;
  overflow: auto;
  border: 2px inset #acb3bd;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.96)),
    repeating-linear-gradient(0deg, #fdfdfd 0 31px, #f3f6fa 31px 32px);
  scrollbar-color: #8db7ef #e9eef7;
}

.chat-system-message {
  margin: 4px 0 18px;
  color: #9a9a9a;
  text-align: center;
  font-weight: 900;
}

.chat-message {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  margin-bottom: 12px;
  max-width: 76%;
}

.chat-message.is-own {
  grid-template-columns: minmax(0, 1fr) 38px;
  margin-left: auto;
  margin-right: 2px;
}

.chat-message.is-own .chat-message-avatar {
  grid-column: 2;
  grid-row: 1;
}

.chat-message.is-own .chat-message-body {
  grid-column: 1;
  grid-row: 1;
  align-items: end;
  justify-items: end;
}

.chat-message-avatar {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border: 2px solid #4b6782;
  border-radius: 7px;
  background: #dff8ff;
}

.chat-message-body {
  display: grid;
  gap: 3px;
  justify-items: start;
  min-width: 0;
}

.chat-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  min-width: 0;
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.chat-message-meta strong {
  color: #1c74d5;
  overflow-wrap: anywhere;
}

.chat-message.is-own .chat-message-meta {
  justify-content: flex-end;
  justify-self: end;
  text-align: right;
}

.chat-message.is-own .chat-message-meta strong {
  color: #128746;
}

.chat-bubble {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 7px 11px;
  border: 2px solid #bdd3e8;
  border-radius: 9px;
  color: #1b2c42;
  background: #f9fdff;
  box-shadow: 2px 2px 0 rgba(35, 98, 160, 0.1);
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-message.is-own .chat-bubble {
  justify-self: end;
  border-color: #98ce8f;
  color: #173b1d;
  background: #dff8d5;
  box-shadow: 2px 2px 0 rgba(44, 133, 62, 0.13);
}

.chatroom-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(132px, 180px);
  gap: 10px;
  align-items: stretch;
  padding: 14px 16px 10px;
  background: #f5efe4;
}

.chatroom-compose textarea {
  width: 100%;
  min-height: 64px;
  max-height: 132px;
  resize: vertical;
  padding: 10px 12px;
  border: 2px inset #b9bdc5;
  border-radius: 4px;
  color: var(--xp-text);
  background: #fff;
  font: inherit;
  line-height: 1.45;
  caret-color: auto;
}

.chatroom-counter {
  align-self: end;
  min-width: 54px;
  padding-bottom: 7px;
  color: #7a7a7a;
  text-align: right;
  font-weight: 900;
}

.chat-send-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 132px;
  max-width: 100%;
  font-size: 20px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chat-send-button span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.send-bubble-icon {
  position: relative;
  width: 34px;
  height: 27px;
  border: 2px solid #315a82;
  border-radius: 10px;
  background: #eefaff;
}

.send-bubble-icon::before,
.send-bubble-icon::after {
  content: "";
  position: absolute;
  top: 11px;
  width: 4px;
  height: 4px;
  background: #315a82;
}

.send-bubble-icon::before {
  left: 9px;
  box-shadow: 7px 0 0 #315a82;
}

.send-bubble-icon::after {
  left: 5px;
  top: auto;
  bottom: -8px;
  width: 12px;
  height: 12px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.chatroom-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  padding: 0 16px 12px;
  color: #333;
  font-size: 14px;
  font-weight: 900;
}

#chat-feedback {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.chatroom-footer .is-error {
  color: #c51f16;
}

.chatroom-autoscroll {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
}

.chatroom-autoscroll input {
  width: 18px;
  height: 18px;
  accent-color: #2f89e8;
}

.about-window {
  width: min(760px, calc(100% - 24px));
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(255, 183, 213, 0.23), transparent 40%),
    #fff;
}

.profile-avatar {
  display: grid;
  place-items: center;
  min-height: 168px;
  overflow: hidden;
  border: 3px solid #6fa1e8;
  border-radius: 8px;
  background: repeating-linear-gradient(45deg, #eaf3ff 0 10px, #fff 10px 20px);
}

.profile-avatar-image {
  width: min(164px, 92%);
  aspect-ratio: 1;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(7px 7px 0 rgba(0, 60, 158, 0.2));
}

.pixel-face {
  position: relative;
  width: 104px;
  height: 104px;
  box-shadow: 7px 7px 0 rgba(0, 60, 158, 0.2);
}

.profile-info dl {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  min-width: 0;
}

.profile-info,
.profile-info dl,
.profile-info dl div {
  max-width: 100%;
}

.profile-info dl div {
  display: grid;
  grid-template-columns: minmax(100px, max-content) minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  min-width: 0;
}

.profile-info dt {
  color: #073a91;
  font-weight: 900;
}

.profile-info dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.about-copy {
  margin: 0;
  padding: 12px;
  border: 2px dashed #8bb4ff;
  border-radius: 7px;
  background: #f7fbff;
  line-height: 1.8;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.xp-taskbar {
  position: sticky;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  min-height: 40px;
  padding: 3px 8px;
  overflow: hidden;
  color: #fff;
  border-top: 2px solid #62afff;
  background:
    linear-gradient(180deg, rgba(89, 172, 255, 0.55) 0 2px, transparent 2px),
    linear-gradient(180deg, #2278f1 0%, #0d55d6 48%, #07369b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48), 0 -2px 0 rgba(1, 43, 135, 0.42);
}

.start-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: min(180px, 42vw);
  min-height: 30px;
  padding: 5px 12px;
  overflow: hidden;
  border-color: #0a9b5a;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(180deg, #54e0b0 0%, #18aa70 46%, #077549 100%);
  font-weight: 900;
  text-shadow: 1px 1px 0 #064e35;
}

.start-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.start-button.active {
  background: linear-gradient(180deg, #7cf3bc 0%, #1e9a61 48%, #065e33 100%);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.34), inset -2px -2px 0 rgba(0, 45, 24, 0.55);
}

.start-windows-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(1px 1px 0 rgba(0, 45, 25, 0.45));
}

  .taskbar-tabs {
    display: flex;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }

.taskbar-tabs,
.filter-row,
.topbar-actions,
.category-panel {
  scrollbar-width: none;
}

.taskbar-tabs::-webkit-scrollbar,
.filter-row::-webkit-scrollbar,
.topbar-actions::-webkit-scrollbar,
.category-panel::-webkit-scrollbar {
  display: none;
}

  .taskbar-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 160px;
    overflow: hidden;
  min-height: 30px;
  padding: 5px 10px;
  color: #fff;
  border-color: #07358f;
  border-radius: 5px;
  background: linear-gradient(180deg, #4a9bff 0%, #176adf 48%, #0b3fa8 100%);
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.55), inset -1px -1px 0 rgba(0, 32, 112, 0.42), 1px 1px 0 rgba(0, 0, 0, 0.22);
}

.taskbar-tabs button > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.taskbar-tabs button.active {
  background: linear-gradient(180deg, #70b5ff 0%, #2f77df 44%, #0c459f 100%);
}

.mini-icon,
.tray-icon {
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.25));
}

.taskbar-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  image-rendering: auto;
}

.taskbar-icon-knowledge {
  background-image: url("../assets/images/icon-window-knowledge-64.png");
}

.taskbar-icon-videos {
  background-image: url("../assets/images/icon-window-videos-64.png");
}

.taskbar-icon-resources {
  background-image: url("../assets/images/icon-window-resources-64.png");
}

.taskbar-icon-games {
  background-image: url("../assets/images/icon-window-games-64.png");
}

.taskbar-icon-blog {
  background-image: url("../assets/images/icon-window-blog-64.png");
}

.taskbar-icon-about {
  background-image: url("../assets/images/icon-window-about-64.png");
}

.chat-mini-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  background: url("../assets/images/icon-chatroom-clean.png") center / contain no-repeat;
}

.status-tray {
  gap: 9px;
  min-width: max-content;
  padding: 6px 10px;
  border: 1px solid rgba(162, 210, 255, 0.75);
  background: rgba(8, 48, 135, 0.55);
  font-size: 13px;
  font-weight: 900;
  text-shadow: 1px 1px 0 #002b8b;
}

.online-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #35ee62;
  box-shadow: 0 0 0 2px rgba(83, 255, 99, 0.18), 0 0 8px #53ff63;
  animation: blink 1200ms infinite;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 90, 0.22);
}

.welcome-window {
  width: min(760px, calc(100vw - 28px));
  margin: 0;
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.welcome-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  padding: 20px;
  background: #fff;
}

.welcome-main,
.recent-panel {
  min-width: 0;
}

.welcome-main h2,
.recent-panel h3,
.welcome-main h3 {
  margin: 0;
  color: #12294d;
  font-weight: 900;
}

.welcome-main h2 {
  font-size: 26px;
}

.welcome-note {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
}

.monitor-icon {
  width: 60px;
  height: 50px;
  border: 5px solid #29313a;
  border-radius: 6px;
  background: linear-gradient(135deg, #89eaff, #2574dc);
}

.monitor-icon::before,
.monitor-icon::after {
  content: "";
  position: absolute;
  background: #29313a;
}

.monitor-icon::before {
  left: 22px;
  bottom: -12px;
  width: 16px;
  height: 12px;
}

.monitor-icon::after {
  left: 12px;
  bottom: -17px;
  width: 36px;
  height: 5px;
}

.welcome-note p {
  margin: 0;
  color: #34405a;
  line-height: 1.55;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.dashed-line {
  margin: 6px 0 16px;
  border-top: 2px dashed #d1d7e1;
}

.quick-links {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.quick-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 9px 14px;
  border: 2px solid #7088a8;
  border-radius: 6px;
  color: #1b2d4c;
  font-weight: 900;
  text-align: left;
}

.quick-link.green {
  background: linear-gradient(180deg, #eafff0, #beeecd);
}

.quick-link.blue {
  background: linear-gradient(180deg, #edf5ff, #cbdfff);
}

.quick-link.pink {
  background: linear-gradient(180deg, #fff1fb, #f5c9e8);
}

.quick-link b,
.more-button b {
  font-size: 28px;
  line-height: 1;
}

.recent-panel {
  padding: 16px;
  border: 2px solid #c4ccd7;
  border-radius: 6px;
  background: #fbfbfb;
  align-self: start;
  max-height: 100%;
  overflow: hidden;
}

.recent-panel h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #174ca8;
}

.recent-panel em {
  padding: 2px 6px;
  border: 2px solid #ffc24b;
  border-radius: 5px;
  color: #fff;
  background: linear-gradient(180deg, #ffe16d, #ffad28);
  font-size: 12px;
  font-style: normal;
  text-shadow: 1px 1px 0 #bf7000;
}

.recent-panel ul {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.recent-panel li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.update-icon {
  font-size: 22px;
}

.recent-panel strong {
  display: block;
  color: #33415c;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-panel small {
  display: block;
  margin-top: 4px;
  color: #66728b;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.more-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.recent-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.rss-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding-inline: 10px;
}

.rss-icon {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 18px;
  border: 1px solid #0c45a8;
  border-radius: 3px;
  color: #fff;
  background: #ff8a24;
  font-size: 10px;
  line-height: 1;
  text-shadow: 1px 1px 0 rgba(120, 45, 0, 0.7);
}

.modal-window {
  width: min(720px, 100%);
  margin: 0;
  max-height: calc(100vh - 36px);
  overflow: auto;
}

#video-modal .modal-window {
  width: min(920px, calc(100vw - 32px));
  min-width: min(420px, calc(100vw - 32px));
  min-height: 360px;
  resize: both;
}

#video-modal.is-video-maximized {
  align-items: stretch;
  justify-items: stretch;
  padding: 8px;
}

#video-modal.is-video-maximized .modal-window {
  display: flex;
  flex-direction: column;
  width: calc(100vw - 16px);
  height: calc(100dvh - 16px);
  max-height: calc(100dvh - 16px);
  resize: none;
  overflow: hidden;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 14px;
  border: 3px solid #222;
  background: #111;
  overflow: hidden;
}

#video-modal.is-video-maximized .video-frame {
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
}

.video-embed-shell {
  --video-top-hotzone: clamp(64px, 14%, 96px);
  --video-bottom-hotzone: clamp(74px, 15%, 112px);
  --video-center-half: clamp(54px, 8vw, 86px);
  --video-left-hotzone: clamp(78px, 13vw, 142px);
  --video-right-hotzone: clamp(126px, 23vw, 260px);
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.video-embed-shell::before,
.video-embed-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  transition: opacity 140ms ease;
}

.video-embed-shell::before {
  top: 0;
  height: var(--video-top-hotzone);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

.video-embed-shell::after {
  bottom: 0;
  height: var(--video-bottom-hotzone);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0));
}

.video-embed-shell:hover::before,
.video-embed-shell:hover::after,
.video-embed-shell:focus-within::before,
.video-embed-shell:focus-within::after {
  opacity: 0;
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-click-shield {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.video-click-shield span {
  position: absolute;
  display: block;
  background: rgba(0, 0, 0, 0.001);
  cursor: default;
  pointer-events: auto;
}

.video-click-blocker--middle-left {
  top: var(--video-top-hotzone);
  right: calc(50% + var(--video-center-half));
  bottom: var(--video-bottom-hotzone);
  left: 0;
}

.video-click-blocker--middle-right {
  top: var(--video-top-hotzone);
  right: 0;
  bottom: var(--video-bottom-hotzone);
  left: calc(50% + var(--video-center-half));
}

.video-click-blocker--middle-top {
  top: var(--video-top-hotzone);
  right: calc(50% - var(--video-center-half));
  bottom: calc(50% + var(--video-center-half));
  left: calc(50% - var(--video-center-half));
}

.video-click-blocker--middle-bottom {
  top: calc(50% + var(--video-center-half));
  right: calc(50% - var(--video-center-half));
  bottom: var(--video-bottom-hotzone);
  left: calc(50% - var(--video-center-half));
}

.video-click-blocker--bottom-center {
  right: var(--video-right-hotzone);
  bottom: 0;
  left: var(--video-left-hotzone);
  height: var(--video-bottom-hotzone);
}

.video-placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  height: 100%;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(36, 94, 220, 0.6), rgba(255, 183, 213, 0.45)),
    repeating-linear-gradient(0deg, #1c1c1c 0 8px, #252525 8px 16px);
}

.video-placeholder span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 3px solid #fff;
  border-radius: 50%;
  font-size: 28px;
  text-indent: 4px;
}

.video-placeholder p {
  margin: 12px 16px 0;
}

.modal-window .xp-button {
  display: inline-flex;
  margin: 0 14px 14px;
}

.video-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 14px 14px;
}

.video-modal-actions .xp-button {
  margin: 0;
}

.page-home {
  max-width: 100vw;
  overflow-x: hidden;
  background: #65b7f0;
}

.wallpaper-root {
  position: absolute;
  inset: 0;
  z-index: 0;
  max-width: 100vw;
  overflow: hidden;
  pointer-events: none;
  background: #65b7f0;
}

.wallpaper-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--wallpaper-stage-width, 100%);
  height: var(--wallpaper-stage-height, 100%);
  overflow: hidden;
  transform: translate3d(-50%, -50%, 0);
  transform-origin: center;
  backface-visibility: hidden;
  contain: layout paint style;
}

.wallpaper-base {
  position: absolute;
  inset: 0;
  background: url("../assets/images/wallpapers/day.png?v=20260612-hd-wallpapers") center / 100% 100% no-repeat;
  image-rendering: pixelated;
}

.wallpaper-root[data-time="morning"] .wallpaper-base {
  background-image: url("../assets/images/wallpaper-dynamic/morning/base-clean.png?v=20260615-cloud-residual-fix");
}

.wallpaper-root[data-time="day"] .wallpaper-base {
  background-image: url("../assets/images/wallpaper-dynamic/day/base-clean.png?v=20260615-cloud-residual-fix");
}

.wallpaper-root[data-time="dusk"] .wallpaper-base {
  background-image: url("../assets/images/wallpaper-dynamic/dusk/base-clean.png?v=20260615-cloud-residual-fix");
}

.wallpaper-root[data-time="night"] .wallpaper-base {
  background-image: url("../assets/images/wallpaper-dynamic/night/base-clean.png?v=20260615-cloud-residual-fix");
}

.wallpaper-cloud,
.wallpaper-tree-canopy,
.wallpaper-tv-static,
.wallpaper-tv-girl,
.wallpaper-stars,
.wallpaper-water-shimmer {
  position: absolute;
  display: none;
  pointer-events: none;
  will-change: transform, opacity;
}

.wallpaper-cloud {
  z-index: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  image-rendering: pixelated;
  opacity: var(--cloud-opacity, 0.9);
  transform: translate3d(var(--cloud-from-x, 0), var(--cloud-from-y, 0), 0);
  backface-visibility: hidden;
  contain: layout paint style;
}

.wallpaper-root[data-time="morning"] .wallpaper-cloud-morning,
.wallpaper-root[data-time="day"] .wallpaper-cloud-day,
.wallpaper-root[data-time="dusk"] .wallpaper-cloud-dusk,
.wallpaper-root[data-time="night"] .wallpaper-cloud-night {
  display: block;
  animation: wallpaper-cloud-drift var(--cloud-duration, 160s) linear infinite alternate;
  animation-delay: var(--cloud-delay, 0s);
  animation-fill-mode: both;
}

.wallpaper-root[data-paused="true"] .wallpaper-cloud {
  animation-play-state: paused;
}

.wallpaper-root[data-motion="reduced"][data-time="morning"] .wallpaper-base,
.wallpaper-root[data-motion="off"][data-time="morning"] .wallpaper-base {
  background-image: url("../assets/images/wallpapers/morning.png?v=20260612-hd-wallpapers");
}

.wallpaper-root[data-motion="reduced"][data-time="day"] .wallpaper-base,
.wallpaper-root[data-motion="off"][data-time="day"] .wallpaper-base {
  background-image: url("../assets/images/wallpapers/day.png?v=20260612-hd-wallpapers");
}

.wallpaper-root[data-motion="reduced"][data-time="dusk"] .wallpaper-base,
.wallpaper-root[data-motion="off"][data-time="dusk"] .wallpaper-base {
  background-image: url("../assets/images/wallpapers/dusk.png?v=20260612-hd-wallpapers");
}

.wallpaper-root[data-motion="reduced"][data-time="night"] .wallpaper-base,
.wallpaper-root[data-motion="off"][data-time="night"] .wallpaper-base {
  background-image: url("../assets/images/wallpapers/night.png?v=20260612-hd-wallpapers");
}

.wallpaper-root[data-motion="reduced"] .wallpaper-cloud,
.wallpaper-root[data-motion="off"] .wallpaper-cloud {
  display: none !important;
  animation: none !important;
}

.wallpaper-cloud-morning-top-left {
  left: 9.270%;
  top: 9.564%;
  width: 15.684%;
  height: 8.510%;
  --cloud-duration: 21s;
  --cloud-delay: -24s;
  --cloud-from-x: -9%;
  --cloud-to-x: 11%;
  --cloud-from-y: 0.1%;
  --cloud-to-y: 0.4%;
  --cloud-opacity: 0.94;
  background-image: url("../assets/images/wallpaper-dynamic/morning/cloud-top-left.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-morning-high-left {
  left: 23.864%;
  top: 34.219%;
  width: 4.306%;
  height: 2.857%;
  --cloud-duration: 15s;
  --cloud-delay: -47s;
  --cloud-from-x: -18%;
  --cloud-to-x: 20%;
  --cloud-from-y: -0.1%;
  --cloud-to-y: 0.4%;
  --cloud-opacity: 0.86;
  background-image: url("../assets/images/wallpaper-dynamic/morning/cloud-high-left.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-morning-top-right {
  left: 80.562%;
  top: 10.414%;
  width: 14.167%;
  height: 8.123%;
  --cloud-duration: 22s;
  --cloud-delay: -63s;
  --cloud-from-x: -11%;
  --cloud-to-x: 9%;
  --cloud-from-y: 0;
  --cloud-to-y: 0.4%;
  --cloud-opacity: 0.94;
  background-image: url("../assets/images/wallpaper-dynamic/morning/cloud-top-right.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-morning-upper-right {
  left: 72.069%;
  top: 20.404%;
  width: 10.063%;
  height: 5.394%;
  --cloud-duration: 18s;
  --cloud-delay: -34s;
  --cloud-from-x: -16%;
  --cloud-to-x: 14%;
  --cloud-from-y: -0.1%;
  --cloud-to-y: 0.4%;
  --cloud-opacity: 0.90;
  background-image: url("../assets/images/wallpaper-dynamic/morning/cloud-upper-right.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-morning-left-mid {
  left: 4.964%;
  top: 47.609%;
  width: 9.464%;
  height: 5.377%;
  --cloud-duration: 17s;
  --cloud-delay: -58s;
  --cloud-from-x: -13%;
  --cloud-to-x: 17%;
  --cloud-from-y: 0.1%;
  --cloud-to-y: -0.2%;
  --cloud-opacity: 0.88;
  background-image: url("../assets/images/wallpaper-dynamic/morning/cloud-left-mid.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-morning-center-mid {
  left: 30.263%;
  top: 43.677%;
  width: 5.116%;
  height: 3.496%;
  --cloud-duration: 14s;
  --cloud-delay: -26s;
  --cloud-from-x: -22%;
  --cloud-to-x: 22%;
  --cloud-from-y: 0.1%;
  --cloud-to-y: 0.4%;
  --cloud-opacity: 0.84;
  background-image: url("../assets/images/wallpaper-dynamic/morning/cloud-center-mid.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-morning-right-mid {
  left: 64.892%;
  top: 41.764%;
  width: 5.510%;
  height: 4.096%;
  --cloud-duration: 15s;
  --cloud-delay: -41s;
  --cloud-from-x: -20%;
  --cloud-to-x: 18%;
  --cloud-from-y: -0.1%;
  --cloud-to-y: 0.3%;
  --cloud-opacity: 0.86;
  background-image: url("../assets/images/wallpaper-dynamic/morning/cloud-right-mid.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-day-top-left {
  left: 10.825%;
  top: 12.752%;
  width: 16.806%;
  height: 10.202%;
  --cloud-duration: 19s;
  --cloud-delay: -29s;
  --cloud-from-x: -10%;
  --cloud-to-x: 12%;
  --cloud-from-y: 0.1%;
  --cloud-to-y: 0.5%;
  --cloud-opacity: 0.95;
  background-image: url("../assets/images/wallpaper-dynamic/day/cloud-top-left.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-day-top-center {
  left: 69.498%;
  top: 24.654%;
  width: 10.407%;
  height: 6.588%;
  --cloud-duration: 16s;
  --cloud-delay: -53s;
  --cloud-from-x: -18%;
  --cloud-to-x: 16%;
  --cloud-from-y: -0.1%;
  --cloud-to-y: 0.4%;
  --cloud-opacity: 0.88;
  background-image: url("../assets/images/wallpaper-dynamic/day/cloud-top-center.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-day-top-right {
  left: 80.981%;
  top: 13.390%;
  width: 15.490%;
  height: 9.883%;
  --cloud-duration: 20s;
  --cloud-delay: -13s;
  --cloud-from-x: -12%;
  --cloud-to-x: 10%;
  --cloud-from-y: 0;
  --cloud-to-y: 0.5%;
  --cloud-opacity: 0.94;
  background-image: url("../assets/images/wallpaper-dynamic/day/cloud-top-right.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-day-mid-left {
  left: 34.091%;
  top: 44.952%;
  width: 5.861%;
  height: 4.995%;
  --cloud-duration: 13s;
  --cloud-delay: -19s;
  --cloud-from-x: -24%;
  --cloud-to-x: 25%;
  --cloud-from-y: 0.2%;
  --cloud-to-y: -0.3%;
  --cloud-opacity: 0.82;
  background-image: url("../assets/images/wallpaper-dynamic/day/cloud-mid-left.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-day-mid-right {
  left: 61.184%;
  top: 39.426%;
  width: 6.220%;
  height: 5.314%;
  --cloud-duration: 14s;
  --cloud-delay: -43s;
  --cloud-from-x: -22%;
  --cloud-to-x: 21%;
  --cloud-from-y: -0.2%;
  --cloud-to-y: 0.4%;
  --cloud-opacity: 0.84;
  background-image: url("../assets/images/wallpaper-dynamic/day/cloud-mid-right.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-dusk-top-left {
  left: 9.330%;
  top: 9.564%;
  width: 15.632%;
  height: 8.697%;
  --cloud-duration: 22s;
  --cloud-delay: -31s;
  --cloud-from-x: -9%;
  --cloud-to-x: 11%;
  --cloud-from-y: 0.1%;
  --cloud-to-y: 0.4%;
  --cloud-opacity: 0.92;
  background-image: url("../assets/images/wallpaper-dynamic/dusk/cloud-top-left.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-dusk-high-left {
  left: 23.923%;
  top: 34.431%;
  width: 4.306%;
  height: 2.857%;
  --cloud-duration: 15s;
  --cloud-delay: -49s;
  --cloud-from-x: -18%;
  --cloud-to-x: 20%;
  --cloud-from-y: -0.1%;
  --cloud-to-y: 0.4%;
  --cloud-opacity: 0.82;
  background-image: url("../assets/images/wallpaper-dynamic/dusk/cloud-high-left.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-dusk-top-right {
  left: 80.562%;
  top: 10.414%;
  width: 14.167%;
  height: 8.302%;
  --cloud-duration: 23s;
  --cloud-delay: -68s;
  --cloud-from-x: -11%;
  --cloud-to-x: 9%;
  --cloud-from-y: 0;
  --cloud-to-y: 0.4%;
  --cloud-opacity: 0.92;
  background-image: url("../assets/images/wallpaper-dynamic/dusk/cloud-top-right.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-dusk-upper-right {
  left: 72.010%;
  top: 20.616%;
  width: 10.120%;
  height: 5.494%;
  --cloud-duration: 18s;
  --cloud-delay: -35s;
  --cloud-from-x: -16%;
  --cloud-to-x: 14%;
  --cloud-from-y: -0.1%;
  --cloud-to-y: 0.4%;
  --cloud-opacity: 0.88;
  background-image: url("../assets/images/wallpaper-dynamic/dusk/cloud-upper-right.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-dusk-left-mid {
  left: 5.024%;
  top: 47.928%;
  width: 9.464%;
  height: 5.084%;
  --cloud-duration: 17s;
  --cloud-delay: -60s;
  --cloud-from-x: -13%;
  --cloud-to-x: 17%;
  --cloud-from-y: 0.1%;
  --cloud-to-y: -0.2%;
  --cloud-opacity: 0.84;
  background-image: url("../assets/images/wallpaper-dynamic/dusk/cloud-left-mid.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-dusk-center-mid {
  left: 30.323%;
  top: 43.996%;
  width: 5.116%;
  height: 3.396%;
  --cloud-duration: 14s;
  --cloud-delay: -28s;
  --cloud-from-x: -22%;
  --cloud-to-x: 22%;
  --cloud-from-y: 0.1%;
  --cloud-to-y: 0.4%;
  --cloud-opacity: 0.80;
  background-image: url("../assets/images/wallpaper-dynamic/dusk/cloud-center-mid.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-dusk-right-mid {
  left: 64.892%;
  top: 41.977%;
  width: 5.566%;
  height: 4.096%;
  --cloud-duration: 15s;
  --cloud-delay: -43s;
  --cloud-from-x: -20%;
  --cloud-to-x: 18%;
  --cloud-from-y: -0.1%;
  --cloud-to-y: 0.3%;
  --cloud-opacity: 0.82;
  background-image: url("../assets/images/wallpaper-dynamic/dusk/cloud-right-mid.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-night-top-right {
  left: 79.964%;
  top: 9.989%;
  width: 15.222%;
  height: 8.570%;
  --cloud-duration: 23s;
  --cloud-delay: -44s;
  --cloud-from-x: -10%;
  --cloud-to-x: 8%;
  --cloud-from-y: 0;
  --cloud-to-y: 0.4%;
  --cloud-opacity: 0.92;
  background-image: url("../assets/images/wallpaper-dynamic/night/cloud-top-right.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-night-upper-right {
  left: 71.053%;
  top: 21.254%;
  width: 10.794%;
  height: 5.294%;
  --cloud-duration: 19s;
  --cloud-delay: -66s;
  --cloud-from-x: -15%;
  --cloud-to-x: 13%;
  --cloud-from-y: -0.1%;
  --cloud-to-y: 0.3%;
  --cloud-opacity: 0.88;
  background-image: url("../assets/images/wallpaper-dynamic/night/cloud-upper-right.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-night-left-mid {
  left: 3.828%;
  top: 35.813%;
  width: 11.170%;
  height: 7.137%;
  --cloud-duration: 18s;
  --cloud-delay: -25s;
  --cloud-from-x: -12%;
  --cloud-to-x: 15%;
  --cloud-from-y: 0.1%;
  --cloud-to-y: -0.2%;
  --cloud-opacity: 0.86;
  background-image: url("../assets/images/wallpaper-dynamic/night/cloud-left-mid.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-night-high-left {
  left: 22.368%;
  top: 33.156%;
  width: 4.421%;
  height: 2.652%;
  --cloud-duration: 15s;
  --cloud-delay: -52s;
  --cloud-from-x: -20%;
  --cloud-to-x: 19%;
  --cloud-from-y: 0;
  --cloud-to-y: 0.3%;
  --cloud-opacity: 0.76;
  background-image: url("../assets/images/wallpaper-dynamic/night/cloud-high-left.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-night-center-mid {
  left: 28.589%;
  top: 43.571%;
  width: 5.172%;
  height: 2.697%;
  --cloud-duration: 14s;
  --cloud-delay: -37s;
  --cloud-from-x: -21%;
  --cloud-to-x: 20%;
  --cloud-from-y: -0.1%;
  --cloud-to-y: 0.2%;
  --cloud-opacity: 0.78;
  background-image: url("../assets/images/wallpaper-dynamic/night/cloud-center-mid.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-night-right-mid {
  left: 65.490%;
  top: 42.827%;
  width: 5.004%;
  height: 3.496%;
  --cloud-duration: 16s;
  --cloud-delay: -18s;
  --cloud-from-x: -19%;
  --cloud-to-x: 18%;
  --cloud-from-y: 0;
  --cloud-to-y: 0.3%;
  --cloud-opacity: 0.80;
  background-image: url("../assets/images/wallpaper-dynamic/night/cloud-right-mid.png?v=20260615-all-clouds-natural");
}

.wallpaper-cloud-night-left-low {
  left: 2.512%;
  top: 47.821%;
  width: 4.421%;
  height: 2.346%;
  --cloud-duration: 17s;
  --cloud-delay: -72s;
  --cloud-from-x: -16%;
  --cloud-to-x: 17%;
  --cloud-from-y: 0.1%;
  --cloud-to-y: 0.3%;
  --cloud-opacity: 0.76;
  background-image: url("../assets/images/wallpaper-dynamic/night/cloud-left-low.png?v=20260615-all-clouds-natural");
}

@keyframes wallpaper-cloud-drift {
  from {
    transform: translate3d(var(--cloud-from-x), var(--cloud-from-y), 0);
  }

  to {
    transform: translate3d(var(--cloud-to-x), var(--cloud-to-y), 0);
  }
}

.wallpaper-tv-static {
  left: 69.9%;
  top: 56.4%;
  width: 5.1%;
  height: 7.25%;
  overflow: hidden;
  border-radius: 2px;
  opacity: 0.62;
  mix-blend-mode: screen;
  transform: translate3d(-50%, -50%, 0);
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.62) 0 1px, rgba(24, 27, 36, 0.8) 1px 2px, rgba(225, 230, 242, 0.7) 2px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 1px, rgba(0, 0, 0, 0.36) 1px 3px);
  background-size: 7px 7px, 5px 5px;
}

.wallpaper-tv-static::before,
.wallpaper-tv-static::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    radial-gradient(circle at 20% 32%, rgba(255, 255, 255, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 58%, rgba(255, 255, 255, 0.85) 0 1px, transparent 2px),
    radial-gradient(circle at 44% 76%, rgba(10, 12, 18, 0.9) 0 1px, transparent 2px);
}

.wallpaper-tv-static::after {
  opacity: 0.38;
  transform: translate3d(2px, -1px, 0);
}

.wallpaper-tv-girl {
  left: 69.9%;
  top: 56.4%;
  width: 4.4%;
  height: 7.2%;
  opacity: 0;
  transform: translate3d(-50%, -52%, 0);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 232, 235, 0.95) 0 16%, transparent 17%),
    linear-gradient(90deg, transparent 0 26%, rgba(20, 20, 34, 0.9) 27% 40%, rgba(255, 230, 236, 0.95) 41% 59%, rgba(20, 20, 34, 0.9) 60% 73%, transparent 74%),
    linear-gradient(180deg, transparent 0 36%, rgba(74, 34, 92, 0.86) 37% 78%, transparent 79%);
}

.wallpaper-stars {
  display: none;
  width: 0.22%;
  height: 0.38%;
  color: rgba(230, 240, 255, 0.82);
  background: currentColor;
  box-shadow:
    7vw 4vh 0 currentColor,
    18vw 16vh 0 currentColor,
    32vw 8vh 0 currentColor,
    48vw 20vh 0 currentColor,
    62vw 7vh 0 currentColor,
    78vw 15vh 0 currentColor,
    92vw 8vh 0 currentColor;
}

.wallpaper-stars-a {
  left: 4%;
  top: 6%;
}

.wallpaper-stars-b {
  left: 10%;
  top: 19%;
  opacity: 0.48;
}

.wallpaper-water-shimmer {
  display: none;
  left: 7.2%;
  top: 58.6%;
  width: 31%;
  height: 7%;
  opacity: 0.14;
  background:
    repeating-linear-gradient(178deg, transparent 0 11px, rgba(255, 241, 166, 0.74) 12px 13px, transparent 14px 28px);
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .wallpaper-root[data-time="morning"] .wallpaper-base {
    background-image: url("../assets/images/wallpapers/morning.png?v=20260612-hd-wallpapers");
  }

  .wallpaper-root[data-time="day"] .wallpaper-base {
    background-image: url("../assets/images/wallpapers/day.png?v=20260612-hd-wallpapers");
  }

  .wallpaper-root[data-time="dusk"] .wallpaper-base {
    background-image: url("../assets/images/wallpapers/dusk.png?v=20260612-hd-wallpapers");
  }

  .wallpaper-root[data-time="night"] .wallpaper-base {
    background-image: url("../assets/images/wallpapers/night.png?v=20260612-hd-wallpapers");
  }

  .wallpaper-cloud {
    display: none !important;
    animation: none !important;
  }
}

.pixel-icon,
.monitor-icon {
  width: 92px;
  height: 92px;
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  image-rendering: auto;
  filter: drop-shadow(4px 5px 0 rgba(0, 33, 110, 0.32));
}

.pixel-icon::before,
.pixel-icon::after,
.monitor-icon::before,
.monitor-icon::after {
  content: none !important;
}

.folder-icon {
  background-image: url("../assets/images/icon-knowledge.png") !important;
  background-size: 90px 90px !important;
}

.tv-icon {
  background-image: url("../assets/images/icon-videos.png") !important;
  background-size: 90px 90px !important;
}

.disk-icon {
  background-image: url("../assets/images/icon-resources.png") !important;
  background-size: 90px 90px !important;
}

.game-icon {
  background-image: url("../assets/images/icon-games.png") !important;
  background-size: 102px 102px !important;
}

.chat-icon {
  background-image: url("../assets/images/icon-blog.png") !important;
  background-size: 102px 102px !important;
}

.chatroom-icon {
  background-image: url("../assets/images/icon-chatroom-clean.png") !important;
  margin-bottom: 3px;
  background-size: 70px 70px !important;
}

.avatar-icon {
  background-image: url("../assets/images/lusu-tv-head-desktop-icon.png") !important;
  background-size: 90px 90px !important;
}

.monitor-icon {
  background-image: url("../assets/images/icon-monitor.png") !important;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes cloudFloat {
  0%, 100% {
    margin-left: -10px;
  }
  50% {
    margin-left: 18px;
  }
}

@keyframes iconHop {
  0%, 100% {
    transform: translateY(0);
  }
  45% {
    transform: translateY(-7px);
  }
}

@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (max-width: 980px) {
  .video-card {
    flex-basis: calc((100% - 16px) / 2);
  }

  .desktop-icons {
    top: 324px;
    left: 18px;
    grid-template-columns: repeat(3, 132px);
    grid-auto-rows: 132px;
    gap: 10px;
  }

  .desktop-icon {
    width: 132px;
    height: 128px;
  }

  .desktop-intro {
    width: min(640px, 94vw);
    margin-top: 54px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .xp-topbar {
    position: static;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 10px;
    min-height: 0;
    padding: 6px 8px;
  }

  .topbar-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: visible;
  }

  .account-widget {
    justify-content: flex-end;
    width: auto;
    min-height: 28px;
  }

  .account-button,
  .account-button.signed-in {
    width: auto;
    min-width: 64px;
    max-width: 132px;
    height: 30px;
    padding: 0 8px;
    font-size: 12px;
  }

  .account-popover {
    position: fixed;
    top: 54px;
    right: 10px;
    left: auto;
    width: min(370px, calc(100vw - 20px));
    box-sizing: border-box;
    max-height: calc(100vh - 74px);
    overflow: auto;
    transform: none;
  }

  .account-actions .account-button {
    flex: 1 1 118px;
    max-width: none;
  }

  .account-note {
    overflow-wrap: anywhere;
  }

  .language-switcher {
    justify-content: flex-end;
    width: auto;
    gap: 5px;
  }

  .top-updated {
    display: none;
  }

  .brand-button {
    justify-content: flex-start;
    flex: 0 1 auto;
    gap: 6px;
    width: auto;
    max-width: 42vw;
    font-size: 14px;
  }

  .brand-button span:last-child {
    min-width: 0;
    max-width: 100%;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-orb {
    width: 28px;
    height: 28px;
  }

  .page {
    min-height: 100%;
    padding: 10px;
  }

  .page-home.active {
    display: flex;
    flex-direction: column;
    padding-bottom: 100px;
  }

  .desktop-intro {
    order: 1;
    width: min(100%, 620px);
    margin-top: 38px;
  }

  .desktop-icons {
    order: 2;
    position: relative;
    top: auto;
    left: auto;
    grid-template-columns: repeat(2, minmax(126px, 1fr));
    grid-auto-rows: auto;
    gap: 12px;
    width: min(460px, 100%);
    margin: 38px auto 0;
  }

  .desktop-icon {
    width: auto;
    height: auto;
    min-height: 112px;
    padding: 10px;
    background: transparent;
  }

  .icon-caption {
    display: none;
    width: auto;
  }

  .folder-layout,
  .profile-card,
  .welcome-content {
    grid-template-columns: 1fr;
  }

  .folder-layout {
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
  }

  .knowledge-searchbar {
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 9px 10px;
  }

  .knowledge-searchbar label,
  #knowledge-search-status {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .knowledge-searchbar input {
    height: 36px;
  }

  .article-detail {
    grid-column: 1;
    grid-row: auto;
    padding-bottom: 172px;
  }

  .folder-layout.is-reading .article-detail {
    display: flex;
    flex-direction: column;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 12px 12px 172px;
  }

  .article-reader-sidebar,
  .article-detail-card {
    grid-column: 1;
  }

  .article-reader-sidebar {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px;
    position: static;
    min-height: auto;
    width: 100%;
  }

  body.is-article-reading .article-reader-sidebar {
    min-height: auto;
  }

  .article-toc p {
    padding: 8px 10px;
    font-size: 13px;
  }

  #article-detail-toc-list {
    gap: 3px;
    max-height: 132px;
    padding: 6px;
    overflow: auto;
  }

  .article-toc-link {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 12px;
  }

  .article-toc-tip {
    display: none;
  }

  .article-detail-card {
    flex: 0 0 auto;
    width: 100%;
    padding: 16px 14px 20px;
  }

  .article-detail-head h2 {
    font-size: 23px;
  }

  .article-detail-actions {
    align-items: flex-start;
  }

  .article-read-progress {
    right: 12px;
    bottom: 98px;
    left: 12px;
    padding: 7px 8px;
  }

  body.is-article-reading .article-read-progress {
    grid-template-columns: minmax(0, 1fr) 48px;
    right: 12px;
    bottom: 98px;
    left: 12px;
    min-height: 52px;
    padding: 7px 8px;
  }

  body.is-article-reading .article-read-progress-label span {
    grid-column: 1;
    gap: 6px;
    font-size: 12px;
  }

  body.is-article-reading .article-read-progress-label span::before {
    font-size: 16px;
  }

  body.is-article-reading .article-read-progress-label strong {
    grid-column: 2;
    font-size: 14px;
  }

  body.is-article-reading .article-read-progress-track {
    grid-column: 1 / -1;
  }

  .article-top-link {
    right: 12px;
    bottom: 156px;
    max-width: calc(100vw - 24px);
  }

  body.is-article-reading .article-top-link {
    right: 12px;
    bottom: 166px;
    min-width: 97px;
    max-width: calc(100vw - 24px);
  }

  body.is-article-reading .article-top-link.is-at-article-top {
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
  }

  .article-copy-status {
    width: 100%;
  }

  .category-panel {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 10px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 2px solid #d3d0bd;
  }

  .category-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: min(74vw, 220px);
    min-height: 36px;
    margin: 0;
    padding: 7px 12px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .xp-window {
    width: 100%;
    margin-top: 10px;
    max-height: calc(100vh - 118px);
    overflow: auto;
  }

  .window-titlebar {
    gap: 8px;
    min-height: 36px;
    padding: 5px 6px 5px 9px;
    font-size: 15px;
  }

  .window-titlebar > span {
    overflow: hidden;
  }

  .window-titlebar > span > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .window-controls {
    gap: 5px;
    margin-left: 4px;
  }

  #knowledge .xp-window,
  #videos .xp-window,
  #resources .xp-window,
  #games .xp-window,
  #blog .xp-window {
    width: 100%;
    max-width: 100%;
    height: calc(100dvh - 176px);
    min-height: 0;
    max-height: calc(100dvh - 176px);
    overflow: hidden;
  }

  body.is-article-reading #knowledge .xp-window,
  body.is-article-reading.is-article-window-restored #knowledge .xp-window {
    width: 100%;
    height: calc(100dvh - 176px);
    max-height: calc(100dvh - 176px);
    margin-top: 10px;
  }

  #videos .filter-row,
  #resources .filter-row {
    flex-wrap: nowrap;
    gap: 7px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 8px 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    box-shadow: inset -18px 0 18px -20px rgba(3, 54, 138, 0.72);
  }

  #resources .filter-row {
    flex-wrap: wrap;
    overflow-x: hidden;
    scroll-snap-type: none;
    box-shadow: none;
  }

  .window-toolbar button,
  .filter-row button,
  .card-action,
  .xp-button {
    max-width: 100%;
    white-space: normal;
  }

  #videos .filter-row button,
  #resources .filter-row button {
    flex: 0 0 auto;
    max-width: min(74vw, 220px);
    white-space: nowrap;
    scroll-snap-align: start;
  }

  #resources .filter-row button {
    flex: 1 1 min(154px, calc(50% - 4px));
    justify-content: center;
    max-width: 100%;
    scroll-snap-align: none;
  }

  #videos .filter-row button {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #videos .filter-row button > span:first-child,
  #resources .filter-row button > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #about .xp-window {
    height: auto;
    max-height: calc(100dvh - 176px);
    overflow: auto;
  }

  .profile-card {
    gap: 14px;
    padding: 14px;
  }

  .profile-avatar {
    min-height: 172px;
  }

  .profile-avatar-image {
    width: min(138px, 58vw);
  }

  .video-thumb {
    min-height: 0;
    height: auto;
    max-height: 230px;
    aspect-ratio: 16 / 9;
  }

  .video-body,
  .article-card,
  .article-detail,
  .resource-card,
  .blog-card,
  .game-card,
  .content-list,
  .card-grid,
  .download-list,
  .notepad-paper,
  .game-list {
    padding: 12px;
  }

  .folder-layout.is-reading .article-detail {
    padding-bottom: 172px;
  }

  body.is-article-reading .folder-layout.is-reading .article-detail::after {
    display: none;
  }

  .video-grid {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 12px;
    align-content: start;
    align-items: start;
  }

  .video-empty-state {
    grid-template-columns: 1fr;
    justify-items: start;
    width: 100%;
    padding: 14px;
  }

  .video-empty-state .xp-button {
    width: 100%;
  }

  .resource-empty-state {
    grid-template-columns: 1fr;
    justify-items: start;
    width: 100%;
    padding: 14px;
  }

  .resource-empty-state .xp-button {
    width: 100%;
  }

  .video-card {
    grid-template-rows: auto auto;
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .video-body {
    grid-template-rows: auto;
    grid-auto-rows: auto;
    gap: 7px;
  }

  .video-meta {
    min-height: 0;
  }

  .video-body .card-action,
  .resource-card .card-action {
    width: 100%;
    justify-self: stretch;
  }

  .resource-card,
  .game-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .resource-main h3 {
    -webkit-line-clamp: 3;
    overflow-wrap: anywhere;
  }

  .game-card {
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: start;
  }

  .game-cover {
    justify-self: start;
    width: 62px;
    height: 62px;
  }

  .resource-card .card-action,
  .game-card .card-action {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }

  .game-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }

  .chatroom-window {
    margin-top: 10px;
    max-height: calc(100dvh - 178px);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  }

  .chatroom-header {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
  }

  .chatroom-avatar {
    width: 46px;
    height: 46px;
  }

  .chatroom-status {
    grid-column: 1 / -1;
    justify-content: flex-start;
    min-width: 0;
    font-size: 12px;
  }

  .chatroom-log {
    height: auto;
    min-height: clamp(150px, 24dvh, 220px);
    margin: 0 10px;
    padding: 10px;
  }

  .chat-message {
    max-width: 100%;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 7px;
  }

  .chat-message.is-own {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .chat-message-avatar {
    width: 32px;
    height: 32px;
  }

  .chatroom-compose {
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
  }

  .chatroom-counter {
    justify-self: end;
    align-self: auto;
    padding-bottom: 0;
  }

  .chat-send-button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  .chatroom-footer {
    flex-wrap: wrap;
    padding: 0 10px 10px;
    font-size: 12px;
  }

  .xp-taskbar {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 5px 8px;
  }

  .start-button {
    justify-content: center;
    min-height: 30px;
    padding: 5px 10px;
  }

  .start-windows-icon {
    width: 14px;
    height: 14px;
  }

  .taskbar-tabs {
    justify-content: start;
    gap: 6px;
  }

  .taskbar-tabs button {
    padding: 6px 9px;
    font-size: 12px;
  }

  .status-tray {
    display: none;
  }

  .welcome-window,
  .modal-window {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
    overflow-x: hidden;
  }

  .welcome-window {
    max-height: calc(100dvh - 116px);
  }

  #video-modal .modal-window {
    width: calc(100vw - 20px);
    min-width: 0;
    min-height: 0;
    max-height: calc(100dvh - 20px);
    resize: none;
  }

  #video-modal.is-video-maximized {
    padding: 6px;
  }

  #video-modal.is-video-maximized .modal-window {
    width: calc(100vw - 12px);
    height: calc(100dvh - 32px);
    max-height: calc(100dvh - 32px);
  }

  .welcome-content {
    gap: 12px;
    padding: 14px;
  }

  .recent-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: min(253px, 30dvh);
    padding: 12px;
  }

  .recent-panel ul {
    min-height: 0;
    margin: 10px 0;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-color: #8db7ef #e9eef7;
  }

  .recent-actions {
    align-self: end;
  }

  .welcome-note {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 10px;
    margin: 8px 0;
  }

  .welcome-note .monitor-icon {
    width: 56px;
    height: 56px;
  }

  .welcome-note p {
    font-size: 12px;
    line-height: 1.4;
  }

  .welcome-main h2 {
    font-size: 20px;
  }

  .quick-link {
    min-height: 36px;
    padding: 6px 9px;
    min-width: 0;
  }

  .meta-row,
  .meta-row span,
  .resource-main,
  .video-body,
  .recent-panel li,
  .quick-link span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .modal {
    padding: 10px;
    place-items: start center;
  }

  .video-frame {
    margin: 8px;
  }

  .video-embed-shell {
    --video-top-hotzone: clamp(48px, 16%, 72px);
    --video-bottom-hotzone: clamp(52px, 18%, 86px);
    --video-center-half: clamp(44px, 16vw, 70px);
    --video-left-hotzone: clamp(44px, 18vw, 88px);
    --video-right-hotzone: clamp(64px, 24vw, 120px);
  }

  .modal-window .xp-button {
    margin: 0 10px 10px;
  }

  .video-modal-actions {
    margin: 0 8px 8px;
  }

  .video-modal-actions .xp-button {
    width: 100%;
    justify-content: center;
    margin: 0;
  }

  .status-tray {
    justify-content: center;
    min-width: 0;
    flex-wrap: wrap;
  }

  .wallpaper-cloud,
  .wallpaper-tree-canopy,
  .wallpaper-tv-static,
  .wallpaper-tv-girl,
  .wallpaper-stars,
  .wallpaper-water-shimmer {
    display: none !important;
  }

  .wallpaper-root[data-time="morning"] .wallpaper-base {
    background-image: url("../assets/images/wallpapers/morning.png?v=20260612-hd-wallpapers");
  }

  .wallpaper-root[data-time="day"] .wallpaper-base {
    background-image: url("../assets/images/wallpapers/day.png?v=20260612-hd-wallpapers");
  }

  .wallpaper-root[data-time="dusk"] .wallpaper-base {
    background-image: url("../assets/images/wallpapers/dusk.png?v=20260612-hd-wallpapers");
  }

  .wallpaper-root[data-time="night"] .wallpaper-base {
    background-image: url("../assets/images/wallpapers/night.png?v=20260612-hd-wallpapers");
  }
}

@media (max-width: 460px) {
  .xp-topbar {
    padding-inline: 8px;
  }

  .brand-button {
    font-size: 15px;
  }

  .desktop-intro {
    margin-top: 28px;
  }

  .desktop-intro h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .desktop-intro h1::after {
    margin-left: 5px;
    font-size: 0.45em;
  }

  .hero-en {
    margin: 7px 0 9px;
    font-size: 18px;
  }

  .hero-lead {
    max-width: 100%;
    padding-top: 10px;
    font-size: 12px;
    line-height: 1.45;
  }

  .lang-button {
    width: 62px;
    height: 32px;
  }

  .top-updated {
    font-size: 11px;
  }

  .welcome-window {
    max-height: calc(100dvh - 116px);
  }

  body.is-article-reading .article-read-progress {
    bottom: 72px;
  }

  body.is-article-reading .article-top-link {
    bottom: 142px;
  }

  .desktop-icons {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .desktop-icon {
    display: grid;
    grid-template-columns: 92px 1fr;
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .pixel-icon {
    grid-row: auto;
  }

  .icon-title,
  .icon-caption {
    text-align: left;
  }

  .taskbar-tabs {
    display: none;
  }

  .account-popover {
    top: 86px;
    max-height: calc(100dvh - 106px);
  }

  .chatroom-window {
    max-height: calc(100dvh - 168px);
  }

  .chatroom-log {
    min-height: clamp(120px, 19dvh, 144px);
  }

  .chatroom-compose textarea {
    min-height: 56px;
  }
}

@media (max-width: 620px) {
  .brand-button {
    font-size: 15px;
  }

  .desktop-intro {
    margin-top: 22px;
  }

  .desktop-intro h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .desktop-intro h1::after {
    margin-left: 5px;
    font-size: 0.45em;
  }

  .hero-en {
    margin: 7px 0 9px;
    font-size: 18px;
  }

  .hero-lead {
    max-width: 100%;
    padding-top: 10px;
    font-size: 12px;
    line-height: 1.45;
  }

  .desktop-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: min(340px, 100%);
    margin-top: 22px;
  }

  .desktop-icon {
    display: flex;
    flex-direction: column;
    justify-items: center;
    align-items: center;
    min-height: 94px;
    padding: 6px 5px;
    text-align: center;
  }

  .pixel-icon {
    width: 64px;
    height: 64px;
    margin: -3px 0 -6px;
    background-size: 68px 68px !important;
  }

  .icon-title,
  .icon-caption {
    text-align: center;
  }

  .icon-title {
    min-height: 30px;
    font-size: 12px;
    line-height: 1.12;
  }
}

@media (min-width: 621px) and (max-width: 760px) {
  .desktop-intro {
    margin-top: 30px;
  }

  .desktop-icons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: min(640px, 100%);
    margin-top: 26px;
  }

  .desktop-icon {
    min-height: 94px;
    padding: 6px 5px;
  }

  .pixel-icon {
    width: 62px;
    height: 62px;
    margin: -4px 0 -7px;
    background-size: 66px 66px !important;
  }

  .icon-title {
    min-height: 28px;
    font-size: 12px;
    line-height: 1.12;
  }

  .taskbar-tabs {
    max-width: 100%;
    gap: 4px;
    padding-right: 0;
  }

  .taskbar-tabs button {
    min-width: 0;
    max-width: 92px;
    gap: 4px;
    padding: 5px 7px;
    font-size: 11px;
    overflow: hidden;
  }

  .taskbar-tabs button > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .taskbar-icon,
  .chat-mini-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
}

@media (max-width: 900px) and (max-height: 460px) {
  .status-tray {
    display: none;
  }

  .xp-taskbar {
    gap: 4px;
    padding-inline: 6px;
  }

  .start-button {
    max-width: 156px;
    padding-inline: 8px;
  }

  .taskbar-tabs {
    gap: 4px;
  }

  .taskbar-tabs button {
    min-width: 0;
    max-width: 88px;
    gap: 4px;
    padding: 5px 7px;
    font-size: 11px;
    overflow: hidden;
  }

  .taskbar-tabs button > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .taskbar-icon,
  .chat-mini-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
}

@media (max-width: 360px) {
  .account-popover {
    top: 122px;
    max-height: calc(100dvh - 142px);
  }

  .desktop-icons {
    gap: 6px;
    width: min(300px, 100%);
    margin-top: 16px;
  }

  .desktop-icon {
    min-height: 90px;
    padding: 5px 4px;
  }

  .pixel-icon {
    width: 58px;
    height: 58px;
    margin: -4px 0 -7px;
    background-size: 62px 62px !important;
  }

  .icon-title {
    min-height: 28px;
    font-size: 11.5px;
  }
}

@media (min-width: 761px) and (max-height: 460px) {
  .desktop-intro {
    width: min(560px, 74vw);
    margin-top: 16px;
  }

  .desktop-intro h1 {
    font-size: 30px;
    line-height: 1.02;
  }

  .desktop-intro h1::after {
    top: -1px;
    margin-left: 5px;
    font-size: 0.48em;
  }

  .hero-en {
    margin: 5px 0 6px;
    font-size: 18px;
  }

  .hero-lead {
    display: none;
  }

  .desktop-icons {
    top: 110px;
    left: 18px;
    grid-template-columns: repeat(4, 104px);
    grid-auto-rows: 80px;
    gap: 8px;
  }

  .desktop-icon {
    width: 104px;
    height: 80px;
    min-height: 0;
    padding: 3px 4px;
  }

  .pixel-icon {
    width: 52px;
    height: 52px;
    margin: -5px 0 -9px;
    background-size: 56px 56px !important;
  }

  .icon-title {
    min-height: 24px;
    font-size: 11px;
    line-height: 1.1;
  }

  .welcome-window {
    max-height: calc(100dvh - 96px);
  }

  .welcome-content {
    gap: 12px;
    padding: 12px;
  }

  .welcome-note {
    margin: 8px 0;
  }

  .welcome-note p {
    font-size: 12px;
    line-height: 1.35;
  }

  .quick-links {
    gap: 6px;
  }

  .quick-link {
    min-height: 36px;
    padding: 6px 9px;
  }

  .recent-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: min(220px, calc(100dvh - 170px));
    padding: 12px;
  }

  .recent-panel ul {
    min-height: 0;
    margin: 10px 0;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .recent-actions {
    align-self: end;
  }

  #video-modal:not(.is-video-maximized) {
    align-items: start;
    padding: 12px 18px 56px;
  }

  #video-modal:not(.is-video-maximized) .modal-window {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 88px);
    min-height: 0;
    max-height: calc(100dvh - 88px);
    overflow: hidden;
  }

  #video-modal:not(.is-video-maximized) .video-frame {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
  }

  #knowledge .xp-window {
    min-height: 0;
    height: calc(100dvh - 154px);
    max-height: calc(100dvh - 154px);
    margin-top: 6px;
  }

  body.is-article-reading #knowledge .xp-window,
  body.is-article-reading.is-article-window-restored #knowledge .xp-window {
    min-height: 0;
    height: calc(100dvh - 154px);
    max-height: calc(100dvh - 154px);
  }

  #about .xp-window {
    max-height: calc(100dvh - 154px);
    margin-top: 6px;
    overflow: auto;
  }

  #about .profile-card {
    flex: 0 0 auto;
    overflow: visible;
  }
}

@media (max-width: 760px) and (max-height: 460px) {
  #video-modal:not(.is-video-maximized) {
    align-items: start;
    padding: 10px 10px 56px;
  }

  #video-modal:not(.is-video-maximized) .modal-window {
    display: flex;
    flex-direction: column;
    height: calc(100dvh - 118px);
    max-height: calc(100dvh - 118px);
    overflow: hidden;
  }

  #video-modal:not(.is-video-maximized) .video-frame {
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
  }

  #about .xp-window,
  .chatroom-window {
    max-height: calc(100dvh - 178px);
    margin-top: 6px;
    overflow: auto;
  }

  .chatroom-window {
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  }

  .chatroom-log {
    min-height: 96px;
  }

  #about .profile-card {
    flex: 0 0 auto;
    overflow: visible;
  }

  .chatroom-compose textarea {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
