@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Pixelify+Sans:wght@400;500;700&family=VT323&display=swap');

:root {
  --bg: #008080;
  --text-primary: #111111;
  --text-secondary: #2f2f2f;
  --text-muted: #5a5a5a;
  --font-display: 'Pixelify Sans', 'Courier New', monospace;
  --font-ui: 'Pixelify Sans', 'Trebuchet MS', sans-serif;
  --font-mono: 'VT323', 'IBM Plex Mono', monospace;
  color-scheme: light;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: auto;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-ui);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px dotted #111111;
  outline-offset: 3px;
}

#root {
  position: relative;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
}

::selection {
  background: #0000aa;
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.desktop-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, #2e8bff 0%, #0b2a7a 32%, #06070c 100%);
}

.desktop-wallpaper,
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.desktop-wallpaper {
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 255, 255, 0.55), transparent 18%),
    radial-gradient(circle at 78% 18%, rgba(255, 196, 110, 0.34), transparent 18%),
    linear-gradient(180deg, rgba(255, 195, 64, 0.4), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 60%);
  mix-blend-mode: screen;
}

.crt-overlay {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 4px
    ),
    radial-gradient(circle at center, transparent 55%, rgba(0, 0, 0, 0.34) 100%);
  opacity: 0.45;
}

.system-banner,
.window,
.taskbar,
.start-button,
.start-menu,
.start-menu-item,
.project-shortcut,
.paint-swatch,
.paint-clear,
.calculator-button,
.calculator-display,
.window-close {
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #4d4d4d;
  border-bottom: 2px solid #4d4d4d;
  box-shadow: 1px 1px 0 #000000;
}

.system-banner,
.taskbar,
.window {
  background: #c7c7c7;
}

.system-banner {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 0.9rem;
  padding: 0.55rem 0.7rem;
}

.banner-title {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.banner-emblem {
  width: clamp(6.4rem, 14vw, 10.5rem);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 14px rgba(255, 212, 71, 0.72));
  image-rendering: auto;
}

.badge {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  background: #0400a6;
  color: #fff784;
  font-weight: 700;
}

.banner-title strong,
.banner-status,
.window-bar,
.window-lead,
.taskbar,
.start-menu,
.start-menu-item,
.project-shortcut,
.system-label,
.project-preview,
.paint-clear,
.calculator-button,
.calculator-display,
.window-close {
  font-family: var(--font-ui);
}

.banner-title strong {
  display: block;
  color: #111;
  font-size: 1rem;
}

.banner-title small,
.banner-status span {
  display: block;
  color: #292929;
  font-size: 0.86rem;
}

.banner-status {
  display: grid;
  justify-items: end;
  gap: 0.18rem;
}

.desktop-stage {
  display: block;
  padding: 0 0.9rem 4.8rem;
}

.window-cluster {
  position: relative;
  min-height: calc(100vh - 11rem);
}

.window {
  position: absolute;
  overflow: hidden;
}

.window-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.35rem 0.45rem;
  background: linear-gradient(90deg, #0400a6, #3b6ef6);
  color: #ffffff;
  font-size: 0.9rem;
}

