

:root {
  --ink: #4b1f3f;          
  --ink-soft: #7a4268;     
  --paper: #fff8fb;        
  --pink-50: #fff1f7;
  --pink-100: #ffe4f0;
  --pink-200: #ffcfe3;
  --pink-300: #ffb3d3;
  --pink-400: #ff94c2;
  --pink-500: #f0619f;
  --lilac: #dccaff;
  --lilac-100: #f1e9ff;
  --mint: #c4f0de;
  --butter: #fff1b3;
  --sky: #d2eaff;
  --lcd: #3b1532;
  --lcd-text: #ffd0e5;
  --shadow: rgba(75, 31, 63, 0.3);
  --idle: #f0b232;         
  --idle-bg: #ffe7a0;

  --font: "Tiny5", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font-8bit: "Press Start 2P", "Tiny5", "Courier New", monospace;
  --r: 8px;
  --taskbar-h: 56px;
  --cursor: url("assets/cursor.png") 1 1, auto;
  --cursor-link: url("assets/cursor-link.png") 1 1, pointer;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--pink-400) var(--pink-100);
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: calc(var(--taskbar-h) + 32px);
  overflow-x: hidden;
  font: 400 16px/1.5 var(--font);
  font-synthesis: none;
  color: var(--ink);
  background: #ffc6dd;
  cursor: var(--cursor);
}

a, button, label, [data-copy] { cursor: var(--cursor-link); }
button { font: inherit; color: inherit; }
p { margin: 0; }
svg { width: 1em; height: 1em; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }


html[lang="en"] [lang="ru"],
html[lang="ru"] [lang="en"] { display: none !important; }

::selection { background: var(--pink-400); color: var(--ink); }
:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }

::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--pink-100); border-left: 2px solid var(--ink); }
::-webkit-scrollbar-thumb { background: var(--pink-400); border: 2px solid var(--ink); border-radius: 4px; }


.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #ffc6dd url("assets/sky.jpg") center bottom / cover no-repeat;
  image-rendering: pixelated;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(75, 31, 63, 0.04) 0 1px, transparent 1px 4px);
}
.twinkle {
  position: absolute;
  width: 27px;
  height: 27px;
  color: #fff;
  animation: twinkle 2.4s steps(3) infinite;
  animation-delay: var(--d, 0s);
}
.twinkle--y { color: var(--butter); }
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.2; transform: scale(0.55); }
}


.desktop {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px 32px;
}
.col { display: grid; gap: 28px; min-width: 0; }
.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
  align-items: start;
  min-width: 0;
}


.win {
  position: relative;
  min-width: 0;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--shadow);
}
.win.is-hidden { display: none; }
.win.is-active { box-shadow: 8px 8px 0 var(--shadow); }

.win__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 5px 6px 5px 12px;
  background: linear-gradient(90deg, var(--pink-400), var(--pink-300) 55%, var(--lilac));
  border-bottom: 3px solid var(--ink);
  border-radius: 5px 5px 0 0;
  user-select: none;
  -webkit-user-select: none;
}
.win__icon { width: 18px; height: 18px; color: var(--ink); }
.win__title {
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.win__stripes {
  flex: 1;
  min-width: 12px;
  height: 12px;
  opacity: 0.45;
  background: repeating-linear-gradient(to bottom, var(--ink) 0 2px, transparent 2px 4px);
}
.win__btns { display: flex; gap: 6px; }
.win__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: inset -2px -2px 0 var(--pink-200);
}
.win__btn::before { content: ""; position: absolute; inset: -6px -3px; }
.win__btn:hover { background: var(--butter); }
.win__btn:active { transform: translate(1px, 1px); box-shadow: inset 2px 2px 0 var(--pink-200); }
.win__btn svg { width: 18px; height: 18px; }
.win__body { padding: 24px; }

@media (min-width: 881px) and (pointer: fine) {
  .win__bar { cursor: grab; touch-action: none; }
  .win.is-dragging .win__bar { cursor: grabbing; }
  .win.is-dragging { box-shadow: 12px 12px 0 var(--shadow); }
}


.js .win:not(.is-in) {
  animation: win-in 0.5s steps(5) both;
  animation-delay: calc(var(--i, 0) * 110ms + 100ms);
}
.js.boot-on .win:not(.is-in) { animation: none; }
.win.is-pop { animation: win-pop 0.32s steps(4) both; }
@keyframes win-in {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes win-pop {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: none; }
}


