:root {
  --xp-blue: #245edb;
  --xp-blue-deep: #0a246a;
  --xp-blue-mid: #3c81f3;
  --xp-blue-light: #1084d0;
  --xp-title-grad: linear-gradient(
    180deg,
    #0a246a 0%,
    #245edb 8%,
    #3c8cf3 45%,
    #245edb 90%,
    #1941a5 100%
  );
  --xp-face: #ece9d8;
  --xp-face-deep: #d4d0c8;
  --xp-border: #0054e3;
  --xp-shadow: #404040;
  --xp-green: #3c8a3c;
  --xp-start: linear-gradient(180deg, #5cb85c 0%, #3c8a3c 45%, #2d6b2d 100%);
  --ink: #1a1a1a;
  --ink-soft: #333;
  --paper: #fff;
  --taskbar-h: 36px;
  --font-ui: "IBM Plex Sans", Tahoma, sans-serif;
  --font-display: "Anton", Impact, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  color: var(--ink);
  background: #5a9fd4;
  overflow-x: hidden;
  padding-bottom: var(--taskbar-h);
}

a {
  color: var(--xp-blue-deep);
}

img {
  display: block;
  max-width: 100%;
}

.desktop {
  position: relative;
  min-height: calc(100vh - var(--taskbar-h));
}

.wallpaper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: var(--taskbar-h);
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(90, 159, 212, 0.15) 0%, rgba(30, 80, 40, 0.2) 100%),
    url("banner.png") center top / cover no-repeat;
  animation: sky-drift 40s ease-in-out infinite alternate;
}

@keyframes sky-drift {
  from {
    background-position: center 0%;
  }
  to {
    background-position: center 12%;
  }
}

.desktop-icons {
  position: absolute;
  top: 1.25rem;
  left: 0.75rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 88px;
}

.desk-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: #fff;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.85);
  padding: 0.35rem 0.2rem;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.desk-icon:hover,
.desk-icon:focus-visible {
  background: rgba(36, 94, 219, 0.35);
  border-color: rgba(255, 255, 255, 0.55);
  outline: none;
}

.desk-icon img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
}

.desk-icon-glyph {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff 0%, #c8d8f0 100%);
  color: var(--xp-blue-deep);
  border: 1px solid #fff;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
}

.desk-icon-glyph.x {
  background: #000;
  color: #fff;
  font-size: 1.35rem;
}

.desk-icon-glyph.tg {
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
  padding: 4px;
  overflow: hidden;
  border-radius: 50%;
}

.desk-icon-glyph.tg img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border: 0;
  box-shadow: none;
  border-radius: 50%;
}

.net-glyph.tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 0.25rem;
  font-size: 0;
  border-radius: 50%;
  overflow: hidden;
}

.net-glyph.tg img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.desk-icon-glyph.pump {
  background: linear-gradient(180deg, #1a2e28 0%, #0f1f1a 100%);
  padding: 4px;
}

.desk-icon-glyph.pump img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border: 0;
  box-shadow: none;
}

.net-glyph.pump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 0.25rem;
  font-size: 0;
}

.net-glyph.pump img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding: 2.5rem 1rem 3rem;
  max-width: 920px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .stage {
    padding-left: 7rem;
  }
}

.win {
  width: min(100%, 720px);
  background: var(--xp-face);
  border: 2px solid var(--xp-border);
  box-shadow:
    inset 1px 1px 0 #fff,
    3px 3px 0 rgba(0, 0, 0, 0.28);
  animation: win-open 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.win:nth-of-type(2) {
  animation-delay: 0.08s;
}
.win:nth-of-type(3) {
  animation-delay: 0.16s;
}
.win:nth-of-type(4) {
  animation-delay: 0.24s;
}
.win:nth-of-type(5) {
  animation-delay: 0.32s;
}

@keyframes win-open {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-win {
  width: min(100%, 560px);
}

.win-titlebar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.3rem 0.28rem 0.45rem;
  background: var(--xp-title-grad);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  user-select: none;
  cursor: default;
}

.win-icon {
  width: 16px;
  height: 16px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.win-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.45);
}

.win-controls {
  display: flex;
  gap: 2px;
}

.win-btn {
  width: 20px;
  height: 18px;
  padding: 0;
  border: 1px solid #fff;
  background: linear-gradient(180deg, #3c8cf3 0%, #245edb 100%);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1;
  cursor: default;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.35);
}

.win-btn.close {
  background: linear-gradient(180deg, #e35d4a 0%, #c22b1a 100%);
}

.win-menubar {
  display: flex;
  gap: 0.85rem;
  padding: 0.15rem 0.55rem;
  background: var(--xp-face);
  border-bottom: 1px solid #aca899;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.win-body {
  padding: 1.15rem 1.25rem 1.35rem;
  background: var(--paper);
  border: 1px solid #fff;
  border-top: none;
  margin: 0 2px 2px;
}

.hero-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(236, 233, 216, 0.95) 100%);
  padding-block: 1.5rem 1.6rem;
}

.hero-logo {
  width: min(200px, 48vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 2px var(--xp-blue),
    4px 4px 0 rgba(0, 0, 0, 0.2);
  animation: jaw-drop 2.8s ease-in-out infinite;
}

@keyframes jaw-drop {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  12% {
    transform: translateY(2px) rotate(-1.5deg);
  }
  24% {
    transform: translateY(0) rotate(1.5deg);
  }
  36% {
    transform: translateY(-2px) rotate(0deg) scale(1.03);
  }
  50% {
    transform: translateY(0) scale(1);
  }
}

h1 {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 4.4rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--xp-blue-deep);
  text-shadow: 2px 2px 0 #fff, 3px 3px 0 rgba(36, 94, 219, 0.35);
}

