:root {
  --leaf: #b4d878;
  --moss: #37674b;
  --moss-deep: #244d38;
  --leaf-soft: #e4f3bf;
  --mint-white: #f4faec;
  --warm-white: #fffdf4;
  --paper: #fff9e8;
  --honey: #ffd77b;
  --blush: #f4b6ab;
  --charcoal: #3e4239;
  --wood: #f3d79c;
  --shadow: rgba(72, 83, 54, 0.18);
  color-scheme: light;
  font-family: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

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

html {
  min-width: 320px;
  background: var(--warm-white);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--charcoal);
  background: var(--warm-white);
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--warm-white);
  background: var(--moss-deep);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

/* Workbench */

.desk-page {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(228, 243, 191, 0.42), transparent 24rem),
    var(--warm-white);
}

.desk-shell {
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: auto;
}

.desk-stage {
  position: relative;
  isolation: isolate;
  width: min(100vw, 177.6833svh, 1920px);
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  background: var(--warm-white);
  box-shadow: 0 1.5rem 4rem rgba(92, 82, 50, 0.08);
}

.scene-picture,
.scene-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.scene-picture {
  z-index: 0;
  transition: opacity 260ms ease, filter 260ms ease, transform 260ms ease;
}

.scene-art {
  object-fit: fill;
  user-select: none;
  -webkit-user-drag: none;
}

.desk-entries {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.desk-entry {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  min-width: 44px;
  min-height: 44px;
  border-radius: 1.25rem;
  color: var(--moss-deep);
  text-decoration: none;
  outline: none;
  pointer-events: auto;
  transform-origin: center bottom;
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), opacity 220ms ease, filter 180ms ease;
}

.desk-entry::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -5%;
  border: 2px solid transparent;
  border-radius: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.desk-entry:hover,
.desk-entry:focus-visible {
  z-index: 9;
  transform: translateY(-4px) scale(1.015);
}

.desk-entry:hover::after {
  border-color: transparent;
  background: radial-gradient(ellipse at center, rgba(255, 253, 244, 0.16), transparent 72%);
}

.desk-entry:focus-visible::after {
  border-color: var(--moss-deep);
  background: rgba(255, 253, 244, 0.08);
  border-width: 3px;
  box-shadow: 0 0 0 4px var(--warm-white), 0 0 0 7px var(--moss-deep);
}

.entry-clock {
  --x: 14.17%;
  --y: 4.78%;
  --w: 12.44%;
  --h: 22.1%;
  border-radius: 50%;
}

.entry-monitor {
  --x: 29.49%;
  --y: 19.55%;
  --w: 40.91%;
  --h: 43.15%;
  border-radius: 0.6rem;
}

.entry-night {
  --x: 9.93%;
  --y: 56%;
  --w: 6.94%;
  --h: 15.09%;
  border-radius: 50%;
}

.entry-day {
  --x: 78.77%;
  --y: 36.24%;
  --w: 17.7%;
  --h: 35.81%;
  border-radius: 42% 42% 30% 30%;
}

.entry-resumes {
  --x: 1.67%;
  --y: 73.43%;
  --w: 18.78%;
  --h: 20.3%;
}

.entry-competitions {
  --x: 34.63%;
  --y: 75.35%;
  --w: 30.86%;
  --h: 14.88%;
}

.entry-overseas {
  --x: 22.61%;
  --y: 75.24%;
  --w: 9.03%;
  --h: 15.09%;
}

.entry-hrssc {
  --x: 70.51%;
  --y: 81.08%;
  --w: 7.18%;
  --h: 10.2%;
  border-radius: 50%;
}

.desk-label {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.35rem);
  left: 50%;
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
  width: max-content;
  max-width: 13rem;
  padding: 0.46rem 0.68rem 0.42rem;
  border: 1.5px solid rgba(55, 103, 75, 0.52);
  border-radius: 0.25rem 0.7rem 0.32rem 0.55rem;
  color: var(--moss-deep);
  background:
    linear-gradient(97deg, rgba(255, 255, 255, 0.6), transparent 34%),
    rgba(255, 249, 232, 0.96);
  box-shadow: 0 0.42rem 0.8rem rgba(86, 79, 50, 0.15);
  font-family: "Kaiti SC", "STKaiti", "PingFang SC", sans-serif;
  font-size: clamp(0.62rem, 0.84vw, 0.92rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px) rotate(-1.5deg);
  transition: opacity 150ms ease, transform 180ms ease;
  pointer-events: none;
}

