:root {
  --purple: #3d31b8;
  --purple-dark: #1b0b70;
  --magenta: #d918b6;
  --chrome: #bfc2df;
  --chrome-dark: #777aa5;
  --frame-ink: #282b61;
  --frame-shadow: #575b91;
  --frame-light: #f8f8ff;
  --frame-glow: rgba(0, 255, 230, .18);
  --paper: #fbfbfb;
  --ink: #050505;
  --blue: #3968c2;
  --duration-fast: 120ms;
  --press-offset: 1px;
  --cursor-default: url("../public/cursors/cyber-arrow.png") 5 2, auto;
  --cursor-grab: url("../public/cursors/cyber-grab.png") 24 20, grab;
  --cursor-grabbing: url("../public/cursors/cyber-grabbing.png") 24 20, grabbing;
  --cursor-loading: url("../public/cursors/cyber-loading.png") 24 24, wait;
}

* {
  box-sizing: border-box;
  cursor: var(--cursor-default);
}

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

[hidden] {
  display: none !important;
}

body {
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  background-color: #030108;
  background-image: url("../public/wallpapers/cyber-nerv-purple-green.jpg");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 1536px 1024px;
  image-rendering: pixelated;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  color: #ededed;
  font: 10px "Lucida Console", monospace;
  line-height: 32px;
  word-spacing: 18px;
  opacity: 0.9;
}

body.wallpaper-cyber-rider {
  background-color: #020819;
  background-image: url("../public/wallpapers/cyber-rider-redblue.jpg");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 1254px 1254px;
  image-rendering: pixelated;
}

body.wallpaper-cyber-rider::before {
  content: "";
}

body.wallpaper-cyber-zen {
  background-color: #050800;
  background-image: url("../public/wallpapers/cyber-zen-green.jpg");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 1254px 1254px;
  image-rendering: pixelated;
}

body.wallpaper-cyber-zen::before {
  content: "";
}

body.wallpaper-cyber-nerv {
  background-color: #030108;
  background-image: url("../public/wallpapers/cyber-nerv-purple-green.jpg");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 1536px 1024px;
  image-rendering: pixelated;
}

body.wallpaper-cyber-nerv::before {
  content: "";
}

body.wallpaper-cyber-statue {
  background-color: #030303;
  background-image: url("../public/wallpapers/cyber-statue-monochrome.jpg");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 1536px 1024px;
  image-rendering: pixelated;
}

body.wallpaper-cyber-statue::before {
  content: "";
}

body.wallpaper-cyber-white-archive {
  background-color: #f7f7fb;
  background-image: url("../public/wallpapers/cyber-white-nerv-archive.jpg");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 1536px 1024px;
  image-rendering: pixelated;
}

body.wallpaper-cyber-white-archive::before {
  content: "";
}

body.wallpaper-cyber-spider {
  background-color: #fbfbfb;
  background-image: url("../public/wallpapers/cyber-spider-protocol.jpg");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 1536px 1024px;
  image-rendering: pixelated;
}

body.wallpaper-cyber-spider::before {
  content: "";
}

body.wallpaper-dark-dungeon {
  background-color: #151514;
  background-image: url("../public/wallpapers/dark-dungeon-pixel.png");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 1672px 941px;
  image-rendering: pixelated;
}

body.wallpaper-dark-dungeon::before {
  content: "";
}

body.wallpaper-occult-dungeon {
  background-color: #15161a;
  background-image: url("../public/wallpapers/occult-dungeon-pixel.png");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 1672px 941px;
  image-rendering: pixelated;
}

body.wallpaper-occult-dungeon::before {
  content: "";
}

body.wallpaper-doraemon-sky {
  background-color: #c9ecff;
  background-image: url("../public/wallpapers/doraemon-sky.png");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 1672px 941px;
  image-rendering: pixelated;
}

body.wallpaper-doraemon-sky::before {
  content: "";
}

body.wallpaper-cute-cats {
  background-color: #fbfbfa;
  background-image: url("../public/wallpapers/cute-cat-stickers.png");
  background-repeat: repeat;
  background-position: 0 0;
  background-size: 1672px 941px;
  image-rendering: pixelated;
}

body.wallpaper-cute-cats::before {
  content: "";
}

body.wallpaper-clouds {
  background-color: #1d75c9;
  background-image:
    radial-gradient(ellipse at 18% 24%, rgba(255,255,255,.92) 0 9%, transparent 10%),
    radial-gradient(ellipse at 28% 20%, rgba(255,255,255,.75) 0 7%, transparent 8%),
    radial-gradient(ellipse at 72% 30%, rgba(255,255,255,.85) 0 8%, transparent 9%),
    radial-gradient(ellipse at 82% 26%, rgba(255,255,255,.65) 0 6%, transparent 7%),
    linear-gradient(#1472d0, #7bc7ff 54%, #2f9a41 55%, #198034);
  background-size: 520px 260px, 520px 260px, 620px 300px, 620px 300px, 100% 100%;
  background-position: 0 0, 0 0, 70px 80px, 70px 80px, 0 0;
}

body.wallpaper-clouds::before {
  content: "";
}

button,
a {
  color: inherit;
  font: inherit;
}

button,
.desktop-icon,
.link-list a {
  user-select: none;
  touch-action: manipulation;
}

button:focus-visible,
.desktop-icon:focus-visible,
.link-list a:focus-visible {
  outline: 2px dotted #fff;
  outline-offset: 2px;
}

body.boot-pending {
  background: #000;
}

body.boot-pending .os-shell {
  opacity: 0;
}

body.boot-active {
  overflow: hidden;
  background: #000;
}

body.boot-active .os-shell,
body.boot-active .power-screen,
body.boot-active .screensaver {
  pointer-events: none;
  user-select: none;
}

body.boot-active .os-shell {
  opacity: 0;
}

.boot-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  overflow: hidden;
  color: #d8ffe8;
  background: #000;
  font-family: "Lucida Console", Monaco, monospace;
  isolation: isolate;
}

body.boot-active .boot-screen {
  display: block;
}

.boot-screen::before,
.boot-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.boot-screen::before {
  z-index: -2;
  opacity: 0;
  background: none;
  animation: none;
}

.boot-screen::after {
  z-index: 15;
  opacity: 0;
  background-image:
    radial-gradient(ellipse at center, transparent 0, transparent 55%, rgba(0,0,0,.66) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(255,255,255,.13) 3px);
  background-size: 100% 100%, 100% 6px;
  animation: flicker .3s linear infinite;
}

.boot-screen.is-terminal::after {
  opacity: .48;
}

.boot-intrusion {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  transition:
    opacity 360ms ease,
    visibility 360ms ease;
}

.boot-intrusion::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
  filter: none;
  opacity: 1;
  transform: none;
  transition:
    opacity 980ms cubic-bezier(.2, .8, .2, 1),
    filter 980ms cubic-bezier(.2, .8, .2, 1),
    transform 980ms cubic-bezier(.2, .8, .2, 1),
    visibility 980ms cubic-bezier(.2, .8, .2, 1);
}

.boot-screen.is-awake .boot-intrusion {
  z-index: 7;
}

.boot-intrusion:disabled {
  pointer-events: none;
}

.boot-eye-stage,
.boot-progress-eye-stage {
  position: absolute;
  left: 50%;
  top: 43%;
  z-index: 3;
  width: clamp(280px, 35vw, 520px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  image-rendering: auto;
}

.boot-eye-stage::before,
.boot-progress-eye-stage::before {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(154, 64, 255, .24), rgba(94, 24, 164, .12) 38%, transparent 68%);
  filter: blur(28px);
  pointer-events: none;
}

.boot-eye-stage img,
.boot-progress-eye-stage img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: opacity 120ms ease;
}

.boot-eye-stage .boot-eye-animation,
.boot-eye-stage .boot-eye-open-final {
  opacity: 0;
}

.boot-screen.is-awake .boot-eye-closed {
  opacity: 0;
  transition: opacity 120ms ease;
}

.boot-screen.is-awake .boot-eye-stage .boot-eye-animation {
  opacity: 1;
}

.boot-screen.is-progress .boot-eye-stage,
.boot-screen.is-terminal .boot-eye-stage {
  visibility: hidden;
  opacity: 0;
}

.boot-entry-bg,
.boot-progress-bg,
.boot-subject,
.boot-eye-layer,
.boot-progress-subject {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: auto;
  pointer-events: none;
}

.boot-entry-bg,
.boot-progress-bg {
  z-index: 1;
  transition:
    opacity 980ms cubic-bezier(.2, .8, .2, 1),
    filter 980ms cubic-bezier(.2, .8, .2, 1),
    transform 980ms cubic-bezier(.2, .8, .2, 1);
}

.boot-subject,
.boot-eye-layer,
.boot-progress-subject {
  z-index: 3;
  transform: translateZ(0);
  transform-origin: center;
  transition:
    opacity 620ms cubic-bezier(.2, .8, .2, 1),
    clip-path 900ms cubic-bezier(.16, .9, .18, 1),
    filter 900ms cubic-bezier(.16, .9, .18, 1);
}

.boot-subject-open {
  opacity: 0;
}

.boot-eye-layer {
  z-index: 4;
  opacity: 0;
  clip-path: inset(53% 0 44% 0);
  filter: brightness(.78) saturate(1.08);
}

.boot-screen.is-awake .boot-intrusion::before {
  opacity: 1;
  filter: none;
  transform: none;
}

.boot-screen.is-awake .boot-entry-bg {
  filter: brightness(.76) saturate(1.06);
  transform: scale(1.008);
}

.boot-screen.is-awake .boot-subject-closed {
  animation: boot-subject-handoff 980ms cubic-bezier(.22, .74, .2, 1) forwards;
}

.boot-screen.is-awake .boot-subject-open {
  animation: boot-open-subject-settle 980ms cubic-bezier(.16, .9, .18, 1) forwards;
}

.boot-screen.is-awake .boot-eye-layer {
  animation: boot-eye-layer-reveal 760ms cubic-bezier(.16, .9, .18, 1) forwards;
}

.boot-screen.is-progress .boot-intrusion::before,
.boot-screen.is-terminal .boot-intrusion::before,
.boot-screen.is-progress .boot-entry-bg,
.boot-screen.is-terminal .boot-entry-bg,
.boot-screen.is-progress .boot-subject,
.boot-screen.is-progress .boot-eye-layer,
.boot-screen.is-terminal .boot-subject,
.boot-screen.is-terminal .boot-eye-layer {
  visibility: hidden;
  opacity: 0;
}

.boot-screen.is-progress .boot-intrusion,
.boot-screen.is-terminal .boot-intrusion {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.boot-code-rain {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: .14;
  background:
    linear-gradient(90deg, transparent 0 13%, rgba(127, 53, 255, .14) 13.3% 13.7%, transparent 14% 33%),
    linear-gradient(90deg, transparent 0 61%, rgba(127, 53, 255, .12) 61.2% 61.5%, transparent 61.8% 100%),
    repeating-linear-gradient(180deg, rgba(112, 43, 204, .26) 0 2px, transparent 2px 18px);
  background-size: 420px 100%, 620px 100%, 80px 82px;
  mask-image: radial-gradient(ellipse at center, #000 0 48%, transparent 78%);
  animation: boot-data-rain 8s linear infinite;
}

.boot-mask {
  position: relative;
  z-index: 2;
  width: min(54vw, 650px);
  aspect-ratio: 1.42 / 1;
  transform: translateY(-4vh);
  filter:
    drop-shadow(0 0 10px rgba(184, 68, 255, .84))
    drop-shadow(0 0 38px rgba(114, 29, 210, .64))
    drop-shadow(0 0 80px rgba(75, 18, 145, .4));
  isolation: isolate;
  opacity: 0;
  transition: opacity 420ms ease;
}

.boot-mask::before,
.boot-mask::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.boot-mask::before {
  inset: -13% -2% -6%;
  z-index: -2;
  opacity: 0;
  border: 2px solid rgba(162, 76, 255, .62);
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle, transparent 0 42px, rgba(151, 70, 255, .16) 43px 45px, transparent 46px 88px),
    conic-gradient(from 0deg, transparent 0 8deg, rgba(184, 90, 255, .36) 9deg 10deg, transparent 11deg 32deg);
  transform: scale(.72);
}

.boot-mask::after {
  left: 50%;
  top: -2%;
  bottom: 4%;
  z-index: 4;
  width: 2px;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(218, 166, 255, .72) 48%, transparent);
}

.boot-mask-ear {
  position: absolute;
  top: 1%;
  z-index: 1;
  width: 28%;
  height: 45%;
  border: 2px solid rgba(202, 98, 255, .94);
  background:
    radial-gradient(ellipse at 54% 64%, rgba(156, 65, 255, .32), transparent 42%),
    linear-gradient(145deg, rgba(5, 8, 18, .98), rgba(17, 9, 38, .94)),
    repeating-linear-gradient(45deg, rgba(187, 92, 255, .28) 0 2px, transparent 2px 9px);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  box-shadow:
    inset 0 0 24px rgba(159, 70, 255, .24),
    0 0 18px rgba(173, 72, 255, .7);
}

.boot-mask-ear::before {
  content: "";
  position: absolute;
  inset: 19% 18% 14%;
  border: 1px solid rgba(194, 92, 255, .72);
  background:
    repeating-linear-gradient(0deg, rgba(203, 119, 255, .26) 0 2px, transparent 2px 8px),
    repeating-linear-gradient(90deg, rgba(203, 119, 255, .2) 0 2px, transparent 2px 8px);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.boot-mask-ear-left {
  left: 14%;
  transform: rotate(-23deg) skewX(-2deg);
}

.boot-mask-ear-right {
  right: 14%;
  transform: rotate(23deg) skewX(2deg);
}

.boot-mask-face {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 2%;
  z-index: 2;
  height: 86%;
  border: 2px solid rgba(190, 90, 255, .82);
  border-radius: 52% 52% 42% 42% / 48% 48% 56% 56%;
  background:
    radial-gradient(ellipse at 50% 31%, rgba(166, 85, 255, .13), transparent 30%),
    radial-gradient(ellipse at 50% 71%, rgba(124, 48, 216, .28), transparent 42%),
    linear-gradient(115deg, transparent 0 45%, rgba(178, 84, 255, .18) 45.2% 45.7%, transparent 46%),
    linear-gradient(63deg, transparent 0 53%, rgba(80, 45, 156, .22) 53.2% 53.7%, transparent 54%),
    repeating-linear-gradient(36deg, rgba(148, 74, 250, .12) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(132deg, rgba(126, 58, 224, .11) 0 1px, transparent 1px 9px),
    #02040c;
  box-shadow:
    inset 0 -34px 46px rgba(0,0,0,.86),
    inset 0 0 54px rgba(113, 45, 196, .32),
    0 0 0 1px rgba(72, 28, 120, .82),
    0 0 22px rgba(179, 72, 255, .62);
  clip-path: polygon(50% 2%, 69% 8%, 85% 24%, 99% 61%, 83% 86%, 55% 98%, 45% 98%, 17% 86%, 1% 61%, 15% 24%, 31% 8%);
}

.boot-mask-face::before,
.boot-mask-face::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.boot-mask-face::before {
  left: 7%;
  right: 7%;
  top: 36%;
  height: 50%;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(190, 94, 255, .44), rgba(81, 32, 141, .18) 24%, rgba(0,0,0,.92) 25%),
    #070313;
  clip-path: polygon(0 52%, 13% 23%, 32% 5%, 68% 5%, 87% 23%, 100% 52%, 84% 82%, 64% 95%, 36% 95%, 16% 82%);
  filter:
    drop-shadow(0 -2px 8px rgba(205, 116, 255, .64))
    drop-shadow(0 0 18px rgba(115, 43, 204, .46));
}

.boot-mask-face::after {
  left: 9.5%;
  right: 9.5%;
  top: 39%;
  height: 45%;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 43%, rgba(87, 36, 143, .28), transparent 42%),
    #00020a;
  clip-path: polygon(0 52%, 13% 24%, 32% 7%, 68% 7%, 87% 24%, 100% 52%, 83% 79%, 64% 92%, 36% 92%, 17% 79%);
}

.boot-closed-eye,
.boot-open-eye {
  position: absolute;
  z-index: 3;
  left: 20%;
  right: 20%;
  top: 64%;
  height: 22%;
  transform: translateY(-50%);
}

.boot-closed-eye {
  height: 19%;
  border-bottom: 5px solid rgba(204, 100, 255, .96);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  box-shadow:
    0 8px 14px -8px rgba(207, 107, 255, .9),
    0 0 18px rgba(183, 77, 255, .82);
}

.boot-closed-eye::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: calc(100% - 3px);
  height: 1px;
  background: rgba(255, 222, 255, .62);
  box-shadow: 0 0 8px rgba(238, 194, 255, .72);
}

