/* ============ SASHA OS — pastel Y2K desktop ============
   Palette pulled from the iridescent portrait: periwinkle sky, bubblegum pink,
   lacquer white, navy ink, burgundy hair, and a holographic pink→blue sheen. */
:root {
  --sky: #b4a7dd;
  --sky-2: #cdc3ea;
  --navy: #2e2452;
  --ink: #2e2452;
  --pink: #d7a3bd;
  --pink-2: #ead2de;
  --pink-3: #b9648f;
  --peri: #c1b6e6;
  --peri-2: #e3ddf4;
  --paper: #f6f3fa;
  --cream: #ede8f6;
  --muted: #776d9c;
  --burgundy: #6d1d2b;
  --holo: linear-gradient(90deg, #e6bcd6, #cdbff0 30%, #b9c6ef 55%, #c6dcef 75%, #e2bdd6);
  --silver: linear-gradient(180deg, #fbfbfd 0%, #d4d5de 38%, #a9abb8 52%, #e6e7ee 70%, #c3c5d0 100%);
  --line: 2px solid var(--navy);
  --drop: 4px 4px 0 var(--navy);
  --r: 7px;
  --ui: "Space Mono", ui-monospace, monospace;
  --pix: "Silkscreen", "Space Mono", monospace;
  --type: Archivo, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; background: var(--sky); color: var(--ink); }
body { font-family: var(--ui); font-size: 13px; overflow: hidden; }
a { color: var(--ink); text-decoration-color: var(--pink-3); text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
::selection { background: var(--pink); color: var(--navy); }

#desktop { position: fixed; inset: 0; overflow: hidden; }

/* ---------- wallpaper: light purple sky, dotted grid, sparkles ---------- */
#wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50vw 46vh at 50% 42%, rgba(240, 234, 252, 0.4), transparent 70%),
    radial-gradient(40vw 40vh at 8% 92%, rgba(230, 170, 205, 0.35), transparent 70%),
    radial-gradient(36vw 36vh at 96% 6%, rgba(225, 218, 250, 0.45), transparent 70%),
    linear-gradient(180deg, #c0b4e6, var(--sky) 60%, #a294d3);
}
.wp-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1.2px, transparent 1.6px);
  background-size: 22px 22px;
}
/* pixel Amsterdam canal skyline along the bottom, drawn in the desktop's own palette */
.wp-city {
  --u: calc(64vh / 128);            /* one art pixel */
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--u) * 128);
  overflow: hidden;
  opacity: 0.5;                     /* kept far back: the windows in front matter most */
  background: url("../assets/amsterdam-pixel.png") repeat-x left bottom / auto 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
