@charset "UTF-8";
:root{--sky:#78d5f4;--paper:#fff9e9;--surface:#fffefa;--ink:#172c42;--muted:#45586b;--line:#172c42;--yellow:#ffe354;--coral:#ff7066;--mint:#b4f0d4;--green:#27845c;--accent:#ff7066;--accent-dark:#172c42;--radius:12px;color:var(--ink);background:var(--sky);font-family:"Arial Rounded MT Bold","Trebuchet MS",Arial,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}body{margin:0;min-width:320px;background-image:radial-gradient(#172c421a 1.3px,transparent 1.3px);background-size:20px 20px}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer;touch-action:manipulation}button:disabled{cursor:default}button[hidden],[hidden]{display:none!important}a{color:inherit}button:focus-visible,a:focus-visible,textarea:focus-visible,.result:focus-visible{outline:3px solid var(--ink);outline-offset:4px;box-shadow:0 0 0 7px var(--yellow)}svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
/* Keep the puzzle at the center of the page, with a playful ink-and-paper frame. */
.site-shell{width:100%;max-width:620px;margin:auto;padding:0 20px}.site-header{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:88px}.wordmark{display:inline-flex;align-items:center;gap:9px;text-decoration:none;text-transform:uppercase;font-size:36px;font-weight:1000;letter-spacing:-1.8px;line-height:1;transform:rotate(-2deg);text-shadow:2px 2px 0 var(--paper)}.wordmark>svg,.header-car{width:45px;height:45px;flex:none;filter:drop-shadow(2px 2px 0 #172c4226)}.header-car{display:grid;place-items:center;transform:rotate(90deg)}.header-car svg{width:100%;height:100%}.wordmark-dot{color:var(--coral);margin-left:-8px}.site-header nav{display:flex;align-items:center;gap:10px}.text-button,.help-button{min-height:44px;background:var(--paper);border:2px solid var(--ink);border-radius:10px;box-shadow:2px 2px 0 var(--ink);font-size:12px;font-weight:800;padding:8px 12px}.help-button{width:44px;padding:0;font-size:24px;background:var(--yellow);transform:rotate(5deg)}.text-button:hover,.help-button:hover{background:var(--yellow)}.text-button:active,.help-button:active{box-shadow:none;translate:2px 2px}.main-layout{display:grid;gap:18px;padding-bottom:22px}.intro{text-align:center}.eyebrow{font-size:10px;line-height:1.3;font-weight:900;letter-spacing:1.2px}.intro .eyebrow,.game-tag{display:inline-flex;justify-content:center;align-items:center;gap:6px;font-size:10px;font-weight:900;letter-spacing:1.2px}.live-dot{width:7px;height:7px;background:var(--coral);border:1.5px solid var(--ink);border-radius:50%}h1{font-size:30px;line-height:1.15;letter-spacing:-1.2px;font-weight:1000;margin:6px 0}h1 em{color:inherit;font-style:normal}.title-spark{display:inline-block;color:var(--coral);font-size:1.15em;-webkit-text-stroke:1px var(--ink)}.intro-copy{font-size:13px;line-height:1.4;margin:4px 0 0;font-weight:600}.mobile-rules{font-size:12px;margin:6px 0 0;line-height:1.4}.rule-card,.dispatch-note,.intro-footer{display:none}.game-panel{min-width:0;background:var(--paper);border:3px solid var(--ink);border-radius:20px;padding:20px;box-shadow:7px 7px 0 var(--ink)}.dispatch-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.dispatch-heading .eyebrow{font-size:9px;letter-spacing:.9px}.dispatch-heading p{margin:3px 0 0;font-size:16px;font-weight:900;line-height:1.2}.edition{flex:none;border:2px solid var(--ink);border-radius:7px;padding:6px 8px;background:var(--yellow);font-size:11px;font-weight:900;transform:rotate(3deg)}
.board-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:14px}.board-tab{position:relative;min-height:44px;padding:8px 10px;background:var(--surface);border:2px solid var(--ink);border-radius:9px;box-shadow:0 3px 0 var(--ink);display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;font-weight:900}.board-tab.active{background:var(--ink);color:var(--paper);box-shadow:0 3px 0 var(--coral)}.board-tab:not(:disabled):not(.active):hover{background:var(--yellow)}.board-tab:focus-visible{outline-offset:3px}.board-tab:disabled:not(.active){opacity:.65}.tab-score{font-size:11px;white-space:nowrap;font-variant-numeric:tabular-nums}.tab-empty{width:8px;height:8px;border:2px solid currentColor;border-radius:50%;flex:none}.route-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;min-height:42px}.route-kicker{font-size:9px;font-weight:900;letter-spacing:1px;color:var(--muted)}h2{font-size:25px;font-weight:1000;line-height:1.1;letter-spacing:-.8px;margin:3px 0 0}.parcel-counter{display:flex;align-items:center;gap:7px;flex:none}.parcel-counter>svg{width:31px;height:31px;stroke-width:2.2;color:var(--ink);fill:var(--yellow)}.parcel-counter strong{font-size:20px;letter-spacing:-.5px;font-weight:1000;font-variant-numeric:tabular-nums}.parcel-counter small{display:block;font-size:8px;font-weight:900;letter-spacing:.3px;line-height:1.4;margin-top:1px;color:var(--muted)}
/* Tile arrows stay above the dotted route; the car is a short-lived reveal layer. */
.map-frame{position:relative;isolation:isolate;margin-left:16px;padding:9px;background:var(--mint);border:3px solid var(--ink);border-radius:12px;box-shadow:0 4px 0 var(--ink)}.column-labels{position:absolute;top:-19px;left:9px;right:9px;display:grid;grid-template-columns:repeat(var(--grid-size,5),1fr);text-align:center;font-size:9px;font-weight:900;line-height:12px;color:var(--muted)}.row-labels{position:absolute;left:-17px;top:9px;bottom:9px;display:grid;grid-template-rows:repeat(var(--grid-size,5),1fr);align-items:center;font-size:9px;font-weight:900;color:var(--muted)}.board{display:grid;grid-template-columns:repeat(var(--grid-size,5),minmax(0,1fr));gap:6px;aspect-ratio:1;position:relative}.tile{position:relative;display:grid;place-items:center;min-width:0;aspect-ratio:1;padding:0;border:2.5px solid var(--ink);border-radius:8px;background:var(--surface);box-shadow:0 3px 0 var(--ink);color:var(--ink);transition:background .14s ease,translate .14s ease,box-shadow .14s ease}.tile:not(:disabled):hover{background:#fff1a1;translate:0 -2px;box-shadow:0 5px 0 var(--ink)}.tile:not(:disabled):active{translate:0 2px;box-shadow:0 1px 0 var(--ink)}.tile.selected{background:var(--yellow);border-width:3px;box-shadow:0 3px 0 var(--ink),inset 0 0 0 2px #fff7be}.tile.selected:not(:disabled):hover{background:var(--yellow)}.tile.selected::after{content:'↻';position:absolute;left:4px;top:1px;font-size:15px;line-height:1;font-weight:900;z-index:4}.tile.visited{background:#d4f9e6}.tile.selected.visited{background:var(--yellow)}.tile.failed-cell{outline:3px dashed var(--coral);outline-offset:-6px}.tile.explained{outline:3px dashed var(--green);outline-offset:-6px}.tile>.arrow-icon{width:45%;height:45%;position:relative;z-index:3;stroke-width:4.5;pointer-events:none}.tile.selected>.arrow-icon{transform:rotate(90deg)}.tile.home{color:var(--ink);background:var(--coral)}.tile.home.visited{background:var(--yellow)}.tile.home>.home-icon{width:47%;height:47%;position:relative;z-index:3;margin-top:-5px}.home-word{position:absolute;bottom:6px;font-size:8px;letter-spacing:.8px;font-weight:1000}.tile-start{position:absolute;top:4px;left:4px;width:15px;height:15px;display:grid;place-items:center;border:1.5px solid var(--ink);border-radius:4px;background:var(--sky);color:var(--ink);z-index:4;font-size:9px;line-height:1;font-weight:900}.tile.selected .tile-start{top:auto;bottom:4px;background:var(--sky)}.parcel-icon{position:absolute;right:4px;top:4px;width:22px;height:22px;z-index:4;pointer-events:none;filter:drop-shadow(1px 1px 0 #172c4230)}.collected-mark{position:absolute;right:4px;top:4px;width:20px;height:20px;z-index:4;pointer-events:none}.route-overlay{position:absolute;left:9px;top:9px;width:calc(100% - 18px);height:calc(100% - 18px);pointer-events:none;z-index:2;overflow:visible}.route-overlay polyline{stroke:#27845c;stroke-width:6;stroke-dasharray:1 10;opacity:.7}.courier{position:absolute;z-index:6;width:46px;height:46px;margin:-23px 0 0 -23px;display:grid;place-items:center;pointer-events:none;transition:left .23s linear,top .23s linear;filter:drop-shadow(0 3px 0 #172c4240)}.courier svg{width:100%;height:100%;overflow:visible}.car-body{transform-origin:center;transform:rotate(var(--car-angle,90deg));transition:transform .16s ease}.courier.parked{opacity:1}.courier.arriving{animation:arrival-hop .48s ease-out 2}.arrival-decoration{position:absolute;inset:0;z-index:7;pointer-events:none}.arrival-burst{position:absolute;width:112px;height:112px;right:-12px;bottom:-14px;pointer-events:none;opacity:0;transform:scale(.45)}.map-frame.celebrating .arrival-burst{animation:delivery-spark .9s ease-out both}@keyframes arrival-hop{0%,100%{translate:0 0}45%{translate:0 -9px}}@keyframes delivery-spark{0%{opacity:0;transform:scale(.4) rotate(-12deg)}25%{opacity:1}75%{opacity:1}100%{opacity:0;transform:scale(1.15) rotate(8deg)}}
.map-legend{display:flex;align-items:center;gap:14px;margin:12px 0 12px 16px;font-size:10px;font-weight:700;color:var(--muted)}.map-legend>span{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.map-legend svg{width:16px;height:16px;stroke-width:2}.legend-start{display:grid;place-items:center;width:15px;height:15px;border:1.5px solid var(--ink);border-radius:4px;color:var(--ink);background:var(--sky);font-size:9px;font-style:normal;font-weight:900}.legend-turn{margin-left:auto;font-size:9px}.board-tip{font-size:11px;font-weight:700;line-height:1.4;margin:10px 0;text-align:center}.selection{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:10px 12px;margin-bottom:10px;background:#e6f4f6;border:2px solid var(--ink);border-radius:9px;font-size:12px;line-height:1.35}.selection.is-selected{background:#fff3a4}.selection strong{font-weight:900}.selection>span:last-child:not(:first-child){flex:none}.selection>strong+span{font-size:10px}.selection .turn-preview{color:var(--ink);font-size:21px;letter-spacing:3px;white-space:nowrap;font-weight:900}.go-button,.primary-button{width:100%;min-height:52px;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;border:3px solid var(--ink);border-radius:10px;background:var(--coral);color:var(--ink);box-shadow:0 4px 0 var(--ink);font-size:16px;font-weight:1000;transition:background .14s ease,translate .14s ease,box-shadow .14s ease}.go-button:not(:disabled):hover,.primary-button:hover{background:var(--yellow)}.go-button:not(:disabled):active,.primary-button:active{translate:0 3px;box-shadow:0 1px 0 var(--ink)}.go-button:disabled{background:#d9e1de;color:#475e65;box-shadow:0 3px 0 #475e65;border-color:#475e65}.go-button span,.primary-button span{font-size:24px;line-height:1}.skip-button{width:100%;min-height:44px;border:2px solid var(--ink);border-radius:8px;padding:8px;background:var(--paper);font-size:12px;font-weight:800;margin-top:9px}.skip-button:hover{background:var(--yellow)}.daily-fineprint{font-size:10px;line-height:1.45;text-align:center;color:var(--muted);margin:12px 0 0}.storage-warning{font-size:11px;line-height:1.5;padding:8px;border:2px solid var(--ink);border-radius:7px;background:var(--yellow);text-align:center}
.result{border:2px solid var(--ink);border-radius:12px;background:var(--surface);padding:16px;margin-top:14px}.result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.result h3{font-size:25px;line-height:1.1;letter-spacing:-.8px;font-weight:1000;margin:0}.result-score{font-size:29px;font-weight:1000;letter-spacing:-1px;white-space:nowrap}.result p{font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0 14px}.result-status{display:block;font-size:9px;line-height:1.4;font-weight:900;letter-spacing:.7px;margin-bottom:7px}.result-actions{display:flex;flex-wrap:wrap;gap:8px}.result-actions button{min-height:44px;flex:1;padding:10px 11px;border:2px solid var(--ink);border-radius:8px;background:var(--paper);font-size:12px;font-weight:800}.result-actions button:hover{background:var(--yellow)}.result-actions .next-button{flex-basis:100%;background:var(--yellow);box-shadow:0 3px 0 var(--ink);font-size:13px;margin-bottom:3px}.result .explain-button{border:none;border-bottom:1px dashed var(--ink);border-radius:0;background:transparent;padding:10px 0 5px;margin-top:6px;min-height:44px;font-size:11px;color:var(--muted);line-height:1.4}.explanation{background:#e0f6e8;border:2px dashed var(--ink);border-radius:10px;padding:12px;margin-top:12px;font-size:12px;line-height:1.65}.explanation p{margin:5px 0}.explanation strong{font-weight:900}.explanation button{min-height:44px;padding:9px 10px;margin:6px 4px 0 0;border:2px solid var(--ink);border-radius:7px;background:var(--surface);font-size:11px;font-weight:800}.explanation .optimal-selected{color:var(--paper);background:var(--ink)}.day-banner{border:2px solid var(--ink);border-radius:9px;background:var(--yellow);padding:10px;margin-bottom:12px;font-size:12px;line-height:1.5}.day-banner button{min-height:44px;border:0;background:transparent;padding:4px 0;text-decoration:underline;font-weight:900}.site-footer{display:grid;justify-items:center;gap:2px;padding:0 0 18px;font-size:10px;line-height:1.5;text-align:center}.site-footer>span:last-child{display:flex;align-items:center;justify-content:center;gap:8px}.site-footer .text-button{background:transparent;border:none;box-shadow:none;padding:6px 0;font-size:10px;text-decoration:underline}.site-footer .text-button:active{translate:none}
/* The same tactile controls carry through onboarding, sharing and history. */
dialog{position:fixed;width:calc(100% - 32px);max-width:480px;max-height:calc(100dvh - 32px);overflow-y:auto;padding:28px;border:3px solid var(--ink);border-radius:18px;background:var(--paper);color:var(--ink);box-shadow:7px 7px 0 var(--ink)}dialog::backdrop{background:#172c4280;backdrop-filter:blur(3px)}.dialog-close{position:absolute;right:10px;top:8px;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:2px solid var(--ink);border-radius:9px;background:var(--yellow);font-size:25px;font-weight:900;line-height:1}.dialog-close:focus-visible{outline-offset:2px}dialog>.eyebrow{display:block;padding-right:35px;font-size:9px;line-height:1.5}dialog h2{font-size:30px;line-height:1.1;margin:14px 0 16px;max-width:340px}dialog>p,.help-steps{font-size:13px;line-height:1.7}dialog>p{color:var(--muted)}.help-steps{padding-left:23px}.help-steps li{padding-left:3px;margin:11px 0}.help-steps li::marker{font-weight:900}.help-steps strong{color:var(--ink)}.help-callout{padding:13px;background:var(--mint);border:2px solid var(--ink);border-radius:9px;font-size:12px;line-height:1.65}.help-callout>strong{font-weight:900}.help-callout p{margin:6px 0 0}dialog .help-small{font-size:11px;line-height:1.65;color:var(--muted)}dialog .primary-button{margin:18px 0 4px;font-size:14px}.keyboard-copy{font-size:12px!important}#share-dialog label{display:block;font-size:12px;font-weight:900;margin:12px 0 8px}textarea{width:100%;min-height:170px;resize:vertical;background:var(--surface);color:var(--ink);border:2px solid var(--ink);border-radius:9px;padding:12px;font-family:ui-monospace,Consolas,monospace;font-size:13px;line-height:1.6}.history-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;border-top:2px dashed #172c4240}.history-item strong{font-size:13px;font-weight:900}.history-item small{display:block;font-size:10px;color:var(--muted);margin-top:5px;line-height:1.5}.history-scores{font-size:12px;line-height:1.7;text-align:right;flex:none}.history-empty{font-size:22px;font-weight:900;line-height:1.4;margin:25px 0}.noscript{position:fixed;z-index:20;left:0;right:0;bottom:0;padding:20px;margin:0;background:var(--yellow);border-top:3px solid var(--ink);text-align:center}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%);border:0}
@media(max-width:480px){.site-shell{padding:0 12px}.site-header{min-height:68px;gap:10px}.wordmark{font-size:31px;letter-spacing:-1.8px;gap:6px}.wordmark>svg,.header-car{width:36px;height:36px}.site-header nav{gap:8px}.text-button{padding:8px 10px;font-size:11px}.help-button{width:44px;height:44px;font-size:23px}.main-layout{gap:12px;padding-bottom:20px}.intro .eyebrow,.game-tag{font-size:8px;letter-spacing:.9px}h1{font-size:25px;letter-spacing:-1px;margin:2px 0 4px}.intro-copy{font-size:11px;margin:0}.mobile-rules{font-size:10px;margin:4px 0 0}.game-panel{padding:12px;border-radius:16px;box-shadow:5px 5px 0 var(--ink)}.dispatch-heading{margin-bottom:9px}.dispatch-heading .eyebrow{font-size:8px;letter-spacing:.5px}.dispatch-heading p{font-size:14px}.edition{font-size:10px;padding:5px 6px}.board-tabs{gap:6px;margin-bottom:12px}.board-tab{padding:8px;font-size:11px;border-radius:8px}.tab-score{font-size:10px}.route-heading{gap:8px;min-height:36px;margin-bottom:18px}.route-kicker{font-size:8px;letter-spacing:.7px}h2{font-size:22px;letter-spacing:-.7px}.parcel-counter{gap:5px}.parcel-counter>svg{width:25px;height:25px}.parcel-counter strong{font-size:18px}.parcel-counter small{font-size:7px;letter-spacing:0}.map-frame{margin-left:12px;padding:6px;border-radius:10px}.board{gap:4px}.column-labels{left:6px;right:6px;top:-17px}.row-labels{left:-14px;top:6px;bottom:6px}.tile{border-width:2px;border-radius:6px;box-shadow:0 2px 0 var(--ink)}.tile.selected{border-width:2px;box-shadow:0 2px 0 var(--ink),inset 0 0 0 1.5px #fff7be}.tile.selected::after{font-size:11px;left:2px;top:1px}.tile-start{width:12px;height:12px;top:2px;left:2px;font-size:7px;border-width:1px;border-radius:3px}.tile.selected .tile-start{bottom:2px}.parcel-icon{width:17px;height:17px;top:2px;right:2px}.collected-mark{width:15px;height:15px;right:2px;top:2px}.home-word{font-size:6px;bottom:3px;letter-spacing:.4px}.tile.home>.home-icon{margin-top:-4px}.route-overlay{left:6px;top:6px;width:calc(100% - 12px);height:calc(100% - 12px)}.route-overlay polyline{stroke-width:5;stroke-dasharray:1 8}.courier{width:34px;height:34px;margin:-17px 0 0 -17px}.arrival-burst{width:90px;height:90px;right:-13px;bottom:-13px}.map-legend{gap:10px;margin:10px 0 10px 12px;font-size:9px}.map-legend svg{width:14px;height:14px}.legend-start{width:13px;height:13px;font-size:7px}.legend-turn{font-size:8px}.selection{min-height:44px;font-size:11px;padding:8px 10px;margin-bottom:9px}.selection>strong+span{font-size:9px}.selection .turn-preview{font-size:20px;letter-spacing:1px}.go-button{min-height:51px;padding:11px 12px;font-size:15px}.daily-fineprint{font-size:9px;margin-top:11px}.site-footer{font-size:9px;padding-bottom:12px}.site-footer .text-button{font-size:9px}.result{padding:12px}.result h3{font-size:22px}.result-score{font-size:25px}.result-status{font-size:8px;letter-spacing:.4px}.result p{font-size:11px}.result-actions button{padding:9px 8px;font-size:11px}.result-actions .next-button{font-size:12px}.result .explain-button{font-size:10px}dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:25px 20px;border-radius:14px}dialog h2{font-size:27px;margin-top:16px;padding-right:12px}dialog>p,.help-steps{font-size:12px}.help-callout{font-size:11px;padding:11px}dialog .primary-button{font-size:13px}.history-item strong{font-size:11px}.history-scores{font-size:11px}}
@media(max-width:350px){.wordmark{font-size:28px}.wordmark>svg,.header-car{width:30px;height:30px}.site-header nav{gap:6px}.site-header .text-button{padding:8px}h1{font-size:23px}.intro-copy{font-size:10px}.board-tab{padding:7px 6px;font-size:10px;gap:3px}.tab-score{font-size:9px}h2{font-size:19px}.parcel-counter>svg{width:21px;height:21px}.parcel-counter strong{font-size:16px}.parcel-counter small{font-size:6.5px}.map-legend{gap:7px;font-size:8px}.legend-turn{font-size:7px}.selection{font-size:10px;padding:8px}.selection>strong+span{font-size:8px}.courier{width:30px;height:30px;margin:-15px 0 0 -15px}.result-heading{gap:6px}.result h3{font-size:20px}.result-score{font-size:23px}}
.car-body{width:100%;height:100%;display:grid;place-items:center}
@media(min-width:700px) and (max-height:950px){.site-shell{max-width:500px}.site-header{min-height:72px}.main-layout{gap:12px;padding-bottom:16px}h1{font-size:24px;margin:3px 0}.intro-copy{font-size:12px}.game-panel{padding:16px}.dispatch-heading{margin-bottom:10px}.dispatch-heading p{font-size:14px}.board-tabs{margin-bottom:12px}.route-heading{margin-bottom:18px}.courier{width:38px;height:38px;margin:-19px 0 0 -19px}}
.courier.arriving{animation-duration:.42s}
/* The launch control lives on the map, so the route stays in view when it starts. */
.map-frame{scroll-margin-block:16px}.launch-controls{position:absolute;inset:0;z-index:8;display:grid;place-items:center;pointer-events:none}.launch-controls #go-button{pointer-events:auto}#go-button.board-start{position:relative;display:grid;place-items:center;width:120px;height:84px;min-height:0;padding:0;border:0;border-radius:20px;background:transparent;color:var(--ink);box-shadow:none;filter:drop-shadow(0 4px 0 #172c423d);isolation:isolate;transition:translate .14s ease,filter .14s ease}#go-button.board-start:not(:disabled):hover{background:transparent;translate:0 -2px;filter:drop-shadow(0 6px 0 #172c423d)}#go-button.board-start:not(:disabled):active{translate:0 2px;box-shadow:none;filter:drop-shadow(0 2px 0 #172c423d)}#go-button.board-start:focus-visible{outline:3px dashed var(--ink);outline-offset:3px;box-shadow:0 0 0 6px var(--yellow)}#go-button.board-start:disabled{background:transparent;border:0;box-shadow:none;opacity:.55}#go-button.board-start .start-car-art{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}#go-button.board-start .start-car-art svg{width:84px;height:112px;transform:rotate(90deg);overflow:visible}#go-button.board-start .start-label{position:relative;z-index:1;padding:3px 7px;border:2px solid var(--ink);border-radius:5px;background:var(--yellow);font-size:16px;font-weight:1000;line-height:1;letter-spacing:.2px;pointer-events:none}.change-turn-button{min-height:44px;padding:8px 12px;border:2px solid var(--ink);border-radius:8px;background:var(--surface);font-size:11px;font-weight:900;white-space:nowrap}.change-turn-button:hover{background:var(--yellow)}.turn-controls{display:flex;align-items:center;gap:8px}.turn-controls .selection{flex:1;min-width:0;margin:0}.turn-controls .change-turn-button{flex:none}.retry-note{flex-basis:100%;margin:0!important;font-size:10px!important;line-height:1.4!important;color:var(--muted)}
#go-button.board-start{justify-content:center;align-content:center}.clear-turn-button{min-height:44px;padding:8px 12px;border:2px solid var(--ink);border-radius:8px;background:var(--surface);font-size:11px;font-weight:900;white-space:nowrap}.clear-turn-button:hover{background:var(--yellow)}.turn-controls .clear-turn-button{flex:none}.turn-helper{font-size:10px;line-height:1.4;color:var(--muted);margin:5px 0 0}.turn-controls+.turn-helper{margin-bottom:0}
.result-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.result-actions .next-button{grid-column:1/-1;order:0}.result-actions [data-practice]{order:1}.result-actions [data-share]:not(.next-button){order:2}.result-actions [data-practice]:last-of-type{grid-column:1/-1}.result-actions .retry-note{grid-column:1/-1;order:3}
/* A future offer remains below the game, away from the map and route controls. */
.unlimited-preview{display:grid;gap:6px;justify-items:center;margin:0 0 16px;padding:12px 14px;border:2px dashed var(--ink);border-radius:12px;background:var(--paper);text-align:center}.unlimited-preview h2,.unlimited-preview h3{font-size:16px;line-height:1.25;letter-spacing:-.3px;margin:0}.unlimited-preview p{font-size:11px;line-height:1.45;margin:0;color:var(--muted)}.offer-button{min-height:44px;max-width:100%;padding:9px 15px;border:2px solid var(--ink);border-radius:8px;background:var(--yellow);box-shadow:0 2px 0 var(--ink);font-size:12px;line-height:1.3;font-weight:900}.offer-button:hover{background:var(--mint)}.offer-button:active{translate:0 2px;box-shadow:none}.unlimited-preview .offer-note{font-size:10px}.offer-feedback{font-size:11px;line-height:1.4;margin:3px 0 0;color:var(--ink)}
@media(max-width:480px){.site-header{min-height:58px}.main-layout{gap:9px;padding-bottom:14px}.intro h1{font-size:23px;margin:0 0 3px}.intro-copy{font-size:11px;line-height:1.3}.game-panel{padding-top:10px;padding-bottom:10px}.dispatch-heading{margin-bottom:7px}.dispatch-heading p{font-size:13px;margin-top:2px}.board-tabs{margin-bottom:9px}.board-tab{min-height:44px;padding-block:6px}.route-heading{min-height:33px;margin-bottom:17px}h2{font-size:21px}.map-legend{margin-top:8px;margin-bottom:8px;gap:9px}.selection{padding:7px 9px;min-height:44px;margin-bottom:7px}.selection .turn-preview{font-size:18px}.daily-fineprint{margin-top:7px;line-height:1.35}.skip-button{margin-top:7px}.result{padding:10px;margin-top:9px}.result-status{margin-bottom:5px}.result h3{font-size:21px}.result-score{font-size:24px}.result p{line-height:1.45;margin:7px 0 9px}.result-actions{gap:6px}.result-actions button{padding:8px;min-height:44px}.result-actions .next-button{margin-bottom:1px}.result .explain-button{margin-top:2px;padding:7px 0 3px}.explanation{padding:10px;margin-top:9px;font-size:11px;line-height:1.5}.site-footer{line-height:1.4}#go-button.board-start{width:108px;height:76px}#go-button.board-start .start-car-art svg{width:76px;height:102px}#go-button.board-start .start-label{font-size:15px;padding:3px 6px}.change-turn-button{padding:7px 9px;font-size:10px}.unlimited-preview{padding:10px 12px;gap:5px;margin-bottom:12px}.unlimited-preview h2,.unlimited-preview h3{font-size:15px}.unlimited-preview p{font-size:10px}.offer-button{font-size:11px}.unlimited-preview .offer-note{font-size:9px}}
@media(max-width:350px){.intro h1{font-size:22px}.map-legend{gap:7px}.turn-controls{gap:5px}.turn-controls .selection{padding:6px;font-size:10px}.change-turn-button{padding:7px;font-size:9px}.result h3{font-size:19px}.result-score{font-size:22px}}
@media(max-width:480px){.clear-turn-button{padding:7px 9px;font-size:10px}.turn-helper{font-size:9px;line-height:1.35}}@media(max-width:350px){.clear-turn-button{padding:7px;font-size:9px}}
@media(max-width:480px){.dispatch-heading .eyebrow{display:flex}.route-kicker{display:block;line-height:1.2}}
@media(max-width:480px) and (max-height:650px){.site-header{min-height:50px}.main-layout{gap:7px}.intro-copy{display:none}.map-legend{margin-top:6px;margin-bottom:6px}}
/* Keep the next action clear before the map, including when reopening a saved route. */
.route-heading{margin-bottom:4px}.action-cue{display:flex;align-items:center;justify-content:center;gap:6px;min-height:20px;margin:0 0 20px;font-size:12px;font-weight:900;line-height:1.3;color:var(--ink)}.cue-step{display:inline-flex;align-items:center;gap:4px}.saved-route-notice{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;margin:0 0 20px}.saved-route-copy,.saved-route-notice>span,.saved-route-notice>p{min-width:0;margin:0;font-size:12px;line-height:1.4;color:var(--muted)}.saved-route-notice strong{color:var(--ink)}#retry-route-button{flex:none;min-height:44px;padding:8px 12px;border:2px solid var(--ink);border-radius:8px;background:var(--yellow);box-shadow:0 2px 0 var(--ink);font-size:12px;font-weight:900;line-height:1.3}#retry-route-button:hover{background:var(--mint)}#retry-route-button:active{translate:0 2px;box-shadow:none}.tile.played-turn{outline:2px dashed var(--muted);outline-offset:-6px}.tile.played-turn>.arrow-icon{transform:rotate(90deg)}
/* A compact picture leads sharing; plain text remains available on demand. */
#share-dialog{max-width:440px;padding:22px}#share-dialog h2{font-size:27px;line-height:1.15;margin:8px 0 12px;padding-right:28px}.share-card{overflow:hidden;border:2px solid var(--ink);border-radius:12px;background:var(--sky);box-shadow:0 3px 0 var(--ink);line-height:0}.share-card>svg{display:block;width:100%;height:auto;max-height:320px}.share-caption{margin:9px 0 11px;font-size:11px;line-height:1.4;text-align:center;color:var(--muted)}.share-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.share-actions button{display:block;min-height:44px;min-width:0;margin:0;padding:9px 8px;border:2px solid var(--ink);border-radius:8px;background:var(--surface);box-shadow:0 2px 0 var(--ink);font-size:12px;font-weight:900;line-height:1.3;text-align:center}.share-actions #share-image-button{grid-column:1/-1;background:var(--yellow);font-size:14px}.share-actions button:hover{background:var(--mint)}.share-actions button:active{translate:0 2px;box-shadow:none}#share-text-details{margin-top:8px;border-top:1px dashed var(--muted)}#share-text-details summary{display:flex;align-items:center;gap:6px;min-height:44px;padding:8px 0;font-size:11px;font-weight:800;line-height:1.35;cursor:pointer;list-style:none}#share-text-details summary::-webkit-details-marker{display:none}#share-text-details summary::before{content:'▸';font-size:14px}#share-text-details[open] summary::before{content:'▾'}#share-text-details summary:focus-visible{outline:3px solid var(--ink);outline-offset:2px;box-shadow:0 0 0 5px var(--yellow)}#share-text-details label{margin:4px 0 7px;font-size:11px}#share-text-details textarea{min-height:145px;padding:9px;font-size:11px;line-height:1.45}#share-dialog .share-message,#share-dialog #share-message{margin:8px 0 0;font-size:11px;line-height:1.4;color:var(--muted)}
@media(max-width:480px){.route-heading{margin-bottom:0}.action-cue{min-height:16px;margin-bottom:17px;font-size:11px;line-height:1.3}.saved-route-notice{gap:8px;margin-bottom:17px}.saved-route-copy,.saved-route-notice>span,.saved-route-notice>p{font-size:10px}#retry-route-button{padding:8px 9px;font-size:11px}#share-dialog{padding:18px 16px}#share-dialog h2{font-size:24px;margin:8px 0 10px}.share-card>svg{max-height:280px}.share-caption{font-size:10px;margin:8px 0 9px}.share-actions{gap:7px}.share-actions button{font-size:11px}.share-actions #share-image-button{font-size:13px}#share-dialog .share-message,#share-dialog #share-message{font-size:10px}}
@media(max-width:480px) and (max-height:650px){.dispatch-heading>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 8px}.dispatch-heading p{margin:0}.board-tabs{margin-bottom:6px}.site-header{min-height:48px}#share-dialog{padding:15px 14px}#share-dialog h2{font-size:23px;margin:6px 0 8px}.share-card>svg{max-height:235px}.share-caption{margin:7px 0 8px}#share-text-details{margin-top:7px}#share-text-details summary{min-height:44px}#share-dialog .share-message,#share-dialog #share-message{margin-top:6px}}
.share-card>svg{stroke:none}
@media(max-width:480px) and (max-height:650px){.map-frame{max-width:254px;margin-inline:auto}}
.share-actions .share-save-button{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:0;margin:0;padding:9px 8px;border:2px solid var(--ink);border-radius:8px;background:var(--surface);box-shadow:0 2px 0 var(--ink);font-size:12px;font-weight:900;line-height:1.3;text-align:center;text-decoration:none}.share-actions .share-save-button:hover{background:var(--mint)}.share-actions .share-save-button:active{translate:0 2px;box-shadow:none}.saved-route-copy{display:grid;gap:2px}.saved-route-copy>span{display:block}
@media(max-width:480px){.share-actions .share-save-button{font-size:11px}}
.share-card+.share-actions{margin-top:12px}
.cue-step{color:var(--muted);font-weight:700}.cue-step b{display:inline-grid;place-items:center;min-width:16px;height:16px;padding:0 3px;border:1.5px solid var(--ink);border-radius:50%;background:var(--surface);color:var(--ink);font-size:10px;line-height:1}.cue-step.is-active{color:var(--ink);font-weight:900}.cue-step.is-active b{background:var(--yellow)}
@media(max-width:480px) and (max-height:650px){.game-panel{padding-top:8px}.main-layout{gap:5px}.board-tabs{margin-bottom:4px}.map-legend{margin-top:4px;margin-bottom:4px}#share-text-details textarea{min-height:112px;font-size:10px;line-height:1.4;padding:8px}#share-dialog:has(#share-text-details[open]) .share-card>svg{max-height:130px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.arrival-burst{display:none}}

/* Difficulty adds cells within the same map frame; both choices remain full-size controls. */
.difficulty-switch{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:0;margin:0 0 12px;padding:0;border:0}
.difficulty-switch legend{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%);border:0}
.difficulty-switch button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:44px;padding:8px 12px;border:2px solid var(--ink);border-radius:9px;background:var(--surface);box-shadow:0 2px 0 var(--ink);font-size:12px;font-weight:900;line-height:1.25}
.difficulty-switch button[aria-pressed="true"]{background:var(--yellow);box-shadow:0 2px 0 var(--ink),inset 0 0 0 2px #fff7be}
.difficulty-switch button:not(:disabled):hover{background:var(--mint)}
.difficulty-switch button[aria-pressed="true"]:not(:disabled):hover{background:var(--yellow)}
.difficulty-switch button:active{translate:0 2px;box-shadow:none}
.difficulty-switch button:disabled{opacity:.7}
[data-difficulty="hard"] .board{gap:5px}
[data-difficulty="hard"] .tile{border-radius:7px}
[data-difficulty="hard"] .tile>.arrow-icon{width:48%;height:48%}
[data-difficulty="hard"] .parcel-icon{width:clamp(13px,34%,21px);height:clamp(13px,34%,21px);right:2px;top:2px}
[data-difficulty="hard"] .collected-mark{width:clamp(12px,31%,19px);height:clamp(12px,31%,19px);right:2px;top:2px}
[data-difficulty="hard"] .tile:has(.parcel-icon,.collected-mark)>.arrow-icon{translate:-2px 2px}
[data-difficulty="hard"] .courier{width:38px;height:38px;margin:-19px 0 0 -19px}
@media(max-width:480px){
  .difficulty-switch{gap:6px;margin-bottom:9px}
  .difficulty-switch button{padding:7px 9px;font-size:11px;border-radius:8px}
  [data-difficulty="hard"] .board{gap:3px}
  [data-difficulty="hard"] .tile{border-radius:5px}
  [data-difficulty="hard"] .tile.selected::after{font-size:10px;left:1px;top:1px}
  [data-difficulty="hard"] .tile-start{width:11px;height:11px;top:1px;left:1px;font-size:7px}
  [data-difficulty="hard"] .tile.selected .tile-start{bottom:1px}
  [data-difficulty="hard"] .parcel-icon,[data-difficulty="hard"] .collected-mark{right:1px;top:1px}
  [data-difficulty="hard"] .home-word{font-size:5.5px;bottom:2px;letter-spacing:.2px}
  [data-difficulty="hard"] .tile.home>.home-icon{width:45%;height:45%;margin-top:-3px}
  [data-difficulty="hard"] .courier{width:29px;height:29px;margin:-14.5px 0 0 -14.5px}
}
@media(max-width:480px) and (max-height:650px){.difficulty-switch{margin-bottom:6px}}

/* Completed routes announce their outcome before the map and keep retry within reach. */
.saved-route-notice[data-outcome]{align-items:center;gap:10px;padding:10px;border:2px solid var(--ink);border-radius:10px;background:var(--surface)}
.saved-route-notice[data-outcome="loop"],.saved-route-notice[data-outcome="edge"]{background:#fff0e4}
.saved-route-notice[data-outcome="home"]{background:#e0f6e8}
.saved-route-notice[data-outcome="preview"]{background:#e6f4f6}
.saved-route-notice[data-outcome] .saved-route-copy{flex:1;gap:3px}
#route-outcome-title{display:block;font-size:13px;font-weight:1000;line-height:1.35;color:var(--ink)}
#route-outcome-title::before{display:inline-block;min-width:13px;margin-right:4px;font-size:14px;font-weight:1000;line-height:1;text-align:center}
[data-outcome="loop"] #route-outcome-title::before{content:'↻'}
[data-outcome="edge"] #route-outcome-title::before{content:'×'}
[data-outcome="home"] #route-outcome-title::before{content:'✓'}
[data-outcome="preview"] #route-outcome-title::before{content:'◇'}
#route-outcome-detail{display:block;font-size:11px;line-height:1.4;color:var(--muted);overflow-wrap:anywhere}
.saved-route-notice[data-outcome] #saved-route-score{display:block;font-size:10px;font-weight:700;line-height:1.4;color:var(--muted)}
.saved-route-notice[data-outcome] #retry-route-button{max-width:42%;min-height:44px;white-space:normal}
.route-overlay #failure-link{stroke:var(--coral);stroke-width:3;stroke-dasharray:6 4;stroke-linecap:round;stroke-linejoin:round;fill:none;opacity:1;filter:drop-shadow(0 1px 0 #172c4266)}
@media(max-width:480px){
 .saved-route-notice[data-outcome]{gap:8px;padding:8px}
 #route-outcome-title{font-size:12px;line-height:1.3}
 #route-outcome-detail{font-size:10px;line-height:1.4}
 .saved-route-notice[data-outcome] #saved-route-score{font-size:9px;line-height:1.4}
}
/* Laptop fold: on short desktop screens keep the whole map above the fold. */
@media(min-width:700px) and (max-height:950px){.site-header{min-height:60px}.main-layout{gap:10px}.intro h1{margin:0 0 2px}.route-heading{margin-bottom:10px}.map-frame{width:auto;max-width:max(300px,calc(100vh - 420px));margin-inline:auto}}
/* Small phones, Hard: let the 6×6 map use the full width so every tile is at least 44px. */
@media(max-width:370px){[data-difficulty="hard"] .game-panel{margin-inline:-12px;padding-inline:5px;border-left:0;border-right:0;border-radius:0;box-shadow:0 5px 0 var(--ink)}[data-difficulty="hard"] .map-frame{max-width:none;margin-left:12px;margin-right:0;padding:4px}[data-difficulty="hard"] .row-labels{left:-12px;top:4px;bottom:4px}[data-difficulty="hard"] .column-labels{left:4px;right:4px}}
/* First-visit how-to-play card, centered over the map. Dark ink on yellow. */
.howto{position:absolute;inset:0;z-index:20;display:grid;place-items:center;padding:8px;pointer-events:none;opacity:1;transition:opacity .18s ease}
.howto[hidden]{display:none}.howto.closing{opacity:0}
.howto-card{pointer-events:auto;width:min(100%,340px);padding:16px 16px 14px;background:var(--yellow);color:var(--ink);border:3px solid var(--ink);border-radius:14px;box-shadow:5px 5px 0 var(--ink);text-align:left}
.howto-kicker{display:block;font-size:10px;font-weight:900;letter-spacing:1.2px}
.howto-card h2{margin:4px 0 10px;font-size:22px;line-height:1.1;letter-spacing:-.6px}
.howto-rules{list-style:none;margin:0 0 12px;padding:0;display:grid;gap:7px}
.howto-rules li{display:flex;gap:8px;align-items:flex-start;font-size:13px;font-weight:800;line-height:1.3}
.howto-icon{flex:none;width:20px;text-align:center;font-size:15px;line-height:1.2}
.howto-go{width:100%;min-height:44px;border:2px solid var(--ink);border-radius:9px;background:var(--ink);color:#fff;font-size:15px;font-weight:1000}
.howto-go:focus-visible,.howto-more:focus-visible{outline:3px dashed var(--ink);outline-offset:3px}
.howto-more{display:block;margin:6px auto 0;min-height:32px;padding:4px 10px;border:0;background:transparent;color:var(--ink);font-size:12px;font-weight:900;text-decoration:underline}
@media(max-width:480px){.howto{padding:4px}.howto-card{padding:12px 12px 10px;border-radius:12px;box-shadow:4px 4px 0 var(--ink)}.howto-card h2{font-size:19px;margin-bottom:8px}.howto-rules{gap:5px;margin-bottom:9px}.howto-rules li{font-size:12px}.howto-go{font-size:14px}}
@media(max-width:350px){.howto-card h2{font-size:17px}.howto-rules li{font-size:11px;gap:6px}.howto-kicker{font-size:9px}}
@media(prefers-reduced-motion:reduce){.howto{transition:none}}
@media(max-width:480px) and (max-height:650px){.howto-card{padding:9px 10px 6px}.howto-kicker{display:none}.howto-card h2{font-size:16px;margin:0 0 6px}.howto-rules{gap:3px;margin-bottom:7px}.howto-rules li{font-size:11px;line-height:1.25;gap:5px}.howto-icon{width:16px;font-size:12px}.howto-more{min-height:28px;margin-top:2px}}
@media(max-width:480px) and (max-height:650px){[data-difficulty="hard"] .map-frame{max-width:none}}
