#hamti-preview .desktop{position:relative;display:block;padding:0;overflow:hidden}
#hamti-preview .desktop>nav{position:absolute;inset:0;width:auto;height:auto;max-height:none;display:block;overflow:visible;padding:0;pointer-events:none;z-index:2}
#hamti-preview .desktop-icon{position:absolute;width:96px;height:102px;pointer-events:auto;touch-action:none;user-select:none}
#hamti-preview .desktop-icon .icon-launch{width:100%;height:100%;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;gap:7px;padding:6px;background:transparent;font-size:12px;overflow-wrap:anywhere;cursor:grab}
#hamti-preview .desktop-icon .icon-launch:active{cursor:grabbing}
#hamti-preview .desktop-icon.icon-dragging{z-index:50;background:#39557288;border-radius:10px;box-shadow:0 4px 18px #0005}
#hamti-preview .desktop-icon .icon-remove{position:absolute;right:1px;top:0;display:grid;place-items:center;width:23px;height:23px;min-width:0;padding:0;border:1px solid #ffffff42;border-radius:50%;background:#17283dea;color:#fff;opacity:0;transform:scale(.85);transition:opacity .15s,transform .15s;z-index:2}
#hamti-preview .desktop-icon:hover .icon-remove,#hamti-preview .desktop-icon:focus-within .icon-remove{opacity:1;transform:none}
#hamti-preview .desktop-icon em{pointer-events:none}
#hamti-preview .desktop-icon span{pointer-events:none;text-align:center}
#hamti-preview .os-window{position:absolute;left:var(--window-left,150px);top:var(--window-top,24px);display:flex;flex-direction:column;width:min(760px,calc(100% - 190px));height:min(650px,calc(100% - 48px));max-height:none;margin:0!important;z-index:10;background:var(--paper);border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 24px 90px #0007}
#hamti-preview .os-window:not(.game-window){height:auto;max-height:min(650px,calc(100% - 48px))}
#hamti-preview .os-window.game-window{width:min(1100px,calc(100% - 190px));max-width:none}
#hamti-preview .os-window .bar{flex-shrink:0;cursor:grab;touch-action:none;user-select:none}
#hamti-preview .os-window.dragging .bar{cursor:grabbing}
#hamti-preview .os-window.dragging iframe{pointer-events:none}
#hamti-preview .os-window .window-content{padding:30px;overflow:auto;min-height:0}
#hamti-preview .os-window.game-window .window-content{padding:0;display:flex;flex:1;overflow:hidden}
#hamti-preview .os-window .game-frame{width:100%;height:100%;min-height:540px;border:0;background:#10141c}
#hamti-preview .os-window.game-window .game-frame{min-height:0}
#hamti-preview .os-window.maximized{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;border-radius:0;z-index:100!important}
#hamti-preview .os-window:fullscreen{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;border-radius:0;background:var(--paper)}
#hamti-preview .os-window.active-window{border-color:#d7953d;box-shadow:0 25px 95px #0009,0 0 0 1px #f5b45866}
#hamti-preview footer{min-width:0}
#hamti-preview .task-list{display:flex;gap:7px;flex:1;min-width:0;overflow-x:auto;scrollbar-width:thin;padding:1px 0}
#hamti-preview .task-list .task-item{flex:0 1 190px;min-width:92px;max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:left;font-size:12px;border:1px solid transparent;box-shadow:inset 0 -2px #53677c}
#hamti-preview .task-list .task-item.active{border-color:#d7953d;box-shadow:inset 0 -2px #f5b458;background:#243a51}
#hamti-preview .task-list .task-item.minimized{opacity:.68;box-shadow:inset 0 -2px #53677c}
#hamti-preview #menu{max-height:calc(100dvh - 130px);overflow-y:auto;width:330px;z-index:220}
#hamti-preview #menu .start-entry{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:4px;align-items:center}
#hamti-preview #menu .start-entry>button{background:transparent;text-align:left}
#hamti-preview #menu .start-entry>button:first-child:hover{background:var(--soft)}
#hamti-preview #menu .start-entry .pin-button{display:grid;place-items:center;width:38px;height:38px;padding:0;text-align:center;border:1px solid transparent}
#hamti-preview #menu .start-entry .pin-button:hover,#hamti-preview #menu .start-entry .pin-button.pinned{border-color:var(--line);background:var(--soft)}
#hamti-preview #menu .start-entry .pin-button.pinned{color:#f5b458}
#hamti-preview #menu .start-entry.folder-only>button{grid-column:1/-1;font-weight:800;color:#f5b458;border:1px solid #80683f;background:#2c2a27}
#hamti-preview #menu .start-entry.folder-only>button:hover{background:#40392e}
#hamti-preview .learning-welcome{margin-bottom:12px}
#hamti-preview .desktop-toast{position:absolute;right:18px;bottom:18px;z-index:160;padding:11px 15px;border:1px solid var(--line);border-radius:10px;background:#152337;color:#e8f0f8;box-shadow:0 10px 35px #0008;pointer-events:none}
@media(max-width:650px){
 #hamti-preview .desktop-icon{width:92px;height:100px}
 #hamti-preview .desktop-icon .icon-remove{opacity:1;transform:none}
 #hamti-preview .os-window,#hamti-preview .os-window.game-window,#hamti-preview .os-window:not(.maximized){inset:0;width:100%;height:100%;max-width:none;max-height:none;border-radius:0}
 #hamti-preview .os-window .window-content{padding:20px 18px}
 #hamti-preview .os-window.game-window .window-content{padding:0}
 #hamti-preview footer{gap:7px;padding:8px}
 #hamti-preview .task-list{gap:5px}
 #hamti-preview .task-list .task-item{flex-basis:128px;min-width:88px;padding:9px 10px}
 #hamti-preview #menu{bottom:66px;width:calc(100% - 20px);left:10px;max-width:none}
}
