/* ==========================================================================
   THERE IS NO MEME — $ILY
   A Windows XP desktop dropped into a Y2K pink sparkle heaven.
   ========================================================================== */

:root {
  --pink-1: #ffb3da;
  --pink-2: #ff8fc8;
  --pink-3: #ffd6ea;
  --hot: #ff2d95;
  --hot-dk: #c40f6d;
  --lav: #c9b6ff;
  --mint: #b6ffe6;
  --butter: #fff1a8;
  --sky: #a8e4ff;
  --ink: #1c1330;
  --face: #ece9d8;
  --face-dk: #d8d5c6;
  --xp-border: #0831d9;
  --xp-blue: #0058ee;
  --bar-h: 38px;
  --marq-h: 30px;
  --f-display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --f-body: "Comic Neue", "Comic Sans MS", "Trebuchet MS", sans-serif;
  --f-pixel: "Silkscreen", "Courier New", monospace;
  --f-title: "Trebuchet MS", "Comic Neue", sans-serif;
  --cur-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='32' viewBox='0 0 28 32'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ff5e5e'/%3E%3Cstop offset='.25' stop-color='%23ffc54d'/%3E%3Cstop offset='.5' stop-color='%237dff9b'/%3E%3Cstop offset='.75' stop-color='%235ec8ff'/%3E%3Cstop offset='1' stop-color='%23d78bff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3 2 L3 26 L9 20 L13 29 L18 27 L14 18 L23 18 Z' fill='url(%23g)' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, auto;
  --cur-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ff5e5e'/%3E%3Cstop offset='.3' stop-color='%23ffc54d'/%3E%3Cstop offset='.55' stop-color='%237dff9b'/%3E%3Cstop offset='.8' stop-color='%235ec8ff'/%3E%3Cstop offset='1' stop-color='%23d78bff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M14 25 C6 18 2 14 2 9 a6 6 0 0 1 12-2 a6 6 0 0 1 12 2 c0 5-4 9-12 16z' fill='url(%23g)' stroke='%23fff' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 14 14, pointer;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: #ffa9d6;
  background-image:
    radial-gradient(ellipse at 15% 10%, #ffd9ec 0%, transparent 45%),
    radial-gradient(ellipse at 85% 90%, #ffc2e2 0%, transparent 50%),
    radial-gradient(ellipse at 60% 40%, #ff9fd0 0%, transparent 60%),
    linear-gradient(180deg, #ffb6dc, #ff9ccc 60%, #ffadd8);
  background-attachment: fixed;
  cursor: var(--cur-arrow);
  overflow-x: hidden;
}

a, button, [role="button"], label, summary { cursor: var(--cur-heart); }

::selection { background: var(--hot); color: #fff; }

:focus-visible { outline: 3px solid var(--hot); outline-offset: 2px; }

img { max-width: 100%; height: auto; display: block; }

/* ---- background layers ---- */
#stars {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

.holo {
  position: fixed; inset: -20%;
  z-index: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 45%, rgba(182,255,230,.25) 50%, rgba(201,182,255,.25) 55%, transparent 70%);
  background-size: 200% 200%;
  animation: holo 14s ease-in-out infinite alternate;
  mix-blend-mode: soft-light;
}
@keyframes holo { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }

.floaters { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.floaters span {
  position: absolute; bottom: -40px;
  font-size: 22px; opacity: 0;
  animation: rise 16s linear infinite;
  filter: drop-shadow(0 2px 0 rgba(255,255,255,.6));
}
.floaters span:nth-child(1){ left: 6%;  animation-delay: 0s;   font-size: 18px; }
.floaters span:nth-child(2){ left: 22%; animation-delay: 4s;   font-size: 26px; }
.floaters span:nth-child(3){ left: 41%; animation-delay: 9s;   font-size: 16px; }
.floaters span:nth-child(4){ left: 58%; animation-delay: 2s;   font-size: 22px; }
.floaters span:nth-child(5){ left: 73%; animation-delay: 12s;  font-size: 28px; }
.floaters span:nth-child(6){ left: 90%; animation-delay: 6s;   font-size: 18px; }
@keyframes rise {
  0%   { transform: translateY(0) rotate(-8deg); opacity: 0; }
  8%   { opacity: .9; }
  50%  { transform: translateY(-55vh) rotate(10deg) translateX(18px); }
  92%  { opacity: .8; }
  100% { transform: translateY(-115vh) rotate(-6deg); opacity: 0; }
}

/* ---- fx layer (cursor hearts, bursts) ---- */
#fx { position: fixed; inset: 0; z-index: 90; pointer-events: none; overflow: hidden; }
.trail-heart {
  position: absolute; left: 0; top: 0;
  font-size: var(--s, 14px); line-height: 1;
  color: var(--c, #ff2d95);
  text-shadow: 0 0 6px #fff, 0 1px 0 #fff;
  transform: translate(-50%, -50%);
  animation: trail .9s ease-out forwards;
  will-change: transform, opacity;
}
@keyframes trail {
  0%   { transform: translate(-50%, -50%) scale(.4) rotate(0deg); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% - 60px)) scale(1.1) rotate(var(--r, 20deg)); opacity: 0; }
}
.burst-heart {
  position: absolute; left: 0; top: 0;
  font-size: var(--s, 18px); line-height: 1;
  color: var(--c, #ff2d95);
  text-shadow: 0 0 8px #fff;
  transform: translate(-50%, -50%);
  animation: burst 1s cubic-bezier(.2,.7,.3,1) forwards;
  will-change: transform, opacity;
}
@keyframes burst {
  0%   { transform: translate(-50%, -50%) scale(.3); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2) rotate(var(--r)); opacity: 0; }
}

/* ---- marquee ---- */
.marquee {
  position: fixed; top: 0; left: 0; right: 0; height: var(--marq-h);
  z-index: 40; overflow: hidden;
  display: flex; align-items: center;
  background: repeating-linear-gradient(135deg, #ff2d95 0 18px, #ff56ad 18px 36px);
  border-bottom: 2px solid #fff;
  box-shadow: 0 2px 0 #c40f6d, 0 6px 16px rgba(196,15,109,.35);
  color: #fff; font-family: var(--f-pixel); font-size: 12px; letter-spacing: .5px;
  text-shadow: 1px 1px 0 #a4085a;
}
.marquee__track {
  display: flex; white-space: nowrap; gap: 0;
  animation: marquee 32s linear infinite;
  will-change: transform;
}
.marquee__track span { padding: 0 22px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- desktop grid ---- */
.desktop {
  position: relative; z-index: 1;
  max-width: 1420px; margin: 0 auto;
  padding: calc(var(--marq-h) + 14px) 12px calc(var(--bar-h) + 28px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
}
.col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.col-side { display: none; }

@media (min-width: 980px) {
  .desktop {
    grid-template-columns: 200px minmax(0, 1fr) 300px;
    align-items: start;
    padding: calc(var(--marq-h) + 22px) 22px calc(var(--bar-h) + 40px);
    gap: 22px;
  }
  .col-side { display: flex; }
}

/* ---- desktop icons ---- */
.icons {
  display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px;
  scrollbar-width: none;
}
.icons::-webkit-scrollbar { display: none; }
.icon {
  flex: 0 0 auto; width: 84px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: none; border: 0; padding: 6px 2px;
  font: 12px/1.15 var(--f-body); color: #fff; text-align: center;
  text-shadow: 1px 1px 0 #7a0b4a, 0 0 6px rgba(122,11,74,.7);
  border-radius: 4px; text-decoration: none;
}
.icon__img {
  width: 44px; height: 44px; display: grid; place-items: center;
  font-size: 32px; line-height: 1;
  filter: drop-shadow(1px 2px 0 rgba(120,0,80,.35));
  transition: transform .15s ease;
}
.icon__img img { width: 42px; height: 42px; border-radius: 6px; border: 2px solid #fff; object-fit: cover; }
.icon:hover .icon__img, .icon:focus-visible .icon__img { transform: scale(1.12) rotate(-4deg); }
.icon:hover, .icon:focus-visible { background: rgba(255,255,255,.22); outline: 1px dotted #fff; }
@media (min-width: 980px) {
  .icons { flex-direction: column; overflow: visible; gap: 2px; }
}

/* ---- XP window ---- */
.win {
  position: relative;
  background: var(--face);
  border: 3px solid var(--xp-border);
  border-top: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 12px 34px rgba(150, 0, 90, .28), 0 0 0 1px rgba(255,255,255,.35);
  min-width: 0;
}
.win[hidden] { display: none !important; }
.win.is-active { box-shadow: 0 18px 44px rgba(150, 0, 90, .38), 0 0 0 1px rgba(255,255,255,.5); }
.win.is-dragging { box-shadow: 0 26px 60px rgba(150, 0, 90, .45); }
.win--float { position: fixed; z-index: 60; }

.win__bar {
  height: 30px; margin: -1px -1px 0;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(180deg, #0997ff 0%, #0053ee 8%, #0050ee 40%, #0066ff 88%, #0058ee 100%);
  box-shadow: inset 0 1px 0 #6fb3ff, inset 0 -1px 0 #003cc4;
  display: flex; align-items: center; gap: 6px; padding: 0 5px 0 8px;
  color: #fff; font: 700 13px/1 var(--f-title);
  text-shadow: 1px 1px 0 #0a1e78;
  user-select: none; -webkit-user-select: none;
}
.win:not(.is-active) .win__bar { filter: saturate(.55) brightness(1.08); }
.win__title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.win__title img { width: 16px; height: 16px; border-radius: 3px; }
.win__btn {
  width: 21px; height: 21px; flex: 0 0 auto;
  border: 1px solid #fff; border-radius: 3px;
  background: linear-gradient(180deg, #4b9bff, #1f63e0 55%, #1954c8);
  box-shadow: inset 0 0 0 1px #2c66d6, inset 0 -3px 4px rgba(0,0,40,.25);
  color: #fff; font: 700 13px/1 var(--f-title); display: grid; place-items: center;
  padding: 0; text-shadow: none;
}
.win__btn:hover { filter: brightness(1.15); }
.win__btn:active { filter: brightness(.9); }
.win__btn--close { background: linear-gradient(180deg, #f2a58a, #e0532f 50%, #c73c1c); box-shadow: inset 0 0 0 1px #d7623f, inset 0 -3px 4px rgba(60,0,0,.3); }
.win__btn svg { width: 11px; height: 11px; display: block; }
.win__body { padding: 14px; }
.win__body > :first-child { margin-top: 0; }
.win__body > :last-child { margin-bottom: 0; }

@media (min-width: 980px) {
  .win--flow .win__bar { cursor: grab; }
  .win--flow.is-dragging .win__bar { cursor: grabbing; }
  .win--float .win__bar { cursor: grab; }
}

/* typography inside windows */
.win h1, .win h2, .win h3 { margin: 0 0 8px; }
.win p { margin: 0 0 10px; }
.win ul { margin: 0 0 10px; padding-left: 22px; }
.win li { margin: 3px 0; }
.win a:not(.xp-btn) { color: #0000ee; text-decoration: underline; }
.win a:not(.xp-btn):hover { color: var(--hot); }

.meme-text {
  font-family: var(--f-display);
  text-transform: uppercase; letter-spacing: .02em; line-height: .95;
  color: #fff;
  -webkit-text-stroke: 1.5px var(--hot-dk);
  paint-order: stroke fill;
  text-shadow:
    2px 2px 0 var(--hot-dk), -1px -1px 0 var(--hot-dk), 1px -1px 0 var(--hot-dk), -1px 1px 0 var(--hot-dk),
    0 6px 14px rgba(196,15,109,.35);
}
.meme-text--xl { font-size: clamp(38px, 8.6vw, 74px); }
.meme-text--lg { font-size: clamp(26px, 5vw, 44px); }
.meme-text--pink { color: var(--pink-3); }

.pixel { font-family: var(--f-pixel); font-size: 11px; letter-spacing: .5px; }

/* ---- XP buttons ---- */
.xp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; margin: 0;
  font: 700 14px/1.1 var(--f-body); color: #000; text-decoration: none;
  background: linear-gradient(180deg, #fff, #ecebe5 45%, #d8d5c6);
  border: 1px solid #003c74; border-radius: 3px;
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #c9c5b3;
  transition: transform .12s ease, box-shadow .12s ease;
  white-space: nowrap;
}
.xp-btn:hover, .xp-btn:focus-visible { box-shadow: inset 0 0 0 2px #ffcf6b, inset 0 0 0 3px #f7a800, 0 4px 10px rgba(0,0,0,.15); transform: translateY(-1px); }
.xp-btn:active { transform: translateY(1px); box-shadow: inset 1px 1px 3px rgba(0,0,0,.3); }
.xp-btn img, .xp-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.xp-btn--pink { background: linear-gradient(180deg, #ffe3f1, #ff9fd0 50%, #ff6fbd); border-color: #b8106b; color: #3a0020; }
.xp-btn--pink:hover { box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px var(--hot), 0 6px 14px rgba(255,45,149,.35); }
.xp-btn--dark { background: linear-gradient(180deg, #4a4a4a, #1a1a1a 55%, #000); color: #fff; border-color: #000; }
.xp-btn--dark:hover { box-shadow: inset 0 0 0 2px #ffcf6b, inset 0 0 0 3px #f7a800, 0 6px 14px rgba(0,0,0,.35); }
.xp-btn--sm { padding: 5px 10px; font-size: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }

/* ---- hero window ---- */
.hero { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .hero { grid-template-columns: minmax(0, 46%) minmax(0, 1fr); align-items: center; gap: 22px; }
}
.hero__frame {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 560px; margin: 0 auto;
  padding: 14px; border-radius: 18px; overflow: hidden; isolation: isolate;
  background: #fff;
  box-shadow: 0 0 0 3px var(--hot), 0 0 0 9px #ffd1e8, 0 22px 44px rgba(255,45,149,.35);
}
.hero__rays {
  position: absolute; inset: -40%; z-index: 0;
  background:
    repeating-conic-gradient(from 0deg, rgba(255,255,255,0) 0 9deg, rgba(255,255,255,.55) 9deg 18deg),
    conic-gradient(from 90deg, #ff9ecf, #ffe08a, #b8ffe8, #a8e4ff, #c9b6ff, #ff9ecf);
  animation: spin 22s linear infinite;
}
.hero__frame::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 58%, rgba(255,255,255,.35) 100%);
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__stage {
  position: relative; z-index: 1; width: 100%; height: 100%;
  border-radius: 10px; overflow: hidden; background: #ffc9e4;
  box-shadow: 0 0 0 3px #fff, 0 10px 24px rgba(120,0,70,.35);
  animation: breathe 3.2s ease-in-out infinite;
  transform-origin: 50% 50%;
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.015); } }
.hero__stage canvas, .hero__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__stage img.is-fallback { animation: dream 8s ease-in-out infinite; }
@keyframes dream { 0%, 100% { filter: saturate(1.15) hue-rotate(0deg); } 50% { filter: saturate(1.4) hue-rotate(-14deg) brightness(1.06); } }
.hero__stage[data-armed] { cursor: var(--cur-heart); }
.hero__flash {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; text-align: center;
  padding: 10%; pointer-events: none; opacity: 0;
  font-family: var(--f-display); font-size: clamp(28px, 6vw, 54px); line-height: 1; color: #fff; text-transform: uppercase;
  -webkit-text-stroke: 2px #000; paint-order: stroke fill;
  text-shadow: 3px 3px 0 #000, 0 0 30px #fff;
}
.hero__flash.is-on { animation: flash 1.5s ease-out forwards; }
@keyframes flash {
  0%   { opacity: 0; transform: scale(.6) rotate(-6deg); }
  10%  { opacity: 1; transform: scale(1.08) rotate(2deg); }
  70%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.15); }
}
.hero__hearts { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hero__hearts span { position: absolute; font-size: 22px; opacity: .9; animation: bob 4s ease-in-out infinite; filter: drop-shadow(0 0 4px #fff); }
.hero__hearts span:nth-child(1){ left: 6%;  top: 12%; animation-delay: 0s; }
.hero__hearts span:nth-child(2){ right: 8%; top: 20%; animation-delay: -1.3s; font-size: 18px; }
.hero__hearts span:nth-child(3){ left: 10%; bottom: 18%; animation-delay: -2.4s; font-size: 16px; }
.hero__hearts span:nth-child(4){ right: 12%; bottom: 12%; animation-delay: -3s; font-size: 26px; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-6deg) scale(1); } 50% { transform: translateY(-10px) rotate(8deg) scale(1.12); } }
.hero__hint { position: relative; z-index: 2; text-align: center; margin: 14px 0 0; font-size: 13px; font-weight: 700; color: #7a0b4a; }

.hero__copy { min-width: 0; }
.hero__lede { font-size: 16px; margin: 10px 0 12px; }
.hero__lede b { color: var(--hot-dk); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chip {
  font-family: var(--f-pixel); font-size: 11px; letter-spacing: .5px;
  padding: 5px 9px; border-radius: 999px;
  background: #fff; border: 2px solid var(--hot); color: var(--hot-dk);
  box-shadow: 0 2px 0 var(--hot);
}
.chip--lav { border-color: #7a5cff; color: #4a2fd6; box-shadow: 0 2px 0 #7a5cff; }
.chip--mint { border-color: #18b98a; color: #0b7a5a; box-shadow: 0 2px 0 #18b98a; }

.ca { margin: 0 0 4px; }
.ca__label { font-family: var(--f-pixel); font-size: 10px; letter-spacing: .5px; color: #6d3a58; margin: 0 0 4px; text-transform: uppercase; }
.ca__box {
  display: flex; align-items: stretch; gap: 0;
  background: #fff; border: 2px inset #a9a69a; border-radius: 3px;
}
.ca__box code {
  flex: 1; min-width: 0; padding: 8px 10px; font: 12px/1.4 "Courier New", monospace;
  word-break: break-all; color: #222; user-select: all;
}
.ca__box button { border-radius: 0 2px 2px 0; border-width: 0 0 0 1px; }
.ca__box button.is-done { background: linear-gradient(180deg, #d9ffe9, #7ee8a6 50%, #43cc7a); }

/* ---- folder / gallery window ---- */
.explorer__bar {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px;
  background: #f1efe2; border-bottom: 1px solid #c9c5b3; font-size: 12px;
}
.explorer__addr { flex: 1; min-width: 0; background: #fff; border: 1px inset #aaa; padding: 3px 6px; font: 12px "Courier New", monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.explorer__body { padding: 12px; background: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.file {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 4px; border: 1px solid transparent; border-radius: 4px;
  background: none; font: 11px/1.2 var(--f-body); color: #111; text-align: center;
  transition: transform .15s ease;
}
.file img { width: 96px; height: 96px; object-fit: cover; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); border-radius: 3px; transition: transform .2s ease; }
.file:hover, .file:focus-visible { background: #e8f0ff; border-color: #7da2ff; }
.file:hover img { transform: rotate(-3deg) scale(1.06); }
.file span { word-break: break-word; }
.explorer__status { padding: 4px 8px; font-size: 11px; background: #f1efe2; border-top: 1px solid #c9c5b3; color: #333; display: flex; justify-content: space-between; }

/* ---- side memes ---- */
.polaroid {
  display: block; padding: 8px 8px 22px; background: #fff; border: 0;
  box-shadow: 0 6px 18px rgba(120,0,70,.25); transform: rotate(var(--r, -2deg));
  transition: transform .2s ease; width: 100%;
}
.polaroid img { width: 100%; height: auto; display: block; }
.polaroid:hover { transform: rotate(0deg) scale(1.04); z-index: 2; }
.polaroid__cap { display: block; margin-top: 6px; font: 11px var(--f-pixel); color: #7a0b4a; text-align: center; }

.side-sticker {
  font: 700 12px var(--f-body); text-align: center; color: #7a0b4a;
  background: var(--butter); border: 2px dashed var(--hot); padding: 8px; transform: rotate(1.5deg);
}
.blink { animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* ---- LOVEAMP ---- */
.amp {
  background: #1b1b2b; color: #b9ff9c; border: 3px solid #6f6f9d; border-radius: 4px;
  font-family: var(--f-pixel); font-size: 10px;
  box-shadow: 0 10px 30px rgba(40,0,60,.4), inset 0 0 0 1px #2c2c48;
}
.amp__bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px; background: linear-gradient(#5c5c8f, #33335c); color: #fff; letter-spacing: 1px; font-size: 10px; }
.amp__bar b { color: #ffd0ef; }
.amp__screen { padding: 8px 10px; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.amp__time { font-size: 20px; color: #7dff9b; text-shadow: 0 0 8px #7dff9b; }
.amp__track { color: #ffd0ef; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amp__meta { grid-column: 1 / -1; display: flex; justify-content: space-between; color: #8e8ec0; }
.amp__viz { grid-column: 1 / -1; height: 36px; display: flex; align-items: flex-end; gap: 2px; padding: 2px; background: #0c0c18; border: 1px inset #4a4a7a; }
.amp__viz i { flex: 1; background: linear-gradient(180deg, #ff2d95, #ffe08a 50%, #7dff9b); height: 30%; animation: viz 1.1s ease-in-out infinite alternate; transform-origin: bottom; }
@keyframes viz { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.amp__ctl { display: flex; gap: 3px; padding: 0 10px 8px; }
.amp__ctl button { flex: 1; background: linear-gradient(#5a5a85, #2c2c4a); color: #fff; border: 1px outset #7a7aa8; font: 11px var(--f-pixel); padding: 4px 0; }
.amp__ctl button:active { border-style: inset; }
.amp__list { list-style: none; margin: 0; padding: 6px; background: #0c0c18; border-top: 2px solid #6f6f9d; max-height: 190px; overflow: auto; }
.amp__list button {
  width: 100%; text-align: left; background: none; border: 0; color: #b9ff9c;
  font: 10px/1.6 var(--f-pixel); padding: 2px 4px; display: flex; justify-content: space-between; gap: 8px;
}
.amp__list button:hover, .amp__list button:focus-visible { background: #2a2a55; color: #fff; }
.amp__list button span:last-child { color: #8e8ec0; }

/* ---- steps ---- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li {
  position: relative; padding: 10px 12px 10px 52px; background: #fff; border: 1px solid #c9c5b3; border-radius: 4px;
  box-shadow: 0 2px 0 #c9c5b3;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 10px; top: 8px; width: 32px; height: 32px;
  display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(180deg, #ff9fd0, var(--hot)); color: #fff;
  font: 700 18px var(--f-display); box-shadow: 0 2px 0 var(--hot-dk);
}
.steps b { color: var(--hot-dk); }
.fine { font-size: 12px; color: #6d3a58; margin: 12px 0 0; padding: 8px 10px; background: var(--butter); border: 1px dashed var(--hot); }

.checklist { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 4px; }
.checklist li { padding-left: 26px; position: relative; }
.checklist li::before { content: "✔"; position: absolute; left: 4px; top: 0; color: #12a558; font-weight: 700; }
.checklist li.no::before { content: "✘"; color: #d61c1c; }

/* ---- notepad / letter ---- */
.notepad { width: min(92vw, 460px); }
.notepad__menu { display: flex; gap: 12px; padding: 3px 8px; font-size: 12px; background: var(--face); border-bottom: 1px solid #c9c5b3; }
.notepad__menu span:hover { text-decoration: underline; }
.notepad__text {
  margin: 0; padding: 10px; background: #fff; border: 2px inset #a9a69a;
  font: 14px/1.5 "Lucida Console", "Courier New", monospace; color: #111;
  height: min(46vh, 300px); overflow: auto; white-space: pre-wrap; word-break: break-word;
}
.notepad__text::after { content: "▌"; animation: blink 1s steps(2, start) infinite; }

.letter { width: min(92vw, 520px); }
.letter__paper {
  background: repeating-linear-gradient(#fff 0 27px, #cfe3ff 27px 28px);
  background-color: #fff; padding: 14px 18px 18px 40px; border: 2px inset #a9a69a;
  font: 15px/28px var(--f-body); color: #26205a; position: relative; max-height: 56vh; overflow: auto;
}
.letter__paper::before { content: ""; position: absolute; left: 30px; top: 0; bottom: 0; width: 2px; background: #ffb3c6; }
.letter__paper p { margin: 0; }
.letter__sig { font-family: var(--f-display); font-size: 22px; color: var(--hot); margin-top: 8px !important; }

/* ---- dialog (error box) ---- */
.dlg { width: min(92vw, 380px); }
.dlg__body { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 16px 16px 10px; font-size: 14px; }
.dlg__icon { width: 40px; height: 40px; }
.dlg__actions { display: flex; justify-content: flex-end; gap: 8px; padding: 6px 14px 14px; }
.dlg__actions .xp-btn { min-width: 96px; justify-content: center; }
.dlg.is-shake { animation: shake .4s ease; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* ---- viewer (Windows Picture and Fax Viewer) ---- */
.viewer-overlay {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 12px;
  background: rgba(255, 140, 200, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.viewer-overlay[hidden] { display: none; }
.viewer { width: min(94vw, 760px); max-height: calc(100vh - 24px); display: flex; flex-direction: column; }
.viewer .win__body { padding: 8px; background: #6c6c6c; display: grid; place-items: center; min-height: 200px; }
.viewer img { max-height: calc(100vh - 190px); width: auto; max-width: 100%; object-fit: contain; border: 1px solid #333; background: #fff; }
.viewer__ctl { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; background: var(--face); border-top: 1px solid #c9c5b3; flex-wrap: wrap; }
.viewer__name { flex: 1 1 100%; text-align: center; font: 12px "Courier New", monospace; color: #333; }
@media (min-width: 560px) { .viewer__name { flex: 1; text-align: left; } }

/* ---- start menu ---- */
.startmenu {
  position: fixed; left: 0; bottom: var(--bar-h); z-index: 80;
  width: min(94vw, 360px); border: 2px solid #0831d9; border-radius: 8px 8px 0 0;
  background: #fff; box-shadow: 0 -6px 30px rgba(0,0,80,.35); overflow: hidden;
  font-size: 13px;
}
.startmenu[hidden] { display: none; }
.startmenu__head {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: linear-gradient(180deg, #1a5be8, #0b45c6 60%, #1755dd); color: #fff; font: 700 15px var(--f-title);
  text-shadow: 1px 1px 0 #0a1e78;
}
.startmenu__head img { width: 40px; height: 40px; border-radius: 4px; border: 2px solid #fff; }
.startmenu__list { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
.startmenu__list a, .startmenu__list button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 7px 8px; background: none; border: 0; border-radius: 3px;
  font: 13px var(--f-body); color: #111; text-decoration: none;
}
.startmenu__list a:hover, .startmenu__list button:hover, .startmenu__list a:focus-visible, .startmenu__list button:focus-visible { background: #2f6fea; color: #fff; }
.startmenu__list img, .startmenu__list .ico { width: 24px; height: 24px; display: grid; place-items: center; font-size: 20px; border-radius: 4px; }
.startmenu__list small { display: block; font-size: 11px; opacity: .7; }
.startmenu__foot { display: flex; justify-content: flex-end; gap: 6px; padding: 8px; background: linear-gradient(180deg, #3f7ff0, #1a5be8); }
.startmenu__foot button { background: none; border: 0; color: #fff; font: 12px var(--f-body); padding: 4px 8px; border-radius: 3px; }
.startmenu__foot button:hover { background: rgba(255,255,255,.2); }

/* ---- taskbar ---- */
.taskbar {
  position: fixed; left: 0; right: 0; bottom: 0; height: var(--bar-h); z-index: 85;
  display: flex; align-items: stretch;
  background: linear-gradient(180deg, #3a7bf3 0%, #245edb 10%, #1f4fd0 50%, #1941a5 100%);
  border-top: 1px solid #6f9ff5; box-shadow: 0 -3px 12px rgba(0,0,60,.35);
}
.start {
  display: flex; align-items: center; gap: 6px; padding: 0 20px 0 12px; margin: 2px 0;
  background: linear-gradient(180deg, #5ad35e, #2f9e34 50%, #26852c);
  border: 0; border-radius: 0 12px 12px 0; color: #fff;
  font: italic 700 17px var(--f-title); text-shadow: 1px 1px 0 #0d4f12;
  box-shadow: inset 0 -3px 5px rgba(0,0,0,.35), inset 0 2px 0 #9cf09f, 2px 0 4px rgba(0,0,0,.3);
}
.start:hover { filter: brightness(1.1); }
.start.is-open { box-shadow: inset 0 3px 6px rgba(0,0,0,.45); filter: brightness(.9); }
.start__logo { width: 22px; height: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; transform: skewX(-8deg); }
.start__logo i { border-radius: 2px 6px 2px 6px; }
.start__logo i:nth-child(1){ background: #ff4b4b; } .start__logo i:nth-child(2){ background: #6bd46b; }
.start__logo i:nth-child(3){ background: #4b8fff; } .start__logo i:nth-child(4){ background: #ffd84b; }
.taskbar__items { flex: 1; min-width: 0; display: flex; gap: 3px; padding: 4px 6px; overflow: hidden; }
.taskbar__item {
  flex: 0 1 160px; min-width: 34px; display: flex; align-items: center; gap: 6px; padding: 0 8px;
  background: linear-gradient(180deg, #3d84f5, #2a6be6); border: 1px solid #1c4ec9; border-radius: 3px;
  color: #fff; font: 12px var(--f-title); text-shadow: 1px 1px 0 #0a1e78; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: inset 0 1px 0 #7fb0ff;
}
.taskbar__item span { overflow: hidden; text-overflow: ellipsis; }
.taskbar__item.is-active { background: linear-gradient(180deg, #1a4ab8, #1c50c4); box-shadow: inset 0 2px 4px rgba(0,0,40,.5); }
.taskbar__item:hover { filter: brightness(1.12); }
@media (max-width: 600px) { .taskbar__item span { display: none; } .taskbar__item { flex: 0 0 auto; padding: 0 9px; } }
.tray {
  display: flex; align-items: center; gap: 10px; padding: 0 12px 0 10px;
  background: linear-gradient(180deg, #1290ee, #0c6ee0 60%, #0d5fc9); border-left: 1px solid #0a4bc7;
  box-shadow: inset 1px 0 0 #3fa0ff; color: #fff; font: 11px var(--f-pixel);
}
.tray span { line-height: 1; }
.tray .heartbeat { display: inline-block; animation: hb 1.2s ease-in-out infinite; font-size: 14px; }
@keyframes hb { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.3); } 45% { transform: scale(1); } 60% { transform: scale(1.2); } }

/* ---- footer ---- */
.footer { text-align: center; font-size: 12px; color: #7a0b4a; padding: 8px 0 0; text-shadow: 0 1px 0 #fff; }
.footer a { color: #7a0b4a; }

/* ---- utilities ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.stamp {
  display: inline-block; font: 700 11px var(--f-pixel); color: #fff; background: var(--hot);
  padding: 4px 8px; transform: rotate(-3deg); box-shadow: 2px 2px 0 var(--hot-dk); letter-spacing: 1px;
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .hero__rays, .holo, .floaters { display: none; }
  .marquee__track { animation: none; }
}
