:root {
  --ink: #151515;
  --paper: #f8f8f6;
  --chrome: #d8d8d8;
  --accent: #8177df;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #111;
  scroll-behavior: smooth;
}

button {
  color: inherit;
  font: inherit;
}

.site-shell {
  width: 100vw;
  min-height: 100dvh;
  background: radial-gradient(circle at 50% 0%, #2b2b2b 0, #111 68%);
}

.desktop-stage {
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  color: var(--ink);
  background-color: #181818;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    url("./assets/pixel-grid-wallpaper.png");
  background-size: 1.12% 2%, 1.12% 2%, cover;
  font-family: "Courier New", "Hiragino Sans GB", "Microsoft YaHei", monospace;
  user-select: none;
  touch-action: none;
}

.system-menu {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1000;
  height: 2.55%;
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 0.74%;
  padding: 0 0.72%;
  border-bottom: max(1px, 0.08vw) solid var(--accent);
  color: #111;
  background: #efefef;
  box-shadow: inset 0 1px #fff, inset 0 -1px #8a8a8a;
  font-size: clamp(7px, 0.54vw, 11px);
  font-weight: 700;
}

.system-menu strong {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.apple-menu {
  width: 1.6%;
  min-width: 20px;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: clamp(12px, 0.9vw, 17px);
  line-height: 1;
}

.return-link {
  margin-left: auto;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-shortcuts {
  position: absolute;
  left: 0.8%;
  top: 4.7%;
  z-index: 5;
  width: 7.1%;
  height: 90%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 2.6%;
  pointer-events: none;
}

.desktop-brand {
  position: absolute;
  z-index: 8;
  top: 6.5%;
  right: 3.5%;
  width: clamp(150px, 15vw, 245px);
  padding: 10px 12px 8px;
  border: 1px solid #111;
  color: #111;
  background: rgba(242, 242, 242, 0.9);
  box-shadow: inset 2px 2px #fff, inset -2px -2px #777;
  text-align: center;
  text-decoration: none;
}

.desktop-brand img {
  width: 100%;
  height: auto;
  display: block;
}

.desktop-brand span {
  display: block;
  margin-top: 6px;
  font: 700 8px "Courier New", monospace;
  letter-spacing: 0.12em;
}

.shortcut {
  display: grid;
  place-items: center;
  gap: 2px;
  width: 100%;
  min-height: 15%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.shortcut img {
  width: 68%;
  max-height: 58%;
  object-fit: contain;
  image-rendering: pixelated;
  transition: transform 140ms steps(2, end);
}

.shortcut span {
  min-width: 86%;
  padding: 3.2% 5%;
  border: 1px solid #151515;
  color: #fff;
  background: #050505;
  box-shadow:
    inset 1px 1px rgba(255, 255, 255, 0.18),
    inset -1px -1px rgba(255, 255, 255, 0.07);
  font-family: Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: clamp(7px, 0.68vw, 14px);
  font-weight: 700;
  white-space: nowrap;
}

.shortcut:hover img,
.shortcut.is-selected img {
  transform: translateY(-5%) scale(1.08);
}

.shortcut.is-selected span {
  color: #111;
  background: var(--accent);
}

.classic-window {
  position: absolute;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: max(1px, 0.08vw) solid #161616;
  background: var(--paper);
  box-shadow: inset 1px 1px #fff, inset -1px -1px #8d8d8d;
  container-type: inline-size;
}

.classic-window.is-hidden {
  display: none;
}

.window-titlebar {
  position: relative;
  flex: 0 0 7.1%;
  min-height: 20px;
  display: grid;
  grid-template-columns: 9% minmax(10px, 1fr) auto minmax(10px, 1fr) 8%;
  align-items: center;
  gap: 1.3%;
  padding: 0 1.15%;
  cursor: grab;
  border-bottom: 1px solid #6e6e6e;
  background: #dedede;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #a3a3a3;
  touch-action: none;
}

.window-titlebar:active {
  cursor: grabbing;
}

.window-titlebar strong {
  max-width: 100%;
  overflow: hidden;
  color: #202020;
  font-size: clamp(6px, 2.75cqw, 14px);
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title-stripes {
  height: 45%;
  background: repeating-linear-gradient(
    to bottom,
    #777 0,
    #777 1px,
    transparent 1px,
    transparent 3px
  );
}

.window-close,
.window-zoom {
  justify-self: start;
  width: min(76%, 20px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #222;
  border-radius: 0;
  color: #111;
  background: #e7e7e7;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #8b8b8b;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: clamp(8px, 3.5cqw, 15px);
  line-height: 1;
}

.window-zoom {
  justify-self: end;
  cursor: default;
}

.window-zoom::after {
  content: "";
  width: 45%;
  aspect-ratio: 1;
  border: 1px solid #333;
}

.window-accent {
  flex: 0 0 max(2px, 0.28%);
  background: var(--accent);
}

.window-content {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.image-window .window-content img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.info-window {
  min-width: 360px;
  min-height: 280px;
}

.info-window .window-titlebar {
  flex-basis: 6.5%;
}

.info-inner {
  position: absolute;
  inset: 7.5% 7.5% 10%;
  display: flex;
  flex-direction: column;
}

.info-eyebrow {
  margin: 0;
  color: #3b36ff;
  font-size: clamp(8px, 2.2cqw, 18px);
  font-weight: 700;
  line-height: 1.25;
}

.info-inner h1 {
  margin: 2.7% 0 2.2%;
  color: #2a2a2a;
  font-family: Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: clamp(24px, 7cqw, 56px);
  font-weight: 500;
  line-height: 1;
}

.info-rule {
  height: max(2px, 0.32cqw);
  margin-bottom: 3%;
  background: var(--accent);
}

.info-label {
  margin: 0 0 3%;
  color: #272727;
  font-family: Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: clamp(11px, 3.2cqw, 26px);
  font-weight: 700;
}

.info-body {
  max-width: 94%;
  margin: 0;
  color: #2d2d2d;
  font-family: Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: clamp(11px, 2.65cqw, 22px);
  font-weight: 600;
  line-height: 1.55;
}

.info-meta {
  margin: auto 0 0;
  color: var(--accent);
  font-size: clamp(8px, 1.9cqw, 15px);
  font-weight: 700;
}

.fake-scrollbar {
  position: absolute;
  inset: 0 0 0 auto;
  width: 2.9%;
  min-width: 11px;
  border-left: 1px solid #777;
  background: repeating-linear-gradient(
    to bottom,
    #d8d8d8 0,
    #d8d8d8 6px,
    #aaa 6px,
    #aaa 7px
  );
}

.fake-scrollbar span {
  position: absolute;
  top: 17%;
  left: 18%;
  right: 18%;
  height: 24%;
  border: 1px solid #555;
  background: var(--accent);
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.55);
}

.desktop-status {
  position: absolute;
  inset: auto 0 0;
  z-index: 1000;
  height: 2.45%;
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0.72%;
  border-top: 1px solid #777;
  color: #eee;
  background: rgba(15, 15, 15, 0.92);
  font-size: clamp(6px, 0.52vw, 10px);
  white-space: nowrap;
}

.long-page {
  --page-accent: #8177df;
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  color: #252525;
  background-color: #181818;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    url("./assets/pixel-grid-wallpaper.png");
  background-size: 16px 16px, 16px 16px, cover;
  font-family: "Courier New", "Hiragino Sans GB", "Microsoft YaHei", monospace;
}

.page-core {
  --page-accent: #6d87a6;
}

.page-motive {
  --page-accent: #8e7da7;
}

.page-liminal {
  --page-accent: #829a89;
}

.page-dance {
  --page-accent: #1cb3ae;
}

.page-route {
  --page-accent: #7d7bd4;
}

.page-menu {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  height: 24px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 12px;
  border-bottom: 2px solid var(--page-accent);
  color: #111;
  background: #efefef;
  box-shadow: inset 0 1px #fff, inset 0 -1px #8a8a8a;
  font-size: 10px;
  font-weight: 700;
}

.page-menu strong {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.page-menu span:last-child {
  margin-left: auto;
}

.document-window {
  position: absolute;
  overflow: hidden;
  border: 1px solid #151515;
  background: #fff;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #8d8d8d;
}

.primary-document {
  left: 6%;
  top: 7.5%;
  width: 59.2%;
  height: 78%;
}

.data-document {
  right: 6.6%;
  top: 17.5%;
  width: 24.6%;
  height: 62%;
}

.static-titlebar {
  height: 24px;
  min-height: 24px;
  grid-template-columns: 22px minmax(20px, 1fr) auto minmax(20px, 1fr) 22px;
  padding: 0 5px;
  cursor: default;
}

.static-titlebar strong {
  font-size: 10px;
}

.static-control {
  width: 15px;
  height: 15px;
  font-size: 11px;
  pointer-events: none;
}

.document-tabs {
  height: 28px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding-left: 10px;
  border-bottom: 1px solid #777;
  background: #e9e9e9;
  color: #222;
  font-size: 9px;
}

.document-tabs span {
  min-width: 74px;
  display: grid;
  place-items: center;
  padding: 0 12px;
}

.document-tabs .is-active {
  border: 1px solid #555;
  border-bottom: 0;
  background: color-mix(in srgb, var(--page-accent) 42%, #fff);
}

.document-body {
  position: absolute;
  inset: 52px 15px 0 0;
  overflow: auto;
  padding: 4.6% 8% 5%;
  font-family: Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.chapter-code,
.micro-heading,
.micro-copy,
.micro-label {
  font-family: "Courier New", monospace;
  font-weight: 700;
}

.chapter-code {
  margin: 0 0 3%;
  padding-bottom: 1.5%;
  border-bottom: 2px solid var(--page-accent);
  font-size: clamp(9px, 0.75vw, 14px);
}

.document-body h2 {
  margin: 0 0 4.5%;
  font-size: clamp(34px, 3.1vw, 62px);
  font-weight: 700;
  line-height: 1;
}

.document-body h3 {
  margin: -2.5% 0 6%;
  padding-bottom: 2%;
  border-bottom: 1px solid color-mix(in srgb, var(--page-accent) 72%, transparent);
  font-size: clamp(18px, 1.65vw, 32px);
  line-height: 1.25;
}

.document-body p {
  max-width: 94%;
  margin: 0 0 2.4%;
  font-size: clamp(14px, 1.17vw, 23px);
  line-height: 1.55;
}

.document-body .strong-copy {
  font-weight: 700;
}

.document-body .micro-heading,
.document-body .micro-copy {
  font-size: clamp(8px, 0.68vw, 13px);
  letter-spacing: 0.01em;
}

.hero-copy {
  margin-top: 7% !important;
  font-size: clamp(20px, 1.75vw, 34px) !important;
  line-height: 1.48 !important;
}

.beat-rule {
  width: 94%;
  height: 2px;
  margin: 7% 0 3%;
  background: var(--page-accent);
}

.panel-scrollbar {
  position: absolute;
  inset: 52px 0 0 auto;
  width: 15px;
  border-left: 1px solid #777;
  background: repeating-linear-gradient(
    to bottom,
    #ddd 0,
    #ddd 6px,
    #aaa 6px,
    #aaa 7px
  );
}

.panel-scrollbar span {
  position: absolute;
  top: 13%;
  left: 2px;
  right: 2px;
  height: 12%;
  border: 1px solid #555;
  background: var(--page-accent);
}

.data-body {
  position: absolute;
  inset: 52px 15px 0 0;
  overflow: auto;
  padding: 8% 6.5%;
  font-family: Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.data-body h4 {
  margin: 0 0 6%;
  font-size: clamp(13px, 1.05vw, 20px);
}

.mini-label {
  margin: 7% 0 4%;
  font: 700 clamp(8px, 0.66vw, 12px) "Courier New", monospace;
}

.contrast-box {
  padding: 8%;
  border: 1px solid #555;
  text-align: center;
  font-size: clamp(11px, 0.85vw, 16px);
}

.contrast-box hr {
  margin: 9% 0;
  border: 0;
  border-top: 1px solid #777;
}

.system-list,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.system-list li {
  min-height: 42px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 4px 8px;
  border: 1px solid #555;
  background: #fff;
  font-size: clamp(10px, 0.82vw, 15px);
}

.system-list li span {
  font: 700 9px "Courier New", monospace;
}

.system-list li.active {
  background: var(--page-accent);
}

.micro-copy {
  font-size: clamp(8px, 0.67vw, 12px);
  line-height: 1.45;
}

.property-list {
  margin: 0;
}

.property-list div {
  display: grid;
  grid-template-columns: 36% 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #aaa;
  font-size: clamp(9px, 0.72vw, 13px);
}

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

.property-list dd {
  margin: 0;
}

.palette-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.palette-row span {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 8px;
  text-align: center;
}

.palette-row span::before {
  content: "";
  width: 100%;
  aspect-ratio: 1.25;
  border: 1px solid #555;
  background: var(--swatch);
}

.check-list li {
  position: relative;
  margin: 10px 0;
  padding-left: 24px;
  font-size: clamp(9px, 0.72vw, 13px);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 11px;
  height: 11px;
  border: 1px solid #666;
}

.check-list li.checked::before {
  background: var(--page-accent);
}

.beat-grid {
  width: min(85%, 720px);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2%;
  margin: 3% 0;
}

.beat-grid span,
.route-tags span {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #555;
  background: #fff;
  font: 700 clamp(10px, 0.72vw, 14px) "Courier New", monospace;
}

.beat-grid span.active,
.route-tags span.active {
  color: #fff;
  background: var(--page-accent);
}

.formation {
  position: relative;
  width: 100%;
  aspect-ratio: 1.35;
  margin: 7% 0;
  border: 1px solid #555;
}

.formation i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 15px;
  height: 15px;
  transform: translate(-50%, -50%);
  border: 1px solid #555;
  background: #d8d8d8;
}

.formation i.active {
  background: var(--page-accent);
}

.route-tags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2%;
  width: 78%;
  margin: 3% 0 5%;
}

.route-tags span {
  min-height: 30px;
  font-size: clamp(8px, 0.58vw, 11px);
}

.route-list li {
  min-height: 34px;
  margin-bottom: 5px;
}

.storyboard-page {
  --page-accent: #8177df;
  position: relative;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  color: #252525;
  background-color: #181818;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    url("./assets/pixel-grid-wallpaper.png");
  background-size: 16px 16px, 16px 16px, cover;
  font-family: "Courier New", "Hiragino Sans GB", "Microsoft YaHei", monospace;
  perspective: 1400px;
}

.storyboard-frame-page:nth-child(4n + 1) {
  --page-accent: #6d87a6;
}

.storyboard-frame-page:nth-child(4n + 2) {
  --page-accent: #8e7da7;
}

.storyboard-frame-page:nth-child(4n + 3) {
  --page-accent: #829a89;
}

.macintosh-unit {
  --mac-rx: 0deg;
  --mac-ry: 0deg;
  --glare-x: 50%;
  --glare-y: 42%;
  position: absolute;
  z-index: 4;
  left: 1.4vw;
  top: 7vh;
  width: min(88vw, 1120px);
  aspect-ratio: 16 / 9;
  transform-style: preserve-3d;
}

.macintosh-tilt {
  position: absolute;
  inset: 0;
  transform: rotateX(var(--mac-rx)) rotateY(var(--mac-ry));
  transform-origin: 31% 50%;
  transform-style: preserve-3d;
  transition: transform 240ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.storyboard-page.is-current-page .macintosh-tilt {
  animation: mac-arrive 720ms cubic-bezier(0.16, 0.78, 0.22, 1) both;
}

.macintosh-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.18));
}

.mac-screen-hit {
  position: absolute;
  z-index: 3;
  left: 14.05%;
  top: 22.05%;
  width: 39.3%;
  height: 40.7%;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: #161616;
  background: #0b0b0b;
  cursor: zoom-in;
  transform: translateZ(3px);
}

.storyboard-screen-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 260ms ease,
    opacity 180ms steps(2, end);
}

.mac-screen-hit:hover .storyboard-screen-image {
  transform: scale(1.025);
  filter: contrast(1.05) brightness(1.04);
}

.crt-scanlines,
.screen-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.crt-scanlines {
  z-index: 4;
  opacity: 0.17;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.08) 0,
    rgba(255, 255, 255, 0.08) 1px,
    rgba(0, 0, 0, 0.08) 1px,
    rgba(0, 0, 0, 0.08) 3px
  );
  mix-blend-mode: overlay;
}

.screen-glare {
  z-index: 5;
  opacity: 0;
  background: radial-gradient(
    circle at var(--glare-x) var(--glare-y),
    rgba(255, 255, 255, 0.23),
    rgba(255, 255, 255, 0) 40%
  );
  transition: opacity 240ms ease;
}

.macintosh-unit:hover .screen-glare {
  opacity: 1;
}

.storyboard-page.is-current-page .mac-screen-hit::after {
  content: "";
  position: absolute;
  z-index: 7;
  inset: 0;
  background: #f5f5ef;
  transform-origin: center;
  animation: crt-boot 620ms 180ms steps(6, end) both;
  pointer-events: none;
}

.mac-power {
  position: absolute;
  z-index: 7;
  left: 10.2%;
  top: 88.1%;
  width: 4.9%;
  height: 8.2%;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 17%;
  color: transparent;
  background: rgba(255, 255, 255, 0.001);
  cursor: pointer;
  transform: translateZ(9px);
  touch-action: manipulation;
}

.mac-power:hover {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--page-accent) 70%, transparent);
}

.mac-power:focus-visible {
  outline: 2px solid var(--page-accent);
  outline-offset: 3px;
}

.mac-power span {
  opacity: 0;
}

.mac-led {
  position: absolute;
  z-index: 8;
  left: 54.72%;
  top: 87.95%;
  width: 0.42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #8ee48c;
  box-shadow: 0 0 8px #75df73;
  animation: led-pulse 2.2s steps(2, end) infinite;
}

.macintosh-unit.is-powered-off .mac-screen-hit {
  cursor: pointer;
  background: #050505;
}

.macintosh-unit.is-powered-off .storyboard-screen-image,
.macintosh-unit.is-powered-off .story-cover-screen,
.macintosh-unit.is-powered-off .crt-scanlines,
.macintosh-unit.is-powered-off .screen-glare {
  opacity: 0;
}

.macintosh-unit.is-powered-off .mac-led {
  opacity: 0.12;
  animation: none;
}

.cover-mac {
  left: 50%;
  top: 2.8vh;
  width: min(105vw, 1420px);
  transform: translateX(-34%);
}

.story-cover-screen {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 6%;
  padding: 8%;
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.9)),
    repeating-linear-gradient(0deg, #f2f2ef 0, #f2f2ef 3px, #e2e2df 3px, #e2e2df 4px);
  transition: opacity 180ms steps(2, end);
}

.story-cover-screen strong {
  font-family: Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: clamp(30px, 4.2vw, 72px);
  line-height: 1;
}

.story-cover-kicker,
.story-cover-prompt {
  font-size: clamp(7px, 0.7vw, 12px);
  font-weight: 700;
}

.story-cover-prompt {
  padding-top: 5%;
  border-top: 1px solid #777;
  animation: prompt-blink 1.4s steps(2, end) infinite;
}

.story-copy-window {
  position: absolute;
  z-index: 8;
  right: 4.8vw;
  top: 20.5vh;
  width: min(30.5vw, 490px);
  height: 64vh;
  overflow: hidden;
  border: 2px solid #151515;
  background: #fff;
  box-shadow: none;
  opacity: 0;
  transform: translateX(26px);
  transition:
    opacity 420ms 220ms ease,
    transform 520ms 220ms cubic-bezier(0.16, 0.78, 0.22, 1);
}

.story-copy-window::after {
  content: "";
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  left: 0;
  height: 20px;
  border-top: 1px solid #777;
  background: #cfcfcf;
  box-shadow: inset 1px 1px #f7f7f7;
}

.storyboard-page.is-current-page .story-copy-window {
  opacity: 1;
  transform: translateX(0);
}

.story-window-titlebar {
  height: 28px;
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 7px;
  padding: 3px 4px;
  border-bottom: 1px solid #777;
  background: #dedede;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #888;
}

