/* OS shell: prototype palette and spacing, isolated from website presentation. */
body[data-mode=os] { --red-primary: #e0113c; --red-bright: #ff2247; }
#desktop .desktop-bg { background-color: #050608; background-image: radial-gradient(ellipse at 78% 40%, #e0113c12, transparent 62%), linear-gradient(#ffffff03 1px, transparent 1px), linear-gradient(90deg,#ffffff03 1px,transparent 1px); background-size: auto,40px 40px,40px 40px; background-repeat: no-repeat,repeat,repeat; }
#desktop .desktop-dragon-bg { background: url('/wallpaper_ns_os_4k.png') right center / var(--wallpaper-fit,cover) no-repeat; opacity: .06; }
#desktop .desktop-identity, #desktop .desktop-signature { position: absolute; pointer-events: none; user-select: none; z-index: 1; font: 10px/1.8 'Share Tech Mono',monospace; letter-spacing: 2px; color: #666e80; }
#desktop .desktop-identity { top: 60px; left: 150px; }.desktop-identity strong { display: block; color: #bc3655; font-size: 11px; letter-spacing: 5px; font-weight: 400; }.desktop-identity span { display: block; margin-top: 5px; }
#desktop .desktop-signature { right: 28px; bottom: 155px; text-align: right; }.desktop-signature strong { display: block; color: #b53650; font-size: 13px; letter-spacing: 1px; }.desktop-signature span { font-size: 9px; }
#desktop .taskbar { height: 38px; background: #101116f5; border-bottom: 1px solid #4b1b2a; box-shadow: 0 4px 15px #0004; }
#desktop .taskbar-left { min-width: 0; }.taskbar .taskbar-apps { min-width: 0; }
#desktop .taskbar-logo, #desktop .panel-menu { font-size: 12px; color: #bfc1cc; padding: 0 10px; }
#desktop .taskbar-logo:hover, #desktop .panel-menu:hover { background: #e0113c13; color: #fff; }
#desktop .taskbar-os { font-weight: 600; }.taskbar .panel-logo { width: 19px; height: 19px; }
#desktop .taskbar-app-btn { border: 1px solid transparent; border-radius: 4px 4px 0 0; background: transparent; color: #9498a5; margin: 2px 0 0; font: 11px 'Share Tech Mono',monospace; }
#desktop .taskbar-app-btn.active { background: #251724; border-color: #6c2339; color: #e5d6dd; box-shadow: inset 0 -2px #e0113c; }
#desktop .panel-location { margin: 6px 0 6px 12px; padding: 2px 9px; background: #08090d; border: 1px solid #292a34; border-radius: 4px; color: #7d8393; font: 10px 'Share Tech Mono',monospace; white-space: nowrap; cursor: pointer; }
#desktop .taskbar-right { flex-shrink: 0; gap: 14px; display: flex; align-items: center; }.session-indicator { color: #789c8d; font: 9px 'Share Tech Mono',monospace; border: 1px solid #294037; padding: 4px 7px; border-radius: 3px; letter-spacing: 1px; }
#desktop .clock-time, #desktop .clock-date { font: 11px 'Share Tech Mono',monospace; color: #b5b8c5; }
#desktop .desktop-icons { padding-top: 12px; gap: 8px; }
#desktop .desktop-icon { border-radius: 7px; width: 104px; padding: 6px; border-color: transparent; }
#desktop .desktop-icon .icon-img { width: 44px; height: 44px; filter: none; }
#desktop .desktop-icon .icon-label { font: 11px/1.5 'Share Tech Mono',monospace; color: #bdc1ce; text-shadow: 0 2px 5px #000; }
#desktop .desktop-icon:hover { background: #e0113c12; border-color: #e0113c44; }#desktop .desktop-icon.selected { background: #e0113c22; border-color: #e34a6a; }
#desktop .os-window { background: #0b0c11; border: 1px solid #49313e; border-radius: 7px; box-shadow: 0 16px 60px #0009; }
#desktop .os-window.focused { border-color: #9e2948; box-shadow: 0 20px 80px #000a,0 0 25px #e0113c0a; }
#desktop .window-titlebar { height: 34px; background: linear-gradient(100deg,#171822,#101117); border-bottom: 1px solid #4b2233; padding: 0 10px; }
#desktop .focused .window-titlebar { background: linear-gradient(100deg,#191923,#13131b); }
#desktop .window-title { display: flex; align-items: center; gap: 9px; font: 600 12px 'Share Tech Mono',monospace; color: #d1d2df; letter-spacing: .3px; }
#desktop .window-title-icon { width: 17px; height: 17px; flex-shrink: 0; }
#desktop .win-ctrl { color: #8f94a4; font-size: 17px; }#desktop .win-ctrl.close:hover { background: #df1742; }
#desktop .terminal-body { --hyper-accent: #ff2247; background: #090a0e; }
#desktop .hyper-header { background: #0d0e14; border-bottom-color: #25232e; }
#desktop .hyper-tab { background: transparent; color: #868a9a; border-radius: 0; }#desktop .hyper-tab.active { background: #15141d; color: #f05c7f; border-bottom-color: #e0113c; }
#desktop .hyper-chips-bar { background: #0b0c11; border-bottom: 1px solid #22232d; padding: 7px 12px; gap: 7px; }
#desktop .hyper-chip { background: #16171e; color: #a9adbc; border: 1px solid #33323e; border-radius: 4px; font-size: 11px; padding: 3px 9px; }
#desktop .hyper-chip:hover { background: #301624; color: #ff7799; border-color: #9b304a; }
#desktop .hyper-chip[data-cmd=neofetch] { background: #2c1020; color: #ff5078; border-color: #7e1c39; }
#desktop .hyper-statusline { background: #0b0c10; border-top: 1px solid #3f2130; font: 10px 'Share Tech Mono',monospace; }
#desktop .desktop-dock { bottom: 18px; padding: 8px 15px; gap: 10px; background: #11121be8; border: 1px solid #8a2843; border-radius: 17px; box-shadow: 0 12px 45px #0009; }
#desktop .desktop-dock button { width: 44px; height: 44px; background: transparent; border-radius: 9px; }#desktop .desktop-dock button:hover { background: #e0113c16; border-color: #673145; }#desktop .desktop-dock img { width: 30px; height: 30px; }
#desktop .app-menu { background: #11121af7; border-color: #573043; }#desktop .app-menu-item:hover { background: #e0113c18; }
#desktop .rubber-band { border-color: #ff5279; background: #e0113c22; }
#desktop .arcade-heading { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid #2b2634; padding-bottom: 18px; margin-bottom: 25px; }#desktop .arcade-heading > img { width: 40px; height: 40px; }#desktop .arcade-heading h2 { font: 600 18px 'Share Tech Mono',monospace; color: #e2dce5; margin: 0 0 6px; }#desktop .arcade-heading p { color: #898d9e; font-size: 12px; }
#desktop .game-launchers { display: grid; grid-template-columns: repeat(auto-fill,minmax(135px,1fr)); align-content: start; gap: 18px; }
#desktop .game-shortcut { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 20px 12px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; color: #d7d9e3; text-align: center; transition: background .15s,border-color .15s; }
#desktop .game-shortcut:hover, #desktop .game-shortcut:focus-visible { border-color: #80405a; background: #d9235710; outline-offset: 3px; }
#desktop .game-shortcut > img { width: 76px; height: 76px; filter: drop-shadow(0 6px 7px #0007); }#desktop .game-shortcut strong { font: 12px/1.5 'Share Tech Mono',monospace; }#desktop .game-shortcut small { color: #787e91; font: 9px/1.7 'Share Tech Mono',monospace; letter-spacing: 1px; }
#desktop .arcade-credit { border-top: 1px solid #292633; padding-top: 18px; margin-top: 30px; }
@media(max-width:1100px) { #desktop .panel-location { display: none; }#desktop .session-indicator { display: none; } }
@media(max-width:650px) { #desktop .desktop-identity,#desktop .desktop-signature { display: none; }#desktop .taskbar-logo,#desktop .panel-menu { padding: 0 7px; font-size: 11px; }#desktop .taskbar-right { padding: 0 7px; }#desktop .desktop-icons { gap: 7px; padding-top: 10px; }#desktop .desktop-dock { gap: 3px; padding: 6px 9px; bottom: 12px; }#desktop .desktop-dock button { width: 36px; height: 36px; }#desktop .desktop-dock img { width: 27px; height: 27px; }#desktop .window-title { font-size: 10px; }#desktop .game-launchers { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }#desktop .game-shortcut { padding: 15px 5px; }#desktop .game-shortcut > img { width: 64px; height: 64px; } }
@media(prefers-reduced-motion:reduce) { #desktop .game-shortcut { transition: none; } }

/* Games stay in the OS browser, with explicit playback and teardown controls. */
#desktop .browser-content.game-browser-page { display: flex; flex-direction: column; gap: 10px; padding: 14px; min-height: 0; overflow: auto; background: #090b12; }
#desktop .game-player-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-shrink: 0; }
#desktop .game-player-toolbar strong { flex: 1; font: 14px 'Share Tech Mono',monospace; }
#desktop .game-player-toolbar button { padding: 6px 9px; border: 1px solid #553043; border-radius: 4px; background: #231726; color: #e7dce5; font: 11px Arial,sans-serif; cursor: pointer; }
#desktop .game-player-toolbar button:disabled { opacity: .45; cursor: default; }
#desktop .game-player-toolbar a { color: #c57d99; font-size: 10px; }
#desktop .game-player-controls,#desktop .game-player-status { margin: 0; color: #8b93a5; font: 10px/1.7 'Share Tech Mono',monospace; flex-shrink: 0; }
#desktop .game-player-status { color: #da8aaa; }
#desktop .game-player-frame { flex: 1; min-height: 240px; display: flex; background: #030407; border: 1px solid #292632; }
#desktop .game-player-frame iframe { width: 100%; height: 100%; min-height: 240px; border: 0; display: block; flex: 1; }
#desktop .game-player-frame:fullscreen { width: 100%; height: 100%; border: 0; }
@media(max-width:650px) { #desktop .game-player-toolbar strong { flex-basis: 100%; }#desktop .browser-content.game-browser-page { padding: 10px; } }
#desktop .game-player-frame { position: relative; }
#desktop .game-player-viewport { display: flex; flex: 1; min-width: 0; min-height: 240px; }
#desktop .game-exit-fullscreen { display: none; position: absolute; top: 12px; right: 12px; z-index: 2; padding: 9px 14px; border: 1px solid #b4597a; border-radius: 5px; color: #fff; background: #251723ed; cursor: pointer; font: 12px Arial,sans-serif; }
#desktop .game-player-frame:fullscreen .game-exit-fullscreen { display: block; }
