.sw-desktop { height: 100%; display: flex; flex-direction: column; color: #f0f0f2; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; isolation: isolate; }
.sw-surface[data-wallpaper="aquarium"], .sw-wallpaper-preview[data-wallpaper="aquarium"] { background: #10291f url('/assets/skywalker-os/play/aquarium.jpg') center / cover no-repeat; }
.sw-aquarium-fish { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sw-aquarium-fish[hidden] { display: none; }
.sw-menubar { height: 35px; flex: 0 0 35px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; background: #404146; border-top: 1px solid #76787d; border-bottom: 2px solid #222328; box-shadow: inset 0 1px #ffffff12; z-index: 2; user-select: none; }
.sw-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .08em; }
.sw-brand > span { font-size: 21px; color: #e2e4ec; }
.sw-clock { font-size: 11px; white-space: nowrap; color: #e0e1e5; }
.sw-surface { flex: 1; min-height: 0; position: relative; overflow: hidden; background: #090f26 url('/assets/skywalker-os/play/blue-portal.svg') center / cover no-repeat; }
.sw-surface[data-wallpaper="blue-portal"], .sw-wallpaper-preview[data-wallpaper="blue-portal"] { background: #090f26 url('/assets/skywalker-os/play/blue-portal.svg') center / cover no-repeat; }
.sw-surface[data-wallpaper="blue-hour"], .sw-wallpaper-preview[data-wallpaper="blue-hour"] { background: #131a39 url('/assets/skywalker-os/play/blue-hour.svg') center / cover no-repeat; }
.sw-surface[data-wallpaper="mac-1"], .sw-wallpaper-preview[data-wallpaper="mac-1"] { background: #121322 url('/assets/skywalker-os/play/mac-tile-1.png') 0 0 / 128px 128px repeat; }
.sw-surface[data-wallpaper="mac-2"], .sw-wallpaper-preview[data-wallpaper="mac-2"] { background: #121322 url('/assets/skywalker-os/play/mac-tile-2.png') 0 0 / 128px 128px repeat; }
.sw-surface[data-wallpaper="mac-3"], .sw-wallpaper-preview[data-wallpaper="mac-3"] { background: #121322 url('/assets/skywalker-os/play/mac-tile-3.png') 0 0 / 128px 128px repeat; }
.sw-surface[data-wallpaper="mac-4"], .sw-wallpaper-preview[data-wallpaper="mac-4"] { background: #121322 url('/assets/skywalker-os/play/mac-tile-4.png') 0 0 / 128px 128px repeat; }
.sw-surface[data-wallpaper="mac-5"], .sw-wallpaper-preview[data-wallpaper="mac-5"] { background: #121322 url('/assets/skywalker-os/play/mac-tile-5.png') 0 0 / 128px 128px repeat; }
.sw-surface[data-wallpaper="mac-6"], .sw-wallpaper-preview[data-wallpaper="mac-6"] { background: #121322 url('/assets/skywalker-os/play/mac-tile-6.png') 0 0 / 128px 128px repeat; }
.sw-surface[data-wallpaper="mac-7"], .sw-wallpaper-preview[data-wallpaper="mac-7"] { background: #121322 url('/assets/skywalker-os/play/mac-tile-7.png') 0 0 / 128px 128px repeat; }
.sw-surface[data-wallpaper="mac-8"], .sw-wallpaper-preview[data-wallpaper="mac-8"] { background: #121322 url('/assets/skywalker-os/play/mac-tile-8.png') 0 0 / 128px 128px repeat; }
.sw-surface[data-wallpaper="mac-9"], .sw-wallpaper-preview[data-wallpaper="mac-9"] { background: #121322 url('/assets/skywalker-os/play/mac-tile-9.png') 0 0 / 128px 128px repeat; }
 .sw-wallpaper-preview[data-wallpaper^="mac-"] { background-size: 64px 64px; }
.sw-worlds { position: absolute; left: 24px; top: 26px; display: grid; gap: 20px; }
.sw-icon { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; width: 112px; padding: 7px 3px; border: 0; background: transparent; color: #fff; font: inherit; line-height: 1.4; text-align: center; text-decoration: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.sw-icon img { width: 43px; height: 43px; object-fit: contain; border-radius: 9px; filter: drop-shadow(1px 3px 2px #0d183c55); }
.sw-icon > span { max-width: 100%; padding: 2px 5px; background: #30343de6; text-shadow: 0 1px 1px #0008; }
.sw-icon.sw-selected > span { background: #455f8d; outline: 1px solid #b8d0ee; }
.sw-icon.sw-selected img { filter: brightness(.85) drop-shadow(0 0 3px #b8d0ee); }
.sw-icon:focus-visible { outline: 1px dashed #e7edf8; outline-offset: 2px; border-radius: 3px; }
.sw-drive { position: absolute; right: 24px; top: 26px; }
.sw-drive svg { width: 52px; height: 46px; filter: drop-shadow(2px 4px 2px #0c142455); }
.sw-signature { position: absolute; left: 30px; bottom: 27px; font-size: 24px; font-weight: 800; letter-spacing: .03em; color: #eaf0f54d; text-shadow: 0 1px #0a243a44; pointer-events: none; }
.sw-signature > span { display: block; margin-top: 6px; font-size: 9px; font-weight: 400; letter-spacing: .35em; }
.sw-window[hidden] { display: none; }
.sw-window { position: absolute; width: min(520px, calc(100% - 24px)); max-height: calc(100% - 12px); display: flex; flex-direction: column; border: 1px solid #191a1e; border-radius: 3px; background: #303136; box-shadow: 0 15px 40px #06102166, 0 2px 5px #0007, inset 0 0 0 1px #66686f; z-index: 3; overflow: hidden; }
.sw-titlebar { height: 32px; flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 0 8px; border-top: 1px solid #929399; border-bottom: 1px solid #1c1d21; background: linear-gradient(#5b5d63, #45474e); touch-action: none; user-select: none; cursor: grab; }
.sw-titlebar:active { cursor: grabbing; }
.sw-titlebar h2 { font: bold 12px/1.2 ui-monospace, Menlo, Consolas, monospace; margin: 0; white-space: nowrap; letter-spacing: .04em; }
.sw-titlebar h2:focus-visible { outline: 1px dotted white; outline-offset: 3px; }
.sw-title-lines { flex: 1; height: 13px; background: repeating-linear-gradient(to bottom, #25272d 0 1px, #7d7f8644 1px 2px, transparent 2px 4px); }
.sw-close { flex: 0 0 16px; width: 16px; height: 16px; padding: 0; border: 1px solid #202127; background: linear-gradient(#93969d, #64676d); box-shadow: inset 1px 1px #bfc0c6; color: #202228; display: grid; place-items: center; }
.sw-close span { font: 16px/12px Arial, sans-serif; }
.sw-close:focus-visible { outline: 2px solid #dce6ff; outline-offset: 2px; }
.sw-title-spacer { width: 16px; }
.sw-window-info { flex-shrink: 0; border-bottom: 1px solid #1e1f22; padding: 8px 15px; color: #bfc0c5; font-size: 10px; box-shadow: 0 1px #55575e; }
.sw-window-worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 28px 15px 34px; overflow: auto; }
.sw-window-worlds .sw-icon { width: 100%; }
.sw-window-worlds .sw-icon > span { background: transparent; }
.sw-window-worlds .sw-selected > span { background: #455f8d; }
.sw-context-menu { position: absolute; z-index: 100; min-width: 218px; padding: 3px; border: 1px solid #111; background: #d9d9d9; box-shadow: inset 1px 1px #fff, inset -1px -1px #777, 3px 4px 0 #0005; color: #111; }
.sw-context-menu[hidden] { display: none; }
.sw-context-menu button { display: block; width: 100%; padding: 5px 18px; border: 0; background: transparent; color: #111; font: 12px/1.25 ui-monospace, Menlo, Consolas, monospace; text-align: left; }
.sw-context-menu button:not(:disabled):hover,
.sw-context-menu button:not(:disabled):focus { outline: 0; background: #25205f; color: #fff; }
.sw-context-menu button:disabled { color: #777; text-shadow: 1px 1px #fff; }
.sw-menu-separator { display: block; height: 2px; margin: 3px 2px; border-top: 1px solid #777; border-bottom: 1px solid #fff; }

.sw-appearance-window { width: min(500px, calc(100% - 20px)); max-height: min(390px, calc(100% - 12px)); border: 1px solid #111; border-radius: 0; background: #c8c8c8; color: #111; box-shadow: inset 1px 1px #fff, inset -1px -1px #747474, 7px 9px 0 #0004; }
.sw-appearance-window .sw-titlebar { height: 27px; border-top-color: #fff; border-bottom-color: #666; background: #d2d2d2; color: #111; }
.sw-appearance-window .sw-title-lines { background: repeating-linear-gradient(to bottom, #fff 0 1px, #777 1px 2px, transparent 2px 4px); }
.sw-appearance-window .sw-close { border-color: #444; border-radius: 0; background: #c8c8c8; box-shadow: inset 1px 1px #fff, inset -1px -1px #777; }
.sw-appearance-body { display: grid; grid-template-columns: 92px 1fr; min-height: 260px; border-top: 1px solid #fff; }
.sw-control-strip { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 18px 8px; border-right: 1px solid #777; box-shadow: inset -1px 0 #fff; background: #bcbcbc; font-size: 10px; }
.sw-control-icon { display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid #777; background: #d8d8d8; box-shadow: inset 1px 1px #fff; }
.sw-mini-monitor { width: 34px; height: 25px; border: 3px ridge #8b8b8b; background: linear-gradient(145deg, #866db4, #d5b8de); box-shadow: 0 5px 0 -3px #555; }
.sw-wallpaper-panel { padding: 18px 20px 20px; overflow: auto; }
.sw-wallpaper-panel h3 { margin: 0 0 5px; font-size: 12px; }
.sw-wallpaper-panel p { margin: 0 0 15px; color: #333; font-size: 10px; }
.sw-wallpaper-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sw-wallpaper-option { min-width: 0; padding: 5px; border: 1px solid #555; border-radius: 0; background: #bdbdbd; box-shadow: inset 1px 1px #fff, inset -1px -1px #777; color: #111; font: 10px/1.25 ui-monospace, Menlo, Consolas, monospace; text-align: left; }
.sw-wallpaper-option:active { box-shadow: inset 1px 1px #777, inset -1px -1px #fff; }
.sw-wallpaper-option:focus-visible { outline: 2px solid #30247a; outline-offset: 1px; }
.sw-wallpaper-preview { display: block; width: 100%; aspect-ratio: 16 / 9; margin-bottom: 6px; border: 1px solid #333; }
.sw-wallpaper-selected { background: #2d236a; color: #fff; box-shadow: inset 1px 1px #17113e, inset -1px -1px #756ab7; }
@media (max-width: 600px) {
  .sw-menubar { padding: 0 12px; }
  .sw-brand { font-size: 10px; gap: 7px; }
  .sw-clock { font-size: 9px; }
  .sw-worlds { left: 12px; top: 20px; gap: 16px; }
  .sw-drive { right: 10px; top: 20px; }
  .sw-icon { width: 96px; font-size: 11px; }
  .sw-window-worlds { grid-template-columns: repeat(2, 1fr); padding: 18px; }
  .sw-signature { left: 22px; bottom: 22px; font-size: 20px; }
  .sw-appearance-body { grid-template-columns: 70px 1fr; }
  .sw-control-strip { padding-inline: 5px; }
  .sw-wallpaper-panel { padding: 14px; }
  .sw-wallpaper-grid { gap: 8px; }
}
@media (max-height: 620px) and (min-width: 601px) {
  .sw-worlds { grid-template-columns: repeat(2, 112px); gap: 12px; }
}
@media (max-height: 540px) and (max-width: 600px) {
  .sw-worlds { grid-template-columns: repeat(2, 88px); gap: 5px; }
  .sw-icon { width: 88px; gap: 4px; }
  .sw-icon img { width: 32px; height: 32px; }
  .sw-signature { display: none; }
}

.sw-app-window { width: min(760px, calc(100% - 24px)); height: min(540px, calc(100% - 24px)); max-height: calc(100% - 24px); }
.sw-app-window .sw-titlebar { gap: 8px; }
.sw-app-window .sw-titlebar h2 { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sw-window-action { flex: 0 0 21px; width: 21px; height: 21px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 2px; background: transparent; color: #e7e8ee; text-decoration: none; font: 18px/1 Arial, sans-serif; }
.sw-window-action:hover { background: #ffffff20; }
.sw-window-action:focus-visible { outline: 2px solid #dce6ff; outline-offset: 1px; }
.sw-app-content { position: relative; flex: 1; min-height: 0; background: #17181c; }
.sw-app-frame { display: block; width: 100%; height: 100%; border: 0; background: #17181c; }
.sw-app-loading { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; text-align: center; background: #292b31; color: #d7d9e1; font-size: 12px; }
.sw-app-loading[hidden] { display: none; }
.sw-app-loading img { width: 48px; height: 48px; object-fit: contain; border-radius: 10px; animation: sw-load-pulse 1.4s ease-in-out infinite alternate; }
.sw-app-expanded { width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
.sw-is-dragging iframe { pointer-events: none; }
@keyframes sw-load-pulse { from { opacity: .5; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .sw-app-loading img { animation: none; } }

.sw-selection-marquee { position: absolute; z-index: 1; pointer-events: none; border: 1px solid #c4d7f3; background: #819dc533; box-shadow: inset 0 0 0 1px #243b552b; }
.sw-selection-marquee[hidden] { display: none; }
.sw-surface:focus { outline: none; }
.sw-is-selecting, .sw-is-selecting * { user-select: none; -webkit-user-select: none; }
.sw-is-selecting iframe { pointer-events: none; }
.sw-selection-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; pointer-events: none; }
.sw-drive.sw-selected svg { filter: brightness(.85) drop-shadow(0 0 3px #b8d0ee); }

.sw-surface[data-wallpaper="bliss"], .sw-wallpaper-preview[data-wallpaper="bliss"] { background: #47763b url('/assets/skywalker-os/play/bliss-poster.jpg') center / cover no-repeat; }
.sw-wallpaper-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; z-index: 0; }
.sw-wallpaper-video[hidden] { display: none; }

.sw-icon-sawadika > span { white-space: nowrap; max-width: none; }
@media (max-width: 600px) { .sw-icon-sawadika > span { font-size: 10px; } }

.sw-worlds { max-height: calc(100% - 40px); overflow-y: auto; scrollbar-width: thin; padding: 3px; }

.sw-app-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; min-height: 40px; padding: 7px 12px; border-top: 1px solid #ffffff16; background: #25262a; font: 11px/1.4 system-ui, sans-serif; }
.sw-instagram { display: inline-flex; align-items: center; gap: 8px; color: #bfc0c5; text-decoration: none; }
.sw-instagram svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.5; }
.sw-instagram > span:last-child { color: #92949c; margin-left: 8px; }
.sw-instagram:hover, .sw-instagram:hover > span { color: white; }
.sw-preview-toggle { border: 1px solid #505159; border-radius: 6px; background: #33343a; color: #d6d7dc; padding: 5px 9px; font: inherit; }
.sw-preview-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #080808; z-index: 2; }
.sw-preview-video[hidden] { display: none; }
.sw-instagram:focus-visible, .sw-preview-toggle:focus-visible { outline: 2px solid #a9c5ff; outline-offset: 3px; }
@media(max-width:420px) { .sw-instagram > span:first-of-type { display: none; } }

.sw-surface[data-wallpaper="lesserafim"], .sw-wallpaper-preview[data-wallpaper="lesserafim"] { background: #09091d url('/assets/skywalker-os/play/lesserafim.jpeg') center / cover no-repeat; }

/* Shared artist preview treatment, including worlds without Instagram links. */
.sw-app-window .sw-app-content, .sw-preview-video { background: #191919; }
.sw-app-window .sw-app-loading { z-index: 3; }
.sw-app-footer.social-chips { justify-content: flex-start; gap: 7px; padding: 12px; background: #292929; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