.story-window-close,
.story-window-zoom {
  width: 22px;
  height: 22px;
  position: relative;
  display: block;
  border: 1px solid #333;
  background: #d6d6d6;
  box-shadow:
    inset 2px 2px #f7f7f7,
    inset -2px -2px #777;
}

.story-window-close::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid #555;
  background: #efefef;
}

.story-window-zoom::before,
.story-window-zoom::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid #555;
  background: #e8e8e8;
}

.story-window-zoom::before {
  top: 4px;
  left: 6px;
}

.story-window-zoom::after {
  top: 7px;
  left: 3px;
}

.story-window-stripes {
  height: 14px;
  border-top: 1px solid #777;
  border-bottom: 1px solid #777;
  background: repeating-linear-gradient(
    to bottom,
    #777 0,
    #777 1px,
    #dedede 1px,
    #dedede 3px
  );
}

.story-toolbar {
  height: 58px;
  display: grid;
  grid-template-columns:
    repeat(7, minmax(24px, 32px))
    minmax(4px, 1fr)
    repeat(4, minmax(24px, 32px));
  align-items: center;
  gap: 4px;
  padding: 7px 6px;
  border-bottom: 3px solid #7770d2;
  background: #cfcfcf;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #888;
}

.story-toolbar span {
  height: 40px;
  display: grid;
  place-items: center;
  border: 2px solid #4e4e4e;
  background: #d2d2d2;
  box-shadow:
    inset 2px 2px #f8f8f8,
    inset -2px -2px #888;
  font-size: 18px;
  font-weight: 700;
}

