@media (max-width: 1180px) {
  .discord-float,
  .theme-toggle {
    top: 10px;
  }

  .theme-toggle {
    right: 146px;
  }

  .window {
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - var(--taskbar-h) - 18px);
  }

  .game-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .game-stats {
    width: 100%;
    justify-items: start;
  }
}

body {
  --bg-night: #07080d;
  --bg-panel: rgba(14, 15, 21, 0.88);
  --bg-panel-strong: rgba(10, 11, 17, 0.96);
  --line: rgba(181, 188, 211, 0.18);
  --line-strong: rgba(214, 221, 241, 0.42);
  --accent: #d4dde9;
  --accent-warm: #8e96a8;
  --text-main: #f2f4f8;
  --text-soft: #a1a8b7;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.38);
  background: var(--bg-night);
}

body[data-theme="light"] {
  --bg-night: #f3f1ea;
  --bg-panel: rgba(255, 252, 246, 0.9);
  --bg-panel-strong: rgba(250, 247, 240, 0.96);
  --line: rgba(88, 95, 112, 0.18);
  --line-strong: rgba(60, 68, 90, 0.42);
  --accent: #323846;
  --accent-warm: #8d725f;
  --text-main: #1f2430;
  --text-soft: #5b6272;
  --shadow: 0 22px 55px rgba(47, 41, 34, 0.14);
}

body .desktop-wallpaper {
  background:
    radial-gradient(circle at 15% 15%, rgba(220, 226, 238, 0.08), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(165, 171, 186, 0.08), transparent 24%),
    radial-gradient(circle at 65% 72%, rgba(97, 104, 120, 0.14), transparent 30%),
    linear-gradient(135deg, #05060a 0%, #0c0e14 42%, #040507 100%);
}

body[data-theme="light"] .desktop-wallpaper {
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.5), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(186, 170, 154, 0.18), transparent 24%),
    radial-gradient(circle at 65% 72%, rgba(157, 164, 179, 0.18), transparent 30%),
    linear-gradient(135deg, #f8f4ec 0%, #ece8e0 42%, #f7f3ec 100%);
}

body[data-theme="light"] .desktop-wallpaper::after {
  background-image:
    linear-gradient(rgba(32, 38, 48, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 38, 48, 0.04) 1px, transparent 1px);
}

body .window,
body .boot-panel,
body .verbose-panel,
body .start-menu,
body .taskbar,
body .version-badge,
body .discord-float,
body .theme-toggle {
  color: var(--text-main);
}

body .window,
body .boot-panel,
body .verbose-panel,
body .start-menu,
body .version-badge,
body .discord-float,
body .theme-toggle,
body .taskbar {
  background: color-mix(in srgb, var(--bg-panel-strong) 86%, transparent);
}

body .window {
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-strong));
  border-color: var(--line);
  box-shadow: var(--shadow);
}

body .icon-art {
  background: linear-gradient(145deg, rgba(212, 221, 233, 0.14), rgba(110, 115, 129, 0.18));
}

body .title-dot {
  background: var(--accent);
  box-shadow: 0 0 14px rgba(212, 221, 233, 0.28);
}

body .media-card.alt {
  background: linear-gradient(145deg, rgba(212, 221, 233, 0.06), rgba(135, 140, 152, 0.08));
}

body .pulse-line {
  background: linear-gradient(90deg, rgba(212, 221, 233, 0.12), rgba(141, 149, 167, 0.4), rgba(212, 221, 233, 0.12));
}

body .production-meter span {
  background: linear-gradient(180deg, var(--accent), rgba(141, 149, 167, 0.86));
}

body .taskbar-chip.active {
  background: rgba(212, 221, 233, 0.12);
}

body .folder-link.active,
body .start-item:hover,
body .start-button:hover,
body .desktop-icon:hover .icon-art,
body .contact-link:hover {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 1px rgba(212, 221, 233, 0.14), 0 10px 22px rgba(24, 26, 31, 0.16);
}

body .boot-logo-core {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.26), transparent 30%),
    radial-gradient(circle at center, rgba(212, 221, 233, 0.24), rgba(8, 10, 16, 0.96));
  border-color: rgba(212, 221, 233, 0.22);
  box-shadow:
    0 0 32px rgba(212, 221, 233, 0.16),
    inset 0 0 24px rgba(255, 255, 255, 0.05);
}

body .boot-bolt {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(212, 221, 233, 0.88));
  filter: drop-shadow(0 0 14px rgba(212, 221, 233, 0.7));
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 156px;
  z-index: 2300;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text-main);
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

body[data-theme="light"] .theme-toggle,
body[data-theme="light"] .discord-float {
  border-color: rgba(71, 78, 94, 0.12);
}

#gamesWindow {
  width: min(94vw, 1440px) !important;
  max-width: min(94vw, 1440px) !important;
  height: min(calc(100vh - var(--taskbar-h) - 24px), 760px) !important;
  max-height: calc(100vh - var(--taskbar-h) - 24px) !important;
}

#gamesWindow .window-body {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 14px;
}

#gamesWindow .games-hero,
#gamesWindow .leaderboard-panel,
#gamesWindow .arcade-intro,
#gamesWindow .game-panel.active {
  width: 100%;
}

#gamesWindow canvas {
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 1180px) {
  #gamesWindow {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    left: 10px !important;
    top: 10px !important;
  }
}