.profile { display: flex; align-items: center; gap: 24px; }
.avatar {
  position: relative;
  flex: none;
  width: 148px;
  height: 148px;
  background: var(--pink-200);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 5px 5px 0 var(--pink-300);
}
.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}
.avatar__spark {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 27px;
  height: 27px;
  color: var(--butter);
  filter: drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)) drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink));
  animation: twinkle 1.8s steps(3) infinite;
}

.status {
  position: absolute;
  left: 50%;
  bottom: -15px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px 0 7px;
  font-size: 16px;
  line-height: 24px;
  white-space: nowrap;
  background: var(--idle-bg);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 2px 2px 0 var(--ink);
  transform: translateX(-50%);
}
.status__moon { width: 20px; height: 20px; }
.status__z {
  position: absolute;
  top: -6px;
  right: -4px;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.status__z i {
  position: absolute;
  left: 0;
  bottom: 0;
  font-size: 16px;
  font-style: normal;
  line-height: 1;
  color: var(--ink);
  text-shadow: 1px 0 0 #fff, -1px 0 0 #fff, 0 1px 0 #fff, 0 -1px 0 #fff;
  opacity: 0;
  animation: snooze 3s steps(6) infinite;
}
.status__z i:nth-child(2) { animation-delay: 1s; }
.status__z i:nth-child(3) { animation-delay: 2s; }
@keyframes snooze {
  0% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(18px, -30px); }
}

.profile__intro { min-width: 0; }
.hello { font-size: 16px; color: var(--ink-soft); }
.name {
  margin: 8px 0 0;
  font: 400 24px / 1.4 var(--font-8bit);
  text-shadow: 3px 3px 0 var(--pink-300);
  overflow-wrap: anywhere;
}
.handle { margin: 6px 0 14px; font-size: 16px; color: var(--ink-soft); }


.activity {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  margin: 0;
  padding: 6px 12px 6px 6px;
  color: var(--ink);
  text-align: left;
  background: var(--lilac-100);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 3px 3px 0 var(--ink);
}
.activity:hover { background: #fff; }
.activity:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.activity__art {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  background: var(--lcd);
  border: 2px solid var(--ink);
  border-radius: 6px;
}
.activity__art svg { width: 32px; height: 32px; }
.activity__text { display: grid; min-width: 0; line-height: 1.25; }
.activity__label { font-size: 16px; color: var(--ink-soft); }
.activity__song { overflow: hidden; font-size: 16px; white-space: nowrap; text-overflow: ellipsis; }
.eq--mini { margin-left: auto; }
.eq--mini i { background: var(--pink-500); }
.is-music .activity .eq i { animation: eq 0.9s steps(4) infinite; }
.is-music .activity .eq i:nth-child(2) { animation-delay: -0.3s; }
.is-music .activity .eq i:nth-child(3) { animation-delay: -0.6s; }
.is-music .activity .eq i:nth-child(4) { animation-delay: -0.15s; }

.about {
  margin: 30px 0 22px;
  padding: 14px 16px;
  background: var(--pink-50);
  border: 2px dashed var(--pink-400);
  border-radius: var(--r);
}


.links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 58px;
  margin: 0;
  padding: 8px 12px;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s steps(2), box-shadow 0.12s steps(2), background-color 0.12s;
}
.link:hover { background: var(--pink-100); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.link:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.link__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  overflow: hidden;
  background: var(--c, var(--pink-200));
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.28), inset -2px -2px 0 rgba(0, 0, 0, 0.22);
}
.link__icon svg { width: 100%; height: 100%; }
.link__text { display: grid; min-width: 0; line-height: 1.25; }
.link__name { font-size: 16px; }
.link__sub {
  overflow: hidden;
  font-size: 16px;
  color: var(--ink-soft);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.link__go { width: 18px; height: 18px; margin-left: auto; color: var(--pink-500); }

.sticker {
  position: absolute;
  right: -22px;
  bottom: -24px;
  width: 48px;
  height: 48px;
  pointer-events: none;
  transform: rotate(12deg);
  filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(4px 4px 0 var(--shadow));
}


.love { display: grid; justify-items: center; gap: 16px; text-align: center; }
.love__text { font-size: 16px; }
.love__count { color: var(--ink-soft); }
.love__count b { color: var(--ink); font-weight: 400; }
.heart-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  font-size: 16px;
  background: var(--pink-400);
  border: 3px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 4px 4px 0 var(--ink);
}
.heart-btn svg { width: 27px; height: 27px; color: var(--paper); }
.heart-btn:hover { background: var(--pink-300); }
.heart-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.heart-btn.is-pop svg { animation: thump 0.36s steps(3); }
@keyframes thump { 50% { transform: scale(1.45); } }