.story-toolbar span:nth-child(1),
.story-toolbar span:nth-child(10) {
  color: #fff;
  text-shadow: 0 1px #315c78;
}

.story-toolbar span:nth-child(1) {
  background: linear-gradient(#91c5e2, #5f95b5);
}

.story-toolbar span:nth-child(3) {
  color: #e8535b;
}

.story-toolbar span:nth-child(4) {
  color: #222;
  font-family: Arial, sans-serif;
  font-size: 22px;
}

.story-toolbar span:nth-child(7) {
  color: #e3a719;
}

.story-toolbar span:nth-child(10) {
  background: linear-gradient(#9bc9e3, #5d94b8);
}

.story-copy-scroll {
  position: absolute;
  inset: 86px 17px 20px 0;
  display: flex;
  flex-direction: column;
  padding: 8% 9% 6%;
  overflow: auto;
  font-family: Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.story-scene {
  margin: 0 0 7%;
  color: #12b4ad;
  font: 700 clamp(11px, 1.05vw, 18px) "Courier New", monospace;
}

.story-copy-scroll h2 {
  margin: 0 0 10%;
  font-size: clamp(35px, 3vw, 56px);
  line-height: 1;
}

.story-copy {
  margin: 0;
  font-size: clamp(14px, 1.18vw, 22px);
  line-height: 1.65;
}

.story-footer {
  margin: auto 0 0;
  padding-top: 8%;
  color: #7d7bd7;
  font: 700 clamp(9px, 0.78vw, 14px) "Courier New", monospace;
}

.story-scrollbar {
  position: absolute;
  z-index: 3;
  inset: 86px 0 20px auto;
  width: 17px;
  border-left: 1px solid #777;
  background: repeating-linear-gradient(
    to bottom,
    #ddd 0,
    #ddd 6px,
    #aaa 6px,
    #aaa 7px
  );
}

.story-scrollbar::before,
.story-scrollbar::after {
  position: absolute;
  z-index: 2;
  right: 0;
  left: 0;
  height: 18px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #777;
  color: #222;
  background: #d7d7d7;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #888;
  font-size: 12px;
  line-height: 1;
}

.story-scrollbar::before {
  content: "▲";
  top: 0;
}

.story-scrollbar::after {
  content: "▼";
  bottom: 0;
  border-top: 1px solid #777;
  border-bottom: 0;
}

.story-scrollbar span {
  position: absolute;
  top: 20%;
  left: 2px;
  right: 2px;
  height: 17%;
  min-height: 44px;
  border: 1px solid #555;
  background: repeating-linear-gradient(
    to bottom,
    #d9d9d9 0,
    #d9d9d9 3px,
    #888 3px,
    #888 4px
  );
  box-shadow: inset 1px 1px #fff, inset -1px -1px #777;
}

.storyboard-viewer {
  z-index: 9000;
  width: min(92vw, 1400px);
  max-width: none;
  padding: 0;
  border: 1px solid #111;
  color: #111;
  background: #dedede;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #777;
}

.storyboard-viewer::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(5px);
}

.viewer-titlebar {
  height: 34px;
  display: grid;
  grid-template-columns: 30px minmax(20px, 1fr) auto minmax(20px, 1fr) 30px;
  align-items: center;
  gap: 7px;
  padding: 0 7px;
  border-bottom: 1px solid #777;
}

.viewer-titlebar strong {
  font: 700 11px "Courier New", monospace;
}

.viewer-close {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid #333;
  background: #eee;
  cursor: pointer;
}

.storyboard-viewer img {
  width: 100%;
  max-height: calc(90dvh - 72px);
  display: block;
  object-fit: contain;
  background: #111;
}

.storyboard-viewer > p {
  margin: 0;
  padding: 7px;
  text-align: center;
  font: 700 8px "Courier New", monospace;
}

@keyframes mac-arrive {
  from {
    opacity: 0;
    transform: translateY(26px) rotateX(-2deg) scale(0.985);
  }
  to {
    opacity: 1;
    transform: rotateX(var(--mac-rx)) rotateY(var(--mac-ry));
  }
}

@keyframes crt-boot {
  0% {
    opacity: 1;
    transform: scaleY(0.02) scaleX(0.2);
  }
  42% {
    opacity: 0.92;
    transform: scaleY(0.02) scaleX(1);
  }
  72% {
    opacity: 0.55;
    transform: scaleY(1) scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@keyframes led-pulse {
  0%,
  78% {
    opacity: 0.95;
  }
  79%,
  100% {
    opacity: 0.4;
  }
}

@keyframes prompt-blink {
  50% {
    opacity: 0.35;
  }
}

.shared-mac-slot {
  position: fixed;
  z-index: 6;
  inset: max(80px, 9vh) 0 122px;
  display: grid;
  place-items: start center;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 180ms ease;
}

.shared-mac-slot.is-visible {
  opacity: 1;
  visibility: visible;
}

.shared-macintosh {
  position: absolute;
  left: auto;
  right: calc(50% - 40px);
  top: auto;
  width: min(48vw, 520px, calc((91dvh - 145px) * 0.722));
  aspect-ratio: 1130 / 1565;
  transform: none;
  pointer-events: auto;
}

.shared-mac-slot.is-cover {
  inset: 54px 0 136px;
  place-items: center;
}

.shared-mac-slot.is-cover .shared-macintosh {
  position: relative;
  right: auto;
  width: min(58vw, 600px, calc((100dvh - 190px) * 0.722));
  transform: none;
}

.shared-mac-slot.is-cover .story-cover-screen {
  gap: 5%;
  padding: 7%;
}

.shared-mac-slot.is-cover .story-cover-screen strong {
  white-space: nowrap;
  font-size: clamp(24px, 3.6vw, 58px);
}

.shared-mac-slot.is-cover .story-cover-kicker,
.shared-mac-slot.is-cover .story-cover-prompt {
  white-space: nowrap;
  font-size: clamp(6px, 0.62vw, 10px);
}

.shared-macintosh .macintosh-tilt {
  transform-origin: 50% 50%;
}

.shared-macintosh .mac-screen-hit {
  left: 14.87%;
  top: 18.31%;
  width: 70.09%;
  height: 29.34%;
  border-radius: 0 0 1.2% 1.2%;
  background: #050505;
}

.shared-mac-content {
  position: absolute;
  inset: 0;
}

.shared-macintosh .storyboard-screen-image {
  position: absolute;
  inset: 0;
}

.shared-macintosh .crt-scanlines,
.shared-macintosh .screen-glare {
  display: none;
}

.shared-macintosh .mac-power {
  left: 8.15%;
  top: 70.55%;
  width: 7.4%;
  height: 5.25%;
  transform: none;
}

.shared-macintosh .mac-led {
  left: 89.7%;
  top: 68.35%;
  width: 0.7%;
}

.shared-mac-slot.is-switching .macintosh-tilt {
  animation: mac-swap-bounce 620ms cubic-bezier(0.2, 0.86, 0.26, 1) both;
}

.shared-mac-slot.is-cover-zooming .macintosh-tilt {
  animation: cover-mac-zoom-in 720ms cubic-bezier(0.18, 0.82, 0.22, 1) both !important;
}

.shared-mac-slot.is-cover-zooming .mac-screen-hit {
  animation: cover-screen-push 720ms cubic-bezier(0.18, 0.82, 0.22, 1) both;
}

.shared-mac-slot.is-cover-zooming::after {
  content: "";
  position: fixed;
  z-index: 40;
  inset: 0;
  pointer-events: none;
  background: rgba(12, 14, 16, 0.28);
  backdrop-filter: blur(9px) saturate(0.8);
  animation: cover-transition-haze 720ms cubic-bezier(0.42, 0, 0.22, 1) both;
}

.shared-mac-slot.is-crossfading .macintosh-tilt {
  animation: storyboard-crossfade-in 720ms cubic-bezier(0.2, 0.72, 0.24, 1) both;
}

.shared-mac-slot.is-lighting .mac-screen-hit::after {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at center,
      rgba(238, 248, 255, 0.98) 0,
      rgba(205, 226, 245, 0.82) 17%,
      rgba(91, 125, 153, 0.46) 42%,
      rgba(0, 0, 0, 0.98) 72%
    );
  animation: screen-light-on 700ms 100ms cubic-bezier(0.12, 0.75, 0.24, 1) both;
}

.shared-mac-slot.is-lighting .mac-screen-hit {
  animation: screen-warm-glow 900ms ease-out both;
}

.storyboard-frame-page .story-copy-window {
  right: auto;
  left: calc(50% + 50px);
  top: max(80px, 9vh);
  width: min(34vw, 460px);
  height: min(72vh, 700px, calc(91dvh - 138px));
}

.route-list li {
  display: block;
  padding: 0;
}

.route-list button {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.route-list button:hover,
.route-list button:focus-visible {
  color: #fff;
  background: color-mix(in srgb, var(--page-accent) 78%, #222);
  outline: 0;
}

.route-list button::after {
  content: "↘";
  justify-self: end;
  grid-column: 2;
  grid-row: 1;
  opacity: 0;
  font: 700 11px "Courier New", monospace;
}

.route-list button:hover::after,
.route-list button:focus-visible::after {
  opacity: 1;
}

@keyframes mac-swap-bounce {
  0% {
    transform: translateY(0) scale(1);
  }
  24% {
    transform: translateY(16px) scale(0.985, 1.015);
  }
  52% {
    transform: translateY(-24px) scale(1.012, 0.988);
  }
  74% {
    transform: translateY(7px) scale(0.996, 1.004);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes cover-mac-zoom-in {
  0% {
    transform: translateZ(0) scale(1);
    filter: brightness(1);
    opacity: 1;
  }
  62% {
    transform: translateZ(150px) scale(1.22);
    filter: brightness(0.98);
    opacity: 1;
  }
  100% {
    transform: translateZ(320px) scale(1.55);
    filter: brightness(0.72) blur(10px);
    opacity: 0;
  }
}

@keyframes cover-screen-push {
  0% {
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
  }
  100% {
    box-shadow: inset 0 0 52px rgba(0, 0, 0, 0.34);
  }
}

@keyframes cover-transition-haze {
  0%,
  54% {
    opacity: 0;
    backdrop-filter: blur(0) saturate(1);
  }
  78% {
    opacity: 0.3;
    backdrop-filter: blur(5px) saturate(0.86);
  }
  100% {
    opacity: 0.68;
    backdrop-filter: blur(9px) saturate(0.8);
  }
}

@keyframes storyboard-crossfade-in {
  0% {
    transform: translateZ(0) scale(1.045);
    filter: brightness(0.72) blur(9px);
    opacity: 0;
  }
  42% {
    opacity: 0.58;
  }
  100% {
    transform: translateZ(0) scale(1);
    filter: brightness(1) blur(0);
    opacity: 1;
  }
}

@keyframes screen-light-on {
  0% {
    opacity: 1;
    filter: brightness(0.15);
  }
  32% {
    opacity: 1;
    filter: brightness(1.45);
  }
  68% {
    opacity: 0.42;
    filter: brightness(1.15);
  }
  100% {
    opacity: 0;
    filter: brightness(1);
  }
}

@keyframes screen-warm-glow {
  0% {
    box-shadow: inset 0 0 0 rgba(180, 220, 255, 0);
  }
  42% {
    box-shadow:
      inset 0 0 42px rgba(198, 228, 255, 0.68),
      0 0 22px rgba(167, 214, 255, 0.2);
  }
  100% {
    box-shadow: inset 0 0 7px rgba(210, 232, 255, 0.14);
  }
}

.timeline-window {
  position: fixed;
  z-index: 5000;
  top: auto;
  bottom: 14px;
  left: 50%;
  width: min(1120px, calc(100vw - 350px));
  padding: 0;
  transform: translateX(-50%);
  border: 1px solid #111;
  border-radius: 0;
  background: #e5e5e5;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #777;
  backdrop-filter: none;
  font-family: "Courier New", monospace;
}

.timeline-titlebar {
  height: 22px;
  display: grid;
  grid-template-columns: 22px minmax(20px, 1fr) auto minmax(20px, 1fr) 22px;
  align-items: center;
  gap: 5px;
  padding: 0 5px;
  border-bottom: 1px solid #777;
  background: #dedede;
}

.timeline-titlebar strong {
  font-size: 9px;
  white-space: nowrap;
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(8, minmax(66px, 1fr));
  grid-auto-flow: row;
  gap: 1px;
  padding: 4px;
  overflow-x: auto;
  background: #777;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #d8d8d8;
  scroll-behavior: smooth;
}

.timeline-track button,
.timeline-subtrack button {
  min-width: 0;
  height: 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #222;
  box-shadow: none;
  cursor: pointer;
  font-size: 9px;
  white-space: nowrap;
}

.timeline-track button span,
.timeline-subtrack button span {
  font-size: inherit;
  font-weight: 700;
}

.timeline-track button:hover,
.timeline-track button:focus-visible,
.timeline-subtrack button:hover,
.timeline-subtrack button:focus-visible {
  color: #fff;
  background: color-mix(in srgb, var(--accent) 78%, #333);
  transform: none;
  outline: 0;
}

.timeline-track button.is-current,
.timeline-subtrack button.is-current {
  color: #fff;
  background: var(--accent);
  transform: none;
  box-shadow: none;
}

.timeline-subtrack {
  display: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(94px, 1fr);
  gap: 1px;
  padding: 4px;
  border-top: 1px solid #555;
  overflow-x: auto;
  background: #9b9b9b;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #d8d8d8;
}

.timeline-window.has-subnav .timeline-subtrack {
  display: grid;
}

.window-dock {
  position: fixed;
  z-index: 4900;
  left: 12px;
  bottom: 146px;
  min-width: 260px;
  max-width: calc(100vw - 300px);
  min-height: 36px;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 4px 6px;
  border: 1px solid #111;
  background: #dedede;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #777;
  font: 700 8px "Courier New", monospace;
}

.window-dock.has-items {
  display: flex;
}

#dock-items {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.dock-item {
  height: 26px;
  padding: 0 10px;
  border: 1px solid #222;
  background: #fff;
  color: #111;
  cursor: pointer;
  white-space: nowrap;
  font-size: 8px;
}

.continue-browser {
  position: fixed;
  z-index: 4700;
  right: 14px;
  bottom: 14px;
  width: 150px;
  min-width: 150px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #111;
  color: #111;
  background: #efefef;
  box-shadow: inset 2px 2px #fff, inset -2px -2px #777;
  cursor: pointer;
  transition: transform 180ms ease;
}

.previous-browser {
  position: fixed;
  z-index: 4700;
  left: 14px;
  bottom: 14px;
  width: 150px;
  min-width: 150px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #111;
  color: #111;
  background: #efefef;
  box-shadow: inset 2px 2px #fff, inset -2px -2px #777;
  cursor: pointer;
}

.previous-browser.is-disabled {
  opacity: 0.35;
  cursor: default;
}

.previous-icon {
  font-size: 28px;
  line-height: 1;
}

.previous-browser b,
.previous-browser small {
  display: block;
  text-align: left;
}

.previous-browser b {
  font: 700 14px Arial, "Hiragino Sans GB", sans-serif;
}

.previous-browser small {
  margin-top: 2px;
  font: 700 7px "Courier New", monospace;
}

.parent-browser {
  position: fixed;
  z-index: 5100;
  top: 36px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid #111;
  color: #111;
  background: #efefef;
  box-shadow: inset 2px 2px #fff, inset -2px -2px #777;
  text-decoration: none;
  font: 700 10px "Courier New", monospace;
}

.parent-browser span {
  font-size: 17px;
}

.summary-page {
  --page-accent: #1cb3ae;
}

.summary-window {
  position: absolute;
  inset: max(72px, 8vh) 7vw 136px;
  overflow: hidden;
  border: 2px solid #151515;
  background: #fff;
}

.summary-window .story-window-titlebar {
  grid-template-columns: 28px minmax(20px, 1fr) auto minmax(20px, 1fr) 28px;
}

.summary-window .story-window-titlebar strong {
  font: 700 10px "Courier New", monospace;
  white-space: nowrap;
}

.summary-content {
  height: calc(100% - 28px);
  padding: clamp(28px, 4vw, 62px) max(34px, 5vw) clamp(28px, 4vw, 62px) clamp(28px, 4vw, 62px);
  overflow: auto;
  font-family: Arial, "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.summary-window .story-scrollbar {
  inset: 28px 0 0 auto;
}

.summary-kicker,
.summary-grid span,
.summary-ending {
  color: #7d7bd7;
  font: 700 clamp(9px, 0.78vw, 13px) "Courier New", monospace;
}

.summary-content > h2 {
  max-width: 900px;
  margin: 18px 0 clamp(30px, 4vh, 52px);
  font-size: clamp(30px, 3.6vw, 58px);
  line-height: 1.08;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.2vw, 34px);
}

.summary-grid section {
  padding-top: 16px;
  border-top: 4px solid #1cb3ae;
}

.summary-grid h3 {
  margin: 12px 0 14px;
  font-size: clamp(20px, 1.8vw, 30px);
}

.summary-grid p {
  margin: 0;
  font-size: clamp(13px, 1.05vw, 18px);
  line-height: 1.7;
}

.summary-ending {
  margin: clamp(30px, 5vh, 64px) 0 0;
  padding-top: 14px;
  border-top: 1px solid #aaa;
}
.continue-browser:hover {
  transform: translateY(3px);
}

.continue-browser.is-hero {
  min-width: 150px;
  padding: 10px 12px;
}

.continue-icon {
  font-size: 36px;
  line-height: 0.8;
}

.continue-browser b,
.continue-browser small {
  display: block;
  text-align: left;
}

.continue-browser b {
  font: 700 15px Arial, "Hiragino Sans GB", sans-serif;
}

.continue-browser small {
  margin-top: 3px;
  font: 700 8px "Courier New", monospace;
}

.continue-browser.is-end .continue-icon {
  transform: rotate(180deg);
}

.apple-menu:focus-visible,
.return-link:focus-visible,
.shortcut:focus-visible,
.window-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-aspect-ratio: 4 / 5) {
  html,
  body {
    overflow: auto;
  }

  .site-shell {
    min-height: 100dvh;
    height: auto;
    display: block;
    overflow: auto;
    background: #181818;
  }

  .desktop-stage {
    width: 100%;
    min-height: 100dvh;
    height: auto;
    aspect-ratio: auto;
    overflow: hidden;
    background-size: 22px 22px, 22px 22px, cover;
    touch-action: pan-y;
  }

  .system-menu {
    position: sticky;
    top: 0;
    height: 36px;
    padding: 0 10px;
    gap: 10px;
    font-size: 9px;
  }

  .system-menu span:nth-of-type(n + 4) {
    display: none;
  }

  .system-menu strong {
    left: auto;
    right: 92px;
    transform: none;
    font-size: 8px;
  }

  .return-link {
    font-size: 8px;
  }

  .apple-menu {
    width: 22px;
  }

  .desktop-shortcuts {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(70px, 1fr));
    gap: 6px;
    padding: 18px 10px 12px;
    overflow-x: auto;
  }

  .shortcut {
    width: 82px;
    min-height: 92px;
  }

  .shortcut img {
    width: 54px;
    height: 54px;
  }

  .shortcut span {
    width: 82px;
    min-width: 0;
    padding: 4px 2px;
    font-size: 10px;
  }

  .image-window {
    display: none;
  }

  .info-window {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: calc(100% - 20px) !important;
    height: min(63dvh, 560px) !important;
    min-width: 0;
    min-height: 430px;
    margin: 4px 10px 54px;
  }

  .info-window .window-titlebar {
    flex: 0 0 36px;
    grid-template-columns: 26px 1fr auto 1fr 24px;
  }

  .info-window .window-titlebar strong {
    font-size: 11px;
  }

  .info-inner {
    inset: 8% 8% 9%;
  }

  .info-eyebrow {
    font-size: 12px;
  }

  .info-inner h1 {
    font-size: clamp(34px, 12vw, 54px);
  }

  .info-label {
    font-size: 17px;
  }

  .info-body {
    font-size: 16px;
  }

  .info-meta {
    font-size: 11px;
  }

  .desktop-status {
    position: absolute;
    height: 34px;
    padding: 0 10px;
    font-size: 9px;
  }

  .desktop-status span:last-child {
    display: none;
  }

  .desktop-brand {
    top: 54px;
    right: 10px;
    width: 118px;
    padding: 7px 8px 6px;
  }

  .desktop-brand span {
    font-size: 6px;
  }

  .long-page {
    height: auto;
    min-height: 100dvh;
    padding: 52px 10px 126px;
    overflow: visible;
    scroll-snap-align: start;
    background-size: 22px 22px, 22px 22px, cover;
  }

  .page-menu {
    position: absolute;
    height: 36px;
    padding: 0 10px;
    gap: 8px;
    font-size: 8px;
  }

  .page-menu span:nth-of-type(n + 4) {
    display: none;
  }

  .page-menu strong {
    left: auto;
    right: 10px;
    transform: none;
    max-width: 58%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .document-window,
  .primary-document,
  .data-document {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    height: auto;
  }

  .data-document {
    margin-top: 14px;
  }

  .static-titlebar {
    height: 34px;
    min-height: 34px;
  }

  .static-titlebar strong {
    font-size: 9px;
  }

  .document-tabs {
    height: 32px;
    font-size: 8px;
  }

  .document-tabs span {
    min-width: 66px;
    padding: 0 8px;
  }

  .document-body,
  .data-body {
    position: relative;
    inset: auto;
    overflow: visible;
    padding: 28px 24px 34px;
  }

  .document-body h2 {
    font-size: 40px;
  }

  .document-body h3 {
    margin-top: 0;
    font-size: 20px;
  }

  .document-body p,
  .document-body .hero-copy {
    max-width: none;
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  .document-body .micro-heading,
  .document-body .micro-copy {
    font-size: 9px !important;
  }

  .data-body h4 {
    font-size: 16px;
  }

  .panel-scrollbar {
    display: none;
  }

  .beat-grid {
    width: 100%;
    gap: 4px;
  }

  .beat-grid span {
    min-height: 32px;
  }

  .route-tags {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .storyboard-page {
    height: auto;
    min-height: 100dvh;
    padding: 48px 10px 126px;
    overflow: hidden;
    background-size: 22px 22px, 22px 22px, cover;
  }

  .storyboard-cover-page {
    display: grid;
    align-items: center;
    padding-top: 70px;
  }

  .macintosh-unit,
  .cover-mac {
    position: relative;
    left: 0;
    top: auto;
    width: 160vw;
    max-width: none;
    margin: 0 0 -20vw;
    transform: none;
  }

  .storyboard-cover-page .macintosh-unit {
    margin-top: -15vw;
  }

  .macintosh-tilt {
    transform: none !important;
  }

  .mac-power {
    left: 51%;
    top: 68%;
    width: 46px;
    height: 25px;
    border: 1px solid #444;
    border-radius: 0;
    color: #111;
    background: #dedede;
    box-shadow: inset 1px 1px #fff, inset -1px -1px #777;
    transform: none;
  }

  .mac-power span {
    opacity: 1;
    font-size: 12px;
  }

  .shared-mac-slot {
    position: fixed;
    inset: 48px 0 auto;
    height: 360px;
    display: grid;
    place-items: start center;
    margin: 0;
    transform: none;
  }

  .shared-macintosh {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 260px;
    max-width: none;
    margin: 0;
    transform: none;
  }

  .shared-mac-slot.is-cover {
    inset: 44px 0 88px;
    height: auto;
    place-items: center;
  }

  .shared-mac-slot.is-cover .shared-macintosh {
    width: 290px;
    max-width: calc(100vw - 42px);
    transform: none;
  }

  .shared-mac-slot.is-cover .story-cover-screen strong {
    font-size: clamp(23px, 8vw, 31px);
  }

  .shared-mac-slot.is-cover .story-cover-kicker,
  .shared-mac-slot.is-cover .story-cover-prompt {
    font-size: clamp(5px, 1.55vw, 7px);
  }

  .shared-macintosh .mac-power {
    left: 8.15%;
    top: 70.55%;
    width: 7.4%;
    height: 5.25%;
    border: 0;
    color: transparent;
    background: rgba(255, 255, 255, 0.001);
    box-shadow: none;
  }

  .shared-macintosh .mac-power span {
    opacity: 0;
  }

  .story-copy-window {
    position: relative;
    right: auto;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    min-height: 570px;
    margin-top: 374px;
    opacity: 1;
    transform: none;
  }

  .storyboard-frame-page .story-copy-window {
    right: auto;
    left: auto;
    top: auto;
    width: 100%;
  }

  .story-toolbar {
    height: 44px;
    grid-template-columns:
      repeat(7, minmax(21px, 26px))
      minmax(3px, 1fr)
      repeat(4, minmax(21px, 26px));
    gap: 3px;
    padding: 6px;
    overflow: hidden;
  }

  .story-toolbar span {
    height: 29px;
    font-size: 13px;
  }

  .story-copy-scroll {
    position: relative;
    inset: auto;
    min-height: 525px;
    padding: 34px 28px 38px;
    overflow: visible;
  }

  .story-scene {
    font-size: 12px;
  }

  .story-copy-scroll h2 {
    font-size: 42px;
  }

  .story-copy {
    font-size: 16px;
  }

  .story-footer {
    font-size: 10px;
  }

  .story-scrollbar {
    display: none;
  }

  .storyboard-viewer {
    width: calc(100vw - 16px);
  }

  .storyboard-viewer > p {
    font-size: 6px;
  }

  .storyboard-cover-page {
    min-height: 100dvh;
  }

  .timeline-window {
    top: auto;
    right: auto;
    bottom: 8px;
    width: calc(100vw - 16px);
    padding: 5px;
    border-radius: 15px;
  }

  .timeline-titlebar {
    height: 18px;
  }

  .timeline-titlebar strong {
    font-size: 7px;
  }

  .timeline-track {
    grid-template-columns: repeat(8, minmax(36px, 1fr));
    gap: 1px;
    padding: 1px;
  }

  .timeline-track button {
    height: 30px;
    gap: 1px;
    border-radius: 0;
    font-size: 0;
  }

  .timeline-track button span {
    font-size: 10px;
  }

  .timeline-subtrack {
    grid-auto-columns: 72px;
    padding: 2px;
  }

  .timeline-subtrack button {
    height: 28px;
    gap: 3px;
    font-size: 0;
  }

  .timeline-subtrack button span {
    font-size: 8px;
  }

  .continue-browser,
  .continue-browser.is-hero {
    right: 10px;
    bottom: 74px;
    width: 132px;
    min-width: 132px;
    height: 44px;
    padding: 9px 11px;
  }

  .continue-icon {
    font-size: 26px;
  }

  .continue-browser b {
    font-size: 12px;
  }

  .continue-browser small {
    font-size: 7px;
  }

  .window-dock {
    left: 10px;
    bottom: 118px;
    max-width: calc(100vw - 145px);
    min-width: 0;
  }

  .previous-browser {
    left: 10px;
    bottom: 74px;
    width: 132px;
    min-width: 132px;
    height: 44px;
    padding: 9px 11px;
  }

  .timeline-window.has-subnav ~ .continue-browser,
  .timeline-window.has-subnav ~ .previous-browser {
    bottom: 116px;
  }

  .previous-icon {
    font-size: 23px;
  }

  .previous-browser b {
    font-size: 12px;
  }

  .previous-browser small {
    display: none;
  }

  .parent-browser {
    top: 42px;
    right: 8px;
    padding: 6px 8px;
    font-size: 8px;
  }

  .summary-window {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 760px;
    margin: 0;
  }

  .summary-content {
    height: auto;
    min-height: 730px;
    padding: 30px 26px 46px;
    overflow: visible;
  }

  .summary-content > h2 {
    font-size: 34px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .summary-window .story-scrollbar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shortcut img,
  .macintosh-tilt,
  .story-copy-window,
  .storyboard-screen-image {
    transition: none;
  }

  .storyboard-page.is-current-page .macintosh-tilt,
  .storyboard-page.is-current-page .mac-screen-hit::after,
  .shared-mac-slot.is-switching .macintosh-tilt,
  .shared-mac-slot.is-crossfading .macintosh-tilt,
  .shared-mac-slot.is-cover-zooming .macintosh-tilt,
  .shared-mac-slot.is-cover-zooming .mac-screen-hit,
  .shared-mac-slot.is-lighting .mac-screen-hit,
  .shared-mac-slot.is-lighting .mac-screen-hit::after,
  .mac-led,
  .story-cover-prompt {
    animation: none;
  }
}
