:root {
  --desktop: #008080;
  --surface: #c0c0c0;
  --surface-light: #dfdfdf;
  --highlight: #ffffff;
  --shadow: #808080;
  --dark: #0a0a0a;
  --navy: #000080;
  --blue: #1084d0;
  --desktop-wallpaper: url("assets/desktop-wallpaper.webp");
  --desktop-wallpaper-position: 50% 48%;
  --taskbar-height: 38px;
  --ui-font: "MS Sans Serif", Tahoma, Geneva, Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: #0a0a0a;
  background: var(--desktop);
  font-family: var(--ui-font);
  font-size: 12px;
  line-height: 1.35;
  -webkit-font-smoothing: none;
}

button,
a,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--navy);
}

a:focus-visible,
button:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 1px dotted #000;
  outline-offset: 2px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 4px;
  left: 4px;
  padding: 8px 12px;
  color: #fff;
  background: #000;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.desktop {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: calc(100dvh - var(--taskbar-height));
  min-height: 420px;
  overflow: hidden;
  background-color: #0b4650;
  background-image: var(--desktop-wallpaper);
  background-position: var(--desktop-wallpaper-position);
  background-repeat: no-repeat;
  background-size: cover;
}

.desktop::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 15, 24, 0.48) 0, rgba(0, 15, 24, 0.2) 23%, transparent 52%),
    linear-gradient(0deg, rgba(0, 10, 18, 0.3), transparent 34%);
}

.wallpaper-signature {
  position: absolute;
  z-index: 1;
  right: 5vw;
  bottom: 5.5vh;
  display: grid;
  justify-items: end;
  color: rgba(255, 255, 255, 0.22);
  text-align: right;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.1);
  user-select: none;
}

.wallpaper-signature strong {
  font-size: clamp(64px, 11vw, 150px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.09em;
}

.wallpaper-signature strong span {
  color: rgba(0, 0, 128, 0.28);
}

.wallpaper-kicker,
.wallpaper-signature small {
  margin-right: 0.15em;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.wallpaper-signature small {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.desktop-icons {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 9px;
  display: grid;
  width: 82px;
  gap: 10px;
}

.desktop-icon {
  display: grid;
  min-height: 68px;
  padding: 3px 2px;
  place-items: center;
  border: 0;
  color: #fff;
  background: transparent;
  text-align: center;
  text-shadow: 1px 1px 0 #000, 0 0 3px rgba(0, 0, 0, 0.92);
  cursor: default;
}

.desktop-icon svg {
  width: 34px;
  height: 34px;
  margin-bottom: 3px;
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.5));
  image-rendering: pixelated;
}

.desktop-icon span {
  display: inline;
  max-width: 76px;
  padding: 1px 3px;
  line-height: 1.2;
}

.desktop-icon.is-selected span,
.desktop-icon:focus span {
  background: var(--navy);
  outline: 1px dotted #fff;
  outline-offset: -2px;
}

.desktop-hint {
  position: absolute;
  z-index: 1;
  bottom: 12px;
  left: 15px;
  margin: 0;
  padding: 2px 4px;
  color: #fff;
  background: rgba(0, 0, 0, 0.32);
  font-size: 11px;
  text-shadow: 1px 1px rgba(0, 0, 0, 0.35);
}

.window {
  position: absolute;
  z-index: 5;
  display: none;
  min-width: 300px;
  padding: 3px;
  overflow: hidden;
  border: 0;
  background: var(--surface);
  box-shadow:
    inset 1px 1px var(--highlight),
    inset -1px -1px var(--dark),
    inset 2px 2px var(--surface-light),
    inset -2px -2px var(--shadow),
    3px 4px 0 rgba(0, 0, 0, 0.42);
}

.window.is-open {
  display: flex;
  flex-direction: column;
}

.window[hidden] {
  display: none;
}

.window.is-maximized {
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}

.window--welcome {
  top: 5.5vh;
  left: max(112px, calc(50vw - 390px));
  width: min(780px, calc(100vw - 145px));
  height: min(540px, calc(100dvh - var(--taskbar-height) - 8vh));
  min-height: 430px;
}

.window--projects {
  top: 7vh;
  left: max(105px, calc(50vw - 365px));
  width: min(760px, calc(100vw - 135px));
  height: min(565px, calc(100dvh - var(--taskbar-height) - 10vh));
}

.window--about {
  top: 7vh;
  left: max(105px, calc(50vw - 340px));
  width: min(700px, calc(100vw - 135px));
  height: min(570px, calc(100dvh - var(--taskbar-height) - 9vh));
  min-height: 470px;
}

.window--favorites {
  top: 8vh;
  left: max(105px, calc(50vw - 350px));
  width: min(720px, calc(100vw - 135px));
  height: min(525px, calc(100dvh - var(--taskbar-height) - 10vh));
  min-height: 440px;
}

.window--game {
  top: 4.5vh;
  left: max(105px, calc(50vw - 350px));
  width: min(700px, calc(100vw - 135px));
  height: min(610px, calc(100dvh - var(--taskbar-height) - 7vh));
  min-height: 500px;
}

.window--contact {
  top: 18vh;
  left: max(105px, calc(50vw - 245px));
  width: min(490px, calc(100vw - 135px));
  min-height: 282px;
}

.window--recycle {
  top: 22vh;
  left: max(105px, calc(50vw - 230px));
  width: min(460px, calc(100vw - 135px));
  min-height: 250px;
}

.window--run {
  top: 23vh;
  left: max(105px, calc(50vw - 245px));
  width: min(490px, calc(100vw - 135px));
  min-height: 255px;
}

.window--credits {
  top: 18vh;
  left: max(105px, calc(50vw - 245px));
  width: min(490px, calc(100vw - 135px));
  min-height: 310px;
}

.title-bar {
  display: flex;
  flex: 0 0 21px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 2px 2px 2px 3px;
  color: #fff;
  background: #808080;
  user-select: none;
}

.window.is-active .title-bar {
  background: linear-gradient(90deg, var(--navy), var(--blue));
}

.title-bar__label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.title-bar__label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title-bar__label svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}