.boot-closed-eye::after {
  content: "";
  position: absolute;
  left: 11%;
  right: 11%;
  top: 92%;
  height: 44px;
  background:
    linear-gradient(87deg, transparent 0 6%, rgba(191, 88, 255, .88) 6.2% 7.2%, transparent 7.5% 18%),
    linear-gradient(91deg, transparent 0 19%, rgba(191, 88, 255, .84) 19.2% 20.2%, transparent 20.5% 32%),
    linear-gradient(93deg, transparent 0 34%, rgba(191, 88, 255, .8) 34.2% 35.2%, transparent 35.5% 48%),
    linear-gradient(90deg, transparent 0 49%, rgba(191, 88, 255, .88) 49.3% 50.3%, transparent 50.7% 63%),
    linear-gradient(87deg, transparent 0 65%, rgba(191, 88, 255, .82) 65.2% 66.2%, transparent 66.5% 78%),
    linear-gradient(85deg, transparent 0 80%, rgba(191, 88, 255, .86) 80.2% 81.2%, transparent 81.5%);
  transform: perspective(240px) rotateX(54deg);
}

.boot-open-eye {
  opacity: 0;
  overflow: hidden;
  left: 18%;
  right: 18%;
  top: 62%;
  height: 24%;
  border: 2px solid rgba(216, 128, 255, .96);
  border-radius: 48%;
  background:
    radial-gradient(circle at 50% 50%, rgba(246, 223, 255, .95) 0 12%, transparent 13%),
    radial-gradient(circle at 50% 50%, transparent 0 24%, rgba(153, 48, 255, .72) 25% 34%, transparent 35%),
    repeating-linear-gradient(90deg, rgba(231, 206, 255, .88) 0 10px, rgba(123, 55, 210, .78) 10px 14px),
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(255,255,255,.28) 9px 12px),
    #b58cff;
  box-shadow:
    inset 0 0 18px rgba(0,0,0,.68),
    inset 0 -12px 24px rgba(40, 0, 92, .62),
    0 0 18px rgba(209, 114, 255, .92),
    0 0 42px rgba(157, 55, 255, .62);
  clip-path: polygon(0 50%, 10% 24%, 31% 9%, 69% 9%, 90% 24%, 100% 50%, 90% 76%, 69% 91%, 31% 91%, 10% 76%);
  transform: translateY(-50%) scaleY(.08);
}

.boot-open-eye::before,
.boot-open-eye::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.boot-open-eye::before {
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, transparent 0 49.3%, rgba(255, 237, 255, .72) 49.5% 50.5%, transparent 50.7%),
    linear-gradient(0deg, transparent 0 47%, rgba(255, 237, 255, .32) 48% 50%, transparent 51%);
  mix-blend-mode: screen;
}

.boot-open-eye::after {
  inset: 0;
  z-index: 4;
  background: radial-gradient(ellipse at center, transparent 0 50%, rgba(0,0,0,.34) 76%, rgba(0,0,0,.72) 100%);
}

.boot-digital-iris {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 29%;
  aspect-ratio: 1;
  border: 4px solid rgba(246, 222, 255, .92);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at center, transparent 0 25%, rgba(255,255,255,.76) 26% 28%, transparent 29%),
    radial-gradient(circle, rgba(131, 44, 218, .32), rgba(17, 0, 38, .82) 68%);
  box-shadow:
    0 0 10px rgba(255,255,255,.9),
    0 0 22px rgba(191, 94, 255, .9),
    inset 0 0 12px rgba(74, 0, 120, .82);
  overflow: hidden;
}

.boot-digital-iris::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, rgba(255,255,255,.96), rgba(154,76,255,.14), rgba(255,255,255,.86), rgba(154,76,255,.16), rgba(255,255,255,.96));
  opacity: .86;
  animation: boot-iris-spin 1.1s linear infinite;
}

.boot-digital-iris::after {
  content: "";
  position: absolute;
  left: 39%;
  right: 39%;
  top: 8%;
  bottom: 8%;
  border-radius: 48%;
  background: #030009;
  box-shadow:
    0 0 0 2px rgba(210, 158, 255, .65),
    0 0 12px rgba(40, 0, 80, .96);
}

.boot-start-text {
  position: absolute;
  left: 50%;
  top: min(78.4vh, calc(50% + min(27vw, 270px)));
  z-index: 6;
  display: block;
  padding: 0 clamp(10px, 2vw, 24px);
  color: rgba(194, 112, 255, .92);
  font-size: clamp(20px, 3.2vw, 42px);
  letter-spacing: .32em;
  line-height: 1;
  text-shadow:
    0 0 12px rgba(188, 83, 255, .88),
    0 0 34px rgba(121, 49, 216, .58);
  transform: translateX(-50%) translateZ(0);
  white-space: nowrap;
  visibility: visible;
  opacity: 1;
  animation: boot-start-breathe 1.8s ease-in-out infinite;
}

.boot-start-text::before,
.boot-start-text::after {
  content: "";
  position: absolute;
  top: 50%;
  width: min(9vw, 120px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(188, 83, 255, .74));
  box-shadow: 0 0 10px rgba(188, 83, 255, .72);
}

.boot-start-text::before {
  right: calc(100% + 12px);
}

.boot-start-text::after {
  left: calc(100% + 12px);
  transform: scaleX(-1);
}

.boot-screen.is-awake .boot-closed-eye {
  animation: boot-eye-close-out 560ms ease forwards;
}

.boot-screen.is-awake .boot-open-eye,
.boot-screen.is-progress .boot-open-eye {
  opacity: 1;
  animation: boot-eye-open 620ms cubic-bezier(.2, .9, .2, 1) forwards;
}

.boot-screen.is-awake .boot-start-text,
.boot-screen.is-progress .boot-start-text,
.boot-screen.is-terminal .boot-start-text {
  visibility: hidden;
  opacity: 0;
  animation: none;
}

.boot-progress-panel,
.boot-terminal {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
}

.boot-screen.is-progress .boot-progress-panel {
  display: block;
}

.boot-progress-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
  filter: none;
  opacity: 1;
  transform: none;
  pointer-events: none;
}

.boot-progress-eye-stage {
  top: 34%;
  z-index: 2;
  width: clamp(300px, 33vw, 520px);
}

.boot-progress-bg {
  z-index: 1;
  opacity: 1;
  filter: brightness(.98) saturate(1.05);
}

.boot-progress-subject {
  z-index: 2;
  opacity: 1;
  filter: brightness(1.02) saturate(1.04);
}

.boot-progress-bg,
.boot-progress-subject {
  transform: translateY(0) scale(1);
  transform-origin: center center;
  transition:
    opacity 980ms cubic-bezier(.2, .8, .2, 1),
    filter 980ms cubic-bezier(.2, .8, .2, 1),
    transform 980ms cubic-bezier(.2, .8, .2, 1);
}

.boot-screen.is-terminal .boot-progress-panel {
  display: none;
}

.boot-hud {
  display: block;
  position: absolute;
  top: 30px;
  z-index: 4;
  width: min(300px, 27vw);
  padding: 14px 18px;
  border: 1px solid rgba(164, 80, 255, .76);
  color: rgba(178, 97, 255, .9);
  background: rgba(5, 0, 16, .42);
  font-size: clamp(10px, .9vw, 14px);
  line-height: 1.48;
  text-align: left;
  box-shadow: inset 0 0 18px rgba(116, 36, 197, .18);
}

.boot-hud-left {
  left: 26px;
}

.boot-hud-right {
  right: 26px;
}

.boot-map {
  height: 80px;
  margin: 10px 0;
  opacity: .75;
  background:
    radial-gradient(circle at 35% 45%, rgba(161, 79, 255, .9) 0 3px, transparent 4px),
    radial-gradient(circle at 52% 36%, rgba(161, 79, 255, .7) 0 2px, transparent 3px),
    radial-gradient(circle at 68% 54%, rgba(161, 79, 255, .7) 0 2px, transparent 3px),
    repeating-linear-gradient(0deg, rgba(148, 73, 245, .18) 0 2px, transparent 2px 6px);
  clip-path: polygon(5% 36%, 24% 22%, 47% 31%, 58% 20%, 78% 32%, 95% 44%, 82% 66%, 56% 58%, 43% 72%, 22% 60%);
}

.boot-progress-copy {
  position: absolute;
  left: 50%;
  bottom: clamp(58px, 7.4vh, 86px);
  z-index: 3;
  width: min(40vw, 680px);
  color: rgba(205, 142, 255, .94);
  text-align: center;
  transform: translateX(-50%);
}

.boot-progress-copy::before {
  content: "";
  position: absolute;
  left: -3%;
  right: -42%;
  top: -12px;
  bottom: -70px;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 1, 14, .18), rgba(4, 0, 15, .98) 18%, rgba(4, 0, 15, .97) 88%, rgba(3, 1, 14, .2));
  filter: blur(.4px);
}

.boot-progress-copy {
  opacity: 0;
  transition: opacity 280ms ease;
}

.boot-screen.is-progress .boot-progress-copy {
  opacity: 1;
}

.boot-state-text {
  display: block;
  margin-bottom: clamp(16px, 2vh, 22px);
  font-size: clamp(30px, 4vw, 58px);
  letter-spacing: .18em;
  text-shadow:
    0 0 13px rgba(204, 116, 255, .92),
    0 0 32px rgba(120, 42, 225, .62);
}

.boot-progress-label,
.boot-progress-status {
  color: rgba(213, 160, 255, .88);
  font-size: clamp(12px, 1.1vw, 16px);
  letter-spacing: .28em;
  text-align: left;
}

.boot-progress-line {
  position: relative;
  height: clamp(18px, 2.7vh, 28px);
  margin-top: 8px;
  border: 2px solid rgba(172, 78, 255, .9);
  border-radius: 7px;
  background: rgba(18, 4, 36, .82);
  box-shadow:
    0 0 18px rgba(177, 75, 255, .72),
    inset 0 0 12px rgba(99, 26, 160, .74);
}

.boot-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background:
    linear-gradient(90deg, rgba(155, 64, 255, .88), rgba(241, 198, 255, .96)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.28) 0 10px, transparent 10px 18px);
  box-shadow: 0 0 18px rgba(207, 122, 255, .9);
  transition: width 90ms linear;
}

.boot-progress-percent {
  position: absolute;
  left: calc(100% + clamp(16px, 2.6vw, 34px));
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(24px, 3.5vw, 42px);
  line-height: 1;
  color: rgba(205, 142, 255, .95);
  text-shadow: 0 0 14px rgba(185, 84, 255, .88);
}

.boot-progress-status {
  margin-top: clamp(12px, 1.9vh, 18px);
  text-align: center;
}

.boot-screen.is-terminal .boot-intrusion,
.boot-screen.is-terminal .boot-progress-panel {
  display: none;
}

.boot-screen.is-terminal .boot-terminal {
  display: block;
}

.boot-terminal {
  padding: 6px 8px;
  color: #d8ffe8;
  background: #000;
  text-align: left;
  text-shadow: 0 0 6px rgba(255,255,255,.58);
}

.boot-terminal-icons {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.boot-cat-icon {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 54px;
  image-rendering: pixelated;
}

.boot-cat-icon::before {
  content: "";
  position: absolute;
  inset: 6px 5px 3px;
  background:
    linear-gradient(#f1f1f1, #a7a7a7);
  border: 2px solid #1c1c1c;
  clip-path: polygon(0 24%, 18% 24%, 28% 0, 40% 24%, 60% 24%, 72% 0, 82% 24%, 100% 24%, 100% 100%, 0 100%);
  box-shadow:
    inset 3px 3px #fff,
    inset -3px -3px #616161;
}

.boot-cat-icon::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 24px;
  width: 12px;
  height: 12px;
  border: 2px solid #222;
  border-radius: 50%;
  background:
    radial-gradient(circle, #111 0 34%, transparent 36%),
    #f8f8f8;
  box-shadow:
    -12px 11px 0 -5px #333,
    12px 11px 0 -5px #333,
    0 23px 0 -4px #202020;
}

.boot-terminal-output {
  max-width: min(980px, 96vw);
  color: #d5d5d5;
  font-size: clamp(12px, 1.3vw, 19px);
  font-weight: 700;
  line-height: 1.16;
  overflow: hidden;
}

.boot-terminal-line {
  min-height: 1.16em;
}

.boot-green {
  color: #33d17a;
}

.boot-purple {
  color: #a357ff;
}

.boot-yellow {
  color: #a6c96a;
}

.boot-dim {
  color: #d2d2d2;
}

.boot-bar {
  display: inline-block;
  min-width: 30ch;
}

.boot-bar::before {
  content: "▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ Done";
  color: #33d17a;
}

@keyframes boot-data-rain {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 0 900px, 0 640px, 0 240px; }
}

@keyframes boot-pulse {
  from { opacity: .68; }
  to { opacity: 1; }
}

@keyframes boot-iris-spin {
  to { transform: translate(-50%, -50%) rotate(1turn); }
}

@keyframes boot-start-breathe {
  0%, 100% {
    opacity: .82;
    filter: brightness(.88);
  }
  48% {
    opacity: 1;
    filter: brightness(1.18);
  }
}

@keyframes boot-subject-handoff {
  0% {
    opacity: 1;
    filter: brightness(1);
  }
  52% {
    opacity: .9;
  }
  100% {
    opacity: .24;
    filter: brightness(.72);
  }
}

@keyframes boot-eye-layer-reveal {
  0% {
    opacity: 0;
    clip-path: inset(53% 0 44% 0);
    filter: brightness(.5) saturate(1.1);
  }
  18% {
    opacity: 1;
    clip-path: inset(51% 0 39% 0);
  }
  54% {
    clip-path: inset(43% 0 30% 0);
    filter: brightness(1.06) saturate(1.16);
  }
  100% {
    opacity: 1;
    clip-path: inset(35% 0 24% 0);
    filter: brightness(1.1) saturate(1.18);
  }
}

@keyframes boot-open-subject-settle {
  0%, 68% {
    opacity: 0;
    filter: brightness(.88);
  }
  100% {
    opacity: 1;
    filter: brightness(1.02);
  }
}

@keyframes boot-eye-open {
  to {
    opacity: 1;
    transform: translateY(-50%) scaleY(1);
  }
}

@keyframes boot-eye-close-out {
  to {
    opacity: 0;
    transform: translateY(-10px) scaleY(.2);
  }
}

@keyframes boot-mask-scan {
  from { filter: drop-shadow(0 0 12px rgba(151, 68, 255, .72)); }
  to { filter: drop-shadow(0 0 28px rgba(204, 130, 255, .86)); }
}

@media (max-width: 760px) {
  .boot-mask {
    width: min(76vw, 360px);
    transform: translateY(-7vh);
  }

  .boot-start-text {
    top: min(79vh, calc(50% + min(39vw, 180px)));
    min-width: min(78vw, 360px);
    min-height: 46px;
    font-size: clamp(16px, 6vw, 28px);
    letter-spacing: .18em;
  }

  .boot-hud {
    display: none;
  }

  .boot-entry-bg,
  .boot-progress-bg,
  .boot-subject,
  .boot-eye-layer,
  .boot-progress-subject {
    object-fit: cover;
  }

  .boot-progress-copy {
    left: 50%;
    bottom: 7vh;
    width: calc(100vw - 54px);
  }

  .boot-progress-copy::before {
    left: -7%;
    right: -7%;
    top: -10px;
    bottom: -22px;
  }

  .boot-state-text {
    font-size: clamp(22px, 9vw, 36px);
    letter-spacing: .08em;
  }

  .boot-progress-label,
  .boot-progress-status {
    letter-spacing: .14em;
    text-align: center;
  }

  .boot-progress-line {
    height: 24px;
  }

  .boot-progress-percent {
    left: 50%;
    top: calc(100% + 12px);
    transform: translateX(-50%);
    font-size: 26px;
  }

  .boot-progress-status {
    margin-top: 44px;
  }

  .boot-terminal {
    padding: 5px;
  }

  .boot-terminal-icons {
    gap: 4px;
  }

  .boot-cat-icon {
    width: 38px;
    height: 38px;
  }

  .boot-terminal-output {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.2;
    word-break: break-word;
  }

  .boot-bar {
    min-width: 0;
  }
}

@media (max-height: 600px) {
  .boot-terminal-icons {
    margin-bottom: 4px;
  }

  .boot-terminal-output {
    font-size: 11px;
    line-height: 1.16;
  }
}

.os-shell {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  padding: 24px 12px;
}

.window {
  border: 1px solid var(--frame-ink);
  background: var(--chrome);
  box-shadow:
    0 0 0 1px #7f83ba,
    2px 2px 0 var(--frame-ink),
    0 0 16px var(--frame-glow),
    inset 2px 2px var(--frame-light),
    inset -2px -2px var(--frame-shadow),
    inset 4px 4px #d7d9f3,
    inset -4px -4px #6f73a8,
    0 20px 70px rgba(0, 0, 0, 0.55);
}

.main-window {
  width: min(640px, calc(100vw - 24px));
  margin: 0 auto;
  transform-origin: center top;
}

.main-window.is-promoted {
  width: min(760px, calc(100vw - 24px));
}

.window-body.promoted-main-body {
  padding: 16px;
}

.window.is-jolting {
  animation: window-jolt 240ms steps(1, end);
}

@keyframes window-jolt {
  0% {
    transform: translate3d(0, 0, 0);
    filter: none;
  }

  12% {
    transform: translate3d(2px, 1px, 0);
    filter: drop-shadow(0 0 2px rgba(0, 255, 230, .55));
  }

  28% {
    transform: translate3d(-2px, -1px, 0);
  }

  44% {
    transform: translate3d(2px, -1px, 0);
  }

  60% {
    transform: translate3d(-1px, 1px, 0);
  }

  76% {
    transform: translate3d(1px, 0, 0);
    filter: drop-shadow(0 0 1px rgba(255, 251, 0, .55));
  }

  100% {
    transform: translate3d(0, 0, 0);
    filter: none;
  }
}

.popup.is-jolting {
  animation-name: popup-window-jolt;
}

@keyframes popup-window-jolt {
  0% {
    transform: translateX(-50%) translate3d(0, 0, 0);
    filter: none;
  }

  12% {
    transform: translateX(-50%) translate3d(2px, 1px, 0);
    filter: drop-shadow(0 0 2px rgba(0, 255, 230, .55));
  }

  28% {
    transform: translateX(-50%) translate3d(-2px, -1px, 0);
  }

  44% {
    transform: translateX(-50%) translate3d(2px, -1px, 0);
  }

  60% {
    transform: translateX(-50%) translate3d(-1px, 1px, 0);
  }

  76% {
    transform: translateX(-50%) translate3d(1px, 0, 0);
    filter: drop-shadow(0 0 1px rgba(255, 251, 0, .55));
  }

  100% {
    transform: translateX(-50%) translate3d(0, 0, 0);
    filter: none;
  }
}

.titlebar {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 3px 4px;
  color: #fff;
  background: linear-gradient(90deg, #10108c, #6b38d5 62%, #e00ec7);
  border-bottom: 1px solid var(--frame-ink);
  box-shadow:
    inset 1px 1px rgba(255,255,255,.45),
    inset 0 -1px #4c4f8d,
    0 1px #f3f3ff;
  text-shadow: 1px 1px #111;
  cursor: var(--cursor-grab);
}

.titlebar button,
.system-dot,
.titlebar-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #000;
  line-height: 1;
  text-shadow: none;
  cursor: var(--cursor-default);
}

body.is-loading,
body.is-loading * {
  cursor: var(--cursor-loading);
}

body.is-dragging-window,
body.is-dragging-window * {
  cursor: var(--cursor-grabbing);
}

.system-dot,
.titlebar-actions button,
.retro-button,
.footer-buttons button,
.desktop-icon {
  border: 2px solid #111;
  border-right-color: #f3f3ff;
  border-bottom-color: #f3f3ff;
  background: var(--chrome);
  box-shadow: inset 2px 2px #f3f3ff, inset -2px -2px #6f7195;
  transition:
    transform var(--duration-fast) ease-out,
    border-color var(--duration-fast) ease-out,
    box-shadow var(--duration-fast) ease-out,
    background-color var(--duration-fast) ease-out;
  will-change: transform;
}

.system-dot:active,
.system-dot.is-pressing,
.titlebar-actions button:active,
.titlebar-actions button.is-pressing,
.retro-button:active,
.retro-button.is-pressing,
.footer-buttons button:active,
.footer-buttons button.is-pressing,
.desktop-icon:active,
.desktop-icon.is-pressing {
  transform: translate(var(--press-offset), var(--press-offset));
  border-color: #111;
  border-top-color: #555879;
  border-left-color: #555879;
  background: #a9acd0;
  box-shadow: inset 2px 2px #4e4e75, inset -1px -1px #f6f6ff;
}

.system-dot {
  width: 28px;
  height: 26px;
  margin-right: 6px;
  padding: 0;
  background: #aeb2dc;
  color: #000;
}

.titlebar-title {
  flex: 1;
  font-size: 16px;
  letter-spacing: 0;
}

.titlebar-actions {
  display: flex;
}

.titlebar-actions button {
  width: 28px;
  height: 26px;
  padding: 0;
  margin-left: 2px;
  font-weight: 900;
  font-size: 18px;
}

.window-body {
  padding: 10px 18px 0;
  background: var(--chrome);
  overflow: hidden;
}

.desktop-area {
  position: relative;
  min-height: 292px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--frame-ink);
  box-shadow:
    0 0 0 1px #f3f3ff,
    inset 2px 2px #4e4e75,
    inset -2px -2px #fff;
  background: #fff;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(6, 84px);
  gap: 10px 12px;
  align-items: start;
}