.window-bar.temple {
  background: linear-gradient(90deg, #ff7f11, #ffd166);
  color: #111;
}

.window-bar.blue {
  background: linear-gradient(90deg, #008080, #00a3a3);
}

.window-buttons {
  display: flex;
  gap: 0.25rem;
}

.window-buttons i {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
  background: #c7c7c7;
  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #333333;
  border-bottom: 1px solid #333333;
}

.window-close {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  padding: 0;
  background: #c7c7c7;
  color: #111;
  font-size: 0.7rem;
  line-height: 1;
  cursor: pointer;
}

.window-body {
  padding: 0.9rem;
  color: #111;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 10%),
    #c7c7c7;
}

.window-oracle {
  top: 1rem;
  left: 9rem;
  width: min(58rem, calc(100% - 20rem));
  z-index: 5;
  transform: rotate(0.2deg);
}

.oracle-body {
  min-height: 12rem;
}

.oracle-text {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1;
  color: #111;
}

.window-launcher {
  top: 16rem;
  left: 1rem;
  width: min(34rem, calc(100% - 38rem));
  z-index: 3;
}

.launcher-body {
  display: grid;
  gap: 1rem;
}

.launcher-main h1 {
  margin-top: 0.25rem;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  line-height: 0.82;
  color: #111;
}

.launcher-copy,
.system-grid strong {
  font-family: var(--font-mono);
}

.launcher-copy {
  max-width: 40rem;
  margin: 0.7rem 0 1rem;
  color: #202020;
}

.launcher-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: #363636;
  font-size: 0.86rem;
}

.window-system {
  top: 16rem;
  right: 2rem;
  width: 23rem;
  z-index: 2;
  transform: rotate(-1deg);
}

.system-body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 16%),
    #dfdfdf;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.system-label {
  display: block;
  margin-bottom: 0.18rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  color: #4b4b4b;
}

.window-projects {
  right: 21rem;
  bottom: 1rem;
  width: min(30rem, 38vw);
  z-index: 2;
}

