*{box-sizing:border-box}body{margin:0;background:#abc9e9;color:#111;font:12px Tahoma,Arial,sans-serif;overflow:hidden}button,a,input{font:inherit}button,a.button{cursor:pointer}button,.button{background:#d4d0c8;border:0;box-shadow:inset -1px -1px #404040,inset 1px 1px white,inset -2px -2px #808080,inset 2px 2px #eee;padding:6px 12px;color:#111;text-decoration:none;border-radius:0}button:active,.button:active{box-shadow:inset 1px 1px #404040,inset -1px -1px white;padding-top:7px;padding-bottom:5px}button:focus-visible,a:focus-visible{outline:1px dotted navy;outline-offset:2px}[hidden]{display:none!important}.inset{box-shadow:inset 1px 1px #808080,inset -1px -1px white,inset 2px 2px #404040}#desktop{position:relative;height:calc(100dvh - 36px);overflow:hidden}.wallpaper{position:absolute;inset:0;background:linear-gradient(110deg,#a5c5e5 0%,#f5f9ff 46%,white 65%)}.wallpaper img{position:absolute;right:0;top:0;width:64%;height:100%;object-fit:contain;object-position:70% center;mask-image:linear-gradient(90deg,transparent,#000 20%)}.desktop-brand{position:absolute;left:18%;top:19%;color:#071635;pointer-events:none}.desktop-brand>img{width:105px;transform:skewY(-8deg);margin-bottom:18px}.desktop-brand h1{font:70px Arial,sans-serif;letter-spacing:-5px;margin:0;font-weight:700}.desktop-brand h1 b{font-weight:400}.desktop-brand>strong{font-size:34px;letter-spacing:-1.5px}.desktop-brand p{font-size:19px;letter-spacing:5px;color:#083d91}.desktop-ca{position:absolute;left:18%;top:65%;width:350px;max-width:45vw}.desktop-ca>span{display:block;margin-bottom:8px;color:#183e72}.desktop-ca>div{display:flex;align-items:center;gap:10px;background:#ffffffdf;padding:6px 6px 6px 12px}.desktop-ca code{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.shortcuts{position:absolute;top:15px;left:10px;bottom:10px;display:flex;flex-flow:column wrap;align-content:flex-start;gap:10px 7px;max-width:180px}.shortcut{width:80px;height:77px;padding:5px 2px;border:0;box-shadow:none;background:none;text-align:center;text-decoration:none;color:white;text-shadow:1px 1px #17355e;display:flex;align-items:center;flex-direction:column;gap:6px;cursor:pointer}.shortcut img{width:32px;height:32px;object-fit:contain;image-rendering:pixelated}.shortcut span{font-size:11px;padding:2px}.shortcut:hover span,.shortcut:focus span{background:#000080}.shortcut:active{box-shadow:none;padding:5px 2px}.window{position:absolute;left:220px;top:75px;background:#d4d0c8;padding:3px;box-shadow:inset 1px 1px #fff,inset -1px -1px #404040,inset -2px -2px #808080,3px 5px 9px #0003;display:flex;flex-direction:column;max-width:100%;max-height:100%;min-width:280px;min-height:190px}.titlebar{background:#808080;color:white;height:25px;display:flex;align-items:center;justify-content:space-between;padding:3px 3px 3px 7px;flex-shrink:0;cursor:move;touch-action:none;user-select:none}.window.active .titlebar{background:linear-gradient(90deg,#000080,#1084d0)}.titlebar strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.titlebar>div{display:flex;gap:2px}.titlebar button{padding:0;width:20px;height:19px;font:bold 14px Arial;line-height:16px}.appbody{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column}.toolbar{display:flex;align-items:center;gap:8px;padding:8px;border-bottom:1px solid #888;flex-shrink:0;flex-wrap:wrap}.path{flex:1;background:white;padding:5px 9px}.explorer{display:flex;flex:1;min-height:0;background:white;margin:3px}.explorer aside{width:160px;flex-shrink:0;border-right:2px solid #ccc;padding:16px 10px;color:#303d50;font-size:11px}.explorer .selected{background:#000080;color:white;padding:5px 0}.pictures{overflow:auto;flex:1;display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:17px;align-content:start}.pictures button{box-shadow:none;background:white;padding:5px;display:flex;flex-direction:column;gap:8px;align-items:center;font-size:11px}.pictures button:focus,.pictures button:hover{background:#d9e7ff}.pictures img{width:100%;height:130px;object-fit:contain}.photo{background:white;flex:1;min-height:0;display:flex;justify-content:center;padding:6px}.photo img{width:100%;height:100%;object-fit:contain}.system{display:grid;grid-template-columns:1fr 1fr;background:white;flex:1;padding:20px;gap:20px;align-items:center}.system>img{width:100%;max-height:430px;object-fit:contain}.system h2{font-size:27px}.system button{margin:8px 0}.stats{display:flex;gap:5px;padding:8px}.stats>div{flex:1;background:#eee;padding:8px}.stats small{display:block;color:#666;margin-bottom:5px}.stats strong{font-size:16px}.chart{flex:1;min-height:200px;position:relative;background:white;margin:3px}.chart iframe{position:absolute;width:100%;height:100%;inset:0;border:0}.empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#637590;padding:15px}.empty img{width:40px;image-rendering:pixelated}.status{padding:5px;border:1px inset #eee;font-size:11px}.resize{position:absolute;bottom:0;right:0;width:15px;height:15px;cursor:se-resize;touch-action:none;background:repeating-linear-gradient(135deg,transparent 0 3px,#888 3px 4px,transparent 4px 6px);clip-path:polygon(100% 0,100% 100%,0 100%)}.window.maximized{top:0!important;left:0!important;width:100%!important;height:100%!important}.window.maximized .resize{display:none}.taskbar{position:fixed;bottom:0;left:0;right:0;height:36px;background:#d4d0c8;box-shadow:inset 0 1px white;display:flex;gap:5px;padding:4px;align-items:center;z-index:10000}.taskbar button{height:28px;display:flex;align-items:center;gap:6px;padding:4px 9px}.taskbar img{width:20px;height:20px;object-fit:contain;image-rendering:pixelated}#tasks{display:flex;gap:4px;flex:1;min-width:0;overflow:auto}#tasks button{width:160px;min-width:80px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;display:block;text-align:left}#tasks .active{background:#eee;box-shadow:inset 1px 1px #444,inset -1px -1px white;font-weight:bold}.tray{padding:7px 12px;white-space:nowrap}#start-menu{position:fixed;bottom:36px;left:3px;display:flex;background:#d4d0c8;padding:3px;box-shadow:inset 1px 1px white,inset -1px -1px #444;z-index:10001;width:250px}.start-strip{writing-mode:vertical-rl;transform:rotate(180deg);font-size:23px;background:#164c97;color:white;padding:13px 8px}#start-menu>div:last-child{flex:1}#start-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:13px 10px;background:none;box-shadow:none;text-align:left}#start-menu button:hover{background:#000080;color:white}#start-menu img{width:28px;height:28px;object-fit:contain}#toast{position:fixed;bottom:47px;left:50%;transform:translateX(-50%);z-index:10010;background:#ffffdf;border:1px solid #777;padding:15px 22px}.mine-wrap{padding:12px;margin:auto}.score{display:flex;align-items:center;justify-content:space-between;padding:9px;margin-bottom:12px}.score output{background:#200000;color:#ff2c2c;font:bold 28px monospace;padding:1px 5px}.score button{font-size:23px;padding:2px 5px}#board{display:grid;grid-template-columns:repeat(9,28px);border:3px inset #eee}#board button{width:28px;height:28px;padding:0;font:bold 17px Arial}#board .revealed{box-shadow:none;background:#c0c0c0;border:1px solid #999;cursor:default}#board .n1{color:blue}#board .n2{color:green}#board .n3{color:red}#board .n4{color:navy}#board .n5{color:maroon}#board .exploded{background:#f55}#game-status{max-width:255px;font-size:11px;line-height:1.4;min-height:30px}#mines{min-width:310px;min-height:405px}.toolbar label{font-size:11px}@media(max-width:700px){.desktop-brand{left:28%;top:17%}.desktop-brand h1{font-size:44px;letter-spacing:-3px}.desktop-brand>strong{font-size:23px}.desktop-brand>img{width:65px}.desktop-brand p{font-size:13px}.desktop-ca{left:25%;top:auto;bottom:30px;width:70%;max-width:none}.wallpaper img{width:100%;opacity:.7;object-position:right center}.shortcuts{gap:2px}.shortcut{height:69px;width:75px}.window{left:5px!important;max-width:calc(100% - 10px)}.explorer aside{display:none}.pictures{grid-template-columns:repeat(3,1fr)}.pictures img{height:115px}.tray{padding:7px}.system{padding:10px;gap:10px}.system h2{font-size:22px}.stats{flex-wrap:wrap}.stats>div{min-width:70px}#desktop-button{display:none}}

#mines{min-height:465px}.score button{font-family:Arial,sans-serif;color:#111;background:#ffe348;min-width:32px;height:32px;font-size:25px;padding:0}#game-status{margin-bottom:0}
.paint-icon{display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center;background:#fff;color:#1455a9;border:2px outset #ddd;font:bold 32px serif;text-shadow:2px 1px #f8bd30}.paint-work{display:flex;flex:1;min-height:0}.paint-tools{width:52px;flex-shrink:0;padding:5px;display:flex;flex-direction:column;gap:5px}.paint-tools button{height:33px;padding:3px;font-size:21px}.paint-tools button[aria-pressed=true]{box-shadow:inset 1px 1px #444,inset -1px -1px white;background:#eee}.paint-scroll{overflow:auto;flex:1;padding:8px;background:#808080}.paint-scroll canvas{display:block;background:white;touch-action:none;cursor:crosshair;max-width:none}.paint-palette{display:flex;gap:10px;padding:8px;align-items:center}.paint-palette input{width:42px;height:36px;padding:0}#swatches{display:flex;gap:3px;flex-wrap:wrap}#swatches button{width:21px;height:21px;padding:0;border:1px solid #777;box-shadow:inset 1px 1px #fff6}#boot{position:fixed;inset:0;background:#fff;z-index:20000;display:flex;align-items:center;justify-content:center;border-top:9vh solid #163d8d;border-bottom:9vh solid #163d8d}.boot-content{width:min(520px,85vw)}.boot-content>img{width:94px;margin-bottom:25px}.boot-content h1{font:bold 64px Arial;margin:0;letter-spacing:-3px}.boot-content h1 b{font-weight:400}.boot-content h2{font:bold 30px Arial;margin:0 0 55px}.boot-content p{color:#555}.boot-track{height:18px;background:#eee;border:2px inset #aaa;padding:2px}#boot-progress{height:100%;width:0;background:repeating-linear-gradient(90deg,#164c9c 0 12px,transparent 12px 15px)}.boot-actions{display:flex;gap:12px;margin:22px 0}.boot-content small{color:#777}.boot-exit{opacity:0;transition:opacity .25s}#sound-toggle{font-size:10px;white-space:nowrap}@media(max-width:700px){.boot-content h1{font-size:48px}#sound-toggle{max-width:65px;font-size:9px;padding:4px}.paint-tools{width:42px}}