.desktop-icon {
  width: 84px;
  height: 84px;
  padding: 4px 3px 3px;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
}

.desktop-icon img {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 2px;
  image-rendering: pixelated;
  pointer-events: none;
}

.desktop-icon[data-icon-size="large"] img {
  width: 56px;
  height: 56px;
  margin-bottom: 0;
}

.desktop-icon[data-icon-size="xlarge"] img {
  width: 60px;
  height: 60px;
  margin-bottom: -3px;
  transform: translateY(-6px);
}

.desktop-icon[data-icon-size="city"] img {
  transform: translateY(-2px) scale(1.22);
  transform-origin: center center;
  margin-bottom: -2px;
}

.desktop-icon span {
  display: block;
  width: 100%;
  max-width: 76px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  color: #050505;
  font-size: 13px;
  line-height: 14px;
  text-align: center;
  text-overflow: clip;
  white-space: nowrap;
}

.desktop-icon:active span,
.desktop-icon.is-pressing span {
  color: #fff;
  background: #051885;
  box-shadow: 1px 1px #fffb00;
}

.desktop-icon.disabled {
  opacity: .55;
}

.trash-icon {
  position: absolute;
  right: 10px;
  bottom: 12px;
}

.footer-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid var(--frame-ink);
  border-right: 1px solid var(--frame-ink);
  box-shadow:
    -1px 0 #f3f3ff,
    1px 0 #6f73a8;
}

.footer-buttons a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.footer-buttons button {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 16px;
}

.footer-buttons img {
  width: 20px;
  height: 20px;
  image-rendering: pixelated;
  transition: transform var(--duration-fast) ease-out;
}

.footer-buttons button:active img,
.footer-buttons button.is-pressing img {
  transform: translate(1px, 1px);
}

.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 18px;
  color: rgba(0,0,0,.55);
  font-size: 12px;
  text-shadow: -1px -1px 1px #fff;
}

.crt-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}

.crt-toggle-label {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font: inherit;
  line-height: 1;
  text-shadow: inherit;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.crt-toggle button {
  width: 32px;
  height: 13px;
  padding: 0;
  border: 1px solid #6b6b88;
  background: #cfd0e8;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #777;
  transition:
    transform var(--duration-fast) ease-out,
    box-shadow var(--duration-fast) ease-out;
}

.crt-toggle button:active,
.crt-toggle button.is-pressing {
  transform: translate(var(--press-offset), var(--press-offset));
  box-shadow: inset 1px 1px #777, inset -1px -1px #fff;
}

.crt-toggle button span {
  display: block;
  width: 17px;
  height: 9px;
  margin-left: 2px;
  background: repeating-linear-gradient(90deg, #fff 0 2px, #aeb2dc 2px 4px);
  border: 1px solid #777;
  transition:
    margin-left var(--duration-fast) ease-out,
    transform var(--duration-fast) ease-out;
}

.crt-toggle button:active span,
.crt-toggle button.is-pressing span {
  transform: translateX(1px);
}

body.is-inverted .crt-toggle button span {
  margin-left: 11px;
}

body.is-inverted::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10030;
  pointer-events: none;
  background: #fff;
  mix-blend-mode: difference;
}

.scan-lines {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .7;
  background-image:
    radial-gradient(ellipse at center, transparent 0, transparent 60%, rgba(0,0,0,.25) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(0,0,0,.35) 3px);
  background-size: 100% 100%, 100% 6px;
  animation: flicker .3s linear infinite;
}

@keyframes flicker {
  50% { opacity: .55; }
}

.central-eye {
  --eye-x: 0px;
  --eye-y: 0px;
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: clamp(142px, 21vmin, 260px);
  aspect-ratio: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: .72;
  isolation: isolate;
  image-rendering: pixelated;
  transition:
    opacity 160ms steps(3, end),
    visibility 160ms steps(3, end);
}

body.boot-pending .central-eye,
body.boot-active .central-eye,
body.powered-off .central-eye,
body.screensaver-active .central-eye {
  visibility: hidden;
  opacity: 0;
}

.central-eye-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform: none;
  transform-style: flat;
  filter: none;
  will-change: transform;
}

.central-eye-stage::before {
  display: none;
}

.central-eye-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.54) brightness(.88) contrast(.92);
  image-rendering: pixelated;
}

.central-eye-gaze {
  position: absolute;
  left: 50%;
  top: 54.8%;
  z-index: 3;
  width: 42%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  filter: none;
  will-change: transform;
}

.central-eye-pupil {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.58) brightness(.9) contrast(.92);
  image-rendering: pixelated;
  transform: translate(var(--eye-x), var(--eye-y));
  transition: transform 80ms linear;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .central-eye-stage {
    transform: none;
  }

  .central-eye-pupil {
    transition: none;
  }
}

.screensaver {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99980;
  overflow: hidden;
  pointer-events: none;
  background: #000;
  isolation: isolate;
}

body.screensaver-active,
body.screensaver-active * {
  cursor: none;
}

body.screensaver-active .screensaver {
  display: block;
  pointer-events: auto;
}

.screensaver::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: .42;
  background-image:
    radial-gradient(ellipse at center, transparent 0, transparent 60%, rgba(0,0,0,.5) 100%),
    repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(255,255,255,.12) 3px);
  background-size: 100% 100%, 100% 6px;
  animation: flicker .3s linear infinite;
}

.screensaver-stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.screen-eye {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--eye-size);
  height: var(--eye-size);
  isolation: isolate;
  will-change: transform;
}

.screen-eye-ball {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #050505;
  box-shadow:
    inset 8px -10px 18px rgba(0,0,0,.36),
    inset -4px 5px 10px rgba(255,255,255,.08);
  transform-origin: center;
}

.screen-eye-ball::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.18) 0 8%, transparent 25%),
    radial-gradient(circle at 64% 70%, transparent 0 50%, rgba(0,0,0,.32) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.1),
    inset -10px -12px 22px rgba(0,0,0,.42);
}

.screen-eye-sprite {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--strip-width);
  height: 100%;
  background-image: url("../public/screensaver/ytm-cyber-eye-roll-sprite.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  animation: eye-roll var(--roll-duration) steps(32, end) infinite;
  animation-delay: var(--roll-delay);
  will-change: transform;
}

.screen-eye.is-reversed .screen-eye-sprite {
  animation-direction: reverse;
}

.screen-eye.is-scaling .screen-eye-ball {
  animation: eye-scale 3s ease-in-out infinite alternate;
  animation-delay: var(--scale-delay);
}

.screen-eye.is-bumped .screen-eye-ball::after {
  box-shadow:
    inset 0 0 0 2px rgba(255, 176, 46, .76),
    inset -10px -12px 22px rgba(0,0,0,.42);
}

@keyframes eye-roll {
  to { transform: translate3d(var(--strip-travel), 0, 0); }
}

@keyframes eye-scale {
  from { transform: scale(.7); }
  to { transform: scale(1.2); }
}

.popup-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.popup-layer-elevated {
  position: fixed;
  z-index: 10020;
  isolation: isolate;
  transform: translateZ(0);
}

.popup {
  position: absolute;
  left: 50%;
  top: 76px;
  width: min(430px, calc(100vw - 28px));
  transform: translateX(-50%);
  pointer-events: auto;
  z-index: var(--z, 10);
}

.popup .window-body {
  padding: 16px;
}

.popup-content {
  background: #fffee8;
  border: 1px solid #111;
  padding: 12px;
  box-shadow: 8px 8px #707070;
  font-size: 18px;
  line-height: 1.32;
}

.popup-content img.avatar {
  float: right;
  width: 92px;
  margin: 0 0 6px 10px;
  image-rendering: pixelated;
}

.link-list,
.terminal-list {
  margin-top: 12px;
  padding: 8px;
  color: #fff;
  background: var(--blue);
  font: 700 14px "Lucida Console", Monaco, monospace;
}

.link-list a {
  display: inline-block;
  margin: 3px;
  padding: 3px 5px;
  color: var(--blue);
  background: #d3d3d3;
  box-shadow: inset 1px 1px #fff, inset -1px -1px #777;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform var(--duration-fast) ease-out,
    box-shadow var(--duration-fast) ease-out,
    background-color var(--duration-fast) ease-out;
}

.link-list a:hover {
  color: #fff;
  background: #20b2aa;
}

.link-list a:active,
.link-list a.is-pressing {
  transform: translate(var(--press-offset), var(--press-offset));
  box-shadow: inset 1px 1px #555, inset -1px -1px #fff;
}

.terminal-list {
  color: #0f0;
  background: #000;
  text-shadow: 0 0 5px #0f0;
}

.terminal-list a {
  color: #ff0;
}

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

.retro-button {
  padding: 6px 18px;
  font-weight: 700;
}

.music-track {
  color: #ff0;
  font-size: 18px;
  font-weight: 700;
}

.bulb {
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
  border-radius: 50% 50% 45% 45%;
  background: radial-gradient(circle at 50% 35%, #fff 0 15px, #ffdc00 16px 28px, #a56a00 29px 38px, transparent 39px);
  box-shadow: 0 0 70px 35px #ffdc00;
}

.guestbook {
  background: #ffc;
}

body.aigc-tv-active {
  overflow: hidden;
}

.aigc-tv-overlay {
  position: fixed;
  inset: 0;
  z-index: 90000;
  color: #9effa6;
  background: #000;
  font-family: "Lucida Console", Monaco, monospace;
  isolation: isolate;
}

.aigc-tv-media,
.aigc-tv-media img,
.aigc-tv-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.aigc-tv-media img,
.aigc-tv-media video {
  object-fit: cover;
}

.aigc-tv-media img {
  filter:
    saturate(1.15)
    contrast(1.08)
    brightness(.82);
}

.aigc-tv-media::after {
  content: none;
  display: none;
}

.aigc-tv-media [data-aigc-video] {
  filter: none;
  z-index: 1;
}

.aigc-tv-media [data-aigc-video][hidden] {
  display: none;
}

.aigc-tv-media [data-aigc-effect] {
  opacity: 0;
  z-index: 2;
  transition: opacity 120ms ease-out;
}

.aigc-tv-overlay.is-switching .aigc-tv-media [data-aigc-effect],
.aigc-tv-overlay.is-closing .aigc-tv-media [data-aigc-effect] {
  opacity: 1;
}

.aigc-tv-scan {
  display: none;
}

.aigc-tv-channel {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  color: #050616;
  background: rgba(158, 255, 166, .92);
  border: 1px solid rgba(255, 176, 46, .86);
  box-shadow:
    0 0 0 1px rgba(24, 247, 255, .48),
    0 0 18px rgba(158, 255, 166, .42);
  font-size: 14px;
  font-weight: 700;
}

.aigc-tv-sound-button {
  position: absolute;
  z-index: 5;
  top: 58px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-height: 0;
  padding: 0;
  color: #9effa6;
  background: rgba(3, 5, 24, .74);
  border: 1px solid rgba(158, 255, 166, .78);
  box-shadow:
    inset 0 0 10px rgba(158, 255, 166, .1),
    0 0 12px rgba(24, 247, 255, .24);
}

.aigc-tv-sound-button:hover,
.aigc-tv-sound-button:focus-visible {
  color: #050616;
  background: #9effa6;
  outline: 2px solid #44d8ff;
  outline-offset: 2px;
}

.aigc-tv-speaker-icon {
  position: relative;
  display: block;
  width: 27px;
  height: 24px;
  color: currentColor;
}

.aigc-tv-speaker-body {
  position: absolute;
  left: 1px;
  top: 8px;
  width: 8px;
  height: 9px;
  background: currentColor;
  border-radius: 2px;
}

.aigc-tv-speaker-body::after {
  content: "";
  position: absolute;
  left: 6px;
  top: -4px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 11px solid currentColor;
}

.aigc-tv-speaker-wave {
  position: absolute;
  border: 3px solid currentColor;
  border-left: 0;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 0 999px 999px 0;
}

.aigc-tv-speaker-wave-one {
  left: 18px;
  top: 8px;
  width: 5px;
  height: 8px;
}

.aigc-tv-speaker-wave-two {
  left: 21px;
  top: 4px;
  width: 8px;
  height: 16px;
}

.aigc-tv-speaker-slash {
  position: absolute;
  left: 12px;
  top: -3px;
  display: none;
  width: 4px;
  height: 31px;
  background: #ff6b26;
  border-radius: 999px;
  box-shadow: 0 0 5px rgba(255, 107, 38, .55);
  transform: rotate(-47deg);
  transform-origin: center;
}

.aigc-tv-sound-button.is-muted .aigc-tv-speaker-slash {
  display: block;
}

.aigc-tv-meta {
  position: absolute;
  z-index: 4;
  left: 18px;
  bottom: 22px;
  width: min(620px, calc(100vw - 190px));
  padding: 14px 16px;
  color: #ece9f2;
  background: rgba(3, 5, 24, .72);
  border: 1px solid rgba(24, 247, 255, .72);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .34),
    inset 0 0 22px rgba(24, 247, 255, .12),
    0 0 28px rgba(0, 0, 0, .62);
  text-shadow: 0 0 7px rgba(24, 247, 255, .52);
}

