/* Repairs scoped to the restored desktop; keep its original wallpaper and XP chrome. */
[hidden]{display:none!important}
body.cookie-lounge{min-height:100vh;min-height:100dvh;width:100%;overflow-x:hidden}
.cookie-lounge *{font-family:Tahoma,Arial,sans-serif;box-sizing:border-box}
.cookie-lounge button,.cookie-lounge [role=button]{cursor:pointer}
.cookie-lounge button:focus-visible,.cookie-lounge a:focus-visible,.cookie-lounge [tabindex]:focus-visible{outline:2px dashed #fff;outline-offset:3px}
.cookie-lounge .window :focus-visible,.cookie-lounge .lounge-player :focus-visible{outline-color:#000b7c}
.lounge-sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.cookie-lounge #desktop{height:calc(100dvh - 60px);padding-bottom:30px}
.cookie-lounge .desktop-item{text-decoration:none;line-height:1.3}
.cookie-lounge .desktop-item:focus-visible{background:#112f8680}
.cookie-lounge #start-bar{position:fixed;height:54px;width:100%;bottom:0;gap:8px;padding:7px;align-items:center}
.cookie-lounge #start-button-items{min-width:0;flex:1}
.cookie-lounge #items{overflow-x:auto;min-width:0;max-width:calc(100vw - 230px)}
.cookie-lounge #time-options{flex-shrink:0}
.cookie-lounge #start-menu{bottom:54px}
.cookie-lounge #start-menu .programs-open>ul{display:block}
.cookie-lounge #all-windows{height:calc(100dvh - 58px)}
.cookie-lounge .window{max-height:calc(100dvh - 75px)}
.cookie-lounge .window[data-lounge-active]{z-index:100000001!important}
.cookie-lounge .random-image-popup[data-lounge-active]{z-index:100000003!important}
.cookie-lounge .window .header{cursor:grab;touch-action:none;min-height:30px}
.cookie-lounge .window .header-buttons label{min-width:24px;min-height:24px}
.cookie-lounge .window .content{overflow:auto}
.cookie-lounge .minesweeper .score{display:flex;align-items:center;justify-content:space-between;width:262px;margin:12px auto;color:#111}
.cookie-lounge .minesweeper #minesweeper-board{display:grid;grid-template-columns:repeat(9,24px);gap:3px;width:262px;max-width:none;min-height:0;padding:8px;margin:12px auto;overflow:visible}
.cookie-lounge .minesweeper .content>.minesweeper-block{width:24px;height:24px;min-width:24px;min-height:24px;max-width:24px;max-height:24px;line-height:24px;margin:0}
.cookie-lounge .window.ie{height:430px;min-height:0}
.cookie-lounge .window.notepad .content{height:calc(100% - 64px)}
.cookie-lounge .window.notepad textarea{box-sizing:border-box;width:100%;height:100%;padding:12px;resize:none;user-select:text}
.cookie-lounge .window.update{height:auto;min-height:240px}
.cookie-lounge .window.update p{margin:14px 0;line-height:1.5}
.cookie-lounge .window.update button,.cookie-lounge .window.update .content>label{display:inline-block;min-height:40px;padding:8px 12px;margin:6px 6px 0 0}
.lounge-portal{padding:28px;text-align:center;background:#ececf7;height:100%;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:20px}
.lounge-portal img{width:190px;height:auto;max-width:60%}
.lounge-portal h2,.lounge-portal p{flex-basis:100%;color:#171536}
.lounge-portal p{line-height:1.5}
.lounge-portal a{display:inline-flex;min-height:44px;align-items:center;color:#000b7c;text-decoration:underline;font-weight:bold}
.lounge-login-note{line-height:1.5;padding:14px}
.lounge-power{padding:30px;background:#b9b9b9;text-align:center;max-width:90vw;display:grid;gap:24px}
.lounge-power label,.lounge-power a{display:block;padding:14px;color:#000b7c;background:#ccc}
.lounge-player{position:fixed;bottom:70px;right:16px;width:min(360px,calc(100vw - 32px));padding:44px 10px 10px;background:#b9b9b9;z-index:1000000003}
.lounge-player-close{position:absolute;right:8px;top:7px;min-width:32px;min-height:30px;z-index:1}
.lounge-player iframe{position:static;display:block;width:100%;height:130px;border:0}
.lounge-player a{display:inline-flex;padding:12px;color:#000b7c;font-size:13px}
.lounge-video{position:fixed;inset:0;z-index:2147483600;background:#000b;display:grid;place-items:center;padding:20px}
.lounge-video .modal-content{position:relative;width:min(100%,1000px);margin:0;max-height:95dvh;padding:50px 12px 12px;background:#b9b9b9;border:2px outset #eee}
.lounge-video .video-container{aspect-ratio:16/9;max-height:70dvh;padding-top:0}
.lounge-video iframe{width:100%;height:100%;border:0}
.lounge-video-close{position:absolute;right:12px;top:10px;min-height:32px;padding:4px 12px}
.lounge-video a{display:inline-block;color:#000b7c;padding:12px}
.random-image-popup{position:fixed;z-index:100000002;background:#b9b9b9;padding:4px;width:230px;max-width:calc(100vw - 16px)}
.random-image-popup img{display:block;max-width:100%;max-height:230px;margin:auto;object-fit:contain}
.lounge-photo-title{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(90deg,#000b7c,#377cc6);color:#fff;min-height:34px;padding:3px 6px;cursor:grab;touch-action:none;font-size:12px}
.lounge-photo-title button{min-width:28px;min-height:28px;font-size:20px}
.lounge-noscript{position:fixed;bottom:70px;right:16px;max-width:320px;background:#fff;padding:20px;color:#111;z-index:1000000003}
.cookie-lounge .mc-pet-ui__toggle,.cookie-lounge .mc-pet-ui__actions button{min-height:36px}
@media(max-width:900px){
 .cookie-lounge #desktop{height:auto;min-height:calc(100dvh - 58px);display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:8px;padding:12px 12px 90px;align-content:start}
 .cookie-lounge .desktop-item{margin:0;width:auto;max-width:none;min-height:90px}
 .cookie-lounge .desktop-item .text{font-size:12px}
 .cookie-lounge .window{position:fixed!important;left:8px!important;top:8px!important;margin:0!important;width:calc(100vw - 16px)!important;min-width:0!important;max-height:calc(100dvh - 80px);min-height:0;height:calc(100dvh - 80px)}
 .cookie-lounge .window.minesweeper{height:440px;max-height:calc(100dvh - 80px)}
 .cookie-lounge .window.update{height:auto}
 .cookie-lounge #items{max-width:calc(100vw - 175px)}
 .cookie-lounge #items>label{min-width:125px;width:125px;margin-right:6px;font-size:12px}
 .cookie-lounge #start-menu{width:calc(100vw - 16px);max-width:380px}
 .cookie-lounge #start-menu ul li label{height:44px;font-size:13px}
 .cookie-lounge .tab-box-content{display:flex;flex-direction:column;overflow:auto;max-height:calc(100% - 80px)}
 .cookie-lounge .tab-box{width:100%;min-width:0}
 .cookie-lounge #login-window{left:auto!important;top:auto!important;width:calc(100vw - 30px)!important;height:auto;min-height:0;max-height:80dvh}
 .lounge-video{padding:8px}
 .cookie-lounge .mc-pet-ui{bottom:64px}
}
@media(prefers-reduced-motion:reduce){.cookie-lounge #install-bar>div{animation:none}.cookie-lounge *{scroll-behavior:auto}}

.lounge-document {position:fixed;z-index:1000000030;top:25%;left:calc(50% - 200px);width:min(400px,calc(100vw - 24px));background:#c0c0c0;padding:4px;color:#111;font:15px/1.5 Tahoma,sans-serif;}
.lounge-document p {padding:24px;margin:0;background:#fff;min-height:120px;}
.lounge-document button {min-width:32px;min-height:32px;cursor:pointer;}
@media(max-width:440px) {.lounge-document {left:12px;}}

#notepadText{font-size:16px}
.lounge-photo-title{touch-action:none}
.game-subtitle{display:block;font-size:11px;letter-spacing:.12em;margin-top:4px}
body.wallpaper-xp{background-image:url("../img/lofi/lofi.jpg");background-size:cover;background-position:center}
/* Loose care objects sit above desktop windows without intercepting other clicks. */
.cookie-drops{position:fixed;inset:0;pointer-events:none;z-index:100000008}
.cookie-drop{position:absolute;left:0;top:0;width:52px;height:52px;display:grid;place-items:center;padding:0;border:1px solid #fff7;border-radius:17px;background:#fff0d9e8;box-shadow:0 5px 14px #24153335;font-size:32px;line-height:1;touch-action:none;user-select:none;-webkit-user-select:none;pointer-events:auto;cursor:grab;will-change:transform}
.cookie-drop.is-dragging{cursor:grabbing;box-shadow:0 9px 25px #bd75e877;border-color:#dcaaff;z-index:2}
.cookie-drop:focus-visible{outline:3px solid #8854cc;outline-offset:3px}
.cookie-drop--waiting{border-color:#c58530;background:#ffe7b7}
.cookie-drop-target{filter:drop-shadow(0 0 8px #deb1ff)}
.window.update .content h2{font:bold 19px/1.3 Arial,sans-serif;margin:0 0 18px}
.window.update .content p{font:14px/1.6 Arial,sans-serif;margin:0 0 24px;color:#222;max-width:48ch}
.window.update .content button,.window.update .content>label{font:14px Arial,sans-serif;min-width:88px;min-height:34px;padding:6px 18px;margin-right:8px}
