:root{--desktop:#008080;--paper:#c0c0c0;--ink:#171717;--muted:#444;--line:#888;--lime:#000080;--mono:'Courier New',monospace;--raise:inset 1px 1px #fff,inset -1px -1px #404040,inset 2px 2px #dfdfdf,inset -2px -2px #808080;--sink:inset 1px 1px #808080,inset -1px -1px #fff,inset 2px 2px #404040,inset -2px -2px #dfdfdf}
body{isolation:isolate}

*{box-sizing:border-box}body{margin:0;background:var(--desktop);color:var(--ink);font:14px/1.55 Tahoma,'MS Sans Serif',Arial,sans-serif;padding-bottom:65px}a{color:inherit}button,input{font:inherit}button{cursor:pointer}a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px dashed #000080;outline-offset:4px}a:hover{text-decoration:underline}[hidden]{display:none!important}.wrap{width:min(1120px,calc(100% - 64px));margin-inline:auto}.desktop-canvas{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip{position:fixed;top:-100px;left:12px;padding:8px 14px;background:#fff;z-index:20}.skip:focus{top:10px}.site-header{padding:25px 0 18px}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:bold;font-size:19px;color:#fff;text-shadow:1px 1px #004444}.brand svg{width:30px;height:30px}.brand-dot{color:#bfffff}.site-nav{display:flex;gap:4px;padding:4px;background:var(--paper);box-shadow:var(--raise)}.site-nav a{padding:5px 16px;text-decoration:none;font-size:13px}.site-nav a:hover,.site-nav a[aria-current]{background:#000080;color:#fff}.desktop{padding-top:14px}.desktop-label{display:flex;justify-content:space-between;gap:15px;margin-bottom:16px;color:#d4ffff;font:10px var(--mono);letter-spacing:1.2px}.desktop-layout{display:grid;grid-template-columns:1.25fr 1fr;gap:24px;align-items:start}.window{padding:4px;background:var(--paper);box-shadow:var(--raise),5px 5px 0 #00444455}.window-title{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:28px;padding:3px 4px 3px 7px;background:linear-gradient(90deg,#000080,#1084d0);color:#fff;font-weight:bold;font-size:13px}.window-title>span:first-child{display:flex;gap:7px;align-items:center}.window-controls{display:flex;gap:2px;color:#000}.window-controls b{display:grid;place-items:center;width:18px;height:18px;font:bold 14px/1 Arial;background:var(--paper);box-shadow:var(--raise)}.window-menu{display:flex;gap:22px;padding:4px 10px;border-bottom:1px solid #888;font-size:12px}.welcome-content{padding:31px 34px 35px;background:#f7f7ee;margin:3px;box-shadow:var(--sink)}.eyebrow{display:block;color:#000080;font:bold 10px var(--mono);letter-spacing:1.3px}h1,h2,p{margin-top:0}h1{font:900 clamp(60px,6vw,86px)/.94 Arial,sans-serif;letter-spacing:-5px;margin:22px 0}.accent{color:#000080}p{margin-bottom:18px}.intro{font-size:19px;line-height:1.5;margin-bottom:17px}.welcome-content>p:not(.intro){font-size:13px;color:#444;line-height:1.8}.button-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:27px}.button{display:inline-flex;align-items:center;justify-content:center;gap:13px;padding:10px 16px;background:var(--paper);box-shadow:var(--raise);border:0;color:#171717;text-decoration:none;font-weight:bold;font-size:12px;min-height:40px}.button:hover{background:#d4d4d4;text-decoration:none}.button:active{box-shadow:var(--sink);transform:translate(1px,1px)}.button-primary{outline:1px solid #000;outline-offset:-5px}.window-status{display:flex;justify-content:space-between;gap:12px;padding:5px 8px;box-shadow:inset 1px 1px #888,inset -1px -1px #fff;margin-top:3px;font-size:10px;color:#444}.game-window{margin-top:40px}.game-cover{display:block;position:relative;margin:3px;overflow:hidden;box-shadow:var(--sink);border:2px solid #808080}.game-cover img{display:block;width:100%;height:192px;object-fit:cover;image-rendering:pixelated}.game-sticker{position:absolute;bottom:9px;left:10px;color:#fff;background:#000080;padding:3px 7px;font:10px var(--mono)}.game-content{padding:20px 23px 21px}.game-content h2{font-size:27px;letter-spacing:-1px;margin:8px 0 10px}.game-content p{font-size:12px;line-height:1.7;margin-bottom:15px}.game-specs{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:20px}.game-specs span{box-shadow:var(--sink);padding:4px 7px;font:10px var(--mono)}.game-content .button{width:100%}.social-window{margin-top:27px;scroll-margin-top:20px}.social-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:18px 21px 10px}.social-heading h2{font-size:16px;margin:0}.social-heading>span{font:10px var(--mono);color:#444}.social-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;padding:10px 17px 22px}.social-card{display:flex;align-items:center;flex-direction:column;padding:14px 3px 9px;text-decoration:none;border:1px solid transparent}.social-card:hover,.social-card:focus-visible{background:#000080;color:#fff;border:1px dotted #fff;text-decoration:none}.shortcut-icon{position:relative;display:grid;place-items:center;width:45px;height:42px;background:#ffffe8;color:#000080;box-shadow:var(--raise);margin-bottom:9px}.shortcut-icon .icon{width:26px;height:26px}.shortcut-icon>span{position:absolute;bottom:-3px;left:-3px;background:#fff;box-shadow:var(--raise);width:16px;height:16px;text-align:center;font:bold 14px/1 Arial}.social-card strong{font-size:12px}.social-card small{font-size:10px;margin-top:2px}.privacy-note{margin-top:18px;color:#e0ffff;font-size:11px;max-width:690px}.privacy-note summary{cursor:pointer;width:fit-content}.privacy-note p{padding-top:10px}.desktop-hint{font:10px var(--mono);color:#b6e4e4;text-align:right;margin:18px 0 22px}.taskbar{position:fixed;bottom:0;left:0;right:0;z-index:10;background:var(--paper);box-shadow:inset 0 2px #fff;padding:5px}.taskbar-inner{width:100%;display:flex;align-items:center;gap:7px}.start-button{display:flex;align-items:center;gap:6px;padding:4px 9px;box-shadow:var(--raise);text-decoration:none;font-size:14px;height:34px}.start-button svg{width:22px;height:22px;color:#000080}.taskbar-task{box-shadow:var(--sink);padding:6px 13px;font-size:12px;width:180px;font-weight:bold}.motion-toggle{margin-left:auto;border:0;box-shadow:var(--raise);padding:7px 12px;background:var(--paper);font-size:11px}.tray{display:flex;align-items:center;gap:10px;box-shadow:var(--sink);padding:7px 12px;font:9px var(--mono)}.tray time{font:12px Tahoma,Arial}.not-found{margin-top:40px;background:var(--paper);padding:35px;box-shadow:var(--raise)}.breadcrumb{display:flex;gap:10px;font-size:11px;margin-bottom:20px}.small-label{font:bold 10px var(--mono);letter-spacing:1px}
@media(min-width:1500px){.desktop{padding-top:35px}.game-window{margin-top:44px}}@media(max-width:800px){.wrap{width:calc(100% - 32px)}.desktop-layout{grid-template-columns:1fr 1fr;gap:16px}.welcome-content{padding:27px 22px}.intro{font-size:16px}h1{font-size:64px}.game-content{padding:17px}.button-row{gap:10px}.social-grid{grid-template-columns:repeat(3,1fr)}.desktop-label{font-size:9px}.tray{font-size:0;gap:0}.taskbar-task{width:135px}}@media(max-width:580px){.site-header{padding-top:18px}.header-inner{align-items:start;flex-direction:column;gap:14px}.site-nav{width:100%;justify-content:space-around}.site-nav a{padding:6px 14px}.desktop-label>span:last-child{display:none}.desktop-layout{grid-template-columns:1fr}.game-window{margin-top:8px}.welcome-content{padding:28px 24px}h1{font-size:74px}.intro{font-size:18px}.social-heading{align-items:start;flex-direction:column}.social-grid{padding-inline:8px;gap:4px}.social-window{margin-top:24px}.game-cover img{height:205px}.desktop-hint{text-align:left;line-height:1.7}.taskbar-task{display:none}.tray{padding:7px}.motion-toggle{padding:7px 9px}.window-status{font-size:9px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

/* Desktop window manager: the static page remains readable without JavaScript. */
.desktop-workspace{position:relative}.desktop-shortcuts{display:flex;gap:14px;margin:0 0 20px}.desktop-icon{display:flex;flex-direction:column;align-items:center;gap:7px;width:104px;padding:9px 5px;text-align:center;text-decoration:none;color:#fff;font-size:12px;line-height:1.3;border:1px solid transparent}.desktop-icon:hover,.desktop-icon:focus-visible{background:#00008066;border:1px dotted #fff;text-decoration:none;outline-color:#fff}.desktop-icon small{font-size:10px;color:#d3ffff}.desktop-icon-art{position:relative;display:grid;place-items:center;width:52px;height:48px;background:#c0c0c0;color:#000080;box-shadow:var(--raise)}.desktop-icon-art>svg{width:35px;height:35px}.desktop-icon-art .icon{width:32px;height:32px}.dungeon-icon{background:transparent;box-shadow:none}.dungeon-icon>svg{width:48px;height:48px;image-rendering:pixelated}.shortcut-arrow{position:absolute;bottom:-3px;left:-3px;background:#fff;color:#000080;box-shadow:var(--raise);width:16px;height:16px;text-align:center;font:bold 14px/1 Arial}.window-controls button{display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;font:bold 14px/1 Arial;background:var(--paper);box-shadow:var(--raise);color:#000}.window-controls button:active{box-shadow:var(--sink)}.window-controls button:focus-visible{outline:1px dotted #000;outline-offset:-5px}.desktop-enabled .window-title{cursor:grab;user-select:none;touch-action:none}.desktop-enabled .window-title:active{cursor:grabbing}.desktop-enabled .window-title:focus-visible{outline:1px dotted #fff;outline-offset:-3px}.desktop-enabled .window:not(.is-active) .window-title{background:linear-gradient(90deg,#707070,#aaa)}.desktop-enabled .window{position:relative;margin:0 0 18px}.desktop-enabled .social-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.desktop-enabled.free-desktop .desktop-workspace{min-height:650px}.free-desktop .desktop-shortcuts{position:absolute;top:0;left:0;flex-direction:column;gap:15px}.desktop-enabled.free-desktop .window{position:absolute;resize:both;overflow:auto;min-width:300px;min-height:180px;max-width:100%;max-height:650px;margin:0}.desktop-enabled .window.is-maximized{position:fixed!important;inset:12px 12px 58px!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;resize:none!important;overflow:auto;margin:0!important}.window.is-maximized .welcome-content{min-height:calc(100% - 63px)}.window.is-maximized .social-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.window.is-maximized .window-status{position:sticky;bottom:0;background:#c0c0c0}.window-tasks{display:flex;gap:5px;min-width:0;overflow-x:auto;flex:1}.window-task{flex:0 0 auto;max-width:180px;min-width:100px;height:34px;box-shadow:var(--raise);background:#c0c0c0;border:0;text-align:left;padding:4px 10px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.window-task[aria-pressed=true]{box-shadow:var(--sink);font-weight:bold;background:#d4d4d4}.taskbar{z-index:20000}.motion-toggle{flex-shrink:0}.start-menu{position:absolute;bottom:47px;left:5px;width:220px;padding:4px;background:#c0c0c0;box-shadow:var(--raise),3px 3px #004444}.start-menu-title{background:linear-gradient(90deg,#000080,#1084d0);color:#fff;padding:8px;font-weight:bold}.start-menu a,.start-menu button{display:block;border:0;width:100%;text-align:left;background:none;padding:10px 12px;color:#000;text-decoration:none;font-size:13px}.start-menu a:hover,.start-menu button:hover,.start-menu a:focus-visible,.start-menu button:focus-visible{background:#000080;color:#fff}.desktop-enabled .start-button[aria-expanded=true]{box-shadow:var(--sink)}
@media(max-width:800px){.desktop-enabled .desktop-hint{font-size:0}.desktop-enabled .desktop-hint:after{content:'Tap an icon to open it. Minimized windows stay in the taskbar.';font-size:10px}.desktop-enabled .window-title{cursor:default;touch-action:auto}.window-tasks .window-task{max-width:120px;min-width:75px;font-size:10px}.window.is-maximized .social-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tray{display:none}.motion-toggle{padding:7px 8px;font-size:10px}}
@media(max-width:420px){.desktop-shortcuts{gap:5px;justify-content:space-between}.desktop-icon{width:96px;font-size:11px}.start-button{padding:4px 6px}.start-button strong{font-size:12px}.window-task{min-width:60px!important;max-width:92px!important}.taskbar-inner{gap:4px}.window-controls button{width:24px;height:24px}}

/* Readability and full-screen desktop workspace. */
.window-status,.social-heading>span,.social-card small,.privacy-note,.desktop-icon small,.mine-help,.small-label{font-size:12px}.eyebrow{font-size:12px}.tray{font-size:11px}.motion-toggle{font-size:12px}.desktop-icon{font-size:13px;width:112px}.desktop-icon-art>svg{width:46px;height:46px}.printer-icon,.email-icon{background:transparent;box-shadow:none}.mine-icon{font-size:37px;background:#c0c0c0;color:#111}.social-card strong{font-size:14px}.social-grid{padding-bottom:18px}.welcome-content>p:not(.intro){font-size:14px}.welcome-content{padding-top:25px}.welcome-content h1{margin-top:8px}.window-task{font-size:13px}.mine-icon~span{white-space:nowrap}
@media(min-width:801px){body.desktop-page{overflow:hidden;padding:0}.desktop-page .site-header{position:fixed;top:0;left:0;width:100%;z-index:5;padding:15px 0}.desktop-page .header-inner{width:calc(100% - 32px)}.desktop-page main.desktop{position:fixed;inset:0 0 48px;width:100%;margin:0;padding:0}.desktop-page .desktop-workspace{position:absolute;inset:0;min-height:0!important}.desktop-page .desktop-shortcuts{top:70px;left:12px;gap:9px}.desktop-page .window{max-height:100%!important}.desktop-page .privacy-note{position:fixed;bottom:61px;left:18px;margin:0;max-width:440px;z-index:1;background:#008080}.desktop-page .privacy-note[open]{padding:10px;box-shadow:var(--raise)}.desktop-page .window.is-maximized{inset:4px 4px 52px!important}.desktop-page .social-heading{align-items:start;flex-direction:column;gap:5px}}
@media(max-width:800px){.desktop-shortcuts{flex-wrap:wrap;justify-content:center}.window-tasks .window-task{font-size:12px;min-width:88px;max-width:135px}.taskbar-inner{gap:5px}.window-tasks{flex:1 1 70px}.motion-toggle{font-size:12px;min-width:85px}.window-controls button{font-size:16px}.desktop-icon{width:100px}.desktop-page .privacy-note{position:static}.window.is-maximized{inset:4px 4px 54px!important}}
.minesweeper-app{padding:12px}.minesweeper-menu{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:13px;margin-bottom:12px}.minesweeper-menu label{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.minesweeper-menu select{font:12px Tahoma,Arial;max-width:100%;padding:4px;background:#fff}.minesweeper-menu button{font-size:12px;border:0;box-shadow:var(--raise);background:#c0c0c0;padding:7px}.mine-panel{display:flex;align-items:center;justify-content:space-between;padding:10px;box-shadow:var(--sink);margin-bottom:12px}.mine-panel output{font:bold 26px/1 'Courier New',monospace;background:#111;color:#ff3030;padding:3px 5px}.mine-panel button{font-size:26px;width:42px;height:39px;background:#c0c0c0;border:0;box-shadow:var(--raise)}.mine-scroll{overflow:auto;max-width:100%;padding:3px;box-shadow:var(--sink)}.mine-grid{display:grid;width:fit-content;margin:auto;gap:0}.mine-cell{width:28px;height:28px;padding:0;border:0;background:#c0c0c0;box-shadow:var(--raise);font:bold 19px/1 Arial;position:relative;color:#111}.mine-cell.revealed{box-shadow:inset 0 0 0 1px #999;background:#c0c0c0}.mine-cell:focus-visible{outline:2px dotted #000;outline-offset:-4px;z-index:1}.mine-cell[data-number="1"]{color:#0000c0}.mine-cell[data-number="2"]{color:#008000}.mine-cell[data-number="3"]{color:#d00000}.mine-cell[data-number="4"]{color:#000080}.mine-cell[data-number="5"]{color:#800000}.mine-cell[data-number="6"]{color:#008080}.mine-cell.exploded{background:#ff4040}.mine-cell.wrong-flag{color:#d00000}.mine-status{font-size:13px;line-height:1.6;margin:12px 0}.mine-help{font-size:13px}.mine-help summary{cursor:pointer}.mine-help p{margin:10px 0;line-height:1.7}.minesweeper-page{padding-top:25px}.minesweeper-page h1{font-size:42px;letter-spacing:-2px}.standalone-mines{max-width:940px;width:fit-content;min-width:300px;margin:0 auto}.standalone-mines .minesweeper-menu{max-width:680px}.minesweeper-window .minesweeper-menu{display:block}.minesweeper-window .minesweeper-menu button{margin-top:9px}.minesweeper-window{min-width:330px!important}
.wiki-page{padding-top:20px;padding-bottom:35px}.wiki-intro{padding:24px}.wiki-intro h1{font-size:clamp(30px,5vw,48px);letter-spacing:-2px;margin:0 0 18px}.wiki-intro p{font-size:14px}.wiki-spoiler{padding:10px;box-shadow:var(--sink)}.wiki-header .window-title a{color:#fff;font-size:12px}.wiki-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:22px;margin-top:22px;align-items:start}.wiki-toc{position:sticky;top:12px;background:#c0c0c0;padding:5px;box-shadow:var(--raise)}.wiki-toc a{display:block;padding:10px;text-decoration:none;font-size:13px}.wiki-toc a:hover{background:#000080;color:#fff}.wiki-content{min-width:0;background:#c0c0c0;padding:25px;box-shadow:var(--raise)}.wiki-section{scroll-margin-top:15px;padding-bottom:30px;margin-bottom:25px;border-bottom:1px solid #888}.wiki-section:last-child{border-bottom:0;margin-bottom:0}.wiki-section h2{font-size:25px;margin:0 0 18px}.wiki-section h3{font-size:19px;margin:25px 0 12px}.wiki-section p,.wiki-section li{font-size:14px;line-height:1.8}.wiki-section li{margin-bottom:9px}.wiki-table-scroll{overflow:auto;max-width:100%;margin:18px 0;box-shadow:var(--sink);padding:2px}.wiki-table-scroll table{width:100%;border-collapse:collapse;background:#f4f4ef;font-size:13px;line-height:1.6}.wiki-table-scroll th{background:#000080;color:#fff;text-align:left;font-size:13px;white-space:nowrap}.wiki-table-scroll th,.wiki-table-scroll td{padding:10px;vertical-align:top;border:1px solid #aaa;min-width:85px}.wiki-table-scroll tr:nth-child(even){background:#e5e5df}.wiki-card{background:#e1e1dc;padding:18px;margin:18px 0;box-shadow:var(--sink)}.wiki-card h3{margin-top:0}.wiki-section code{font-size:12px;overflow-wrap:anywhere}.wiki-table-scroll td:last-child{min-width:105px}
@media(max-width:800px){.wiki-layout{grid-template-columns:1fr;gap:15px}.wiki-toc{position:static;display:flex;flex-wrap:wrap}.wiki-toc a{padding:9px}.wiki-content{padding:18px}.wiki-intro{padding:18px}.wiki-header .window-title{align-items:start;flex-wrap:wrap}.wiki-table-scroll th,.wiki-table-scroll td{padding:8px}.standalone-mines{width:100%;min-width:0}.minesweeper-window{min-width:0!important}}
.desktop-icon-art{font-size:32px}.desktop-icon-art .shortcut-arrow{font-size:14px}

/* Consistent surfaces and explicit mouse/touch/keyboard resize grips. */
.welcome-content{background:var(--paper)}.desktop-enabled .window{display:flex;flex-direction:column;overflow:hidden!important;resize:none!important}.window-title{flex-shrink:0}.window-body{min-height:0;flex:1 1 auto;overflow:auto}.window-resize{position:absolute;right:3px;bottom:3px;width:21px;height:21px;padding:0;border:0;background:repeating-linear-gradient(135deg,transparent 0 3px,#fff 3px 4px,#808080 4px 5px,transparent 5px 7px);clip-path:polygon(100% 0,100% 100%,0 100%);cursor:nwse-resize;touch-action:none;z-index:2}.window-resize:focus-visible{outline:2px dotted #000080;outline-offset:-3px;clip-path:none}.window.is-maximized .window-resize{display:none}.mine-cell{width:var(--mine-cell-size,28px);height:var(--mine-cell-size,28px);font-size:clamp(9px,calc(var(--mine-cell-size,28px) * .68),19px)}.mine-scroll{flex-shrink:0}.window-body .welcome-content{min-height:0}.desktop-enabled .window.is-maximized .window-body .welcome-content{min-height:calc(100% - 31px)}.desktop-enabled .window{max-width:100%;min-width:0!important}.desktop-enabled .window-body{padding-bottom:4px}
@media(max-width:800px){.desktop-enabled .window-resize{width:26px;height:26px}.desktop-enabled .window{align-self:start}.desktop-enabled .window-body{padding-bottom:8px}}
@media(min-width:801px){.desktop-page main.desktop{z-index:10;pointer-events:none}.desktop-page .desktop-workspace{pointer-events:none}.desktop-page [data-desktop-window],.desktop-page .desktop-shortcuts,.desktop-page .privacy-note{pointer-events:auto}}

/* Compact page headers. */
.site-header{padding:12px 0 10px}.desktop-page .site-header{padding:10px 0}.ember-heading{padding-block:8px;margin-block:10px 14px}@media(max-width:580px){.site-header{padding-top:10px}}

/* Original pixel artwork and an electrically connected two-layer 555 wallpaper. */
body.desktop-page{background-image:url('/assets/circuit-board.svg');background-size:100% 100%;background-position:0 0;background-repeat:no-repeat;background-attachment:fixed}
.pixel-icon{width:32px;height:32px;flex-shrink:0;image-rendering:pixelated;fill:none;stroke:none}
.desktop-page .desktop-icon-art,.desktop-page .shortcut-icon{background:transparent;box-shadow:none}
.desktop-page .desktop-icon-art>.pixel-icon{width:48px;height:48px}
.desktop-page .shortcut-icon>.pixel-icon{width:48px;height:48px}
.desktop-page .shortcut-icon{width:52px;height:48px;margin-bottom:8px}
.desktop-page .shortcut-arrow{width:24px;height:24px;bottom:-3px;left:-2px;background:none;box-shadow:none}
.shortcut-arrow>.pixel-icon,.social-shortcut-arrow>.pixel-icon{width:24px;height:24px}
.desktop-page .social-shortcut-arrow{position:absolute;left:-2px;bottom:-3px;width:24px;height:24px;background:none;box-shadow:none}
.desktop-page .welcome-content{padding:26px 28px 24px}
.welcome-brand{display:flex;align-items:center;gap:18px;margin-bottom:16px}
.welcome-brand .welcome-atom{width:64px;height:64px}
.desktop-page .welcome-brand h1{font:bold clamp(28px,4vw,40px)/1.15 Tahoma,Arial,sans-serif;letter-spacing:-1.5px;margin:0;white-space:normal}
.desktop-page .welcome-content .intro{font-size:17px;margin:0 0 20px}
.desktop-page .welcome-content .button-row{gap:10px;margin:0}
.desktop-page .welcome-content .button{gap:9px;padding:8px 12px;font-size:13px;min-height:44px}
.welcome-content .button .pixel-icon{width:24px;height:24px}
.desktop-page .social-card{padding-block:10px}
@media(max-width:480px){.desktop-page .welcome-content{padding:22px 18px}.welcome-brand{gap:12px}.welcome-brand .welcome-atom{width:48px;height:48px}.desktop-page .welcome-content .button-row{flex-direction:column;align-items:stretch}}
.brand .pixel-icon{width:30px;height:30px}.start-button .pixel-icon{width:24px;height:24px}

.window-app-icon{width:16px;height:16px;vertical-align:middle}.window-task .window-app-icon,.start-menu .window-app-icon{margin-right:6px}

/* Related shortcuts share a row; mail stays directly below My Lab. */
.desktop-page .desktop-shortcuts{display:grid;grid-template-columns:repeat(2,112px);grid-template-areas:"lab ." "mail ." "game wiki" "mines media";gap:9px;justify-content:start}
.desktop-shortcuts>a:nth-child(1){grid-area:lab}.desktop-shortcuts>a:nth-child(2){grid-area:mail}.desktop-shortcuts>a:nth-child(3){grid-area:game}.desktop-shortcuts>a:nth-child(4){grid-area:wiki}.desktop-shortcuts>a:nth-child(5){grid-area:mines}
@media(max-width:800px){.desktop-page .desktop-shortcuts{justify-content:center;margin-bottom:20px}}

/* Small screens use one active panel; the desktop itself never becomes a long page. */
body.compact-desktop{height:100dvh;overflow:hidden;padding:0}
.compact-desktop .site-header{position:fixed;inset:0 0 auto;height:44px;padding:6px 12px;z-index:5}
.compact-desktop .header-inner{width:100%;height:100%;flex-direction:row;align-items:center;gap:8px}
.compact-desktop .brand{font-size:16px}.compact-desktop .brand .pixel-icon{width:24px;height:24px}
.compact-desktop .site-nav{display:none}
.compact-desktop main.desktop{--compact-shortcuts:152px;position:fixed;inset:44px 0 50px;width:100%;padding:0 8px;margin:0;z-index:10;pointer-events:auto}
.compact-desktop .desktop-workspace{position:relative;height:100%;min-height:0!important}
.compact-desktop .desktop-shortcuts{position:absolute;inset:0 0 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"lab game wiki" "mail mines media";grid-template-rows:repeat(2,70px);gap:4px;margin:0;height:var(--compact-shortcuts);justify-content:stretch}
.compact-desktop .desktop-icon{width:100%;padding:4px 2px;gap:3px;font-size:12px;line-height:1.15;justify-content:center}
.compact-desktop .desktop-icon-art{height:34px;width:36px}.compact-desktop .desktop-icon-art>.pixel-icon{width:32px;height:32px}
.compact-desktop .desktop-icon small{display:none}
.compact-desktop .desktop-shortcuts .shortcut-arrow{width:16px;height:16px}.compact-desktop .desktop-shortcuts .shortcut-arrow>.pixel-icon{width:16px;height:16px}
.compact-desktop .desktop-enabled .window{position:absolute!important;inset:var(--compact-shortcuts) 0 24px!important;width:auto!important;height:fit-content!important;margin:0;max-width:none!important;max-height:calc(100% - var(--compact-shortcuts) - 24px)!important;min-height:0;overflow:hidden!important}
.compact-desktop .desktop-enabled .window:not(.is-active){display:none!important}
.compact-desktop .window-title{min-height:38px;cursor:default;touch-action:auto;font-size:13px}
.compact-desktop .window-controls button{width:32px;height:30px;font-size:18px}
.compact-desktop [data-window-action="maximize"],.compact-desktop .window-resize{display:none}
.compact-desktop .window-body{overflow:auto;overscroll-behavior:contain;min-height:0;padding-bottom:0}
.compact-desktop .welcome-content{padding:16px;margin:3px;min-height:0!important}
.compact-desktop .welcome-brand{gap:12px;margin-bottom:12px}.compact-desktop .welcome-brand .welcome-atom{width:40px;height:40px}
.compact-desktop .welcome-brand h1{font-size:26px;letter-spacing:-1px}
.compact-desktop .welcome-content .intro{font-size:15px;margin-bottom:14px}
.compact-desktop .welcome-content .button-row{gap:8px;margin:0;flex-direction:row}
.compact-desktop .welcome-content .button{flex:1 1 150px;min-height:44px;padding:6px 10px;font-size:13px}
.compact-desktop .window-status{font-size:11px;padding:4px 6px;margin-top:0;flex-wrap:wrap}
.compact-desktop .social-heading{padding:10px 12px 4px}.compact-desktop .social-heading h2{font-size:15px}
.compact-desktop .social-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;padding:4px 8px 8px;gap:4px}
.compact-desktop .social-card{padding:6px 2px;min-height:70px}.compact-desktop .social-card strong{font-size:13px}
.compact-desktop .shortcut-icon{width:36px;height:34px;margin-bottom:4px}.compact-desktop .shortcut-icon>.pixel-icon{width:32px;height:32px}
.compact-desktop .privacy-note{position:absolute;bottom:2px;left:12px;margin:0;z-index:50;max-width:calc(100% - 24px);font-size:11px}
.compact-desktop .privacy-note[open]{background:var(--desktop);padding:10px;box-shadow:var(--raise);max-height:calc(100% - 8px);overflow:auto}
.compact-desktop .taskbar{height:50px;padding:4px}.compact-desktop .taskbar-inner{gap:4px;height:100%}
.compact-desktop .start-button{height:40px;padding:4px 6px}.compact-desktop .start-button strong{font-size:12px}
.compact-desktop .window-task{height:40px;min-width:68px!important;max-width:110px!important;padding:4px 6px;font-size:12px}
.compact-desktop .window-task .window-app-icon{display:none}
.compact-desktop .motion-toggle{min-width:44px;width:44px;height:40px;padding:4px;font-size:0}
.compact-desktop .motion-toggle:after{content:'Ⅱ';font:bold 17px Arial}.compact-desktop .motion-toggle[aria-pressed=false]:after{content:'▶'}
.compact-desktop .tray{display:none}.compact-desktop .start-menu{bottom:50px;max-height:calc(100dvh - 54px);overflow:auto}
.compact-desktop .minesweeper-app{padding:8px}.compact-desktop .minesweeper-menu{margin-bottom:8px}
.compact-desktop .minesweeper-menu select{min-height:40px}.compact-desktop .minesweeper-menu button{min-height:40px;margin-top:6px}
.compact-desktop .mine-panel{padding:6px;margin-bottom:8px}.compact-desktop .mine-scroll{overflow:auto;max-height:calc(100dvh - 340px);min-height:90px;overscroll-behavior:contain}
.compact-desktop .mine-grid{margin:0}.compact-desktop .mine-status{margin:8px 0}
@media(max-height:500px){.compact-desktop main.desktop{--compact-shortcuts:70px}.compact-desktop .desktop-shortcuts{grid-template-columns:repeat(6,minmax(0,1fr));grid-template-areas:"lab mail game wiki mines media";grid-template-rows:64px}.compact-desktop .welcome-content{padding:10px 14px}.compact-desktop .welcome-brand{margin-bottom:6px}.compact-desktop .welcome-brand .welcome-atom{width:32px;height:32px}.compact-desktop .welcome-brand h1{font-size:23px}.compact-desktop .welcome-content .intro{margin-bottom:8px}.compact-desktop .mine-scroll{max-height:150px}.compact-desktop .social-card{min-height:62px;padding:3px 2px}}

.desktop-shortcuts>a:nth-child(6){grid-area:media}

/* Media Player uses the desktop's silver bevels and native window controls. */
.media-app{padding:6px}.media-now{padding:6px 8px;box-shadow:var(--sink);background:#d4d4d4;margin-bottom:6px;min-width:0}.media-now>span{display:block;font-size:11px;color:#444}.media-now strong{display:block;font-size:13px;overflow-wrap:anywhere}.media-screen{width:100%;max-width:100%;background:#000;border:2px solid #808080;box-shadow:var(--sink);position:relative;aspect-ratio:16/9;min-height:200px}.media-placeholder{height:100%;min-height:196px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:#ddd;padding:12px;text-align:center}.media-film{font-size:32px;color:#80d4cd;line-height:1}.media-placeholder p{font:13px 'Courier New',monospace;margin:0}.media-placeholder small{font-size:11px;color:#aaa}.media-app button{border:0;background:var(--paper);box-shadow:var(--raise);color:#111;padding:6px 12px;font-size:13px;min-height:32px}.media-app button:active{box-shadow:var(--sink)}.media-app button:disabled{color:#666;cursor:default}.media-app button:focus-visible{outline:1px dotted #000080;outline-offset:-4px}.media-embed{position:absolute;inset:0}.media-embed iframe{width:100%;height:100%;display:block;border:0}.media-controls{display:flex;align-items:center;gap:4px;flex-wrap:wrap;padding:8px 0}.media-controls button{min-width:36px;padding:5px 8px;font:bold 15px Tahoma,Arial}.media-controls a{margin-left:auto;font-size:12px;padding:4px}.media-library{box-shadow:var(--sink);padding:3px;background:#fff}.media-library h2{font-size:12px;font-weight:normal;display:flex;justify-content:space-between;margin:0;padding:3px 6px;background:#dfdfdf;border-bottom:1px solid #808080}.media-library h2 span{color:#444}.media-library ol{list-style:none;padding:0;margin:0}.media-library li+li{border-top:1px solid #eee}.media-library button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:#fff;box-shadow:none;padding:6px 8px;line-height:1.35}.media-library button:hover{background:#e8e8e8}.media-library button[aria-pressed=true]{background:#000080;color:#fff}.media-library button[aria-pressed=true]:focus-visible{outline-color:#fff}.media-track-number{font:12px 'Courier New',monospace;color:#666}.media-library button[aria-pressed=true] .media-track-number{color:#fff}.media-status{margin-top:6px;padding-right:22px;align-items:center}.media-status>span:first-child{flex:1;min-width:0}.media-status>span:last-child{white-space:nowrap}.media-window.is-maximized .media-screen{max-width:960px;margin-inline:auto}.compact-desktop .media-controls button{min-height:40px;min-width:40px}.compact-desktop .media-library button{min-height:40px}.compact-desktop .media-status{font-size:11px}
.media-privacy{padding:8px;box-shadow:var(--sink);background:#eee;color:#171717;font-size:12px;line-height:1.45;margin-top:8px}.media-privacy p{margin:0 0 8px}.media-privacy p:last-child{margin-bottom:0}.media-privacy a{color:#000080}.media-agreement{display:flex;align-items:flex-start;gap:8px;cursor:pointer;padding:6px 0;margin-bottom:8px}.media-agreement input{flex:0 0 24px;width:24px;height:24px;margin:0;accent-color:#000080}.media-agreement input:focus-visible{outline:2px solid #000080;outline-offset:2px}.policy-page{margin:28px auto 80px;max-width:850px}.policy-content{padding:24px;line-height:1.6;font-size:15px}.policy-content h1{font-size:28px}.policy-content h2{font-size:19px;margin-top:24px}.policy-content a{color:#000080}
.wiki-entry{display:flex;align-items:flex-start;gap:10px;min-width:190px}.wiki-entry>div{min-width:0}.wiki-sprite{display:inline-block;position:relative;flex:0 0 48px;width:48px;height:48px;overflow:hidden;background:#172019;vertical-align:middle;border:1px solid #67725d;box-sizing:content-box}.wiki-sprite img{display:block;width:48px;height:48px;max-width:none;image-rendering:pixelated}.wiki-sprite-sheet img{width:192px;height:192px}.wiki-jumps{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.wiki-jumps a{padding:6px 10px;background:#e1e1dc;box-shadow:var(--raise);color:#000080;font-size:13px}.wiki-section h3[id]{scroll-margin-top:20px}
.wiki-bestiary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.wiki-enemy-card{padding:16px;background:#f4f4ef;box-shadow:var(--sink);min-width:0}.wiki-enemy-card .wiki-entry{align-items:center;min-width:0}.wiki-enemy-card p{font-size:13px;line-height:1.6;margin:12px 0 0}.wiki-enemy-stats,.wiki-enemy-traits{color:#41483c}.wiki-enemy-card .wiki-entry strong{font-size:15px}@media(max-width:800px){.wiki-bestiary-grid{grid-template-columns:1fr}}
.wiki-rarity-legend{display:flex;flex-wrap:wrap;gap:12px}.wiki-rarity-legend .wiki-entry{min-width:140px;align-items:center}