.aigc-tv-kicker,
.aigc-tv-meta h2,
.aigc-tv-meta p,
.aigc-tv-prompt-panel h2,
.aigc-tv-prompt-panel p {
  margin: 0;
}

.aigc-tv-kicker {
  color: #ffb02e;
  font-size: 12px;
  font-weight: 700;
}

.aigc-tv-meta h2 {
  margin-top: 6px;
  margin-bottom: 10px;
  color: #9effa6;
  font-size: clamp(18px, 2.2vw, 30px);
  line-height: 1.12;
}

.aigc-tv-meta p {
  margin-top: 5px;
  color: #c8c0d8;
  font-size: 13px;
  line-height: 1.35;
}

.aigc-tv-meta span {
  color: #44d8ff;
}

.aigc-tv-meta strong {
  color: #ece9f2;
  font-weight: 700;
}

.aigc-tv-actions {
  position: absolute;
  z-index: 5;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: 92px;
  gap: 8px;
}

.aigc-tv-actions button,
.aigc-tv-prompt-head button {
  min-height: 36px;
  color: #9effa6;
  background: rgba(3, 5, 24, .78);
  border: 1px solid rgba(158, 255, 166, .72);
  box-shadow:
    inset 0 0 12px rgba(158, 255, 166, .08),
    0 0 12px rgba(24, 247, 255, .24);
  font: 700 12px "Lucida Console", Monaco, monospace;
}

.aigc-tv-actions button:hover,
.aigc-tv-prompt-head button:hover,
.aigc-tv-actions button:focus-visible,
.aigc-tv-prompt-head button:focus-visible {
  color: #050616;
  background: #9effa6;
  outline: 2px solid #44d8ff;
  outline-offset: 2px;
}

.aigc-tv-actions [data-aigc-prompt][aria-expanded="true"] {
  color: #050616;
  background: #ffb02e;
  border-color: #ffb02e;
}

.aigc-tv-actions [data-aigc-power] {
  color: #ff6b26;
  border-color: rgba(255, 107, 38, .82);
}

.aigc-tv-prompt-panel {
  position: absolute;
  z-index: 6;
  top: 72px;
  right: 18px;
  width: min(460px, calc(100vw - 36px));
  max-height: calc(100vh - 168px);
  padding: 14px;
  overflow: auto;
  color: #ece9f2;
  background: rgba(5, 7, 31, .92);
  border: 1px solid rgba(255, 176, 46, .84);
  box-shadow:
    0 0 0 1px rgba(24, 247, 255, .38),
    inset 0 0 22px rgba(255, 176, 46, .1),
    0 0 32px rgba(0, 0, 0, .68);
}

.aigc-tv-prompt-panel[hidden] {
  display: none;
}

.aigc-tv-prompt-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.aigc-tv-prompt-panel h2 {
  color: #ffb02e;
  font-size: 16px;
}

.aigc-tv-prompt-panel p {
  color: #ece9f2;
  font-size: 14px;
  line-height: 1.62;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.aigc-tv-overlay.is-closing .aigc-tv-channel,
.aigc-tv-overlay.is-closing .aigc-tv-sound-button,
.aigc-tv-overlay.is-closing .aigc-tv-meta,
.aigc-tv-overlay.is-closing .aigc-tv-actions,
.aigc-tv-overlay.is-closing .aigc-tv-prompt-panel {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .aigc-tv-media [data-aigc-effect] {
    display: none;
  }
}

body.reserved-game-active {
  overflow: hidden;
}

.reserved-game-overlay {
  position: fixed;
  inset: 0;
  z-index: 100060;
  display: grid;
  place-items: center;
  color: #dffcff;
  background: #000;
  font-family: "Lucida Console", Monaco, monospace;
  isolation: isolate;
}

.reserved-game-intro {
  margin: 0;
  padding: 0 20px;
  color: #fff;
  font-size: clamp(22px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-shadow:
    0 0 12px rgba(24, 247, 255, .72),
    0 0 28px rgba(255, 39, 223, .36);
  animation: reserved-game-intro-in 580ms cubic-bezier(.16, 1, .3, 1) both;
}

.reserved-game-loading {
  margin: 0;
  padding: 0 20px;
  color: #fff;
  font-size: clamp(20px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.reserved-game-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: #000;
}

.reserved-game-overlay.is-loading,
.reserved-game-overlay.is-loading * {
  cursor: var(--cursor-loading);
}

.reserved-game-shell {
  display: grid;
  grid-template-rows: 48px 1fr 30px;
  width: 100%;
  height: 100%;
  min-height: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(24, 247, 255, .16), transparent 34%),
    radial-gradient(circle at 68% 60%, rgba(255, 39, 223, .12), transparent 38%),
    #000;
}

.reserved-game-hud,
.reserved-game-footer {
  display: flex;
  align-items: center;
  color: #77faff;
  background: rgba(2, 4, 16, .86);
  border-color: rgba(24, 247, 255, .44);
  text-shadow: 0 0 8px rgba(24, 247, 255, .64);
}

.reserved-game-hud {
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(24, 247, 255, .44);
  font-size: 13px;
}

.reserved-game-hud strong {
  color: #ffb02e;
  font-size: 12px;
  letter-spacing: 0;
}

.reserved-game-hud button {
  min-width: 72px;
  min-height: 30px;
  color: #ff82f0;
  background: rgba(6, 8, 24, .9);
  border: 1px solid rgba(255, 77, 231, .88);
  box-shadow:
    inset 1px 1px rgba(255, 255, 255, .16),
    inset -1px -1px rgba(0, 0, 0, .44),
    0 0 12px rgba(255, 39, 223, .2);
  font: 700 12px "Lucida Console", Monaco, monospace;
}

.reserved-game-hud button:hover,
.reserved-game-hud button:focus-visible {
  color: #050616;
  background: #ff82f0;
  outline: 2px solid #77faff;
  outline-offset: 2px;
}

.reserved-game-stage {
  display: grid;
  place-items: center;
  min-height: 0;
  padding: clamp(18px, 4vw, 44px);
}

.reserved-game-arena {
  position: relative;
  display: grid;
  place-items: center;
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 130px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  color: #dffcff;
  background:
    radial-gradient(circle at 50% 50%, rgba(119, 250, 255, .16), rgba(7, 11, 31, .62) 36%, rgba(0, 0, 0, .92) 78%),
    linear-gradient(135deg, rgba(255, 39, 223, .16), transparent 32%, rgba(24, 247, 255, .12));
  border: 1px solid rgba(119, 250, 255, .76);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .32),
    inset 0 0 42px rgba(24, 247, 255, .16),
    0 0 44px rgba(0, 0, 0, .72);
}

.reserved-game-core {
  position: absolute;
  width: min(260px, 48vw);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 176, 46, .62);
  box-shadow:
    inset 0 0 26px rgba(255, 176, 46, .14),
    0 0 28px rgba(255, 176, 46, .2);
  transform: rotate(45deg);
}

.reserved-game-core::before,
.reserved-game-core::after {
  content: "";
  position: absolute;
  background: rgba(119, 250, 255, .72);
  box-shadow: 0 0 12px rgba(119, 250, 255, .52);
}

.reserved-game-core::before {
  left: 50%;
  top: -22%;
  width: 1px;
  height: 144%;
  transform: translateX(-50%);
}

.reserved-game-core::after {
  left: -22%;
  top: 50%;
  width: 144%;
  height: 1px;
  transform: translateY(-50%);
}

.reserved-game-title,
.reserved-game-tag {
  position: relative;
  z-index: 1;
  margin: 0;
  text-align: center;
}

.reserved-game-title {
  color: #fff;
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  text-shadow:
    0 0 12px rgba(119, 250, 255, .74),
    0 0 26px rgba(255, 39, 223, .38);
}

.reserved-game-tag {
  align-self: end;
  margin-bottom: clamp(18px, 3vw, 30px);
  color: #ffb02e;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 0 9px rgba(255, 176, 46, .72);
}

.reserved-game-footer {
  justify-content: center;
  padding: 0 12px;
  border-top: 1px solid rgba(24, 247, 255, .34);
  font-size: 11px;
}

@keyframes reserved-game-intro-in {
  from {
    opacity: 0;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .reserved-game-hud {
    display: grid;
    grid-template-columns: 1fr auto;
    min-height: 54px;
    padding: 8px 10px;
  }

  .reserved-game-hud strong {
    display: none;
  }

  .reserved-game-arena {
    aspect-ratio: 10 / 13;
    max-height: calc(100vh - 150px);
  }

  .reserved-game-footer {
    font-size: 10px;
  }
}

.reserved-game-shell.is-abyss-game {
  grid-template-rows: minmax(48px, auto) minmax(0, 1fr) 30px;
  background: #000;
}

.reserved-game-shell.is-abyss-game .reserved-game-hud {
  flex-wrap: wrap;
  row-gap: 4px;
}

.reserved-game-shell.is-abyss-game .reserved-game-hud span,
.reserved-game-shell.is-abyss-game .reserved-game-hud strong {
  white-space: nowrap;
}

.reserved-game-shell.is-abyss-game .reserved-game-stage {
  display: block;
  padding: 0;
  background: #000;
}

.reserved-game-shell.is-abyss-game .reserved-game-arena {
  display: none;
}

.abyss-game-arena {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  color: #eaffff;
  background: #000;
  isolation: isolate;
}

.abyss-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: 1;
  filter: saturate(1.36) contrast(1.12) brightness(.76);
  pointer-events: none;
  user-select: none;
}

.abyss-river {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -17%;
  z-index: 2;
  width: 100%;
  height: 48%;
  object-fit: cover;
  object-position: center 100%;
  opacity: .96;
  filter: saturate(1.24) contrast(1.16) brightness(.66);
  -webkit-mask-image: linear-gradient(to top, #000 0 72%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0 72%, transparent 100%);
  pointer-events: none;
  user-select: none;
}

.abyss-game-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .06), rgba(0, 0, 0, .18) 48%, rgba(0, 0, 0, .46)),
    radial-gradient(ellipse at 50% 44%, transparent 19%, rgba(0, 0, 0, .16) 58%, rgba(0, 0, 0, .62) 100%),
    linear-gradient(to top, rgba(0, 0, 0, .28), transparent 34%);
}

.abyss-mouth {
  position: absolute;
  left: 50%;
  top: 56%;
  z-index: 4;
  width: min(86vw, 780px);
  max-width: none;
  opacity: var(--mouth-alpha, .42);
  transform: translate3d(-50%, calc(-50% + var(--mouth-rise, 16px)), 0) scale(var(--mouth-scale, .72));
  transform-origin: 50% 56%;
  filter:
    brightness(.58)
    contrast(1.42)
    saturate(1.34)
    drop-shadow(0 0 22px rgba(96, 36, 255, .56))
    drop-shadow(0 0 46px rgba(255, 39, 223, .22));
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}

.abyss-eye-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
}

.abyss-eye {
  position: absolute;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: crosshair;
  transform: translate3d(0, 0, 0);
  animation: abyss-eye-float 2.8s ease-in-out infinite;
  animation-delay: var(--eye-delay, 0ms);
  filter:
    drop-shadow(0 0 8px rgba(126, 255, 45, .86))
    drop-shadow(0 0 18px rgba(26, 255, 165, .38));
  will-change: transform, opacity, filter;
}

.abyss-eye:disabled {
  opacity: 1;
}

.abyss-eye[data-eye-phase="closed"] {
  cursor: default;
  filter:
    drop-shadow(0 0 5px rgba(126, 255, 45, .72))
    drop-shadow(0 0 12px rgba(26, 255, 165, .28));
}

.abyss-eye.is-repositioning {
  transition: left 140ms ease, top 140ms ease;
}

.abyss-eye img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.abyss-eye:hover,
.abyss-eye:focus-visible {
  outline: none;
  filter:
    drop-shadow(0 0 12px rgba(194, 255, 91, 1))
    drop-shadow(0 0 28px rgba(51, 255, 177, .58));
  transform: translate3d(0, -3px, 0) scale(1.06);
}

.abyss-eye.is-cleared {
  pointer-events: none;
  animation: abyss-eye-clear 240ms ease-out forwards;
}

.abyss-game-arena.is-win .abyss-mouth {
  opacity: .16;
  filter: drop-shadow(0 0 18px rgba(119, 250, 255, .38));
}

.abyss-game-arena.is-lose .abyss-mouth {
  opacity: .94;
}

.abyss-game-result {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 44px);
  background: rgba(0, 0, 0, .78);
}

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

.abyss-report-card {
  display: grid;
  grid-template-columns: minmax(160px, 280px) minmax(260px, 520px);
  align-items: center;
  width: min(880px, 100%);
  min-height: min(430px, 84vh);
  border: 1px solid rgba(151, 78, 255, .9);
  background:
    linear-gradient(135deg, rgba(15, 8, 30, .94), rgba(0, 0, 0, .9)),
    #000;
  box-shadow:
    inset 0 0 34px rgba(119, 250, 255, .08),
    0 0 0 1px rgba(119, 250, 255, .18),
    0 0 44px rgba(87, 28, 255, .36);
}

.abyss-reporter-crop {
  width: 100%;
  height: 100%;
  min-height: 320px;
  overflow: hidden;
  background: #000;
}

.abyss-reporter-crop img {
  width: 226%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  transform: translateX(-2%);
  filter: drop-shadow(0 0 22px rgba(140, 72, 255, .58));
}

.abyss-report-copy {
  padding: clamp(22px, 4vw, 42px);
}

.abyss-report-kicker,
.abyss-report-stat {
  margin: 0;
  color: #77faff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 0 9px rgba(119, 250, 255, .62);
}

.abyss-report-copy h2 {
  margin: 12px 0;
  color: #fff;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.14;
  text-shadow:
    0 0 13px rgba(119, 250, 255, .64),
    0 0 28px rgba(255, 39, 223, .3);
}

.abyss-report-copy p {
  margin: 0 0 16px;
  color: #f5f1ff;
  font-size: 15px;
  line-height: 1.7;
}

.abyss-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.abyss-report-actions button {
  min-height: 34px;
  padding: 8px 16px;
  color: #050616;
  background: #18f7ff;
  border: 1px solid rgba(119, 250, 255, .9);
  box-shadow:
    inset 1px 1px rgba(255, 255, 255, .55),
    inset -1px -1px rgba(0, 0, 0, .34),
    0 0 18px rgba(24, 247, 255, .28);
  font: 700 13px "Lucida Console", Monaco, monospace;
}

.abyss-report-actions button:hover,
.abyss-report-actions button:focus-visible {
  color: #fff;
  background: #8b3dff;
  border-color: #ff82f0;
  outline: 2px solid #77faff;
  outline-offset: 2px;
}

@keyframes abyss-eye-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(var(--eye-drift, 0), -8px, 0);
  }
}

@keyframes abyss-eye-clear {
  to {
    opacity: 0;
    transform: translate3d(0, -16px, 0) scale(.16) rotate(18deg);
    filter: drop-shadow(0 0 22px rgba(190, 255, 88, .92));
  }
}

@media (max-width: 720px) {
  .reserved-game-shell.is-abyss-game {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .reserved-game-shell.is-abyss-game .reserved-game-hud {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    padding: 8px 10px;
    font-size: 11px;
  }

  .reserved-game-shell.is-abyss-game .reserved-game-hud strong {
    display: inline;
  }

  .abyss-mouth {
    top: 58%;
    width: min(134vw, 640px);
  }

  .abyss-report-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .abyss-reporter-crop {
    height: 180px;
    min-height: 180px;
  }

  .abyss-reporter-crop img {
    width: 130%;
    height: 210%;
    object-position: left top;
  }

  .abyss-report-copy {
    padding: 20px;
  }
}

.power-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  background: #000;
}

body.powered-off .power-screen {
  display: flex;
}

.power-screen button {
  color: #fff;
  background: transparent;
  border: 1px solid #fff;
  padding: 10px 18px;
  font: 20px "Lucida Console", monospace;
  transition:
    transform var(--duration-fast) ease-out,
    color var(--duration-fast) ease-out,
    background-color var(--duration-fast) ease-out,
    box-shadow var(--duration-fast) ease-out;
}