.lcd {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  color: var(--lcd-text);
  background: var(--lcd);
  border: 3px solid var(--ink);
  border-radius: var(--r);
  box-shadow: inset 0 0 0 2px #5c2650;
}
.lcd__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink-300);
}
.eq { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.eq i { width: 4px; height: 4px; background: var(--mint); }
.is-playing .eq i { animation: eq 0.9s steps(4) infinite; }
.is-playing .eq i:nth-child(2) { animation-delay: -0.3s; }
.is-playing .eq i:nth-child(3) { animation-delay: -0.6s; }
.is-playing .eq i:nth-child(4) { animation-delay: -0.15s; }
.is-playing .eq i:nth-child(5) { animation-delay: -0.45s; }
.is-playing .eq i:nth-child(6) { animation-delay: -0.75s; }
@keyframes eq {
  0% { height: 4px; }
  25% { height: 14px; }
  50% { height: 8px; }
  75% { height: 16px; }
  100% { height: 6px; }
}
.lcd__title {
  overflow: hidden;
  font-size: 16px;
  color: #fff3f9;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.is-playing .lcd__title { text-overflow: clip; }
.is-playing .lcd__title span { display: inline-block; padding-left: 100%; animation: lcd-scroll 10s linear infinite; }
@keyframes lcd-scroll { to { transform: translateX(-100%); } }
.lcd__time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  color: var(--pink-300);
  font-variant-numeric: tabular-nums;
}
.lcd__loop {
  padding: 0 6px;
  line-height: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--lcd);
  background: var(--pink-300);
  border-radius: 3px;
}
.lcd.is-broken .lcd__title { color: var(--butter); }

.progress {
  height: 22px;
  margin: 16px 0;
  padding: 3px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 6px;
  cursor: var(--cursor-link);
  touch-action: none;
}
.progress i {
  display: block;
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--pink-500) 0 8px, transparent 8px 11px);
}

.controls { display: flex; justify-content: center; gap: 14px; }
.ctrl {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 3px 3px 0 var(--ink);
}
.ctrl svg { width: 18px; height: 18px; }
.ctrl:hover { background: var(--pink-100); }
.ctrl:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.ctrl--play { width: 64px; background: var(--pink-300); }
.ctrl--play:hover { background: var(--pink-400); }
.ctrl--play[aria-pressed="true"] { background: var(--mint); }
.ctrl[aria-pressed="true"]:not(.ctrl--play) { background: var(--butter); }


.owl {
  position: absolute;
  top: -45px;
  right: 104px;
  width: 48px;
  height: 48px;
  pointer-events: none;
  filter: drop-shadow(3px 3px 0 var(--shadow));
}
.is-music .owl { animation: owl-bop 0.6s steps(1) infinite; }
@keyframes owl-bop { 50% { transform: translateY(-3px); } }


.paper {
  position: relative;
  padding: 16px 20px 16px 46px;
  background:
    linear-gradient(90deg, transparent 29px, var(--pink-300) 29px 31px, transparent 31px),
    repeating-linear-gradient(to bottom, transparent 0 32px, var(--pink-200) 32px 34px);
  background-position: 0 0, 0 16px;
  border-radius: 0 0 5px 5px;
}
.facts { margin: 0; }
.facts div { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 16px; }
.facts dt, .facts dd { margin: 0; line-height: 34px; }
.facts dt { color: var(--ink-soft); }
.facts dd { text-align: right; }


