:root {
  --bg-deep: #071327;
  --bg-mid: #102040;
  --bg-panel: #d7d2c4;
  --bg-panel-2: #ece7db;
  --bg-panel-3: #e5dfd2;
  --text-main: #10131b;
  --text-copy: #283041;
  --text-soft: #596171;
  --blue-1: #000080;
  --blue-2: #1084d0;
  --blue-3: #0d1731;
  --orange: #cb4d1d;
  --orange-soft: #fff1cf;
  --green-soft: #edf8db;
  --line-dark: #4b4b4b;
  --line-mid: #7d7d7d;
  --line-light: #ffffff;
  --shadow: rgba(0, 0, 0, 0.35);
  --top-offset: 88px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--top-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(58, 122, 255, 0.35), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 160, 84, 0.14), transparent 24%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 42%, #0a1730 100%);
  color: var(--text-main);
  font-family: "Space Grotesk", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
}

a,
button {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

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

.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 2px solid #000040;
  background: linear-gradient(90deg, #000080 0%, #0d3bb6 55%, #1084d0 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-width: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  white-space: nowrap;
}

.nav-links a {
  padding: 4px 10px;
  color: #fff;
  border: 1px solid transparent;
  font-family: "VT323", monospace;
  font-size: 19px;
  letter-spacing: 0.03em;
}

.nav-links a:hover {
  background: #fff;
  border-color: #d5e6ff;
  color: #000080;
}

.nav-links a[aria-current="page"] {
  background: #fff;
  border-color: #d5e6ff;
  color: #000080;
}

.marquee {
  position: fixed;
  top: 34px;
  left: 0;
  right: 0;
  z-index: 999;
  height: 24px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid #0b1020;
  background: var(--blue-3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.marquee-track {
  white-space: nowrap;
  color: #f3f6ff;
  font-family: "VT323", monospace;
  font-size: 18px;
  letter-spacing: 0.12em;
  animation: marquee 18s linear infinite;
}

.page {
  position: relative;
  z-index: 1;
  padding: 74px 12px 112px;
}

.desktop-shell {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
  border: 3px solid;
  border-color: var(--line-light) var(--line-dark) var(--line-dark) var(--line-light);
  background: linear-gradient(180deg, #ece8dc 0%, #ddd7ca 52%, #d4cfc1 100%);
  box-shadow: 14px 14px 0 var(--shadow);
}

.desktop-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
}

.desktop-grid {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  min-height: calc(100vh - 186px);
  padding: 16px;
}

.icon-rail {
  position: sticky;
  top: calc(var(--top-offset) + 16px);
  width: 100%;
  max-height: calc(100vh - var(--top-offset) - 86px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 10px 8px;
  border: 3px solid;
  border-color: var(--line-light) var(--line-dark) var(--line-dark) var(--line-light);
  background: #d0cbbd;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.22);
  align-self: start;
  z-index: 4;
  transform: translateY(var(--rail-drift, 0px));
  transition: transform 220ms ease-out;
}

.icon-link {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 82px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transform: translate3d(var(--slide-x, 0px), var(--slide-y, 0px), 0);
  transition: transform 180ms ease-out;
  will-change: transform;
  color: #1f1f1f;
  text-decoration: none;
}

.icon-link:visited {
  color: #1f1f1f;
}

.icon-link--active .icon-box {
  border-color: #f7f5ef #193a84 #193a84 #f7f5ef;
  background: linear-gradient(180deg, #f9f7f2 0%, #dfe7ff 100%);
  color: #10357e;
  box-shadow: 0 0 0 2px rgba(16, 53, 126, 0.14), 4px 4px 0 rgba(0, 0, 0, 0.18);
}

.icon-link--active .icon-label {
  color: #10357e;
}

.icon-label {
  color: inherit;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 3px solid;
  border-color: var(--line-light) #3a3a3a #3a3a3a var(--line-light);
  background: linear-gradient(180deg, #f7f4eb 0%, #ded8cb 100%);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.18);
  font-family: "VT323", monospace;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.icon-label {
  width: 100%;
  padding: 4px 6px;
  background: #111723;
  color: #f5f8ff;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
  font-family: "VT323", monospace;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tooltip {
  position: absolute;
  top: 2px;
  left: 88px;
  width: 182px;
  padding: 8px 10px;
  border: 2px solid #000;
  background: #fff7c4;
  color: #000;
  box-shadow: 3px 3px 0 #000;
  font-family: "VT323", monospace;
  font-size: 18px;
  line-height: 1.05;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.icon-link:hover .tooltip,
.icon-link:focus-within .tooltip {
  opacity: 1;
  transform: translateY(0);
}

.desktop-main {
  min-width: 0;
}

.window {
  border: 3px solid;
  border-color: var(--line-light) var(--line-dark) var(--line-dark) var(--line-light);
  background: var(--bg-panel);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.2);
}

.window + .window,
.status-grid,
.utility-grid,
.two-up {
  margin-top: 16px;
}

.title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 8px;
  background: linear-gradient(90deg, var(--blue-1) 0%, var(--blue-2) 100%);
  color: #fff;
}

.title-copy {
  min-width: 0;
}

.title-main {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "VT323", monospace;
  font-size: 21px;
  letter-spacing: 0.06em;
}

.title-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d8ebff;
  font-family: "VT323", monospace;
  font-size: 17px;
}

.title-buttons {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.window-btn {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  border-color: var(--line-light) #2b2b2b #2b2b2b var(--line-light);
  background: var(--bg-panel);
  color: #111;
  font-family: "VT323", monospace;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.window-btn {
  cursor: pointer;
}

.window-btn:hover {
  background: #ece7db;
}

.window-btn:active {
  border-color: #2b2b2b var(--line-light) var(--line-light) #2b2b2b;
}

.window-btn--close:hover {
  background: #cf4b4b;
  color: #fff;
}

.window--minimized .window-body,
.window--minimized .winamp-body {
  display: none;
}

.window--closed {
  display: none !important;
}

.window--maximized {
  position: fixed !important;
  top: calc(var(--top-offset) + 18px);
  left: clamp(12px, 4vw, 56px);
  right: clamp(12px, 4vw, 56px);
  bottom: 58px;
  z-index: 1250;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.22),
    20px 20px 0 rgba(0, 0, 0, 0.32);
  animation: window-pop 140ms ease-out;
}

.window--maximized .window-body {
  height: calc(100% - 42px);
  overflow: auto;
}

.winamp.window--maximized {
  left: auto;
  right: 24px;
  top: auto;
  bottom: 58px;
  width: min(430px, calc(100vw - 36px)) !important;
}

.window--deny-close {
  animation: deny-close 220ms linear 1;
}

.window-body {
  padding: 16px;
  background: var(--bg-panel);
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 280px;
  gap: 16px;
}

.hero-card {
  padding: 18px;
  border: 3px solid;
  border-color: var(--line-mid) var(--line-light) var(--line-light) var(--line-mid);
  background: #f7f4eb;
}

.status-badges,
.chip-row,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-badges span,
.chip-row span {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #6c717c;
  background: #ebe7dc;
  font-family: "VT323", monospace;
  font-size: 18px;
  letter-spacing: 0.03em;
}

.status-badges .warm {
  border-color: #a4451c;
  background: var(--orange-soft);
  color: #711800;
}

.status-badges .cool {
  border-color: #254d93;
  background: #e7f0ff;
  color: #16396f;
}

.status-badges .safe {
  border-color: #456127;
  background: var(--green-soft);
  color: #324819;
}

.hero-card h1 {
  max-width: 16ch;
  margin-top: 18px;
  font-size: clamp(36px, 6vw, 70px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.hero-card p {
  max-width: 58ch;
  margin-top: 16px;
  color: var(--text-copy);
  font-size: 15px;
  line-height: 1.6;
}

.chip-row {
  margin-top: 20px;
}

.cta-row {
  margin-top: 22px;
}

.cta-primary,
.cta-secondary,
.tile-link,
.launch-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 3px solid;
  border-color: var(--line-light) #323232 #323232 var(--line-light);
  background: #d4d0c8;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
  font-family: "VT323", monospace;
  font-size: 19px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cta-primary:hover,
.cta-secondary:hover,
.tile-link:hover,
.launch-link:hover {
  transform: translateY(-1px);
}

.hero-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.side-panel,
.sticky-note {
  padding: 14px;
  border: 3px solid;
  border-color: var(--line-light) var(--line-dark) var(--line-dark) var(--line-light);
  background: var(--bg-panel-2);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.18);
}

.panel-label,
.window-label {
  color: #474d59;
  font-family: "VT323", monospace;
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-list,
.plain-list {
  margin-top: 12px;
  padding-left: 18px;
  color: var(--text-copy);
}

.signal-list li,
.plain-list li {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.launch-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.launch-link {
  justify-content: flex-start;
  text-align: left;
  font-size: 18px;
  letter-spacing: 0.04em;
}

.launch-link small {
  display: block;
  color: var(--text-soft);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.sticky-note {
  transform: rotate(-1.4deg);
  border-color: #131313;
  background: #fff5ad;
  box-shadow: 6px 6px 0 rgba(17, 17, 17, 0.22);
}

.sticky-note p {
  margin-top: 8px;
  color: #2f2a14;
  font-size: 14px;
  line-height: 1.5;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 280px;
  gap: 16px;
}

.intro-copy {
  display: grid;
  gap: 12px;
}

.intro-copy p {
  color: var(--text-copy);
  font-size: 14px;
  line-height: 1.62;
}

.intro-points {
  display: grid;
  gap: 10px;
  align-content: start;
}

.status-tile {
  display: block;
  padding: 14px;
  border: 3px solid;
  border-color: var(--line-light) var(--line-dark) var(--line-dark) var(--line-light);
  background: var(--bg-panel-3);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.18);
}

.status-tile .tile-title,
.mini-window h2 {
  color: #6b2d13;
  font-family: "VT323", monospace;
  font-size: 20px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status-tile p,
.mini-window p,
.content-copy {
  margin-top: 10px;
  color: var(--text-copy);
  font-size: 14px;
  line-height: 1.55;
}

.tile-link {
  justify-content: flex-start;
  margin-top: 14px;
  font-size: 18px;
  letter-spacing: 0.05em;
}

.utility-grid,
.two-up {
  display: grid;
  gap: 16px;
}

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

.two-up {
  grid-template-columns: 1.2fr 0.8fr;
}

.mini-window {
  background: var(--bg-panel-2);
}

.mini-window .window-body {
  background: var(--bg-panel-2);
}

.two-column-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 12px;
  padding-left: 18px;
  color: var(--text-copy);
}

.two-column-list li {
  font-size: 14px;
  line-height: 1.45;
}

.field-note {
  margin-top: 12px;
  padding: 12px;
  border: 2px solid;
  border-color: var(--line-mid) var(--line-light) var(--line-light) var(--line-mid);
  background: #f3efe5;
}

.field-note strong,
.content-copy strong {
  color: var(--text-main);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 260px;
  gap: 14px;
  margin-top: 12px;
}

.about-copy {
  display: grid;
  gap: 12px;
}

.about-copy p {
  color: var(--text-copy);
  font-size: 14px;
  line-height: 1.58;
}

.about-stack {
  display: grid;
  gap: 10px;
  align-content: start;
}

.about-card {
  padding: 12px;
  border: 3px solid;
  border-color: var(--line-light) var(--line-dark) var(--line-dark) var(--line-light);
  background: linear-gradient(180deg, #f7f4eb 0%, #e2dccf 100%);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.18);
}

.about-card strong {
  display: block;
  color: #6b2d13;
  font-family: "VT323", monospace;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-card p {
  margin-top: 8px;
  color: var(--text-copy);
  font-size: 14px;
  line-height: 1.5;
}

.about-card .plain-list {
  margin-top: 8px;
}

.about-desktop {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
  border: 3px solid;
  border-color: var(--line-light) var(--line-dark) var(--line-dark) var(--line-light);
  background: linear-gradient(180deg, #ece8dc 0%, #ded8cb 48%, #d4cfc2 100%);
  box-shadow: 14px 14px 0 var(--shadow);
}

.about-desktop::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12) 1px, transparent 1px);
  background-size: 20px 20px;
}

.about-desktop-inner {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 16px;
}

.profile-window .window-body {
  background: linear-gradient(180deg, #ede7da 0%, #e2dccf 100%);
}

.about-page-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.profile-badge {
  padding: 14px;
  border: 3px solid;
  border-color: var(--line-light) var(--line-dark) var(--line-dark) var(--line-light);
  background: linear-gradient(180deg, #f8f5ed 0%, #ddd7ca 100%);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.18);
}

.photo-panel {
  display: grid;
  gap: 8px;
}

.photo-reveal {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  padding: 0;
  overflow: hidden;
  border: 3px solid;
  border-color: #34405c #bfc9df #bfc9df #34405c;
  background:
    linear-gradient(180deg, #101c38 0%, #18294a 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08), 4px 4px 0 rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.photo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 240ms ease, transform 260ms ease, filter 260ms ease;
}

.photo-layer--pixel {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.photo-layer--original {
  z-index: 2;
  opacity: 0;
  transform: scale(1.03);
}

.photo-hint {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 6px 8px;
  border: 2px solid;
  border-color: var(--line-light) var(--line-dark) var(--line-dark) var(--line-light);
  background: rgba(12, 18, 31, 0.88);
  color: #f5f8ff;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.28);
  font-family: "VT323", monospace;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.photo-reveal:hover .photo-layer--original,
.photo-reveal:focus .photo-layer--original,
.photo-reveal:focus-visible .photo-layer--original,
.photo-reveal:active .photo-layer--original {
  opacity: 1;
  transform: scale(1);
}

.photo-reveal:hover .photo-layer--pixel,
.photo-reveal:focus .photo-layer--pixel,
.photo-reveal:focus-visible .photo-layer--pixel,
.photo-reveal:active .photo-layer--pixel {
  opacity: 0;
  transform: scale(1.04);
  filter: blur(1px);
}

.photo-reveal:hover .photo-hint,
.photo-reveal:focus .photo-hint,
.photo-reveal:focus-visible .photo-hint,
.photo-reveal:active .photo-hint {
  background: rgba(18, 70, 34, 0.9);
}

.profile-meta {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.profile-line {
  padding: 7px 8px;
  border: 2px solid;
  border-color: #7d7d7d var(--line-light) var(--line-light) #7d7d7d;
  background: #f3efe5;
  color: #374052;
  font-family: "VT323", monospace;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-page-copy h1 {
  max-width: 13ch;
  margin-top: 16px;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.about-page-copy p {
  margin-top: 12px;
  max-width: 62ch;
  color: var(--text-copy);
  font-size: 15px;
  line-height: 1.68;
}

.about-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.about-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #6c717c;
  background: #ebe7dc;
  font-family: "VT323", monospace;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.profile-stat {
  padding: 12px;
  border: 3px solid;
  border-color: var(--line-light) var(--line-dark) var(--line-dark) var(--line-light);
  background: var(--bg-panel-2);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.16);
}

.profile-stat strong {
  display: block;
  color: #6b2d13;
  font-family: "VT323", monospace;
  font-size: 22px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.profile-stat span {
  display: block;
  margin-top: 8px;
  color: var(--text-copy);
  font-size: 14px;
  line-height: 1.5;
}

.error-stack {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.error-dialog {
  position: absolute;
  width: 300px;
  max-width: 32vw;
  border: 2px solid #848284;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
  font-family: "VT323", monospace;
  pointer-events: auto;
}

.error-dialog[data-pos="1"] { top: 5%; left: 25%; transform: rotate(-1.2deg); }
.error-dialog[data-pos="2"] { top: 11%; left: 32%; transform: rotate(0.8deg); }
.error-dialog[data-pos="3"] { top: 17%; left: 39%; transform: rotate(-0.6deg); }
.error-dialog[data-pos="4"] { top: 23%; left: 47%; transform: rotate(0.5deg); }

.error-frame {
  border: 2px solid;
  border-color: #dfdfdf #848284 #848284 #dfdfdf;
}

.error-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 5px;
  background: linear-gradient(90deg, #800000 0%, #c04040 100%);
  color: #fff;
  font-size: 18px;
}

.error-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
}

.error-body {
  padding: 12px;
  background: #c0c0c0;
}

.error-body p {
  color: #111;
  font-size: 18px;
  line-height: 1.1;
}

.error-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.error-actions span {
  padding: 2px 10px;
  border: 2px solid;
  border-color: var(--line-light) #848284 #848284 var(--line-light);
  background: #c0c0c0;
  font-size: 17px;
}

.companion {
  position: fixed;
  left: 16px;
  bottom: 58px;
  z-index: 980;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  max-width: 236px;
  will-change: transform;
}

.companion-bubble {
  padding: 8px 10px;
  border: 2px solid #000;
  background: #fff;
  box-shadow: 2px 2px 0 #000;
  font-family: "VT323", monospace;
  font-size: 21px;
  line-height: 0.95;
}

.pet-shell {
  width: 248px;
  background: #d4d0c8;
  box-shadow: 3px 3px 0 #000;
}

.pet-body {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.pet-body p {
  margin: 0;
}

.pet-stage {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 126px;
  justify-items: center;
  overflow: visible;
}

.pet-sparkles {
  position: absolute;
  inset: -6px;
  pointer-events: none;
  overflow: hidden;
}

.pet-sparkles span {
  position: absolute;
  color: #fff27d;
  opacity: 0;
  text-shadow: 0 0 10px rgba(255, 242, 125, 0.75);
  font-family: "VT323", monospace;
  font-size: 20px;
}

.pet-sparkles span:nth-child(1) { top: 6px; left: 18px; }
.pet-sparkles span:nth-child(2) { top: 18px; right: 14px; }
.pet-sparkles span:nth-child(3) { top: 38px; left: 6px; }
.pet-sparkles span:nth-child(4) { top: 52px; right: 8px; }
.pet-sparkles span:nth-child(5) { bottom: 16px; left: 24px; }
.pet-sparkles span:nth-child(6) { bottom: 8px; right: 26px; }
.pet-sparkles span:nth-child(7) { top: 28px; left: 50%; }
.pet-sparkles span:nth-child(8) { bottom: 34px; right: 46%; }

.pet-ball {
  position: absolute;
  right: 18px;
  bottom: 8px;
  width: 16px;
  height: 16px;
  border: 2px solid #183210;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff7b6 0%, #fff7b6 18%, transparent 19%),
    radial-gradient(circle at 65% 62%, #fff7b6 0%, #fff7b6 18%, transparent 19%),
    linear-gradient(180deg, #d8ff5e 0%, #95d21c 100%);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
  z-index: 5;
  pointer-events: none;
  transition: transform 180ms ease-out, opacity 180ms ease-out;
}

.desktop-ball {
  position: fixed;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #183210;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff7b6 0%, #fff7b6 18%, transparent 19%),
    radial-gradient(circle at 65% 62%, #fff7b6 0%, #fff7b6 18%, transparent 19%),
    linear-gradient(180deg, #d8ff5e 0%, #95d21c 100%);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
  pointer-events: none;
  opacity: 0;
  z-index: 1420;
}

.desktop-ball--visible {
  opacity: 1;
}

.pet-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  min-height: 108px;
  padding: 6px 8px;
  border: 2px solid;
  border-color: var(--line-light) #5c5c5c #5c5c5c var(--line-light);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(180deg, #f6f2e7 0%, #d7d2c4 100%);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.pet-face--ghost {
  opacity: 0.12;
}

.pet-face:hover {
  transform: translateY(-1px);
}

.pet-face:active {
  border-color: #5c5c5c var(--line-light) var(--line-light) #5c5c5c;
}

.pet-glyph {
  display: block;
  width: 134px;
  height: 112px;
  overflow: visible;
}

.pet-sprite {
  --maggie-outline: #4b3e34;
  --maggie-fur: #efe8d8;
  --maggie-fur-warm: #d8c6a7;
  --maggie-fur-shade: #cdbba0;
  --maggie-chest: #f8f3ea;
  --maggie-shadow: rgba(36, 26, 19, 0.16);
  --maggie-collar: #bb322c;
  --maggie-collar-dark: #8e1f1d;
  --maggie-tag: #d1a24a;
  --maggie-feature: #17181d;
  --maggie-tongue: #d87a88;
  transform-origin: 50% 64%;
  transition: transform 160ms ease-out;
}

.pet-runner {
  position: fixed;
  left: 0;
  top: 0;
  width: 118px;
  height: 100px;
  pointer-events: none;
  opacity: 0;
  z-index: 1410;
}

.pet-runner--visible {
  opacity: 1;
}

.pet-runner .pet-glyph {
  width: 100%;
  height: 100%;
  transform: scale(1.14);
  transform-origin: 50% 68%;
}

.pet-runner--moving .pet-sprite {
  animation: pet-runner-bob 640ms ease-in-out infinite;
}

.pet-runner--moving .sprite-leg--left,
.pet-runner--moving .sprite-paw--left {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: pet-run-leg-front 560ms ease-in-out infinite alternate;
}

.pet-runner--moving .sprite-leg--right,
.pet-runner--moving .sprite-paw--right {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  animation: pet-run-leg-back 560ms ease-in-out infinite alternate;
}

.pet-runner--moving .sprite-tail {
  transform-box: fill-box;
  transform-origin: right center;
  animation: pet-run-tail 420ms ease-in-out infinite alternate;
}

.pet-runner--moving .sprite-head-group {
  transform-origin: 82px 44px;
  animation: pet-run-head 640ms ease-in-out infinite;
}

.pet-sprite * {
  vector-effect: non-scaling-stroke;
  stroke: var(--maggie-outline);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite-shadow {
  fill: var(--maggie-shadow);
  stroke: none;
}

.sprite-tail,
.sprite-body,
.sprite-neck,
.sprite-head {
  fill: var(--maggie-fur);
}

.sprite-chest,
.sprite-muzzle {
  fill: var(--maggie-chest);
}

.sprite-ear {
  fill: var(--maggie-fur-warm);
}

.sprite-brow {
  fill: none;
  stroke: #8f7b67;
  stroke-width: 1.5;
}

.sprite-chest,
.sprite-muzzle {
  fill: var(--maggie-chest);
}

.sprite-leg,
.sprite-paw {
  fill: var(--maggie-fur);
}

.sprite-collar {
  fill: var(--maggie-collar);
  stroke: var(--maggie-collar-dark);
}

.sprite-tag {
  fill: var(--maggie-tag);
}

.sprite-eye,
.sprite-nose,
.sprite-mouth-open {
  fill: var(--maggie-feature);
}

.sprite-eye-shine {
  fill: #fff;
  stroke: none;
}

.sprite-mouth,
.sprite-smile {
  fill: none;
  stroke: var(--maggie-feature);
  stroke-width: 2;
}

.sprite-mouth-open,
.sprite-tongue,
.sprite-smile {
  opacity: 0;
}

.sprite-tongue {
  fill: var(--maggie-tongue);
}

.pet-face[data-face="idle"] .sprite-head-group {
  transform: translate(0, 0);
}

.pet-face[data-face="blink"] .sprite-eye,
.pet-face[data-face="nap"] .sprite-eye {
  transform: scaleY(0.2);
  transform-box: fill-box;
  transform-origin: center;
}

.pet-face[data-face="smug"] .sprite-head-group {
  transform: translate(-2px, 1px) rotate(-4deg);
  transform-origin: 72px 30px;
}

.pet-face[data-face="smug"] .sprite-eye--right {
  transform: scaleY(0.45);
  transform-box: fill-box;
  transform-origin: center;
}

.pet-face[data-face="hype"] .sprite-head-group,
.pet-face[data-face="magic"] .sprite-head-group {
  transform: translate(1px, -1px);
}

.pet-face[data-face="hype"] .sprite-mouth-open,
.pet-face[data-face="hype"] .sprite-tongue,
.pet-face[data-face="fetch2"] .sprite-mouth-open,
.pet-face[data-face="fetch2"] .sprite-tongue,
.pet-face[data-face="laugh"] .sprite-mouth-open,
.pet-face[data-face="laugh"] .sprite-tongue {
  opacity: 1;
}

.pet-face[data-face="hype"] .sprite-mouth,
.pet-face[data-face="fetch2"] .sprite-mouth,
.pet-face[data-face="laugh"] .sprite-mouth {
  opacity: 0;
}

.pet-face[data-face="dance1"] .pet-sprite {
  transform: rotate(-6deg) translate(-1px, -2px);
}

.pet-face[data-face="dance2"] .pet-sprite {
  transform: rotate(6deg) translate(3px, -1px);
}

.pet-face[data-face="dance3"] .pet-sprite {
  transform: rotate(-3deg) translate(-1px, -3px);
}

.pet-face[data-face="dance1"] .sprite-tail,
.pet-face[data-face="dance2"] .sprite-tail,
.pet-face[data-face="dance3"] .sprite-tail,
.pet-face[data-face="fetch1"] .sprite-tail,
.pet-face[data-face="fetch2"] .sprite-tail {
  transform-box: fill-box;
  transform-origin: left center;
}

.pet-face[data-face="dance1"] .sprite-tail,
.pet-face[data-face="fetch1"] .sprite-tail {
  transform: rotate(-18deg);
}

.pet-face[data-face="dance2"] .sprite-tail,
.pet-face[data-face="fetch2"] .sprite-tail {
  transform: rotate(18deg);
}

.pet-face[data-face="dance3"] .sprite-tail {
  transform: rotate(10deg);
}

.pet-face[data-face="fetch1"] .pet-sprite {
  transform: rotate(-7deg) translate(-2px, -1px);
}

.pet-face[data-face="fetch2"] .pet-sprite {
  transform: rotate(5deg) translate(2px, -1px);
}

.pet-face[data-face="fetch1"] .sprite-head-group,
.pet-face[data-face="fetch2"] .sprite-head-group {
  transform: translate(3px, -1px);
}

.pet-face[data-face="magic"] .pet-sprite {
  filter: drop-shadow(0 0 8px rgba(122, 189, 255, 0.45));
}

.pet-face[data-face="magic"] .sprite-eye,
.pet-face[data-face="magic"] .sprite-tag {
  fill: #fff2a2;
}

.pet-face[data-face="laugh"] .sprite-eye {
  transform: scaleY(0.26);
  transform-box: fill-box;
  transform-origin: center;
}

.pet-face[data-face="laugh"] .sprite-head-group {
  transform: translate(0, 1px);
}

.pet-face[data-face="laugh"] .sprite-smile {
  opacity: 1;
}

.pet-face[data-face="dizzy"] .sprite-eye {
  transform: rotate(45deg);
  transform-box: fill-box;
  transform-origin: center;
}

.pet-face[data-face="dizzy"] .sprite-mouth-open {
  opacity: 1;
}

.pet-face[data-face="nap"] .pet-sprite {
  transform: rotate(6deg) translate(1px, 3px);
}

.pet-face[data-face="nap"] .sprite-mouth {
  opacity: 0;
}

.pet-face[data-face="nap"] .sprite-smile {
  opacity: 1;
}

.pet-trick {
  width: 100%;
  padding: 6px 8px;
  border: 2px solid;
  border-color: #1d2736 #6e7a91 #6e7a91 #1d2736;
  background: linear-gradient(180deg, #172335 0%, #0d1625 100%);
  color: #f0f5ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-family: "VT323", monospace;
  font-size: 18px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pet-actions {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.pet-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  padding: 4px 6px;
  border: 2px solid;
  border-color: var(--line-light) #5c5c5c #5c5c5c var(--line-light);
  background: #d4d0c8;
  color: #111;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.16);
  font-family: "VT323", monospace;
  font-size: 18px;
  text-transform: uppercase;
  cursor: pointer;
}

.pet-action:hover {
  background: #ece7db;
}

.pet-action:active {
  border-color: #5c5c5c var(--line-light) var(--line-light) #5c5c5c;
}

.pet-status {
  width: 100%;
  padding: 6px 8px;
  border: 2px solid;
  border-color: #7d7d7d var(--line-light) var(--line-light) #7d7d7d;
  background: #f3efe5;
  color: #374052;
  font-family: "VT323", monospace;
  font-size: 18px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pet-shell--dancing .pet-face {
  animation: pet-bounce 180ms ease-in-out infinite alternate;
}

.pet-shell--dancing .pet-glyph {
  animation: pet-shuffle 200ms linear infinite;
}

.pet-shell--dancing .pet-trick {
  background: linear-gradient(180deg, #4b2c7a 0%, #12235f 100%);
  color: #fff2a2;
}

.pet-shell--magic .pet-face {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.18),
    0 0 18px rgba(113, 195, 255, 0.36),
    4px 4px 0 rgba(0, 0, 0, 0.22);
}

.pet-shell--magic .pet-trick {
  background: linear-gradient(180deg, #0f3567 0%, #25115f 100%);
  color: #fff2a2;
}

.pet-shell--magic .pet-sparkles span {
  animation: pet-sparkle 900ms ease-out infinite;
}

.pet-shell--magic .pet-sparkles span:nth-child(2n) {
  animation-delay: 140ms;
}

.pet-shell--magic .pet-sparkles span:nth-child(3n) {
  animation-delay: 240ms;
}

.pet-shell--laughing .pet-face {
  animation: pet-laugh 140ms ease-in-out infinite alternate;
}

.pet-shell--fetch .pet-face {
  animation: pet-bounce 160ms ease-in-out infinite alternate;
}

.pet-shell--fetch .pet-ball {
  animation: none;
}

.pet-shell--fetch .pet-trick {
  background: linear-gradient(180deg, #2f5b13 0%, #0c2f18 100%);
  color: #f7ffb6;
}

.pet-shell--vanish .pet-face {
  animation: pet-vanish 820ms ease-in-out 1;
}

.winamp {
  position: fixed;
  right: 16px;
  bottom: 58px;
  z-index: 980;
  width: 280px;
  border: 2px solid;
  border-color: #555 #000 #000 #555;
  background:
    linear-gradient(180deg, #5f5f7b 0%, #292b45 18%, #111826 100%);
  box-shadow: 2px 2px 0 #000;
  font-family: "VT323", monospace;
  color: #fff;
}

.winamp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 8px;
  background: linear-gradient(90deg, #1a1a6e 0%, #4040a0 100%);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.winamp-title {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.winamp-body {
  padding: 4px;
  background:
    linear-gradient(180deg, #7f7fa7 0%, #42466d 18%, #12161e 100%);
}

.winamp-line,
.winamp-time {
  background: #000;
  color: #00ff00;
}

.winamp-line {
  padding: 6px 8px;
  border: 1px solid #0a250f;
  box-shadow: inset 0 0 0 1px rgba(26, 89, 38, 0.65);
  font-size: 18px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.winamp-time {
  padding: 4px 8px;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  text-align: center;
  font-size: 24px;
  letter-spacing: 0.24em;
  box-shadow: inset 0 0 0 1px rgba(26, 89, 38, 0.65);
}

.winamp-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 8px;
  background:
    linear-gradient(180deg, rgba(17, 23, 33, 0.95) 0%, rgba(36, 40, 54, 0.95) 100%);
  font-size: 18px;
}

.winamp-btn {
  min-width: 42px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid;
  border-color: #9a9a9a #0a0a0a #0a0a0a #9a9a9a;
  background: #d4d0c8;
  color: #111;
  font-family: "VT323", monospace;
  font-size: 18px;
  text-transform: uppercase;
  cursor: pointer;
}

.winamp-btn:hover {
  background: #ece7db;
}

.winamp-btn:active {
  border-color: #0a0a0a #9a9a9a #9a9a9a #0a0a0a;
}

.winamp-volume {
  width: 76px;
  accent-color: #00ff00;
}

.winamp-lower {
  display: grid;
  gap: 6px;
  padding: 6px 8px 8px;
  background:
    linear-gradient(180deg, rgba(9, 13, 20, 0.95) 0%, rgba(26, 31, 45, 0.96) 100%);
}

.winamp-track {
  padding: 4px 6px;
  border: 1px solid #22283b;
  background: #0b0f17;
  color: #d7dcff;
  font-size: 16px;
  letter-spacing: 0.05em;
}

.winamp-spectrum {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 28px;
  padding: 4px 6px;
  border: 1px solid #17311d;
  background:
    linear-gradient(180deg, rgba(0, 255, 0, 0.08) 0%, rgba(0, 0, 0, 0.45) 100%),
    #020402;
}

.winamp-spectrum span {
  flex: 1;
  min-width: 4px;
  height: 8px;
  background: linear-gradient(180deg, #7eff52 0%, #12a337 100%);
  box-shadow: 0 0 8px rgba(80, 255, 136, 0.28);
  opacity: 0.42;
}

.winamp--playing .winamp-spectrum span {
  animation: winamp-bars 0.9s steps(4, end) infinite;
}

.winamp--playing .winamp-spectrum span:nth-child(2n) {
  animation-duration: 0.72s;
}

.winamp--playing .winamp-spectrum span:nth-child(3n) {
  animation-duration: 1.06s;
}

.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  border-top: 2px solid var(--line-light);
  background: #c0c0c0;
}

.start-btn,
.task-btn,
.status-box {
  border: 2px solid;
  border-color: var(--line-light) #848284 #848284 var(--line-light);
  background: #c0c0c0;
  box-shadow: inset 1px 1px 0 #fff;
  font-family: "VT323", monospace;
}

.start-btn,
.task-btn {
  height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 20px;
  letter-spacing: 0.03em;
}

.start-btn {
  cursor: pointer;
}

.start-btn--active {
  border-color: #848284 var(--line-light) var(--line-light) #848284;
  background: #dddddd;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.start-menu {
  position: fixed;
  left: 8px;
  bottom: 46px;
  z-index: 1205;
  width: min(330px, calc(100vw - 16px));
  border: 3px solid;
  border-color: var(--line-light) var(--line-dark) var(--line-dark) var(--line-light);
  background: #d4d0c8;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.28);
}

.start-menu__panel {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
}

.start-menu__brand {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 0;
  background: linear-gradient(180deg, var(--blue-1) 0%, var(--blue-2) 100%);
  color: #fff;
  font-family: "VT323", monospace;
  font-size: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.start-menu__body {
  display: grid;
  gap: 6px;
  padding: 10px;
  background: #d4d0c8;
}

.start-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px;
  border: 2px solid transparent;
}

.start-item:hover,
.start-item:focus-visible {
  background: #fff;
  border-color: #000080;
  outline: none;
}

.start-item__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 2px solid;
  border-color: var(--line-light) #4d4d4d #4d4d4d var(--line-light);
  background: linear-gradient(180deg, #f7f4eb 0%, #ded8cb 100%);
  color: #111;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.14);
  font-family: "VT323", monospace;
  font-size: 18px;
  letter-spacing: 0.07em;
}

.start-item strong {
  display: block;
  font-family: "VT323", monospace;
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.start-item small {
  display: block;
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.35;
}

.task-group {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  flex: 1;
}

.status-box {
  min-width: 150px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 10px;
  font-size: 18px;
}

.task-btn[aria-current="page"] {
  border-color: #848284 var(--line-light) var(--line-light) #848284;
  background: #dddddd;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.divider {
  width: 1px;
  height: 22px;
  background: #848284;
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes window-pop {
  0% {
    transform: scale(0.97);
    opacity: 0.82;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes deny-close {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}

@keyframes winamp-bars {
  0% { height: 6px; opacity: 0.42; }
  25% { height: 18px; opacity: 0.8; }
  50% { height: 10px; opacity: 0.52; }
  75% { height: 24px; opacity: 1; }
  100% { height: 8px; opacity: 0.46; }
}

@keyframes pet-bounce {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-5px) rotate(2deg); }
}

@keyframes pet-shuffle {
  0% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  100% { transform: translateX(-2px); }
}

@keyframes pet-laugh {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-2px) scale(1.03); }
}

@keyframes pet-sparkle {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.6);
  }
  35% {
    opacity: 1;
    transform: translateY(-2px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) scale(1.2);
  }
}

@keyframes pet-vanish {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  45% {
    opacity: 0.12;
    transform: scale(0.78);
    filter: blur(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes pet-fetch-ball {
  0% {
    opacity: 0.2;
    transform: translate3d(18px, 8px, 0) scale(0.86);
  }
  15% {
    opacity: 1;
    transform: translate3d(-8px, -10px, 0) scale(1);
  }
  35% {
    transform: translate3d(-68px, -26px, 0) scale(1.06);
  }
  55% {
    transform: translate3d(-118px, 6px, 0) scale(0.94);
  }
  75% {
    opacity: 1;
    transform: translate3d(-58px, -12px, 0) scale(1.02);
  }
  100% {
    opacity: 0.35;
    transform: translate3d(12px, 4px, 0) scale(0.88);
  }
}

@keyframes pet-runner-bob {
  0% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-3px) rotate(1.2deg); }
  100% { transform: translateY(0) rotate(-1deg); }
}

@keyframes pet-run-leg-front {
  0% { transform: rotate(16deg) translateY(0); }
  100% { transform: rotate(-18deg) translateY(1px); }
}

@keyframes pet-run-leg-back {
  0% { transform: rotate(-15deg) translateY(1px); }
  100% { transform: rotate(15deg) translateY(0); }
}

@keyframes pet-run-tail {
  0% { transform: rotate(-10deg); }
  100% { transform: rotate(14deg); }
}

@keyframes pet-run-head {
  0% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(1.4px) rotate(1.2deg); }
  100% { transform: translateY(0) rotate(-1deg); }
}

@media (max-width: 1180px) {
  .error-stack {
    display: none;
  }

  .hero-body,
  .two-up,
  .about-grid,
  .about-page-grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 900px) {
  :root {
    --top-offset: 126px;
  }

  .nav-inner {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 16px;
  }

  .nav-links {
    justify-content: space-between;
    gap: 0;
  }

  .marquee {
    top: 72px;
  }

  .page {
    padding-top: 112px;
  }

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

  .icon-rail {
    position: static;
    top: auto;
    left: auto;
    width: auto;
    max-height: none;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    transform: none;
    transition: none;
  }

  .icon-link {
    flex: 0 0 82px;
  }

  .companion,
  .winamp {
    position: static;
    margin: 16px auto 0;
  }

  .tooltip {
    display: none;
  }

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

@media (max-height: 760px) and (min-width: 901px) {
  .companion-bubble {
    font-size: 18px;
  }

  .pet-shell {
    width: 220px;
  }

  .pet-body {
    gap: 6px;
  }

  .pet-stage {
    min-height: 92px;
  }

  .pet-face {
    min-width: 98px;
    min-height: 78px;
    padding: 6px 8px;
  }

  .pet-glyph {
    width: 98px;
    height: 78px;
  }

  .pet-action {
    padding: 4px;
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  :root {
    --top-offset: 148px;
  }

  .page {
    padding-right: 8px;
    padding-left: 8px;
    padding-bottom: 160px;
  }

  .desktop-grid,
  .window-body,
  .hero-card,
  .side-panel,
  .sticky-note {
    padding: 12px;
  }

  .status-grid,
  .two-column-list,
  .profile-stat-grid {
    grid-template-columns: 1fr;
  }

  .photo-hint {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .about-page-copy h1 {
    max-width: none;
  }

  .companion,
  .winamp {
    position: static;
    margin: 16px auto 0;
  }

  .start-menu {
    left: 8px;
    right: 8px;
    width: auto;
    bottom: 58px;
  }

  .taskbar {
    flex-wrap: wrap;
    height: auto;
    padding: 6px;
  }

  .task-group {
    order: 3;
    width: 100%;
  }

  .status-box {
    margin-left: auto;
  }
}