.power-screen button:active,
.power-screen button.is-pressing {
  color: #000;
  background: #fff;
  transform: translate(var(--press-offset), var(--press-offset));
  box-shadow: 0 0 24px rgba(255, 255, 255, .65);
}

@media (max-width: 700px) {
  .os-shell {
    padding: 2px;
  }

  .main-window {
    width: calc(100vw - 4px);
    max-width: calc(100vw - 4px);
    overflow: hidden;
  }

  .window-body {
    padding: 20px 18px 0;
  }

  .desktop-area {
    min-height: 448px;
    padding: 10px;
  }

  .icon-grid {
    grid-template-columns: repeat(3, 84px);
    gap: 10px 11px;
  }

  .footer-buttons {
    grid-template-columns: 1fr;
  }

  .popup {
    top: 42px;
  }

  .aigc-tv-channel {
    top: 12px;
    left: 12px;
    font-size: 12px;
  }

  .aigc-tv-sound-button {
    top: 50px;
    left: 12px;
    width: 34px;
    height: 34px;
  }

  .aigc-tv-media img,
  .aigc-tv-media video {
    object-fit: contain;
  }

  .aigc-tv-meta {
    left: 12px;
    right: 12px;
    bottom: 116px;
    width: auto;
    padding: 12px;
  }

  .aigc-tv-meta h2 {
    font-size: 18px;
  }

  .aigc-tv-meta p {
    font-size: 12px;
  }

  .aigc-tv-actions {
    right: 12px;
    bottom: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100vw - 24px);
  }

  .aigc-tv-actions button {
    min-height: 40px;
  }

  .aigc-tv-prompt-panel {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 112px;
    width: auto;
    max-height: min(48vh, 360px);
  }
}

@media (max-width: 340px) {
  .icon-grid {
    grid-template-columns: repeat(2, 84px);
  }

  .desktop-area {
    min-height: 610px;
  }
}

/* Neon main window skin */
.main-window {
  --neon-cyan: #18f7ff;
  --neon-magenta: #ff27df;
  --neon-violet: #8a42ff;
  --neon-blue: #0b63ff;
  --neon-bg: #030419;
  --neon-panel: rgba(5, 7, 31, .92);
  position: relative;
  width: min(1480px, calc(100vw - 32px));
  color: var(--neon-cyan);
  background:
    linear-gradient(135deg, transparent 0 14px, rgba(24, 247, 255, .3) 15px 17px, transparent 18px),
    linear-gradient(315deg, transparent 0 18px, rgba(255, 39, 223, .36) 19px 21px, transparent 22px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 6px),
    radial-gradient(circle at 82% 72%, rgba(255, 39, 223, .2), transparent 26%),
    var(--neon-bg);
  border: 2px solid var(--neon-cyan);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .9),
    0 0 24px rgba(24, 247, 255, .58),
    0 0 46px rgba(255, 39, 223, .32),
    inset 0 0 0 1px rgba(24, 247, 255, .55),
    inset 0 0 32px rgba(8, 15, 68, .95),
    0 22px 80px rgba(0, 0, 0, .72);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
  overflow: hidden;
}

.main-window::before,
.main-window::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.main-window::before {
  inset: 10px;
  border: 1px solid rgba(24, 247, 255, .42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 39, 223, .24),
    inset 0 0 26px rgba(24, 247, 255, .12);
}

.main-window::after {
  inset: 0;
  opacity: .56;
  background:
    linear-gradient(90deg, transparent 0 calc(100% - 56px), rgba(24, 247, 255, .24) calc(100% - 55px), transparent calc(100% - 54px)),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(24, 247, 255, .1) 5px 6px);
  mix-blend-mode: screen;
}

.main-window > .titlebar {
  position: relative;
  z-index: 3;
  min-height: 72px;
  padding: 12px 22px;
  color: #d8fbff;
  background:
    linear-gradient(90deg, rgba(3, 5, 24, .98), rgba(10, 8, 48, .96) 58%, rgba(9, 4, 38, .98)),
    repeating-linear-gradient(0deg, rgba(24, 247, 255, .12) 0 1px, transparent 1px 5px);
  border-bottom: 3px solid var(--neon-magenta);
  box-shadow:
    0 2px 0 rgba(24, 247, 255, .9),
    0 0 20px rgba(255, 39, 223, .7),
    inset 0 -1px rgba(24, 247, 255, .45);
  text-shadow:
    0 0 7px rgba(24, 247, 255, .9),
    2px 2px #081026;
}

.main-window > .titlebar::after {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: -6px;
  height: 5px;
  background:
    linear-gradient(90deg, var(--neon-magenta) 0 11%, transparent 11% 83%, var(--neon-cyan) 83% 100%);
  box-shadow: 0 0 14px rgba(255, 39, 223, .9);
}

.main-window > .titlebar .system-dot,
.main-window > .titlebar .titlebar-actions button {
  color: var(--neon-cyan);
  background:
    linear-gradient(180deg, rgba(12, 18, 65, .98), rgba(4, 9, 32, .98));
  border: 2px solid var(--neon-cyan);
  border-right-color: var(--neon-blue);
  border-bottom-color: var(--neon-blue);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .6),
    0 0 14px rgba(24, 247, 255, .58),
    inset 2px 2px rgba(24, 247, 255, .32),
    inset -2px -2px rgba(255, 39, 223, .32);
}

.main-window > .titlebar .system-dot {
  width: 48px;
  height: 48px;
  margin-right: 28px;
  color: var(--neon-magenta);
  font-size: 28px;
}

.main-window > .titlebar .titlebar-title {
  color: #dffeff;
  font: 700 32px "Lucida Console", Monaco, monospace;
  text-shadow:
    0 0 8px rgba(24, 247, 255, .94),
    2px 2px #06102e;
}

.main-window > .titlebar .titlebar-actions {
  gap: 24px;
}

.main-window > .titlebar .titlebar-actions button {
  width: 52px;
  height: 52px;
  margin-left: 0;
  font-size: 34px;
}

.main-window > .titlebar .titlebar-actions button:nth-child(2) {
  color: var(--neon-magenta);
  border-color: var(--neon-magenta);
  border-right-color: #ff8af2;
  border-bottom-color: #7d1dff;
  box-shadow:
    0 0 0 1px rgba(24, 247, 255, .62),
    0 0 16px rgba(255, 39, 223, .72),
    inset 2px 2px rgba(255, 39, 223, .3),
    inset -2px -2px rgba(24, 247, 255, .22);
}

.main-window > .titlebar .titlebar-actions button:nth-child(3) {
  color: #ff82f0;
  border-color: #ff4de7;
}

.main-window > .titlebar .system-dot:active,
.main-window > .titlebar .system-dot.is-pressing,
.main-window > .titlebar .titlebar-actions button:active,
.main-window > .titlebar .titlebar-actions button.is-pressing {
  color: #050616;
  background: #18f7ff;
  box-shadow:
    inset 3px 3px rgba(0, 0, 0, .45),
    inset -2px -2px rgba(255, 255, 255, .42),
    0 0 20px rgba(255, 39, 223, .75);
}

.main-window > .window-body {
  position: relative;
  z-index: 1;
  padding: 38px 44px 14px;
  background:
    linear-gradient(135deg, rgba(255, 39, 223, .34) 0 2px, transparent 2px 36px),
    linear-gradient(315deg, rgba(24, 247, 255, .28) 0 2px, transparent 2px 42px),
    repeating-linear-gradient(0deg, rgba(24, 247, 255, .045) 0 1px, transparent 1px 7px),
    var(--neon-bg);
}

.main-window .desktop-area {
  min-height: 590px;
  padding: 32px 28px;
  border: 2px solid rgba(24, 247, 255, .82);
  background:
    linear-gradient(180deg, rgba(5, 5, 28, .8) 0%, rgba(3, 4, 22, .95) 58%, rgba(12, 3, 38, .98) 100%),
    repeating-linear-gradient(0deg, rgba(24, 247, 255, .07) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(255, 39, 223, .12) 58px 60px),
    linear-gradient(115deg, transparent 0 58%, rgba(255, 39, 223, .1) 58% 61%, transparent 61%),
    #050617;
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .38),
    0 0 25px rgba(24, 247, 255, .28),
    inset 0 0 0 1px rgba(255, 39, 223, .38),
    inset 0 0 42px rgba(2, 4, 20, .9);
}

.main-window .desktop-area::before {
  content: "//// SYS_VER 2.77.2077 ////";
  position: absolute;
  top: -18px;
  right: 18px;
  color: var(--neon-cyan);
  font: 700 13px "Lucida Console", Monaco, monospace;
  letter-spacing: 0;
  text-shadow: 0 0 8px rgba(24, 247, 255, .9);
}

.main-window .desktop-area::after {
  content: "";
  position: absolute;
  right: 9%;
  bottom: 80px;
  width: min(280px, 28vw);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: .78;
  background:
    repeating-linear-gradient(0deg, rgba(255, 39, 223, .95) 0 10px, rgba(130, 21, 197, .82) 10px 18px),
    radial-gradient(circle, rgba(255, 39, 223, .92), rgba(119, 25, 190, .82) 58%, transparent 60%);
  box-shadow:
    0 0 40px rgba(255, 39, 223, .78),
    0 0 90px rgba(118, 37, 255, .46);
}

.main-window .icon-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(6, minmax(132px, 1fr));
  gap: 30px 24px;
}

.main-window .desktop-icon {
  position: relative;
  width: 100%;
  height: 164px;
  padding: 20px 10px 14px;
  color: var(--neon-cyan);
  background:
    linear-gradient(180deg, rgba(16, 9, 49, .78), rgba(3, 4, 22, .82)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 8px);
  border: 1px solid rgba(24, 247, 255, .86);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .74),
    0 0 18px rgba(24, 247, 255, .38),
    inset 0 0 0 1px rgba(255, 255, 255, .16),
    inset 0 0 24px rgba(255, 39, 223, .13);
  font-family: "Lucida Console", Monaco, monospace;
  text-shadow: 0 0 8px rgba(24, 247, 255, .9);
}

.main-window .desktop-icon::before,
.main-window .desktop-icon::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.main-window .desktop-icon::before {
  inset: 4px;
  border: 1px solid rgba(255, 39, 223, .45);
}

.main-window .desktop-icon::after {
  left: 50%;
  bottom: 12px;
  width: 28px;
  height: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  box-shadow: 0 0 10px rgba(255, 39, 223, .9);
}

.main-window .desktop-icon img,
.main-window .desktop-icon[data-icon-size="large"] img,
.main-window .desktop-icon[data-icon-size="xlarge"] img {
  width: 84px;
  height: 84px;
  margin: 0 auto 10px;
  object-fit: contain;
  filter:
    saturate(1.35)
    drop-shadow(0 0 8px rgba(24, 247, 255, .58))
    drop-shadow(0 0 10px rgba(255, 39, 223, .36));
}

.main-window .desktop-icon[data-icon-size="city"] img {
  width: 94px;
  height: 84px;
  margin: 0 auto 10px;
  transform: none;
  object-fit: contain;
}

.main-window .desktop-icon span {
  max-width: 100%;
  color: var(--neon-cyan);
  font-size: 24px;
  line-height: 28px;
  text-shadow:
    0 0 8px rgba(24, 247, 255, .92),
    2px 2px #07091c;
}

.main-window .desktop-icon:active,
.main-window .desktop-icon.is-pressing {
  color: #050616;
  background:
    linear-gradient(180deg, rgba(24, 247, 255, .86), rgba(255, 39, 223, .72));
  box-shadow:
    inset 3px 3px rgba(0, 0, 0, .38),
    0 0 22px rgba(24, 247, 255, .86);
}

.main-window .desktop-icon:active span,
.main-window .desktop-icon.is-pressing span {
  color: #050616;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
}

.main-window .footer-buttons {
  position: relative;
  z-index: 3;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
  border: 0;
  box-shadow: none;
}

.main-window .footer-buttons button {
  min-height: 82px;
  justify-content: flex-start;
  gap: 20px;
  padding: 0 28px;
  color: var(--neon-cyan);
  background:
    linear-gradient(90deg, rgba(8, 7, 36, .94), rgba(5, 4, 26, .88)),
    repeating-linear-gradient(0deg, rgba(24, 247, 255, .06) 0 1px, transparent 1px 7px);
  border: 1px solid rgba(24, 247, 255, .92);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .55),
    inset 0 0 18px rgba(24, 247, 255, .12);
  font: 700 24px "Lucida Console", Monaco, monospace;
  text-shadow: 0 0 8px rgba(24, 247, 255, .9);
}

.main-window .footer-buttons img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 8px rgba(255, 39, 223, .72));
}

.main-window .statusbar {
  position: relative;
  z-index: 3;
  min-height: 42px;
  color: var(--neon-magenta);
  font: 18px "Lucida Console", Monaco, monospace;
  text-shadow: 0 0 8px rgba(255, 39, 223, .9);
}

.main-window .crt-toggle {
  color: var(--neon-magenta);
}

.main-window .crt-toggle button {
  width: 78px;
  height: 28px;
  border-color: var(--neon-magenta);
  background: rgba(7, 9, 42, .96);
  box-shadow:
    0 0 10px rgba(255, 39, 223, .7),
    inset 0 0 0 1px rgba(24, 247, 255, .34);
}

.main-window .crt-toggle button span {
  width: 46px;
  height: 20px;
  margin-left: 3px;
  background: repeating-linear-gradient(90deg, var(--neon-cyan) 0 5px, #0d1d58 5px 8px);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 8px rgba(24, 247, 255, .8);
}

body.is-inverted .main-window .crt-toggle button span {
  margin-left: 26px;
}

@media (max-width: 980px) {
  .main-window {
    width: calc(100vw - 12px);
  }

  .main-window > .titlebar {
    min-height: 58px;
    padding: 8px 10px;
  }

  .main-window > .titlebar .system-dot {
    width: 38px;
    height: 38px;
    margin-right: 12px;
  }

  .main-window > .titlebar .titlebar-title {
    font-size: 22px;
  }

  .main-window > .titlebar .titlebar-actions {
    gap: 8px;
  }

  .main-window > .titlebar .titlebar-actions button {
    width: 38px;
    height: 38px;
    font-size: 25px;
  }

  .main-window > .window-body {
    padding: 28px 16px 10px;
  }

  .main-window .desktop-area {
    min-height: 620px;
    padding: 20px 12px;
  }

  .main-window .icon-grid {
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    gap: 18px 12px;
  }

  .main-window .desktop-icon {
    height: 132px;
    padding: 16px 6px 12px;
  }

  .main-window .desktop-icon img,
  .main-window .desktop-icon[data-icon-size="large"] img,
  .main-window .desktop-icon[data-icon-size="xlarge"] img,
  .main-window .desktop-icon[data-icon-size="city"] img {
    width: 64px;
    height: 62px;
    margin-bottom: 8px;
  }

  .main-window .desktop-icon span {
    font-size: 16px;
    line-height: 20px;
  }

  .main-window .footer-buttons {
    grid-template-columns: 1fr;
  }

  .main-window .footer-buttons button {
    min-height: 62px;
    font-size: 18px;
    padding: 0 16px;
  }

  .main-window .statusbar {
    min-height: 64px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .main-window .icon-grid {
    grid-template-columns: repeat(2, minmax(96px, 1fr));
  }
}

/* Neon refinement: transparent, compact, shared window skin */
.window {
  --neon-cyan: #18f7ff;
  --neon-magenta: #ff27df;
  --neon-blue: #0b63ff;
  --neon-window-glass: rgba(3, 5, 24, .42);
  --neon-body-glass: rgba(3, 5, 24, .4);
  --neon-panel: rgba(4, 6, 28, .48);
  color: var(--neon-cyan);
  background:
    linear-gradient(135deg, transparent 0 12px, rgba(24, 247, 255, .34) 13px 15px, transparent 16px),
    linear-gradient(315deg, transparent 0 14px, rgba(255, 39, 223, .34) 15px 17px, transparent 18px),
    var(--neon-window-glass);
  border: 1px solid rgba(24, 247, 255, .9);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .72),
    0 0 18px rgba(24, 247, 255, .42),
    0 0 32px rgba(255, 39, 223, .2),
    inset 0 0 0 1px rgba(24, 247, 255, .26),
    inset 0 0 22px rgba(4, 9, 38, .68),
    0 20px 70px rgba(0, 0, 0, .55);
  backdrop-filter: blur(1px) saturate(1.2);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}

.main-window,
.main-window.is-promoted {
  position: relative;
  z-index: 8;
  width: min(640px, calc(100vw - 24px));
}

.window::after {
  display: none;
}

.window::before {
  inset: 6px;
  border: 1px solid rgba(24, 247, 255, .34);
  box-shadow:
    inset 0 0 0 1px rgba(255, 39, 223, .14),
    inset 0 0 18px rgba(24, 247, 255, .08);
}

.window > .titlebar {
  position: relative;
  z-index: 3;
  min-height: 34px;
  padding: 4px 6px;
  color: #dffeff;
  background: linear-gradient(90deg, rgba(2, 5, 24, .72), rgba(12, 8, 48, .66), rgba(20, 5, 42, .72));
  border-bottom: 1px solid rgba(255, 39, 223, .82);
  box-shadow:
    0 1px 0 rgba(24, 247, 255, .72),
    0 0 12px rgba(255, 39, 223, .45),
    inset 0 -1px rgba(24, 247, 255, .24);
  text-shadow:
    0 0 6px rgba(24, 247, 255, .82),
    1px 1px #06102e;
}

.window > .titlebar::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -3px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-magenta) 0 18%, transparent 18% 76%, var(--neon-cyan) 76% 100%);
  box-shadow: 0 0 10px rgba(255, 39, 223, .8);
}