.desk-label span {
  color: var(--moss);
  font-family: Georgia, serif;
  font-size: 0.72em;
  font-weight: 700;
  opacity: 0.68;
}

.desk-entry:hover .desk-label,
.desk-entry:focus-visible .desk-label,
.desk-entry.is-selected .desk-label {
  opacity: 1;
  transform: translate(-50%, 0) rotate(-1.5deg);
}

.entry-clock .desk-label {
  top: auto;
  bottom: -7%;
}

.entry-monitor .desk-label {
  top: auto;
  bottom: 5%;
}

.entry-night .desk-label {
  top: -20%;
  left: 58%;
}

.entry-day .desk-label {
  top: auto;
  bottom: 1%;
}

.entry-resumes .desk-label,
.entry-overseas .desk-label,
.entry-competitions .desk-label,
.entry-hrssc .desk-label {
  top: -24%;
}

.object-aura {
  position: absolute;
  inset: -18%;
  border-radius: inherit;
  pointer-events: none;
}

.entry-night .object-aura {
  background: radial-gradient(circle at 50% 48%, rgba(255, 215, 123, 0.56), rgba(255, 215, 123, 0.16) 46%, transparent 72%);
  animation: fire-float 3.2s ease-in-out infinite;
}

.entry-day .object-aura {
  inset: -3%;
  background: radial-gradient(ellipse at 50% 55%, rgba(180, 216, 120, 0.14), transparent 68%);
  animation: plant-breathe 5.6s ease-in-out infinite;
}

.screen-terminal {
  position: absolute;
  z-index: 2;
  top: 24.2%;
  left: 32.3%;
  display: flex;
  width: 37%;
  align-items: center;
  overflow: hidden;
  color: rgba(228, 243, 191, 0.92);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(0.56rem, 1.02vw, 1.16rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 0 0.55rem rgba(180, 216, 120, 0.28);
  pointer-events: none;
}

.screen-host {
  color: var(--leaf);
  font-weight: 700;
}

.screen-path {
  color: var(--honey);
}

.screen-caret {
  display: inline-block;
  width: 0.56em;
  height: 1.1em;
  margin-left: 0.34em;
  background: var(--leaf);
  animation: caret-blink 1.05s steps(1, end) infinite;
}

.desk-nameplate {
  position: absolute;
  z-index: 2;
  top: 70.2%;
  left: 77.2%;
  display: flex;
  width: 11.6%;
  height: 6.2%;
  margin: 0;
  align-items: center;
  justify-content: center;
  color: var(--moss-deep);
  font-family: "Kaiti SC", "STKaiti", serif;
  font-size: clamp(0.45rem, 0.78vw, 0.86rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: rotate(3.4deg);
  white-space: nowrap;
  pointer-events: none;
}

.desk-nameplate span {
  color: #758260;
  padding-inline: 0.18em;
}

.clock-live {
  position: absolute;
  z-index: 1;
  top: 12.5%;
  left: 12.5%;
  width: 75%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.62), transparent 43%),
    #fff5d9;
  box-shadow: inset 0 0 0 1px rgba(100, 112, 76, 0.12);
}

