:root {
  --xp-blue: #1262df;
  --xp-blue-dark: #0439a8;
  --xp-blue-mid: #0d56cf;
  --xp-blue-light: #4da4ff;
  --xp-border: #0645b7;
  --xp-cream: #f4f4f0;
  --xp-panel: #ffffff;
  --xp-text: #152744;
  --xp-muted: #5b6980;
  --xp-green: #52b534;
  --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-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  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;
  min-height: 56px;
  padding: 8px 24px;
  color: #fff;
  border-bottom: 3px solid #0439a8;
  background: linear-gradient(180deg, #257df4 0%, #1059d7 50%, #0636a0 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;
  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;
}

.brand-orb {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 2px solid #cffffa;
  border-radius: 50%;
  color: #174ca8;
  background: linear-gradient(135deg, #f7ff8c, #65d066);
  font-size: 12px;
  font-weight: 900;
  text-shadow: none;
  box-shadow: 2px 2px 0 rgba(0, 25, 90, 0.25);
}

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

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

.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;
  min-height: calc(100vh - 108px);
}

.page {
  display: none;
  min-height: calc(100vh - 108px);
  padding: 26px;
  animation: popIn 180ms ease-out;
}

.page.active {
  display: block;
}

.page-home {
  position: relative;
  overflow: hidden;
  padding: 0 24px 78px 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(600px, 52vw);
  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(42px, 5.5vw, 70px);
  line-height: 1.05;
  font-weight: 900;
}

.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(23px, 3.1vw, 38px);
  font-weight: 900;
}

.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: 144px;
  left: 46px;
  display: grid;
  grid-template-columns: repeat(2, 132px);
  grid-auto-rows: 154px;
  gap: 16px 18px;
}

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

.desktop-icon:hover,
.desktop-icon:focus-visible,
.desktop-icon.is-hovered {
  outline: none;
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(25, 94, 185, 0.23);
  animation: iconHop 380ms ease;
}

.icon-title {
  display: block;
  width: 100%;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.15;
}

.icon-caption {
  display: block;
  width: 100%;
  font-size: 12px;
  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;
}

.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;
}

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

.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;
}

.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;
}

.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;
}

.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-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;
}

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

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

.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;
}

.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;
}

.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;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #555;
  font-size: 13px;
}

.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;
}

.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;
}

.video-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.video-thumb {
  position: relative;
  min-height: 138px;
  border-bottom: 2px solid #9d9a86;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.38), transparent 40%),
    var(--thumb-bg, #74b9ff);
}

.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;
  gap: 8px;
  padding: 13px;
}

.platform {
  width: fit-content;
  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: grid;
  gap: 13px;
}

.resource-card {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.resource-main {
  display: grid;
  gap: 7px;
}

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

.game-list {
  display: grid;
  gap: 14px;
}

.game-card {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  margin: 0;
}

.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;
}

.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;
}

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

.profile-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(255, 183, 213, 0.23), transparent 40%),
    #fff;
}

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

.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: 8px;
  margin: 0 0 16px;
}

.profile-info dl div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
}

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

.profile-info dd {
  margin: 0;
}

.about-copy {
  margin: 0;
  padding: 14px;
  border: 2px dashed #8bb4ff;
  border-radius: 7px;
  background: #f7fbff;
  line-height: 1.8;
}

.xp-taskbar {
  position: sticky;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 14px;
  color: #fff;
  border-top: 3px solid #73a8ff;
  background: linear-gradient(180deg, #2276ef 0%, #1458d2 55%, #073596 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.start-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border-color: #1d6e22;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(180deg, #81e85f, #24951f);
  font-weight: 900;
  text-shadow: 1px 1px 0 #0b5f18;
}

.windows-mark {
  width: 17px;
  height: 17px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background:
    linear-gradient(90deg, #ff5c5c 0 48%, transparent 48%),
    linear-gradient(90deg, transparent 52%, #46c762 52%),
    linear-gradient(180deg, transparent 52%, #ffdf40 52% 100%);
}

.taskbar-tabs {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
}

.taskbar-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: max-content;
  padding: 8px 13px;
  color: #fff;
  border-color: #0d3589;
  background: linear-gradient(180deg, #3c86f4, #1b50b7);
  font-size: 14px;
  font-weight: 800;
}

.taskbar-tabs button.active {
  background: linear-gradient(180deg, #9cc8ff, #356ddd);
}

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

.status-tray {
  gap: 9px;
  min-width: max-content;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(8, 48, 135, 0.45);
  font-size: 14px;
  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(640px, calc(100vw - 28px));
  margin: 0;
}

.welcome-content {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 20px;
  padding: 20px;
  background: #fff;
}

.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;
}

.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 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;
}

.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: 15px;
  margin: 17px 0;
  padding: 0;
  list-style: none;
}

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

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

.recent-panel strong {
  display: block;
  color: #33415c;
  line-height: 1.25;
}

.recent-panel small {
  display: block;
  margin-top: 4px;
  color: #66728b;
  line-height: 1.35;
}

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

.modal-window {
  width: min(720px, 100%);
  margin: 0;
}

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

.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;
}

.page-home {
  background: url("../assets/images/xp-wallpaper-generated.png") center / cover no-repeat;
}

.sky-layer {
  display: none;
}

.pixel-icon,
.monitor-icon {
  width: 82px;
  height: 82px;
  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;
}

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

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

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

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

.avatar-icon {
  background-image: url("../assets/images/icon-about.png") !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) {
  .desktop-icons {
    top: 300px;
    left: 18px;
    grid-template-columns: repeat(3, 124px);
    grid-auto-rows: 146px;
    gap: 10px;
  }

  .desktop-icon {
    width: 124px;
    height: 142px;
  }

  .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 {
    align-items: stretch;
    flex-direction: column;
    padding: 8px 12px;
    overflow: hidden;
  }

  .topbar-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    min-width: 0;
  }

  .language-switcher {
    justify-content: center;
    width: 100%;
  }

  .top-updated {
    width: 100%;
    font-size: 12px;
    text-align: center;
    white-space: normal;
  }

  .brand-button {
    justify-content: center;
    font-size: 16px;
    width: 100%;
  }

  .brand-button span:last-child {
    min-width: 0;
    max-width: calc(100vw - 140px);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .page {
    min-height: calc(100vh - 158px);
    padding: 12px;
  }

  .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: 132px;
    padding: 10px;
    background: rgba(8, 80, 170, 0.15);
  }

  .icon-caption {
    width: auto;
  }

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

  .category-panel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 2px solid #d3d0bd;
  }

  .category-button {
    width: auto;
    min-width: max-content;
    margin: 0;
  }

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

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

  .xp-taskbar {
    grid-template-columns: 1fr;
  }

  .start-button {
    justify-content: center;
  }

  .taskbar-tabs {
    justify-content: start;
  }

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

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

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

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

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

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

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

  .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;
  }

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

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

  .pixel-icon {
    grid-row: span 2;
  }

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

  .taskbar-tabs {
    display: none;
  }
}

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

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

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

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

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

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

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

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

  .pixel-icon {
    grid-row: span 2;
  }

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

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