/* ─────────────────────────────────────────────
   Pink Y2K desktop portfolio
   ───────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #f8b5d3; }
img, svg { display: block; }
button, input, textarea { font: inherit; }

.os {
  --ink: #5c2046;
  --soft: #8d4c72;
  --dim: #a05c85;
  --edge: #ef7fb7;
  --hot: #ff5fae;
  --deep: #d92b85;
  --rose: #ff8cc6;
  --pale: #ffe6f2;
  --pixel: "Pixelify Sans", ui-monospace, monospace;
  --dot: "DotGothic16", ui-monospace, monospace;
  --wide: "Michroma", sans-serif;
  --d: 15px;
  --bar: calc(var(--d) * 2.5);
  --m: clamp(8px, 2.2dvh, 24px);
  --u: min(calc((100vw - 16px) / 26), clamp(13px, calc((100dvh - var(--bar) - 2 * var(--m)) / 46), 19px));
  --px: calc(var(--u) / 8);
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #f8b5d3 url("../assets/pink-sky.webp") center bottom / cover no-repeat;
  color: var(--ink);
  font-family: var(--dot);
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.os[data-max] {
  --m: 8px;
  --u: min(calc((100vw - 16px) / 26), clamp(13px, calc((100dvh - var(--bar) - 16px) / 36), 28px));
}
@supports (width: round(nearest, 1.3px, 0.5px)) {
  .os { --px: round(nearest, calc(var(--u) / 8), 0.5px); }
}
.os :focus-visible { outline: 0.14em solid var(--deep); outline-offset: 0.12em; }
.os a { color: inherit; }
.os a.btn-hot { color: #fff; }

.px {
  display: inline-block;
  flex: 0 0 auto;
  width: calc(var(--w) * var(--px) * var(--k, 1));
  height: calc(var(--h) * var(--px) * var(--k, 1));
  vertical-align: -0.08em;
}
.art { display: inline-block; flex: 0 0 auto; width: 16px; height: 16px; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dim { color: var(--dim); }
.os .num { font-family: var(--dot); font-weight: 400; letter-spacing: 0.03em; -webkit-text-stroke: 0.05em currentColor; }

/* ── desktop ───────────────────────────────── */
.desk {
  position: absolute;
  inset: 0 0 var(--bar) 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.os:not([data-sparks]) .sky { display: none; }
.sky span { position: absolute; --px: 3px; color: #fff; animation: twinkle 3.2s ease-in-out infinite; }
.sky span:nth-child(3n) { color: #fff3f9; }
.sky span:nth-child(4n) { color: #ffe1ef; }
@keyframes twinkle {
  0%, 100% { transform: scale(0.35); opacity: 0.3; }
  50% { transform: scale(1); opacity: 1; }
}

.icons {
  position: absolute;
  top: 0.8em; left: 0.6em; bottom: 0.6em;
  z-index: 1;
  display: flex;
  flex-flow: column wrap;
  align-content: flex-start;
  gap: 0.5em 0.3em;
  margin: 0; padding: 0;
  list-style: none;
  font-size: var(--d);
}
.ico {
  display: grid;
  justify-items: center;
  gap: 0.3em;
  width: 5.6em;
  padding: 0.3em 0.1em;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--dot);
  font-size: 0.88em;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 0 #fff;
  cursor: pointer;
}
.ico .art { width: 48px; height: 48px; filter: drop-shadow(2px 3px 0 rgba(214, 43, 133, 0.18)); }
.ico span { padding: 0 0.3em 0.05em; }
.ico:hover span, .ico:focus-visible span { background: var(--hot); color: #fff; text-shadow: none; }
.os .ico:focus-visible { outline: 1px dotted var(--ink); outline-offset: 0; }

/* ── shared chrome ─────────────────────────── */
.addr {
  flex: 1 1 0%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5em;
  height: 1.75em;
  padding: 0 0.7em 0 0.2em;
  border: 0.09em solid var(--edge);
  border-radius: 99em;
  background: linear-gradient(#fff 55%, #fff3f9);
  box-shadow: inset 0 0.14em 0.22em rgba(239, 127, 183, 0.4);
}
.addr-dot, .search-go {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.32em; height: 1.32em;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #ffc6e2, #ff6fb5 60%, #e8409a);
  box-shadow: inset 0 0 0 0.06em rgba(255, 255, 255, 0.55);
}
.addr-dot .px, .search-go .px { --k: 0.75; }
.addr-name { font-family: var(--wide); font-size: 0.84em; letter-spacing: 0.1em; white-space: nowrap; }

.orbs { flex: 0 0 auto; display: flex; gap: 0.3em; }
.orb {
  display: grid;
  place-items: center;
  width: 1.62em; height: 1.62em;
  padding: 0;
  border: 0.09em solid #e85aa5;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 34% 26%, #fff 0, #ffd0e7 18%, #ff9bcd 52%, #f76bb2 100%);
  box-shadow: inset 0 -0.15em 0.25em rgba(214, 43, 133, 0.35), 0 0.08em 0 rgba(255, 255, 255, 0.9);
  font-size: 1em;
  cursor: pointer;
}
.orb .px { --k: 0.75; filter: drop-shadow(0 0.07em 0 rgba(196, 36, 122, 0.75)); }
.orb-x { border-color: #cf2a80; background: radial-gradient(circle at 34% 26%, #ffd9ec 0, #ff86c3 30%, #f0479d 70%, #d92b85 100%); }
.orb:hover { filter: brightness(1.05) saturate(1.15); }
.orb:active { transform: scale(0.93); }

.menu { flex: 0 0 auto; position: relative; z-index: 6; display: flex; padding: 0 0.05em 0.3em; }
.anchor { position: relative; }
.menu-btn {
  padding: 0.08em 0.5em 0.16em;
  border: 0;
  border-radius: 0.4em;
  background: none;
  font-family: var(--dot);
  font-size: 0.94em;
  line-height: 1.25;
  color: var(--ink);
  cursor: pointer;
}
.menu-btn u { text-underline-offset: 0.14em; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { background: linear-gradient(#ff9fd0, #ff6fb5); color: #fff; }
.rule { flex: 0 0 auto; height: 0.18em; border-top: 0.09em solid #f291c0; border-bottom: 0.09em solid #fff; }

.pop {
  position: absolute;
  top: calc(100% + 0.25em);
  left: 0;
  z-index: 30;
  min-width: 11.5em;
  padding: 0.28em;
  border: 0.09em solid var(--edge);
  border-radius: 0.65em;
  background: #fff;
  box-shadow: 0 0.7em 1.4em -0.5em rgba(214, 43, 133, 0.55), 0 0.15em 0 #f9bedb;
  animation: pop-in 0.12s ease both;
}
.pop[data-side="right"] { left: auto; right: 0; }
.pop[data-side="up"] { top: auto; bottom: calc(100% + 0.3em); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-0.2em); } }
.pop-item {
  display: flex;
  align-items: center;
  gap: 0.5em;
  width: 100%;
  padding: 0.32em 0.7em 0.38em 0.5em;
  border: 0;
  border-radius: 0.42em;
  background: none;
  font-family: var(--dot);
  font-size: 0.92em;
  line-height: 1.25;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.pop-item:hover, .pop-item:focus-visible { background: linear-gradient(#ff9fd0, #ff6fb5); color: #fff; outline: 0; }
.pop-tick { flex: 0 0 auto; display: grid; place-items: center; width: calc(7 * var(--px)); }
.pop-sep { height: 0.09em; margin: 0.25em 0.35em; background: #f9c3de; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  min-height: 1.9em;
  padding: 0 0.8em;
  border: 0.09em solid var(--edge);
  border-radius: 0.5em;
  background: linear-gradient(#fff 0%, #ffeef6 46%, #ffd9eb 54%, #ffc6e2 100%);
  box-shadow: inset 0 0 0 0.08em rgba(255, 255, 255, 0.95), 0 0.12em 0 #ee86ba;
  color: #ad2470;
  font-family: var(--pixel);
  font-weight: 600;
  font-size: 1em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}
.btn:hover { background: linear-gradient(#fff 0%, #ffe3f1 46%, #ffc9e3 54%, #ffb3d9 100%); }
.btn:active { transform: translateY(0.1em); box-shadow: inset 0 0.12em 0.3em rgba(214, 43, 133, 0.35); }
.btn[aria-pressed="true"] {
  background: conic-gradient(#ffc4e1 90deg, #fff 0 180deg, #ffc4e1 0 270deg, #fff 0) 0 0 / calc(var(--px) * 2) calc(var(--px) * 2);
  box-shadow: inset 0 0.12em 0.25em rgba(214, 43, 133, 0.3);
  color: var(--deep);
}
.btn-hot {
  min-height: 2.05em;
  border-color: #dc3d92;
  background: linear-gradient(#ffb1d8 0%, #ff7fc0 46%, #fb5aa9 54%, #ff86c4 100%);
  box-shadow: inset 0 0 0 0.08em rgba(255, 255, 255, 0.55), 0 0.12em 0 #cf2f86;
  color: #fff;
  font-size: 1.05em;
  text-shadow: 0 0.07em 0 #c2267a;
}
.btn-hot:hover { background: linear-gradient(#ffbfdf 0%, #ff8fc8 46%, #ff68b2 54%, #ff95cc 100%); }
.btn-sq { min-height: 2.15em; width: 2.3em; padding: 0; }

/* ── main program window ───────────────────── */
.win {
  grid-area: 1 / 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 26em;
  height: min(calc(100dvh - var(--bar) - 2 * var(--m)), 64em);
  padding: 0.5em 0.55em 0.55em;
  border: 0.125em solid #f79bc8;
  border-radius: 1.15em;
  background: linear-gradient(#fffafd 0%, #ffe4f1 9%, #ffd6ea 55%, #ffc9e3 100%);
  box-shadow:
    inset 0 0 0 0.11em #fff,
    inset 0 -1.2em 1.6em -1em rgba(255, 120, 185, 0.45),
    0 0 0 0.3em rgba(255, 255, 255, 0.75),
    0 1.4em 3em -1.2em rgba(226, 64, 146, 0.55),
    0 0.2em 0.6em rgba(226, 64, 146, 0.18);
  font-size: var(--u);
  line-height: 1.25;
  transform: translate(var(--dx, 0px), var(--dy, 0px));
}
.win[data-state="min"], .win[data-state="closed"] { display: none; }
.title { flex: 0 0 auto; display: flex; align-items: center; gap: 0.5em; padding: 0.05em 0.05em 0.4em; touch-action: none; user-select: none; }

.screen {
  position: relative;
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-top: 0.45em;
  border: 0.09em solid var(--edge);
  border-radius: 0.75em;
  background: #fff;
  box-shadow: inset 0 0.15em 0.4em rgba(239, 127, 183, 0.28), 0 0.09em 0 #fff;
  overflow: hidden;
  transition: opacity 0.42s;
}
.screen[data-phase="out"] { opacity: 0; transition-duration: 0.28s; }

.scroll { position: relative; flex: 1 1 0%; min-height: 0; overflow: hidden auto; overscroll-behavior: contain; }
.scroll::-webkit-scrollbar { width: 0.7em; }
.scroll::-webkit-scrollbar-track { background: #fff0f7; border-left: 0.08em solid #f9c3de; }
.scroll::-webkit-scrollbar-thumb { border: 0.08em solid var(--edge); border-radius: 0.4em; background: linear-gradient(90deg, #ffd0e7, #ff97cb); }
@supports not selector(::-webkit-scrollbar) {
  .scroll { scrollbar-width: thin; scrollbar-color: #ff9ccb #fff0f7; }
}

.me { padding: 0.7em 0.8em 0; }
.handle {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin: 0 0 0.4em 0.15em;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 1.22em;
  line-height: 1.1;
  color: var(--ink);
}
.handle .px, .who .px { color: var(--hot); }
.head { display: flex; align-items: center; gap: 0.95em; }
.ava {
  flex: 0 0 auto;
  width: 5.4em; height: 5.4em;
  margin: 0.28em;
  border: 0.16em solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 0.1em var(--hot), 0 0 0 0.28em #ffd3e9, 0 0.35em 0.7em rgba(226, 64, 146, 0.35);
  image-rendering: auto;
}
.ava[data-pixel] { image-rendering: pixelated; }
.side { flex: 1 1 0%; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 0.5em; text-align: center; }
.stat b { display: block; font-family: var(--pixel); font-weight: 700; font-size: 1.32em; line-height: 1.05; }
.stat span { font-size: 0.88em; color: var(--soft); }
.follow { display: flex; gap: 0.3em; }
.follow > .btn-hot { flex: 1 1 0%; }
.bio { margin: 0.65em 0.15em 0.7em; font-size: 0.94em; line-height: 1.34; }
.bio p { margin: 0; }
.bio b { font-family: var(--pixel); font-weight: 700; font-size: 1.06em; }
.bio .px { --k: 0.75; color: var(--hot); }
.bio a, .about a, .cap-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rose);
  text-underline-offset: 0.16em;
}
.bio a:hover, .about a:hover, .cap-link:hover { color: var(--deep); }

.tabs {
  position: sticky;
  top: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3em;
  padding: 0.5em 0.8em;
  background: rgba(255, 255, 255, 0.95);
}
.tabs .btn { min-height: 2.1em; padding: 0; }

.search {
  display: flex;
  align-items: center;
  height: 1.95em;
  margin: 0 0.8em 0.55em;
  padding: 0 0.28em 0 0.85em;
  border: 0.09em solid var(--edge);
  border-radius: 99em;
  background: #fff;
  box-shadow: inset 0 0.14em 0.22em rgba(239, 127, 183, 0.35);
  scroll-margin-top: 3.4em;
  cursor: text;
}
.search:focus-within { border-color: var(--deep); }
.search input {
  flex: 1 1 0%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  font-family: var(--wide);
  font-size: 0.64em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  appearance: none;
}
.os .search input:focus-visible { outline: 0; }
.search input::placeholder { color: #c58aab; opacity: 1; }
.search input::-webkit-search-cancel-button { appearance: none; }
@media (pointer: coarse) {
  .search input { font-family: var(--dot); font-size: 16px; letter-spacing: 0; text-transform: none; }
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.32em; margin: 0; padding: 0 0.8em 0.9em; list-style: none; }
.tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0.09em solid var(--edge);
  border-radius: 0.5em;
  background: var(--pale);
  box-shadow: 0 0.12em 0 #f9bedb;
  overflow: hidden;
  font-size: 1em;
  cursor: pointer;
}
.tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.tile:hover img, .tile:focus-visible img { transform: scale(1.07); }
.tile-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.14em 0.3em 0.22em;
  border-top: 0.09em solid rgba(239, 127, 183, 0.75);
  background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 232, 244, 0.98));
  font-family: var(--pixel);
  font-weight: 500;
  font-size: 0.72em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #9a2467;
}
.tile-likes {
  position: absolute;
  top: 0.35em; right: 0.35em;
  display: flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.1em 0.45em 0.16em;
  border: 0.09em solid var(--edge);
  border-radius: 99em;
  background: rgba(255, 255, 255, 0.94);
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 0.7em;
  line-height: 1.2;
  color: var(--deep);
  opacity: 0;
  transform: translateY(-0.2em);
  transition: opacity 0.2s, transform 0.2s;
}
.tile-likes .px, .len .px { --k: 0.5; }
.tile:hover .tile-likes, .tile:focus-visible .tile-likes { opacity: 1; transform: none; }
.none { margin: 1.6em 1em 2em; text-align: center; font-size: 0.94em; color: var(--dim); }

/* post view */
.post-head {
  flex: 0 0 auto;
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  padding: 0.5em 0.7em;
  border-bottom: 0.09em solid #f9bedb;
  background: linear-gradient(#fff, #fff4f9);
}
.who {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0;
  border: 0;
  border-radius: 99em;
  background: none;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 1.14em;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
}
.who img {
  width: 2.2em; height: 2.2em;
  margin: 0.1em 0.25em 0.1em 0.1em;
  border: 0.1em solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 0.08em var(--hot);
}
.more { min-height: 1.6em; padding: 0 0.75em; }
.post { padding: 0.75em 0.75em 0; }
.post + .post { margin-top: 0.5em; padding-top: 1.1em; }
.shot {
  position: relative;
  display: block;
  margin: 0.09em;
  border: 0.16em solid #fff;
  border-radius: 0.45em;
  outline: 0.09em solid var(--edge);
  background: var(--pale);
  overflow: hidden;
}
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.len {
  position: absolute;
  left: 0.6em; bottom: 0.6em;
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.14em 0.55em 0.2em;
  border: 0.09em solid var(--edge);
  border-radius: 99em;
  background: rgba(255, 255, 255, 0.92);
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 0.76em;
  line-height: 1.2;
  color: var(--deep);
}
.acts { display: flex; align-items: center; gap: 0.28em; margin-top: 0.65em; }
.acts .btn { min-width: 3.9em; padding: 0 0.7em; }
.likes { display: flex; align-items: center; gap: 0.4em; margin-left: auto; font-family: var(--pixel); font-weight: 700; font-size: 1.05em; color: var(--deep); }
.likes .px { --k: 0.75; }
.likes[data-on] .px { animation: beat 0.4s ease; }
@keyframes beat { 50% { transform: scale(1.5); } }
.cap { margin: 0.55em 0 0; font-size: 0.94em; line-height: 1.36; white-space: pre-line; overflow-wrap: anywhere; }
.cap b { margin-right: 0.4em; font-family: var(--pixel); font-weight: 700; font-size: 1.05em; }
.cap-link { display: block; font-size: 0.94em; line-height: 1.36; overflow-wrap: anywhere; }
.meta { display: block; width: fit-content; font-size: 0.88em; line-height: 1.4; color: var(--dim); text-decoration: none; }
a.meta:hover { color: var(--deep); text-decoration: underline; }
.end { margin: 0; padding: 1.6em 0 1.7em; text-align: center; font-size: 0.9em; color: var(--dim); }
.end .px { --k: 0.5; color: var(--rose); }

/* bottom of the main window */
.navbar { flex: 0 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.3em; margin-top: 0.55em; }
.navbar .btn { min-height: 2.2em; padding: 0; }
.tick {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 2em;
  margin-top: 0.5em;
  border: 0.09em solid #e85aa5;
  border-radius: 0.6em;
  background: linear-gradient(#ffb5da 0%, #ff8fc7 48%, #fd72b7 52%, #ff9ccd 100%);
  box-shadow: inset 0 0 0 0.08em rgba(255, 255, 255, 0.6);
  color: #fff;
  font-family: var(--pixel);
  font-weight: 700;
  text-shadow: 0 0.07em 0 #c2267a, 0.07em 0 0 #c2267a, -0.07em 0 0 #c2267a, 0 -0.07em 0 #c2267a;
  overflow: hidden;
}
.tick .px { --k: 0.75; filter: drop-shadow(0 0.07em 0 #c2267a); }
.tick-play { flex: 0 0 auto; display: grid; place-items: center; width: 1.9em; }
.tick-run {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 0.9em, #000 calc(100% - 0.9em), transparent);
}
.tick-text { display: inline-flex; animation: run 28s linear infinite; }
.tick-text > span { display: inline-flex; align-items: center; gap: 0.75em; padding-right: 0.75em; }
.tick[data-paused] .tick-text { animation-play-state: paused; }
.tick-note { display: block; padding: 0 0.9em; }
@keyframes run { to { transform: translateX(-50%); } }

/* about dialog inside the main window */
.veil {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.2em;
  border-radius: 1em;
  background: rgba(255, 221, 238, 0.62);
  backdrop-filter: blur(2px);
}
.about {
  width: 100%;
  max-width: 19em;
  border: 0.11em solid #f79bc8;
  border-radius: 0.9em;
  background: linear-gradient(#fffafd, #ffe1ef);
  box-shadow: inset 0 0 0 0.1em #fff, 0 1em 2.2em -0.8em rgba(214, 43, 133, 0.7);
  animation: pop-in 0.16s ease both;
}
.about-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4em 0.45em 0.4em 0.9em;
  border-bottom: 0.09em solid #f9bedb;
  font-family: var(--wide);
  font-size: 0.72em;
  letter-spacing: 0.1em;
}
.about-bar .orb { font-size: 1.2em; }
.about-body { display: grid; justify-items: center; gap: 0.5em; padding: 1em 1.2em 1.1em; text-align: center; font-size: 0.94em; line-height: 1.36; }
.about-body p { margin: 0; }
.about-body b { font-family: var(--pixel); font-weight: 700; font-size: 1.1em; }
.about-body .btn { min-width: 5.5em; margin-top: 0.3em; }
.about-art {
  display: grid;
  place-items: center;
  width: 3.5em; height: 3.5em;
  border: 0.11em solid #e85aa5;
  border-radius: 0.85em;
  color: #fff;
  background: radial-gradient(circle at 32% 24%, #fff 0, #ffc9e4 22%, #ff8cc6 58%, #f25fa8 100%);
  box-shadow: inset 0 -0.3em 0.5em rgba(214, 43, 133, 0.35), 0 0.5em 1em -0.4em rgba(226, 64, 146, 0.6);
}
.about-art .px { --k: 2; filter: drop-shadow(0 0.1em 0 rgba(196, 36, 122, 0.7)); }

/* ── small windows ─────────────────────────── */
.xw {
  position: absolute;
  display: flex;
  flex-direction: column;
  padding: 0.45em 0.5em 0.5em;
  border: 0.125em solid #f79bc8;
  border-radius: 1.05em;
  background: linear-gradient(#fffafd 0%, #ffe4f1 3em, #ffd6ea 60%, #ffc9e3 100%);
  box-shadow:
    inset 0 0 0 0.11em #fff,
    0 0 0 0.25em rgba(255, 255, 255, 0.75),
    0 1.1em 2.4em -1em rgba(226, 64, 146, 0.6),
    0 0.2em 0.6em rgba(226, 64, 146, 0.18);
  color: var(--ink);
  font-family: var(--dot);
  font-size: var(--d);
  line-height: 1.3;
  transform: translate(var(--dx, 0px), var(--dy, 0px));
}
.xw[data-state="min"], .xw[data-state="closed"] { display: none; }
.xw-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 0.45em; padding: 0 0 0.4em; touch-action: none; user-select: none; }
.xw-bar .addr { padding-left: 0.35em; }
.xw-bar .addr-dot { margin-left: -0.15em; }
.xw-bar .addr-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 0.76em; }
.xw-body, .xw-frame {
  border: 0.09em solid var(--edge);
  border-radius: 0.75em;
  background: #fff;
  box-shadow: inset 0 0.15em 0.4em rgba(239, 127, 183, 0.28), 0 0.09em 0 #fff;
  overflow: hidden;
}
.xw-body { padding: 0.95em 1em 1em; }
.xw-body p { margin: 0; }
.xw .btn { min-width: 5.2em; }
.xw-menu { flex: 0 0 auto; position: relative; z-index: 5; display: flex; padding: 0 0 0.3em; }
.xw-status { flex: 0 0 auto; margin: 0.4em 0.4em 0; font-size: 0.86em; color: var(--soft); }
.xw-frame { position: relative; flex: 1 1 0%; min-height: 0; display: flex; }
.xw-frame iframe { display: block; flex: 1 1 0%; width: 100%; border: 0; background: #ffe6f2; }
.shield { position: absolute; inset: 0; display: none; }
.xw:not([data-front]) .shield, .desk[data-drag] .shield, .cdp:not([data-front]) .shield { display: block; }
.xw[data-max] { inset: 4px; width: auto; height: auto; transform: none; }

.xw-hello { left: 7.6em; top: 56%; width: 20em; }
.xw-hello .xw-body, .xw-off .xw-body { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.5em 0.9em; }
.xw-hello .xw-body > .px, .xw-off .xw-body > .px { --px: 4px; color: var(--hot); }
.xw-hint { font-size: 0.88em; color: var(--soft); }
.xw-acts { grid-column: 1 / -1; display: flex; justify-content: center; gap: 0.5em; margin-top: 0.5em; }
.xw-off { left: calc(50% - 10em); top: 30%; width: 20em; }
.xw-paint { left: 7.6em; top: 1.2em; width: min(44em, 100% - 9em); height: min(41em, 100% - 2.4em); }
.xw-calc { right: 2.5em; top: 1.2em; width: 23.6em; height: min(36em, 100% - 2.4em); }
.xw-note { right: 3.5em; top: 18%; width: 24em; }
.xw-note textarea {
  display: block;
  width: 100%;
  height: 13.5em;
  padding: 0.6em 0.75em;
  border: 0.09em solid var(--edge);
  border-radius: 0.75em;
  outline: 0;
  resize: none;
  background: #fff;
  box-shadow: inset 0 0.15em 0.4em rgba(239, 127, 183, 0.28), 0 0.09em 0 #fff;
  color: var(--ink);
  font-family: var(--dot);
  font-size: 16px;
  line-height: 1.35;
}
.xw-note textarea:focus-visible { border-color: var(--deep); }
.xw-pc { left: calc(50% - 27em); top: 14%; width: 22em; }
.xw-pc .xw-body { display: grid; gap: 0.8em; }
.pc-head { display: flex; align-items: center; gap: 0.9em; }
.pc-head .art { width: 48px; height: 48px; }
.pc-head b { display: block; font-family: var(--pixel); font-weight: 700; font-size: 1.15em; }
.xw-pc dl { display: grid; grid-template-columns: auto 1fr; gap: 0.2em 0.9em; margin: 0; padding: 0.6em 0.8em; border-radius: 0.6em; background: var(--pale); font-size: 0.94em; }
.xw-pc dt { color: var(--soft); }
.xw-pc dd { margin: 0; overflow-wrap: anywhere; }
.xw-pc .xw-acts { margin: 0; }

/* ── CD player ─────────────────────────────── */
.cdp {
  --cd: clamp(190px, calc((100dvh - var(--bar)) * 0.34), 250px);
  position: absolute;
  right: 3em; top: 1.3em;
  display: grid;
  justify-items: center;
  gap: 0.6em;
  width: 300px;
  font-size: var(--d);
  transform: translate(var(--dx, 0px), var(--dy, 0px));
}
.cdp[data-state="min"], .cdp[data-state="closed"] { display: none; }
.cd-disc { position: relative; width: var(--cd); height: var(--cd); border-radius: 50%; cursor: pointer; touch-action: none; user-select: none; }
.cd-disc::before { content: ""; position: absolute; inset: 3%; border-radius: 50%; box-shadow: 0 16px 28px -8px rgba(226, 64, 146, 0.6); }
.cd-disc img {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  pointer-events: none;
  -webkit-user-drag: none;
  image-rendering: pixelated;
  animation: spin 6s linear infinite paused;
}
.cd-disc[data-spin] img { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.cd-screen { position: relative; height: 204px; margin-bottom: 0.3em; border: 0.09em solid var(--edge); border-radius: 0.75em; background: #1a0716; overflow: hidden; }
.cd-live, .cd-live iframe { display: block; width: 100%; height: 100%; border: 0; }
.cd-error {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  margin: 0;
  padding: 0 1.8em;
  background: #1a0716;
  color: #ffc3de;
  font-family: var(--dot);
  font-size: 0.86em;
  text-align: center;
}
.cd-error a { color: #fff; }
.cd-deck {
  display: grid;
  gap: 0.2em;
  width: 100%;
  padding: 0.45em 0.7em 0.5em;
  border: 0.125em solid #f79bc8;
  border-radius: 1.2em;
  background: linear-gradient(#fffafd 0%, #ffe4f1 45%, #ffcfe6 100%);
  box-shadow: inset 0 0 0 0.11em #fff, 0 0 0 0.22em rgba(255, 255, 255, 0.75), 0 0.9em 1.8em -0.8em rgba(226, 64, 146, 0.6);
}
.cd-keys { display: flex; align-items: center; gap: 0.4em; }
.cdp .orb { flex: 0 0 auto; }
.cd-play { width: 2.4em; height: 2.4em; }
.cd-play .px { --k: 1; }
.cdp .orb[aria-pressed="true"] { border-color: #b77a9a; background: radial-gradient(circle at 34% 26%, #fff 0, #f3d6e4 18%, #dba6c2 60%, #c58aab 100%); }
.cdp .orb:disabled { opacity: 0.55; cursor: default; }
.range { appearance: none; height: 1.2em; margin: 0; background: none; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 0.5em; border: 0.09em solid var(--edge); border-radius: 99em; background: #fff; box-shadow: inset 0 0.1em 0.15em rgba(239, 127, 183, 0.45); }
.range::-webkit-slider-thumb {
  appearance: none;
  width: 1.05em; height: 1.05em;
  margin-top: -0.37em;
  border: 0.09em solid #e85aa5;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, #fff 0, #ffd0e7 18%, #ff9bcd 52%, #f76bb2 100%);
  box-shadow: 0 0.08em 0 rgba(255, 255, 255, 0.9);
}
.range::-moz-range-track { height: 0.5em; border: 0.09em solid var(--edge); border-radius: 99em; background: #fff; }
.range::-moz-range-thumb { width: 1em; height: 1em; border: 0.09em solid #e85aa5; border-radius: 50%; background: radial-gradient(circle at 34% 26%, #fff 0, #ffd0e7 18%, #ff9bcd 52%, #f76bb2 100%); }
.range:disabled { opacity: 0.55; cursor: default; }
.cd-vol { flex: 1 1 0%; min-width: 0; }
.cd-note { display: flex; justify-content: space-between; gap: 0.8em; margin: 0; font-family: var(--dot); font-size: 0.86em; color: var(--soft); white-space: nowrap; }
.cd-note span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ── messenger toast ───────────────────────── */
.toast {
  position: absolute;
  right: 9px; bottom: 9px;
  z-index: 800;
  width: 20em;
  max-width: calc(100% - 18px);
  border: 0.125em solid #f79bc8;
  border-radius: 0.95em;
  background: #fff;
  box-shadow: 0 0 0 0.22em rgba(255, 255, 255, 0.75), 0 0.9em 1.8em -0.7em rgba(226, 64, 146, 0.65);
  font-size: var(--d);
  overflow: hidden;
  animation: toast-up 0.55s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes toast-up { from { transform: translateY(calc(100% + 14px)); } }
.toast-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  padding: 0.28em 0.35em 0.32em 0.8em;
  background: linear-gradient(#ffb5da 0%, #ff8fc7 48%, #fd72b7 52%, #ff9ccd 100%);
  box-shadow: inset 0 0 0 0.08em rgba(255, 255, 255, 0.55);
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.02em;
  text-shadow: 0 1px 0 #c2267a, 1px 0 0 #c2267a;
}
.toast-bar .orb { font-size: 0.82em; }
.toast-body {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin: 0;
  padding: 0.6em 0.9em 0.7em;
  font-family: Tahoma, Verdana, Geneva, sans-serif;
  font-size: 0.98em;
  line-height: 1.25;
  color: var(--ink);
}
.toast-body .art { width: 32px; height: 32px; }

/* ── taskbar ───────────────────────────────── */
.task {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 6px;
  height: var(--bar);
  padding: 5px 7px 4px;
  border-top: 0.125em solid #f79bc8;
  background: linear-gradient(#fffafd 0%, #ffdcec 35%, #ffc6e1 100%);
  box-shadow: inset 0 0.11em 0 #fff;
  color: var(--ink);
  font-family: var(--dot);
  font-size: var(--d);
}
.task .anchor { height: 100%; }
.task .btn { height: 100%; min-height: 0; border-radius: 0.6em; }
.start { gap: 0.4em; padding: 0 0.85em 0 0.65em; }
.start .px { --k: 0.75; }
.task { --px: 2px; }
.sep { flex: 0 0 auto; width: 1px; height: 70%; background: #f6a9cf; box-shadow: 1px 0 0 #fff; }
.quick { flex: 0 0 auto; display: flex; gap: 3px; }
.quick button, .quick a { display: grid; place-items: center; width: 1.75em; height: 1.75em; padding: 0; border: 0; border-radius: 0.5em; background: none; cursor: pointer; }
.quick button:hover, .quick a:hover { background: #fff; box-shadow: 0 0 0 0.09em var(--edge); }
.tasks { flex: 1 1 0%; min-width: 0; display: flex; gap: 4px; height: 100%; }
.taskbtn { flex: 0 1 10.5em; min-width: 2.4em; justify-content: flex-start; gap: 0.45em; padding: 0 0.6em; font-size: 0.92em; font-weight: 500; white-space: nowrap; overflow: hidden; }
.taskbtn span { overflow: hidden; text-overflow: ellipsis; }
.tray {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5em;
  height: 100%;
  padding: 0 0.85em 0 0.5em;
  border: 0.09em solid var(--edge);
  border-radius: 99em;
  background: linear-gradient(#fff 55%, #fff3f9);
  box-shadow: inset 0 0.14em 0.22em rgba(239, 127, 183, 0.4);
  font-size: 0.92em;
  white-space: nowrap;
}
.tray button { display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }

.startmenu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 950;
  display: flex;
  gap: 0.35em;
  min-width: 14.5em;
  padding: 0.4em;
  border: 0.125em solid #f79bc8;
  border-radius: 1em;
  background: linear-gradient(#fffafd, #ffe4f1);
  box-shadow: inset 0 0 0 0.11em #fff, 0 0 0 0.22em rgba(255, 255, 255, 0.75), 0 0.9em 1.8em -0.7em rgba(226, 64, 146, 0.65);
  animation: pop-in 0.12s ease both;
}
.startband {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  width: 1.9em;
  padding: 0.7em 0;
  border-radius: 0.6em;
  background: linear-gradient(0deg, #ff5fae, #ffa9d4);
  color: #fff;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 1.05em;
  letter-spacing: 0.04em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-shadow: 1px 0 0 #c2267a;
}
.startlist { flex: 1 1 0%; display: grid; align-content: start; }
.startitem {
  display: flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.33em 1em 0.33em 0.45em;
  border: 0;
  border-radius: 0.5em;
  background: none;
  color: var(--ink);
  font-family: var(--dot);
  font-size: 0.96em;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.startitem .art { width: 24px; height: 24px; }
.startitem .px { margin: 0 3px; color: var(--hot); }
.os .startitem:hover, .os .startitem:focus-visible { background: linear-gradient(#ff9fd0, #ff6fb5); color: #fff; outline: 0; }
.startitem:hover .px, .startitem:focus-visible .px { color: #fff; }
.startsep { height: 0.09em; margin: 0.3em 0.35em; background: #f9c3de; }

.dark {
  position: absolute;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-content: center;
  gap: 0.7em;
  padding: 1.5em;
  border: 0;
  background: #0b0613;
  color: #ff9ccb;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: clamp(18px, 3.2vw, 30px);
  text-align: center;
  cursor: pointer;
  animation: dark-in 0.5s ease both;
}
.dark small { font-family: var(--dot); font-weight: 400; font-size: 0.5em; color: #c58aab; }
@keyframes dark-in { from { opacity: 0; } }

/* ── phones ────────────────────────────────── */
@media (max-width: 700px) {
  .os { --d: 13.5px; }
  .xw, .xw[data-max] { inset: 10px 8px auto 8px; width: auto; transform: none; }
  .xw-paint, .xw-calc { height: calc(100% - 20px); }
  .cdp { left: 50%; right: auto; top: 14px; margin-left: -150px; transform: none; }
  .quick, .quick + .sep { display: none; }
  .taskbtn span { display: none; }
  .taskbtn { flex: 0 0 2.7em; justify-content: center; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tick-text, .sky span, .pop, .about, .toast, .dark, .startmenu, .cd-disc img { animation: none; }
  .screen, .screen[data-phase="out"] { transition-duration: 0.01s; }
  .tile img { transition: none; }
}
