#overlay.boot-screen, #overlay.logon-screen, #overlay.power-screen {
  overflow: hidden; color: white; background: #000; user-select: none;
  font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}
.boot-content { position: absolute; inset: 0; cursor: none; }
.boot-logo {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%);
  width: clamp(58px, 15.6cqh, 156px); aspect-ratio: 1.08;
  display: grid; grid-template-columns: 43fr 54fr; grid-template-rows: 1fr 1fr; gap: 2.4%;
  clip-path: polygon(0 14.4%, 100% 0, 100% 100%, 0 85.6%);
}
.boot-logo i { background: #008bd2; }
.win-dots {
  --orbit: 34px; --dot: 3.4px;
  position: relative; display: inline-block; width: var(--orbit); height: var(--orbit);
}
.boot-content > .win-dots { position: absolute; top: 78%; left: 50%; transform: translate(-50%, -50%); }
.win-dots i {
  position: absolute; inset: 0; opacity: 0;
  animation: win-orbit 2.3s linear infinite;
}
.win-dots i::before {
  content: ""; position: absolute; top: 0; left: 50%; width: var(--dot); height: var(--dot);
  transform: translateX(-50%); border-radius: 50%; background: currentColor;
}
.win-dots i:nth-child(2) { animation-delay: .13s; }
.win-dots i:nth-child(3) { animation-delay: .26s; }
.win-dots i:nth-child(4) { animation-delay: .39s; }
.win-dots i:nth-child(5) { animation-delay: .52s; }
@keyframes win-orbit {
  0%   { transform: rotate(-155deg); opacity: 0; }
  4%   { opacity: 1; }
  22%  { transform: rotate(5deg); }
  36%  { transform: rotate(64deg); }
  60%  { transform: rotate(290deg); }
  75%  { transform: rotate(350deg); opacity: 1; }
  92%, 100% { transform: rotate(515deg); opacity: 0; }
}
.logon-shell { position: absolute; inset: 0; isolation: isolate; overflow: hidden; }
.logon-account button, .logon-utilities button, .power-on { touch-action: manipulation; }
.logon-shell::before, .lock-cover {
  background: #305476 url("assets/win10-lock.jpg") center / cover no-repeat;
}
.logon-shell::before {
  content: ""; position: absolute; z-index: -2; inset: -27px;
  filter: blur(17px) brightness(.65); pointer-events: none;
}
.lock-cover {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2;
  display: block; color: white; text-align: left; touch-action: none;
  transition: transform .32s cubic-bezier(.34,.05,.28,1), visibility 0s;
}
.lock-cover::before {
  content: ""; position: absolute; inset: 48% 0 0; pointer-events: none;
  background: linear-gradient(transparent, rgba(0,0,0,.22));
}
.logon-shell:not([data-phase="lock"]) .lock-cover {
  transform: translateY(-101%); visibility: hidden; pointer-events: none;
  transition: transform .32s cubic-bezier(.5,.02,.65,1), visibility 0s .32s;
}
.lock-cover:focus-visible { outline: none; }
.lock-calendar {
  position: absolute; left: max(3.45cqw, env(safe-area-inset-left)); bottom: 9%;
  display: grid; color: white; text-shadow: 0 1px 3px #0004;
}
.lock-time {
  font: 200 clamp(54px, 12cqh, 124px)/1.08 "Segoe UI Light", "Segoe UI", "Helvetica Neue", sans-serif;
  letter-spacing: -.048em; font-variant-numeric: tabular-nums;
}
.lock-date { margin: .12em 0 0 .1em; font-size: clamp(21px, 3.65cqh, 41px); font-weight: 300; line-height: 1.3; }
.logon-glyph { display: inline-block; width: 24px; height: 24px; background: url("assets/logon-glyphs.png") 0 center / 400% 100%; pointer-events: none; }
.logon-glyph.network { background-position-x: 33.3333%; }
.logon-glyph.access { background-position-x: 66.6667%; }
.logon-glyph.power { background-position-x: 100%; }
.lock-network { position: absolute; right: max(2.7cqw, env(safe-area-inset-right)); bottom: 4%; width: 20px; height: 20px; }
.logon-account {
  position: absolute; top: 48%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; white-space: nowrap;
  text-shadow: 0 1px 3px #0004;
}
.logon-avatar {
  width: clamp(79px, 22cqh, 192px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; background: rgba(231,235,238,.31);
}
.logon-avatar .person { width: 60%; height: 60%; }
.logon-account h1 {
  margin: clamp(9px, 1.9cqh, 20px) 0 clamp(11px, 2.5cqh, 25px);
  font-size: clamp(25px, 4.8cqh, 46px); font-weight: 300; line-height: 1.24;
}
.signin-enter {
  min-width: 90px; padding: .27em 1.25em .35em; border: 2px solid #ffffffb3;
  color: white; background: #ffffff30; font-size: clamp(15px, 2cqh, 19px); line-height: 1.3;
}
.signin-enter:hover { background: #ffffff4d; border-color: white; }
.signin-enter:active { background: #ffffff24; }
.signin-enter:focus-visible, .logon-tools button:focus-visible, .logon-panel button:focus-visible, .power-on:focus-visible {
  outline: 1px solid white; outline-offset: 2px;
}
.logon-welcome { display: flex; align-items: center; gap: 11px; min-height: 34px; font-size: clamp(17px,2.4cqh,24px); }
.logon-welcome .win-dots { --orbit: 21px; --dot: 2.6px; }
.logon-utilities {
  position: absolute; right: max(1.65cqw, env(safe-area-inset-right)); bottom: max(2.3cqh, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.logon-tools { display: flex; gap: 3px; }
.logon-tools button { display: grid; place-items: center; width: 46px; height: 44px; }
.logon-tools button:hover, .logon-tools button[aria-expanded="true"], .logon-panel button:hover { background: #ffffff29; }
.logon-panel { min-width: 156px; padding: 5px; color: white; background: #252525f5; border: 1px solid #ffffff42; box-shadow: 0 3px 12px #0005; }
.logon-panel p { margin: 6px 11px; }
.logon-panel small { color: #ddd; }
.logon-panel button { display: block; width: 100%; padding: 8px 11px; text-align: left; }
.power-on { position: absolute; inset: 0; width: 100%; display: grid; place-items: center; }
.power-on i { opacity: .6; }
@media (prefers-reduced-motion: reduce) {
  .logon-shell .lock-cover, .logon-shell:not([data-phase="lock"]) .lock-cover { transition: none; }
  .win-dots i { animation: none; opacity: 1; transform: rotate(-80deg); }
  .win-dots i:nth-child(2) { transform: rotate(-40deg); }
  .win-dots i:nth-child(3) { transform: rotate(0); }
  .win-dots i:nth-child(4) { transform: rotate(40deg); }
  .win-dots i:nth-child(5) { transform: rotate(80deg); }
}

#echo-feed {
  position: absolute; inset: 0 0 var(--bar); z-index: 10915;
  overflow: hidden; pointer-events: none; user-select: none;
}
.echo-line {
  position: absolute; top: var(--echo-lane); left: 100%; white-space: nowrap;
  color: #ff6675; font: 600 clamp(13px, 1.8cqw, 23px)/1.45 "Microsoft YaHei UI", sans-serif;
  letter-spacing: .08em; text-shadow: 0 1px 2px #170006, 0 0 7px #570013;
  opacity: .9; animation: echo-cross var(--echo-time) linear both;
}
#desktop[data-haunt="3"] .echo-line { color: #ff7886; }
@keyframes echo-cross {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100cqw - 110%)); }
}

.glass-print {
  position: absolute; pointer-events: auto; left: 34%; top: 35%;
  width: clamp(94px, 14cqw, 174px); aspect-ratio: 1.16;
  rotate: -24deg; isolation: isolate;
}
.glass-print::before {
  content: ""; position: absolute; inset: 40% 20% 8% 29%;
  background: radial-gradient(ellipse at 55% 35%, #a73143b0 0%, #752e42a0 29%, #64273866 52%, transparent 72%);
  border-radius: 48% 60% 36% 50%;
  box-shadow: 5px 7px 13px #35213c44;
}
.glass-print i {
  position: absolute; top: 16%; height: 45%; width: 11%; left: 28%;
  border-radius: 47% 48% 56% 59%;
  background: repeating-linear-gradient(0deg,#df8f96ab 0 2px,#501d3285 2px 4px);
  mask-image: radial-gradient(ellipse closest-side, #000 61%, transparent);
  rotate: -9deg; opacity: .74;
  animation: breath-on-glass 4.4s ease-in-out infinite alternate;
}
.glass-print i:nth-child(2) { left: 42%; top: 4%; height: 51%; rotate: -2deg; }
.glass-print i:nth-child(3) { left: 56%; top: 7%; height: 50%; rotate: 4deg; }
.glass-print i:nth-child(4) { left: 70%; top: 22%; height: 39%; rotate: 9deg; }
.glass-print i:nth-child(5) { left: 16%; top: 45%; height: 30%; rotate: -35deg; }
@keyframes breath-on-glass { from { opacity: .51; } to { opacity: .91; } }

.tape-panel {
  display: flex; align-items: center; gap: 8px; grid-column: 1 / -1;
  box-shadow: inset 0 0 0 1px #52222d; background: #24191f; color: #f1dadc;
  padding: 5px 8px;
}
.fault-tape { flex: 1; min-width: 0; padding: 4px 3px; text-align: left; font-size: 12px; }
.fault-tape i {
  display: block; margin-top: 6px; height: 17px;
  background: repeating-linear-gradient(90deg,#c76977 0 2px,#7b3545 2px 3px,transparent 3px 5px);
  clip-path: polygon(0 46%,6% 24%,10% 38%,15% 6%,21% 28%,29% 31%,35% 20%,43% 1%,51% 29%,60% 41%,65% 3%,72% 27%,78% 43%,87% 14%,94% 31%,100% 47%,100% 62%,96% 83%,88% 68%,79% 97%,72% 83%,64% 60%,56% 81%,43% 98%,35% 64%,28% 82%,16% 94%,12% 67%,6% 75%,0 54%);
  animation: tape-drag 1.6s ease-in-out infinite alternate;
}
@keyframes tape-drag { from { background-position: 0; } to { background-position: -16px; } }

.fault-annotation, .fault-comment {
  display: block; width: 100%; padding: 9px 12px; text-align: left;
  background: #f5e7e4; color: #5f1427; border-left: 2px solid #97475a;
}
.fault-annotation small, .fault-comment small { display: block; color: #6c424e; font-size: 11px; margin-bottom: 3px; }
.fault-annotation i { display: inline-block; width: 1px; height: 1em; margin-left: 2px; background: currentColor; vertical-align: -.12em; animation: ink-cursor 1.2s steps(1,end) infinite; }
@keyframes ink-cursor { 55% { opacity: 0; } }
.fault-comment { background: #f1eced; }
.session-proof {
  grid-column: 1 / -1; display: flex; gap: 11px; align-items: center; text-align: left;
  padding: 5px; background: #2a2023; color: #ffedf0;
}
.session-proof i {
  position: relative; overflow: hidden; width: 68px; height: 43px; flex: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px,#1b0c1340 3px 4px), url("assets/onlooker.webp") -4px 36% / 63px auto #151419 no-repeat;
}
.session-proof i::after {
  content: ""; position: absolute; inset: 0 0 0 36%;
  background: url("assets/onlooker.webp") center 21% / cover;
  filter: grayscale(.9) brightness(1.7);
  mask-image: radial-gradient(ellipse at 68% 52%, #000 28%, transparent 72%);
  opacity: .56;
}
.session-proof small { font-size: 11px; color: #e9bac1; }

@media (prefers-reduced-motion: reduce) {
  .echo-line { animation: none; }
  .echo-line { right: 5%; left: auto; }
}
