:root {
  --ink: #13211f;
  --muted: #65736d;
  --paper: #f5f3ec;
  --line: rgba(19, 33, 31, .15);
  --lime: #d4f36a;
  --coral: #ff816b;
  --blue: #94bff5;
  --panel: rgba(250, 249, 243, .94);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: var(--lime); color: var(--ink); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--ink); border: 2px solid var(--paper); border-radius: 0; }
::-webkit-scrollbar-track { background: rgba(19,33,31,.06); }
html { scrollbar-width: thin; scrollbar-color: var(--ink) rgba(19,33,31,.06); }
body { margin: 0; color: var(--ink); font-family: 'DM Mono', monospace; background: #9fc6ce; }
button { color: inherit; font: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #397b72; outline-offset: 3px; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .035; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.9'/%3E%3C/svg%3E"); }
.desktop { min-height: 100vh; position: relative; overflow: hidden; background: linear-gradient(180deg, #a9d5dc 0%, #d8e8dc 62%, #98c09b 100%); isolation: isolate; }
.desktop::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .2; background-image: linear-gradient(rgba(19,33,31,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(19,33,31,.04) 1px, transparent 1px); background-size: 42px 42px; pointer-events: none; }
.desktop::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 100; opacity: .07; background: radial-gradient(ellipse at 30% 20%, transparent 60%, rgba(19,33,31,.18) 100%), linear-gradient(180deg, transparent 70%, rgba(19,33,31,.06) 100%); }
.wallpaper { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.wallpaper-sun { position: absolute; top: 13%; right: 15%; width: clamp(90px, 13vw, 170px); aspect-ratio: 1; border-radius: 50%; background: #ffe09a; box-shadow: 0 0 0 22px rgba(255,224,154,.18), 0 0 90px rgba(255,224,154,.45); }
.wallpaper-cloud { position: absolute; width: 145px; height: 25px; border-radius: 40px; background: rgba(255,255,255,.62); filter: blur(.2px); }
.wallpaper-cloud::before, .wallpaper-cloud::after { content: ''; position: absolute; bottom: 0; border-radius: 50% 50% 0 0; background: inherit; }
.wallpaper-cloud::before { left: 24px; width: 50px; height: 42px; }
.wallpaper-cloud::after { right: 20px; width: 68px; height: 53px; }
.wallpaper-cloud-one { top: 25%; left: 12%; transform: scale(.78); opacity: .7; }
.wallpaper-cloud-two { top: 17%; left: 47%; transform: scale(.52); opacity: .42; }
.wallpaper-mountain { position: absolute; right: -8%; bottom: 17%; left: -8%; height: 43%; clip-path: polygon(0 100%, 0 70%, 12% 46%, 22% 65%, 35% 20%, 44% 50%, 56% 9%, 66% 53%, 78% 30%, 87% 64%, 100% 39%, 100% 100%); }
.wallpaper-mountain-back { background: #7ca6a0; opacity: .75; transform: scale(1.05); }
.wallpaper-mountain-front { bottom: 8%; height: 34%; background: #4d8277; clip-path: polygon(0 100%, 0 68%, 16% 52%, 28% 75%, 42% 35%, 55% 71%, 69% 25%, 80% 64%, 91% 44%, 100% 68%, 100% 100%); }
.wallpaper-field { position: absolute; right: -10%; bottom: -15%; left: -10%; height: 33%; border-radius: 50% 50% 0 0; background: #285e59; transform: rotate(-3deg); }
.wallpaper-custom { position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: 0; background-position: center; background-repeat: no-repeat; transition: opacity .45s ease, filter .3s ease, background-size .3s ease; }
.wallpaper-custom.has-image { opacity: 1; }
.wallpaper-dim { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; background: rgba(0,0,0,0); transition: opacity .3s ease, background .3s ease; }
.desktop.has-custom-wallpaper .wallpaper { opacity: 0; pointer-events: none; }
.desktop.has-custom-wallpaper .ambient { opacity: .18; }
.desktop.has-custom-wallpaper .wallpaper-custom { z-index: -2; }
.desktop.wallpaper-drop-active { outline: 3px dashed var(--ink); outline-offset: -12px; }
.desktop.wallpaper-drop-active::after { content: 'Drop image to set wallpaper'; position: fixed; left: 50%; top: 50%; transform: translate(-50%,-50%); padding: 14px 18px; border: 1px solid var(--ink); background: var(--panel); box-shadow: 8px 8px 0 var(--ink); font: 12px 'DM Mono', monospace; letter-spacing: .08em; z-index: 50; pointer-events: none; }
.ambient { position: absolute; z-index: -1; border-radius: 50%; filter: blur(18px); pointer-events: none; will-change: transform, opacity, border-radius; animation: ambient-drift 7s ease-in-out infinite alternate; }
.ambient-one { width: 44vw; height: 44vw; top: 18%; right: -10%; background: rgba(148,191,245,.42); }
.ambient-two { width: 28vw; height: 28vw; bottom: -12%; left: 4%; background: rgba(255,129,107,.32); }
.ambient-three { width: 14vw; height: 14vw; top: 38%; left: 34%; background: rgba(212,243,106,.32); animation-duration: 5s; }
.ambient-four { width: 19vw; height: 19vw; right: 24%; bottom: -7%; background: rgba(247,200,237,.3); animation-duration: 8s; animation-direction: alternate-reverse; }
.ambient-five { width: 9vw; height: 9vw; top: 12%; left: 18%; background: rgba(169,232,165,.36); animation-duration: 4.5s; animation-direction: alternate-reverse; }
.ambient-six { width: 31vw; height: 31vw; top: -14%; left: 42%; background: rgba(255,210,161,.22); animation-duration: 9s; }
.ambient-seven { width: 24vw; height: 24vw; right: -8%; bottom: 18%; background: rgba(196,180,255,.25); animation-duration: 6s; animation-direction: alternate-reverse; }
.ambient-eight { width: 22vw; height: 22vw; bottom: -10%; left: 42%; background: rgba(169,232,165,.22); animation-duration: 7s; }
.ambient-nine { width: 16vw; height: 16vw; top: 45%; left: -8%; background: rgba(255,129,107,.2); animation-duration: 5s; animation-direction: alternate-reverse; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 24px 34px; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: 10px; align-items: center; border: 0; background: transparent; font-family: Syne, sans-serif; font-weight: 800; letter-spacing: .08em; font-size: 15px; }
.brand-mark { display: grid; place-items: center; width: 25px; height: 25px; border: 2px solid var(--ink); border-radius: 50%; font-size: 13px; }
.brand-dot { color: var(--coral); }
.topbar-status { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.theme-switch { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.28); }
.theme-choice { padding: 5px 7px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 9px; }
.theme-choice[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #6bbf67; box-shadow: 0 0 0 4px rgba(107,191,103,.15); }
.status-dot.offline { background: var(--coral); box-shadow: 0 0 0 4px rgba(255,129,107,.15); }
.divider, .dock-rule { width: 1px; height: 17px; background: var(--line); }
.desktop-content { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; max-width: 1120px; margin: 0 auto; padding: 12vh 5vw 30vh; }
.welcome-copy { position: relative; flex: 0 1 520px; }
.eyebrow { margin: 0 0 18px; color: var(--muted); font-size: 10px; letter-spacing: .16em; }
h1 { position: relative; margin: 0; font-family: Syne, sans-serif; font-size: clamp(46px, 6.6vw, 88px); line-height: .93; letter-spacing: -.03em; }
h1 em { color: #397b72; font-style: normal; position: relative; }
.scribble { position: absolute; left: -6px; right: -8px; bottom: -10px; height: 18px; color: var(--coral); opacity: .95; pointer-events: none; transform: rotate(-0.6deg); }
.scribble svg { width: 100%; height: 100%; overflow: visible; }
.welcome-detail { max-width: 320px; margin-top: 24px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.hand-note { display: block; margin-top: 10px; font-family: 'Caveat', cursive; font-size: 15px; color: var(--ink); transform: rotate(-0.8deg); opacity: .9; }
.hand-note::before { content: '→ '; color: var(--coral); }
.desktop-status-card { width: min(100%, 380px); margin-top: 32px; padding: 14px 16px; border: 1px solid var(--ink); background: rgba(250,249,243,.82); box-shadow: 6px 6px 0 rgba(19,33,31,.18); backdrop-filter: blur(6px); transform: rotate(-0.25deg); }
.desktop-status-card:hover { transform: rotate(0deg); }
.status-card-heading, .status-card-main, .status-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-card-heading { color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.pulse-line { height: 1px; flex: 1; background: var(--line); }
.status-card-main { align-items: flex-end; margin: 24px 0 18px; }
.status-card-main strong { font-family: Syne, sans-serif; font-size: 22px; }
.status-card-main span { color: var(--muted); font-size: 10px; text-align: right; }
.status-card-actions { justify-content: flex-start; flex-wrap: wrap; }
.quick-action { padding: 8px 10px; border: 1px solid var(--ink); background: var(--lime); color: var(--ink); font-size: 10px; }
.quick-action span { font-size: 14px; line-height: 0; }
.quick-action.secondary { background: transparent; }
.quick-action:hover { background: var(--coral); }
.utility-actions { display: flex; gap: 6px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.utility-button { flex: 1; min-width: 0; padding: 7px 5px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 9px; }
.utility-button span { color: var(--ink); font-size: 12px; }
.utility-button:hover, .utility-button[aria-pressed="true"] { border-color: var(--ink); background: var(--blue); color: var(--ink); }
.status-card-foot { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 8px; letter-spacing: .08em; }
.desk-sticky { position: relative; margin-top: 18px; width: min(100%, 320px); padding: 14px 14px 12px; background: #fff7a8; border: 1px solid var(--ink); box-shadow: 4px 4px 0 rgba(19,33,31,.16); transform: rotate(1.1deg); cursor: grab; user-select: none; transition: transform .15s, box-shadow .15s; }
.desk-sticky:active { cursor: grabbing; transform: rotate(0.2deg) scale(1.01); box-shadow: 2px 2px 0 rgba(19,33,31,.18); }
.desk-sticky::before { content: ''; position: absolute; inset: -1px; background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(19,33,31,.04) 6px 7px); pointer-events: none; opacity: .5; }
.sticky-tape { position: absolute; top: -10px; left: 50%; width: 84px; height: 18px; background: rgba(255,255,255,.72); border: 1px solid rgba(19,33,31,.12); box-shadow: 0 1px 4px rgba(19,33,31,.12); transform: translateX(-50%) rotate(-2deg); backdrop-filter: blur(4px); }
.sticky-text { margin: 6px 0 4px; font-family: 'Caveat', cursive; font-size: 17px; line-height: 1.2; color: #1a2b26; transform: rotate(-0.4deg); }
.sticky-text em { font-style: normal; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 10px; }
.sticky-meta { color: var(--muted); font-size: 8px; letter-spacing: .06em; }
.craft-badge { margin: 14px 0 0; font-family: 'Caveat', cursive; font-size: 13px; color: var(--muted); transform: rotate(-0.6deg); opacity: .9; }
.doodle { position: absolute; right: 6vw; bottom: 118px; font-family: 'Caveat', cursive; font-size: 14px; color: var(--ink); opacity: .18; transform: rotate(-2deg); pointer-events: none; letter-spacing: .02em; }
.app-constellation { flex: 0 0 420px; max-width: 460px; }
.constellation-eyebrow { margin: 0 0 14px; font-size: 9px; letter-spacing: .14em; color: var(--muted); opacity: .9; }
.app-group { margin-bottom: 18px; padding: 12px 12px 10px; border: 1px solid rgba(19,33,31,.10); background: rgba(250,249,243,.32); backdrop-filter: blur(4px); transform: rotate(var(--r, 0deg)); }
.app-group:nth-child(2) { --r: 0.35deg; }
.app-group:nth-child(3) { --r: -0.45deg; }
.app-group:nth-child(4) { --r: 0.25deg; }
.app-group:nth-child(5) { --r: -0.3deg; }
.app-group:nth-child(6) { --r: 0.2deg; }
.group-label { display: block; margin-bottom: 10px; font-size: 9px; letter-spacing: .13em; color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 6px; }
/* ── Doraemon — image based, high-fidelity ── */
.doraemon { position: fixed; bottom: 14px; left: 22vw; width: 90px; height: 112px; z-index: 13; cursor: pointer; user-select: none; touch-action: none; filter: drop-shadow(4px 6px 0 rgba(19,33,31,.16)); transition: filter .18s, transform .2s; will-change: left, bottom, transform; outline: 0; display: grid; place-items: end center; }
.doraemon:hover { filter: drop-shadow(5px 7px 0 rgba(19,33,31,.20)) brightness(1.03); transform: translateY(-1px); }
.doraemon:focus-visible { filter: drop-shadow(4px 6px 0 rgba(19,33,31,.22)) brightness(1.04); outline: 2px solid var(--ink); outline-offset: 3px; }
.doraemon:active { filter: drop-shadow(2px 3px 0 rgba(19,33,31,.16)) brightness(.98); transform: translateY(0); }
.dora-img { width: 88px; height: auto; max-height: 108px; object-fit: contain; object-position: bottom center; pointer-events: none; display: block; filter: drop-shadow(0 1px 0 rgba(0,0,0,.08)); transition: transform .22s; image-rendering: auto; }
.doraemon.is-walking .dora-img { animation: dora-img-walk .42s ease-in-out infinite alternate; transform-origin: 50% 85%; }
.doraemon.is-facing-left .dora-img { transform: scaleX(-1); }
.doraemon.is-walking.is-facing-left .dora-img { animation-name: dora-img-walk-flip; }
.dora-propeller-wrap { position: absolute; left: 50%; top: -6px; width: 60px; height: 22px; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s cubic-bezier(.34,1.56,.64,1); z-index: 3; }
.doraemon.is-flying .dora-propeller-wrap { opacity: 1; transform: translateX(-50%) translateY(-2px) scale(1.06); }
.dora-stem { position: absolute; left: 50%; bottom: 0; width: 5px; height: 12px; background: linear-gradient(180deg, #ffd54a 0%, #ff9f0a 100%); border: 1.2px solid var(--ink); border-bottom: 0; transform: translateX(-50%); border-radius: 3px 3px 1px 1px; box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.dora-propeller { position: absolute; left: 50%; top: 3px; width: 54px; height: 10px; transform: translateX(-50%); }
.dora-propeller span { position: absolute; top: 50%; width: 23px; height: 8px; background: linear-gradient(180deg, #fff6a6 0%, #ffe02f 35%, #ffb800 70%, #ff8c00 100%); border: 1.2px solid var(--ink); border-radius: 10px; transform-origin: 19px 50%; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 1px 1px rgba(0,0,0,.12); }
.dora-propeller span:first-child { left: 2px; transform: translateY(-50%) rotate(0deg); }
.dora-propeller span:last-child { right: 2px; transform: translateY(-50%) rotate(180deg); }
.doraemon.is-flying .dora-propeller span { animation: dora-propeller-spin .11s linear infinite; }
.doraemon.is-flying .dora-propeller span:last-child { animation-duration: .09s; animation-direction: reverse; }
.dora-propeller::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; background: radial-gradient(circle at 30% 30%, #fff 0%, #ffe9a8 35%, #ffb800 70%); border: 1.2px solid var(--ink); border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.dora-shadow { position: absolute; left: 14px; right: 14px; bottom: -8px; height: 10px; background: rgba(19,33,31,.18); border-radius: 50%; filter: blur(2.5px); transform: scaleX(1); transition: transform .25s, opacity .25s; z-index: -1; }
.doraemon.is-flying .dora-shadow { transform: scaleX(.48) scaleY(.65); opacity: .14; filter: blur(3px); }
.doraemon.is-jumping .dora-img { animation: dora-img-jump .48s cubic-bezier(.34,1.56,.64,1) !important; }
.doraemon.is-facing-left { transform: scaleX(1); }
.doraemon.is-facing-left .dora-img { transform: scaleX(-1); }
.doraemon.is-flying { animation: dora-fly-bob 1.6s ease-in-out infinite; }
.dora-bubble { position: fixed; z-index: 14; max-width: min(260px, 72vw); padding: 10px 12px 10px; background: #fffefb; border: 1.6px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); font-size: 11px; line-height: 1.55; transform: rotate(-0.6deg); animation: dora-bubble-pop .22s cubic-bezier(.34,1.56,.64,1); pointer-events: auto; }
.dora-bubble::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 5px, rgba(19,33,31,.03) 5px 6px); pointer-events: none; }
.dora-bubble-text { position: relative; display: block; padding-right: 14px; }
.dora-bubble-tail { position: absolute; left: 22px; bottom: -8px; width: 12px; height: 12px; background: #fffefb; border-right: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(45deg); box-shadow: 2px 2px 0 rgba(19,33,31,.10); }
.dora-bubble-close { position: absolute; right: 5px; top: 5px; width: 16px; height: 16px; border: 1px solid var(--ink); border-radius: 50%; background: var(--coral); font-size: 9px; line-height: 14px; padding: 0; }
.dora-bubble-close:hover { background: var(--lime); }
.dora-summon { position: fixed; right: 18px; bottom: 86px; z-index: 14; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.6px solid var(--ink); background: #fffefb; box-shadow: 5px 5px 0 var(--ink); font: 11px 'DM Mono', monospace; cursor: pointer; transform: rotate(-0.7deg); transition: transform .15s, box-shadow .15s; }
.dora-summon:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 6px 6px 0 var(--ink); background: var(--lime); }
.dora-summon span { font-size: 16px; }
.dora-summon em { font-style: normal; color: var(--muted); font-size: 10px; }
.doraemon.is-hidden { display: none !important; }
#doraToggleButton[aria-pressed="false"] { opacity: .62; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.dora-dock-toggle { background: #00a6e8 !important; color: #fff !important; border: 1px solid var(--ink) !important; position: relative; overflow: hidden; }
.dora-dock-toggle .dora-dock-icon { display: grid; place-items: center; width: 20px; height: 20px; background: #fff; color: #00a6e8; border: 1px solid var(--ink); border-radius: 50%; font-size: 11px; font-weight: 800; box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.dora-dock-toggle .dora-dock-icon::after { content: '●'; font-size: 6px; color: #ff1f1f; position: absolute; bottom: 6px; }
.dora-dock-toggle[aria-pressed="false"] { background: var(--paper) !important; color: var(--muted) !important; opacity: .72; filter: grayscale(.2); }
.dora-dock-toggle[aria-pressed="false"] .dora-dock-icon { background: #e8e8e8; color: var(--muted); }
.dora-dock-toggle:hover { transform: translateY(-3px); }
@keyframes dora-propeller-spin { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg); } }
@keyframes dora-img-walk { 0% { transform: rotate(-1deg) translateY(0) scaleX(1); } 100% { transform: rotate(1deg) translateY(-2px) scaleX(1); } }
@keyframes dora-img-walk-flip { 0% { transform: rotate(1deg) translateY(0) scaleX(-1); } 100% { transform: rotate(-1deg) translateY(-2px) scaleX(-1); } }
@keyframes dora-img-jump { 0% { transform: translateY(0) scaleX(1); } 28% { transform: translateY(-16px) scaleX(1); } 100% { transform: translateY(0) scaleX(1); } }
@keyframes dora-fly-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes dora-jump { 0% { transform: translateY(0) scaleX(var(--sx,1)); } 28% { transform: translateY(-18px) scaleX(var(--sx,1)); } 100% { transform: translateY(0) scaleX(var(--sx,1)); } }
@keyframes dora-bubble-pop { from { opacity: 0; transform: rotate(-0.6deg) scale(.92); } to { opacity: 1; transform: rotate(-0.6deg) scale(1); } }
@media (max-width: 700px) { .doraemon { width: 60px; height: 74px; bottom: 10px; } .dora-head { width: 58px; height: 46px; } .dora-face { top: 10px; } .dora-body { top: 43px; height: 24px; } .dora-bubble { max-width: 52vw; font-size: 10px; } }
.desktop.focus-mode .app-grid { opacity: .08; filter: blur(2px); pointer-events: none; }
.desktop.focus-mode .ambient { opacity: .12 !important; }
.desktop.focus-mode .desktop-status-card { box-shadow: 9px 9px 0 var(--ink); }
.desktop.focus-mode .welcome-detail::after { content: ' Focus mode is on.'; color: var(--ink); }
.window-header:has(.maximize-window:hover) { background: rgba(148,191,245,.55); }
.app-grid { display: grid; grid-template-columns: repeat(2, 110px); gap: 20px; margin-top: 0; }
.app-constellation .app-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.app-icon { position: relative; display: grid; gap: 8px; justify-items: center; border: 0; background: transparent; font-size: 10px; letter-spacing: .02em; transition: transform .2s cubic-bezier(.34,1.56,.64,1), filter .2s ease; transform-origin: center bottom; }
.app-icon:nth-child(1) { transform: rotate(-0.9deg); }
.app-icon:nth-child(2) { transform: rotate(0.7deg); }
.app-icon:nth-child(3) { transform: rotate(-0.4deg); }
.app-icon:nth-child(4) { transform: rotate(0.9deg); }
.app-icon:hover { transform: translateY(-6px) rotate(0deg) scale(1.02); z-index: 2; }
.app-icon:hover .app-glyph { box-shadow: 7px 8px 0 var(--ink); transform: rotate(-0.6deg); }
.app-icon:active { transform: translateY(-2px) scale(0.98); }
.app-glyph { display: grid; place-items: center; width: 62px; height: 62px; border: 1.5px solid var(--ink); border-radius: 18px 20px 17px 19px / 19px 17px 20px 18px; font-family: Syne, sans-serif; font-size: 22px; box-shadow: 4px 4px 0 var(--ink); transition: transform .2s, box-shadow .2s, border-radius .2s; position: relative; }
.app-glyph::after { content: ''; position: absolute; inset: 3px; border: 1px dashed rgba(19,33,31,.10); border-radius: 13px; pointer-events: none; opacity: .0; transition: opacity .2s; }
.app-icon:hover .app-glyph::after { opacity: 1; }
.app-icon span:last-child { position: relative; max-width: 78px; text-align: center; line-height: 1.1; }
.app-icon span:last-child::after { content: ''; position: absolute; left: 50%; bottom: -3px; width: 0; height: 1.5px; background: var(--ink); transform: translateX(-50%); transition: width .2s; opacity: .0; }
.app-icon:hover span:last-child::after { width: 100%; opacity: .18; }
/* square cloud tooltip — chunky, square, hand-made */
.square-cloud { position: fixed; z-index: 40; width: 220px; padding: 10px 12px 11px; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); pointer-events: none; opacity: 0; transform: translate(-50%, 8px) rotate(-0.4deg) scale(.96); transition: opacity .15s ease, transform .18s cubic-bezier(.34,1.56,.64,1); will-change: transform, opacity; }
.square-cloud.is-visible { opacity: 1; transform: translate(-50%, 0) rotate(0.2deg) scale(1); }
.square-cloud::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent 0 5px, rgba(19,33,31,.03) 5px 6px); pointer-events: none; }
.cloud-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; padding-bottom: 7px; border-bottom: 1px solid var(--line); position: relative; }
.cloud-dot { width: 8px; height: 8px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--lime); flex-shrink: 0; box-shadow: 1px 1px 0 var(--ink); }
.cloud-title { font-family: Syne, sans-serif; font-weight: 800; font-size: 12px; letter-spacing: -.01em; flex: 1; }
.cloud-tag { font-size: 7px; letter-spacing: .1em; color: var(--muted); border: 1px solid var(--line); padding: 2px 5px; background: rgba(255,255,255,.6); }
.cloud-desc { margin: 0; font-size: 11px; line-height: 1.5; color: var(--muted); position: relative; }
.cloud-arrow { position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; background: var(--paper); border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateX(-50%) rotate(45deg); box-shadow: 2px 2px 0 rgba(19,33,31,.08); }
.notes-glyph { background: var(--lime); }
.files-glyph { background: var(--coral); }
.terminal-glyph { background: var(--blue); font-family: 'DM Mono', monospace; font-size: 17px; }
.about-glyph { background: #f7c8ed; }
.browser-glyph { background: #b9e8d1; }
.calculator-glyph { background: #f4d68b; }
.paint-glyph { background: #f2a7b8; }
.clock-glyph { background: #b6d3ff; }
.game-glyph { background: #d5c5ff; }
.calendar-glyph { background: #ffd2a1; }
.snake-glyph { background: #a9e8a5; }
.mines-glyph { background: #c4b4ff; }
.camera-glyph { background: #d6d9e8; }
.instagram-glyph { background: #f2a7b8; }
.whatsapp-glyph { background: #a9e8a5; }
.youtube-glyph { background: #ff9c86; }
.wallpaper-glyph { background: #a5d8ff; }
.random-glyph { background: #f5e86b; }
.random-lab { display: grid; gap: 18px; }
.random-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.random-actions button { padding: 8px 10px; border: 1px solid var(--ink); background: var(--lime); font-size: 10px; }
.random-actions button:hover { background: var(--coral); }
.random-output { min-height: 72px; margin: 0; padding: 12px; border: 1px solid var(--line); background: rgba(148,191,245,.16); color: var(--muted); font-size: 11px; }
.random-custom { display: flex; gap: 8px; }
.random-custom input { min-width: 0; flex: 1; padding: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.5); color: var(--ink); font: 11px 'DM Mono', monospace; }
.wallpaper-app { display: grid; gap: 18px; }
.wallpaper-preview { position: relative; height: 148px; overflow: hidden; border: 1px solid var(--ink); background: linear-gradient(180deg, #a9d5dc, #98c09b); }
.wallpaper-preview-inner { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; }
.wallpaper-preview-label { position: absolute; left: 10px; bottom: 10px; padding: 4px 7px; border: 1px solid var(--line); background: rgba(255,255,255,.82); color: var(--ink); font-size: 9px; letter-spacing: .08em; }
.wallpaper-section { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.34); }
.wallpaper-section h3 { margin: 0; font-family: Syne, sans-serif; font-size: 11px; letter-spacing: .08em; }
.wallpaper-section p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.wallpaper-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wallpaper-upload label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--ink); background: var(--lime); font-size: 10px; cursor: pointer; }
.wallpaper-upload label:hover { background: var(--coral); }
.wallpaper-upload input[type="file"] { display: none; }
.wallpaper-url-row { display: flex; gap: 8px; }
.wallpaper-url-row input { flex: 1; min-width: 0; padding: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.55); color: var(--ink); font: 11px 'DM Mono', monospace; }
.wallpaper-url-row button, .wallpaper-actions button, .wallpaper-preset-more { padding: 8px 10px; border: 1px solid var(--ink); background: var(--blue); font-size: 10px; }
.wallpaper-url-row button:hover, .wallpaper-actions button:hover { background: var(--lime); }
.wallpaper-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.wallpaper-preset { height: 54px; padding: 0; border: 1px solid var(--ink); cursor: pointer; position: relative; overflow: hidden; }
.wallpaper-preset span { position: absolute; inset: auto 0 0; padding: 3px 4px; background: rgba(0,0,0,.38); color: #fff; font-size: 7px; text-align: center; letter-spacing: .06em; }
.wallpaper-preset.active { outline: 2px solid var(--ink); outline-offset: 2px; }
.wallpaper-controls { display: grid; gap: 10px; }
.wallpaper-control { display: grid; gap: 6px; }
.wallpaper-control label { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.wallpaper-control input[type="range"] { width: 100%; accent-color: #397b72; }
.wallpaper-control select { padding: 7px; border: 1px solid var(--line); background: rgba(255,255,255,.55); color: var(--ink); font: 11px 'DM Mono', monospace; }
.wallpaper-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wallpaper-actions .danger { background: var(--coral); }
.wallpaper-status { min-height: 18px; color: var(--muted); font-size: 10px; }
.wallpaper-drop-active .wallpaper-preview { outline: 2px dashed var(--ink); outline-offset: 3px; background: rgba(212,243,106,.25); }
@media (max-width: 500px) {
  .wallpaper-presets { grid-template-columns: repeat(3, 1fr); }
  .wallpaper-preview { height: 120px; }
}
.dock { position: fixed; z-index: 10; bottom: 25px; left: 50%; display: flex; align-items: center; gap: 14px; padding: 10px 15px; border: 1px solid var(--ink); border-radius: 22px; background: rgba(250,249,243,.8); box-shadow: 0 10px 35px rgba(19,33,31,.15); backdrop-filter: blur(15px); transform: translateX(-50%); }
.dock-item { display: grid; place-items: center; width: 37px; height: 37px; border: 0; border-radius: 10px; background: transparent; font-size: 16px; transition: background .2s, transform .2s; }
.dock-item:hover { background: var(--lime); transform: translateY(-3px); }
.dock-search-form { position: relative; display: flex; align-items: center; gap: 7px; width: 170px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.45); }
.dock-search-icon { color: var(--muted); font-size: 18px; line-height: 1; }
.dock-search-form input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 10px 'DM Mono', monospace; }
.dock-search-results { position: absolute; bottom: calc(100% + 10px); left: 0; width: 210px; max-height: 280px; overflow-y: auto; padding: 6px; border: 1px solid var(--ink); background: var(--panel); box-shadow: 6px 6px 0 var(--ink); }
.dock-search-results { z-index: 30; pointer-events: auto; }
.dock-search-results button { display: block; width: 100%; padding: 9px 8px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; font-size: 10px; }
.dock-search-results button:hover, .dock-search-results button:focus-visible { background: var(--lime); outline: 0; }
.window-tray { display: flex; gap: 6px; max-width: 180px; overflow: auto; }
.tray-item { max-width: 82px; overflow: hidden; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; background: transparent; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tray-item:hover { background: var(--blue); }
.launcher { background: var(--ink); color: var(--paper); font-family: Syne, sans-serif; font-weight: bold; }
.launcher:hover { background: var(--coral); color: var(--ink); }
.launcher-panel { position: fixed; z-index: 12; bottom: 88px; left: 25px; width: 220px; padding: 20px; border: 1px solid var(--ink); background: var(--panel); box-shadow: 9px 9px 0 var(--ink); }
.launcher-panel button { display: flex; gap: 12px; width: 100%; padding: 11px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; font-size: 11px; }
.launcher-panel button:hover { color: #397b72; }
.launcher-search { width: 100%; margin: 0 0 9px; padding: 9px 8px; border: 1px solid var(--line); outline: 0; background: rgba(255,255,255,.5); color: var(--ink); font: 10px 'DM Mono', monospace; }
.window { position: absolute; z-index: 5; top: 18%; left: 50%; width: min(500px, calc(100vw - 32px)); border: 1px solid var(--ink); background: var(--panel); box-shadow: 12px 12px 0 rgba(19,33,31,.88); animation: appear .25s ease-out both; }
.window-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-bottom: 1px solid var(--line); background: rgba(212,243,106,.55); cursor: grab; user-select: none; }
.window-title { font-family: Syne, sans-serif; font-size: 13px; font-weight: 700; }
.window-actions { display: flex; gap: 7px; }
.window-actions button { width: 20px; height: 20px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: var(--coral); font-size: 10px; line-height: 16px; }
.window-actions button:first-child { background: var(--lime); }
.window-actions .maximize-window { background: var(--blue); }
.window.is-maximized { inset: 74px 18px 92px; width: auto; transform: none !important; }
.window.is-maximized .window-content { max-height: calc(100vh - 130px); overflow: auto; }
.window.is-maximized .window-header { cursor: default; }
.window-content { padding: 24px; min-height: 210px; font-size: 12px; line-height: 1.7; }
.window-content textarea { width: 100%; min-height: 180px; padding: 12px; border: 1px solid var(--line); outline: none; resize: vertical; background: rgba(255,255,255,.45); color: var(--ink); font: inherit; }
.file-row { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); }
.files-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.new-file { padding: 6px 8px; border: 1px solid var(--ink); background: var(--lime); color: var(--ink); font-size: 10px; letter-spacing: 0; }
.file-open { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; }
.file-open:hover { color: #397b72; text-decoration: underline; }
.file-type { color: var(--muted); font-size: 10px; }
.terminal-body { background: #172421; color: var(--lime); font-size: 11px; }
.terminal-body p { margin: 0 0 13px; }
.terminal-input { display: flex; gap: 8px; }
.terminal-input input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--lime); font: inherit; }
.terminal-output { max-height: 155px; overflow: auto; }
.save-state { margin: 10px 0 0; color: var(--muted); font-size: 10px; }
.calculator-display { display: block; width: 100%; min-height: 54px; padding: 13px; margin-bottom: 14px; overflow: hidden; border: 1px solid var(--ink); background: var(--ink); color: var(--lime); font: 22px 'DM Mono', monospace; text-align: right; }
.calculator-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.calculator-keys button { min-height: 42px; border: 1px solid var(--ink); background: rgba(148,191,245,.25); font-size: 14px; }
.calculator-keys button:hover { background: var(--lime); }
.calculator-keys .equals-key { grid-row: span 2; background: var(--coral); }
.calculator-keys .zero-key { grid-column: span 2; }
.paint-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 13px; font-size: 10px; }
.paint-tools label { display: flex; align-items: center; gap: 5px; }
.paint-color { width: 28px; height: 25px; padding: 0; border: 1px solid var(--ink); background: transparent; }
.paint-size { width: 90px; accent-color: #397b72; }
.paint-tools button, .game-start { padding: 6px 9px; border: 1px solid var(--ink); background: var(--lime); font-size: 10px; }
.paint-canvas { display: block; width: 100%; height: auto; min-height: 230px; border: 1px solid var(--ink); background: #fff; cursor: crosshair; touch-action: none; }
.clock-app { padding: 28px 10px; text-align: center; }
.clock-time { font: 48px Syne, sans-serif; letter-spacing: .02em; }
.clock-date { margin-top: 12px; color: var(--muted); font-size: 12px; }
.clock-meta { display: flex; justify-content: space-between; margin-top: 36px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.game-score { display: flex; justify-content: space-between; padding-bottom: 10px; color: var(--muted); font-size: 10px; }
.game-score strong { color: var(--ink); font-size: 15px; }
.game-board { position: relative; height: 230px; overflow: hidden; border: 1px solid var(--ink); background: #172421; }
.game-target { position: absolute; left: 45%; top: 42%; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--coral); color: var(--ink); font-size: 20px; transform: translate(-50%, -50%); }
.game-target:hover { background: var(--lime); }
.game-hint { color: var(--muted); font-size: 10px; }
.calendar-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; font-family: Syne, sans-serif; }
.calendar-heading button { width: 28px; height: 28px; border: 1px solid var(--line); background: transparent; }
.calendar-heading button:hover { background: var(--lime); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.calendar-weekday { color: var(--muted); font-size: 9px; }
.calendar-day { min-height: 32px; border: 1px solid transparent; background: rgba(148,191,245,.18); color: inherit; font: 11px 'DM Mono', monospace; }
.calendar-day:hover, .calendar-day.today { border-color: var(--ink); background: var(--coral); }
.snake-canvas { display: block; width: min(100%, 320px); height: auto; margin: 0 auto; border: 1px solid var(--ink); image-rendering: pixelated; }
.snake-app { text-align: center; }
.mines-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; padding: 3px; border: 1px solid var(--ink); background: #172421; }
.mine-cell { aspect-ratio: 1; min-width: 25px; padding: 0; border: 1px solid var(--ink); background: var(--blue); color: var(--ink); font: 13px 'DM Mono', monospace; }
.mine-cell:hover { background: var(--lime); }
.mine-cell.revealed { background: rgba(255,255,255,.7); }
.mine-cell.mine-hit { background: var(--coral); }
.mines-reset { padding: 6px 9px; border: 1px solid var(--ink); background: var(--lime); font-size: 10px; }
.browser-toolbar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: rgba(148,191,245,.24); }
.browser-control { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid transparent; background: transparent; font-size: 16px; }
.browser-control:hover { border-color: var(--line); background: var(--lime); }
.address-form { display: flex; align-items: center; flex: 1; gap: 8px; margin-left: 4px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.58); }
.address-lock { color: #397b72; font-size: 12px; }
.address-input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: 11px 'DM Mono', monospace; }
.external-link { width: 28px; height: 28px; border: 1px solid transparent; background: transparent; font-size: 15px; }
.external-link:hover { border-color: var(--line); background: var(--coral); }
.browser-frame { display: block; width: 100%; height: 390px; border: 0; background: #fff; }
.camera-app { text-align: center; }
.camera-preview, .camera-snapshot { display: block; width: 100%; max-height: 330px; object-fit: cover; border: 1px solid var(--ink); background: #172421; }
.camera-status { color: var(--muted); font-size: 10px; }
.camera-actions { display: flex; justify-content: center; gap: 8px; }
.camera-actions button { padding: 7px 9px; border: 1px solid var(--ink); background: var(--lime); font-size: 10px; }
.camera-actions button:disabled { cursor: not-allowed; opacity: .45; }
@keyframes appear { from { opacity: 0; transform: translate(-50%, 15px) scale(.97); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes ambient-drift { from { transform: translate3d(-2vw, -1vh, 0) rotate(-2deg); } to { transform: translate3d(2vw, 2vh, 0) rotate(3deg); } }
.app-icon { opacity: 1; }
body.dark { --ink: #ecf0e7; --muted: #9aa99f; --paper: #1b2925; --line: rgba(236,240,231,.2); --panel: rgba(31,45,40,.96); }
body.dark .desktop { background: linear-gradient(180deg, #172d42 0%, #345467 62%, #203f3e 100%); }
body.dark .desktop::before { opacity: .16; }
body.dark .wallpaper-sun { background: #f4c978; box-shadow: 0 0 0 22px rgba(244,201,120,.1), 0 0 90px rgba(244,201,120,.2); }
body.dark .wallpaper-cloud { background: rgba(190,211,216,.18); }
body.dark .wallpaper-mountain-back { background: #375f68; }
body.dark .wallpaper-mountain-front { background: #244d4d; }
body.dark .wallpaper-field { background: #142f35; }
body.dark .dock { background: rgba(31,45,40,.85); }
body.dark .window-content textarea { color: var(--ink); background: rgba(0,0,0,.18); }
body.dark .desk-sticky { background: #2a2f1e; border-color: var(--line); }
body.dark .desk-sticky .sticky-text { color: #e6f0a8; }
body.dark .square-cloud { background: #1f2d28; }
body.dark .square-cloud .cloud-arrow { background: #1f2d28; }
body.dark .app-group { background: rgba(255,255,255,.06); border-color: rgba(236,240,231,.08); }
body.dark .app-glyph::after { border-color: rgba(236,240,231,.08); }
body.dark .grain { opacity: .018; }
@media (max-width: 980px) {
  .desktop-content { gap: 32px; padding-right: 4vw; padding-left: 4vw; }
  .app-constellation { flex-basis: 360px; max-width: 380px; }
  .app-constellation .app-grid { gap: 12px; }
  .app-glyph { width: 56px; height: 56px; }
  .dock { gap: 9px; }
  .dock-item:nth-of-type(n + 8):nth-of-type(-n + 10), .dock-rule:nth-of-type(2) { display: none; }
  .window { top: 14%; }
}
@media (max-width: 700px) {
  .topbar { padding: 20px; }
  .desktop-content { display: block; padding: 10vh 22px 180px; }
  .welcome-copy { flex: none; }
  .app-constellation { max-width: none; margin-top: 28px; }
  .app-constellation .app-grid { grid-template-columns: repeat(4, minmax(52px, 1fr)); gap: 8px; }
  .app-group { padding: 10px; }
  .app-glyph { width: 54px; height: 54px; border-radius: 15px; box-shadow: 3px 3px 0 var(--ink); }
  .app-grid span:last-child { font-size: 10px; }
  .desk-sticky { transform: rotate(0.8deg); }
  .doodle { display: none; }
  .square-cloud { display: none !important; }
  .topbar-status span:not(.status-dot):not(.divider) { display: none; }
  .window { top: 17%; }
  .browser-frame { height: 330px; }
  .browser-toolbar { padding: 8px; }
  .clock-time { font-size: 34px; }
  .game-board { height: 200px; }
  .dock { max-width: calc(100vw - 20px); overflow: visible; justify-content: flex-start; }
  .dock-search-form { min-width: 145px; }
}
@media (max-width: 460px) {
  .topbar { align-items: flex-start; padding: 16px; }
  .theme-switch { display: none; }
  .desktop-content { padding: 8vh 16px 170px; }
  .desktop-status-card { margin-top: 26px; }
  .utility-actions { flex-wrap: wrap; }
  .utility-button { flex-basis: calc(50% - 3px); }
  h1 { font-size: clamp(40px, 13vw, 58px); }
  .app-constellation .app-grid { grid-template-columns: repeat(4, minmax(48px, 1fr)); gap: 7px; }
  .app-glyph { width: 50px; height: 50px; font-size: 18px; }
  .app-group { margin-bottom: 12px; }
  .dock { bottom: 10px; gap: 5px; padding: 7px; }
  .dock-item { width: 32px; height: 32px; font-size: 14px; }
  .dock-search-form { width: 112px; min-width: 0; padding: 6px 7px; }
  .dock-search-form input { font-size: 9px; }
  .window { top: 10%; width: calc(100vw - 20px); box-shadow: 7px 7px 0 rgba(19,33,31,.88); }
  .window.is-maximized { inset: 62px 10px 72px; }
  .window-content { padding: 16px; }
  .browser-toolbar { flex-wrap: wrap; }
  .address-form { order: 2; flex-basis: 100%; margin-left: 0; }
  .browser-frame { height: 270px; }
  .paint-canvas { min-height: 180px; }
  .doraemon { width: 54px; height: 68px; bottom: 8px; }
  .dora-head { width: 52px; height: 42px; left: 1px; }
  .dora-face { left: 4px; right: 4px; top: 9px; }
  .dora-body { top: 39px; height: 22px; left: 8px; right: 8px; }
  .dora-bubble { max-width: 68vw; }
  .dora-summon { right: 10px; bottom: 74px; padding: 8px 11px; font-size: 10px; }
}
/* ── Extra breakpoints — hand-tuned for every screen ── */
@media (min-width: 1300px) {
  .desktop-content { max-width: 1240px; padding: 14vh 3vw 32vh; gap: 64px; }
  .welcome-copy { flex-basis: 560px; }
  .app-constellation { flex-basis: 500px; max-width: 520px; }
  .app-constellation .app-grid { gap: 16px; }
  .app-glyph { width: 68px; height: 68px; font-size: 23px; }
  h1 { font-size: 92px; }
}
@media (max-width: 1180px) {
  .desktop-content { max-width: 1020px; padding: 11vh 4vw 28vh; }
  .app-constellation { flex-basis: 380px; max-width: 400px; }
  .doraemon { left: 18vw; }
}
@media (max-width: 820px) {
  .desktop-content { gap: 28px; padding: 10vh 3vw 26vh; }
  .welcome-copy { flex-basis: 420px; }
  .app-constellation { flex-basis: 320px; }
  .doodle { right: 3vw; font-size: 12px; }
  .doraemon { bottom: 12px; }
}
@media (max-width: 640px) {
  .desktop-content { padding: 9vh 18px 160px; }
  h1 { font-size: clamp(38px, 11vw, 54px); }
  .welcome-detail { max-width: 100%; }
  .desk-sticky { width: 100%; }
  .doraemon { width: 56px; height: 70px; }
  .dora-summon { bottom: 78px; font-size: 10px; padding: 8px 10px; }
  .dora-bubble { max-width: 62vw; }
}
@media (max-width: 380px) {
  .topbar { padding: 12px; }
  .brand { font-size: 13px; gap: 6px; }
  .desktop-content { padding: 7vh 12px 150px; gap: 18px; }
  .app-constellation .app-grid { grid-template-columns: repeat(4, minmax(42px, 1fr)); gap: 6px; }
  .app-glyph { width: 44px; height: 44px; font-size: 16px; box-shadow: 2px 2px 0 var(--ink); }
  .app-group { padding: 8px 8px 7px; }
  .group-label { font-size: 8px; }
  .dock { gap: 4px; padding: 6px; border-radius: 16px; }
  .dock-item { width: 28px; height: 28px; font-size: 12px; }
  .window { width: calc(100vw - 14px); }
  .doraemon { width: 50px; height: 64px; bottom: 6px; }
  .dora-bubble { max-width: 74vw; padding: 8px 9px; }
}
@media (max-height: 720px) {
  .desktop-content { padding-top: 8vh; padding-bottom: 22vh; }
  h1 { font-size: clamp(36px, 5.8vw, 72px); }
  .desktop-status-card { margin-top: 18px; padding: 12px 14px; }
  .desk-sticky { margin-top: 12px; padding: 10px 11px; }
  .doraemon { bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } }
