.secret-counter{font:10px monospace;letter-spacing:.1em;color:#7f8b9a}.quiz-secret{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}#portrait{transform:perspective(1000px) rotateX(var(--orbit-x,0deg)) rotateY(var(--orbit-y,0deg));transform-style:preserve-3d}#portrait:focus-visible{outline:2px solid #b8cae2;outline-offset:5px}
html dialog.secret-shell{box-sizing:border-box;position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#0c121e;color:#e8edf5;font:15px/1.5 system-ui,sans-serif;overflow:auto;animation:secret-enter .35s ease both;color-scheme:dark}html dialog.secret-shell *{box-sizing:border-box}html .secret-shell .secret-header{position:sticky;top:0;inset-inline:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:18px 4vw;background:#0c121ef0;border-bottom:1px solid #293446;height:auto;width:100%;backdrop-filter:blur(12px)}.secret-wordmark{font:11px monospace;letter-spacing:.16em}html .secret-shell button{font:inherit;cursor:pointer;color:inherit;background:#1c2a40;border:1px solid #38495f;border-radius:5px;padding:9px 14px}html .secret-shell button:hover{background:#2c4160}html .secret-shell button:focus-visible{outline:2px solid #a8d9ff;outline-offset:3px}html .secret-shell button:disabled{cursor:default;opacity:.5}html .secret-shell .secret-body{max-width:1200px;margin:auto;padding:30px 4vw}html .secret-shell h1,html .secret-shell h2,html .secret-shell h3{font-family:inherit;line-height:1.15;letter-spacing:-.03em;color:#edf2fa;text-shadow:none}html .secret-shell h1{font-size:clamp(28px,4vw,52px);margin:0 0 16px}html .secret-shell h2{font-size:24px}html .secret-shell p{margin:8px 0 20px}html .secret-shell .secret-kicker{color:#89a8ca;font:11px monospace;letter-spacing:.12em}html .secret-shell .secret-muted{color:#97a8bd;font-size:13px}html .secret-shell .pixel-avatar{width:64px;height:64px;object-fit:cover;image-rendering:pixelated;border-radius:4px}html .secret-shell .secret-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}html .secret-shell .primary{background:#bfd6f3;color:#142034;border-color:#bfd6f3}html .secret-shell .secret-live{min-height:28px;color:#c4d9f1}html .secret-shell .secret-card{padding:24px;background:#111c2c;border:1px solid #2b3d55;border-radius:10px}html .secret-shell .chess-layout{display:grid;grid-template-columns:minmax(280px,600px) minmax(230px,1fr);gap:28px}html .secret-shell .chess-board{display:grid;grid-template-columns:repeat(8,1fr);aspect-ratio:1;touch-action:none;user-select:none;border:3px solid #36465b;border-radius:4px;overflow:hidden}html .secret-shell .square{position:relative;display:grid;place-items:center;padding:0;border:0;border-radius:0;aspect-ratio:1;font-size:clamp(24px,4vw,51px);font-family:Georgia,serif;line-height:1;background:#b9c7d5;color:#141923;text-shadow:0 1px 1px #fff6;opacity:1}html .secret-shell .square.dark{background:#536d88}html .secret-shell .square.white-piece{color:#fff;text-shadow:0 1px 2px #000,1px 0 1px #000}html .secret-shell .square.selected{box-shadow:inset 0 0 0 4px #ffe19a}html .secret-shell .square.last{background:#8da291}html .secret-shell .square.legal:after{content:'';position:absolute;width:22%;height:22%;border-radius:50%;background:#142f4c70;pointer-events:none}html .secret-shell .square.capture:after{width:88%;height:88%;border:4px solid #bedeef;background:none}html .secret-shell .square.check{background:#b95760}html .secret-shell .square small{position:absolute;left:3px;bottom:2px;font:9px monospace;color:#132139;text-shadow:none}html .secret-shell .player-row{display:flex;align-items:center;gap:12px;padding:12px 0}html .secret-shell .player-row strong{display:block}html .secret-shell .clock{margin-left:auto;padding:5px 10px;background:#263850;font:22px monospace;border-radius:3px}html .secret-shell .chess-history{height:230px;overflow:auto;font:14px/1.9 monospace;white-space:pre-wrap;border-block:1px solid #293a51;padding:12px 0}html .secret-shell .promotion{display:flex;gap:8px;padding:15px 0}html .secret-shell .quiz-wrap{max-width:740px;margin:5vh auto}html .secret-shell .quiz-progress{height:3px;background:#273348;margin:24px 0}html .secret-shell .quiz-progress span{display:block;height:100%;background:#aacdec;transition:width .3s}html .secret-shell .quiz-answers{display:grid;grid-template-columns:1fr 1fr;gap:12px}html .secret-shell .quiz-answer{text-align:left;min-height:72px;background:#142238;padding:18px}html .secret-shell .quiz-answer.correct{border-color:#70c8ab;background:#1c443c;opacity:1}html .secret-shell .quiz-answer.wrong{border-color:#d68e99;background:#492d38;opacity:1}html .secret-shell .quiz-score{font-size:80px;line-height:1;margin:30px 0;color:#c5ddfc}html .secret-shell .quiz-glitch{animation:quiz-glitch .15s steps(2) 4}html .secret-shell .boss-wrap{max-width:850px;margin:auto}html .secret-shell .boss-hud{display:flex;gap:20px;align-items:center;justify-content:space-between;font:13px monospace;margin:12px 0}html .secret-shell .boss-hud progress{width:45%;accent-color:#a28bf2}html .secret-shell .boss-canvas{display:block;background:#070e1b;width:100%;aspect-ratio:3/2;border:1px solid #3c5172;image-rendering:pixelated;touch-action:none}html .secret-shell .boss-touch{display:flex;justify-content:space-between;gap:10px;margin-top:12px;touch-action:none;user-select:none}html .secret-shell .boss-touch button{min-width:48px;min-height:48px}html .secret-shell .boss-touch div{display:flex;gap:5px}html .secret-shell .pixel-intro{text-align:center;padding:9vh 0}html .secret-shell .pixel-intro img{width:180px;height:180px;image-rendering:pixelated;animation:secret-enter .5s steps(5)}
@keyframes secret-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes quiz-glitch{0%{transform:translateX(-4px);filter:hue-rotate(60deg)}50%{transform:translateX(4px);filter:contrast(2)}100%{transform:none}}
@media(max-width:650px){html .secret-shell .chess-layout{grid-template-columns:1fr}html .secret-shell .secret-body{padding:20px 4vw}html .secret-shell .chess-history{height:120px}html .secret-shell .square{font-size:9vw}html .secret-shell .quiz-answers{grid-template-columns:1fr}.secret-wordmark{font-size:9px}html .secret-shell .secret-header button{font-size:12px}html .secret-shell .boss-touch button{padding:8px;min-width:40px}html .secret-shell .boss-hud{font-size:11px;gap:8px}}
@media(prefers-reduced-motion:reduce){#portrait{transform:none!important}html .secret-shell,html .secret-shell *{animation:none!important;transition:none!important}}
@media(min-width:651px){html .secret-shell .chess-layout{grid-template-columns:minmax(280px,min(600px,calc(100dvh - 260px))) minmax(240px,1fr)}html .secret-shell .chess-board{max-width:calc(100dvh - 260px)}html .secret-shell .chess-layout>section{width:min(600px,calc(100dvh - 260px))}html .secret-shell .square{font-size:clamp(24px,calc((100dvh - 260px)/12),51px)}}
#portrait .portrait-pixel{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:none;z-index:3;image-rendering:pixelated;animation:secret-enter .4s steps(5)}
html .secret-shell .boss-wrap h1{font:700 30px/1.1 monospace;margin-bottom:10px}html .secret-shell .boss-wrap .secret-kicker{margin-bottom:10px}html .secret-shell .boss-wrap .secret-live{margin:12px 0;font-size:13px}html .secret-shell .boss-wrap .secret-actions{margin-top:10px}html .secret-shell .secret-body:has(.boss-wrap){padding-top:16px;padding-bottom:12px}@media(min-width:651px){html .secret-shell .boss-wrap{max-width:clamp(440px,calc((100dvh - 390px)*1.5),850px)}}@media(hover:hover) and (pointer:fine){html .secret-shell .boss-touch{display:none}}
html .secret-shell .quiz-glitch{position:relative;text-shadow:3px 0 #e468bb,-3px 0 #71dfff}html .secret-shell .quiz-glitch>*{animation:secret-fracture .6s steps(6) both}html .secret-shell .quiz-glitch>:nth-child(even){animation-direction:reverse}html .secret-shell .quiz-glitch:after{content:'';position:absolute;inset:-10px;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0 12px,#0c121e 13px 17px);animation:secret-fracture .6s steps(5) both}@keyframes secret-fracture{0%,30%{transform:none;opacity:1}55%{transform:translateX(-12px) skewX(4deg)}80%{transform:translateX(16px);opacity:.6}100%{transform:translateY(16px) scaleY(.8);opacity:0}}@media(prefers-reduced-motion:reduce){html .secret-shell .quiz-glitch,html .secret-shell .quiz-glitch>*{animation:none!important;text-shadow:none}html .secret-shell .quiz-glitch:after{display:none}}
/* After-hours expansion: scoped encoder, runner and field notes. */
button.secret-counter{background:none;border:0;padding:7px 0;cursor:pointer;text-align:left}button.secret-counter:hover{color:#d1e0f0}button.secret-counter:focus-visible,.tools-secret:focus-visible{outline:1px solid #b7d4ed;outline-offset:5px}.tools-secret{cursor:pointer;touch-action:manipulation;user-select:none}
html .secret-shell .quiz-wrap h2{margin:0 0 28px;line-height:1.3}html .secret-shell .quiz-answers{gap:16px;margin-bottom:24px}html .secret-shell .quiz-answer{padding:20px 22px;line-height:1.45}html .secret-shell .quiz-wrap .secret-live{margin:20px 0}
html .runner-shell .secret-body{max-width:1160px;padding-top:24px}html .secret-shell .encoder-window{background:#202124;border:1px solid #43464c;border-radius:6px;overflow:hidden;box-shadow:0 25px 80px #0005;font:13px/1.5 system-ui,sans-serif}html .secret-shell .encoder-top{display:flex;align-items:center;gap:12px;background:#292b30;padding:12px 18px;letter-spacing:.09em;font-size:11px}html .secret-shell .encoder-icon{background:#211844;border:1px solid #806bba;color:#cdbef3;font:bold 11px monospace;padding:4px}html .secret-shell .encoder-version{margin-left:auto;color:#9b9fa9;font:10px monospace}html .secret-shell .encoder-tabs{display:flex;gap:25px;padding:12px 20px;border-bottom:1px solid #45474c;color:#999da5;font-size:12px}html .secret-shell .encoder-tabs .selected{color:#f1f3f7;border-bottom:2px solid #9dc7ee;padding-bottom:7px}html .secret-shell .encoder-file{display:flex;align-items:center;gap:16px;padding:20px;border-bottom:1px solid #404247;background:#25272c}html .secret-shell .encoder-file strong{font-size:14px;overflow-wrap:anywhere}html .secret-shell .encoder-file .secret-muted{margin:4px 0 0;font-size:11px}html .secret-shell .encoder-file-icon{font-size:28px;color:#abbedb}html .secret-shell .encoder-state{margin-left:auto;color:#adb6c4;font:10px monospace;border:1px solid #59616b;padding:5px 10px;white-space:nowrap}html .secret-shell .encoder-state.encoding{color:#a7d7f7;border-color:#5284ac}html .secret-shell .encoder-state.complete{color:#9fd6ba;border-color:#497963}html .secret-shell .encoder-state.failed{color:#f3a5b4;border-color:#b56877}html .secret-shell .encoder-content{padding:22px}html .secret-shell .encoder-intro{text-align:center;padding:24px 12px 12px}html .secret-shell .encoder-intro h1{font-size:clamp(26px,4vw,42px);margin:20px 0 14px}html .secret-shell .encoder-eta{font:clamp(38px,7vw,76px)/1 monospace;letter-spacing:-.05em;color:#d4d4e4}html .secret-shell .encoder-intro .secret-muted{max-width:480px;margin:0 auto 25px;line-height:1.7}html .secret-shell .runner-instructions{color:#9da9ba;font:11px/1.6 monospace;margin:16px 0 0}html .secret-shell .runner-progress{display:flex;align-items:center;gap:16px;margin-bottom:14px;font:12px monospace;color:#b7d9ee}html .secret-shell .runner-progress progress{width:100%;height:7px;accent-color:#96c5df}html .secret-shell .runner-canvas{display:block;width:100%;height:auto;background:#0c1423;border:1px solid #41536b;image-rendering:pixelated;touch-action:manipulation}html .secret-shell .runner-canvas:focus-visible{outline:1px solid #8ab4df;outline-offset:2px}html .secret-shell .runner-meta{margin-top:14px;color:#a7bed5;font:11px monospace;letter-spacing:.05em}html .secret-shell .runner-touch{display:flex;gap:12px;margin-top:16px;touch-action:manipulation}html .secret-shell .runner-touch button{flex:1;min-height:46px;user-select:none;touch-action:none}html .secret-shell .runner-shell .secret-live{font-size:13px}html .secret-shell .encoder-result{padding:20px;max-width:640px;margin:auto}html .secret-shell .encoder-result h1{font-size:36px;margin-bottom:20px}html .secret-shell .export-result-icon{font:34px monospace;color:#a5d6bc;margin-bottom:15px}html .secret-shell .export-details{display:grid;grid-template-columns:120px 1fr;gap:12px;border-block:1px solid #464951;padding:20px 0;margin:24px 0;color:#b9c1ce}html .secret-shell .export-details dt{color:#959eaa}html .secret-shell .export-details dd{margin:0}html .secret-shell .encoder-result .secret-actions{margin-top:28px}
html .secret-shell .secret-map{max-width:900px;margin:20px auto 40px}html .secret-shell .secret-map h1{max-width:680px;font-size:clamp(32px,5vw,60px);line-height:1.05}html .secret-shell .map-intro{color:#9aaec5;max-width:580px;line-height:1.8;margin:24px 0 44px}html .secret-shell .map-trail{display:grid;grid-template-columns:1fr 1fr;gap:24px;position:relative}html .secret-shell .map-note{position:relative;background:linear-gradient(145deg,#18283c,#111c2b);border:1px solid #34475e;padding:30px 25px 24px;border-radius:3px}html .secret-shell .map-note:nth-child(even){transform:translateY(26px)}html .secret-shell .map-node{position:absolute;right:18px;top:12px;font:36px monospace;color:#b9cce31c}html .secret-shell .map-note .secret-kicker{position:relative;font-size:10px;letter-spacing:.13em;margin:0 0 22px}html .secret-shell .map-note h2{font-size:21px;line-height:1.45;font-weight:450;margin:0 0 24px;max-width:320px}html .secret-shell .map-hint{border-top:1px dashed #41546d;padding-top:14px;color:#9cb5d1;font-size:12px}html .secret-shell .map-hint summary{cursor:pointer}html .secret-shell .map-hint p{margin:14px 0 0;color:#d1dfed;line-height:1.7}html .secret-shell .map-footnote{font:11px/1.8 monospace;color:#8499b3;margin:64px 0 24px}
@media(hover:hover) and (pointer:fine){html .secret-shell .runner-touch{display:none}}@media(max-width:650px){html .secret-shell .encoder-version{display:none}html .runner-shell .secret-body{padding:16px 10px}html .secret-shell .encoder-content{padding:16px 12px}html .secret-shell .encoder-file{gap:10px;padding:14px 12px;flex-wrap:wrap}html .secret-shell .encoder-file>div{flex:1;min-width:200px}html .secret-shell .encoder-file-icon{display:none}html .secret-shell .encoder-file strong{font-size:12px}html .secret-shell .encoder-tabs{padding-inline:12px;gap:16px;font-size:11px}html .secret-shell .encoder-result{padding:12px 0}html .secret-shell .export-details{grid-template-columns:90px 1fr;font-size:12px}html .secret-shell .runner-canvas{height:auto}html .secret-shell .map-trail{grid-template-columns:1fr;gap:16px}html .secret-shell .map-note:nth-child(even){transform:none}html .secret-shell .map-footnote{margin-top:32px}html .secret-shell .quiz-wrap h2{margin-bottom:24px}html .secret-shell .quiz-answer{padding:18px}}
html .runner-shell .encoder-window:has(.runner-canvas){max-width:clamp(520px,calc((100dvh - 454px)*2.742857),1060px);margin-inline:auto}html .runner-shell .encoder-window:has(.runner-canvas) .encoder-tabs,html .runner-shell .encoder-window:has(.runner-canvas) .encoder-file{display:none}html .runner-shell .encoder-window:has(.runner-canvas) .encoder-content{padding:16px}html .runner-shell .encoder-window:has(.runner-canvas) .secret-actions{margin-top:10px}html .runner-shell .encoder-window:has(.runner-canvas) .secret-live{font-size:12px;margin:8px 0}html .runner-shell .encoder-window:has(.runner-canvas) .runner-instructions{margin-top:10px}@media(max-width:650px){html .runner-shell .encoder-window:has(.runner-canvas){max-width:100%}}
/* Channel 03 is invisible until the number is tapped twice. */
#penalty-secret{appearance:none;border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;padding:0;margin:0;cursor:pointer}
#penalty-secret:focus-visible{outline:1px solid currentColor;outline-offset:4px}
html .penalty-shell .secret-body{position:relative;background:#080e19;min-height:calc(100dvh - 80px)}
html .penalty-wrap{max-width:900px;margin:auto;padding:24px 24px 32px;text-align:center;font-family:monospace}
html .penalty-heading h1{font-family:monospace;font-size:clamp(24px,4vw,42px);letter-spacing:-.04em;margin:8px 0;color:#f4edd6}
html .penalty-heading p{margin:8px 0;color:#a9bdd0;font-size:13px}
html .penalty-score{padding:13px;background:#13233b;border:1px solid #355379;color:#f8e6a6;font:bold 14px monospace;margin:18px 0 0;white-space:pre-wrap}
html .penalty-screen{overflow:hidden;border:6px solid #27364b;border-radius:12px;background:#101c38;box-shadow:0 0 0 2px #070b12,inset 0 0 30px #000;margin-top:10px}
html .penalty-screen canvas{display:block;width:100%;height:auto;image-rendering:pixelated}
html .penalty-status{font:bold 14px/1.5 monospace;color:#f6e7b8;min-height:42px;margin:17px 0 10px}
html .penalty-controls{display:grid;grid-template-areas:'tl mid tr' 'bl mid br';grid-template-columns:1fr 1fr 1fr;gap:8px;max-width:590px;margin:0 auto 14px}
html .penalty-controls button{font:13px monospace;min-height:43px;padding:10px;background:#173253;border:1px solid #497ab2;color:#fff;border-radius:3px;cursor:pointer}
html .penalty-controls button:hover:not(:disabled),html .penalty-controls button:focus-visible{background:#255fb1;outline:2px solid #fae59e;outline-offset:2px}
html .penalty-controls button:disabled{opacity:.42;cursor:default}
html .penalty-wrap [hidden]{display:none!important}
html .penalty-help{font:11px/1.6 monospace;color:#8097b4;margin:16px auto 0;max-width:550px}
html .penalty-tune{position:fixed;inset:80px 0 0;z-index:5;display:flex;flex-direction:column;justify-content:center;gap:18px;padding:10vw;background:repeating-linear-gradient(0deg,#162329dc 0 2px,#5f716166 2px 3px,#0e131ded 3px 6px);color:#ddf3cd;font:14px monospace;pointer-events:none;animation:channel-static .28s steps(3) infinite}
html .penalty-tune strong{font:bold clamp(24px,5vw,60px) monospace;text-shadow:2px 0 #5463a5,-2px 0 #77925c}
html .penalty-shell.is-tuning .penalty-wrap{animation:channel-zoom 1.25s steps(2) both}
@keyframes channel-zoom{0%,42%,78%{transform:scale(1.025);filter:brightness(.5)}20%,60%,90%{transform:scale(.985);filter:brightness(1.25)}100%{transform:none;filter:none}}
@keyframes channel-static{0%{background-position:0 0;opacity:.96}50%{background-position:17px 9px;opacity:.83}100%{background-position:-8px -13px;opacity:.96}}
@media(max-width:600px){html .penalty-wrap{padding:20px 10px}html .penalty-score{font-size:12px}html .penalty-controls{gap:6px}html .penalty-controls button{font-size:11px;padding:10px 4px}html .penalty-screen{border-width:3px}}
@media(prefers-reduced-motion:reduce){html .penalty-tune,html .penalty-shell.is-tuning .penalty-wrap{animation:none}html .penalty-tune{background:#0c1522;opacity:.95}}
html .penalty-shell .secret-body{padding:0;max-width:none}
html .penalty-shell .penalty-heading h1{font-size:clamp(24px,4vw,38px);margin:6px 0}
html .penalty-shell .penalty-heading p{margin:6px 0}
html .penalty-shell .penalty-status{margin:12px 0 8px}
html .penalty-shell .penalty-screen{max-width:min(100%,max(320px,calc((100dvh - 515px)*2)));margin:10px auto 0}
html .penalty-shell .penalty-help{margin:10px auto 0}
