
.bg { background-image: url("assets/sky.png"); }
.desktop-shortcuts { position:fixed;z-index:2;left:14px;top:18px;bottom:calc(var(--taskbar-h) + 14px);display:grid;grid-auto-flow:column;grid-template-rows:repeat(auto-fill,76px);grid-auto-columns:104px;gap:3px 6px;align-content:start;padding:4px; }
.desktop-shortcut { position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;height:76px;padding:3px 2px;color:var(--ink);border:1px solid transparent;border-radius:4px;background:transparent;user-select:none;-webkit-user-select:none;touch-action:manipulation; }
.desktop-shortcut>svg { width:40px;height:40px;filter:drop-shadow(2px 2px 0 rgba(255,255,255,.8)); }
.desktop-shortcut__label { max-width:100%;font-size:14px;line-height:1.15;overflow-wrap:anywhere;text-align:center;background:rgba(255,248,251,.9);padding:2px 3px; }
.desktop-shortcut:hover { background:rgba(255,248,251,.4); }
.desktop-shortcut.is-selected,.desktop-shortcut:focus-visible { background:rgba(220,202,255,.75);border:1px dashed var(--ink); }
.desktop-shortcut.is-selected>svg { filter:drop-shadow(2px 2px 0 rgba(255,255,255,.8)) sepia(.25) hue-rotate(-20deg) saturate(1.3); }
.marquee { position:fixed;z-index:2;pointer-events:none;border:1px dotted var(--ink);background:rgba(220,202,255,.32);box-shadow:inset 0 0 0 1px rgba(255,255,255,.5); }
.marquee[hidden] { display:none; }
.is-marquee,.is-marquee * { user-select:none!important;-webkit-user-select:none!important; }
.extra-win { position:fixed;left:50%;top:48%;transform:translate(-50%,-50%);width:min(580px,calc(100vw - 32px));max-height:calc(100dvh - var(--taskbar-h) - 40px);z-index:20;animation:none!important; }
.extra-win>.win__bar>svg { width:20px;height:20px; }
.extra-win>.win__body { max-height:calc(100dvh - var(--taskbar-h) - 90px);overflow:auto;overscroll-behavior:contain; }
.extra-win .win__btn { min-width:36px;min-height:36px; }
.diary-window>.win__body,.secret-window>.win__body { padding:0; }
.notepad-menu { padding:8px 18px;background:var(--pink-100);border-bottom:2px solid var(--pink-200);font-size:14px; }
.diary-paper { padding:22px 28px 24px;background:repeating-linear-gradient(transparent 0 27px,rgba(122,66,104,.09) 27px 28px),var(--paper); }
.diary-caption { color:var(--ink-soft);margin-bottom:24px;font-size:16px; }
.diary-entry { margin-bottom:22px;padding-left:16px;border-left:3px solid var(--pink-300); }
.diary-entry h3 { margin:0 0 6px;font-size:16px;font-weight:400;color:var(--ink-soft); }
.diary-entry p { font-size:18px;line-height:1.55; }
.diary-end { padding-top:10px;font-size:16px;color:var(--ink-soft); }
.bin-window { width:min(620px,calc(100vw - 32px)); }
.bin-toolbar { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px; }
.bin-toolbar p { font-size:14px;color:var(--ink-soft);max-width:28ch; }
.retro-button { display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:6px 12px;border:2px solid var(--ink);border-radius:4px;background:var(--pink-100);box-shadow:inset -2px -2px var(--pink-300);font-size:16px; }
.retro-button svg { width:18px;height:18px; }
.retro-button:hover { background:var(--butter); }
.retro-button:active { box-shadow:inset 2px 2px var(--pink-300); }
.bin-files { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-height:152px;padding:16px 8px;border:2px inset var(--pink-200);background:#fff;align-items:start; }
.bin-file { display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0;min-height:120px;padding:8px 2px;border:1px solid transparent;border-radius:3px;background:transparent;touch-action:manipulation; }
.bin-file:hover,.bin-file:focus-visible { background:var(--lilac-100);border-color:var(--lilac); }
.bin-file>svg { width:40px;height:40px; }
.bin-file>span { width:100%;font-size:14px;line-height:1.3;overflow-wrap:anywhere; }
.bin-file small { font-size:14px;color:var(--ink-soft); }
.bin-hint { margin-top:18px;font-size:14px;color:var(--ink-soft); }
.bin-error-window { width:min(450px,calc(100vw - 32px)); }
.bin-error-body { display:flex;gap:20px;align-items:flex-start; }
.bin-error-body>svg { width:44px;height:44px; }
.bin-error-body h3 { margin:0 0 10px;font-size:20px;font-weight:400; }
.bin-error-body p { font-size:16px; }
.bin-error-small { margin-top:16px;color:var(--ink-soft); }
.error-ok { min-width:96px;display:flex;margin:24px auto 0; }
.secret-paper { padding:20px 24px;max-height:55dvh;min-height:260px;overflow:auto;background:#fff8fb; }
.secret-note { color:var(--ink-soft);font-size:14px;margin-bottom:20px; }
.secret-line { font-size:18px;line-height:1.6;margin:0 0 10px;overflow-wrap:anywhere; }
.secret-line--loud { color:#812343; }
.secret-tail { margin-top:18px;color:#812343;min-height:24px; }
.secret-footer { padding:10px 18px;font-size:14px;border-top:2px solid var(--pink-200);color:var(--ink-soft); }
.is-haunted .bg { filter:brightness(.52) saturate(.62);transition:filter 2s; }
.is-haunted .twinkle { animation-play-state:paused;opacity:.25; }
.is-haunted .status { background:#ffd5db;color:#812343; }
.is-haunted .status>svg { width:16px;height:16px; }
.is-haunted .owl { animation:none!important; }
.is-haunted .secret-window>.win__bar { background:#e9a0b4; }
.task--extra:not(.is-on),.task[data-win="win-diary"]:not(.is-on),.task[data-win="win-bin"]:not(.is-on),.task[data-win="win-secret"]:not(.is-on),.task[data-win="win-bin-error"]:not(.is-on) { display:none; }
.startmenu { max-height:calc(100dvh - var(--taskbar-h) - 20px); }
.startmenu ul { overflow-y:auto; }
@media(min-width:881px) {
 .desktop,.footer { width:min(1080px,calc(100% - var(--rail-w,140px) - 28px));margin-left:max(calc(var(--rail-w,140px) + 12px),calc((100% - 1080px)/2));margin-right:0; }
 .desktop { pointer-events:none; }
 .desktop .win { pointer-events:auto; }
}
@media(max-width:880px) {
 .desktop-shortcuts { position:relative;left:auto;top:auto;bottom:auto;width:auto;grid-auto-flow:row;grid-template-rows:none;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;margin:18px 16px 0;padding:0;overflow:visible; }
 .desktop-shortcut { width:100%;height:auto;min-height:84px; }
 .desktop-shortcut>svg { width:36px;height:36px; }
 .desktop-shortcut__label { font-size:14px; }
 .desktop { padding-top:24px; }
 .extra-win { top:45%;width:calc(100vw - 24px); }
 .extra-win>.win__bar { gap:7px;padding-left:10px; }
 .extra-win>.win__body { max-height:calc(100dvh - var(--taskbar-h) - 100px); }
 .extra-win .win__btn { width:38px;height:38px; }
 .diary-paper { padding:20px 18px; }
 .bin-window>.win__body { padding:18px 14px; }
 .bin-toolbar { align-items:flex-start;gap:10px; }
 .bin-toolbar p { max-width:20ch; }
 .bin-files { gap:4px;padding:12px 4px; }
 .bin-file>span { font-size:14px; }
 .bin-hint { line-height:1.5; }
 .secret-paper { padding:18px; }
 .bin-error-body { gap:14px; }
}
@media(prefers-reduced-motion:reduce) { .is-haunted .bg { transition:none; } }
@media(min-width:881px) and (max-width:1160px) {
 .desktop-shortcuts { grid-auto-flow:row;grid-template-rows:none;grid-template-columns:104px;grid-auto-rows:76px;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin; }
}
@media(min-width:881px) and (max-width:1160px) and (max-height:860px) {
 .desktop-shortcuts { top:10px;bottom:calc(var(--taskbar-h) + 8px);grid-auto-rows:64px;gap:2px; }
 .desktop-shortcut { height:64px;gap:3px; }
 .desktop-shortcut>svg { width:32px;height:32px; }
 .desktop-shortcut__label { font-size:12px; }
}
@media(min-width:881px) and (max-width:1160px) and (max-height:740px) {
 .desktop-shortcuts { grid-auto-rows:58px;gap:1px; }
 .desktop-shortcut { height:58px;gap:2px;padding:2px; }
 .desktop-shortcut>svg { width:28px;height:28px; }
 .desktop-shortcut__label { font-size:11px; }
}
@media(min-width:881px) and (max-width:960px) {
 .name { font-size:18px;text-shadow:2px 2px 0 var(--pink-300); }
}