.likes__lead { margin-bottom: 14px; color: var(--ink-soft); }
.likes { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.likes li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 12px 3px 10px;
  font-size: 16px;
  background: var(--pink-100);
  border: 2px solid var(--ink);
  border-radius: 999px;
}
.likes li:nth-child(4n + 2) { background: var(--lilac-100); }
.likes li:nth-child(4n + 3) { background: var(--mint); }
.likes li:nth-child(4n + 4) { background: var(--butter); }
.likes svg { width: 18px; height: 18px; color: var(--pink-500); }


.settings { display: grid; gap: 18px; }
.set { min-width: 0; margin: 0; padding: 0; border: 0; }
.set__label { display: block; margin: 0 0 8px; padding: 0; font-size: 16px; color: var(--ink-soft); }
.langpick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.langpick__opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 6px 7px;
  font-size: 16px;
  line-height: 1.1;
  text-align: center;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: var(--cursor-link);
}
.langpick__opt input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.langpick__opt:hover { background: var(--pink-50); }
.langpick__opt.is-on { background: var(--pink-300); transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.langpick__opt:has(input:focus-visible) { outline: 3px dashed var(--ink); outline-offset: 3px; }
.langpick__code {
  padding: 0 5px;
  line-height: 22px;
  color: var(--lcd-text);
  background: var(--lcd);
  border-radius: 4px;
}
.vol { display: flex; align-items: center; gap: 10px; }
.vol__mute {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink);
}
.vol__mute svg { width: 18px; height: 18px; }
.vol__mute:hover { background: var(--pink-100); }
.vol__mute[aria-pressed="true"] { background: var(--butter); }
.vol__range {
  --v: 50%;
  flex: 1;
  min-width: 0;
  height: 30px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: var(--cursor-link);
}
.vol__range:focus-visible { outline: 3px dashed var(--ink); outline-offset: 2px; }
.vol__range::-webkit-slider-runnable-track {
  height: 16px;
  background:
    linear-gradient(90deg, transparent var(--v), #fff var(--v)),
    repeating-linear-gradient(90deg, var(--pink-500) 0 6px, var(--pink-400) 6px 8px);
  border: 2px solid var(--ink);
  border-radius: 4px;
}
.vol__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 26px;
  margin-top: -7px;
  background: var(--butter);
  border: 2px solid var(--ink);
  border-radius: 3px;
  box-shadow: 2px 2px 0 var(--ink);
}
.vol__range::-moz-range-track { height: 12px; background: #fff; border: 2px solid var(--ink); border-radius: 4px; }
.vol__range::-moz-range-progress { height: 12px; background: var(--pink-500); border: 2px solid var(--ink); border-radius: 4px 0 0 4px; }
.vol__range::-moz-range-thumb { width: 12px; height: 22px; background: var(--butter); border: 2px solid var(--ink); border-radius: 3px; box-shadow: 2px 2px 0 var(--ink); }
.vol__out { min-width: 44px; font-size: 16px; text-align: right; font-variant-numeric: tabular-nums; }
.set--checks { display: grid; gap: 8px; }
.check { position: relative; display: flex; align-items: center; gap: 10px; min-height: 30px; font-size: 16px; cursor: var(--cursor-link); }
.check input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.check__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 2px 2px 0 var(--ink);
}
.check__box svg { width: 18px; height: 18px; color: var(--pink-500); visibility: hidden; }
.check input:checked + .check__box { background: var(--pink-100); }
.check input:checked + .check__box svg { visibility: visible; }
.check input:focus-visible + .check__box { outline: 3px dashed var(--ink); outline-offset: 2px; }
.btn-reset {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  font-size: 16px;
  background: var(--lilac-100);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-reset svg { width: 18px; height: 18px; color: var(--pink-500); }
.btn-reset:hover { background: #fff; }
.btn-reset:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }


.footer { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.footer__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 18px 20px;
  background: rgba(255, 248, 251, 0.92);
  border: 3px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--shadow);
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 88px;
  height: 31px;
  font: 400 8px/1 var(--font-8bit);
  text-transform: uppercase;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.65), inset -2px -2px 0 rgba(75, 31, 63, 0.18);
}
.badge--pink { background: var(--pink-400); }
.badge--lcd { background: var(--lcd); color: var(--pink-300); }
.badge--mint { background: var(--mint); }
.badge--lilac { background: var(--lilac); }
.badge--butter { background: var(--butter); }
.counter { display: flex; align-items: center; gap: 10px; }
.odo { display: inline-flex; gap: 2px; padding: 3px; background: var(--ink); border-radius: 5px; }
.odo b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 30px;
  font-size: 24px;
  line-height: 1;
  color: var(--mint);
  background: var(--lcd);
  border-radius: 3px;
}


.taskbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--taskbar-h);
  padding: 6px 8px;
  background: var(--pink-200);
  border-top: 3px solid var(--ink);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.7);
}
.start {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px 0 12px;
  font-size: 16px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: inset -3px -3px 0 var(--pink-300), 2px 2px 0 var(--ink);
}
.start svg { width: 18px; height: 18px; color: var(--pink-500); }
.start:hover { background: #fff; }
.start[aria-expanded="true"] { transform: translate(1px, 1px); box-shadow: inset 3px 3px 0 var(--pink-300); }
.tasks { display: flex; flex: 1; gap: 6px; min-width: 0; overflow: hidden; }
.task {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 190px;
  height: 42px;
  padding: 0 12px;
  font-size: 16px;
  white-space: nowrap;
  background: var(--pink-100);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: inset -2px -2px 0 var(--pink-300);
  opacity: 0.75;
}
.task svg { width: 18px; height: 18px; color: var(--ink); }
.task span { overflow: hidden; text-overflow: ellipsis; }
.task.is-on { opacity: 1; background: var(--paper); }
.task.is-active { background: #fff; box-shadow: inset 2px 2px 0 var(--pink-300); }
.task:hover { opacity: 1; }
.tray {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  margin-left: auto;
  padding: 0 10px 0 6px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  background: var(--pink-100);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: inset 2px 2px 0 var(--pink-300);
}
.tray__note { display: none; width: 18px; height: 18px; margin: 0 4px; color: var(--pink-500); }
.is-music .tray__note { display: block; animation: bob 0.7s steps(2) infinite; }
.tray__btn {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 6px;
  font-size: 16px;
  line-height: 1;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 4px;
}
.tray__btn:hover { background: #fff; border-color: var(--ink); }
.tray__btn svg { width: 18px; height: 18px; }
.tray time { padding-left: 6px; }
@keyframes bob { 50% { transform: translateY(-3px); } }


.startmenu {
  position: fixed;
  left: 8px;
  bottom: calc(var(--taskbar-h) + 6px);
  z-index: 60;
  display: flex;
  width: 280px;
  overflow: hidden;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 6px 6px 0 var(--shadow);
}
.startmenu[hidden] { display: none; }
.startmenu__side {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 44px;
  padding: 12px 0;
  background: linear-gradient(to top, var(--pink-400), var(--lilac));
  border-right: 3px solid var(--ink);
}
.startmenu__side span {
  font: 400 16px/1 var(--font-8bit);
  color: var(--ink);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.startmenu ul { flex: 1; margin: 0; padding: 6px; list-style: none; }
.startmenu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  font-size: 16px;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 6px;
}
.startmenu button:hover, .startmenu button:focus-visible { background: var(--pink-200); }
.startmenu button svg { width: 18px; height: 18px; color: var(--pink-500); }
.startmenu .sep {
  height: 2px;
  margin: 6px 4px;
  opacity: 0.4;
  background: repeating-linear-gradient(90deg, var(--ink) 0 4px, transparent 4px 8px);
}


.shutdown {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  padding: 24px;
  text-align: center;
  color: var(--pink-300);
  background: var(--lcd);
  outline: none;
}
.shutdown[hidden] { display: none; }
.shutdown__heart { width: 64px; height: 64px; animation: bob 1s steps(2) infinite; }
.shutdown__text { max-width: 22em; font: 400 24px / 1.75 var(--font-8bit); }
.shutdown__hint { font-size: 16px; color: var(--lcd-text); opacity: 0.8; }


.boot { display: none; }
.boot-on .boot,
.boot.is-leaving {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  background: conic-gradient(var(--pink-100) 25%, var(--pink-50) 0 50%, var(--pink-100) 0 75%, var(--pink-50) 0) 0 0 / 28px 28px;
}
.boot.is-leaving { pointer-events: none; animation: boot-out 0.4s steps(4) forwards; }
.boot.is-done { display: none !important; }
.boot__ava {
  width: 112px;
  height: 112px;
  object-fit: cover;
  background: var(--pink-200);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--shadow);
  animation: bob 0.5s steps(2) infinite;
}
.boot__logo { font: 400 24px/1 var(--font-8bit); text-shadow: 3px 3px 0 var(--pink-300); }
.boot__logo span { color: var(--pink-500); }
.boot__bar {
  width: 240px;
  height: 24px;
  padding: 3px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 6px;
}
.boot__bar i {
  display: block;
  height: 100%;
  background: repeating-linear-gradient(90deg, var(--pink-500) 0 14px, transparent 14px 17px);
  clip-path: inset(0 100% 0 0);
  animation: boot-load 1.4s steps(12) forwards;
}
.boot__text { min-height: 24px; font-size: 16px; color: var(--ink-soft); }
.boot__enter {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
  padding: 12px 18px;
  font: 400 16px/1.5 var(--font-8bit);
  color: var(--ink);
  background: var(--pink-300);
  border: 3px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 4px 4px 0 var(--ink);
  visibility: hidden;
}
.boot__enter svg { width: 18px; height: 18px; color: #fff; }
.boot__enter:hover { background: var(--pink-400); }
.boot.is-ready .boot__enter { visibility: visible; animation: enter-hop 1.2s steps(1) infinite; }
.boot.is-ready .boot__enter svg { animation: twinkle 1.2s steps(3) infinite; }
.boot__hint { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--ink-soft); }
.boot__hint svg { width: 18px; height: 18px; color: var(--pink-500); }
.langswitch {
  display: flex;
  overflow: hidden;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--ink);
}
.langswitch button { min-width: 56px; height: 34px; padding: 0 12px; font-size: 16px; background: none; border: 0; }
.langswitch button + button { border-left: 2px solid var(--ink); }
.langswitch button:hover { background: var(--pink-100); }
.langswitch button[aria-pressed="true"] { background: var(--pink-400); }
@keyframes boot-load { to { clip-path: inset(0 0 0 0); } }
@keyframes boot-out { to { opacity: 0; visibility: hidden; } }
@keyframes enter-hop { 50% { transform: translateY(-3px); box-shadow: 4px 7px 0 var(--ink); } }


.fx { position: fixed; inset: 0; z-index: 150; overflow: hidden; pointer-events: none; }
.trail {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  animation: trail 0.8s steps(6) forwards;
}
@keyframes trail { to { opacity: 0; transform: translateY(26px) scale(0.3) rotate(45deg); } }
.fly-heart {
  position: absolute;
  width: 27px;
  height: 27px;
  margin: -13px 0 0 -13px;
  animation: fly 1s cubic-bezier(0.2, 0.7, 0.4, 1) forwards;
}
@keyframes fly {
  from { opacity: 1; transform: translate(0, 0) scale(0.6); }
  to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.25) rotate(var(--rot)); }
}