.clock-ticks {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  background: repeating-conic-gradient(from -0.8deg, rgba(108, 126, 78, 0.78) 0deg 1.6deg, transparent 1.6deg 30deg);
  -webkit-mask: radial-gradient(farthest-side, transparent 0 82%, #000 83% 100%);
  mask: radial-gradient(farthest-side, transparent 0 82%, #000 83% 100%);
}

.clock-hand {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 50%;
  width: 2px;
  border-radius: 999px;
  background: #5c704e;
  box-shadow: 0 0 0 0.5px rgba(54, 75, 48, 0.18);
  transform-origin: 50% 100%;
}

.clock-hour {
  height: 25%;
  transform: translateX(-50%) rotate(var(--hour-angle, 300deg));
}

.clock-minute {
  height: 34%;
  transform: translateX(-50%) rotate(var(--minute-angle, 50deg));
}

.clock-second {
  width: 1px;
  height: 36%;
  background: #d99555;
  transform: translateX(-50%) rotate(var(--second-angle, 0deg));
}

.clock-pin {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 8%;
  aspect-ratio: 1;
  border: 1px solid #65774e;
  border-radius: 50%;
  background: var(--honey);
  transform: translate(-50%, -50%);
}

.desk-page.is-leaving .scene-picture,
.desk-page.is-leaving .screen-terminal,
.desk-page.is-leaving .desk-nameplate {
  opacity: 0.34;
  filter: saturate(0.72) brightness(1.05);
}

.desk-page.is-leaving .desk-entry:not(.is-selected) {
  opacity: 0.16;
  filter: grayscale(0.3);
}

.desk-page.is-leaving .desk-entry.is-selected {
  z-index: 12;
  transform: translateY(-6px) scale(1.025);
}

@keyframes fire-float {
  0%, 100% { transform: translateY(0) scale(0.98); opacity: 0.72; }
  50% { transform: translateY(-3px) scale(1.05); opacity: 1; }
}

@keyframes plant-breathe {
  0%, 100% { transform: scale(0.985); opacity: 0.5; }
  50% { transform: scale(1.025); opacity: 0.9; }
}

@keyframes caret-blink {
  0%, 46% { opacity: 1; }
  47%, 100% { opacity: 0; }
}

/* Terminal about page */

.terminal-page {
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--mint-white);
  background:
    radial-gradient(circle at 12% 12%, rgba(180, 216, 120, 0.34), transparent 26rem),
    radial-gradient(circle at 88% 82%, rgba(255, 215, 123, 0.22), transparent 24rem),
    #eff5df;
}

.terminal-page::before,
.subpage::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  opacity: 0.2;
  background:
    repeating-linear-gradient(92deg, transparent 0 6px, rgba(70, 85, 55, 0.06) 7px, transparent 8px),
    repeating-linear-gradient(2deg, transparent 0 8px, rgba(126, 102, 58, 0.04) 9px, transparent 10px);
  pointer-events: none;
}

.terminal-layout {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1180px, calc(100% - 2rem));
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(1rem, 3vw, 2.4rem) 0;
  align-content: center;
  gap: 1rem;
}

.back-link {
  position: relative;
  z-index: 5;
  justify-self: start;
  min-height: 44px;
  padding: 0.68rem 1rem;
  border: 1.5px solid rgba(55, 103, 75, 0.36);
  border-radius: 999px;
  color: var(--moss-deep);
  background: rgba(255, 253, 244, 0.78);
  box-shadow: 0 0.35rem 1.1rem rgba(55, 103, 75, 0.08);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--warm-white);
  background: var(--moss-deep);
  outline: 3px solid var(--honey);
  outline-offset: 3px;
  transform: translateY(-2px);
}

.terminal-device {
  overflow: hidden;
  border: clamp(8px, 1.4vw, 16px) solid #2f3430;
  border-radius: clamp(0.85rem, 2vw, 1.7rem);
  background: #2f3430;
  box-shadow:
    0 2.2rem 4.5rem rgba(39, 67, 48, 0.25),
    0 0.3rem 0 #a6a99f;
}

.terminal-chrome {
  position: relative;
  display: flex;
  height: clamp(3rem, 6vw, 4.6rem);
  align-items: center;
  gap: 0.72rem;
  padding: 0 1.35rem;
  border-bottom: 1px solid rgba(244, 250, 236, 0.14);
  background: #303832;
}

.traffic {
  width: clamp(0.72rem, 1.25vw, 0.95rem);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.18);
}

.traffic-red { background: var(--blush); }
.traffic-honey { background: var(--honey); }
.traffic-green { background: var(--leaf); }

.terminal-title {
  position: absolute;
  left: 50%;
  color: rgba(244, 250, 236, 0.65);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: clamp(0.65rem, 1.4vw, 0.96rem);
  transform: translateX(-50%);
}

.terminal-screen {
  position: relative;
  display: flex;
  min-height: clamp(500px, 64vh, 680px);
  padding: clamp(1.4rem, 4vw, 3.5rem);
  flex-direction: column;
  background:
    radial-gradient(circle at 78% 18%, rgba(180, 216, 120, 0.08), transparent 32%),
    linear-gradient(140deg, #244f39, #1f4432 70%, #1a3a2a);
  box-shadow: inset 0 0 5rem rgba(7, 28, 17, 0.22);
}

.terminal-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.2) 4px);
  pointer-events: none;
}

