/* Compact windows preserve the desktop metaphor without hiding the entry CTA. */
@media(max-width:760px){
 #desktop{height:calc(100dvh - 46px - env(safe-area-inset-bottom,0px))}
 .taskbar{height:calc(46px + env(safe-area-inset-bottom,0px));padding:5px 5px calc(5px + env(safe-area-inset-bottom,0px));gap:3px}
 .system-tray{height:34px;padding:2px 3px}.system-tray button{height:30px;min-width:27px;width:27px}.system-tray #clock{font-size:10px;min-width:36px;margin-left:2px}.start-button{height:34px}.task{height:33px;font-size:10px;min-width:29px}
 .window>.titlebar{height:30px;min-height:30px}.window>.titlebar .window-controls button{height:26px;min-height:26px;width:28px;font-size:17px}.window>.titlebar .window-title{font-size:10px}
 .window[data-window=welcome]{left:6px!important;top:max(6px,calc((100% - 560px)/2))!important;width:calc(100% - 12px)!important;height:min(560px,calc(100% - 12px))!important;max-width:none;max-height:none}
 .window[data-window=welcome]>.window-body{display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden}
 .welcome-content{position:relative;grid-template-columns:1fr .88fr;min-height:0!important;height:100%;margin:0;padding:6px 6px 69px;gap:0;background:#e9e7d9;overflow:hidden}
 .welcome-copy{padding:14px 11px;min-width:0;min-height:0;justify-content:center;border-right:1px solid #b3ab95;overflow:visible}
 .welcome-copy .eyebrow{font:8px/1.45 monospace;letter-spacing:.2px;max-width:140px}
 .welcome-copy h1{font:bold clamp(32px,8vw,48px)/1 Arial,sans-serif;letter-spacing:-2px;margin:16px 0 8px;white-space:nowrap}
 .welcome-copy .cn-name{font-size:32px;letter-spacing:4px;min-height:37px}.welcome-copy p{font-size:11px;line-height:1.55;margin:14px 0 0}
 .welcome-copy .enter-button{position:absolute;left:12px;right:12px;bottom:12px;min-height:47px;justify-content:center;gap:9px;font:bold 14px Tahoma;padding:9px;width:calc(100% - 24px);margin:0;z-index:3}.welcome-copy .enter-button i{width:26px;height:26px;flex-shrink:0}
 .welcome-hover{display:none}.welcome-art{min-height:0!important;height:100%}.welcome-art img{object-position:50% 42%}.welcome-art .shh-seal{font-size:34px;right:8px;bottom:12px}.welcome-corner{font-size:7px;left:5px;top:8px;padding:4px;max-width:calc(100% - 10px)}.welcome-corner small{font-size:6px}
 .welcome-footer{padding:4px 12px 9px;gap:4px;flex-direction:column;font-size:9px;line-height:1.3}.welcome-footer label{gap:4px}.welcome-footer input{margin:0;width:12px;height:12px}.welcome-footer>span{font-size:8px;color:#555;white-space:normal}.name-translation{width:205px;max-width:calc(100vw - 48px);font-size:10px;padding:8px}.name-translation small{font-size:9px}
 .desktop-icons{top:7px;left:5px;height:calc(100% - 22px);grid-template-rows:repeat(7,minmax(0,1fr));grid-auto-columns:87px;gap:1px 4px}.desktop-icon{width:86px;min-height:0;height:100%;padding:3px 1px;gap:3px;justify-content:center;font-size:10px}.desktop-icon .cn{font-size:9px}.desktop-icon i{width:30px;height:30px;flex-shrink:0}.desktop-icon .spam-icon{font-size:12px;line-height:1;padding:3px}.explorer-beacon:before{left:17px;width:48px;height:48px}.explorer-start-hint{left:178px;top:7px;width:125px;font-size:13px;white-space:normal}.explorer-start-hint small{font-size:8px}.desktop-brand{top:auto;left:auto;transform:none;right:12px;bottom:76px}.desktop-brand>span{font-size:37px}.desktop-brand strong{font-size:21px}
 .start-menu{bottom:calc(45px + env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 56px - env(safe-area-inset-bottom,0px))}
 .toolbar .toolbutton{min-height:36px}.addressbar input{font-size:16px;min-height:30px}.addressbar button{min-height:30px}.addressbar{min-height:36px}.site-nav a{display:inline-flex;align-items:center;min-height:30px}.coin-dock>button,.coin-dock>a{min-height:43px}.coin-dock .coin-x strong{font-size:8px}
 .ad-peek{bottom:calc(93px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 18px)}.ad-peek .window-controls button{width:27px;height:24px;min-height:24px}.ad-peek>.titlebar{height:27px;min-height:27px}.shush-ads{bottom:calc(52px + env(safe-area-inset-bottom,0px));min-height:32px}.ad-peek>footer button{min-height:26px}
 #toast{bottom:calc(53px + env(safe-area-inset-bottom,0px));max-width:calc(100vw - 24px);font-size:11px;padding:10px 12px;pointer-events:none}
}
@media(max-width:360px){.welcome-content{grid-template-columns:1.08fr .82fr}.welcome-copy{padding:12px 9px}.welcome-copy h1{font-size:32px;margin-top:12px}.welcome-copy p{font-size:10px}.welcome-copy .cn-name{font-size:28px}.welcome-art .shh-seal{font-size:29px}.welcome-copy .enter-button{font-size:13px}.welcome-footer{font-size:8px}.welcome-corner{font-size:6px;padding:3px}.desktop-icons{grid-auto-columns:79px;gap:1px 2px}.desktop-icon{width:78px;font-size:9px}.desktop-icon .cn{font-size:8px}.explorer-start-hint{left:155px;width:124px}.explorer-beacon:before{left:13px}.system-tray button{width:25px;min-width:25px}.system-tray #clock{min-width:32px}.start-button{padding:3px 5px}.coin-x>span{font-size:6px}.coin-dock .coin-x strong{font-size:7px}}
@media(max-width:900px) and (max-height:500px){
 .window[data-window=welcome]{left:max(6px,calc((100% - 660px)/2))!important;top:5px!important;width:min(660px,calc(100% - 12px))!important;height:calc(100% - 10px)!important;max-height:none}
 .window[data-window=welcome]>.window-body{display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden}.welcome-content{position:relative;grid-template-columns:1.2fr 1fr;min-height:0!important;height:100%;padding:5px 5px 51px;margin:0}.welcome-copy{padding:5px 14px;min-height:0;justify-content:center}.welcome-copy h1{font-size:32px;margin:5px 0 3px}.welcome-copy .eyebrow{font-size:7px}.welcome-copy .cn-name{font-size:25px;min-height:26px}.welcome-copy p{font-size:10px;line-height:1.3;margin:6px 0}.welcome-art{min-height:0!important;height:100%}.welcome-copy .enter-button{position:absolute;bottom:7px;left:12px;width:calc(100% - 24px);min-height:37px;padding:6px;justify-content:center;font-size:12px}.welcome-copy .enter-button i{width:22px;height:22px}.welcome-hover{display:none}.welcome-footer{padding:3px 12px 5px;font-size:8px;flex-direction:row;align-items:center}.welcome-footer>span{font-size:7px}.welcome-art .shh-seal{font-size:28px;bottom:5px}.desktop-icons{grid-template-rows:repeat(4,minmax(0,1fr));grid-auto-columns:85px}.desktop-icon{min-height:0;height:100%;font-size:9px;padding:1px}.desktop-icon i{width:27px;height:27px}.ad-peek{width:235px;bottom:84px}.ad-peek .peek-art{height:125px;min-height:125px}.ad-peek .casino-cat-parade,.ad-peek .mini-jackpot{display:none}
}