@media (min-width: 1081px) {
  .name { font-size: 32px; text-shadow: 4px 4px 0 var(--pink-300); }
}

@media (max-width: 960px) {
  .links .link { padding-right: 10px; gap: 10px; }
}

@media (max-width: 880px) {
  .desktop { grid-template-columns: 1fr; max-width: 640px; padding: 24px 16px; gap: 22px; }
  .col { display: contents; }
  #win-profile { order: 1; }
  #win-music { order: 2; }
  #win-about { order: 3; }
  #win-likes { order: 4; }
  #win-love { order: 5; }
  .row { display: contents; }
  #win-music { margin-top: 28px; }
  .footer { padding: 0 16px; }
  .footer__card { justify-content: center; }
}

@media (max-width: 720px) {
  .shutdown__text { font-size: 16px; }
  .boot__enter { font: 400 24px/1 var(--font); }
  .tasks { display: none; }
  .tray { margin-left: auto; }
}

@media (max-width: 560px) {
  .win__body { padding: 20px; }
  .profile { flex-direction: column; text-align: center; gap: 26px; }
  .activity { margin: 0 auto; }
  .links { grid-template-columns: 1fr; }
  .sticker { right: -14px; bottom: -22px; width: 48px; height: 48px; }
  .love { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .paper { padding-left: 40px; background-position: -4px 0, 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .twinkle, .avatar__spark, .owl, .boot__ava { animation: none !important; }
  .status__z { display: none; }
}