@media (max-width: 700px) { .wp-city { --u: calc(40vh / 128); } }
/* window lights: three sets that slowly switch on and off */
.wp-lights {
  position: absolute; inset: 0;
  background: repeat-x left bottom / auto 100%;
  image-rendering: pixelated;
  opacity: 0;
  animation: win-glow 14s ease-in-out infinite;
}
.wp-lights.l1 { background-image: url("../assets/amsterdam-lights1.png"); }
.wp-lights.l2 { background-image: url("../assets/amsterdam-lights2.png"); animation-delay: -4.7s; animation-duration: 17s; }
.wp-lights.l3 { background-image: url("../assets/amsterdam-lights3.png"); animation-delay: -9.3s; animation-duration: 11s; }
@keyframes win-glow { 0%, 100% { opacity: 0.15; } 35%, 70% { opacity: 0.85; } }
/* a little tour boat drifting down the canal */
.wp-boat {
  position: absolute;
  left: 0;
  bottom: calc(var(--u) * 19);
  width: calc(var(--u) * 46);
  height: calc(var(--u) * 14);
  background: url("../assets/amsterdam-boat.png") no-repeat 0 0 / 100% 100%;
  image-rendering: pixelated;
  animation: boat-drift 70s linear infinite, boat-bob 2.4s steps(2) infinite;
}
@keyframes boat-drift { from { translate: calc(var(--u) * -50) 0; } to { translate: 100vw 0; } }
@keyframes boat-bob { 0%, 100% { margin-bottom: 0; } 50% { margin-bottom: calc(var(--u) * -1); } }
@media (prefers-reduced-motion: reduce) {
  .wp-lights { animation: none; opacity: 0.6; }
  .wp-boat { animation: none; translate: 62vw 0; }
}
/* pixel crescent moon, softly glowing in the corner */
.wp-moon {
  position: absolute;
  left: 17vw; top: 5vh;
  width: 11vh; height: 11vh;
  background: url("../assets/moon-pixel.png") no-repeat center / 100% 100%;
  image-rendering: pixelated;
  opacity: 0.8;
  animation: moon-float 9s ease-in-out infinite;
}
@keyframes moon-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@media (max-width: 700px) { .wp-moon { width: 7vh; height: 7vh; left: auto; right: 6vw; top: 13vh; } }
/* shooting stars, spawned now and then from js */
.wp-shoot {
  position: absolute;
  width: 120px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(240,214,236,.55) 60%, #fff 100%);
  filter: drop-shadow(0 0 4px rgba(255,255,255,.9));
  transform-origin: right center;
  rotate: 152deg;
  opacity: 0;
  animation: shoot 1.4s cubic-bezier(.3,.1,.6,1) forwards;
  pointer-events: none;
}
.wp-shoot::after {
  content: ""; position: absolute; right: -3px; top: -2px;
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 8px 2px rgba(255,255,255,.9);
}
@keyframes shoot {
  0% { opacity: 0; translate: 0 0; scale: .3 1; }
  15% { opacity: 1; scale: 1 1; }
  80% { opacity: .9; }
  100% { opacity: 0; translate: -38vw 20vw; scale: .6 1; }
}
@media (prefers-reduced-motion: reduce) { .wp-moon { animation: none; } .wp-shoot { display: none; } }
.wp-obj { position: absolute; height: auto; opacity: 0.95; filter: drop-shadow(0 10px 24px rgba(46, 36, 82, 0.18)); }
.wp-word {
  position: absolute;
  right: 3vw;
  bottom: 52px;
  font-family: var(--type);
  font-weight: 800;
  font-size: 13vw;
  letter-spacing: -0.08em;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.28);
}
.sparkle {
  position: absolute;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1;
  pointer-events: none;
  text-shadow: none;
  animation: twinkle 3.2s ease-in-out infinite;
}
.sparkle.p { color: var(--pink); }
.sparkle.n { color: var(--navy); text-shadow: none; }
@keyframes twinkle { 50% { transform: scale(0.6) rotate(20deg); opacity: 0.55; } }

#pixels { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 900; pointer-events: none; }

.corner-label {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  font-family: var(--pix);
  font-size: 10px;
  color: var(--navy);
  background: var(--paper);
  border: var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  box-shadow: 2px 2px 0 var(--navy);
}