.window-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 2px;
}

.window-controls button,
.win-button,
.start-button,
.task-button,
.tab {
  border: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow:
    inset 1px 1px var(--highlight),
    inset -1px -1px var(--dark),
    inset 2px 2px var(--surface-light),
    inset -2px -2px var(--shadow);
}

.window-controls button:active,
.win-button:active,
.start-button:active,
.start-button[aria-expanded="true"],
.task-button:active,
.task-button.is-active,
.tab.is-selected {
  box-shadow:
    inset 1px 1px var(--dark),
    inset -1px -1px var(--highlight),
    inset 2px 2px var(--shadow),
    inset -2px -2px var(--surface-light);
}

.window-controls button {
  position: relative;
  display: grid;
  width: 18px;
  height: 17px;
  padding: 0 0 2px;
  place-items: center;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.menu-bar {
  display: flex;
  flex: 0 0 24px;
  align-items: center;
  gap: 18px;
  padding: 0 8px;
}

.menu-bar span::first-letter {
  text-decoration: underline;
}

.window-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.welcome {
  display: grid;
  margin: 0 3px;
  overflow: auto;
  border: 2px solid;
  border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow);
  background: #fff;
  grid-template-columns: minmax(245px, 0.95fr) minmax(300px, 1.25fr);
}

