/* ═══════════════════════════════════════════════
   may15 — windows 98 pink desktop
   ═══════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --pink-bg-top: #FFEDF5;
  --pink-bg-mid: #FFB8D8;
  --pink-bg-deep: #C468A0;
  --pink-title: #E03A8F;
  --pink-title-2: #FF6AAF;
  --pink-light: #FFE4F1;
  --pink-cloud: #FFFFFF;
  --pink-cloud-shadow: #F7C3DE;
  --chrome-face: #FFE8F2;
  --chrome-face-2: #FFF6FA;
  --chrome-light: #FFFFFF;
  --chrome-dark: #9F4878;
  --chrome-shadow: #661F42;
  --text-dark: #2A0F1E;
  --text-title: #FFFFFF;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: 'Pixelify Sans', 'VT323', 'Courier New', monospace;
  color: var(--text-dark);
}

/* custom pink pixel cursor */
body, a, button, .icon, .file-item, .start-item, .ctx-item, .sticky-note, .tb-btn, .menu-bar span, .tracklist li {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' shape-rendering='crispEdges'><g fill='%23FF4FA3' stroke='%237A2E56' stroke-width='1'><path d='M3 2 L3 22 L9 17 L12 25 L16 24 L13 16 L21 16 Z' fill='%23FF4FA3' stroke='%237A2E56'/></g><path d='M5 5 L5 18 L8 15 L11 22 L13 21 L10 14 L16 14 Z' fill='%23FFFFFF' stroke='none'/></svg>") 2 2, auto;
}

/* ring cursor specifically over my_vows icon */
#icon-vows, #icon-vows * {
  cursor: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Ctext y='32' font-size='30'%3E%F0%9F%92%8D%3C/text%3E%3C/svg%3E") 12 12, pointer !important;
}

body {
  background: var(--pink-bg-mid);
  user-select: none;
}

/* ─── pixelated pink sky wallpaper ─── */
.wallpaper {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #FFEDF5 0%, #FFB8D8 38%, #E888C2 75%, #B858A0 100%);
  overflow: hidden;
}

.wallpaper::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
}

.pcloud {
  position: absolute;
  background: var(--pink-cloud);
  box-shadow:
    8px 0 0 var(--pink-cloud), -8px 0 0 var(--pink-cloud),
    0 8px 0 var(--pink-cloud), 0 -8px 0 var(--pink-cloud),
    16px 0 0 var(--pink-cloud), -16px 0 0 var(--pink-cloud),
    8px 8px 0 var(--pink-cloud), -8px 8px 0 var(--pink-cloud),
    24px 0 0 var(--pink-cloud), -24px 0 0 var(--pink-cloud),
    16px -8px 0 var(--pink-cloud), -16px -8px 0 var(--pink-cloud),
    0 16px 0 var(--pink-cloud-shadow),
    8px 16px 0 var(--pink-cloud-shadow),
    -8px 16px 0 var(--pink-cloud-shadow),
    16px 16px 0 var(--pink-cloud-shadow),
    -16px 16px 0 var(--pink-cloud-shadow);
  width: 8px; height: 8px;
  opacity: 0.92;
  animation: drift 40s linear infinite;
}

.pcloud-1 { top: 12%; left: 18%; }
.pcloud-2 { top: 28%; left: 68%; animation-delay: -10s; transform: scale(0.7); }
.pcloud-3 { top: 55%; left: 8%; animation-delay: -20s; transform: scale(1.2); }
.pcloud-4 { top: 70%; left: 78%; animation-delay: -30s; transform: scale(0.85); }
.pcloud-5 { top: 40%; left: 45%; animation-delay: -5s; transform: scale(0.6); opacity: 0.7; }

@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(30px); }
}

.venus-mark {
  position: fixed;
  top: 14px;
  right: 18px;
  font-size: 20px;
  color: rgba(255,255,255,0.7);
  text-shadow: 1px 1px 0 rgba(255,79,163,0.5);
  z-index: 5;
  letter-spacing: -2px;
}
.venus-mark:hover { color: rgba(255,255,255,1); }