/* ---------- desktop icons ---------- */
#icons {
  position: absolute;
  left: 14px;
  top: 14px;
  display: grid;
  grid-auto-flow: row;
  gap: 8px;
  z-index: 99;   /* above the orbiting cards, below opened windows (101+) */
}
.icon {
  all: unset;
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  text-align: center;
  font-family: var(--ui);
  font-size: 11px;
  color: var(--navy);
  padding: 6px 2px;
}
.icon img, .icon canvas, .icon-svg, .icon-glyph {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(2px 2px 0 rgba(46, 36, 82, 0.25));
}
.icon canvas { image-rendering: pixelated; border: var(--line); border-radius: 6px; width: 36px; height: 36px; }
.icon-glyph { font-style: normal; font-size: 34px; line-height: 40px; text-align: center; color: var(--pink-3); -webkit-text-stroke: 1.5px var(--navy); }
.icon-svg path { stroke: var(--navy); }
.icon-svg path:first-child { fill: #fff; }
.icon span { padding: 1px 6px; line-height: 1.35; border-radius: 4px; background: rgba(238, 236, 240, 0.7); }
.icon:hover span, .icon:focus-visible span { background: var(--pink); }
.icon:focus-visible { outline: none; }
#icons.free { display: block; width: 0; height: 0; }
.icon.dragging { cursor: grabbing; z-index: 2; }
.icon.dragging img, .icon.dragging canvas, .icon.dragging .icon-svg, .icon.dragging .icon-glyph { transform: scale(1.08) rotate(-4deg); }

/* ---------- windows ---------- */
.win {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--drop);
  min-width: 220px;
  overflow: hidden;
}
.win-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 5px 0 10px;
  background: var(--peri-2);
  border-bottom: var(--line);
  color: var(--navy);
  font-family: var(--pix);
  font-size: 11px;
  letter-spacing: 0.02em;
  user-select: none;
  cursor: default;
  flex: 0 0 auto;
}
.win.is-active .win-bar { background: var(--pink); }
.win-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-title::before { content: "✦ "; color: #fff; -webkit-text-stroke: 0.6px var(--navy); }
.win-title img { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }
.win-btns { display: flex; gap: 3px; }
.win-btns i, .win-btns button {
  all: unset;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
  background: var(--paper);
  border: var(--line);
  border-radius: 4px;
}
.win-btns button:hover { background: var(--pink-2); }
.win-btns button:active { transform: translate(1px, 1px); }
.win-menu { display: flex; gap: 14px; padding: 4px 10px; font-size: 11px; border-bottom: 1px solid var(--peri); background: var(--cream); }
.win-menu span:first-letter { text-decoration: underline; }
.win-body {
  flex: 1 1 auto;
  overflow: auto;
  background: var(--paper);
}
.win-status {
  display: flex;
  font-size: 10px;
  border-top: var(--line);
  background: var(--cream);
}
.win-status span { padding: 3px 10px; border-right: 1px solid var(--peri); }
.win-status span:first-child { flex: 1; }
.win-status span:last-child { border-right: 0; }
.win.is-min { display: none; }
.win[style*="height: auto"] .win-body { flex: 0 0 auto; }
.win.is-max { left: 0 !important; top: 0 !important; width: 100% !important; height: calc(100% - 44px) !important; border-radius: 0; }
.win-body::-webkit-scrollbar { width: 14px; height: 14px; }
.win-body::-webkit-scrollbar-track { background: var(--peri-2); border-left: 2px solid var(--navy); }
.win-body::-webkit-scrollbar-thumb { background: var(--pink); border: 2px solid var(--navy); border-radius: 7px; }

.zoom-rect { position: fixed; z-index: 950; border: 2px dashed var(--navy); border-radius: var(--r); pointer-events: none; }

/* ---------- orbit (face + project windows) ---------- */
#orbit { position: absolute; inset: 0 0 44px 0; pointer-events: none; }
#orbit > * { pointer-events: auto; }
#ring { position: absolute; left: 50%; top: 44%; width: 0; height: 0; pointer-events: none; }
.face-win {
  left: 50%;
  top: 44%;
  width: var(--fw, 300px);
  transform: translate(-50%, -60%);
  z-index: 50;
  min-width: 0;
  box-shadow: 6px 6px 0 var(--navy);
}
.face-win .win-bar { background: var(--pink); }
.face-win .win-body {
  position: relative;
  aspect-ratio: 1 / 1.02;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(60% 50% at 50% 46%, rgba(205, 202, 208, 0.9), transparent 72%),
    conic-gradient(from 200deg at 50% 50%, #c9b3c1, #b7b3cf, #a9b6d2, #b3c4cf, #c9b3c1);
}
.face-win .win-body::after {
  /* "loading" strip like the reference windows */
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 10px;
  border: var(--line);
  border-radius: 999px;
  background: var(--holo) 0 0 / 200% 100%;
  animation: holo-slide 4s linear infinite;
}
@keyframes holo-slide { to { background-position: -200% 0; } }
.face-stage { position: absolute; inset: 3% 3% 9%; perspective: 700px; }
.head {
  position: absolute;
  inset: 0;
  filter: drop-shadow(4px 4px 0 rgba(46, 36, 82, 0.35));
}
.head-px {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  transform-origin: 50% 88%;   /* the dance squashes from the chin */
}
.face-win.poked .head { animation: wobble 0.45s ease; }
@keyframes wobble {
  25% { translate: -6px 0; rotate: -4deg; }
  60% { translate: 4px 0; rotate: 3deg; }
}

.ring-card {
  all: unset;
  position: absolute;
  width: var(--cw, 180px);
  left: calc(var(--cw, 180px) / -2);
  top: calc(var(--cw, 180px) * -0.62);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  pointer-events: auto;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--drop);
  overflow: hidden;
}
.ring-card .win-bar { height: 22px; font-size: 9px; padding-left: 7px; }
.ring-card .win-bar .win-btns i { width: 14px; height: 14px; font-size: 9px; }
.ring-card.is-front .win-bar { background: var(--pink); }
.ring-card .rc-body {
  position: relative;
  height: calc(var(--cw, 180px) * 0.92);
  margin: 6px;
  overflow: hidden;
  border: var(--line);
  border-radius: 4px;
  background: var(--peri-2);
}
.ring-card .rc-body img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ring-card .rc-type {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--holo);
  color: var(--navy);
  font-family: var(--type);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.85;
  font-size: calc(var(--cw, 180px) * 0.17);
}
.ring-card canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.ring-card:focus-visible { outline: 2px dashed var(--navy); outline-offset: 4px; }
.ring-card.is-front { box-shadow: 5px 5px 0 var(--navy), 0 0 0 5px rgba(238, 236, 240, 0.35); }