.welcome__art {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(156deg, transparent 0 57%, rgba(0, 255, 255, 0.32) 57% 58%, transparent 58%),
    linear-gradient(33deg, #000038 0 23%, #000080 23% 58%, #006f88 58% 79%, #00a09d 79% 100%);
  isolation: isolate;
}

.welcome__art::before,
.welcome__art::after {
  position: absolute;
  content: "";
  transform: rotate(-28deg);
  background: rgba(255, 255, 255, 0.11);
}

.welcome__art::before {
  top: 41%;
  left: -20%;
  width: 145%;
  height: 32px;
}

.welcome__art::after {
  top: 55%;
  left: -5%;
  width: 145%;
  height: 10px;
}

.hero-mark {
  position: absolute;
  z-index: 2;
  top: 18%;
  left: 50%;
  color: #fff;
  font-family: Arial Black, Arial, sans-serif;
  font-size: clamp(78px, 10vw, 132px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.16em;
  text-shadow: 4px 4px 0 #000080, 7px 7px 0 rgba(0, 0, 0, 0.35);
  transform: translateX(-54%) skew(-5deg);
}

.hero-cursor {
  position: absolute;
  z-index: 3;
  top: 53%;
  left: 61%;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 42px;
  line-height: 1;
  text-shadow: 2px 2px #000;
  transform: rotate(-7deg);
}

.welcome__art p {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 27px;
  left: 24px;
  margin: 0;
  color: rgba(255, 255, 255, 0.93);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.22em;
}

.hero-orbit {
  position: absolute;
  z-index: 1;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.hero-orbit--one {
  top: 12%;
  left: 16%;
  width: 68%;
  height: 49%;
  transform: rotate(19deg);
}

.hero-orbit--two {
  top: 20%;
  left: 26%;
  width: 47%;
  height: 42%;
  border-color: rgba(0, 255, 255, 0.34);
  transform: rotate(66deg);
}

.pixel-stars {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 23px 19px;
  opacity: 0.2;
}

.welcome__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 52px);
  background:
    linear-gradient(135deg, rgba(16, 132, 208, 0.04) 25%, transparent 25%) 0 0 / 8px 8px,
    #fff;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.welcome h1 {
  margin: 0;
  color: var(--navy);
  font-family: Arial Black, Arial, sans-serif;
  font-size: clamp(35px, 5vw, 60px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.lead {
  margin: 12px 0 13px;
  font-size: 16px;
  font-weight: 700;
}

.welcome__copy > p:not(.eyebrow):not(.lead) {
  max-width: 44ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.button-row,
.contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.win-button {
  display: inline-flex;
  min-width: 92px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 5px 13px 6px;
  color: #000;
  text-align: center;
  text-decoration: none;
  cursor: default;
}

.win-button--primary {
  outline: 1px dotted #000;
  outline-offset: -5px;
  font-weight: 700;
}

.quick-specs {
  display: grid;
  margin-top: 24px;
  border-top: 1px solid #ccc;
  grid-template-columns: repeat(3, 1fr);
}

.quick-specs div {
  padding: 10px 9px 0;
  border-right: 1px solid #ddd;
}

.quick-specs div:first-child {
  padding-left: 0;
}

.quick-specs div:last-child {
  border-right: 0;
}

.quick-specs span,
.quick-specs strong {
  display: block;
}

.quick-specs span {
  margin-bottom: 3px;
  color: #666;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.quick-specs strong {
  font-size: 11px;
}

.quick-specs i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 3px;
  background: #00a000;
  box-shadow: 1px 1px 0 #005000;
}

.status-bar {
  display: grid;
  flex: 0 0 23px;
  gap: 3px;
  padding: 3px;
  grid-template-columns: 1fr auto;
}

.status-bar span {
  min-width: 0;
  padding: 2px 5px;
  overflow: hidden;
  border: 1px solid;
  border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-body {
  display: grid;
  min-height: 0;
  margin: 0 3px;
  overflow: hidden;
  border: 2px solid;
  border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow);
  background: #000;
  grid-template-rows: auto minmax(0, 1fr);
}

.game-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-bottom: 1px solid var(--dark);
  background: var(--surface);
}

.game-toolbar .win-button {
  min-width: 82px;
}

.game-toolbar .win-button[hidden] {
  display: none;
}

.game-toolbar p {
  margin: 0 0 0 auto;
  color: #333;
  font-size: 10px;
  text-align: right;
}

.game-stage {
  position: relative;
  display: grid;
  min-height: 0;
  padding: 8px;
  overflow: hidden;
  background: #000;
  grid-template-rows: minmax(0, 1fr);
}

.game-board {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
}

.game-canvas {
  display: block;
  box-sizing: content-box;
  width: min(calc(100% - 4px), 640px);
  max-height: calc(100% - 4px);
  height: auto;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  background: #00002e;
  cursor: crosshair;
  image-rendering: pixelated;
  touch-action: none;
}

.game-canvas:focus-visible {
  outline: 2px dotted #fff;
  outline-offset: -5px;
}

.game-touch-control {
  display: none;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 2px solid;
  border-color: #808080 #fff #fff #808080;
  color: #ffcd00;
  background: #080808;
  box-shadow: inset 1px 1px #000;
  cursor: ew-resize;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-align: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.game-touch-control > span:first-child {
  font-size: 24px;
  line-height: 1;
}

.game-touch-control.is-active {
  border-color: #ffcd00;
  background: #171200;
}

.game-overlay {
  position: absolute;
  display: grid;
  inset: 0;
  place-items: center;
  background: rgba(0, 0, 30, 0.76);
}

.game-overlay[hidden] {
  display: none;
}

.game-overlay__panel {
  width: min(340px, calc(100% - 24px));
  padding: 22px;
  border: 0;
  background: var(--surface);
  box-shadow:
    inset 1px 1px var(--highlight),
    inset -1px -1px var(--dark),
    inset 2px 2px var(--surface-light),
    inset -2px -2px var(--shadow),
    4px 4px 0 rgba(0, 0, 0, 0.48);
  text-align: center;
}

.game-overlay__eyebrow,
.game-overlay__panel strong {
  display: block;
}

.game-overlay__eyebrow {
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.game-overlay__panel strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.game-overlay__panel p {
  margin: 8px 0 16px;
}

.game-launch {
  margin-top: 14px;
}

.game-status {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-status span {
  text-align: center;
}

.score-dialog {
  width: min(430px, calc(100vw - 28px));
  max-height: calc(100dvh - 48px);
  padding: 3px;
  overflow: hidden;
  border: 2px solid;
  border-color: var(--highlight) var(--dark) var(--dark) var(--highlight);
  color: #000;
  background: var(--surface);
  box-shadow:
    inset 1px 1px var(--surface-light),
    inset -1px -1px var(--shadow),
    5px 5px 0 rgba(0, 0, 0, 0.48);
  font: inherit;
}

.score-dialog::backdrop {
  background: rgba(0, 0, 0, 0.56);
}

.score-dialog__titlebar {
  display: flex;
  min-height: 25px;
  align-items: center;
  justify-content: space-between;
  padding: 3px 3px 3px 6px;
  color: #fff;
  background: var(--navy);
}

.score-dialog__titlebar strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.score-dialog__titlebar button {
  display: grid;
  width: 20px;
  height: 19px;
  flex: 0 0 20px;
  padding: 0 0 2px;
  border: 2px solid;
  border-color: var(--highlight) var(--dark) var(--dark) var(--highlight);
  place-items: center;
  background: var(--surface);
  font: 700 13px/1 Arial, sans-serif;
}

.score-dialog__titlebar button:active {
  border-color: var(--dark) var(--highlight) var(--highlight) var(--dark);
  padding: 1px 0 1px 1px;
}

.score-dialog__body {
  max-height: calc(100dvh - 86px);
  padding: 14px;
  overflow: auto;
}

.score-entry {
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--shadow);
  background: #ffffdf;
  box-shadow: inset 1px 1px #fff;
}

.score-entry[hidden] {
  display: none;
}

.score-entry p {
  margin: 0 0 8px;
  font-weight: 700;
}

.score-entry__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-entry__row label {
  flex: 0 0 auto;
}

.score-entry__row input {
  width: 70px;
  min-width: 0;
  height: 28px;
  padding: 3px 6px;
  border: 2px solid;
  border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow);
  background: #fff;
  font: 700 16px/1 "Courier New", monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.score-dialog__status {
  min-height: 16px;
  margin: 0 0 8px;
}

.score-table-wrap {
  overflow-x: auto;
  border: 2px solid;
  border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow);
  background: #fff;
}

.score-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Courier New", monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.score-table th,
.score-table td {
  padding: 5px 7px;
  border-bottom: 1px solid #ddd;
  text-align: left;
  white-space: nowrap;
}

.score-table th {
  color: #fff;
  background: #000080;
  font-family: "MS Sans Serif", Tahoma, sans-serif;
  font-size: 10px;
}

.score-table th:first-child,
.score-table td:first-child {
  width: 34px;
  text-align: center;
}

.score-table th:nth-child(3),
.score-table td:nth-child(3),
.score-table th:last-child,
.score-table td:last-child {
  text-align: right;
}

.score-table tbody tr:nth-child(even) {
  background: #f0f0f0;
}

.score-table tbody tr:last-child td {
  border-bottom: 0;
}

.score-table__empty {
  height: 68px;
  color: #555;
  text-align: center !important;
  white-space: normal !important;
}

.score-dialog__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.score-dialog__actions .win-button {
  min-width: 82px;
}

.address-bar {
  display: grid;
  flex: 0 0 28px;
  align-items: center;
  gap: 6px;
  padding: 2px 5px 4px;
  border-top: 1px solid var(--highlight);
  grid-template-columns: auto 1fr;
}

.address-field {
  display: flex;
  height: 22px;
  align-items: center;
  gap: 4px;
  padding: 1px 5px;
  overflow: hidden;
  border: 2px solid;
  border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow);
  background: #fff;
  white-space: nowrap;
}

.address-field svg {
  width: 16px;
  height: 16px;
}

.explorer-body {
  display: grid;
  margin: 0 3px;
  overflow: auto;
  border: 2px solid;
  border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow);
  background: #fff;
  grid-template-columns: 190px 1fr;
}

.explorer-sidebar {
  padding: 23px 18px;
  color: #fff;
  background:
    linear-gradient(170deg, rgba(255, 255, 255, 0.13) 0 38%, transparent 38%),
    linear-gradient(#000080, #008080);
}

.explorer-sidebar h2 {
  margin: 0 0 14px;
  font-size: 25px;
  line-height: 1;
}

.explorer-sidebar p {
  line-height: 1.5;
}

.text-link {
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
}

.project-list {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 17px;
}

.project-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #aaa;
  background: #f7f7f7;
  box-shadow: 1px 1px 0 #ddd;
  grid-template-columns: 50px 1fr;
}

.project-card:hover {
  border-color: var(--navy);
}

.project-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  font-family: Arial Black, Arial, sans-serif;
  font-size: 25px;
  box-shadow: 2px 2px 0 #000;
}