.window > .titlebar .system-dot,
.window > .titlebar .titlebar-actions button {
  color: var(--neon-cyan);
  background: rgba(5, 9, 35, .74);
  border: 1px solid rgba(24, 247, 255, .92);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .46),
    0 0 10px rgba(24, 247, 255, .38),
    inset 1px 1px rgba(24, 247, 255, .28),
    inset -1px -1px rgba(255, 39, 223, .26);
}

.window > .titlebar .system-dot {
  width: 28px;
  height: 26px;
  margin-right: 8px;
  color: var(--neon-magenta);
  font-size: 17px;
}

.window > .titlebar .titlebar-title {
  color: #dffeff;
  font: 700 16px "Lucida Console", Monaco, monospace;
  letter-spacing: 0;
  text-shadow:
    0 0 6px rgba(24, 247, 255, .86),
    1px 1px #06102e;
}

.window > .titlebar .titlebar-actions {
  gap: 4px;
}

.window > .titlebar .titlebar-actions button {
  width: 28px;
  height: 26px;
  margin-left: 0;
  font-size: 18px;
}

.window > .titlebar .titlebar-actions button:nth-child(2) {
  color: var(--neon-magenta);
  border-color: rgba(255, 39, 223, .92);
}

.window > .titlebar .titlebar-actions button:nth-child(3) {
  color: #ff82f0;
  border-color: rgba(255, 77, 231, .92);
}

.window > .titlebar .system-dot:active,
.window > .titlebar .system-dot.is-pressing,
.window > .titlebar .titlebar-actions button:active,
.window > .titlebar .titlebar-actions button.is-pressing {
  color: #050616;
  background: #18f7ff;
  box-shadow:
    inset 2px 2px rgba(0, 0, 0, .42),
    inset -1px -1px rgba(255, 255, 255, .38),
    0 0 16px rgba(255, 39, 223, .68);
}

.window > .window-body,
.popup .window-body,
.window-body.promoted-main-body {
  position: relative;
  z-index: 1;
  padding: 10px 18px 0;
  background: var(--neon-body-glass);
}

.desktop-area,
.main-window .desktop-area {
  min-height: 292px;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(24, 247, 255, .74);
  background:
    repeating-linear-gradient(0deg, rgba(24, 247, 255, .035) 0 1px, transparent 1px 7px),
    var(--neon-panel);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .28),
    0 0 16px rgba(24, 247, 255, .2),
    inset 0 0 0 1px rgba(255, 39, 223, .22),
    inset 0 0 26px rgba(2, 4, 20, .48);
}

.main-window .desktop-area::before {
  top: 8px;
  right: 12px;
  opacity: .72;
  font-size: 10px;
}

.main-window .desktop-area::after {
  display: none;
}

.icon-grid,
.main-window .icon-grid {
  grid-template-columns: repeat(6, 84px);
  gap: 10px 12px;
  align-items: start;
}

.desktop-icon,
.main-window .desktop-icon {
  position: relative;
  width: 84px;
  height: 84px;
  padding: 4px 3px 3px;
  color: var(--neon-cyan);
  background: rgba(7, 9, 34, .46);
  border: 1px solid rgba(24, 247, 255, .74);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .44),
    0 0 12px rgba(24, 247, 255, .18),
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    inset 0 0 14px rgba(255, 39, 223, .08);
  font-family: "Lucida Console", Monaco, monospace;
  text-shadow: 0 0 7px rgba(24, 247, 255, .72);
}

.desktop-icon::before,
.main-window .desktop-icon::before {
  inset: 3px;
  border: 1px solid rgba(255, 39, 223, .28);
}

.desktop-icon::after,
.main-window .desktop-icon::after {
  left: 50%;
  bottom: 3px;
  width: 18px;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  box-shadow: 0 0 8px rgba(255, 39, 223, .78);
}

.desktop-icon img,
.main-window .desktop-icon img,
.main-window .desktop-icon[data-icon-size="large"] img,
.main-window .desktop-icon[data-icon-size="xlarge"] img {
  width: 48px;
  height: 48px;
  margin: 0 auto 2px;
  object-fit: contain;
  filter:
    saturate(1.25)
    drop-shadow(0 0 6px rgba(24, 247, 255, .42))
    drop-shadow(0 0 7px rgba(255, 39, 223, .24));
}

.main-window .desktop-icon[data-icon-size="large"] img {
  width: 56px;
  height: 56px;
  margin-bottom: 0;
}

.main-window .desktop-icon[data-icon-size="xlarge"] img {
  width: 60px;
  height: 60px;
  margin-bottom: -3px;
  transform: translateY(-6px);
}

.main-window .desktop-icon[data-icon-size="city"] img {
  width: 48px;
  height: 48px;
  transform: translateY(-2px) scale(1.22);
  transform-origin: center center;
  margin-bottom: -2px;
}

.desktop-icon span,
.main-window .desktop-icon span {
  max-width: 80px;
  color: var(--neon-cyan);
  font-size: 12px;
  line-height: 14px;
  text-shadow:
    0 0 6px rgba(24, 247, 255, .78),
    1px 1px #07091c;
}

.desktop-icon[data-window="dontClick"] img,
.main-window .desktop-icon[data-window="dontClick"] img {
  width: 44px;
  height: 44px;
  margin-bottom: 1px;
}

.desktop-icon[data-window="dontClick"] span,
.main-window .desktop-icon[data-window="dontClick"] span {
  max-width: 72px;
  font-size: 10px;
  line-height: 11px;
}

.footer-buttons,
.main-window .footer-buttons {
  position: relative;
  z-index: 3;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 0;
  border-left: 1px solid rgba(24, 247, 255, .56);
  border-right: 1px solid rgba(24, 247, 255, .56);
  box-shadow:
    -1px 0 rgba(255, 39, 223, .28),
    1px 0 rgba(24, 247, 255, .28);
}

.footer-buttons button,
.main-window .footer-buttons button {
  min-height: 36px;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  color: var(--neon-cyan);
  background: rgba(7, 9, 34, .44);
  border: 1px solid rgba(24, 247, 255, .62);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .26),
    inset 0 0 12px rgba(24, 247, 255, .08);
  font: 700 16px "Lucida Console", Monaco, monospace;
  text-shadow: 0 0 7px rgba(24, 247, 255, .72);
}

.footer-buttons img,
.main-window .footer-buttons img {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 6px rgba(255, 39, 223, .56));
}

.statusbar,
.main-window .statusbar {
  position: relative;
  z-index: 3;
  min-height: 18px;
  color: var(--neon-magenta);
  font: 12px "Lucida Console", Monaco, monospace;
  text-shadow: 0 0 6px rgba(255, 39, 223, .78);
}

.crt-toggle,
.main-window .crt-toggle {
  color: var(--neon-magenta);
}

.crt-toggle button,
.main-window .crt-toggle button {
  width: 32px;
  height: 13px;
  border: 1px solid rgba(255, 39, 223, .78);
  background: rgba(7, 9, 42, .54);
  box-shadow:
    0 0 8px rgba(255, 39, 223, .48),
    inset 0 0 0 1px rgba(24, 247, 255, .18);
}

.crt-toggle button span,
.main-window .crt-toggle button span {
  width: 17px;
  height: 9px;
  margin-left: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), rgba(24, 247, 255, .72));
  border-color: rgba(24, 247, 255, .82);
  box-shadow: 0 0 5px rgba(24, 247, 255, .62);
}

body.is-inverted .crt-toggle button span,
body.is-inverted .main-window .crt-toggle button span {
  margin-left: 11px;
}

.popup-content,
.terminal-list,
.link-list {
  color: var(--neon-cyan);
  background: rgba(4, 6, 28, .48);
  border: 1px solid rgba(24, 247, 255, .58);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .3),
    inset 0 0 18px rgba(24, 247, 255, .08);
  text-shadow: 0 0 6px rgba(24, 247, 255, .58);
}

.popup-content {
  font-size: 18px;
  line-height: 1.32;
}

.popup[data-popup="about"] {
  width: min(720px, calc(100vw - 28px));
}

.popup[data-popup="about"] .window-body,
.window-body.promoted-main-body.about-window {
  max-height: min(76vh, 720px);
  padding-bottom: 16px;
  overflow: auto;
}

.about-profile {
  font-size: 16px;
  line-height: 1.72;
}

.about-profile p {
  margin: 0 0 12px;
  text-align: left;
  text-indent: 2em;
}

.about-profile p:last-child {
  margin-bottom: 0;
}

.about-profile img.avatar {
  float: right;
  width: clamp(116px, 21vw, 156px);
  aspect-ratio: 1 / 1.25;
  margin: 2px 0 10px 18px;
  border: 1px solid rgba(24, 247, 255, .66);
  object-fit: cover;
  object-position: 58% 28%;
  image-rendering: auto;
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .28),
    0 0 18px rgba(24, 247, 255, .2);
}

@media (max-width: 520px) {
  .about-profile img.avatar {
    float: none;
    display: block;
    width: min(180px, 70vw);
    margin: 0 auto 14px;
  }
}

.popup[data-popup="dontClick"] {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  width: min(460px, calc(100vw - 28px));
  transform:
    translate3d(-50%, 0, 0)
    perspective(1000px)
    rotateX(var(--tilt-x))
    rotateY(var(--tilt-y));
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  isolation: isolate;
  transition: transform 220ms cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
  box-shadow:
    0 0 0 1px #7f83ba,
    2px 2px 0 var(--frame-ink),
    0 0 16px var(--frame-glow),
    0 0 24px rgba(255, 39, 223, .22),
    inset 2px 2px var(--frame-light),
    inset -2px -2px var(--frame-shadow),
    inset 4px 4px #d7d9f3,
    inset -4px -4px #6f73a8,
    0 26px 46px rgba(0, 0, 0, .48);
}

.popup[data-popup="dontClick"].is-tilting {
  transition: none;
}

.popup[data-popup="dontClick"]::before {
  transform: translateZ(14px);
  pointer-events: none;
}

.popup[data-popup="dontClick"] > .titlebar,
.popup[data-popup="dontClick"] > .window-body {
  transform: translateZ(18px);
  transform-style: preserve-3d;
}

.popup[data-popup="dontClick"] > .titlebar.titlebar-close-only .titlebar-actions {
  position: relative;
  z-index: 5;
  cursor: var(--cursor-default);
  transform: translateZ(36px);
}

.popup[data-popup="dontClick"] > .titlebar.titlebar-close-only .titlebar-actions button {
  color: #ff82f0;
  border-color: rgba(255, 77, 231, .92);
}

.dont-click-body {
  overflow: hidden;
}

.dont-click-body::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 39, 223, .24), transparent 34%),
    linear-gradient(115deg, transparent 0 49%, rgba(24, 247, 255, .16) 50%, transparent 51%);
  opacity: .76;
}

.dont-click-body > * {
  position: relative;
  z-index: 1;
}

.dont-click-content {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(72px, auto) auto;
  min-height: 184px;
  align-content: center;
  gap: 14px;
  overflow: hidden;
}

.dont-click-content::before {
  content: "";
  position: absolute;
  inset: 9px;
  pointer-events: none;
  border: 1px solid rgba(255, 39, 223, .42);
  box-shadow:
    inset 0 0 18px rgba(255, 39, 223, .12),
    0 0 18px rgba(24, 247, 255, .12);
}

.dont-click-content p {
  margin: 0;
  overflow-wrap: anywhere;
}

.dont-click-message {
  display: flex;
  align-items: center;
  min-height: 72px;
  color: #e9feff;
  font: 700 19px/1.55 "Lucida Console", Monaco, monospace;
  text-shadow:
    0 0 9px rgba(24, 247, 255, .72),
    1px 1px rgba(11, 99, 255, .34);
}

.dont-click-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 38px;
  flex-wrap: wrap;
}

.dont-click-actions:empty {
  min-height: 0;
}

.dont-click-choice {
  min-width: 84px;
  min-height: 36px;
  padding: 7px 15px;
  color: var(--neon-cyan);
  background:
    linear-gradient(180deg, rgba(10, 18, 66, .92), rgba(4, 8, 32, .9)),
    repeating-linear-gradient(90deg, rgba(24, 247, 255, .08) 0 2px, transparent 2px 8px);
  border: 1px solid rgba(24, 247, 255, .78);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .36),
    0 0 12px rgba(24, 247, 255, .18),
    inset 1px 1px rgba(24, 247, 255, .24),
    inset -1px -1px rgba(255, 39, 223, .18);
  font: 700 14px/1.25 "Lucida Console", Monaco, monospace;
  text-shadow: 0 0 7px rgba(24, 247, 255, .62);
}

.dont-click-choice:hover {
  color: #050616;
  background: var(--neon-cyan);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .64),
    0 0 16px rgba(24, 247, 255, .38),
    inset 1px 1px rgba(255, 255, 255, .34),
    inset -1px -1px rgba(0, 0, 0, .3);
  text-shadow: none;
}

.dont-click-choice:active,
.dont-click-choice.is-pressing {
  transform: translate(var(--press-offset), var(--press-offset));
}

.dont-click-choice.is-unfun-button {
  color: #ffb02e;
  border-color: rgba(255, 176, 46, .86);
}

.dont-click-choice.is-unfun-button:active {
  transform: none;
}

.dont-click-choice.is-unfun-evading {
  position: absolute;
  z-index: 6;
  margin: 0;
  transform: rotate(var(--evade-rotate, 0deg));
  transition:
    left 210ms cubic-bezier(.18, 1.35, .28, 1),
    top 210ms cubic-bezier(.18, 1.35, .28, 1),
    transform 210ms cubic-bezier(.18, 1.35, .28, 1),
    color var(--duration-fast) ease-out,
    background-color var(--duration-fast) ease-out,
    box-shadow var(--duration-fast) ease-out;
}

.dont-click-virus-layer {
  position: fixed;
  inset: 0;
  z-index: 100050;
  overflow: hidden;
  pointer-events: auto;
}

.dont-click-virus-button {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 7px 14px;
  white-space: nowrap;
  transform: rotate(var(--virus-rotate, 0deg));
  transform-origin: center;
  animation: dont-click-virus-pop 280ms steps(4, end) both;
}

.dont-click-choice.dont-click-virus-button,
.dont-click-choice.dont-click-virus-button:hover,
.dont-click-choice.dont-click-virus-button:focus-visible {
  color: #050616;
  background: #18f7ff;
  border-color: rgba(24, 247, 255, .78);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .64),
    0 0 16px rgba(24, 247, 255, .38),
    inset 1px 1px rgba(255, 255, 255, .34),
    inset -1px -1px rgba(0, 0, 0, .3);
  text-shadow: none;
}

.dont-click-choice.dont-click-virus-button:focus-visible {
  outline: 2px solid #18f7ff;
  outline-offset: 2px;
}

@keyframes dont-click-virus-pop {
  from {
    opacity: 0;
    transform: rotate(calc(var(--virus-rotate, 0deg) - 8deg)) scale(.58);
  }

  to {
    opacity: 1;
    transform: rotate(var(--virus-rotate, 0deg)) scale(1);
  }
}

.popup[data-popup="dontClick"].is-flow-shifting .dont-click-message {
  animation: dont-click-flow-shift 180ms steps(3, end);
}

.dont-click-kicker {
  color: var(--neon-magenta);
  font: 700 12px "Lucida Console", Monaco, monospace;
  letter-spacing: 0;
  text-shadow: 0 0 10px rgba(255, 39, 223, .8);
}

