@font-face{font-family:VT;src:url(fonts/vt323.woff2) format('woff2');font-display:swap}
@font-face{font-family:PS;src:url(fonts/press-start-2p.woff2) format('woff2');font-display:swap}
:root{--wb:#0055aa;--wb2:#004a96;--white:#fff;--black:#000022;--orange:#ff8800;--soft:#bcd4ff;color-scheme:dark}
*{box-sizing:border-box}
html,body{margin:0;height:100%}
body{background:var(--wb);color:var(--white);font-family:VT,monospace;font-size:22px;line-height:1.15;overflow:hidden;display:flex;flex-direction:column;-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit}
a{color:var(--white)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.scr{flex:none;display:flex;align-items:center;gap:12px;height:30px;padding:0 0 0 10px;background:var(--white);color:var(--wb);white-space:nowrap;overflow:hidden;position:relative;z-index:5}
.scr-t{flex:none}
.scr-i{flex:1;overflow:hidden;text-overflow:ellipsis}
.scr-g{flex:none;display:flex;height:100%}
.scr-g i{width:30px;height:100%;border-left:2px solid var(--wb);position:relative}
.scr-g i::before{content:"";position:absolute;left:6px;top:6px;width:11px;height:9px;border:2px solid var(--wb)}
.scr-g i:last-child::after{content:"";position:absolute;left:10px;top:10px;width:11px;height:9px;background:var(--wb)}
.desk{flex:1;position:relative;overflow:hidden;min-height:0}
.ico{position:absolute;display:flex;flex-direction:column;align-items:center;gap:4px;width:118px;padding:4px 2px;background:none;border:0;cursor:pointer;touch-action:manipulation}
.ico canvas{width:64px;height:64px;image-rendering:pixelated;image-rendering:crisp-edges}
.ico span{padding:0 4px;color:var(--white);text-align:center;line-height:1;max-width:118px}
.ico.sel canvas{filter:invert(1) hue-rotate(180deg)}
.ico.sel span{background:var(--white);color:var(--wb)}
.ico:focus-visible{outline:2px dashed var(--orange);outline-offset:2px}
.win{position:absolute;min-width:280px;max-width:min(560px,calc(100vw - 16px));display:flex;flex-direction:column;background:var(--wb);border:3px solid var(--white);box-shadow:0 0 0 2px var(--black),8px 8px 0 rgba(0,0,0,.4)}
.win.inactive .bar{background:var(--wb);color:var(--white);box-shadow:inset 0 -2px 0 var(--white)}
.win.inactive .stripes{background:none}
.bar{flex:none;display:flex;align-items:center;gap:8px;height:30px;padding:0 0 0 4px;background:var(--white);color:var(--wb);cursor:move;touch-action:none;user-select:none;-webkit-user-select:none}
.bar b{font-weight:normal;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60%}
.stripes{flex:1;height:14px;background:repeating-linear-gradient(var(--wb) 0 2px,var(--white) 2px 4px)}
.g-close,.g-depth{flex:none;width:26px;height:24px;padding:0;border:2px solid var(--wb);background:var(--white);position:relative;cursor:pointer}
.g-close::after{content:"";position:absolute;inset:6px 7px;background:var(--wb)}
.g-depth{width:34px;height:30px;border-width:0 0 0 2px}
.g-depth::before{content:"";position:absolute;left:5px;top:6px;width:13px;height:10px;border:2px solid var(--wb)}
.g-depth::after{content:"";position:absolute;left:12px;top:12px;width:13px;height:10px;background:var(--wb)}
.win.inactive .g-close,.win.inactive .g-depth{background:var(--wb);border-color:var(--white)}
.win.inactive .g-close::after,.win.inactive .g-depth::after{background:var(--white)}
.win.inactive .g-depth::before{border-color:var(--white)}
.body{padding:12px 16px 16px;overflow:auto;max-height:calc(100vh - 160px);scrollbar-color:var(--white) var(--wb2)}
.win.wide{max-width:min(760px,calc(100vw - 16px))}
.body p{margin:0 0 10px}
.big{font-family:PS,monospace;font-size:18px;color:var(--orange);text-shadow:3px 3px 0 var(--black);margin:2px 0 12px;line-height:1.3}
.muted{color:var(--soft)}
.btn{display:inline-block;padding:6px 14px;color:var(--wb);background:var(--white);border:2px solid var(--black);box-shadow:inset -3px -3px 0 #8aa8d8,inset 3px 3px 0 var(--white);cursor:pointer;text-decoration:none;border-radius:0}
.btn:hover,.btn:focus-visible{background:var(--orange);color:var(--black);outline:none}
.btn.pri{background:var(--orange);color:var(--black)}
.btn[aria-disabled=true]{opacity:.55;pointer-events:none}
.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:0 0 12px}
.cyc{display:flex;align-items:stretch;gap:0;margin:0 0 10px;max-width:100%}
.cyc button{flex:none;width:36px;background:var(--white);color:var(--wb);border:2px solid var(--black);cursor:pointer;padding:0}
.cyc select{flex:1;min-width:0;font:inherit;color:var(--wb);background:var(--white);border:2px solid var(--black);border-width:2px 0;padding:2px 6px;border-radius:0;appearance:none;-webkit-appearance:none}
.tab{width:100%;border-collapse:collapse}
.tab td{padding:1px 6px;white-space:nowrap}
.tab td:first-child{width:3ch;text-align:right;color:var(--soft)}
.tab td:nth-child(2){width:100%;max-width:200px;overflow:hidden;text-overflow:ellipsis}
.tab td.v{text-align:right;color:var(--orange)}
.tab td.d{color:var(--soft);font-size:18px}
.tab tr:first-child td:nth-child(2){color:var(--white)}
.tab .empty td{color:var(--soft);text-align:left;width:auto}
.hof-h{color:var(--orange);margin:10px 0 4px}
.hof-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 18px}
.hof-one{display:block}
.hof-it{display:flex;gap:8px;white-space:nowrap;min-width:0}
.hof-it .hl{flex:none;color:var(--soft)}
.hof-it .hn{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.hof-it .hv{flex:none;color:var(--orange)}
.hof-it.free .hn{color:var(--soft)}
.hof-one .hof-it .hl{flex:1}
.hof-one .hof-it .hn{flex:none}
.hof{width:100%;border-collapse:collapse}
.hof th{text-align:left;font-weight:normal;color:var(--orange);padding:8px 6px 2px}
.hof td{padding:1px 6px;white-space:nowrap}
.hof td:first-child{color:var(--soft);overflow:hidden;text-overflow:ellipsis;max-width:200px}
.hof td.v{text-align:right;color:var(--orange)}
.tick{flex:none;position:relative;height:48px;background:#000022}
.tick canvas{display:block;width:100%;height:48px;image-rendering:pixelated}
.boot{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;background:#fff;color:var(--wb);cursor:pointer;transition:opacity .25s steps(3)}
.boot canvas{width:320px;height:240px;max-width:80vw;image-rendering:pixelated}
.boot-t{margin:0;font-family:PS,monospace;font-size:14px;letter-spacing:1px;text-align:center;padding:0 16px}
.boot.gone{opacity:0;pointer-events:none}
.boot[hidden]{display:none}
@media (max-width:700px){
  body{font-size:20px}
  .scr-i{font-size:18px}
  .desk{overflow-y:auto;display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));align-content:start;gap:10px;padding:14px 16px 24px}
  .ico{position:static;width:auto}
  .win{position:fixed;left:8px!important;right:8px;top:38px!important;max-width:none;min-width:0;max-height:calc(100% - 100px);z-index:20}
  .bar{cursor:default}
  .body{max-height:calc(100vh - 150px)}
  .big{font-size:15px}
  .hof-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){.boot{transition:none}}