.project-card__icon--kontaq {
  background: #6747ff;
}

.project-card__icon--solvusoft {
  background: #0080b0;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 3px;
}

.project-card__meta span {
  padding: 2px 4px;
  color: #fff;
  background: var(--navy);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.project-card h3 {
  margin: 0 0 3px;
  color: var(--navy);
  font-size: 20px;
}

.project-card p {
  margin: 0 0 10px;
}

.project-card .win-button {
  min-height: 24px;
  padding: 3px 10px 4px;
}

.project-card--note {
  align-items: center;
  background: #ffffdf;
}

.project-card--note > svg {
  width: 38px;
  height: 38px;
  justify-self: center;
}

.project-card--note h3 {
  color: #000;
  font-size: 14px;
}

.project-card--note p {
  margin: 0;
}

.tabs {
  display: flex;
  flex: 0 0 28px;
  align-items: end;
  padding: 5px 8px 0;
  gap: 2px;
}

.tab {
  position: relative;
  flex: 0 0 auto;
  min-width: 82px;
  height: 24px;
  padding: 3px 10px 6px;
}

.tab.is-selected {
  z-index: 2;
  height: 26px;
  margin-bottom: -2px;
  box-shadow:
    inset 1px 1px var(--highlight),
    inset -1px 0 var(--dark),
    inset 2px 2px var(--surface-light),
    inset -2px 0 var(--shadow);
}

.tab-panel[hidden] {
  display: none !important;
}

.about-panels {
  min-width: 0;
  margin: 0 8px;
  overflow: auto;
  border: 2px solid;
  border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow);
  background: var(--surface);
}