.korean-mark {
  position: fixed;
  top: 14px;
  left: 18px;
  font-family: 'Pacifico', 'Pixelify Sans', cursive;
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  text-shadow: 1px 1px 0 rgba(255,79,163,0.6), 0 0 8px rgba(255,255,255,0.5);
  z-index: 5;
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* ─── sparkle trail ─── */
.sparkle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}
.sparkle {
  position: absolute;
  width: 12px; height: 12px;
  pointer-events: none;
  animation: sparkle-fade 1200ms ease-out forwards;
}
.sparkle::before {
  content: '✦';
  font-size: 14px;
  color: #FF4FA3;
  text-shadow: 0 0 6px #FFB8D9, 0 0 2px #FFFFFF;
  position: absolute;
  left: 0; top: 0;
  font-family: 'Share Tech Mono', monospace;
  font-weight: 700;
}
.sparkle.s2::before { content: '✧'; color: #FFD700; text-shadow: 0 0 8px #FFB8D9; }
.sparkle.s3::before { content: '✿'; color: #FFFFFF; text-shadow: 0 0 4px #FF4FA3; }
.sparkle.tk::before  { content: 'T'; color: #FF4FA3; font-size: 12px; text-shadow: 0 0 6px #FFFFFF, 0 0 2px #7A2E56; }
.sparkle.kt::before  { content: 'K'; color: #E03A8F; font-size: 12px; text-shadow: 0 0 6px #FFFFFF, 0 0 2px #7A2E56; }
.sparkle.tkheart::before { content: 'T+K'; color: #FFFFFF; font-size: 11px; text-shadow: 0 0 6px #FF4FA3, 0 0 2px #7A2E56; letter-spacing: 0.05em; }
.sparkle.sa::before  { content: '사'; color: #FF4FA3; font-size: 13px; text-shadow: 0 0 6px #FFFFFF, 0 0 2px #7A2E56; }
.sparkle.rang::before { content: '랑'; color: #E03A8F; font-size: 13px; text-shadow: 0 0 6px #FFFFFF, 0 0 2px #7A2E56; }
.sparkle.hae::before { content: '해'; color: #FFD700; font-size: 13px; text-shadow: 0 0 6px #FFFFFF, 0 0 2px #7A2E56; }

@keyframes sparkle-fade {
  0%   { opacity: 1; transform: scale(0.4) rotate(0deg); }
  30%  { opacity: 1; transform: scale(1.2) rotate(40deg); }
  70%  { opacity: 0.6; transform: scale(1) rotate(90deg) translateY(6px); }
  100% { opacity: 0; transform: scale(0.2) rotate(180deg) translateY(18px); }
}

/* ─── desktop ─── */
.desktop {
  position: fixed;
  inset: 0 0 40px 0;
  z-index: 1;
}

.icon {
  position: absolute;
  width: 78px;
  text-align: center;
  padding: 2px;
  border-radius: 2px;
  transition: background 0.08s;
  touch-action: none;
}

.icon:hover { background: rgba(255,255,255,0.15); }
.icon:active, .icon.selected {
  background: rgba(255,79,163,0.35);
  outline: 1px dotted rgba(255,255,255,0.7);
}

.icon-img {
  width: 44px;
  height: 44px;
  margin: 0 auto 4px;
  image-rendering: pixelated;
}

.folder-icon {
  background: linear-gradient(#FFC8E4, #FF9ECF);
  border: 2px solid #7A2E56;
  border-radius: 2px;
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.5),
    inset -2px -2px 0 rgba(122,46,86,0.4),
    2px 2px 0 rgba(122,46,86,0.3);
  position: relative;
  margin-top: 8px;
  height: 40px;
}

.folder-icon::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -2px;
  width: 22px;
  height: 10px;
  background: #FFB8DC;
  border: 2px solid #7A2E56;
  border-bottom: none;
  border-radius: 2px 2px 0 0;
}

/* ─── unified file icon — shape fixed, color + emoji via modifiers ─── */
.file-icon {
  --tint-1: #FFF0F8;
  --tint-2: #FFD6EC;
  --corner: #FFAAD6;
  --glyph: '📝';
  background: linear-gradient(135deg, var(--tint-1) 0%, var(--tint-2) 100%);
  border: 2px solid var(--chrome-shadow);
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.8),
    inset -2px -2px 0 rgba(102,31,66,0.3),
    2px 2px 0 rgba(102,31,66,0.35);
  position: relative;
}
.file-icon::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 12px 12px 0;
  border-color: transparent var(--corner) transparent transparent;
  z-index: 1;
}
.file-icon::after {
  content: var(--glyph);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  padding-top: 2px;
}
/* color + glyph variants — all share shape + border + corner look */
.file-icon.f-text   { --tint-1: #FFF0F8; --tint-2: #FFD6EC; --corner: #FFAAD6; --glyph: '📝'; }
.file-icon.f-music  { --tint-1: #FFE4F1; --tint-2: #FFAAD6; --corner: #FF85C0; --glyph: '🎵'; }
.file-icon.f-info   { --tint-1: #FFF8E4; --tint-2: #FFE0A0; --corner: #F5C868; --glyph: 'ℹ️'; }
.file-icon.f-chat   { --tint-1: #E4F0FF; --tint-2: #B6D9FF; --corner: #8FBFFF; --glyph: '💬'; }
.file-icon.f-mic    { --tint-1: #F0FFE4; --tint-2: #C8EFB6; --corner: #9FDC85; --glyph: '🎙️'; }
.file-icon.f-heart  { --tint-1: #FFE4F1; --tint-2: #FFB8D8; --corner: #FF85C0; --glyph: '💗'; }
.file-icon.f-vows   { --tint-1: #FFF4C8; --tint-2: #FFD870; --corner: #E0B040; --glyph: '💌'; }
.file-icon.f-browser{ --tint-1: #E0F0FF; --tint-2: #A8D4FF; --corner: #6EB0FF; --glyph: '🌐'; }
.file-icon.locked   { --glyph: '🔒'; }

/* recycle bin — special shape, but same stroke/shadow language */
.recycle-icon {
  background: linear-gradient(#FFC8E4, #E888C2);
  border: 2px solid var(--chrome-shadow);
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.4),
    inset -2px -2px 0 rgba(102,31,66,0.4),
    2px 2px 0 rgba(102,31,66,0.35);
  position: relative;
  border-radius: 0 0 6px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.recycle-icon::before {
  content: '';
  position: absolute;
  top: -6px; left: -4px; right: -4px;
  height: 6px;
  background: var(--chrome-shadow);
  border-radius: 2px;
}
.recycle-icon::after {
  content: '🗑️';
  font-size: 22px;
  line-height: 1;
}

.icon-label {
  font-family: 'Pixelify Sans', 'VT323', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  text-shadow:
    1px 1px 0 #3D1C2E,
    -1px 1px 0 #3D1C2E,
    1px -1px 0 #3D1C2E,
    -1px -1px 0 #3D1C2E,
    2px 2px 0 rgba(61,28,46,0.5);
  line-height: 1.2;
  padding: 2px 4px;
  word-wrap: break-word;
  letter-spacing: 0.02em;
}

/* ─── sticky note ─── */
.sticky-note {
  position: absolute;
  width: 170px;
  padding: 30px 16px 16px;
  background: linear-gradient(180deg, #FFE4F1 0%, #FFD6EC 100%);
  border: 1px solid rgba(122,46,86,0.2);
  box-shadow:
    2px 4px 0 rgba(122,46,86,0.2),
    5px 12px 20px rgba(122,46,86,0.25);
  transform: rotate(3deg);
  font-family: 'Special Elite', 'VT323', monospace;
  font-size: 15px;
  color: #5A2E42;
  line-height: 1.6;
  z-index: 2;
  touch-action: none;
}
.sticky-note:hover { transform: rotate(0deg) scale(1.05) !important; transition: transform 0.2s; z-index: 4; }

.sticky-note.sticky-yellow {
  background: linear-gradient(180deg, #FFF8D4 0%, #FFE8A0 100%);
  color: #5A4414;
}
.sticky-note.sticky-yellow .sticky-sig { color: #C68722; }

.sticky-note.sticky-mint {
  background: linear-gradient(180deg, #E4FFE8 0%, #B0EFC0 100%);
  color: #1C4028;
}
.sticky-note.sticky-mint .sticky-sig { color: #3A9060; }

.sticky-note.sticky-blue {
  background: linear-gradient(180deg, #E4F0FF 0%, #B6D4FF 100%);
  color: #1A2E56;
}
.sticky-note.sticky-blue .sticky-sig { color: #3A70C0; }

.sticky-tape {
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 60px;
  height: 18px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}
.sticky-sig {
  font-family: 'Pacifico', 'Special Elite', cursive;
  font-size: 17px;
  color: #FF4FA3;
}

/* ─── win98 window chrome ─── */
.win98-window {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 92vw);
  background: var(--chrome-face);
  border: 2px solid #FFFFFF;
  border-right-color: var(--chrome-shadow);
  border-bottom-color: var(--chrome-shadow);
  box-shadow:
    inset -2px -2px 0 var(--chrome-dark),
    inset 2px 2px 0 var(--chrome-face-2),
    3px 3px 0 rgba(122,46,86,0.5),
    6px 6px 0 rgba(122,46,86,0.2);
  z-index: 100;
  font-family: 'Pixelify Sans', 'VT323', monospace;
}

.win98-window.dragging { transition: none; }

/* open / close animations */
.win98-window.opening {
  animation: win-open 0.22s cubic-bezier(0.2, 0.8, 0.25, 1);
  transform-origin: center center;
}
.win98-window.closing {
  animation: win-close 0.18s cubic-bezier(0.5, 0, 0.9, 0.6) forwards;
  transform-origin: center center;
  pointer-events: none;
}
@keyframes win-open {
  0%   { opacity: 0; transform: translateX(-50%) scale(0.72) translateY(12px); }
  60%  { opacity: 1; transform: translateX(-50%) scale(1.03) translateY(-2px); }
  100% { opacity: 1; transform: translateX(-50%) scale(1) translateY(0); }
}
@keyframes win-close {
  0%   { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) scale(0.8) translateY(6px); }
}
/* once a user drags a window its transform is absolute (not -50%), adjust keyframes */
.win98-window.dragged.opening  { animation: win-open-dragged 0.22s cubic-bezier(0.2, 0.8, 0.25, 1); }
.win98-window.dragged.closing  { animation: win-close-dragged 0.18s cubic-bezier(0.5, 0, 0.9, 0.6) forwards; }
@keyframes win-open-dragged {
  0%   { opacity: 0; transform: scale(0.72) translateY(12px); }
  60%  { opacity: 1; transform: scale(1.03) translateY(-2px); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes win-close-dragged {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.8) translateY(6px); }
}

/* modal dialog anim */
.modal-overlay { animation: overlay-in 0.16s ease-out; }
.modal-overlay.closing { animation: overlay-out 0.14s ease-in forwards; }
.modal-overlay .modal-window { animation: modal-pop 0.22s cubic-bezier(0.2, 0.8, 0.25, 1); transform-origin: center center; }
.modal-overlay.closing .modal-window { animation: modal-shrink 0.14s ease-in forwards; }
@keyframes overlay-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes overlay-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes modal-pop {
  0%   { opacity: 0; transform: scale(0.7); }
  60%  { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes modal-shrink {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.8); }
}

.title-bar {
  height: 26px;
  background: linear-gradient(90deg, var(--pink-title) 0%, var(--pink-title-2) 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px;
  color: var(--text-title);
  font-weight: 700;
  font-size: 14px;
  cursor: grab;
}
.title-bar:active { cursor: grabbing; }

.title-bar-text {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 4px;
  text-shadow: 1px 1px 0 rgba(122,46,86,0.6);
  letter-spacing: 0.5px;
}

.title-bar-controls { display: flex; gap: 2px; }

.tb-btn {
  width: 22px;
  height: 20px;
  background: var(--chrome-face);
  border: 2px solid #FFFFFF;
  border-right-color: var(--chrome-shadow);
  border-bottom-color: var(--chrome-shadow);
  box-shadow: inset -1px -1px 0 var(--chrome-dark), inset 1px 1px 0 var(--chrome-face-2);
  font-family: 'Pixelify Sans', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.tb-btn:active {
  border-color: var(--chrome-shadow) #FFFFFF #FFFFFF var(--chrome-shadow);
  box-shadow: inset 1px 1px 0 var(--chrome-dark);
}

.menu-bar {
  display: flex;
  gap: 14px;
  padding: 3px 8px;
  background: var(--chrome-face);
  border-bottom: 1px solid var(--chrome-dark);
  font-size: 13px;
  font-weight: 500;
}
.menu-bar span { padding: 2px 4px; }
.menu-bar span:hover { background: var(--pink-title); color: white; }

.address-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-bottom: 1px solid var(--chrome-dark);
  font-size: 12px;
}
.address-label { font-weight: 600; }
.address-field {
  flex: 1;
  background: white;
  border: 2px solid var(--chrome-shadow);
  border-right-color: #FFFFFF;
  border-bottom-color: #FFFFFF;
  padding: 3px 8px;
  font-family: 'VT323', monospace;
  font-size: 14px;
}

.window-body {
  background: #FFFFFF;
  min-height: 260px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 14px;
  border: 2px solid var(--chrome-shadow);
  border-right-color: #FFFFFF;
  border-bottom-color: #FFFFFF;
  margin: 4px;
}

.text-body {
  background: #FFFFFF;
  padding: 14px 18px;
  border: 2px solid var(--chrome-shadow);
  border-right-color: #FFFFFF;
  border-bottom-color: #FFFFFF;
  margin: 4px;
  font-family: 'VT323', monospace;
  color: var(--text-dark);
  max-height: 65vh;
  overflow-y: auto;
}
.text-body::-webkit-scrollbar { width: 16px; background: var(--chrome-face); border-left: 1px solid var(--chrome-dark); }
.text-body::-webkit-scrollbar-thumb {
  background: var(--chrome-face);
  border: 2px solid #FFFFFF;
  border-right-color: var(--chrome-shadow);
  border-bottom-color: var(--chrome-shadow);
  box-shadow: inset -1px -1px 0 var(--chrome-dark);
}

.nfo pre {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 15px;
  line-height: 1.35;
  color: var(--text-dark);
  white-space: pre-wrap;
}

.recycle-body { font-size: 16px; line-height: 1.7; }
.recycle-header { font-weight: 700; color: #7A2E56; margin-bottom: 10px; }
.recycle-list { list-style: none; padding-left: 4px; }
.recycle-list li { padding: 4px 0; color: #996688; }
.recycle-list li em { color: #FF4FA3; font-style: italic; }
.recycle-footer { margin-top: 14px; padding-top: 10px; border-top: 1px dashed rgba(122,46,86,0.3); color: #7A2E56; font-weight: 600; }

/* ─── trash window ─── */
.trash-body { font-size: 16px; line-height: 1.6; font-family: 'VT323', monospace; }
.trash-header {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 14px;
  color: var(--pink-title);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
  text-transform: lowercase;
}
.trash-list { list-style: none; padding: 0; margin: 0 0 12px; }
.trash-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid rgba(102,31,66,0.2);
  margin-bottom: 4px;
  background: #F5F5F7;
  color: #6A5564;
  cursor: pointer;
  transition: background 0.15s;
}
.trash-item:hover { background: #FFE4F1; color: var(--pink-title); }
.trash-item.selected { background: var(--pink-title); color: white; outline: 1px dotted var(--pink-title); outline-offset: -2px; }
.trash-item.selected .trash-hint { color: white; }
.trash-name { text-decoration: line-through; font-family: 'VT323', monospace; font-size: 15px; }
.trash-hint { font-size: 12px; opacity: 0.6; font-family: 'Pixelify Sans', monospace; }
.trash-reveal {
  min-height: 0;
  padding: 0 14px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-dark);
  background: linear-gradient(135deg, #FFE4F1, #FFD6EC);
  border: 1px dashed rgba(255,79,163,0.3);
  margin-bottom: 12px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.trash-reveal.open {
  max-height: 300px;
  padding: 12px 14px;
}
.trash-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 10px;
}
.trash-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(122,46,86,0.3);
  color: var(--pink-title);
  text-align: center;
  font-family: 'Pixelify Sans', monospace;
  font-size: 13px;
  font-weight: 600;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  padding: 4px 10px;
  background: var(--chrome-face);
  border-top: 1px solid #FFFFFF;
  font-size: 12px;
  font-family: 'VT323', monospace;
  color: var(--text-dark);
}

.file-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px;
  border-radius: 2px;
  gap: 6px;
}
.file-item:hover { background: rgba(255,79,163,0.15); }
.file-item.selected {
  background: var(--pink-title);
  color: white;
  outline: 1px dotted var(--pink-title);
  outline-offset: -2px;
}
.file-item .file-icon,
.file-item .folder-icon { width: 44px; height: 44px; flex-shrink: 0; }
.file-item .folder-icon { margin-top: 8px; height: 36px; }
.file-item .label {
  font-size: 12px;
  font-family: 'Pixelify Sans', monospace;
  color: var(--text-dark);
  word-break: break-word;
  line-height: 1.2;
}
.file-item.selected .label { color: white; }
.file-item.locked .label { color: #996688; font-style: italic; }

/* ─── player ─── */
.player-body {
  background: #1A0A2E;
  border: 2px solid var(--chrome-shadow);
  border-right-color: #FFFFFF;
  border-bottom-color: #FFFFFF;
  margin: 4px;
  padding: 14px;
  color: #FFD6EC;
  font-family: 'VT323', monospace;
}
.player-display {
  background: #000;
  border: 2px inset #7A2E56;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  color: #FFAAD6;
}
.now-playing { display: flex; align-items: center; gap: 10px; }
.eq { display: inline-flex; gap: 2px; height: 14px; align-items: flex-end; }
.eq i {
  display: inline-block;
  width: 3px;
  background: #FF4FA3;
  animation: eq 0.8s ease-in-out infinite;
}
.eq i:nth-child(1) { animation-delay: 0s;   height: 40%; }
.eq i:nth-child(2) { animation-delay: 0.2s; height: 70%; }
.eq i:nth-child(3) { animation-delay: 0.4s; height: 50%; }
.eq i:nth-child(4) { animation-delay: 0.6s; height: 90%; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
.tracklist {
  list-style: none;
  background: #0A0418;
  border: 2px inset #7A2E56;
  max-height: 150px;
  overflow-y: auto;
  font-size: 15px;
}
.tracklist li {
  padding: 6px 10px;
  border-bottom: 1px dotted rgba(255,170,214,0.2);
  color: #FFD6EC;
}
.tracklist li:hover { background: rgba(255,79,163,0.2); }
.tracklist li.playing { background: var(--pink-title); color: white; }
.player-controls {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  align-items: center;
}
.player-controls .win98-btn { min-width: 50px; padding: 4px 10px; }
.player-note { font-size: 12px; color: rgba(255,214,236,0.6); margin-left: auto; }

/* ─── modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61,28,46,0.35);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(1px);
}
.modal-window { position: relative; top: auto; left: auto; transform: none; width: min(380px, 90vw); }
.modal-body {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px 20px 16px;
  background: var(--chrome-face);
}
.modal-icon {
  font-size: 42px;
  flex-shrink: 0;
  filter: drop-shadow(2px 2px 0 rgba(122,46,86,0.3));
}
.modal-headline {
  font-family: 'Pixelify Sans', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.modal-sub {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.4;
}
.modal-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px 16px;
  background: var(--chrome-face);
  border-top: 1px solid var(--chrome-dark);
}

.win98-btn {
  background: var(--chrome-face);
  border: 2px solid #FFFFFF;
  border-right-color: var(--chrome-shadow);
  border-bottom-color: var(--chrome-shadow);
  box-shadow: inset -1px -1px 0 var(--chrome-dark), inset 1px 1px 0 var(--chrome-face-2);
  padding: 6px 18px;
  font-family: 'Pixelify Sans', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  min-width: 100px;
}
.win98-btn:active {
  border-color: var(--chrome-shadow) #FFFFFF #FFFFFF var(--chrome-shadow);
  box-shadow: inset 1px 1px 0 var(--chrome-dark);
  padding: 7px 17px 5px 19px;
}

/* shutdown no-button gets jumpy */
.win98-btn.jumpy { transition: transform 0.18s; }

/* ─── context menu ─── */
.context-menu {
  position: fixed;
  min-width: 200px;
  background: var(--chrome-face);
  border: 2px solid #FFFFFF;
  border-right-color: var(--chrome-shadow);
  border-bottom-color: var(--chrome-shadow);
  box-shadow: 3px 3px 0 rgba(122,46,86,0.3);
  z-index: 800;
  padding: 3px;
  font-family: 'Pixelify Sans', monospace;
  font-size: 13px;
}
.ctx-item { padding: 6px 14px; color: var(--text-dark); }
.ctx-item:hover { background: var(--pink-title); color: white; }
.ctx-sep { height: 1px; background: var(--chrome-dark); margin: 3px 2px; }

/* ─── start menu ─── */
.start-menu {
  position: fixed;
  bottom: 36px;
  left: 0;
  width: 320px;
  background: var(--chrome-face);
  border: 2px solid #FFFFFF;
  border-right-color: var(--chrome-shadow);
  border-top-color: #FFFFFF;
  border-bottom-color: var(--chrome-shadow);
  box-shadow: 3px -3px 6px rgba(122,46,86,0.25);
  z-index: 300;
  display: flex;
  font-family: 'Pixelify Sans', monospace;
  animation: start-open 0.18s ease-out;
}
@keyframes start-open {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.start-sidebar {
  width: 40px;
  background: linear-gradient(180deg, var(--pink-title-2), var(--pink-title), #B0408A);
  position: relative;
  flex-shrink: 0;
}
.start-sidebar-text {
  position: absolute;
  bottom: 12px;
  left: 8px;
  color: rgba(255,255,255,0.95);
  font-family: 'Share Tech Mono', monospace;
  font-weight: 400;
  font-size: 22px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 2px;
  text-shadow: 1px 0 0 rgba(122,46,86,0.6);
}
.start-sidebar-text span { color: #FFD700; }

.start-items {
  flex: 1;
  padding: 6px 4px;
}
.start-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px;
}
.start-item:hover {
  background: var(--pink-title);
  color: white;
}
.start-item:hover small { color: rgba(255,255,255,0.85); }
.start-item b {
  font-size: 14px;
  font-weight: 700;
  display: block;
}
.start-item small {
  font-size: 11px;
  font-family: 'VT323', monospace;
  color: #996688;
  display: block;
}
.si-icon { font-size: 22px; width: 26px; text-align: center; }
.start-sep { height: 1px; background: var(--chrome-dark); margin: 4px 6px; }

/* ─── taskbar ─── */
.taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--chrome-face);
  border-top: 2px solid #FFFFFF;
  box-shadow: inset 0 1px 0 var(--chrome-face-2);
  display: flex;
  align-items: center;
  padding: 4px 6px;
  gap: 6px;
  z-index: 200;
  font-family: 'Pixelify Sans', monospace;
}
.start-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--chrome-face);
  border: 2px solid #FFFFFF;
  border-right-color: var(--chrome-shadow);
  border-bottom-color: var(--chrome-shadow);
  box-shadow: inset -1px -1px 0 var(--chrome-dark), inset 1px 1px 0 var(--chrome-face-2);
  padding: 4px 26px 4px 14px;
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 17px;
  color: var(--text-dark);
  height: 36px;
  min-width: 110px;
}
.start-btn.active {
  border-color: var(--chrome-shadow) #FFFFFF #FFFFFF var(--chrome-shadow);
  box-shadow: inset 1px 1px 0 var(--chrome-dark);
}
.start-icon { font-size: 20px; }

.taskbar-apps {
  flex: 1;
  display: flex;
  gap: 3px;
  padding: 0 6px;
  overflow: hidden;
}
.taskbar-app {
  background: var(--chrome-face);
  border: 2px solid #FFFFFF;
  border-right-color: var(--chrome-shadow);
  border-bottom-color: var(--chrome-shadow);
  box-shadow: inset -1px -1px 0 var(--chrome-dark);
  padding: 3px 12px;
  font-size: 12px;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.taskbar-app.active {
  border-color: var(--chrome-shadow) #FFFFFF #FFFFFF var(--chrome-shadow);
  box-shadow: inset 1px 1px 0 var(--chrome-dark);
  background: repeating-linear-gradient(45deg, var(--chrome-face) 0 2px, var(--chrome-face-2) 2px 4px);
}
.taskbar-tray {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 10px;
  height: 38px;
  background: var(--chrome-face);
  border: 2px solid var(--chrome-shadow);
  border-right-color: #FFFFFF;
  border-bottom-color: #FFFFFF;
  margin-right: 4px;
}
.tray-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 22px 0 18px;
  min-width: 110px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--chrome-face-2) 100%);
  border: 2px solid #FFFFFF;
  border-right-color: var(--chrome-shadow);
  border-bottom-color: var(--chrome-shadow);
  box-shadow: inset -1px -1px 0 var(--chrome-dark), 1px 1px 0 rgba(102,31,66,0.2);
  font-family: 'Pixelify Sans', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.05em;
}
.tray-btn:hover {
  background: linear-gradient(180deg, #FFE4F1 0%, #FFD6EC 100%);
  filter: drop-shadow(0 0 4px rgba(255,79,163,0.4));
}
.tray-btn:active {
  border-color: var(--chrome-shadow) #FFFFFF #FFFFFF var(--chrome-shadow);
  box-shadow: inset 1px 1px 0 var(--chrome-dark);
  padding: 1px 7px 0 7px;
}
.tray-btn-glyph { font-size: 16px; line-height: 1; }
.tray-btn-label { font-family: 'Share Tech Mono', monospace; font-size: 13px; letter-spacing: 0.05em; }

.tray-btn-msn { background: linear-gradient(180deg, #E4F0FF 0%, #B6D9FF 100%); border-right-color: #3A70C0; border-bottom-color: #3A70C0; }
.tray-btn-msn:hover { background: linear-gradient(180deg, #B6D9FF 0%, #8FBFFF 100%); filter: drop-shadow(0 0 4px rgba(58,112,192,0.5)); }

.tray-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: #22C55E;
  border: 1px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 5px #22C55E;
  animation: online-pulse 2s ease-in-out infinite;
}
@keyframes online-pulse {
  0%, 100% { box-shadow: 0 0 4px #22C55E; }
  50%      { box-shadow: 0 0 10px #22C55E, 0 0 16px rgba(34,197,94,0.5); }
}
.taskbar-clock {
  background: var(--chrome-face);
  border: 2px solid var(--chrome-shadow);
  border-right-color: #FFFFFF;
  border-bottom-color: #FFFFFF;
  padding: 6px 18px;
  font-family: 'VT323', monospace;
  font-size: 17px;
  color: var(--text-dark);
  height: 36px;
  min-width: 90px;
  justify-content: center;
  display: flex;
  align-items: center;
}

/* ─── boot screen ─── */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: linear-gradient(180deg, #FFEDF5 0%, #FFB8D8 38%, #E888C2 75%, #B858A0 100%);
  background-size: 100% 200%;
  animation: boot-bg-shift 10s ease-in-out infinite;
  overflow: hidden;
  font-family: 'Share Tech Mono', monospace;
  color: #3D1C2E;
  transition: opacity 1.2s ease-in, filter 1.2s ease-in;
}
.boot-screen.done {
  opacity: 0;
  filter: blur(8px);
  pointer-events: none;
}

.boot-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

@keyframes boot-bg-shift {
  0%, 100% { background-position: 0% 0%; }
  50%      { background-position: 0% 30%; }
}

/* floating hearts rising */
.boot-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.boot-hearts::before,
.boot-hearts::after {
  content: '♡ ♡ ♡ ♡ ♡ ♡ ♡ ♡ ♡ ♡ ♡ ♡ ♡ ♡ ♡ ♡';
  position: absolute;
  width: 100%;
  top: 100%;
  color: rgba(255,255,255,0.65);
  font-size: 22px;
  letter-spacing: 40px;
  white-space: nowrap;
  text-shadow: 0 0 12px rgba(255,79,163,0.5);
  animation: boot-hearts-rise 8s linear infinite;
}
.boot-hearts::after {
  animation-delay: -4s;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 60px;
  padding-left: 30px;
}
@keyframes boot-hearts-rise {
  0%   { transform: translateY(0)     rotate(0deg); }
  100% { transform: translateY(-120vh) rotate(360deg); }
}

.boot-logo {
  text-align: center;
  margin-bottom: 52px;
  position: relative;
  z-index: 2;
}

.boot-title {
  font-family: 'Fredoka One', 'Pixelify Sans', sans-serif;
  font-size: 110px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #FFFFFF;
}
.boot-title span {
  display: inline-block;
  text-shadow:
    3px 3px 0 #E03A8F,
    6px 6px 0 rgba(102,31,66,0.28),
    0 0 40px rgba(255,255,255,0.6);
  animation: boot-letter 2.4s ease-in-out infinite;
}
.boot-title span:nth-child(1) { animation-delay: 0s; }
.boot-title span:nth-child(2) { animation-delay: 0.12s; }
.boot-title span:nth-child(3) { animation-delay: 0.24s; }
.boot-title span:nth-child(4) { animation-delay: 0.36s; }
.boot-title span:nth-child(5) { animation-delay: 0.48s; }
@keyframes boot-letter {
  0%, 70%, 100% { transform: translateY(0); }
  35%           { transform: translateY(-8px) rotate(-2deg); }
}

.boot-sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: #E03A8F;
  margin-top: 18px;
  letter-spacing: 0.45em;
  text-transform: lowercase;
  animation: boot-sub-pulse 2.5s ease-in-out infinite;
}
@keyframes boot-sub-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

.boot-bar {
  width: 340px;
  height: 22px;
  background: rgba(255,255,255,0.88);
  border: 2px solid var(--chrome-shadow);
  box-shadow:
    inset 2px 2px 0 rgba(102,31,66,0.2),
    2px 2px 0 rgba(102,31,66,0.35);
  padding: 2px;
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
}
.boot-fill {
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(
    90deg,
    #E03A8F 0 10px,
    #FF6AAF 10px 14px,
    #E03A8F 14px 18px
  );
  transition: width var(--boot-bar-dur, 12.5s) ease-in-out;
  box-shadow: 0 0 14px rgba(224,58,143,0.6);
}

.boot-status {
  font-family: 'Share Tech Mono', monospace;
  font-size: 16px;
  color: var(--text-dark);
  letter-spacing: 0.08em;
  min-height: 24px;
  max-width: min(560px, 88vw);
  padding: 0 20px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.boot-status.boot-fade-in {
  animation: boot-fade-up 0.5s ease-out;
}
@keyframes boot-fade-up {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ─── BSOD ─── */
.bsod {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #FF4FA3;
  color: white;
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 18px;
  line-height: 1.5;
  padding: 60px 40px;
  overflow: auto;
}
.bsod-inner { max-width: 720px; margin: 0 auto; }
.bsod-header {
  text-align: center;
  background: white;
  color: #FF4FA3;
  padding: 4px 16px;
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 20px;
}
.bsod p { margin-bottom: 8px; }

/* ═══════════════════════════════════════════════
   MOBILE — full layout override under 700px
   ═══════════════════════════════════════════════ */
@media (max-width: 700px) {
  /* desktop: grid auto-layout, ignore inline absolute positions */
  .desktop {
    inset: 0 0 44px 0 !important;
    padding: 12px 10px 180px !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: min-content;
    gap: 10px 8px !important;
    align-content: start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .desktop .icon {
    position: static !important;
    top: auto !important; left: auto !important;
    right: auto !important; bottom: auto !important;
    width: 100% !important;
    padding: 4px 2px !important;
  }
  .icon-img { width: 42px !important; height: 42px !important; }
  .icon-label { font-size: 10px !important; letter-spacing: 0.01em; word-break: break-word; }

  /* stickies: stack under icons, centered, no tilt */
  .sticky-note {
    position: static !important;
    top: auto !important; right: auto !important;
    left: auto !important; bottom: auto !important;
    width: 92% !important;
    max-width: 240px;
    margin: 8px auto !important;
    grid-column: 1 / -1;
    transform: rotate(0deg) !important;
    font-size: 13px !important;
    padding: 22px 14px 12px !important;
  }
  .sticky-note:hover { transform: rotate(0deg) scale(1) !important; }

  /* countdown: compact, centered above taskbar */
  .countdown {
    bottom: 56px !important;
    padding: 8px 14px 10px !important;
    width: calc(100vw - 24px);
    max-width: 360px;
    min-width: 0 !important;
  }
  .cd-cell { font-size: 22px !important; min-width: 38px !important; padding: 4px 4px 2px !important; }
  .cd-cell .unit { font-size: 8px !important; }
  .countdown-label { font-size: 14px !important; letter-spacing: 0.02em !important; }
  .countdown-sub { font-size: 10px !important; letter-spacing: 0.12em !important; }

  /* skyline smaller on mobile so it doesn't eat the desktop */
  .skyline { height: 90px !important; max-height: 110px !important; min-height: 80px !important; opacity: 0.85; }

  /* windows: full width, top-anchored */
  .win98-window {
    width: 94vw !important;
    max-width: 94vw !important;
    top: 16px !important;
    left: 3vw !important;
    right: auto !important;
    transform: none !important;
  }

  .window-body {
    grid-template-columns: repeat(3, 1fr) !important;
    padding: 10px !important;
    max-height: 55vh !important;
  }

  .text-body { max-height: 58vh !important; padding: 12px !important; font-size: 14px !important; }

  /* photos / polaroids */
  .photos-body { min-height: 220px !important; max-height: 55vh !important; padding: 16px 10px !important; gap: 14px; }
  .polaroid { max-width: 140px !important; }
  .polaroid img { height: 100px !important; }

  /* msn: stack buddies on top */
  #msn-window .msn-body { grid-template-columns: 1fr !important; min-height: 0 !important; }
  .msn-buddies { border-right: none !important; border-bottom: 2px solid var(--chrome-dark); max-height: 110px; overflow-y: auto; }
  .msn-messages { max-height: 38vh !important; font-size: 14px !important; }

  /* player */
  .player-body { padding: 10px !important; }
  .spotify-embed iframe { height: 120px !important; }
  .player-controls { flex-wrap: wrap; gap: 4px; }
  .player-note { font-size: 10px !important; }

  /* mines */
  .mines-grid { grid-template-columns: repeat(9, 24px) !important; }
  .mines-cell { width: 24px !important; height: 24px !important; font-size: 13px !important; }

  /* calendar */
  .cal-body { min-height: 380px !important; }
  .cal-body iframe { height: 400px !important; }

  /* weather */
  .weather-glyph { font-size: 44px !important; }
  .weather-temp-num { font-size: 36px !important; }
  .translation-body { font-size: 15px !important; }

  /* wallpaper selector */
  .wallpaper-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .wallpaper-swatch { height: 72px !important; }

  /* pros/cons */
  .pros-table { font-size: 13px !important; }
  .pros-table th, .pros-table td { padding: 4px 6px !important; }

  /* boot screen scaling */
  .boot-title { font-size: 76px !important; }
  .boot-sub { font-size: 11px !important; letter-spacing: 0.3em !important; }
  .boot-bar { width: 260px !important; }
  .boot-status { font-size: 14px !important; max-width: 92vw !important; padding: 0 16px !important; }
  .boot-hearts::before { font-size: 16px; letter-spacing: 28px; }
  .boot-hearts::after { font-size: 12px; letter-spacing: 40px; }

  /* taskbar chrome — compact */
  .taskbar-apps { display: none; }
  .taskbar { padding: 2px 3px; }
  .start-btn { padding: 3px 8px 3px 4px !important; font-size: 12px !important; }
  .start-icon { font-size: 14px !important; }
  .taskbar-tray { padding: 1px 4px !important; gap: 4px !important; height: 28px !important; }
  .tray-btn { height: 24px !important; padding: 0 8px 0 6px !important; font-size: 10px !important; gap: 4px !important; }
  .tray-btn-glyph { font-size: 12px !important; }
  .tray-btn-label { font-size: 10px !important; }
  .taskbar-clock { font-size: 12px !important; padding: 2px 6px !important; }

  /* start menu */
  .start-menu { width: 94vw !important; left: 3vw !important; }
  .start-sidebar { width: 32px; }
  .start-sidebar-text { font-size: 18px !important; }

  /* modals */
  .modal-window { width: 94vw !important; }
  .modal-body { padding: 18px 14px 12px !important; }
  .modal-headline { font-size: 15px !important; }
  .modal-sub { font-size: 13px !important; }

  /* sun smaller + CRT off on mobile */
  .pixel-sun { width: 90px !important; height: 90px !important; }
  .crt-scanlines { display: none !important; }
}

/* very narrow phones — 3 columns */
@media (max-width: 380px) {
  .desktop { grid-template-columns: repeat(3, 1fr) !important; }
}