#card-caption {
  position: absolute;
  left: 50%;
  bottom: 2.2vh;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  z-index: 60;
  white-space: nowrap;
}
.cap-title {
  display: block;
  font-family: var(--type);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 56px);
  letter-spacing: -0.06em;
  line-height: 0.95;
  color: var(--paper);
  -webkit-text-stroke: 2px var(--navy);
  text-shadow: 3px 3px 0 var(--navy);
  padding: 0 0.1em;
}
.cap-meta {
  display: inline-block;
  font-size: 11px;
  color: var(--navy);
  margin-top: 8px;
  background: var(--paper);
  border: var(--line);
  border-radius: 999px;
  padding: 2px 12px;
}
.cap-hint { color: var(--pink-3); font-weight: 700; }
#card-caption.swap .cap-title { animation: cap-in 0.3s steps(5); }
@keyframes cap-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* hidden desktop stars */
.star-pick {
  all: unset;
  position: absolute;
  z-index: 6;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s, transform 0.2s;
}
.star-pick:hover { color: var(--pink); transform: scale(1.6) rotate(15deg); }
.star-pick.inside { position: static; font-size: 22px; color: var(--peri); }

/* ---------- taskbar & start ---------- */
#taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  z-index: 800;
  background: var(--paper);
  border-top: var(--line);
}
#start-btn, .task, #tray {
  all: unset;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  cursor: pointer;
  font-family: var(--pix);
  font-size: 11px;
  background: var(--peri-2);
  border: var(--line);
  border-radius: 999px;
}
#start-btn { background: var(--pink); box-shadow: 2px 2px 0 var(--navy); }
#start-btn img { width: 18px; height: 18px; }
#start-btn[aria-expanded="true"] { transform: translate(2px, 2px); box-shadow: none; }
.task { max-width: 170px; min-width: 0; border-radius: 6px; background: var(--cream); }
.task.is-active { background: var(--pink-2); }
.task span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tasks { flex: 1; display: flex; gap: 4px; overflow: hidden; }
#tray { cursor: default; gap: 2px; padding: 0 4px; }
#tray button { all: unset; cursor: pointer; height: 22px; padding: 0 6px; border-radius: 999px; font-family: var(--ui); font-size: 11px; display: flex; align-items: center; }
#tray button:hover { background: #fff; }
#tray-stars.bump { animation: bump 0.5s ease; }
@keyframes bump { 30% { transform: scale(1.3) rotate(-6deg); } }
.tray-status { font-family: var(--pix); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); opacity: 0.75; padding: 0 12px; white-space: nowrap; align-self: center; }
@media (max-width: 700px) { .tray-status { display: none; } }
.d-tag { display: inline-block; margin: 0 0 6px; padding: 2px 10px; border: var(--line); border-radius: 999px; background: var(--silver); font-family: var(--pix); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
#clock { font-family: var(--ui); font-size: 11px; padding: 0 6px; }

#start-menu {
  position: absolute;
  left: 6px;
  bottom: 50px;
  z-index: 850;
  display: flex;
  min-width: 260px;
  background: var(--paper);
  border: var(--line);
  border-radius: var(--r);
  box-shadow: var(--drop);
  overflow: hidden;
}
.sm-side {
  width: 30px;
  background: var(--holo);
  border-right: var(--line);
  color: var(--navy);
  font-family: var(--pix);
  font-size: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
}
.sm-side span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.sm-items { flex: 1; display: flex; flex-direction: column; padding: 4px; }
.sm-items button {
  all: unset;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  border-radius: 5px;
}
.sm-items button:hover, .sm-items button:focus-visible { background: var(--pink-2); }
.sm-items .sm-ico { width: 18px; text-align: center; }
.sm-sep { height: 0; margin: 4px; border-top: 1px dashed var(--peri); }

/* notification balloon */
#balloon {
  position: absolute;
  right: 12px;
  bottom: 54px;
  z-index: 880;
  max-width: 280px;
  padding: 10px 14px;
  background: var(--paper);
  border: var(--line);
  border-radius: 12px;
  font-size: 12px;
  box-shadow: 3px 3px 0 var(--navy);
  transform: translateY(16px);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s steps(3);
  pointer-events: none;
}
#balloon b { font-family: var(--pix); display: block; margin-bottom: 2px; color: var(--pink-3); }
#balloon.show { opacity: 1; transform: none; }