@keyframes dont-click-flow-shift {
  0% {
    opacity: .5;
    transform: translateX(-6px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.link-list a {
  color: var(--neon-cyan);
  background: rgba(7, 9, 34, .68);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .34),
    inset 0 0 10px rgba(24, 247, 255, .08);
}

.terminal-list {
  text-shadow: 0 0 7px rgba(24, 247, 255, .7);
}

.guestbook {
  background: rgba(4, 6, 28, .48);
}

.popup[data-popup="guest"] {
  width: min(680px, calc(100vw - 28px));
}

.main-window[data-promoted-window="guest"] {
  width: min(760px, calc(100vw - 24px));
}

.popup[data-popup="guest"] .window-body,
.window-body.promoted-main-body.guestbook {
  max-height: min(74vh, 700px);
  padding: 24px 16px 16px;
  overflow: auto;
}

.guestbook-panel {
  display: grid;
  gap: 18px;
  padding: 14px;
  color: var(--neon-cyan);
  background:
    linear-gradient(135deg, rgba(5, 8, 34, .86), rgba(3, 5, 24, .72)),
    repeating-linear-gradient(0deg, rgba(24, 247, 255, .045) 0 1px, transparent 1px 8px);
  border: 1px solid rgba(24, 247, 255, .64);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .34),
    0 0 18px rgba(24, 247, 255, .16),
    inset 0 0 22px rgba(24, 247, 255, .08);
  font: 700 14px "Lucida Console", Monaco, monospace;
  text-shadow: 0 0 6px rgba(24, 247, 255, .56);
}

.guestbook-form {
  display: grid;
  gap: 14px;
}

.guestbook-field {
  display: grid;
  gap: 8px;
}

.guestbook-field span {
  color: #e8feff;
  text-shadow:
    0 0 7px rgba(24, 247, 255, .76),
    1px 1px #06102e;
}

.guestbook-field input,
.guestbook-field textarea {
  width: 100%;
  padding: 12px 13px;
  color: #e8feff;
  background: rgba(6, 12, 38, .72);
  border: 1px solid rgba(24, 247, 255, .56);
  border-radius: 0;
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .18),
    inset 0 0 14px rgba(24, 247, 255, .08);
  font: 700 16px "Lucida Console", Monaco, monospace;
  line-height: 1.35;
  outline: 0;
  text-shadow: 0 0 5px rgba(24, 247, 255, .34);
}

.guestbook-field input {
  min-height: 46px;
}

.guestbook-field textarea {
  min-height: 104px;
  resize: vertical;
}

.guestbook-field input::placeholder,
.guestbook-field textarea::placeholder {
  color: rgba(220, 232, 255, .48);
}

.guestbook-field input:focus,
.guestbook-field textarea:focus {
  border-color: rgba(255, 39, 223, .9);
  box-shadow:
    0 0 0 1px rgba(24, 247, 255, .62),
    0 0 14px rgba(255, 39, 223, .28),
    inset 0 0 16px rgba(24, 247, 255, .12);
}

.guestbook-form.has-error {
  animation: guestbook-error 220ms steps(2, end);
}

.guestbook-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.guestbook-submit {
  min-height: 44px;
  max-width: 100%;
  padding: 9px 16px;
  color: #041008;
  background:
    linear-gradient(180deg, #74ff44, #30c400),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .28) 0 2px, transparent 2px 7px);
  border: 1px solid rgba(128, 255, 88, .94);
  box-shadow:
    0 0 0 1px rgba(24, 247, 255, .4),
    0 0 16px rgba(82, 255, 44, .32),
    inset 1px 1px rgba(255, 255, 255, .36),
    inset -1px -1px rgba(12, 82, 0, .46);
  font: 900 14px "Lucida Console", Monaco, monospace;
  text-shadow: 0 1px rgba(255, 255, 255, .35);
  white-space: normal;
}

.guestbook-submit:hover {
  filter: brightness(1.08);
}

.guestbook-count {
  margin-left: auto;
  color: var(--neon-magenta);
  font-size: 12px;
  text-shadow: 0 0 8px rgba(255, 39, 223, .78);
}

.guestbook-feed {
  display: grid;
  gap: 12px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.guestbook-entry {
  position: relative;
  padding: 14px 16px 13px;
  background:
    linear-gradient(135deg, rgba(10, 18, 49, .84), rgba(7, 9, 34, .72)),
    repeating-linear-gradient(0deg, rgba(255, 39, 223, .035) 0 1px, transparent 1px 9px);
  border: 1px solid rgba(24, 247, 255, .42);
  box-shadow:
    inset 0 0 0 1px rgba(255, 39, 223, .12),
    0 0 13px rgba(24, 247, 255, .1);
}

.guestbook-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, var(--neon-cyan), var(--neon-magenta));
  box-shadow: 0 0 8px rgba(24, 247, 255, .56);
}

.guestbook-entry h3,
.guestbook-entry p {
  margin: 0;
}

.guestbook-entry h3 {
  color: #f4fdff;
  font-size: 18px;
  line-height: 1.3;
  text-shadow:
    0 0 8px rgba(24, 247, 255, .66),
    2px 2px rgba(11, 99, 255, .28);
}

.guestbook-entry p {
  margin-top: 8px;
  color: #dffeff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.guestbook-entry time {
  display: block;
  margin-top: 8px;
  color: rgba(24, 247, 255, .62);
  font-size: 11px;
  line-height: 1.3;
}

.popup[data-popup="guest"] .window-body::-webkit-scrollbar,
.window-body.promoted-main-body.guestbook::-webkit-scrollbar,
.guestbook-feed::-webkit-scrollbar {
  width: 10px;
}

.popup[data-popup="guest"] .window-body::-webkit-scrollbar-thumb,
.window-body.promoted-main-body.guestbook::-webkit-scrollbar-thumb,
.guestbook-feed::-webkit-scrollbar-thumb {
  background: rgba(24, 247, 255, .48);
  border: 1px solid rgba(255, 39, 223, .42);
}

@keyframes guestbook-error {
  50% {
    transform: translateX(4px);
    filter: drop-shadow(0 0 8px rgba(255, 39, 223, .72));
  }
}

.safety-dialog {
  top: min(26vh, 180px);
  width: min(420px, calc(100vw - 28px));
}

.safety-dialog > .titlebar {
  cursor: var(--cursor-grab);
}

.safety-dialog-content {
  display: grid;
  gap: 16px;
  min-height: 126px;
  align-content: center;
  font: 700 18px "Lucida Console", Monaco, monospace;
}

.safety-dialog-content p {
  margin: 0;
}

.safety-dialog-actions {
  justify-content: center;
  gap: 12px;
  margin-top: 0;
}

.safety-dialog .retro-button {
  min-width: 84px;
  min-height: 34px;
  color: var(--neon-cyan);
  background: rgba(7, 9, 34, .72);
  border: 1px solid rgba(24, 247, 255, .74);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .42),
    inset 0 0 12px rgba(24, 247, 255, .1);
}

@media (max-width: 700px) {
  .main-window,
  .main-window.is-promoted {
    width: calc(100vw - 4px);
    max-width: calc(100vw - 4px);
  }

  .window > .window-body,
  .main-window > .window-body {
    padding: 20px 18px 0;
  }

  .desktop-area,
  .main-window .desktop-area {
    min-height: 448px;
    padding: 10px;
  }

  .icon-grid,
  .main-window .icon-grid {
    grid-template-columns: repeat(3, 84px);
    gap: 10px 11px;
  }

  .footer-buttons,
  .main-window .footer-buttons {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  .popup[data-popup="dontClick"] {
    transform: translate3d(-50%, 0, 0);
    transition: none;
  }
}

@media (max-width: 340px) {
  .icon-grid,
  .main-window .icon-grid {
    grid-template-columns: repeat(2, 84px);
  }

  .desktop-area,
  .main-window .desktop-area {
    min-height: 610px;
  }
}

.hidden-agent {
  display: none;
  width: min(920px, calc(100vw - 24px));
  margin: 18px auto 0;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 2vw, 28px);
  pointer-events: auto;
  isolation: isolate;
}

.hidden-agent.is-visible {
  display: flex;
  animation: agent-rise 260ms steps(5, end);
}

.agent-character-wrap {
  position: relative;
  flex: 0 0 auto;
  width: auto;
  height: var(--agent-height, 260px);
}

.agent-character-wrap::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 8%;
  bottom: 4%;
  height: 10%;
  border-radius: 50%;
  background: rgba(126, 53, 255, .5);
  filter: blur(18px);
  z-index: -1;
}

.agent-character {
  display: block;
  width: auto;
  height: 100%;
  image-rendering: auto;
  filter:
    drop-shadow(0 0 10px rgba(126, 53, 255, .9))
    drop-shadow(0 0 24px rgba(80, 0, 180, .5));
}

.agent-eye-hotspot {
  position: absolute;
  left: 19.5%;
  top: 35.2%;
  z-index: 2;
  width: 47%;
  height: 14.8%;
  padding: 0;
  transform: rotate(-5deg);
  cursor: default;
  background: transparent;
  border: 0;
  border-radius: 52% 48% 54% 46%;
  outline: 0;
  box-shadow: none;
  appearance: none;
}

.agent-dialog {
  position: relative;
  align-self: center;
  width: min(260px, 42vw);
  min-height: 105px;
  padding: 17px 28px 22px 32px;
  transform: translateY(calc(var(--agent-height, 260px) * -0.14));
  color: #f8f2ff;
  background:
    linear-gradient(180deg, rgba(8, 5, 18, .9), rgba(2, 2, 8, .84)),
    radial-gradient(circle at 8% 20%, rgba(128, 50, 255, .18), transparent 36%);
  border: 2px solid #7a35ff;
  box-shadow:
    0 0 0 1px rgba(190, 94, 255, .34),
    0 0 28px rgba(126, 53, 255, .54),
    inset 0 0 0 1px rgba(255, 255, 255, .08),
    inset 0 0 28px rgba(126, 53, 255, .12);
  clip-path: polygon(9% 0, 100% 0, 100% 78%, 94% 78%, 91% 100%, 14% 100%, 0 80%, 0 58%, -12% 50%, 0 42%, 0 13%);
  font-family: "Lucida Console", Monaco, monospace;
}

.agent-dialog::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 42%;
  width: 43px;
  height: 38px;
  background: linear-gradient(135deg, transparent 0 44%, #7a35ff 45% 54%, transparent 55%);
  filter: drop-shadow(0 0 10px rgba(126, 53, 255, .76));
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.agent-dialog::after {
  content: "";
  position: absolute;
  inset: 4px;
  pointer-events: none;
  border: 1px solid rgba(164, 99, 255, .34);
  clip-path: polygon(8% 0, 100% 0, 100% 78%, 94% 78%, 91% 100%, 14% 100%, 0 80%, 0 14%);
}

.agent-dialog-title {
  margin-bottom: 12px;
  color: #8e45ff;
  font: 700 clamp(14px, 2vw, 24px) "Lucida Console", Monaco, monospace;
  letter-spacing: 1px;
  text-shadow:
    0 0 10px rgba(126, 53, 255, .95),
    3px 3px rgba(126, 53, 255, .28);
}

.agent-dialog p {
  min-height: 46px;
  margin: 0;
  color: #fff;
  font-size: clamp(12px, 1.3vw, 16px);
  line-height: 1.6;
  letter-spacing: 0;
  white-space: pre-wrap;
  text-shadow: 0 0 8px rgba(255, 255, 255, .28);
}

.hidden-agent.is-visible .agent-dialog p::after {
  content: "_";
  display: inline-block;
  margin-left: 3px;
  color: #8e45ff;
  animation: agent-caret 780ms steps(1, end) infinite;
}

.agent-next {
  position: absolute;
  right: 21px;
  bottom: 14px;
  width: 23px;
  height: 15px;
  padding: 0;
  color: #7a35ff;
  background: transparent;
  border: 0;
  font-size: 17px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(126, 53, 255, .95);
}

.agent-next:disabled {
  opacity: .28;
}

.agent-next:not(:disabled) {
  animation: agent-prompt 900ms steps(2, end) infinite;
}

.agent-silhouette {
  position: absolute;
  right: 24px;
  bottom: 30px;
  z-index: 0;
  width: var(--agent-width, 187px);
  height: var(--agent-height, 260px);
  pointer-events: none;
  opacity: .38;
  transform: translateZ(0);
  filter: blur(1.2px);
  mix-blend-mode: multiply;
}

.agent-silhouette img {
  display: block;
  width: auto;
  height: 100%;
  opacity: 1;
  filter: brightness(0) contrast(999) saturate(0);
}

body.is-inverted .agent-silhouette {
  filter: invert(1) blur(1.2px);
  mix-blend-mode: normal;
}

.main-window.agent-silhouette-fallen .agent-silhouette {
  right: 24px;
  bottom: 30px;
  width: var(--agent-fallen-width, 247px);
  height: var(--agent-fallen-height, 260px);
  opacity: .44;
  transform: translateZ(0);
  animation: none;
}

.main-window.agent-silhouette-fallen .agent-silhouette img {
  opacity: 0;
}

.main-window.agent-silhouette-fallen .agent-silhouette::before {
  opacity: 1;
  background: url("../public/characters/stray-ai-silhouette-fallen.png") center / contain no-repeat;
  filter: brightness(0) contrast(999) saturate(0) blur(1.2px);
  animation: none;
}

.main-window.agent-silhouette-fallen .agent-silhouette::after {
  display: none;
}

.main-window.agent-silhouette-source .agent-silhouette {
  right: 24px;
  bottom: 30px;
  height: var(--agent-height, 260px);
  opacity: .44;
  transform: translateZ(0);
  animation: agent-silhouette-source-pulse 1.2s steps(3, end) infinite;
}

.main-window.agent-silhouette-dropped .agent-silhouette,
.main-window.agent-silhouette-climbing .agent-silhouette {
  display: none;
}

.main-window.agent-silhouette-climbing > .window-body::before {
  content: "";
  position: absolute;
  left: var(--agent-prank-left, 72%);
  bottom: calc(var(--agent-prank-climb-window-cut, 100px) - var(--agent-prank-climb-height, var(--agent-prank-height, 260px)));
  z-index: 1;
  width: var(--agent-prank-climb-width, 200px);
  height: var(--agent-prank-climb-height, var(--agent-prank-height, 260px));
  transform: translateX(-50%);
  clip-path: inset(0 0 calc(100% - var(--agent-prank-climb-window-cut, 100px)) 0);
  background: url("../public/characters/stray-ai-climb-no-edge.png") center / contain no-repeat;
  filter: brightness(0) contrast(999) saturate(0) blur(.55px);
  pointer-events: none;
}

.main-window.agent-silhouette-climbing > .window-body > * {
  position: relative;
  z-index: 2;
}

.main-window.is-collapsed .agent-silhouette,
.main-window.is-promoted .agent-silhouette {
  display: none;
}

.agent-silhouette::before,
.agent-silhouette::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../public/characters/stray-ai-character.png") center / contain no-repeat;
  filter: brightness(0) contrast(999) saturate(0) blur(1px);
  opacity: 0;
  animation: silhouette-glitch 4.7s steps(1, end) infinite;
}

.agent-silhouette::after {
  animation-delay: 1.1s;
}

.agent-prank {
  display: none;
  position: relative;
  z-index: 9;
  width: min(640px, calc(100vw - 24px));
  height: var(--agent-prank-stage-height, 240px);
  margin: 0 auto;
  pointer-events: none;
  isolation: isolate;
}

.agent-prank.is-visible {
  display: block;
  opacity: 1;
}

.agent-prank.is-visible:not(.is-climbing) .agent-prank-character {
  animation: agent-prank-drop 340ms steps(5, end);
}

.agent-prank.is-visible::before {
  content: "";
  position: absolute;
  left: 1px;
  right: 1px;
  top: 0;
  z-index: 3;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(24, 247, 255, .9), rgba(255, 39, 223, .72), rgba(24, 247, 255, .9));
  box-shadow:
    0 0 8px rgba(24, 247, 255, .55),
    0 1px 0 rgba(255, 39, 223, .35);
}

.agent-prank-dialog {
  --agent-prank-dialog-width: min(272px, 44vw);
  position: absolute;
  left: clamp(12px, calc(var(--agent-prank-left, 72%) - var(--agent-prank-dialog-width) - 120px), calc(100% - var(--agent-prank-dialog-width) - 12px));
  top: 44px;
  width: var(--agent-prank-dialog-width);
  min-height: 76px;
  padding: 16px 18px 18px;
  color: #f8f2ff;
  background:
    linear-gradient(180deg, rgba(8, 5, 18, .92), rgba(2, 2, 8, .86)),
    radial-gradient(circle at 90% 20%, rgba(128, 50, 255, .18), transparent 34%);
  border: 2px solid #7a35ff;
  box-shadow:
    0 0 0 1px rgba(190, 94, 255, .34),
    0 0 20px rgba(126, 53, 255, .5),
    inset 0 0 0 1px rgba(255, 255, 255, .08);
  clip-path: polygon(0 0, 91% 0, 100% 34%, 91% 47%, 91% 100%, 8% 100%, 0 88%);
  font-family: "Lucida Console", Monaco, monospace;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(8px, 4px);
  transition:
    opacity 180ms steps(3, end),
    transform 180ms steps(3, end),
    visibility 0ms linear 180ms;
}

.agent-prank.show-help .agent-prank-dialog {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0);
  transition-delay: 0ms;
}

