@font-face{font-family:Schoolbell;src:url("assets/Schoolbell-Regular.woff2") format("woff2");font-weight:400;font-display:swap}
:root{--grass:#18613c;--panel:#103d2b;--dark:#092c23;--gold:#f2d35c;--paper:#f8f5df;--muted:#bcd2b7;--line:#668664;--mono:Consolas,"Courier New",monospace;--hand:Schoolbell,cursive;color-scheme:dark;font-family:var(--hand)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:var(--grass) url("assets/grass-tile.svg?v=2") repeat;color:var(--paper)}button,input,a{font:inherit}button{color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.44}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--gold);outline-offset:4px}button,a,input{touch-action:manipulation}button{transition:background .18s,color .18s,box-shadow .18s,transform .18s}button:not(:disabled):active{transform:translateY(1px)}[hidden]{display:none!important}.site-header{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1480px)/2));background:#103d2bf5;border-bottom:2px solid #092c23}.brand{display:flex;align-items:center;gap:8px;font-size:28px;text-decoration:none}.brand img{object-fit:contain}.site-header nav,footer nav{display:flex;align-items:center;gap:25px}.site-header nav a,.nav-button{font-size:18px;text-decoration:none}.nav-button{padding:9px 0;border:0;background:none}.nav-button span{padding-left:5px;color:var(--gold)}main{max-width:1480px;padding:0 24px 32px;margin:auto}.intro{display:flex;align-items:center;justify-content:space-between;padding:22px 0 18px;gap:20px}h1{margin:0;font:400 clamp(40px,4vw,58px)/1 var(--hand);letter-spacing:-1px}.intro-line{margin:5px 0 0;color:#d6e6c6;font-size:18px}.rotation-card{text-align:right}.rotation-card span,.rotation-card small{display:block;font:10px var(--mono);color:var(--muted);letter-spacing:.05em}.rotation-card strong{display:block;font:23px var(--hand);margin:4px 0;color:var(--gold)}.rotation-card small{font-size:10px;letter-spacing:0}.mode-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px;gap:10px}.mode-tabs{display:flex;gap:8px}.mode-tab{padding:10px 24px;background:var(--panel);border:2px solid #7ca47b;font:20px var(--hand);min-height:46px}.mode-tab span{font:10px var(--mono);margin-left:7px;opacity:.75}.mode-tab.active{color:#163e2c;background:var(--gold);border-color:#fff0a9;box-shadow:0 3px 0 #092c23}.mode-tab:hover:not(.active){background:#275c3f}.saved-note{font:10px var(--mono);color:#d6e6c6}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:20px;align-items:start}.board-card{background:var(--panel);border:2px solid #b1c6a6;box-shadow:5px 5px 0 #0b3826}.board-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 20px 10px;border-bottom:1px solid var(--line)}small{font:10px var(--mono);letter-spacing:.07em;color:var(--gold)}.board-head h2{margin:3px 0 0;font:24px var(--hand)}#seed-pill{font:10px var(--mono);color:var(--muted)}.scoreboard{display:grid;grid-template-columns:repeat(3,1fr);text-align:center;border-bottom:1px solid #557b54;padding:10px 12px;background:#0d3427}.scoreboard>div+div{border-left:1px solid #496f4f}.scoreboard small{font-size:9px;color:#c0d4b6}.scoreboard strong{display:block;font:28px/1.1 var(--hand);margin-top:4px;color:var(--gold)}.scoreboard em{font:15px var(--hand);color:#d3e0be;font-style:normal}.board-wrap{padding:16px 20px 8px}.board-stage{position:relative;width:min(100%,760px);aspect-ratio:1;margin:auto;background:#0b2c24;isolation:isolate}.board{position:absolute;inset:0;display:grid;gap:2px;padding:6px;border:2px solid #b1c6a6;touch-action:none;user-select:none;-webkit-user-select:none}.board.no-drag{touch-action:pan-y}.cell{position:relative;display:grid;place-items:center;min-width:0;min-height:0;padding:0;border:1px solid #35794e;background:#2b7046 url("assets/grass-tile.svg?v=2") center/40px;overflow:hidden;transition:background-color .2s,border-color .2s,filter .2s;opacity:1!important;user-select:none}.cell:not(.blocked):hover{filter:brightness(1.18)}.cell.blocked{cursor:not-allowed;border-color:#214735;background:#173d2d;pointer-events:none}.cell.tree-1 .cell-mark{transform:scaleX(-1) scale(.94)}.cell.tree-2 .cell-mark{filter:brightness(.91)}.cell.start{border-color:#d4d784;background-color:#4f7a42}.cell.grove{border:2px solid #e9d26b;background:#587547}.cell.route{background:#698741;border-color:#d7d585}.cell.endpoint{border:2px solid #f9e990}.cell.next-move{box-shadow:inset 0 0 0 2px #d4e7a682}.cell.next-move:after{content:"";position:absolute;width:8px;height:8px;border-radius:50%;background:#e5efbd;box-shadow:0 0 8px #d6ed9c80}.cell.route .cell-mark{opacity:.6}.cell-mark{display:block;width:94%;height:94%;background:center/contain no-repeat;pointer-events:none}.cell-mark.bramble{background-image:url("assets/bramble.svg?v=2")}.cell-mark.pollen{background-image:url("assets/pollen.svg?v=2");width:61%;height:61%}.cell-mark.dew{background-image:url("assets/dew.svg?v=2");width:58%;height:58%}.cell-mark.moon-grove{background-image:url("assets/moon-grove.svg?v=2")}.trail-number{position:absolute;right:3px;bottom:2px;font:11px var(--mono);background:#122f25e6;color:#fff6c2;border-radius:2px;min-width:16px;text-align:center;padding:1px;z-index:3}.trail-overlay{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:2}.trail-segment{stroke:#ffe898;stroke-width:3;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:0;animation:draw-line .23s ease-out}.trail-dot{fill:#fff3ac;stroke:#8d8d42;stroke-width:1}.firefly-token{position:absolute;z-index:4;width:calc(86% / var(--size,9));aspect-ratio:1;pointer-events:none;transform:translate(-50%,-50%);transition:left .3s cubic-bezier(.3,.05,.3,1),top .3s cubic-bezier(.3,.05,.3,1);filter:drop-shadow(0 0 6px #f4da6880)}.firefly-token img{width:100%;height:100%;object-fit:contain;transition:transform .22s ease;animation:firefly-hover 2.3s ease-in-out infinite}.firefly-token.flying img{animation:wing-buzz .16s ease-in-out infinite}.firefly-token.arrived{filter:drop-shadow(0 0 18px #ffe76d);animation:home-pulse 1.4s ease-in-out}.arrival-effects{position:absolute;inset:0;z-index:5;pointer-events:none;overflow:hidden}.arrival-particle{position:absolute;width:5px;height:5px;background:#fff1a1;border-radius:50%;animation:arrival 1.3s ease-out forwards;box-shadow:0 0 10px #ffe57a}.cell.home-glow{animation:grove-glow 1.5s ease-in-out 2}.legend{display:flex;justify-content:center;flex-wrap:wrap;gap:20px;padding:10px 0 3px;color:#dbe7cb;font-size:13px}.legend span{display:flex;align-items:center;gap:4px}.legend img{width:22px;height:22px;object-fit:contain}.board-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #557b54;padding:9px 18px;color:var(--muted);font-size:14px}.board-foot button{background:none;border:0;color:#f4e6a2;font-size:14px;min-height:30px}.flight-panel{position:sticky;top:16px;background:#103d2bed;border:2px solid #88a983;padding:20px;box-shadow:4px 4px 0 #0b3826}.goal-card{display:flex;align-items:center;gap:10px;padding-bottom:17px;border-bottom:1px solid var(--line)}.goal-card h2{font:24px var(--hand);margin:3px 0}.goal-card p{font:15px/1.4 var(--hand);color:#d6e2c6;margin:0}.panel-section{padding:18px 0;border-bottom:1px solid var(--line)}.supply-line{display:flex;justify-content:space-between;align-items:center;gap:8px}.supply-line span{font:12px var(--hand)}.supply-line b{font:25px var(--hand);color:var(--gold)}.stone-meter{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.stone{width:12px;height:9px;border:1px solid #e0eab3;background:#bfd67b;transition:opacity .2s}.stone.used{opacity:.2}.panel-section>p{font:13px/1.5 var(--hand);color:#c0d3b5;margin:0}.run-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;text-align:center}.run-stats small{font-size:9px}.run-stats strong{display:block;font:24px var(--hand);margin-top:5px}.game-status{font:17px/1.4 var(--hand);min-height:71px;margin:17px 0 9px;color:#f5efce}.action-row{display:flex;gap:8px;margin:0 0 12px}.action-row button,.secondary-button{padding:10px 12px;border:1px solid #a5bd92;background:#174a32;color:#f3f1d7;font-size:17px;min-height:42px}.action-row button{flex:1}.action-row button:hover:not(:disabled),.secondary-button:hover{background:#2d6540}.launch{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;min-height:48px;padding:8px 12px;border:2px solid #fff0af;background:var(--gold);color:#173f2c;font:21px var(--hand);box-shadow:2px 3px 0 #082f23}.launch b{margin-left:auto}.launch:not(:disabled):hover{background:#fff09b;box-shadow:2px 4px 0 #082f23}.launch:disabled{background:#9ea65a;border-color:#b7c17a;opacity:.5}.control-help{padding:15px 0 0;color:#bbd0b1;font:14px/1.5 var(--hand)}.control-help p{margin:0 0 10px}.control-help a{color:#f4de8f;text-decoration-thickness:1px;text-underline-offset:3px}.completed-note{display:flex;align-items:center;gap:10px;color:var(--gold);padding-top:15px;font-size:19px}.result-card{display:flex;align-items:center;gap:18px;padding:19px 22px;margin-top:22px;background:var(--panel);border:2px solid #d7cc7d}.result-card>div:nth-child(2){flex:1}.result-card h2{font:26px var(--hand);margin:3px 0}.result-card p{margin:0;color:var(--muted);font-size:15px}.result-score{text-align:center;min-width:110px}.result-score strong{display:block;color:var(--gold);font:32px var(--hand)}.result-card>button{padding:10px 15px;border:1px solid #9aaf77;background:#205238;font-size:17px}.archive{margin-top:22px;background:var(--panel);border:1px solid #8bab7e}.archive>button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:14px 20px;border:0;background:none;text-align:left;font:20px var(--hand)}#archive-content{padding:0 20px 20px}#archive-content p{color:var(--muted);font-size:16px}#archive-content label{display:flex;align-items:center;gap:14px;margin-bottom:15px}input[type=date]{padding:8px;border:1px solid #91ad7d;background:#0b3024;color:#fff4c7;min-height:40px;font:14px var(--mono)}#archive-list{display:flex;flex-wrap:wrap;gap:8px}.archive-day{padding:8px 12px;border:1px solid #719d70;background:#194d32;text-align:left;font:16px var(--hand)}.archive-day small{display:block;font-size:9px;margin-top:3px}.archive-day.active{background:var(--gold);color:#173f2c}.archive-day.active small{color:#173f2c}.ad-slot{margin:22px auto;text-align:center;max-width:728px;min-height:90px}.ad-slot small{display:block}footer{display:flex;justify-content:space-between;align-items:center;padding:14px max(24px,calc((100vw - 1480px)/2));border-top:2px solid #113c28;background:#103d2b}footer .brand{font-size:20px}footer nav a{font-size:16px;text-decoration:none}dialog{color-scheme:dark;width:min(450px,calc(100% - 28px));max-height:90dvh;overflow:auto;padding:32px;background:#123e2c;color:var(--paper);border:2px solid #c0cf9c;box-shadow:8px 8px 0 #08251d;text-align:center;animation:dialog-in .2s ease-out}dialog::backdrop{background:#061f18b8;backdrop-filter:blur(3px)}dialog h2{font:34px var(--hand);margin:8px 0}dialog p{font:17px/1.5 var(--hand);color:#d0dfbf}.close{position:absolute;right:8px;top:8px;width:35px;height:35px;background:none;border:0;font:27px var(--hand);color:#f3eab9}.dialog-description{margin:0 0 17px}.dialog-done{margin-top:22px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid #547c52;text-align:left}.setting-row b{display:block;font:20px var(--hand)}.setting-row small{display:block;font:13px/1.4 var(--hand);color:var(--muted);letter-spacing:0;max-width:290px;margin-top:2px}.setting-row input{width:23px;height:23px;flex-shrink:0;accent-color:#e9ce6b;cursor:pointer}.result-mascot{filter:drop-shadow(0 0 18px #f1d45a66)}.dialog-scores{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #63845b;border-bottom:1px solid #63845b;padding:16px 0}.dialog-scores>div+div{border-left:1px solid #63845b}.dialog-scores strong{display:block;font:40px var(--hand);color:var(--gold)}.score-breakdown{font:12px/1.6 var(--mono)!important}.secondary-button{width:100%;margin-top:12px}.dialog-text{min-height:40px;padding:8px;border:0;background:none;color:#dddfb9;font:16px var(--hand)}.text-page{max-width:860px;padding-top:38px}.text-page h1{font-size:52px}.text-page .lead{font:22px/1.5 var(--hand);color:#deebc9}.text-page section{padding:25px;margin:24px 0;background:var(--panel);border:1px solid #93ad7b;font:18px/1.6 var(--hand)}.text-page h2{font:30px var(--hand);color:var(--gold);margin:20px 0 6px}.text-page h2:first-child{margin-top:0}.text-page p{margin:8px 0}.text-page li{margin:8px 0}.text-page .launch{max-width:270px;text-decoration:none;margin:24px 0}.rule-icon{width:54px;height:54px;vertical-align:middle;margin-right:8px}.last-updated{font:12px var(--mono)}.board-enlarged .game-layout{grid-template-columns:1fr}.board-enlarged .flight-panel{position:static;max-width:760px;width:100%;margin:auto}.board-enlarged .board-stage{max-width:100%;width:min(100%,960px)}.board-enlarged .control-help{display:none}.high-contrast .cell.blocked{border:1px solid #9ab18a;background:#08281e}.high-contrast .cell.route{background:#a2a65a;border-color:#fff2ab}.high-contrast .cell.next-move{box-shadow:inset 0 0 0 3px #ffffcc}.no-motion *,.no-motion *:before,.no-motion *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
@keyframes draw-line{from{stroke-dashoffset:100;opacity:0}to{stroke-dashoffset:0;opacity:1}}@keyframes firefly-hover{0%,100%{translate:0 0}50%{translate:0 -2px}}@keyframes wing-buzz{50%{scale:1 .89}}@keyframes home-pulse{50%{scale:1.25}}@keyframes grove-glow{50%{box-shadow:inset 0 0 26px #ffe98d;background:#9c9d50}}@keyframes arrival{0%{transform:translate(0,0) scale(.4);opacity:0}15%{opacity:1}100%{transform:translate(var(--dx),var(--dy)) scale(0);opacity:0}}@keyframes dialog-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1700px){main{max-width:1600px}.game-layout{grid-template-columns:minmax(0,1fr) 350px}}
@media(max-width:1000px){.game-layout{grid-template-columns:minmax(0,1fr) 285px;gap:14px}.flight-panel{padding:15px}.board-wrap{padding:12px 12px 6px}.goal-card{gap:5px}.goal-card>img{width:44px}.goal-card h2{font-size:21px}.goal-card p{font-size:13px}.saved-note{display:none}.mode-tab{padding:9px 18px}.control-help{font-size:13px}}
@media(max-width:760px){.site-header{height:60px;padding:0 14px}.brand{font-size:23px}.brand>img{width:35px;height:35px}.site-header nav{gap:16px}.site-header nav a,.nav-button{font-size:16px}main{padding:0 12px 24px}.intro{padding:20px 2px 17px;gap:12px}h1{font-size:43px}.intro-line{font-size:15px}.rotation-card strong{font-size:19px}.rotation-card span,.rotation-card small{font-size:8px}.mode-tabs{width:100%;gap:7px}.mode-tab{flex:1;padding:9px;font-size:18px}.mode-tab span{font-size:8px;margin-left:3px}.game-layout{grid-template-columns:1fr}.board-head{padding:12px}.board-head h2{font-size:22px}.board-wrap{padding:9px 8px 5px}.board{padding:4px;gap:2px}.scoreboard{padding:8px}.scoreboard small{font-size:8px}.scoreboard strong{font-size:25px}.legend{gap:13px;font-size:12px;padding:7px 0 2px}.legend img{width:18px;height:18px}.flight-panel{position:static;padding:14px}.goal-card{display:none}.panel-section{padding:8px 0}.panel-section>p{font-size:14px}.run-stats{padding:10px 0}.stone-meter{margin:7px 0}.game-status{min-height:42px;font-size:17px;margin:11px 0}.control-help{font-size:14px;padding:13px 0 0}.control-help p{margin-bottom:7px}.control-help p#keyboard-help{display:none}.board-foot{padding:5px 10px;font-size:12px}.board-foot button{font-size:13px}.result-card{flex-wrap:wrap;gap:12px;padding:15px}.result-card>div:nth-child(2){min-width:calc(100% - 80px)}.result-score{flex:1;min-width:80px}.result-card>button{flex:1}.result-card small{font-size:9px}.archive{margin-top:16px}.archive>button{padding:12px;font-size:18px}#archive-content{padding:0 12px 15px}.archive-day{font-size:14px}footer{padding:12px 14px;gap:12px}footer nav{gap:14px}footer nav a{font-size:14px}footer .brand{font-size:18px}.trail-number{right:1px;bottom:1px;font-size:8px;min-width:11px;padding:0}.text-page{padding-top:25px}.text-page section{padding:18px;font-size:17px}.text-page h1{font-size:43px}.text-page .lead{font-size:20px}.text-page h2{font-size:25px}}
@media(max-width:380px){h1{font-size:36px}.intro-line{font-size:13px}.rotation-card strong{font-size:17px}.rotation-card small{font-size:7px}.legend{gap:8px}.mode-tab{font-size:16px}.mode-tab span{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:1700px){.board-stage{width:min(100%,860px)}}
@media(max-width:760px){#zoom-button{display:none}}
.mode-tab{line-height:1.2}.mobile-flight-action{display:none}
@media(max-width:760px){.mode-tab span{display:none}.mobile-flight-action{display:flex;position:fixed;z-index:15;bottom:0;left:0;right:0;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px max(10px,env(safe-area-inset-bottom));background:#0c3026f5;border-top:2px solid #f2d35c;box-shadow:0 -4px 20px #08271e80}.mobile-flight-action span{font-size:14px}.mobile-flight-action button{min-height:44px;padding:8px 13px;background:var(--gold);color:#173f2c;border:1px solid #fff0af;font-size:18px}.mobile-ready{padding-bottom:76px}}
.intro-line{line-height:1.3}.rotation-card strong{line-height:1.3}.rotation-card span,.rotation-card small{line-height:1.4}.brand{line-height:1.2}.board-head h2,.goal-card h2{line-height:1.2}.board-head small{display:block;line-height:1.2}.archive>button{line-height:1.3}

/* Viewport-framed play surface: the square is measured from remaining space. */
.site-header{height:48px;padding:0 20px}.site-header .brand{font-size:23px}.site-header .brand img{width:32px;height:32px;image-rendering:pixelated}.site-header nav a,.nav-button{font-size:16px}
main{max-width:1600px;padding:0 18px 20px}.intro{position:relative;display:block;text-align:center;padding:9px 230px 10px;min-height:84px}.intro>div:first-child{width:max-content;max-width:100%;margin:auto}
.intro h1{position:relative;display:inline-block;font-size:44px;line-height:1;letter-spacing:.02em;padding:0 16px}.title-word{background:linear-gradient(100deg,#fff3a1 5%,#eff5cb 40%,#b3e7d2 72%,#f3d674 100%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(1px 2px 0 #153c2a)}
.intro-line{font-size:14px;line-height:1.3;margin:4px 0 0;color:#d4e4bf}.title-flier{position:absolute;left:-4%;top:32%;width:28px;height:28px;animation:title-flight 13s linear infinite;pointer-events:none;filter:drop-shadow(0 0 7px #f9df70a0)}.title-flier img{width:100%;height:100%;image-rendering:pixelated}
.rotation-card{position:absolute;right:0;top:50%;transform:translateY(-50%)}.rotation-card strong{font-size:18px;margin:2px 0}.rotation-card span,.rotation-card small{font-size:9px}
.mode-bar{margin-bottom:8px}.mode-tab{font-size:18px;line-height:1.2;padding:7px 22px;min-height:39px}.saved-note{font-size:9px}
.game-layout,.board-enlarged .game-layout{height:calc(100svh - 196px);min-height:0;grid-template-columns:minmax(0,1fr) 310px;gap:16px;align-items:stretch}
.board-card{min-width:0;min-height:0;display:flex;flex-direction:column;overflow:hidden}.board-head{flex:0 0 auto;padding:7px 14px}.board-head small{font-size:8px}.board-head h2{font-size:21px;line-height:1.1;margin:3px 0 0}.scoreboard{flex:0 0 auto;padding:5px 10px}.scoreboard small{font-size:8px;line-height:1.2}.scoreboard strong{font-size:24px;line-height:1;margin-top:3px}
.board-wrap{flex:1 1 0;min-height:0;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:7px 10px 3px;overflow:hidden}.board-stage,.board-enlarged .board-stage{width:100px;height:100px;max-width:none;flex:0 0 auto;margin:0 auto;aspect-ratio:1}
.legend{flex:0 0 auto;min-height:25px;line-height:1.1;gap:17px;padding:4px 0 0;font-size:12px}.legend img{width:19px;height:19px;image-rendering:pixelated}.next-legend{display:inline-block;width:12px;height:12px;border:2px dashed #d9b5ef;background:#82578655}.board-foot{flex:0 0 auto;padding:3px 12px;min-height:30px;font-size:12px}.board-foot button{font-size:12px;min-height:24px}#zoom-button{display:block}.direction-pad{display:none}
.flight-panel,.board-enlarged .flight-panel{position:static;display:flex;flex-direction:column;max-width:none;width:auto;min-height:0;height:100%;padding:13px;margin:0;overflow:auto}.goal-card{padding-bottom:10px;gap:8px}.goal-card img{width:47px;height:47px}.goal-card h2{font-size:21px}.goal-card p{font-size:13px;line-height:1.3}.goal-card small{font-size:8px}
.panel-section{padding:12px 0}.panel-section>p{font-size:12px;line-height:1.3}.supply-line small{font-size:8px}.supply-line b{font-size:22px}.stone-meter{gap:4px;margin:7px 0}.stone{width:10px;height:7px}.run-stats{gap:7px;padding:10px 0}.run-stats small{font-size:8px}.run-stats strong{font-size:21px;margin-top:3px}.game-status{min-height:57px;font-size:16px;line-height:1.3;margin:12px 0 8px}.action-row{gap:6px;margin:0 0 9px}.action-row button{padding:7px 5px;font-size:15px;min-height:36px}.launch{font-size:18px;min-height:42px;padding:5px 9px}.launch img{width:26px;height:26px;image-rendering:pixelated}.control-help{font-size:12px;line-height:1.35;padding-top:12px;margin-top:auto}.control-help p{margin-bottom:9px}.snatcher-explainer{display:block}.snatcher-explainer img{float:left;margin:0 7px 3px 0;image-rendering:pixelated}.completed-note{font-size:15px;padding-top:8px}.completed-note img{image-rendering:pixelated}
.firefly-token{width:calc(92% / var(--size,11));transition:left .17s cubic-bezier(.18,.65,.35,1),top .17s cubic-bezier(.18,.65,.35,1);filter:drop-shadow(0 0 4px #f4da6870)}.firefly-token img{image-rendering:pixelated;animation:pixel-hover 2.6s steps(3,end) infinite;transition:transform .16s ease}.firefly-token.moving img{animation:pixel-flutter .14s steps(2,end) infinite}.snatcher-layer{position:absolute;inset:0;z-index:3;pointer-events:none}.snatcher-token{position:absolute;width:calc(88% / var(--size,11));aspect-ratio:1;transform:translate(-50%,-50%);transition:left .17s cubic-bezier(.18,.65,.35,1),top .17s cubic-bezier(.18,.65,.35,1);filter:drop-shadow(0 2px 1px #17271d88)}.snatcher-token img{width:100%;height:100%;image-rendering:pixelated;animation:snatcher-flap .7s steps(2,end) infinite}
.cell.danger-now{background-color:#65506d;border-color:#c1a0cc}.cell.danger-next:before{content:"";position:absolute;inset:3px;border:2px dashed #d5b3eb;z-index:1;pointer-events:none;background:#9b69ad33}.cell.route.danger-next:before{background:#9b69ad55}.high-contrast .cell.danger-next:before{border-color:#ffcbff;border-width:3px}.cell.blocked .cell-mark{image-rendering:pixelated}.caught .firefly-token{filter:grayscale(.3) drop-shadow(0 0 8px #edb4e7)}.caught .board{border-color:#f1b3d4}.result-mascot,footer .brand img{image-rendering:pixelated}
.board-enlarged .intro{display:none}.board-enlarged .mode-bar{margin-top:8px}.board-enlarged .game-layout{height:calc(100svh - 108px)}.board-enlarged .control-help{display:none}
.mobile-flight-action{display:none!important}.mobile-ready{padding-bottom:0}
@keyframes title-flight{0%{left:-6%;top:34%;opacity:0;transform:rotate(4deg)}8%{opacity:1}30%{top:10%;transform:rotate(-5deg)}58%{top:48%;transform:rotate(6deg)}88%{opacity:1}100%{left:101%;top:22%;opacity:0;transform:rotate(-4deg)}}
@keyframes pixel-hover{0%,100%{translate:0 0}50%{translate:0 -1px}}@keyframes pixel-flutter{50%{scale:1.04 .97}}@keyframes snatcher-flap{50%{scale:1 .94}}
@media(max-height:800px) and (min-width:761px){.control-help{font-size:11px;padding-top:8px}.control-help p:last-of-type{display:none}.goal-card{padding-bottom:7px}.panel-section{padding:8px 0}.game-status{font-size:15px;min-height:48px;margin-top:8px}}
@media(max-height:680px) and (min-width:761px){.goal-card,.control-help{display:none}.flight-panel{padding:10px}.game-status{min-height:44px}.game-layout{height:calc(100svh - 178px)}.intro{min-height:66px;padding-top:5px;padding-bottom:5px}.intro h1{font-size:37px}.intro-line{font-size:12px}}
@media(max-width:1000px) and (min-width:761px){.game-layout,.board-enlarged .game-layout{grid-template-columns:minmax(0,1fr) 270px;gap:12px}.flight-panel{padding:10px}.intro{padding-left:195px;padding-right:195px}.intro h1{font-size:40px}.saved-note{display:none}}
@media(max-width:760px){
.site-header{height:42px;padding:0 12px}.site-header .brand{font-size:20px;gap:5px}.site-header .brand img{width:27px;height:27px}.site-header nav{gap:15px}.site-header nav a,.nav-button{font-size:14px}.nav-button{padding:5px 0}
main{padding:0 9px 18px}.intro{padding:5px 0 6px;min-height:63px}.intro h1{font-size:35px;padding:0 18px}.intro-line{display:none}.title-flier{width:24px;height:24px}.rotation-card{position:static;transform:none;text-align:center;margin-top:3px;white-space:nowrap}.rotation-card span{display:none}.rotation-card strong{display:inline;font-size:12px;line-height:1.1;margin:0 7px 0 0}.rotation-card small{display:inline;font-size:8px;line-height:1.2}.mode-bar{margin-bottom:6px}.mode-tab{font-size:16px;line-height:1.1;padding:6px;min-height:33px}.saved-note{display:none}
.game-layout,.board-enlarged .game-layout{height:calc(100svh - 158px);min-height:0;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;gap:6px}.board-enlarged .mode-bar{margin-top:6px}.board-enlarged .game-layout{height:calc(100svh - 91px)}
.board-head{padding:5px 9px;min-height:38px}.board-head small{font-size:7px;line-height:1.1}.board-head h2{font-size:17px;line-height:1;margin-top:3px}#seed-pill{font-size:8px}.scoreboard{padding:4px}.scoreboard small{font-size:7px}.scoreboard strong{font-size:21px;line-height:1;margin-top:2px}.scoreboard em{font-size:13px}.board-wrap{padding:4px 5px 1px}.board{padding:3px;gap:1px;border-width:1px}
.legend{font-size:10px;gap:9px;min-height:22px;padding-top:3px}.legend img{width:16px;height:16px}.next-legend{width:10px;height:10px;border-width:1px}
.board-foot{padding:2px 7px;min-height:37px}.board-foot>span{display:none}.direction-pad{display:flex;align-items:center;gap:5px}.direction-pad button{width:36px;height:31px;min-height:31px;padding:0;border:1px solid #92a87f;background:#245337;color:#fff2a8;font:19px Arial,sans-serif}#zoom-button{display:block;font-size:11px;min-height:31px;padding:3px}
.flight-panel,.board-enlarged .flight-panel{height:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"stats stats" "status status" "actions launch";padding:7px;gap:5px;overflow:visible;max-width:none;width:100%}.goal-card,.flight-panel>.panel-section:nth-child(2),.control-help,.completed-note{display:none!important}.run-stats{grid-area:stats;display:flex;align-items:center;justify-content:space-between;border:0;padding:0;gap:8px}.run-stats>div{display:flex;gap:5px;align-items:center}.run-stats small{font-size:7px;line-height:1}.run-stats strong{font-size:15px;line-height:1;margin:0}.game-status{grid-area:status;min-height:30px;font-size:14px;line-height:1.1;margin:0}.action-row{grid-area:actions;gap:4px;margin:0}.action-row button{font-size:13px;line-height:1;padding:5px 4px;min-height:35px}.launch{grid-area:launch;font-size:15px;line-height:1.1;padding:4px 7px;min-height:35px;min-width:133px;width:auto;box-shadow:1px 2px 0 #082f23}.launch img{width:21px;height:21px}.launch b{display:none}.cell.danger-next:before{inset:1px;border-width:1px}.trail-number{font-size:7px;min-width:9px;right:0;bottom:0}
footer{padding:10px 12px}.archive{margin-top:17px}.result-card{margin-top:17px}.text-page{padding-top:25px}.text-page .launch,dialog .launch{width:100%;grid-area:auto;min-height:42px}
}
@media(max-width:370px){.rotation-card small{font-size:7px}.legend{gap:6px;font-size:9px}.launch{min-width:115px;font-size:13px}.action-row button{font-size:12px}.intro h1{font-size:32px}}

/* Reveal the measured square after font metrics settle; avoid an initial size jump. */
.game-layout:not(.ready) .board-wrap{visibility:hidden}

/* Optional support links sit outside the framed play surface. */
.site-header nav a.support-nav{display:flex;align-items:center;gap:6px;justify-content:center;min-width:31px;min-height:30px;padding:3px 8px;background:var(--gold);color:#173f2c;border:1px solid #fff1ac;font-size:15px;line-height:1;text-decoration:none}
.support-nav>span:first-child{font:21px/1 Arial,sans-serif}.support-section{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;margin-top:18px;background:var(--panel);border:1px solid #819c73}
.support-section>div{display:flex;align-items:center;gap:13px}.support-section img{image-rendering:pixelated;flex-shrink:0}.support-section h2{font:24px/1.2 var(--hand);margin:0 0 4px;color:#f1e3a2}.support-section p{font:16px/1.4 var(--hand);color:var(--muted);margin:0}
.kofi-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 19px;background:var(--gold);border:1px solid #fff0ac;box-shadow:2px 3px 0 #082f23;color:#173f2c;text-decoration:none;font:20px/1.2 var(--hand);white-space:nowrap}.kofi-button:hover{background:#fff0a3}
footer{flex-wrap:wrap}footer nav{flex-wrap:wrap}
@media(max-width:760px){.site-header nav{gap:8px}.support-nav-text{display:none}.site-header nav a.support-nav{padding:2px;min-width:28px;min-height:28px}.support-nav>span:first-child{font-size:20px}.support-section{padding:14px;gap:14px;align-items:stretch;flex-direction:column}.support-section h2{font-size:21px}.support-section p{font-size:15px}.kofi-button{font-size:18px;align-self:flex-start}}

.site-header nav a,.site-header .nav-button{white-space:nowrap}.site-header nav{flex-shrink:0}
@media(max-width:360px){.site-header{padding-left:8px;padding-right:8px}.site-header .brand{font-size:17px;gap:4px}.site-header .brand img{width:24px;height:24px}.site-header nav{gap:6px}.site-header nav a,.site-header .nav-button{font-size:12px}.site-header nav a.support-nav{min-width:26px;min-height:26px}.support-nav>span:first-child{font-size:18px}}

/* Compact view controls, public-score dialog, and post-game route reveal. */
.board-head-actions,.board-view-actions{display:flex;align-items:center;gap:8px}.mini-icon{display:inline-grid;place-items:center;width:34px;height:34px;min-width:34px;padding:5px;border:1px solid #a5bd92;background:#174a32;color:#f4e6a2}.mini-icon svg{width:22px;height:22px;fill:currentColor}.mini-icon:hover{background:#2d6540}.board-view-actions #zoom-button{white-space:nowrap;min-height:34px;padding:5px 9px;border:1px solid #a5bd92;background:#174a32;color:#f4e6a2;font-size:14px}.board-view-actions #zoom-button:hover{background:#2d6540}.recommended-route-cell{box-shadow:inset 0 0 0 3px #fff08b!important;background-color:#a5a251!important;z-index:1}.recommended-route-line{stroke:#fff1a0;stroke-width:5;stroke-linecap:round;stroke-dasharray:2 9;filter:drop-shadow(0 0 3px #ffe878);animation:recommend-dash 1.2s linear infinite}.recommended-route-dot{fill:#fff8c5;stroke:#776d33;stroke-width:1.5;filter:drop-shadow(0 0 3px #ffe878)}
#leaderboard-dialog{text-align:left}#leaderboard-dialog h2{text-align:center;margin-bottom:12px}.leaderboard-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:13px 0}.leaderboard-tabs button{min-height:40px;background:#174a32;border:1px solid #92ac82;font-size:17px}.leaderboard-tabs button.active{background:var(--gold);color:#173f2c}.leaderboard-status{text-align:center;min-height:25px;font-size:15px}.leaderboard-list{list-style:none;padding:0;margin:12px 0 20px;max-height:245px;overflow:auto}.leaderboard-list li{display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:10px;padding:8px 10px;border-bottom:1px solid #557b54;font:17px var(--hand)}.leaderboard-list li>span:first-child{color:#d7ca76;font:12px var(--mono)}.leaderboard-list li strong{color:var(--gold);font:23px var(--hand)}.leaderboard-form{display:grid;gap:10px;border-top:1px solid #63845b;padding-top:15px}.leaderboard-form>label:first-child{font:14px var(--mono);color:var(--gold)}.leaderboard-form input[type=text],.leaderboard-form input:not([type]){width:100%;min-height:42px;padding:8px 10px;border:1px solid #92ac82;background:#0b3024;color:#fff4c7;font-size:16px}.leaderboard-consent{display:flex;align-items:flex-start;gap:9px;font:14px/1.4 var(--hand);color:#d6e2c6}.leaderboard-consent input{width:19px;height:19px;flex:0 0 auto;accent-color:#e9ce6b}.leaderboard-form>small{font:11px/1.45 var(--mono);color:#c0d3b5;letter-spacing:0}.leaderboard-form .launch{font-size:18px;min-height:42px}.board-head-actions #seed-pill{white-space:nowrap}
@keyframes recommend-dash{to{stroke-dashoffset:-22}}
html:fullscreen{background:#103d2b}html:fullscreen body{height:100%;overflow:hidden}body.game-fullscreen main{max-width:none;height:100dvh;padding:6px}body.game-fullscreen>.site-header,body.game-fullscreen main>.intro,body.game-fullscreen main>.mode-bar,body.game-fullscreen main>.result-card,body.game-fullscreen main>.archive,body.game-fullscreen main>.support-section,body.game-fullscreen main>#ad-slot,body.game-fullscreen>footer{display:none!important}body.game-fullscreen main>.game-layout{height:calc(100dvh - 12px);min-height:0;grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:minmax(0,1fr);gap:8px;margin:0}body.game-fullscreen .board-card,body.game-fullscreen .flight-panel{min-height:0;overflow:auto}body.game-fullscreen .board-wrap{min-height:0}
@media(max-width:760px){.board-card{margin-inline:-9px}.board-view-actions{gap:4px}.mini-icon{width:32px;height:32px;min-width:32px;padding:4px}.board-view-actions #zoom-button{min-height:32px;padding:4px 6px;font-size:11px}.board-foot{padding-left:6px;padding-right:6px}.direction-pad{gap:3px}.direction-pad button{width:34px;height:31px}body.game-fullscreen main{padding:0}body.game-fullscreen main>.game-layout{height:100dvh;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:4px}body.game-fullscreen .board-card{margin:0;overflow:hidden}body.game-fullscreen .flight-panel{overflow:visible}}
@media(max-width:360px){.board-view-actions{gap:3px}.board-view-actions #zoom-button{font-size:10px;padding:3px}.mini-icon{width:29px;height:29px;min-width:29px}.direction-pad button{width:31px}.board-head-actions{gap:4px}}
@media(prefers-reduced-motion:reduce){.recommended-route-line{animation:none}}