.about-body {
  display: grid;
  min-height: 100%;
  padding: 24px;
  background: var(--surface);
  grid-template-columns: 100px 1fr;
  gap: 22px;
}

.about-badge {
  position: relative;
  display: grid;
  width: 92px;
  height: 92px;
  align-self: start;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0 52%, var(--desktop) 52%);
  border: 4px solid #fff;
  box-shadow: 2px 2px 0 #808080, 4px 4px 0 #000;
  font-family: Arial Black, Arial, sans-serif;
  font-size: 40px;
  letter-spacing: -0.12em;
}

.about-badge small {
  position: absolute;
  right: 5px;
  bottom: 3px;
  color: #00ffff;
  font-size: 14px;
  letter-spacing: 0;
}

.about-copy h2,
.contact-body h2,
.empty-state h2,
.credits-body h2 {
  margin: 0 0 3px;
  font-size: 21px;
}

.about-subtitle {
  margin: 0;
  color: #555;
}

.about-intro {
  max-width: 52ch;
  margin: 12px 0 0;
  line-height: 1.5;
}

.about-copy hr {
  height: 2px;
  margin: 16px 0;
  border: 0;
  border-top: 1px solid var(--shadow);
  border-bottom: 1px solid var(--highlight);
}

.system-list {
  display: grid;
  gap: 9px;
  margin: 0;
}

.system-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
}

.system-list dt {
  font-weight: 700;
}

.system-list dd {
  margin: 0;
}

.about-note {
  display: grid;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 9px;
  border: 1px solid #999;
  background: #fff;
  grid-template-columns: 30px 1fr;
}

.about-note svg {
  width: 28px;
  height: 28px;
}

.about-note p {
  margin: 0;
}

.story-panel,
.today-panel {
  min-height: 100%;
  padding: 24px;
  overflow: auto;
  background: var(--surface);
}

.panel-heading,
.favorite-panel__heading {
  display: grid;
  align-items: center;
  gap: 13px;
  grid-template-columns: 46px 1fr;
}

.panel-heading > svg,
.favorite-panel__heading > svg {
  width: 42px;
  height: 42px;
  image-rendering: pixelated;
}

.panel-heading h2,
.favorite-panel__heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
}

.panel-heading .eyebrow,
.favorite-panel__heading .eyebrow {
  margin-bottom: 2px;
}

.story-timeline {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.story-timeline::before {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 77px;
  width: 2px;
  content: "";
  background: var(--shadow);
  box-shadow: 1px 0 var(--highlight);
}

.story-timeline li {
  position: relative;
  display: grid;
  gap: 18px;
  grid-template-columns: 68px 1fr;
}

.story-timeline li > span {
  align-self: start;
  padding: 3px 4px;
  color: #fff;
  background: var(--navy);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
}

.story-timeline li > div {
  position: relative;
  padding: 8px 10px;
  border: 1px solid #999;
  background: #fff;
}

.story-timeline li > div::before {
  position: absolute;
  top: 10px;
  left: -16px;
  width: 7px;
  height: 7px;
  content: "";
  border: 1px solid #000;
  background: #00a000;
}

.story-timeline strong {
  display: block;
  margin-bottom: 2px;
}

.story-timeline p {
  margin: 0;
  line-height: 1.4;
}

.today-intro {
  max-width: 58ch;
  margin: 14px 0;
  font-size: 13px;
  line-height: 1.5;
}

.today-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.today-grid article {
  display: grid;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #999;
  background: #fff;
  grid-template-columns: 36px 1fr;
}

.today-grid__letter {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  font-family: Arial Black, Arial, sans-serif;
  font-size: 18px;
  box-shadow: 2px 2px #000;
}

.today-grid__letter--s { background: #0080b0; }
.today-grid__letter--k { background: #6747ff; }

.today-grid h3 {
  margin: 0 0 3px;
  color: var(--navy);
  font-size: 15px;
}

.today-grid p {
  margin: 0;
}

.favorites-body {
  display: grid;
  min-height: 0;
  margin: 0 3px;
  overflow: hidden;
  border: 2px solid;
  border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow);
  background: #fff;
  grid-template-columns: 176px 1fr;
}

.favorite-tabs {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding: 12px 9px;
  overflow: auto;
  color: #fff;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.16) 0 34%, transparent 34%),
    linear-gradient(#000080, #008080);
}

.favorite-tab {
  display: grid;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  padding: 5px 7px;
  border: 1px solid transparent;
  color: #fff;
  background: transparent;
  font-weight: 700;
  text-align: left;
  text-shadow: 1px 1px #000;
  grid-template-columns: 25px 1fr;
}

.favorite-tab > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--navy);
  background: #ffff00;
  box-shadow: 1px 1px #000;
  font-size: 9px;
  text-shadow: none;
}

.favorite-tab:hover,
.favorite-tab:focus-visible,
.favorite-tab.is-selected {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 128, 0.72);
  outline: 1px dotted #fff;
  outline-offset: -4px;
}

.favorite-panels {
  min-width: 0;
  overflow: auto;
  background:
    linear-gradient(135deg, rgba(16, 132, 208, 0.035) 25%, transparent 25%) 0 0 / 8px 8px,
    #fff;
}

.favorite-panel {
  min-height: 100%;
  padding: 25px;
}

.favorite-panel > p {
  max-width: 50ch;
  margin: 16px 0 11px;
  line-height: 1.5;
}

.favorite-list {
  display: grid;
  gap: 7px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.favorite-list li {
  position: relative;
  min-height: 34px;
  padding: 8px 10px 8px 33px;
  border: 1px solid #aaa;
  background: #f7f7f7;
  box-shadow: 1px 1px #ddd;
}

.favorite-list li::before {
  position: absolute;
  top: 8px;
  left: 9px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  content: "★";
  color: #ffff00;
  background: var(--navy);
  font-size: 9px;
  text-shadow: 1px 1px #000;
}

.favorite-list--places,
.favorite-list--arcade {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


.run-body {
  display: grid;
  min-height: 218px;
  align-items: start;
  gap: 17px;
  padding: 22px 20px 14px;
  background: var(--surface);
  grid-template-columns: 48px 1fr;
}

.run-body > svg {
  width: 44px;
  height: 44px;
}

.run-body p {
  margin: 0 0 13px;
  line-height: 1.4;
}

.run-body label {
  display: inline-block;
  width: 44px;
}

.run-body input {
  width: calc(100% - 50px);
  height: 25px;
  padding: 2px 5px;
  border: 2px solid;
  border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow);
  border-radius: 0;
  background: #fff;
}

.run-message {
  min-height: 31px;
  margin: 10px 0 0 50px !important;
  color: #555;
  font-size: 10px;
}

.run-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  grid-column: 1 / -1;
}

.dialog-actions {
  display: flex;
  flex: 0 0 50px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 9px 10px 11px;
}

.contact-body,
.empty-state,
.credits-body {
  display: grid;
  align-items: start;
  gap: 18px;
  margin: 3px;
  padding: 25px;
  border: 2px solid;
  border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow);
  background: #fff;
  grid-template-columns: 54px 1fr;
}

.contact-icon,
.empty-state > svg,
.credits-body > svg {
  width: 50px;
  height: 50px;
}

.contact-body p:not(.eyebrow),
.credits-body p {
  max-width: 43ch;
  margin: 7px 0 0;
  line-height: 1.5;
}

.empty-state {
  align-items: center;
  min-height: 185px;
}

.empty-state p {
  margin: 4px 0 0;
}

.credits-body {
  min-height: 225px;
}

.fine-print {
  color: #666;
  font-size: 10px;
}

.taskbar {
  position: fixed;
  z-index: 9000;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: var(--taskbar-height);
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  box-shadow: inset 0 1px var(--highlight), inset 0 2px var(--surface-light);
}

.start-button {
  display: flex;
  flex: 0 0 76px;
  height: 30px;
  align-items: center;
  gap: 7px;
  padding: 3px 8px 4px;
  font-size: 13px;
}

.start-glyph {
  display: grid;
  width: 20px;
  height: 20px;
  padding: 1px;
  background: #fff;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1px;
  transform: skew(-5deg);
}

