@font-face{font-family:'DM Sans';src:url('/fonts/dm-sans-latin.woff2') format('woff2');font-style:normal;font-weight:400 800;font-display:swap}
@font-face{font-family:Outfit;src:url('/fonts/outfit-latin.woff2') format('woff2');font-style:normal;font-weight:500 900;font-display:swap}
:root{--ink:#253348;--paper:#f8efd0;--white:#fffdf3;--yellow:#ffcf42;--red:#e96345;--blue:#b8e5fc;--green:#d0eaa5;--muted:#59677a;font-family:'DM Sans',system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:340px}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:var(--ink)}a{color:inherit;text-decoration:none}button:disabled{opacity:.35;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #2668c9;outline-offset:4px}button{transition:transform .13s,box-shadow .13s,background .13s}button:active:not(:disabled){transform:translate(2px,2px)!important;box-shadow:none!important}button:hover:not(:disabled){background:#ffe48c}.shell{width:min(1440px,calc(100% - 64px));margin:auto}.site-header{height:75px;display:flex;align-items:center;gap:22px}.brand{display:flex;align-items:center;gap:11px;font:850 32px/1 Outfit,system-ui,sans-serif;letter-spacing:-1.4px}.brand-accent{color:var(--red)}.brand-mark{position:relative;width:36px;height:36px;display:block;border:2.5px solid var(--ink);border-radius:8px;background:var(--yellow);box-shadow:3px 3px 0 var(--ink);transform:rotate(-7deg)}.brand-mark:before{content:"";position:absolute;left:9px;top:7px;width:15px;height:17px;border:2.5px solid var(--ink);border-bottom:0;border-radius:1px}.brand-mark:after{content:"";position:absolute;left:17px;top:15px;width:7px;height:9px;border:2.5px solid var(--ink);border-right:0}.brand-mark i{position:absolute;left:5px;bottom:3px;width:10px;height:10px;border:2px solid var(--ink);border-radius:2px;background:var(--red);z-index:1}.header-caption{padding-left:19px;border-left:2px solid #d2c9b0;font-size:12px;font-weight:600;color:#675e4b}.header-actions{margin-left:auto;display:flex;align-items:center;gap:14px}.icon-button{display:inline-grid;place-items:center;width:35px;height:35px;border:2px solid var(--ink);border-radius:8px;background:var(--white);box-shadow:2px 2px 0 var(--ink);font:700 20px/1 Outfit,sans-serif;flex-shrink:0}.icon-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}.icon-button:disabled{box-shadow:none}.quiet-button{border:0;background:transparent;padding:7px 0;font-size:13px;font-weight:650}.quiet-button:hover:not(:disabled){background:transparent;color:#be4630}.help-button{padding:6px 0;border-bottom:2px solid var(--ink);border-radius:0}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 0 21px}.intro h1{font:800 clamp(28px,2.8vw,37px)/1.12 Outfit,sans-serif;letter-spacing:-1.2px;margin:0}.intro h1>span{color:var(--red)}.intro p{font-size:12px;font-weight:550;margin:8px 0 0;color:var(--muted)}.gallery-button{display:flex;align-items:center;gap:13px;text-align:left;border:2.5px solid var(--ink);border-radius:10px;padding:10px 15px;background:var(--yellow);box-shadow:4px 4px 0 var(--ink);font:750 16px/1.2 Outfit,sans-serif}.gallery-button svg{width:23px;height:23px;stroke:currentColor;stroke-width:1.7;fill:none}.gallery-button small{font:550 10px/1.2 'DM Sans',sans-serif;display:block;margin-top:4px}.arrow{font-size:23px;margin-left:15px}.game-layout{width:min(100%,calc((100dvh - 342px)*1.6 + 282px));min-width:min(100%,900px);margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:22px;align-items:start}.game-panel{border:3px solid var(--ink);border-radius:17px;background:var(--white);box-shadow:6px 6px 0 var(--ink);overflow:hidden}.game-toolbar{display:flex;justify-content:space-between;align-items:center;padding:12px 19px;gap:12px;min-height:67px}.level-heading{display:flex;align-items:center;gap:13px}.level-number{display:grid;place-items:center;width:37px;height:37px;border:2px solid var(--ink);border-radius:7px;background:var(--yellow);font:800 20px/1 Outfit,sans-serif;transform:rotate(-4deg);flex-shrink:0}.eyebrow{font-size:10px;letter-spacing:1.2px;font-weight:800;color:#ac4932}.compact{font-size:9px;letter-spacing:1px;color:var(--muted)}.level-heading h2{font:750 20px/1.1 Outfit,sans-serif;letter-spacing:-.3px;margin:3px 0 0}.toolbar-actions{display:flex;align-items:center;gap:9px}.toolbar-actions .icon-button{width:31px;height:31px;border-radius:7px;font-size:18px}#restart{margin-right:5px;background:#ffecd0}.stats-strip{display:flex;align-items:center;gap:36px;padding:10px 20px 12px;border-top:2px solid var(--ink);border-bottom:2px solid var(--ink);background:#fff2cd;min-height:74px}.stat-label{display:block;font-size:8px;font-weight:800;letter-spacing:1.1px;margin-bottom:5px;color:#59616a}.timer-stat>div{display:flex;align-items:center;gap:10px}#timer{font:700 28px/1 Outfit,sans-serif;letter-spacing:-.5px;font-variant-numeric:tabular-nums;white-space:nowrap}#timer span{font-size:19px;color:#6b7480}.timer-dot{width:7px;height:7px;border:1.5px solid var(--ink);background:#bdbab0;border-radius:50%}.timer-dot.active{background:#60b982;animation:pulse 1.5s infinite}.stat-value{font:650 22px/1 Outfit,sans-serif;font-variant-numeric:tabular-nums}.map-indicator{margin-left:auto;min-width:78px;text-align:right}.map-indicator>span{display:flex;gap:3px;margin-bottom:7px}.map-indicator i{width:6px;height:9px;border-radius:1px;background:#d8cda9}.map-indicator i.current{background:var(--red)}.map-indicator i.done{background:#75ad79}.map-indicator small{font-size:8px;font-weight:700;letter-spacing:1px}.board-wrap{line-height:0;position:relative;background:#b8d9a2;overflow:hidden}canvas#board{display:block;width:100%;height:auto;aspect-ratio:8/5;touch-action:none;user-select:none}.board-message{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);line-height:1.5;white-space:nowrap;display:flex;align-items:center;gap:18px;padding:11px 13px 11px 17px;background:#fff4d9;border:2.5px solid var(--ink);border-radius:10px;box-shadow:4px 4px 0 var(--ink);font-size:12px;font-weight:650}.board-message button{border:2px solid var(--ink);border-radius:6px;box-shadow:2px 2px 0 var(--ink);background:var(--yellow);font-size:11px;font-weight:800;padding:7px 11px}.board-message button span{margin-left:6px}.game-footer{min-height:43px;padding:11px 17px;border-top:2px solid var(--ink);display:flex;align-items:center;justify-content:space-between;gap:15px;background:var(--white)}.status-copy{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:600}.status-dot{width:7px;height:7px;flex-shrink:0;border:1.5px solid var(--ink);background:var(--yellow);border-radius:50%}.status-copy.running .status-dot{background:#72ba7b}.status-copy.failed{color:#af3e2b}.status-copy.failed .status-dot{background:var(--red)}.keyboard-hint{font-size:9px;white-space:nowrap;color:var(--muted)}kbd{border:1.5px solid var(--ink);border-radius:4px;background:#fff1c7;padding:2px 4px;font:700 9px 'DM Sans',sans-serif;margin-right:3px}.panel{background:var(--white);border:3px solid var(--ink);border-radius:15px;box-shadow:5px 5px 0 var(--ink)}.leaderboard{padding:20px 19px 0}.aside-title{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:20px}.aside-title h2{font:750 23px/1.05 Outfit,sans-serif;letter-spacing:-.6px;margin:7px 0 0;white-space:nowrap}.aside-title .compact{font-size:8px}.trophy-icon{width:34px;height:34px;flex-shrink:0}.leaderboard-columns{display:flex;justify-content:space-between;padding-bottom:8px;border-bottom:2px solid var(--ink);font-size:8px;font-weight:800;letter-spacing:1px;color:var(--muted)}#leaderboard{list-style:none;padding:0;margin:0}#leaderboard li{display:flex;align-items:center;gap:9px;min-height:49px;border-bottom:1px solid #e1dece;font-size:12px;font-weight:600}#leaderboard li:last-child{border-bottom:0}.rank{font:700 12px/1 Outfit,sans-serif;width:16px;color:#7a7e7e}.leader-name{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:107px}.leader-time{margin-left:auto;font:650 13px/1 Outfit,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap}.first-place{background:#fff0b6;margin:5px -8px 0;padding:0 8px;border-radius:6px}.first-place .rank{color:#aa5227}.leader-empty{color:#8a8b86;font-size:11px;font-weight:500}.leaderboard-note{font-size:10px;line-height:1.6;color:var(--muted);margin:10px 0 17px}.leaderboard-foot{border-top:1px solid #dedac9;margin:0 -19px;padding:11px 10px;background:#f3edda;border-radius:0 0 12px 12px;font-size:9px;text-align:center;color:#696c69}.rules-note{padding:23px 8px 0 11px}.rules-note h3{font:750 18px/1.2 Outfit,sans-serif;margin:0 0 13px}.rules-note ol{list-style:none;counter-reset:rules;margin:0;padding:0}.rules-note li{counter-increment:rules;position:relative;font-size:11px;line-height:1.7;padding:0 0 10px 28px;font-weight:550}.rules-note li:before{content:counter(rules);position:absolute;left:0;top:0;display:grid;place-items:center;width:19px;height:19px;border:1.5px solid var(--ink);border-radius:50%;background:var(--yellow);font:700 11px Outfit,sans-serif}.rules-note li:nth-child(2):before{background:#ffc8bf}.rules-note li:nth-child(3):before{background:#bfe4f9}.rules-note p{border-top:1px solid #d7cdb0;padding-top:11px;margin:1px 0 0;font-size:10px;color:#756c58}.route-footer{display:flex;align-items:center;justify-content:space-between;width:min(100%,calc((100dvh - 342px)*1.6 + 282px));min-width:min(100%,900px);margin:0 auto;padding:16px 4px 8px;color:#776d55;font-size:10px}.route-footer button{border:0;background:transparent;padding:3px 0;font-size:11px;font-weight:700}.route-footer button:hover{background:transparent;color:#be4630}.route-footer button span{margin-left:9px}.site-footer{display:flex;justify-content:space-between;align-items:center;padding:16px 2px 17px;color:#8a7d60;font-size:9px}.site-footer>span:first-child{font:700 13px Outfit,sans-serif;color:#75664d}dialog{max-width:calc(100vw - 32px);background:var(--white);color:var(--ink);border:3px solid var(--ink);border-radius:20px;padding:29px;box-shadow:8px 8px 0 var(--ink)}dialog::backdrop{background:#fff5d4d9}.wide-dialog{width:1140px;max-height:90dvh}.dialog-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}dialog h2{font:800 32px/1.1 Outfit,sans-serif;letter-spacing:-.9px;margin:9px 0 10px}dialog p{color:var(--muted);font-size:12px;line-height:1.6;margin:0}.gallery-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.level-card{position:relative;overflow:hidden;border:2.5px solid var(--ink);border-radius:11px;padding:0;background:#ffdf84;text-align:left;box-shadow:3px 3px 0 var(--ink)}.level-card:nth-child(4n+2){background:#bfe4f9}.level-card:nth-child(4n+3){background:#ffc8bf}.level-card:nth-child(4n+4){background:#d5ebad}.level-card:hover:not(:disabled){transform:translate(-1px,-2px);box-shadow:5px 5px 0 var(--ink);background:#fff5d0}.level-card.selected{outline:3px solid var(--red);outline-offset:3px}.level-card canvas{display:block;width:100%;height:auto;aspect-ratio:8/5;border-bottom:2px solid var(--ink)}.card-info{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 14px 9px}.card-meta{font-size:8px;letter-spacing:1px;font-weight:800;color:#596471}.card-info h3{font:750 18px/1.2 Outfit,sans-serif;letter-spacing:-.3px;margin:5px 0 0}.card-best{font:700 15px Outfit,sans-serif;white-space:nowrap}.card-description{padding:0 14px 14px;min-height:48px;font-size:10px;color:#4c5864}.card-complete{position:absolute;top:9px;right:9px;padding:3px 7px;border:1.5px solid var(--ink);border-radius:5px;background:var(--white);font-size:9px;font-weight:700}.result-dialog{width:430px;text-align:center;position:relative;padding:34px 31px 25px}.floating-close{position:absolute;top:13px;right:13px;width:29px;height:29px;box-shadow:none;font-size:16px}.result-emblem{display:grid;place-items:center;margin:0 auto 22px;width:63px;height:63px;border:3px solid var(--ink);border-radius:15px;background:var(--yellow);box-shadow:4px 4px 0 var(--ink);transform:rotate(-7deg);font:850 35px Outfit,sans-serif}.result-dialog .eyebrow{font-size:9px}.result-dialog h2{font-size:31px;margin:12px 0}.result-time{font:750 56px/1.2 Outfit,sans-serif;letter-spacing:-1.7px;font-variant-numeric:tabular-nums}.result-time span{font-size:30px;color:#6b7480}#result-caption{margin:14px 0 23px;font-size:12px;min-height:38px}#score-form{text-align:left}#score-form label{font-size:9px;letter-spacing:1px;font-weight:800;color:#5d6875}.name-input-wrap{display:flex;align-items:center;gap:4px;padding:4px;border:2px solid var(--ink);border-radius:9px;background:#fff;margin-top:8px}.name-input-wrap input{width:100%;min-width:0;border:0;background:transparent;padding:10px;font-size:14px;color:var(--ink)}.name-input-wrap input::placeholder{font-size:13px;color:#8b929a}.name-input-wrap button{border:2px solid var(--ink);border-radius:5px;background:var(--yellow);font-size:23px;width:40px;height:39px;flex-shrink:0}.form-error{font-size:11px!important;color:#b13b2b!important;margin:6px 0 0!important;min-height:14px}.saved-result{border:2px solid var(--ink);border-radius:8px;background:var(--green);padding:12px;font-size:12px;font-weight:650;margin:15px 0}.result-actions{display:flex;flex-direction:column;gap:9px;margin-top:19px}.primary-button{display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--yellow);border:2.5px solid var(--ink);border-radius:9px;padding:14px 17px;box-shadow:4px 4px 0 var(--ink);font:750 17px/1.1 Outfit,sans-serif}.primary-button:hover{box-shadow:2px 2px 0 var(--ink);transform:translate(2px,2px)}.primary-button span{font-size:23px}.result-actions .quiet-button{margin-top:6px}.result-gallery{font-size:11px;color:var(--muted);margin-top:7px}.help-dialog{width:550px}.help-dialog h2{font-size:29px}.help-steps{list-style:none;padding:0;margin:0 0 26px}.help-steps li{display:flex;gap:17px;margin:23px 0}.help-steps li>span{display:grid;place-items:center;width:29px;height:29px;flex-shrink:0;border:2px solid var(--ink);border-radius:50%;background:var(--yellow);font:750 18px Outfit,sans-serif}.help-steps li:nth-child(2)>span{background:#bfe4f9}.help-steps li:nth-child(3)>span{background:#d5ebad}.help-steps h3{font:750 19px/1.1 Outfit,sans-serif;margin:3px 0 8px}.help-steps p{font-size:12px;line-height:1.7}.help-dialog>.primary-button{width:100%}.help-footnote{text-align:center;font-size:10px!important;margin-top:21px!important;line-height:1.7!important}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);border:2px solid var(--ink);border-radius:8px;background:var(--yellow);padding:12px 19px;box-shadow:4px 4px 0 var(--ink);font-size:12px;font-weight:700;z-index:20}[hidden]{display:none!important}@keyframes pulse{50%{opacity:.5}}@media(min-height:1000px) and (min-width:1000px){.intro{padding-top:24px;padding-bottom:26px}.intro h1{font-size:40px}.game-layout,.route-footer{width:min(100%,calc((100dvh - 370px)*1.6 + 282px))}}@media(max-width:1100px){.shell{width:calc(100% - 40px)}.game-layout{grid-template-columns:minmax(0,1fr) 240px;gap:18px}.stats-strip{gap:25px}.leaderboard{padding:20px 15px 0}.leaderboard-foot{margin-left:-15px;margin-right:-15px}.leader-name{max-width:91px}.aside-title h2{font-size:22px}.aside-title .trophy-icon{width:29px}.map-indicator{display:none}.level-heading h2{font-size:18px}.game-toolbar{padding:12px 15px}.stats-strip{padding:11px 16px}.game-footer{padding:10px 13px;font-size:10px}}@media(max-width:850px){.shell{width:calc(100% - 28px)}.site-header{height:72px}.header-caption{display:none}.game-layout{grid-template-columns:1fr;width:100%;min-width:0}.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start;margin-top:5px}.leaderboard{padding:19px 20px 0}.leaderboard-foot{margin-left:-20px;margin-right:-20px}.leader-name{max-width:150px}#leaderboard li{min-height:43px}.rules-note{padding:10px 12px}.rules-note h3{font-size:22px}.rules-note li{font-size:12px;margin-bottom:7px}.map-indicator{display:block}.route-footer{width:100%;min-width:0;padding-top:18px}.gallery-grid{grid-template-columns:repeat(2,1fr)}.game-toolbar{padding:14px 18px}.level-heading h2{font-size:21px}.stats-strip{gap:40px}.intro{padding:13px 0 23px}.intro h1{font-size:32px}.gallery-button{padding:10px 13px;font-size:15px}.gallery-button .arrow{display:none}}@media(max-width:520px){.site-header{height:68px}.brand{font-size:28px;gap:10px}.brand-mark{width:33px;height:34px}.header-actions{gap:13px}.help-button{font-size:10px}.header-actions .icon-button{width:30px;height:30px;box-shadow:2px 2px 0 var(--ink)}.intro{gap:12px;align-items:center;padding:15px 0 23px}.intro h1{font-size:27px;letter-spacing:-.7px;max-width:200px}.intro p{font-size:10px;max-width:180px}.gallery-button{font-size:13px;gap:8px;padding:10px;min-height:50px;white-space:nowrap}.gallery-button svg{width:18px;height:18px}.gallery-button small{display:none}.game-panel{border-width:2.5px;border-radius:13px;box-shadow:4px 4px 0 var(--ink)}.game-toolbar{padding:11px 12px;min-height:61px}.level-heading{gap:10px}.level-number{width:30px;height:32px;font-size:18px}.level-heading h2{font-size:17px}.eyebrow.compact{font-size:8px}.toolbar-actions{gap:6px}.toolbar-actions .icon-button{width:27px;height:28px;font-size:16px}#restart{margin-right:3px}.stats-strip{padding:11px 14px;gap:25px;min-height:69px}.stat-label{font-size:7px;letter-spacing:.7px}#timer{font-size:26px}#timer span{font-size:17px}.stat-value{font-size:21px}.map-indicator{display:none}.game-footer{padding:11px 12px;min-height:45px}.status-copy{font-size:9px;gap:7px}.keyboard-hint{display:none}.sidebar{grid-template-columns:1fr;gap:14px}.rules-note{padding:10px 5px 0;display:none}.leaderboard{margin-top:4px}.leader-name{max-width:190px}.leaderboard-note{margin-bottom:15px}.board-message{gap:8px;padding:9px 10px;min-width:89%;white-space:normal;bottom:14px;font-size:10px;line-height:1.5}.board-message button{font-size:9px;white-space:nowrap;padding:7px 8px}.board-message button span{display:none}.route-footer{font-size:9px;gap:15px}.route-footer button{font-size:10px}.site-footer{padding-bottom:20px}.wide-dialog{padding:24px 17px}.dialog-top{gap:10px}dialog h2{font-size:27px}.dialog-top p{font-size:11px}.gallery-grid{gap:13px}.card-info{padding:10px;gap:6px}.card-meta{font-size:7px;letter-spacing:.6px}.card-info h3{font-size:15px}.card-best{font-size:11px}.card-description{padding:0 10px 10px;font-size:9px;min-height:50px}.card-complete{font-size:7px;padding:2px 5px;right:6px;top:6px}.result-dialog{padding:34px 24px 23px}.result-time{font-size:50px}.help-dialog{padding:26px 21px}.help-dialog h2{font-size:24px}.help-steps{margin-bottom:23px}.help-steps li{gap:13px}.help-steps h3{font-size:17px}.help-steps p{font-size:11px}.help-steps li>span{width:25px;height:25px;font-size:16px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