.terminal-output {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 0.16rem;
  flex: 1;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: clamp(0.88rem, 1.8vw, 1.32rem);
  line-height: 1.64;
  letter-spacing: 0.01em;
}

.terminal-line {
  min-height: 1.64em;
  margin: 0;
  color: var(--mint-white);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.terminal-line.command {
  margin-top: 0.66em;
  color: var(--honey);
  font-weight: 700;
}

.terminal-line.command:first-child {
  margin-top: 0;
}

.terminal-line.output {
  color: #f2f8df;
}

.terminal-line.is-current::after {
  content: "";
  display: inline-block;
  width: 0.58em;
  height: 1.1em;
  margin-left: 0.28em;
  vertical-align: -0.16em;
  background: var(--leaf);
  animation: caret-blink 0.9s steps(1, end) infinite;
}

.terminal-actions {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 48px;
  margin-top: 1.2rem;
  justify-content: flex-end;
  gap: 0.7rem;
}

.terminal-button {
  min-width: 7rem;
  min-height: 44px;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(228, 243, 191, 0.5);
  border-radius: 999px;
  color: var(--leaf-soft);
  background: rgba(15, 46, 31, 0.72);
  cursor: pointer;
  font-weight: 700;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease;
}

.terminal-button:hover,
.terminal-button:focus-visible {
  color: var(--moss-deep);
  background: var(--honey);
  outline: 3px solid var(--warm-white);
  outline-offset: 3px;
  transform: translateY(-2px);
}

.noscript-about {
  margin-top: 1rem;
  padding: 1rem;
  color: var(--moss-deep);
  background: var(--warm-white);
}

/* Shared subpages */

.subpage {
  min-height: 100svh;
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 215, 123, 0.34), transparent 21rem),
    radial-gradient(circle at 15% 85%, rgba(180, 216, 120, 0.36), transparent 25rem),
    var(--warm-white);
}

.subpage-layout {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(960px, calc(100% - 2rem));
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 2.8rem) 0;
  align-content: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.coming-card,
.not-found-card {
  position: relative;
  width: min(720px, 100%);
  margin-inline: auto;
  padding: clamp(1.6rem, 5vw, 3.5rem);
  border: 1.5px solid rgba(55, 103, 75, 0.24);
  border-radius: 0.5rem 2.1rem 0.8rem 1.5rem;
  color: var(--moss-deep);
  background:
    linear-gradient(102deg, rgba(255, 255, 255, 0.68), transparent 44%),
    var(--paper);
  box-shadow: 0 1.6rem 3.5rem rgba(79, 91, 61, 0.16);
  text-align: center;
  transform: rotate(-0.55deg);
}

.object-frame {
  width: min(300px, 72vw);
  aspect-ratio: 4 / 3;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border: 0.55rem solid var(--warm-white);
  border-radius: 0.4rem 1.3rem 0.45rem 0.9rem;
  background: var(--warm-white);
  box-shadow: 0 0.7rem 1.5rem rgba(70, 80, 55, 0.13);
  transform: rotate(1.2deg);
}