.ticker {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  letter-spacing: 0.12em;
  color: var(--xp-blue);
}

.tagline {
  margin: 0.35rem 0 0.75rem;
  max-width: 28ch;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--ink-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.xp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  padding: 0.4rem 1rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, #ece9d8 48%, #d4d0c8 100%);
  border: 1px solid #003c74;
  box-shadow:
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #808080;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.xp-btn:hover,
.xp-btn:focus-visible {
  filter: brightness(1.06);
  outline: 1px dotted #000;
  outline-offset: -4px;
}

.xp-btn:active {
  transform: translateY(1px);
  box-shadow: inset 1px 1px 0 #808080;
}

.xp-btn.primary {
  color: #fff;
  background: linear-gradient(180deg, #4d94f7 0%, #245edb 55%, #1a4499 100%);
  border-color: #0a246a;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.4),
    inset -1px -1px 0 rgba(0, 0, 0, 0.2);
}

.about-body h2,
.media-body h2,
.howto-body h2,
.community-body h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.03em;
  color: var(--xp-blue-deep);
  font-weight: 400;
}

.about-body p,
.media-caption,
.howto-body li span {
  margin: 0 0 0.85rem;
  line-height: 1.55;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.fact-list {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  border: 1px solid #aca899;
  background: var(--xp-face);
  padding: 0.75rem 0.9rem;
}

.fact-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.fact-list span {
  font-weight: 700;
  color: var(--xp-blue-deep);
}

.kym-link {
  margin: 0 !important;
  font-size: 0.88rem !important;
}

.media-body {
  text-align: center;
}

.media-caption {
  margin-bottom: 0.85rem !important;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 2px solid #003c74;
  box-shadow: inset 0 0 0 1px #fff;
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.wizard-steps {
  margin: 0 0 1.15rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.65rem;
}

.wizard-steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.65rem 0.85rem;
  align-items: start;
  padding: 0.65rem 0.75rem;
  background: var(--xp-face);
  border: 1px solid #aca899;
}

.wizard-steps li::before {
  content: counter(step);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  grid-row: span 2;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
  background: var(--xp-title-grad);
  border: 1px solid #0a246a;
}

.wizard-steps strong {
  grid-column: 2;
  font-size: 0.95rem;
  color: var(--ink);
}

.wizard-steps span {
  grid-column: 2;
  margin: 0 !important;
}

.howto-body .xp-btn {
  width: 100%;
  max-width: 220px;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.65rem;
}

.net-place {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.85rem 0.75rem;
  text-decoration: none;
  color: inherit;
  background: var(--xp-face);
  border: 1px solid #aca899;
  box-shadow: inset 1px 1px 0 #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.net-place:hover,
.net-place:focus-visible {
  background: #dce8fc;
  border-color: var(--xp-blue);
  outline: none;
}

.net-glyph {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--xp-blue-deep);
  margin-bottom: 0.25rem;
}

.net-label {
  font-weight: 700;
  font-size: 0.92rem;
}

.net-url {
  font-size: 0.75rem;
  color: #555;
  word-break: break-all;
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  height: var(--taskbar-h);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.35rem 0 0;
  background: linear-gradient(
    180deg,
    #3168d5 0%,
    #245edb 8%,
    #245edb 88%,
    #1941a5 100%
  );
  border-top: 1px solid #0831d9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  padding: 0 0.85rem 0 0.45rem;
  border: 0;
  border-radius: 0 12px 12px 0;
  background: var(--xp-start);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.start-btn img {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.start-btn:hover,
.start-btn[aria-expanded="true"] {
  filter: brightness(1.08);
}

.task-tabs {
  display: flex;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.task-tabs::-webkit-scrollbar {
  display: none;
}

.task-tab {
  flex: 0 0 auto;
  max-width: 140px;
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: linear-gradient(180deg, #3c81f3 0%, #2150c5 100%);
  border: 1px solid #0831d9;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.25);
}

.task-tab:hover,
.task-tab.active {
  background: linear-gradient(180deg, #5a9af7 0%, #3c81f3 100%);
}

.tray {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  height: calc(100% - 6px);
  margin-left: auto;
  padding: 0 0.65rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  background: linear-gradient(180deg, #1a8ad4 0%, #0d6cac 100%);
  border: 1px solid #055a8c;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.25);
}

.tray-ticker {
  letter-spacing: 0.04em;
  animation: blink-soft 1.6s step-end infinite;
}

@keyframes blink-soft {
  50% {
    opacity: 0.45;
  }
}

.start-menu {
  position: fixed;
  left: 0;
  bottom: var(--taskbar-h);
  z-index: 60;
  width: min(280px, 92vw);
  background: var(--xp-face);
  border: 2px solid var(--xp-border);
  box-shadow: 4px 0 12px rgba(0, 0, 0, 0.35);
  animation: menu-up 0.2s ease-out;
}

.start-menu[hidden] {
  display: none;
}

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

.start-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--xp-title-grad);
  color: #fff;
}

.start-user img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 4px;
}

.start-user strong {
  display: block;
  font-size: 1rem;
}

.start-user span {
  font-size: 0.75rem;
  opacity: 0.9;
}

.start-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.start-list a {
  display: block;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.start-list a:hover,
.start-list a:focus-visible {
  background: var(--xp-blue);
  color: #fff;
  outline: none;
}

@media (max-width: 640px) {
  .desktop-icons {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
    padding: 1rem 0.5rem 0;
    gap: 0.5rem;
  }

  .desk-icon {
    width: 72px;
  }

  .stage {
    padding: 1rem 0.75rem 2.5rem;
  }

  .task-tabs {
    display: none;
  }

  .tray-ticker {
    display: none;
  }

  h1 {
    font-size: 2.6rem;
  }
}

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