.projects-body {
  display: grid;
  gap: 0.9rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.project-shortcut {
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.45rem;
  background: #d8d8d8;
  text-decoration: none;
  color: #111;
}

.project-shortcut.active {
  background: #fff784;
}

.project-shortcut-label {
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.2;
}

.project-preview {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem;
  border-top: 2px solid #4d4d4d;
  border-left: 2px solid #4d4d4d;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  background: #efefef;
}

.project-preview strong {
  font-size: 1rem;
}

.pixel-icon {
  position: relative;
  width: 32px;
  height: 32px;
  display: block;
  background: #111;
}

.pixel-icon::before,
.pixel-icon::after {
  content: '';
  position: absolute;
}

.pixel-arc {
  background:
    linear-gradient(180deg, #79b8ff 0 5px, transparent 5px),
    #0b1d63;
}

.pixel-arc::before {
  left: 5px;
  top: 4px;
  width: 22px;
  height: 23px;
  background:
    linear-gradient(90deg, #ffd447 0 4px, transparent 4px 18px, #ffd447 18px 22px),
    linear-gradient(180deg, #ffd447 0 4px, transparent 4px);
}

.pixel-arc::after {
  left: 11px;
  top: 10px;
  width: 10px;
  height: 17px;
  background:
    linear-gradient(180deg, #111111 0 11px, #79b8ff 11px 13px, #111111 13px 17px);
}

.pixel-philosophy_hero {
  background:
    linear-gradient(180deg, #6b4ba8 0 6px, transparent 6px),
    #26133d;
}

.pixel-philosophy_hero::before {
  left: 7px;
  top: 8px;
  width: 18px;
  height: 18px;
  background:
    linear-gradient(180deg, #ffd447 0 4px, transparent 4px 14px, #ffd447 14px 18px),
    linear-gradient(
      90deg,
      transparent 0 2px,
      #ffd447 2px 5px,
      transparent 5px 7px,
      #ffd447 7px 11px,
      transparent 11px 13px,
      #ffd447 13px 16px,
      transparent 16px
    );
}

.pixel-philosophy_hero::after {
  left: 12px;
  top: 3px;
  width: 8px;
  height: 8px;
  background:
    linear-gradient(90deg, transparent 0 3px, #fff6a0 3px 5px, transparent 5px),
    linear-gradient(180deg, transparent 0 3px, #fff6a0 3px 5px, transparent 5px);
}

.pixel-echter-oesterreicher {
  background:
    radial-gradient(circle at 8px 8px, #2f8f4e 0 2px, transparent 2px),
    #184f2c;
}

.pixel-echter-oesterreicher::before {
  left: 4px;
  top: 8px;
  width: 12px;
  height: 16px;
  background:
    linear-gradient(180deg, #c81d25 0 4px, #ffffff 4px 12px, #c81d25 12px 16px);
  box-shadow: 0 0 0 2px #111111;
}

.pixel-echter-oesterreicher::after {
  left: 14px;
  top: 4px;
  width: 12px;
  height: 16px;
  background:
    linear-gradient(180deg, #c81d25 0 4px, #ffffff 4px 12px, #c81d25 12px 16px),
    linear-gradient(90deg, transparent 0 4px, #111111 4px 8px, transparent 8px);
  box-shadow: 0 0 0 2px #111111;
}

.window-paint {
  left: 28rem;
  bottom: 1rem;
  width: min(26rem, 34vw);
  z-index: 4;
  transform: rotate(0.6deg);
}

.window-calculator {
  left: 2rem;
  bottom: 2rem;
  width: min(18rem, 92vw);
  z-index: 4;
  transform: rotate(-0.8deg);
}

.window-oracle-control {
  top: 12.5rem;
  right: 2.5rem;
  width: min(24rem, 92vw);
  z-index: 6;
  transform: rotate(0.4deg);
}

.paint-body {
  display: grid;
  gap: 0.55rem;
}

.oracle-control-body {
  display: grid;
  gap: 0.6rem;
}

.oracle-control-actions {
  display: flex;
  gap: 0.45rem;
}

.oracle-control-status {
  margin: 0;
  min-height: 2.6rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.2;
  color: #333;
}

.paint-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.paint-colors {
  display: flex;
  gap: 0.35rem;
}

.paint-actions {
  display: flex;
  gap: 0.35rem;
}

.paint-swatch {
  width: 1.35rem;
  height: 1.35rem;
  cursor: pointer;
}

.paint-swatch.active {
  outline: 2px solid #0000aa;
  outline-offset: 1px;
}

.paint-clear {
  padding: 0.3rem 0.6rem;
  background: #d8d8d8;
  cursor: pointer;
}

.paint-clear:disabled {
  cursor: wait;
  opacity: 0.8;
}

.paint-canvas {
  width: 100%;
  height: 16rem;
  display: block;
  background: #f4f4f4;
  border-top: 2px solid #4d4d4d;
  border-left: 2px solid #4d4d4d;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  touch-action: none;
  cursor: crosshair;
}

.paint-status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #444;
}

.calculator-body {
  display: grid;
  gap: 0.75rem;
}

.calculator-display {
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  background: #efefef;
  color: #111;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 1.6rem;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.calculator-button {
  min-height: 2.5rem;
  background: #d8d8d8;
  color: #111;
  cursor: pointer;
}

.calculator-button.operator {
  background: #fff784;
}

.calculator-button-wide {
  grid-column: span 4;
  background: #ffd166;
}

.window-lead {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #565656;
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 0.35rem;
  background: #c7c7c7;
}

.taskbar-spacer {
  flex: 1;
}

.start-button {
  min-height: 2.15rem;
  padding: 0.35rem 0.85rem;
  background: #d9d9d9;
  color: #111;
  font-weight: 700;
  text-transform: lowercase;
  cursor: pointer;
}

.start-button.active {
  background: #fff784;
}

.taskbar-tray {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  padding: 0.2rem 0.45rem;
  border-top: 2px solid #7a7a7a;
  border-left: 2px solid #7a7a7a;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  background: #d4d4d4;
}

.tray-icon {
  position: relative;
  width: 1.15rem;
  height: 1.15rem;
  display: inline-block;
  background: #cfcfcf;
}

.tray-icon::before,
.tray-icon::after {
  content: '';
  position: absolute;
}

.tray-disk::before {
  inset: 0.14rem;
  background:
    linear-gradient(180deg, #0400a6 0 0.28rem, #7ec8ff 0.28rem 0.62rem, #111111 0.62rem 100%);
}

.tray-disk::after {
  right: 0.22rem;
  bottom: 0.19rem;
  width: 0.23rem;
  height: 0.23rem;
  background: #fff784;
}

.tray-mail::before {
  inset: 0.18rem 0.12rem 0.22rem;
  background:
    linear-gradient(135deg, transparent 47%, #0400a6 47% 53%, transparent 53%),
    linear-gradient(225deg, transparent 47%, #0400a6 47% 53%, transparent 53%),
    #fffef4;
  border: 1px solid #111111;
}

.tray-volume::before {
  left: 0.12rem;
  top: 0.34rem;
  width: 0.34rem;
  height: 0.44rem;
  background: #111111;
}

.tray-volume::after {
  left: 0.46rem;
  top: 0.23rem;
  width: 0.48rem;
  height: 0.66rem;
  background:
    linear-gradient(90deg, #111111 0 0.08rem, transparent 0.08rem 0.16rem, #111111 0.16rem 0.24rem, transparent 0.24rem 0.34rem, #111111 0.34rem 0.42rem, transparent 0.42rem);
}

.tray-network {
  background:
    radial-gradient(circle at 50% 50%, #fff784 0 0.18rem, transparent 0.18rem),
    #cfcfcf;
}

.tray-network::before {
  left: 0.12rem;
  right: 0.12rem;
  bottom: 0.16rem;
  height: 0.18rem;
  background: #111111;
  box-shadow:
    0 -0.22rem 0 -0.02rem #111111,
    0 -0.44rem 0 -0.04rem #111111;
  animation: network-blink 1.05s steps(2, end) infinite;
}

.tray-network::after {
  right: 0.04rem;
  top: 0.04rem;
  width: 0.26rem;
  height: 0.26rem;
  background: #00c853;
  border: 1px solid #111111;
  animation: network-pulse 0.9s steps(2, end) infinite;
}

.tray-clock {
  min-width: 2.6rem;
  padding-left: 0.2rem;
  color: #111;
  font-size: 0.86rem;
  text-align: right;
}

.start-menu {
  position: fixed;
  left: 0.35rem;
  bottom: 3.05rem;
  z-index: 11;
  display: grid;
  grid-template-columns: 3.4rem minmax(16rem, 18rem);
  background: #c7c7c7;
}

.start-menu-brand {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 0.7rem 0.45rem;
  background: linear-gradient(180deg, #0400a6, #008080);
  color: #ffffff;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.start-menu-brand strong {
  font-size: 1rem;
}

.start-menu-brand span {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
}

.start-menu-list {
  display: grid;
  gap: 0.35rem;
  padding: 0.5rem;
  min-width: 0;
}

.start-menu-item {
  display: block;
  width: 100%;
  padding: 0.6rem 0.75rem;
  background: #dfdfdf;
  color: #111;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.start-menu-item:hover,
.start-menu-item:focus-visible {
  background: #fff784;
  outline: none;
}

.start-menu-link {
  display: flex;
  align-items: center;
}

.start-menu-separator {
  height: 2px;
  background: linear-gradient(90deg, #4d4d4d, #ffffff);
}

@media (max-width: 1100px) {
  .window-cluster {
    min-height: auto;
    display: grid;
    gap: 1rem;
  }

  .window,
  .window-oracle,
  .window-system,
  .window-projects,
  .window-launcher,
  .window-paint,
  .window-calculator {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }
}

@media (max-width: 720px) {
  .system-banner,
  .banner-title,
  .taskbar {
    flex-wrap: wrap;
  }

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

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

  .start-menu {
    grid-template-columns: 2.6rem minmax(14rem, calc(100vw - 1rem));
  }

  .banner-emblem {
    width: 6.4rem;
  }

  .taskbar-tray {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .window-oracle,
  .window-system,
  .window-paint,
  .window-calculator {
    transform: none;
  }

  .tray-network::before,
  .tray-network::after {
    animation: none;
  }
}

@keyframes network-blink {
  0%,
  45% {
    opacity: 0.35;
    transform: translateX(0);
  }

  50%,
  100% {
    opacity: 1;
    transform: translateX(0.03rem);
  }
}

@keyframes network-pulse {
  0%,
  45% {
    opacity: 0.2;
  }

  50%,
  100% {
    opacity: 1;
  }
}