/* ---------- app contents ---------- */
.doc { padding: 0; font-family: var(--type); color: var(--ink); }
.doc-head { padding: 28px 28px 22px; border-bottom: var(--line); background: linear-gradient(180deg, var(--pink-2), var(--paper)); }
.doc-index { font-family: var(--pix); font-size: 11px; color: var(--pink-3); }
.doc-title { margin: 6px 0 18px; font-size: clamp(38px, 6vw, 92px); line-height: 0.86; font-weight: 800; letter-spacing: -0.075em; color: var(--navy); }
.doc-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; font-family: var(--ui); font-size: 11px; color: var(--muted); }
.doc-meta b { display: block; color: var(--ink); font-weight: 700; margin-bottom: 2px; }
.chap { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 26px 28px; border-bottom: 1px dashed var(--peri); }
.chap-n { font-family: var(--pix); font-size: 10px; letter-spacing: 0.04em; color: var(--pink-3); padding-top: 6px; }
.chap h2 { margin: 0 0 10px; font-size: 26px; letter-spacing: -0.05em; line-height: 1; }
.chap p { margin: 0; font-size: 15px; line-height: 1.55; max-width: 62ch; color: #3a3060; }
.chap-media { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; }
.chap-media figure { margin: 0; flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.chap-media .mb { overflow: hidden; background: var(--peri-2); border: var(--line); border-radius: 6px; box-shadow: 3px 3px 0 var(--navy); }
.chap-media .mb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.chap-media .wide { height: 300px; }
.chap-media .tall { height: 460px; }
.chap-media .small { height: 200px; }
.chap-media figcaption { font-family: var(--ui); font-size: 10px; color: var(--muted); }
.doc-end { padding: 26px 28px 40px; font-family: var(--ui); font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.explorer { width: 100%; border-collapse: collapse; font-size: 12px; }
.explorer th { text-align: left; font-weight: 400; padding: 4px 8px; position: sticky; top: 0; background: var(--peri-2); border-bottom: var(--line); }
.explorer td { padding: 6px 8px; white-space: nowrap; }
.explorer tr.row { cursor: pointer; }
.explorer tr.row:hover td, .explorer tr.row:focus-visible td { background: var(--pink-2); outline: none; }
.explorer .muted td { color: #aaa2c9; cursor: default; }
.explorer img { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }

.notepad { padding: 14px 16px; font-family: var(--ui); font-size: 13px; line-height: 1.6; white-space: normal; }
.notepad p { margin: 0 0 12px; max-width: 60ch; }
.notepad .links a { display: block; }
.about-split { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; align-items: start; }
.about-split img { width: 100%; }

.stars-list { list-style: none; margin: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.stars-list li { color: #aaa2c9; }
.stars-list li.got { color: var(--ink); }
.stars-note { padding: 0 16px 16px; font-size: 12px; color: var(--muted); line-height: 1.5; }

.trash-body { padding: 18px; display: flex; flex-wrap: wrap; gap: 22px; font-size: 11px; }
.trash-body .file { all: unset; cursor: pointer; word-break: break-all; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 90px; text-align: center; color: var(--muted); }
.trash-body .file i { font-style: normal; font-size: 30px; }

/* snake */
.snake-app { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px; background: var(--cream); }
.lcd { position: relative; width: 240px; max-width: 100%; aspect-ratio: 1; background: var(--peri-2); border: var(--line); border-radius: 8px; overflow: hidden; }
.lcd canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; touch-action: none; }
.lcd-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; font-family: var(--pix); font-size: 11px; color: var(--navy); line-height: 1.6; pointer-events: none; }
.snake-score { display: flex; gap: 22px; font-size: 11px; }
.pad { display: grid; grid-template-columns: repeat(3, 40px); grid-template-rows: repeat(2, 32px); gap: 5px; }
.pad button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 11px; background: var(--paper); border: var(--line); border-radius: 6px; box-shadow: 2px 2px 0 var(--navy); }
.pad button:active { transform: translate(2px, 2px); box-shadow: none; }
.pad [data-dir="up"] { grid-column: 2; grid-row: 1; }
.pad [data-dir="left"] { grid-column: 1; grid-row: 2; }
.pad [data-dir="down"] { grid-column: 2; grid-row: 2; }
.pad [data-dir="right"] { grid-column: 3; grid-row: 2; }
.snake-tip { font-size: 10px; color: var(--muted); }
/* mlg_flap.exe */
.flap-lcd { width: 240px; aspect-ratio: 240 / 340; }
.flap-lcd .lcd-msg { text-shadow: 0 0 4px #fff; }
/* beat_dash.exe */
.dash-lcd { width: 340px; max-width: 100%; aspect-ratio: 340 / 200; }
.dash-lcd canvas { width: 100%; height: 100%; }
.dash-lcd .lcd-msg { text-shadow: 0 0 4px #fff; }
.lcd.mlg-flash { animation: mlg-flash 0.5s steps(2) 3; }
@keyframes mlg-flash { 50% { filter: invert(1) hue-rotate(180deg); } }
/* blocks.exe */
.blocks-row { display: flex; gap: 12px; align-items: flex-start; }
.blocks-lcd { width: 160px; aspect-ratio: 1 / 2; }
.blocks-side { display: flex; flex-direction: column; gap: 8px; width: 88px; font-size: 10px; }
.blocks-lbl { font-family: var(--pix); font-size: 10px; }
.blocks-next { width: 64px; height: 64px; border: var(--line); border-radius: 6px; image-rendering: pixelated; }
.blocks-stat { display: flex; flex-direction: column; gap: 1px; }
.blocks-stat span { font-family: var(--pix); font-size: 9px; color: var(--muted); }
.blocks-stat b { font-size: 14px; }
.blocks-music { font-size: 10px !important; padding: 4px 8px !important; }
.blocks-pad { grid-template-columns: repeat(5, 40px); grid-template-rows: 32px; }
.blocks-pad button { grid-row: 1 !important; grid-column: auto !important; font-size: 13px; }

/* dialog (welcome) */
.dialog { display: flex; gap: 14px; align-items: center; padding: 18px 18px 12px; background: var(--paper); font-size: 12px; line-height: 1.5; }
.dialog .d-ico { font-size: 30px; line-height: 1; color: var(--pink-3); -webkit-text-stroke: 1px var(--navy); }
.dialog .d-face { flex: 0 0 auto; width: 64px; height: 64px; border: var(--line); border-radius: 50%; background: var(--holo); overflow: hidden; }
.dialog .d-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.6); }
.dialog .d-big { font-family: var(--pix); font-size: 14px; display: block; margin-bottom: 4px; }
.loadbar { margin: 0 18px 14px; height: 14px; border: var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.loadbar i { display: block; height: 100%; width: 0; background: var(--holo); border-right: var(--line); animation: load 1.6s steps(12) forwards; }
@keyframes load { to { width: 100%; } }
.dialog-actions { display: flex; justify-content: center; gap: 10px; padding: 0 16px 16px; background: var(--paper); }
.btn98 { all: unset; cursor: pointer; padding: 5px 22px; font-family: var(--pix); font-size: 12px; background: var(--peri-2); border: var(--line); border-radius: 999px; box-shadow: 2px 2px 0 var(--navy); }
.btn98.primary { background: var(--pink); }
.btn98:active { transform: translate(2px, 2px); box-shadow: none; }
.btn98:focus-visible { outline: 2px dashed var(--navy); outline-offset: 3px; }
.win-body.flat { background: var(--paper); padding: 0; }

/* ---------- phones ---------- */
@media (max-width: 760px) {
  #icons, #icons.free { display: grid; width: auto; height: auto; }
  #icons .icon { position: static !important; }
  #icons { grid-template-columns: repeat(4, 80px); left: 50%; transform: translateX(-50%); top: 6px; gap: 0 4px; }
  .icon { width: 80px; font-size: 8px; padding: 2px 0; }
  .icon img, .icon canvas, .icon-svg, .icon-glyph { width: 26px; height: 26px; }
  .icon-glyph { font-size: 22px; line-height: 26px; }
  .win.app { left: 6px !important; top: 6px !important; width: calc(100% - 12px) !important; height: calc(100% - 56px) !important; }
  .chap { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 20px 16px; }
  .doc-head { padding: 22px 16px; }
  .about-split { grid-template-columns: minmax(0, 1fr); }
  .task { max-width: 90px; }
  .wp-word { font-size: 22vw; }
  .wp-obj { display: none; }
  #ring, .face-win { top: 47%; }
  .corner-label { display: none; }
  #start-btn { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .face-win.poked .head, #tray-stars.bump, .sparkle, .face-win .win-body::after { animation: none; }
}

/* blinking lids inside the eye overlay */
.head-eyes .lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); transition: transform 0.07s ease-in; }
.head.blink .head-eyes .lid { transform: scaleY(1); }

/* ---------- silver / chrome accents ---------- */
.win-btns i, .win-btns button, .btn98:not(.primary), .pad button, #tray, .task, .cap-meta, .corner-label, .icon span { background: var(--silver); }
.win-btns button:hover, .task.is-active { background: linear-gradient(180deg, #fff, #ead2de 60%, #d7a3bd); }
#start-btn { background: var(--silver); }
#start-btn[aria-expanded="true"] { background: linear-gradient(180deg, #c3c5d0, #e6e7ee); }
.win-body::-webkit-scrollbar-thumb { background: var(--silver); }
.face-win .win-body::after { background: var(--silver); animation: none; }
.loadbar i { background: var(--silver); }
.sm-side { background: var(--silver); }
.ring-card .rc-body, .lcd { box-shadow: inset 0 0 0 3px #c3c5d0; }
#taskbar { background: linear-gradient(180deg, #f3f3f6, #d9dae2); }

/* ---------- the face: no window, just a floating head ---------- */
.face-win { position: absolute; background: none; border: 0; box-shadow: none; overflow: visible; width: calc(var(--fw, 300px) * 1.1); }
.face-win .win-body { aspect-ratio: 1 / 1.02; background: none; overflow: visible; }
.face-win .win-body::after { content: none; }
.face-stage { inset: 0; animation: hover-float 6s ease-in-out infinite; }
.head { filter: drop-shadow(5px 5px 0 rgba(46, 36, 82, 0.35)); }
@keyframes hover-float { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .face-stage { animation: none; } }

/* ---------- about me: a tiny desktop with the tamagotchi ---------- */
.about-desk {
  position: relative;
  height: 320px;
  margin: 10px;
  border: var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: radial-gradient(60% 60% at 50% 40%, rgba(255, 255, 255, 0.45), transparent 70%), linear-gradient(180deg, #c6bbe9, var(--sky));
}
.ad-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.4px); background-size: 16px 16px; }
.ad-spark { position: absolute; font-style: normal; color: #fff; font-size: 18px; animation: twinkle 3s ease-in-out infinite; }
.ad-spark.p { color: var(--pink); animation-delay: -1.4s; }
.ad-icon { position: absolute; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; cursor: pointer; user-select: none; }
.ad-icon .ad-ico { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: var(--paper); border: var(--line); border-radius: 6px; box-shadow: 2px 2px 0 var(--navy); }
.ad-icon span:last-child { background: rgba(255, 255, 255, 0.6); border-radius: 3px; padding: 0 4px; }
.ad-tama {
  position: absolute;
  left: 50%;
  top: -34px;
  height: 330px;
  width: auto;
  transform-origin: 50% 0;
  translate: -50% 0;
  animation: tama-swing 4.5s ease-in-out infinite;
  filter: drop-shadow(5px 6px 0 rgba(46, 36, 82, 0.28));
  cursor: pointer;
}
.ad-tama.boop { animation: tama-boop 0.6s ease, tama-swing 4.5s ease-in-out 0.6s infinite; }
@keyframes tama-swing { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
@keyframes tama-boop { 30% { rotate: 12deg; scale: 1.04; } 65% { rotate: -9deg; } }
.ad-bubble {
  position: absolute;
  right: 6%;
  top: 22%;
  padding: 8px 12px;
  background: var(--paper);
  border: var(--line);
  border-radius: 12px 12px 12px 2px;
  box-shadow: 3px 3px 0 var(--navy);
  font-family: var(--pix);
  font-size: 10px;
  line-height: 1.5;
}
.ad-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; display: flex; align-items: center; gap: 6px; padding: 0 6px; background: var(--silver); border-top: var(--line); font-family: var(--pix); font-size: 9px; }
.ad-bar span { padding: 1px 8px; border: 1.5px solid var(--navy); border-radius: 999px; background: var(--paper); }
.ad-bar span:first-child { background: var(--pink); }
.ad-bar .ad-clock { margin-left: auto; }
@media (max-width: 760px) { .about-desk { height: 260px; } .ad-tama { height: 270px; } .ad-bubble { right: 3%; top: 10%; } }
@media (prefers-reduced-motion: reduce) { .ad-tama, .ad-spark { animation: none; } }

/* ---------- boot / loading screen ---------- */
#boot {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background:
    radial-gradient(50vw 46vh at 50% 46%, rgba(255, 255, 255, 0.45), transparent 70%),
    linear-gradient(180deg, #c0b4e6, var(--sky) 60%, #a294d3);
}
#boot::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.45) 1.2px, transparent 1.6px); background-size: 22px 22px; }
.boot-box { position: relative; width: min(420px, 100%); background: var(--paper); border: var(--line); border-radius: var(--r); box-shadow: 6px 6px 0 var(--navy); overflow: hidden; }
.boot-box .win-bar { background: var(--pink); }
.boot-body { display: flex; flex-direction: column; align-items: center; padding: 26px 26px 20px; text-align: center; }
.boot-chrome { width: 56px; height: 56px; animation: boot-spin 2.4s linear infinite; filter: drop-shadow(3px 3px 0 rgba(46, 36, 82, 0.3)); }
@keyframes boot-spin { to { rotate: 360deg; } }
.boot-logo { margin-top: 12px; font-family: var(--type); font-weight: 800; font-size: 40px; letter-spacing: -0.06em; line-height: 1; color: var(--paper); -webkit-text-stroke: 2px var(--navy); text-shadow: 3px 3px 0 var(--navy); }
.boot-sub { margin-top: 8px; font-size: 11px; color: var(--muted); }
.boot-track { width: 100%; height: 18px; margin-top: 22px; border: var(--line); border-radius: 999px; background: #fff; overflow: hidden; padding: 2px; }
.boot-track i { display: block; height: 100%; width: 0; border-radius: 999px; background: repeating-linear-gradient(90deg, var(--pink) 0 10px, var(--peri) 10px 20px); }
.boot-row { width: 100%; display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--pix); font-size: 10px; color: var(--navy); }
body.booting #desktop { visibility: hidden; }
.pix-cover { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; z-index: 30; }
.pix-cover.fixed { position: fixed; z-index: 1500; }
@media (prefers-reduced-motion: reduce) { .boot-chrome { animation: none; } }

/* ---------- star-glasses transformation (magical-girl sparkle sequence) ---------- */
.mg-back { position: absolute; inset: -40%; z-index: -1; pointer-events: none; transition: opacity 0.8s; }
.mg-aura { position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(246,220,236,0.8) 22%, rgba(205,191,240,0.55) 42%, rgba(193,182,230,0) 68%);
  animation: mg-aura 1.6s ease-in-out infinite alternate, mg-in 0.8s ease-out both; }
.mg-rays { position: absolute; inset: 6%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,0.7) 0 5deg, rgba(255,255,255,0) 5deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 70%); mask: radial-gradient(circle, #000 18%, transparent 70%);
  animation: mg-spin 6s linear infinite, mg-in 1.2s 0.3s ease-out both; }
.mg-front { position: fixed; width: 0; height: 0; z-index: 70; pointer-events: none; transition: opacity 0.8s; }
.mg-back.out, .mg-front.out { opacity: 0; }
.mg-orbit { position: absolute; left: 0; top: 0; width: 0; height: 0; rotate: var(--a);
  animation: mg-orbit-spin 3.4s var(--d) cubic-bezier(.45,.05,.55,.95) both; }
.mg-orbit b { position: absolute; left: 0; top: 0; translate: -50% -50%; font-weight: normal; line-height: 1; color: #fff;
  font-family: var(--type);
  text-shadow: 0 0 6px #fff, 0 0 14px rgba(215,163,189,0.9), 0 0 2px var(--navy);
  animation: mg-orbit-in 3.4s var(--d) cubic-bezier(.45,.05,.55,.95) both; }
.mg-orbit.p b { color: #f3c6dc; }
.mg-orbit.l b { color: #d9cff5; }
.mg-ring { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 0 18px #fff, inset 0 0 12px rgba(215,163,189,0.8);
  animation: mg-ring 0.9s ease-out forwards; }
.mg-glitter { position: absolute; font-style: normal; color: #fff; text-shadow: 0 0 8px #fff; opacity: 0;
  animation: mg-glitter 2s ease-in forwards; }
.mg-glitter.p { color: #f3c6dc; }
.mg-flash { position: fixed; inset: 0; z-index: 75; pointer-events: none;
  background: radial-gradient(circle at var(--x) var(--y), rgba(255,255,255,0.95), rgba(246,220,236,0.6) 25%, rgba(255,255,255,0) 60%);
  animation: mg-flash 1.1s ease-out forwards; }
@keyframes mg-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes mg-aura { from { filter: brightness(1); } to { filter: brightness(1.15); } }
@keyframes mg-spin { to { rotate: 360deg; } }
@keyframes mg-orbit-spin { from { rotate: var(--a); } to { rotate: calc(var(--a) + 540deg); } }
@keyframes mg-orbit-in {
  0%   { opacity: 0; transform: translateX(calc(var(--R) * 1.05)) scale(0.9) rotate(0deg); }
  15%, 85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(calc(var(--R) * 0.1)) scale(1.5) rotate(-540deg); }
}
@keyframes mg-ring { from { transform: scale(1); opacity: 1; } to { transform: scale(30); opacity: 0; } }
@keyframes mg-glitter { 0% { opacity: 0; transform: translateY(0) rotate(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(160px) rotate(180deg); } }
@keyframes mg-flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
