:root {
  --pink: #ff7fbf;
  --pink-lt: #ffc2e1;
  --pink-dk: #d4458f;
  --title-1: #ff9ccf;
  --title-2: #e0559c;
  --title-3: #c43b80;
  --ink: #2b1026;
  --xp-face: #f6eff3;
  --xp-line: #b8879f;
  --night: #120818;
  --task-h: 40px;
  --tahoma: Tahoma, "Segoe UI", Verdana, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 13px/1.45 var(--tahoma); color: var(--ink); background: #ff9fcf; overflow: hidden; cursor: default; }
img { display: block; max-width: 100%; }
a { color: #c2186b; }
button { font: inherit; color: inherit; }
kbd { font-family: var(--tahoma); font-size: .9em; background: #fff; border: 1px solid #a88; border-bottom-width: 3px; border-radius: 4px; padding: 0 .35em; }
code { font-family: "Lucida Console", Consolas, monospace; font-size: .92em; }
[hidden] { display: none !important; }

/* ================================================================ boot */
.boot { position: fixed; inset: 0; z-index: 500; background: #000; color: #fff; display: grid; place-items: center; cursor: pointer; transition: opacity .8s; }
.boot.off { opacity: 0; pointer-events: none; }
.boot-inner { display: grid; justify-items: center; gap: .35rem; }
.boot-logo { width: 92px; border-radius: 22px; box-shadow: 0 0 40px rgba(255, 127, 191, .5); animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.05); box-shadow: 0 0 70px rgba(255, 127, 191, .8); } }
.boot-name { margin: .6rem 0 0; font: italic 700 15px var(--tahoma); letter-spacing: .02em; color: #ddd; }
.boot-xp { margin: 0; font: 700 46px/1 "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif; letter-spacing: -.02em; }
.boot-xp b { color: #ff7fbf; font-style: italic; }
.boot-xp i { font-size: 15px; color: #ffb3d9; font-style: normal; display: block; text-align: right; letter-spacing: .1em; }
.boot-bar { width: 150px; height: 16px; margin-top: 2.2rem; border: 2px solid #b2b2b2; border-radius: 4px; padding: 2px; overflow: hidden; position: relative; }
.boot-bar i { position: absolute; top: 2px; width: 9px; height: 8px; border-radius: 1px; background: linear-gradient(#ffd0ea, #ff4fa3 50%, #c21d70); animation: run 2s linear infinite; }
.boot-bar i:nth-child(2) { animation-delay: .12s; }
.boot-bar i:nth-child(3) { animation-delay: .24s; }
@keyframes run { from { left: -30px; } to { left: 160px; } }
.boot-go { margin-top: 1.6rem; background: none; border: 0; color: #ffb3d9; font: 18px "VT323", monospace; letter-spacing: .08em; cursor: pointer; animation: blinkt 1.2s steps(2) infinite; }
@keyframes blinkt { 50% { opacity: .35; } }
.boot-foot { position: absolute; bottom: 18px; left: 22px; margin: 0; font-size: 12px; color: #888; }

/* ================================================================ desktop + wallpaper */
.desk { position: fixed; inset: 0; overflow: hidden; }
.wall { position: absolute; inset: 0; background: linear-gradient(180deg, #ff9fd6 0%, #ffc6e6 45%, #ffe3f2 62%); transition: filter 90s linear; }
.desk.late .wall { filter: hue-rotate(-28deg) saturate(.7) brightness(.55); }
.desk.dark .wall { filter: hue-rotate(-40deg) saturate(.5) brightness(.28); transition-duration: 4s; }
.hill { position: absolute; left: -20%; right: -20%; bottom: -55%; height: 95%; border-radius: 50%; background: radial-gradient(ellipse at 40% 20%, #a6f08a, #5cc24a 40%, #3d9a3a 75%); box-shadow: inset 0 30px 60px rgba(255, 255, 255, .25); }
.hill.h2 { left: 30%; right: -40%; bottom: -62%; background: radial-gradient(ellipse at 40% 20%, #b6f79d, #6bd05a 45%, #3f9e3b 80%); }
.cloud { position: absolute; height: 60px; width: 200px; border-radius: 60px; background: rgba(255, 255, 255, .85); filter: blur(8px); animation: drift linear infinite; }
.cloud::after { content: ""; position: absolute; left: 40px; top: -30px; width: 100px; height: 80px; border-radius: 50%; background: inherit; }
.c1 { top: 10%; animation-duration: 90s; left: -260px; }
.c2 { top: 24%; animation-duration: 130s; animation-delay: -60s; left: -260px; transform: scale(.7); }
.c3 { top: 6%; animation-duration: 160s; animation-delay: -110s; left: -260px; transform: scale(1.3); }
@keyframes drift { to { left: 110%; } }

/* desktop icons */
.icons { position: absolute; top: 10px; left: 8px; bottom: calc(var(--task-h) + 10px); display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; gap: 6px; z-index: 1; }
.icon { width: 82px; padding: 6px 2px; background: none; border: 1px solid transparent; display: grid; justify-items: center; gap: 4px; cursor: pointer; color: #fff; text-shadow: 1px 1px 2px rgba(0, 0, 0, .9); }
.icon img, .icon .ico { width: 40px; height: 40px; border-radius: 9px; filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, .4)); }
.icon span:last-child { font-size: 12px; line-height: 1.25; padding: 1px 5px; border-radius: 3px; background: rgba(60, 10, 40, .35); }
.icon:hover span:last-child, .icon:focus span:last-child { background: #3168d5; outline: 1px dotted #fff; }
.icon:focus { outline: none; }
.ico { display: block; }
.ico-grass { background: linear-gradient(#6ac24b 0 34%, #8a5a3b 34%); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .15); image-rendering: pixelated; }
.ico-msn { background: radial-gradient(circle at 35% 35%, #8be38b 0 22%, transparent 23%), radial-gradient(circle at 65% 60%, #6fb6ff 0 26%, transparent 27%), radial-gradient(circle at 50% 50%, #fff, #e5f0ff); border-radius: 50% !important; }
.ico-cd { background: radial-gradient(circle, #fff 0 12%, #c9c9c9 13% 16%, transparent 17%), conic-gradient(#ffd0ea, #c0f0ff, #fff2b3, #ffd0ea); border-radius: 50% !important; }
.ico-txt { background: linear-gradient(#fff, #fff) 8px 10px/24px 2px no-repeat, linear-gradient(#9ab, #9ab) 8px 16px/24px 2px no-repeat, linear-gradient(#9ab, #9ab) 8px 22px/18px 2px no-repeat, linear-gradient(#9ab, #9ab) 8px 28px/22px 2px no-repeat, #fff; border: 1px solid #7a90b0; border-radius: 3px !important; }
.ico-bin { background: linear-gradient(90deg, transparent 30%, #9fc3e8 30% 34%, transparent 34% 48%, #9fc3e8 48% 52%, transparent 52% 66%, #9fc3e8 66% 70%, transparent 70%) 0 10px/100% 26px no-repeat, linear-gradient(#e8f3ff, #b7d2ee) 8px 8px/24px 30px no-repeat; }
.ico.sm { width: 24px; height: 24px; border-radius: 5px; }

/* ================================================================ windows (pink Luna) */
.win {
  position: absolute; z-index: 10; min-width: 260px; max-width: calc(100vw - 16px);
  background: var(--xp-face); border: 1px solid var(--title-3); border-top: 0;
  border-radius: 9px 9px 3px 3px; box-shadow: 0 14px 40px -10px rgba(80, 10, 50, .55), 3px 3px 0 rgba(0, 0, 0, .12);
  display: flex; flex-direction: column; max-height: calc(100vh - var(--task-h) - 16px);
}
.win.opening { animation: winopen .22s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes winopen { from { transform: scale(.85); opacity: 0; } }
.win.closing { animation: winclose .16s ease-in forwards; }
@keyframes winclose { to { transform: scale(.9) translateY(10px); opacity: 0; } }
.win.inactive .titlebar { filter: saturate(.45) brightness(1.08); }
.titlebar {
  display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px 0 7px; flex: none;
  color: #fff; font: 700 13px var(--tahoma); text-shadow: 1px 1px 1px rgba(80, 0, 40, .6);
  background: linear-gradient(180deg, #ffc4e2 0%, var(--title-1) 8%, var(--title-2) 45%, var(--title-3) 92%, #a52a6a 100%);
  border-radius: 8px 8px 0 0; cursor: grab; user-select: none; touch-action: none;
}
.titlebar:active { cursor: grabbing; }
.titlebar img { width: 16px; height: 16px; border-radius: 4px; }
.titlebar .t { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.titlebar .tb { width: 21px; height: 21px; border: 1px solid #fff; border-radius: 3px; display: grid; place-items: center; cursor: pointer; padding: 0;
  background: linear-gradient(180deg, #ffb6dc, #e0559c); color: #fff; font: 700 11px var(--tahoma); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.titlebar .tb:hover { filter: brightness(1.15); }
.titlebar .tb.x { background: linear-gradient(180deg, #f0927b, #d0391c); }
.body { overflow: auto; flex: 1; }
.toolbar { display: flex; gap: 14px; padding: 3px 8px; border-bottom: 1px solid #e0cfd8; background: #fbf5f8; font-size: 12px; color: #555; }

/* welcome */
#welcome .body { background: radial-gradient(600px 300px at 0% 0%, #ffe1f0, transparent 70%), #fff; }
.hero { display: grid; grid-template-columns: 210px 1fr; gap: 22px; padding: 22px 24px 18px; align-items: center; }
.hero-face { position: relative; width: 190px; aspect-ratio: 1; display: grid; place-items: center; }
.hero-face img { width: 165px; border-radius: 36px; box-shadow: 0 18px 30px -12px rgba(200, 40, 120, .55); animation: bob 4s ease-in-out infinite; position: relative; z-index: 1; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
.orbit { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #ff7fbf, #ffd36b, #8be3ff, #c49bff, #ff7fbf); filter: blur(18px); opacity: .55; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; background: #fff; border: 1px solid #f3bfd9; font-weight: 700; font-size: 11px; color: #8a3b66; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: #2fd36b; box-shadow: 0 0 0 3px rgba(47, 211, 107, .25); }
.hero h1 { font: 800 clamp(26px, 3.4vw, 38px)/1.05 "Baloo 2", var(--tahoma); margin: 10px 0 8px; color: var(--ink); }
.shine { background: linear-gradient(90deg, #ff4fa3, #ffb84f, #ff4fa3, #b56bff, #ff4fa3); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 300% 0; } }
.hero p { margin: 0 0 12px; font-size: 13.5px; color: #5a3550; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.small { font-size: 11px !important; color: #9a7088 !important; }
.ticker { overflow: hidden; border-top: 1px solid #f2d6e4; background: var(--ink); }
.track { display: flex; gap: 32px; width: max-content; padding: 6px 0; animation: marq 32s linear infinite; }
.track span { font: 18px "VT323", monospace; color: #ffc2e1; white-space: nowrap; }
.track span::before { content: "\2665  "; color: #ff7fbf; }
@keyframes marq { to { transform: translateX(-50%); } }

/* XP buttons */
.btn-xp { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 76px; padding: 4px 12px; border: 1px solid #a3466f; border-radius: 4px; cursor: pointer; text-decoration: none; color: var(--ink);
  background: linear-gradient(180deg, #fff 0%, #fdf1f7 45%, #f3dbe7 100%); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08); font-size: 12px; }
.btn-xp:hover { box-shadow: inset 0 0 0 2px #ffb84f; }
.btn-xp:active { background: linear-gradient(180deg, #f3dbe7, #fff); }
.btn-xp.go { color: #fff; font-weight: 700; border-color: #8f1f59; background: linear-gradient(180deg, #ffa8d4, #ec5ea6 50%, #c93882); text-shadow: 0 1px 0 rgba(100, 0, 50, .5); padding: 7px 16px; font-size: 13px; position: relative; overflow: hidden; }
.btn-xp.go::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-100%); animation: sheen 3.2s ease-in-out infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
.btn-xp:disabled { opacity: .5; cursor: default; }

/* adventures bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; background: #fff; }
.tile { position: relative; overflow: hidden; border-radius: 12px; padding: 12px; min-height: 160px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; transition: transform .2s; }
.tile:hover { transform: translateY(-3px) rotate(-.6deg); }
.tile img { width: 58px; border-radius: 14px; position: absolute; top: 12px; right: 12px; box-shadow: 0 6px 0 rgba(0, 0, 0, .2); transition: transform .3s; }
.tile:hover img { transform: rotate(8deg) scale(1.08); }
.tile h3 { margin: 0 0 3px; font: 800 18px/1.1 "Baloo 2", var(--tahoma); text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.tile p { margin: 0; font-size: 12px; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.t-mine::before { background: repeating-conic-gradient(#7b7b7b 0 25%, #8e8e8e 0 50%) 0 0/22px 22px; }
.t-mine::after { content: ""; position: absolute; z-index: -1; width: 22px; height: 22px; left: 22px; top: 22px; background: #6fe0f0; box-shadow: 88px 44px #6fe0f0, 22px 66px #e0a46a, 132px 0 #e0a46a; }
.t-home::before { background: linear-gradient(#8fd3ff 0 55%, #5fae3c 55% 64%, #8a5a3b 64%); }
.t-cave::before { background: radial-gradient(circle at 30% 30%, #ffcf4a 0 3%, rgba(255, 190, 60, .4) 6%, transparent 20%), radial-gradient(circle at 50% 60%, #3a3a3a, #121212 75%); }
.t-gift::before { background: linear-gradient(135deg, #ff9fd0, #ff6fb3); }
.t-night::before { background: radial-gradient(1px 1px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 60% 20%, #fff, transparent), radial-gradient(2px 2px at 80% 60%, #fff, transparent), radial-gradient(1px 1px at 40% 70%, #fff, transparent), linear-gradient(#0d0a2a, #2e1a50); }
.t-mem::before { background: repeating-linear-gradient(0deg, #ff8cc6 0 2px, #ff6fb3 2px 6px); }

/* MSN */
.msn .body { display: flex; flex-direction: column; background: linear-gradient(#eaf3ff, #fff 60px); }
.msn-head { display: flex; gap: 10px; padding: 10px; align-items: center; border-bottom: 1px solid #cfdcef; }
.msn-head img { width: 54px; border-radius: 12px; border: 2px solid #fff; box-shadow: 0 0 0 1px #9bb5d9; }
.msn-head small { display: block; color: #6a7a96; font-size: 11px; }
.status { color: #2a9d4a; font-size: 12px; }
.msn-log { height: 280px; overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.msn-log .m b { display: block; font-size: 11.5px; color: #6a7a96; font-weight: 400; }
.msn-log .m p { margin: 0 0 0 10px; font-size: 13px; }
.msn-log .m.mochi p { color: #c2186b; }
.msn-log .m.off p { color: #7a1030; font-weight: 700; }
.msn-log .nudge { text-align: center; color: #9a9a9a; font-size: 11.5px; }
.msn-type { height: 18px; padding: 0 10px; font-size: 11px; color: #8a8a8a; }
.msn-input { display: flex; gap: 6px; padding: 8px; border-top: 1px solid #cfdcef; }
.msn-input input { flex: 1; min-width: 0; border: 1px solid #9bb5d9; padding: 5px 7px; font: inherit; border-radius: 3px; }
.win.shake { animation: shake .5s; }
@keyframes shake { 10%, 50%, 90% { transform: translate(-6px, 2px); } 30%, 70% { transform: translate(6px, -2px); } }

/* wizard */
.wizard { display: grid; grid-template-columns: 150px 1fr; background: var(--xp-face); }
.rail { background: linear-gradient(180deg, #ff9fd0, #c2407f); color: #fff; padding: 14px; display: flex; flex-direction: column; justify-content: space-between; font: 800 18px/1.1 "Baloo 2", var(--tahoma); }
.rail img { width: 100px; border-radius: 22px; align-self: center; box-shadow: 0 10px 20px -8px rgba(80, 0, 40, .6); }
.pane { padding: 14px 16px; }
.tabs { display: flex; gap: 3px; margin-bottom: 10px; }
.tab { padding: 4px 10px; border: 1px solid #b89aaa; border-bottom: 0; border-radius: 5px 5px 0 0; background: #f2e9ee; cursor: pointer; }
.tab.on { background: #fff; color: #c2186b; font-weight: 700; }
.steps { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.steps li { opacity: .5; transition: opacity .2s; }
.steps li.cur { opacity: 1; font-weight: 700; }
.steps li.done { opacity: .78; }
.size { font-size: 11px; color: #8a6a7e; margin-left: 6px; }
.files { padding-left: 16px; margin: 4px 0 0; }
.progress { height: 16px; margin: 14px 0 10px; border: 1px solid #888; background: #fff; padding: 2px; border-radius: 3px; }
.progress i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, #ff5fae 0 9px, transparent 9px 11px); transition: width .3s; }
.navrow { display: flex; justify-content: flex-end; gap: 6px; }
.license { font-size: 10.5px; color: #a08896; margin: 10px 0 0; text-align: right; }

/* notepad */
.notepad .body { background: #fff; }
.np { padding: 10px 12px 14px; }
.np p { margin: 0 0 12px; white-space: pre-wrap; font: 13px/1.5 "Lucida Console", Consolas, monospace; }
.ghost-line { opacity: 0; transition: opacity 5s; color: #b3122e; }
.seen .ghost-line { opacity: .8; }

/* recycle bin */
#owners .body { background: #fff; }
.bin-note { margin: 0; padding: 7px 12px; background: #fff7d6; border-bottom: 1px solid #ecd98d; font-size: 12px; }
.reviews { display: grid; gap: 2px; padding: 8px; }
.reviews figure { margin: 0; display: flex; gap: 10px; padding: 8px; border-radius: 6px; }
.reviews figure:hover { background: #ffe9f4; }
.reviews img { width: 42px; height: 42px; border-radius: 10px; flex: none; }
.reviews blockquote { margin: 2px 0; font-size: 13px; }
.reviews small { color: #9a7088; }
.reviews .last { background: #2a0d1c; color: #ffd0dc; }
.reviews .last small { color: #ff6f8f; }
.reviews .last blockquote { animation: shiver 5s infinite; }
@keyframes shiver { 0%, 90%, 100% { transform: none; } 92% { transform: translateX(-2px); } 95% { transform: translateX(2px); } }

/* dialog */
.dialog { width: 330px; }
.dlg { display: flex; gap: 12px; align-items: center; padding: 16px; }
.dlg-ico { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 900 22px var(--tahoma); color: #fff; background: radial-gradient(circle at 35% 35%, #ff8a8a, #c4161c); box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }
.dlg p { margin: 0; }
.dlg-btns { display: flex; justify-content: center; gap: 8px; padding: 0 0 14px; }

/* ================================================================ taskbar */
.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--task-h); z-index: 300; display: flex; align-items: stretch; background: linear-gradient(180deg, #ffa6d2 0%, #f56aae 8%, #e0559c 40%, #d24a90 88%, #b23a78 100%); box-shadow: inset 0 1px 0 #ffd2e8; }
.start { display: flex; align-items: center; gap: 6px; padding: 0 18px 0 10px; border: 0; cursor: pointer; color: #fff; font: italic 800 19px "Franklin Gothic Medium", "Trebuchet MS", sans-serif; text-shadow: 1px 1px 2px rgba(0, 0, 0, .5);
  background: linear-gradient(180deg, #8fe07a 0%, #3fae32 10%, #3aa52d 50%, #2f8f24 90%); border-radius: 0 14px 14px 0; box-shadow: inset 0 1px 0 #c6ffb2, 2px 0 4px rgba(0, 0, 0, .25); }
.start img { width: 24px; border-radius: 6px; }
.start:hover, .start[aria-expanded="true"] { filter: brightness(1.12); }
.tasks { flex: 1; display: flex; gap: 3px; padding: 4px 6px; overflow: hidden; }
.task { display: flex; align-items: center; gap: 5px; min-width: 0; max-width: 170px; flex: 0 1 170px; padding: 0 8px; border: 1px solid rgba(120, 0, 60, .4); border-radius: 3px; cursor: pointer; color: #fff; font-size: 12px; white-space: nowrap;
  background: linear-gradient(180deg, #ff9fd0, #e66aa9); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.task span { overflow: hidden; text-overflow: ellipsis; }
.task img { width: 16px; border-radius: 4px; flex: none; }
.task.on { background: linear-gradient(180deg, #c43b80, #a52a6a); box-shadow: inset 1px 1px 2px rgba(0, 0, 0, .4); }
.tray { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #fff; background: linear-gradient(180deg, #f38cc1, #d45597); border-left: 1px solid #a83a76; box-shadow: inset 1px 0 0 #ffb3d9; }
.tray img { width: 18px; border-radius: 4px; }
.tray-btn { background: none; border: 0; cursor: pointer; font-size: 15px; padding: 0; }
.tray time { font-size: 12px; min-width: 56px; text-align: right; }

.startmenu { position: absolute; left: 0; bottom: var(--task-h); z-index: 310; width: 380px; max-width: 100vw; border-radius: 8px 8px 0 0; overflow: hidden; box-shadow: 4px -4px 20px rgba(60, 0, 30, .5); border: 1px solid var(--title-3); animation: winopen .15s; }
.sm-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: #fff; font: 700 15px var(--tahoma); background: linear-gradient(180deg, #ff9ccf, #e0559c 60%, #c43b80); }
.sm-head img { width: 42px; border-radius: 9px; border: 2px solid #fff; }
.sm-body { display: grid; grid-template-columns: 1fr 1fr; }
.sm-left { background: #fff; padding: 6px; display: grid; align-content: start; gap: 2px; }
.sm-right { background: #fde8f2; padding: 6px; display: grid; align-content: start; gap: 2px; border-left: 1px solid #f2c3da; }
.startmenu button { display: flex; align-items: center; gap: 8px; text-align: left; background: none; border: 0; padding: 6px 8px; border-radius: 3px; cursor: pointer; }
.startmenu button:hover { background: #e0559c; color: #fff; }
.sm-left img { width: 24px; border-radius: 5px; }
.sm-left small { display: block; font-size: 10.5px; opacity: .7; }
.sm-foot { display: flex; justify-content: flex-end; gap: 6px; padding: 6px; background: linear-gradient(180deg, #e0559c, #c43b80); }
.sm-foot button { color: #fff; }

.balloon { position: absolute; right: 10px; bottom: calc(var(--task-h) + 12px); z-index: 320; max-width: 260px; padding: 9px 12px; border-radius: 8px; background: #ffffe1; border: 1px solid #555; box-shadow: 2px 3px 8px rgba(0, 0, 0, .3); display: grid; gap: 3px; opacity: 0; transform: translateY(8px); transition: .25s; pointer-events: none; }
.balloon.on { opacity: 1; transform: none; }
.balloon::after { content: ""; position: absolute; right: 60px; bottom: -9px; border: 9px solid transparent; border-top-color: #ffffe1; border-bottom: 0; }
.balloon b { font-size: 12px; }

/* ================================================================ the weird */
.saver { position: fixed; inset: 0; z-index: 400; background: #000; display: none; cursor: none; }
.saver.on { display: block; }
.saver img { position: absolute; width: 120px; border-radius: 26px; }
.leave { position: fixed; inset: 0; z-index: 450; background: #000; display: none; place-items: center; align-content: center; gap: 12px; }
.leave.on { display: grid; animation: flash .9s steps(3) 1; }
.leave img { width: min(480px, 80vw); filter: contrast(1.3); }
.leave p, .shutdown p { font: 30px "VT323", monospace; color: #ff5c7a; margin: 0; text-align: center; }
@keyframes flash { 0% { opacity: 0; } 10% { opacity: 1; } 40% { opacity: .2; } 50% { opacity: 1; } }
.shutdown { position: fixed; inset: 0; z-index: 460; background: #000; display: none; place-items: center; align-content: center; gap: 8px; }
.shutdown.on { display: grid; }
.shutdown p { color: #f3a24a; font-size: 34px; }
.shutdown .sub { font-size: 22px; color: #6a3a4a; opacity: 0; animation: late 1s 2.5s forwards; }
@keyframes late { to { opacity: 1; } }
.trail { position: fixed; z-index: 480; pointer-events: none; font-size: 13px; animation: trail .9s ease-out forwards; }
@keyframes trail { to { transform: translateY(18px) scale(.4); opacity: 0; } }
.glitchy { animation: glitch .3s steps(2) 2; }
@keyframes glitch { 50% { transform: translate(-4px, 1px) skewX(-8deg); filter: hue-rotate(90deg) contrast(1.5); } }

/* ================================================================ phones: windows become a scrolling stack */
@media (max-width: 760px) {
  body { overflow: auto; }
  .desk { position: relative; min-height: 100vh; overflow: visible; padding: 10px 10px calc(var(--task-h) + 16px); }
  .wall { position: fixed; }
  .icons { position: relative; inset: auto; flex-direction: row; flex-wrap: wrap; justify-content: center; margin-bottom: 8px; }
  .icon { width: 74px; }
  .win { position: relative !important; left: auto !important; top: auto !important; width: 100% !important; max-width: none; max-height: none; margin: 0 0 14px; }
  .titlebar { cursor: default; }
  .titlebar .tb.min, .titlebar .tb.max { display: none; }
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 16px; }
  .actions { justify-content: center; }
  .bento { grid-template-columns: 1fr 1fr; }
  .wizard { grid-template-columns: 1fr; }
  .rail { display: none; }
  .taskbar { position: fixed; }
  .tasks { display: none; }
  .balloon { position: fixed; }
  .dialog { position: fixed !important; left: 50% !important; top: 40% !important; width: calc(100% - 40px) !important; transform: translateX(-50%); z-index: 350; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