.agent-prank-dialog p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  text-shadow: 0 0 8px rgba(255, 255, 255, .28);
}

.agent-prank-character {
  position: absolute;
  z-index: 2;
  left: var(--agent-prank-left, 72%);
  top: var(--agent-prank-hang-top, -24px);
  width: var(--agent-prank-hang-width, 180px);
  height: var(--agent-prank-hang-height, var(--agent-prank-height, 260px));
  padding: 0;
  transform: translateX(-50%);
  transform-origin: 50% 4%;
  color: inherit;
  background: transparent;
  border: 0;
  filter:
    drop-shadow(0 0 10px rgba(126, 53, 255, .78))
    drop-shadow(0 0 22px rgba(80, 0, 180, .44));
  pointer-events: auto;
}

.agent-prank-character img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.agent-prank-character:hover {
  filter:
    drop-shadow(0 0 12px rgba(126, 53, 255, .95))
    drop-shadow(0 0 28px rgba(24, 247, 255, .34));
}

.agent-prank-character:active,
.agent-prank-character.is-pressing {
  transform: translateX(-50%) translateY(4px);
}

.agent-prank.is-climbing .agent-prank-dialog {
  opacity: 0;
}

.agent-prank.is-climbing .agent-prank-character {
  top: var(--agent-prank-climb-top, -54px);
  width: var(--agent-prank-climb-width, 200px);
  height: var(--agent-prank-climb-height, var(--agent-prank-height, 260px));
  filter: none;
  animation: agent-prank-climb 320ms steps(4, end);
}

.agent-prank.is-climbing .agent-prank-character img {
  opacity: 0;
}

.agent-prank.is-climbing .agent-prank-character::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("../public/characters/stray-ai-climb-no-edge.png") center / contain no-repeat;
}

.agent-prank.is-climbing .agent-prank-character::before {
  z-index: 2;
  clip-path: inset(var(--agent-prank-climb-window-cut, 100px) 0 0 0);
  filter:
    drop-shadow(0 0 10px rgba(126, 53, 255, .78))
    drop-shadow(0 0 22px rgba(80, 0, 180, .44));
}

.agent-prank.is-climbing .agent-prank-character::after {
  content: "";
  position: absolute;
  top: calc(var(--agent-prank-climb-window-cut, 100px) - 2px);
  left: 27%;
  z-index: 3;
  width: 48%;
  height: var(--agent-prank-climb-join-height, 46px);
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0, rgba(0, 0, 0, 1) 0 48%, rgba(0, 0, 0, .94) 70%, transparent 100%);
  clip-path: polygon(8% 0, 92% 0, 100% 38%, 88% 100%, 14% 100%, 0 40%);
  filter:
    blur(.35px)
    drop-shadow(0 0 8px rgba(126, 53, 255, .42));
}

@keyframes agent-rise {
  from {
    opacity: 0;
    transform: translateY(-10px);
    filter: blur(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes agent-caret {
  50% {
    opacity: 0;
  }
}

@keyframes agent-prompt {
  50% {
    transform: translateY(3px);
  }
}

@keyframes silhouette-glitch {
  0%,
  83%,
  90%,
  100% {
    opacity: 0;
    transform: translate(0, 0);
  }

  84% {
    opacity: .8;
    transform: translate(-8px, 1px);
  }

  86% {
    opacity: .55;
    transform: translate(6px, -1px);
  }

  88% {
    opacity: .72;
    transform: translate(-3px, 2px);
  }
}

@keyframes agent-silhouette-fall {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  34% {
    transform: translate(-14px, 42px) rotate(-44deg) scale(.92);
  }

  68% {
    transform: translate(12px, 20px) rotate(-12deg) scale(.78, .66);
  }

  100% {
    transform: translate(4px, 18px) rotate(-18deg) scale(.84, .72);
  }
}

@keyframes agent-silhouette-source-pulse {
  50% {
    opacity: .55;
    transform: translate(-2px, 1px);
  }
}

@keyframes agent-prank-drop {
  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  58% {
    opacity: 1;
    transform: translateX(-50%) translateY(5px);
  }
}

@keyframes agent-prank-climb {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  58% {
    transform: translateX(-50%) translateY(-8px);
  }
}

@media (max-width: 760px) {
  .hidden-agent {
    align-items: center;
    flex-direction: column;
    margin-top: 14px;
  }

  .agent-character-wrap {
    width: auto;
    height: min(var(--agent-height, 260px), 48vh);
  }

  .agent-dialog {
    width: min(300px, calc(100vw - 28px));
    min-height: 110px;
    padding: 18px 22px 28px;
    clip-path: polygon(7% 0, 100% 0, 100% 78%, 94% 78%, 91% 100%, 10% 100%, 0 86%, 0 12%);
  }

  .agent-dialog::before {
    display: none;
  }

  .agent-dialog-title {
    margin-bottom: 16px;
  }

  .agent-dialog p {
    font-size: 13px;
  }

  .agent-prank {
    height: var(--agent-prank-stage-height, 222px);
  }

  .agent-prank-dialog {
    --agent-prank-dialog-width: min(188px, 45vw);
    left: clamp(8px, calc(var(--agent-prank-left, 68%) - var(--agent-prank-dialog-width) - 56px), calc(100% - var(--agent-prank-dialog-width) - 8px));
    top: 46px;
    width: var(--agent-prank-dialog-width);
    padding: 13px 14px 15px;
  }

  .agent-prank-dialog p {
    font-size: 12px;
  }

  .agent-prank-character {
    left: var(--agent-prank-left, 68%);
  }
}

body.ip-design-page {
  min-height: 100vh;
  overflow-x: hidden;
}

body.ip-design-page .scan-lines {
  opacity: .48;
}

.ip-design-shell {
  position: relative;
  z-index: 20;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(22px, 4vw, 44px) clamp(42px, 8vw, 120px);
}

.ip-design-return {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 10010;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #dffeff;
  background: rgba(3, 5, 24, .72);
  border: 1px solid rgba(24, 247, 255, .9);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .72),
    0 0 16px rgba(24, 247, 255, .34),
    inset 0 0 16px rgba(24, 247, 255, .12);
  font: 700 24px/1 "Lucida Console", Monaco, monospace;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(24, 247, 255, .72);
}

.ip-design-return:active,
.ip-design-return.is-pressing {
  transform: translate(var(--press-offset), var(--press-offset));
}

.ip-design-viewer {
  width: min(1040px, calc(100vw - 150px));
  min-height: min(760px, calc(100vh - 88px));
  display: grid;
  place-items: center;
  padding: clamp(16px, 2.2vw, 30px);
  background:
    linear-gradient(135deg, transparent 0 18px, rgba(24, 247, 255, .28) 19px 21px, transparent 22px),
    linear-gradient(315deg, transparent 0 18px, rgba(255, 39, 223, .26) 19px 21px, transparent 22px),
    rgba(3, 5, 24, .68);
  border: 1px solid rgba(24, 247, 255, .82);
  box-shadow:
    0 0 0 1px rgba(255, 39, 223, .62),
    0 0 36px rgba(24, 247, 255, .24),
    0 0 80px rgba(0, 0, 0, .56),
    inset 0 0 0 1px rgba(24, 247, 255, .2),
    inset 0 0 34px rgba(3, 5, 24, .7);
  backdrop-filter: blur(1px) saturate(1.1);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 16px 100%, 0 calc(100% - 16px), 0 14px);
}

.ip-design-layout {
  width: 100%;
  min-height: clamp(480px, calc(100vh - 160px), 700px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  align-content: center;
  justify-items: center;
}

.ip-design-figure {
  --ip-design-image-width: min(100%, 980px);
  --ip-design-image-padding: 0px;
  --ip-design-aspect: auto;
  grid-column: 1 / -1;
  width: var(--ip-design-image-width);
  max-width: 100%;
  margin: 0;
  padding: var(--ip-design-image-padding);
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .16);
  border: 1px solid rgba(24, 247, 255, .3);
}

.ip-design-figure img {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
}

.ip-design-figure[data-fit="contain"] img {
  height: auto;
  object-fit: contain;
}

.ip-design-figure[data-fit="cover"] {
  aspect-ratio: var(--ip-design-aspect);
}

.ip-design-figure[data-fit="cover"] img {
  height: 100%;
  object-fit: cover;
}

.ip-design-figure[data-state="missing"] {
  min-height: 260px;
  border-style: dashed;
}

.ip-design-placeholder {
  grid-column: 1 / -1;
  display: grid;
  place-content: center;
  gap: 14px;
  width: min(760px, 100%);
  min-height: min(70vh, 620px);
  color: #dffeff;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(24, 247, 255, .16) 1px, transparent 1px),
    linear-gradient(0deg, rgba(24, 247, 255, .1) 1px, transparent 1px),
    rgba(4, 7, 28, .46);
  background-size: 28px 28px;
  border: 1px dashed rgba(24, 247, 255, .72);
  box-shadow:
    inset 0 0 26px rgba(24, 247, 255, .1),
    0 0 24px rgba(255, 39, 223, .16);
  font-family: "Lucida Console", Monaco, monospace;
}

.ip-design-placeholder span {
  color: #ffb02e;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
}

.ip-design-placeholder strong {
  color: #dffeff;
  font-size: clamp(26px, 5vw, 68px);
  line-height: .95;
  text-shadow:
    0 0 12px rgba(24, 247, 255, .7),
    0 0 26px rgba(255, 39, 223, .38);
}

@media (max-width: 760px) {
  .ip-design-shell {
    padding: 70px 12px 18px;
  }

  .ip-design-return {
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
  }

  .ip-design-viewer {
    width: calc(100vw - 24px);
    min-height: calc(100vh - 88px);
    padding: 12px;
  }

  .ip-design-layout {
    min-height: calc(100vh - 116px);
    gap: 12px;
  }

  .ip-design-placeholder {
    min-height: min(66vh, 520px);
  }
}

body.my-world-page {
  min-height: 100vh;
  overflow-x: hidden;
}

body.my-world-page .scan-lines {
  opacity: .44;
}

.my-world-shell {
  position: relative;
  z-index: 20;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: clamp(22px, 4vw, 44px) clamp(42px, 8vw, 120px);
}

.my-world-return {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 10010;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #dffeff;
  background: rgba(3, 5, 24, .72);
  border: 1px solid rgba(24, 247, 255, .9);
  box-shadow:
    0 0 0 1px rgba(255, 176, 46, .58),
    0 0 16px rgba(24, 247, 255, .34),
    inset 0 0 16px rgba(24, 247, 255, .12);
  font: 700 24px/1 "Lucida Console", Monaco, monospace;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(24, 247, 255, .72);
}

.my-world-return:active,
.my-world-return.is-pressing {
  transform: translate(var(--press-offset), var(--press-offset));
}

.my-world-viewer {
  width: min(1120px, calc(100vw - 260px));
  min-height: min(760px, calc(100vh - 88px));
  display: grid;
  place-items: center;
  padding: clamp(16px, 2.2vw, 30px);
  background:
    linear-gradient(135deg, transparent 0 18px, rgba(24, 247, 255, .28) 19px 21px, transparent 22px),
    linear-gradient(315deg, transparent 0 18px, rgba(255, 176, 46, .22) 19px 21px, transparent 22px),
    rgba(3, 5, 24, .7);
  border: 1px solid rgba(24, 247, 255, .82);
  box-shadow:
    0 0 0 1px rgba(157, 124, 255, .62),
    0 0 38px rgba(24, 247, 255, .22),
    0 0 82px rgba(0, 0, 0, .6),
    inset 0 0 0 1px rgba(255, 176, 46, .18),
    inset 0 0 34px rgba(3, 5, 24, .72);
  backdrop-filter: blur(1px) saturate(1.08);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 16px 100%, 0 calc(100% - 16px), 0 14px);
}

.my-world-layout {
  width: 100%;
  display: grid;
  gap: clamp(24px, 3vw, 42px);
}

.my-world-section {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}

.my-world-section-head {
  display: grid;
  gap: 4px;
  padding: 0 2px 12px;
  border-bottom: 1px solid rgba(24, 247, 255, .38);
}

.my-world-section-head p,
.my-world-section-head h2 {
  margin: 0;
  font-family: "Lucida Console", Monaco, monospace;
}

.my-world-section-head p {
  color: #ffb02e;
  font-size: 12px;
  font-weight: 700;
}

.my-world-section-head h2 {
  color: #dffeff;
  font-size: clamp(22px, 3.6vw, 42px);
  line-height: 1.06;
  text-shadow:
    0 0 14px rgba(24, 247, 255, .55),
    0 0 28px rgba(157, 124, 255, .34);
}

.my-world-section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
  align-items: start;
}

.my-world-figure {
  --my-world-image-width: 100%;
  --my-world-aspect: auto;
  grid-column: 1 / -1;
  width: var(--my-world-image-width);
  max-width: 100%;
  margin: 0;
  perspective: 1400px;
}

.my-world-card {
  display: block;
  width: 100%;
  min-height: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.my-world-card:focus-visible {
  outline: 2px solid #ffb02e;
  outline-offset: 4px;
}

.my-world-card-inner {
  position: relative;
  display: block;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(.2, .8, .2, 1);
}

.my-world-card.is-flipped .my-world-card-inner {
  transform: rotateY(180deg);
}

.my-world-card-face {
  display: grid;
  overflow: hidden;
  backface-visibility: hidden;
  background: rgba(0, 0, 0, .18);
  border: 1px solid rgba(24, 247, 255, .34);
  box-shadow:
    inset 0 0 22px rgba(24, 247, 255, .06),
    0 0 20px rgba(157, 124, 255, .12);
}

.my-world-card-front {
  position: relative;
}

.my-world-card-back {
  position: absolute;
  inset: 0;
  align-content: start;
  gap: 14px;
  min-height: 100%;
  padding: clamp(16px, 2vw, 26px);
  overflow: auto;
  color: #dffeff;
  background:
    linear-gradient(135deg, rgba(157, 124, 255, .18), rgba(3, 5, 24, .92) 42%, rgba(24, 247, 255, .12)),
    rgba(3, 5, 24, .94);
  border-color: rgba(255, 176, 46, .58);
  transform: rotateY(180deg);
}

.my-world-media,
.my-world-media img {
  display: block;
  width: 100%;
}

.my-world-media img {
  height: auto;
  image-rendering: auto;
}

.my-world-caption {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 12px;
  padding: clamp(12px, 1.8vw, 18px);
  color: #dffeff;
  background:
    linear-gradient(90deg, rgba(3, 5, 24, .9), rgba(8, 7, 32, .76)),
    rgba(3, 5, 24, .88);
  border-top: 1px solid rgba(24, 247, 255, .28);
  font-family: "Lucida Console", Monaco, monospace;
}

.my-world-number {
  grid-row: span 2;
  min-width: 42px;
  color: #ffb02e;
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 700;
  line-height: .92;
  text-shadow: 0 0 12px rgba(255, 176, 46, .55);
}

.my-world-caption strong {
  align-self: end;
  color: #9d7cff;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 1.25;
}

.my-world-caption p {
  margin: 0;
  color: rgba(223, 252, 255, .82);
  font-size: 13px;
  line-height: 1.62;
}

.my-world-prompt-label {
  color: #ffb02e;
  font: 700 clamp(18px, 2vw, 28px)/1.1 "Lucida Console", Monaco, monospace;
  text-shadow: 0 0 12px rgba(255, 176, 46, .46);
}

.my-world-prompt-text {
  color: rgba(223, 252, 255, .88);
  font: 13px/1.76 "Lucida Console", Monaco, monospace;
  white-space: pre-wrap;
}

.my-world-figure[data-layout="map"] .my-world-card-face {
  border-color: rgba(255, 176, 46, .48);
  box-shadow:
    0 0 0 1px rgba(24, 247, 255, .16),
    0 0 26px rgba(255, 176, 46, .14),
    inset 0 0 24px rgba(24, 247, 255, .08);
}

.my-world-figure[data-layout="region"],
.my-world-figure[data-layout="character"] {
  grid-column: span 6;
}

.my-world-figure[data-layout="character"] .my-world-card-face {
  background: rgba(8, 3, 22, .34);
  border-color: rgba(157, 124, 255, .48);
}

.my-world-figure[data-state="missing"] {
  min-height: 260px;
  border-style: dashed;
}

@media (max-width: 900px) {
  .my-world-shell {
    padding: 70px 12px 18px;
  }

  .my-world-return {
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
  }

  .my-world-viewer {
    width: calc(100vw - 24px);
    padding: 12px;
  }

  .my-world-section-grid {
    gap: 12px;
  }

  .my-world-figure[data-layout="region"],
  .my-world-figure[data-layout="character"] {
    grid-column: 1 / -1;
  }

  .my-world-caption {
    grid-template-columns: 1fr;
  }

  .my-world-number {
    grid-row: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .my-world-card-inner {
    transition: none;
  }
}