.start-glyph i:nth-child(1) { background: #f00; }
.start-glyph i:nth-child(2) { background: #0a0; }
.start-glyph i:nth-child(3) { background: #00f; }
.start-glyph i:nth-child(4) { background: #ff0; }

.taskbar__divider {
  width: 2px;
  height: 28px;
  border-right: 1px solid #fff;
  border-left: 1px solid #808080;
}

.task-buttons {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  gap: 3px;
  overflow: hidden;
}

.task-button {
  display: flex;
  min-width: 48px;
  max-width: 178px;
  height: 29px;
  flex: 0 1 178px;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-weight: 700;
  text-align: left;
}

.task-button svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}

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

.system-tray {
  display: flex;
  flex: 0 0 auto;
  height: 29px;
  align-items: center;
  gap: 8px;
  padding: 2px 9px;
  border: 2px solid;
  border-color: var(--shadow) var(--highlight) var(--highlight) var(--shadow);
  background: var(--surface);
}

.network-lights {
  display: flex;
  align-items: end;
  gap: 1px;
}

.network-lights i {
  display: block;
  width: 5px;
  background: #00a000;
  box-shadow: 1px 0 #004000;
}

.network-lights i:first-child { height: 7px; }
.network-lights i:last-child { height: 11px; }

.start-menu {
  position: fixed;
  z-index: 8999;
  bottom: var(--taskbar-height);
  left: 3px;
  display: grid;
  width: 285px;
  max-height: calc(100dvh - var(--taskbar-height) - 6px);
  min-height: 330px;
  overflow: auto;
  padding: 3px;
  background: var(--surface);
  box-shadow:
    inset 1px 1px var(--highlight),
    inset -1px -1px var(--dark),
    inset 2px 2px var(--surface-light),
    inset -2px -2px var(--shadow),
    2px 2px 0 rgba(0, 0, 0, 0.25);
  grid-template-columns: 32px 1fr;
}

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

.start-menu__rail {
  display: flex;
  align-items: center;
  padding: 7px 4px;
  color: #fff;
  background: #808080;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-orientation: mixed;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.start-menu__rail span {
  color: #d8d8d8;
  font-weight: 400;
}

.start-menu__items {
  display: flex;
  flex-direction: column;
  padding: 3px;
}

.start-menu__items button {
  display: grid;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  text-align: left;
  grid-template-columns: 36px 1fr;
}

.start-menu__items button:hover,
.start-menu__items button:focus-visible {
  color: #fff;
  background: var(--navy);
  outline: 0;
}

.start-menu__items svg {
  width: 34px;
  height: 34px;
}

.start-menu__items strong,
.start-menu__items small {
  display: block;
}

.start-menu__items strong {
  margin-bottom: 2px;
  font-size: 13px;
}

.start-menu__items small {
  color: #555;
  font-size: 10px;
}

.start-menu__items button:hover small,
.start-menu__items button:focus-visible small {
  color: #fff;
}

.start-menu__divider {
  height: 2px;
  margin: 5px 3px;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #fff;
}

.no-js body {
  overflow: auto;
}

.no-js .desktop {
  display: grid;
  height: auto;
  min-height: 100vh;
  padding: 110px 16px 60px;
  gap: 16px;
}

.no-js .window {
  position: relative;
  top: auto;
  left: auto;
  display: flex;
  width: min(780px, 100%);
  height: auto;
  margin: auto;
}

.no-js [role="tablist"] {
  display: none;
}

.no-js .tab-panel[hidden] {
  display: block !important;
}

@media (min-width: 721px) and (max-height: 560px) {
  .desktop {
    min-height: 0;
  }

  .desktop-icons {
    bottom: 8px;
    max-height: calc(100% - 18px);
    gap: 2px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .desktop-icons::-webkit-scrollbar {
    display: none;
  }

  .desktop-icon {
    min-height: 58px;
  }

  .desktop-icon svg {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 900px) {
  .window--welcome {
    left: 100px;
    width: calc(100vw - 112px);
  }

  .quick-specs {
    grid-template-columns: 1fr;
  }

  .quick-specs div {
    padding: 6px 0;
    border-right: 0;
    border-bottom: 1px solid #ddd;
  }
}

@media (max-width: 720px) {
  :root {
    --taskbar-height: 48px;
  }

  .desktop {
    min-height: 360px;
    background-position: 62% center;
  }

  .desktop::before {
    background:
      linear-gradient(180deg, rgba(0, 8, 14, 0.56) 0 90px, rgba(0, 8, 14, 0.2) 150px, transparent 46%),
      linear-gradient(0deg, rgba(0, 8, 14, 0.28), transparent 35%);
  }

  .desktop-icons {
    top: 8px;
    right: auto;
    left: 6px;
    width: 82px;
    max-height: calc(100% - 16px);
    grid-template-columns: 1fr;
    gap: 4px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }

  .desktop-icons::-webkit-scrollbar {
    display: none;
  }

  .desktop-icon {
    min-width: 0;
    min-height: 64px;
  }

  .desktop-icon span {
    max-width: 76px;
    font-size: 10px;
  }

  .desktop-hint,
  .wallpaper-signature {
    display: none;
  }

  .window,
  .window--welcome,
  .window--projects,
  .window--about,
  .window--favorites,
  .window--game,
  .window--contact,
  .window--recycle,
  .window--run,
  .window--credits {
    position: fixed;
    top: 88px !important;
    right: 5px !important;
    bottom: calc(var(--taskbar-height) + 5px) !important;
    left: 5px !important;
    width: auto !important;
    height: auto !important;
    min-width: 0;
    min-height: 0;
  }

  .title-bar {
    flex-basis: 28px;
  }

  .window-controls button {
    width: 26px;
    height: 24px;
  }

  .welcome {
    display: block;
  }

  .welcome__art {
    min-height: 180px;
  }

  .hero-mark {
    top: 19%;
    font-size: 82px;
  }

  .hero-cursor {
    top: 52%;
  }

  .welcome__art p {
    right: 15px;
    bottom: 12px;
    left: 15px;
  }

  .welcome__copy {
    padding: 23px 21px 27px;
  }

  .welcome h1 {
    font-size: 40px;
  }

  .quick-specs {
    display: none;
  }

  .explorer-body {
    display: block;
  }

  .explorer-sidebar {
    padding: 14px 16px;
  }

  .explorer-sidebar h2 {
    margin-bottom: 7px;
    font-size: 20px;
  }

  .explorer-sidebar p {
    margin: 0 0 6px;
  }

  .project-list {
    padding: 10px;
  }

  .project-card {
    padding: 11px;
    grid-template-columns: 40px 1fr;
  }

  .project-card__icon {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .about-body {
    display: block;
    overflow: auto;
    padding: 18px;
  }

  .about-panels {
    margin: 0 5px;
  }

  .story-panel,
  .today-panel {
    padding: 18px;
  }

  .about-badge {
    width: 68px;
    height: 68px;
    float: left;
    margin: 0 18px 12px 0;
    font-size: 28px;
  }

  .system-list {
    clear: both;
  }

  .system-list div {
    display: block;
  }

  .system-list dt {
    margin-top: 7px;
  }

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

  .favorites-body {
    display: block;
    overflow: auto;
  }

  .favorite-tabs {
    position: sticky;
    z-index: 2;
    top: 0;
    flex-direction: row;
    padding: 7px;
    overflow-x: auto;
  }

  .favorite-tab {
    min-height: 38px;
    flex: 0 0 132px;
  }

  .favorite-panel {
    padding: 18px;
  }

  .game-toolbar {
    flex-wrap: wrap;
  }

  .game-toolbar .win-button,
  .game-overlay .win-button,
  .score-dialog .win-button {
    min-height: 44px;
  }

  .game-toolbar p {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .game-stage {
    padding: 5px;
    gap: 6px;
    grid-template-rows: minmax(0, 1fr) 64px;
  }

  .game-touch-control {
    display: flex;
  }

  .game-overlay__panel {
    padding: 16px;
  }

  .score-dialog {
    max-height: calc(100dvh - 20px);
  }

  .score-dialog__body {
    max-height: calc(100dvh - 60px);
    padding: 10px;
  }

  .score-entry__row {
    flex-wrap: wrap;
  }

  .score-entry__row input {
    flex: 1 1 90px;
  }

  .game-status {
    font-size: 10px;
  }

  .run-body {
    min-height: 100%;
  }

  .contact-body,
  .credits-body {
    padding: 18px;
    grid-template-columns: 38px 1fr;
  }

  .contact-icon,
  .credits-body > svg {
    width: 36px;
    height: 36px;
  }

  .win-button {
    min-height: 36px;
  }

  .start-button {
    flex-basis: 70px;
    height: 39px;
  }

  .task-button {
    height: 38px;
    padding: 4px 6px;
  }

  .task-button span {
    display: none;
  }

  .system-tray {
    height: 39px;
    padding: 2px 7px;
  }

  .network-lights {
    display: none;
  }

  .start-menu {
    right: 3px;
    width: auto;
  }
}

@media (hover: none) and (pointer: coarse) and (min-width: 721px) {
  .game-stage {
    gap: 6px;
    grid-template-rows: minmax(0, 1fr) 64px;
  }

  .game-touch-control {
    display: flex;
  }
}

@media (max-width: 430px) {
  .game-toolbar .win-button {
    min-width: 0;
    flex: 1 1 110px;
  }

  .game-overlay__panel strong {
    font-size: 20px;
  }

  .menu-bar {
    gap: 12px;
  }

  .address-bar > span {
    display: none;
  }

  .address-bar {
    grid-template-columns: 1fr;
  }

  .tabs {
    overflow-x: auto;
  }

  .story-timeline::before {
    left: 63px;
  }

  .story-timeline li {
    gap: 14px;
    grid-template-columns: 56px 1fr;
  }

  .favorite-list--places,
  .favorite-list--arcade {
    grid-template-columns: 1fr;
  }

  .run-body {
    display: block;
    padding: 18px;
  }

  .run-body > svg {
    float: left;
    margin: 0 12px 8px 0;
  }

  .run-body label {
    display: block;
    width: auto;
    clear: both;
    margin-bottom: 4px;
  }

  .run-body input {
    width: 100%;
  }

  .run-message {
    margin: 10px 0 0 !important;
  }

  .run-actions {
    margin-top: 18px;
  }

  .contact-body,
  .credits-body,
  .empty-state {
    display: block;
    overflow: auto;
  }

  .contact-icon,
  .credits-body > svg,
  .empty-state > svg {
    margin-bottom: 10px;
  }

  .contact-options {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .welcome__art,
  .explorer-sidebar,
  .about-badge,
  .project-card__icon,
  .title-bar,
  .window.is-active .title-bar {
    forced-color-adjust: none;
  }
}