.object-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--moss);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.coming-card h1,
.not-found-card h1 {
  margin: 0;
  color: var(--moss-deep);
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(2rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.coming-en {
  display: inline-block;
  margin: 0.8rem 0 1rem;
  padding: 0.22rem 0.65rem;
  color: var(--moss-deep);
  background: var(--honey);
  font-family: Georgia, serif;
  font-size: clamp(1rem, 2.8vw, 1.45rem);
  font-style: italic;
  transform: rotate(-1.5deg);
}

.coming-copy,
.not-found-card > p:not(.error-code) {
  max-width: 34rem;
  margin: 0 auto;
  color: #4f6454;
  font-size: clamp(0.96rem, 2vw, 1.14rem);
  line-height: 1.75;
}

.paper-tape {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  width: 6.5rem;
  height: 1.75rem;
  background: rgba(180, 216, 120, 0.68);
  box-shadow: inset 0 0 0 1px rgba(55, 103, 75, 0.08);
  transform: translateX(-50%) rotate(2deg);
}

.error-code {
  margin: 0 0 0.25rem;
  color: var(--leaf);
  font-family: Georgia, serif;
  font-size: clamp(4rem, 16vw, 9rem);
  font-style: italic;
  font-weight: 700;
  line-height: 0.9;
}

.primary-link {
  display: inline-flex;
  min-height: 44px;
  margin-top: 1.5rem;
  padding: 0.72rem 1.1rem;
  align-items: center;
  border-radius: 999px;
  color: var(--warm-white);
  background: var(--moss-deep);
  font-weight: 700;
  text-decoration: none;
}

.primary-link:hover,
.primary-link:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
  transform: translateY(-2px);
}

@media (max-width: 699px) {
  .desk-shell {
    min-height: 100svh;
    place-items: start center;
  }

  .desk-stage {
    width: min(100vw, 46.2581svh);
    max-width: none;
    aspect-ratio: 853 / 1844;
    box-shadow: none;
  }

  .entry-clock {
    --x: 38.34%;
    --y: 13.56%;
    --w: 22.98%;
    --h: 11.12%;
  }

  .entry-monitor {
    --x: 19.7%;
    --y: 42.73%;
    --w: 60.38%;
    --h: 19.25%;
  }

  .entry-night {
    --x: 3.63%;
    --y: 65.67%;
    --w: 11.96%;
    --h: 7.43%;
  }

  .entry-day {
    --x: 78.43%;
    --y: 60.95%;
    --w: 19.11%;
    --h: 11.82%;
  }

  .entry-resumes {
    --x: 3.63%;
    --y: 74.4%;
    --w: 25.79%;
    --h: 9%;
  }

  .entry-competitions {
    --x: 32.83%;
    --y: 73.97%;
    --w: 45.49%;
    --h: 7.05%;
  }

  .entry-overseas {
    --x: 18.17%;
    --y: 66.32%;
    --w: 12.9%;
    --h: 6.29%;
  }

  .entry-hrssc {
    --x: 81.48%;
    --y: 75%;
    --w: 11.96%;
    --h: 5.04%;
  }

  .desk-label {
    max-width: 7.4rem;
    padding: 0.28rem 0.4rem 0.26rem;
    border-width: 1px;
    font-size: clamp(0.47rem, 2.05vw, 0.62rem);
    line-height: 1.18;
    white-space: normal;
    text-align: center;
    opacity: 1;
    transform: translate(-50%, 0) rotate(-1.5deg);
  }

  .entry-clock .desk-label {
    bottom: -7%;
  }

  .entry-monitor .desk-label {
    bottom: 6%;
  }

  .entry-night .desk-label {
    top: -32%;
    left: 140%;
    width: 6.4rem;
  }

  .entry-day .desk-label {
    top: -13%;
    bottom: auto;
    left: 38%;
    width: 6.2rem;
  }

  .entry-resumes .desk-label {
    top: 96%;
    left: 55%;
  }

  .entry-competitions .desk-label {
    top: 106%;
  }

  .entry-overseas .desk-label {
    top: 102%;
    left: 80%;
    width: 5.9rem;
  }

  .entry-hrssc .desk-label {
    top: 103%;
    left: 20%;
    width: 5.7rem;
  }

  .screen-terminal {
    top: 44.05%;
    left: 24.2%;
    width: 54.4%;
    font-size: clamp(0.49rem, 2.4vw, 0.66rem);
  }

  .clock-live {
    top: 10.5%;
    left: 10.5%;
    width: 79%;
  }

  .desk-nameplate {
    display: none;
  }

  .terminal-layout,
  .subpage-layout {
    width: min(100% - 1rem, 960px);
    padding: 0.75rem 0 1.2rem;
    align-content: start;
  }

  .terminal-device {
    border-width: 6px;
    border-radius: 0.9rem;
  }

  .terminal-chrome {
    height: 3rem;
    padding: 0 0.85rem;
    gap: 0.52rem;
  }

  .terminal-screen {
    min-height: calc(100svh - 7.5rem);
    padding: 1.1rem 0.9rem;
  }

  .terminal-output {
    font-size: clamp(0.77rem, 3.7vw, 1rem);
    line-height: 1.55;
  }

  .terminal-actions {
    justify-content: stretch;
  }

  .terminal-button {
    width: 100%;
  }

  .coming-card,
  .not-found-card {
    padding: 2rem 1.1rem 1.7rem;
  }
}

@media (max-height: 620px) and (min-width: 700px) {
  .desk-shell {
    place-items: start center;
  }

  .terminal-layout {
    align-content: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .screen-caret,
  .terminal-line.is-current::after {
    opacity: 1;
  }
}
