@import url('/privacy/fonts.css');
:root{font-family:'DM Sans',sans-serif;color:#334c43;background:#f4efdf;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #bd693f;outline-offset:4px}#app{height:100dvh;min-height:500px;display:flex;flex-direction:column;padding:0 30px}header{height:88px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;font-size:15px;letter-spacing:2px;font-weight:700;color:inherit;text-decoration:none}.brand small{display:block;font-size:9px;letter-spacing:2.6px;font-weight:500;margin-top:6px;color:#849182}.stamp{font-size:24px;border:1px solid #a9b3a2;padding:5px 9px;transform:rotate(-8deg)}nav{display:flex;gap:10px}nav button{border:1px solid #cdd2bf;background:transparent;border-radius:30px;padding:9px 15px;font-size:12px}#sky{position:relative;flex:1;overflow:hidden;background:#d6e8de;border-radius:10px;isolation:isolate;touch-action:none;user-select:none;-webkit-user-select:none}canvas{width:100%;height:100%;display:block;image-rendering:pixelated}.route{position:absolute;top:28px;left:32px;pointer-events:none}.eyebrow{font-size:10px;letter-spacing:2.1px;font-weight:700;color:#647e6e}h1{font-family:Fraunces,Georgia,serif;font-size:clamp(25px,3vw,43px);font-weight:500;line-height:1.12;margin:12px 0 21px;letter-spacing:-1px}#stops{display:flex;gap:8px}.stop{font-size:10px;background:#f6f4df8c;padding:7px 10px;border-radius:20px;color:#778979}.stop.current{background:#354f44;color:#fff8e5}.stop.done{background:#dee5b8;color:#3a5741}#objective{position:absolute;top:26px;right:26px;display:flex;align-items:center;gap:13px;background:#fcf8e9e8;border:1px solid #ffffff70;border-radius:8px;padding:16px;max-width:390px;box-shadow:0 4px 16px #4c634509;pointer-events:none}.parcel{font-size:26px;color:#ad744c}#objective small{font-size:8px;letter-spacing:1.5px;display:block;color:#8b8e78}#objective strong{display:block;font-size:12px;font-weight:600;margin:5px 0}#hint{font-size:10px;display:block;line-height:1.5;color:#7a8571}#count{font-size:11px;white-space:nowrap;color:#81907c}.flight-bottom{position:absolute;bottom:20px;left:25px;right:25px;display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:.7px;color:#3c5848;pointer-events:none}.flight-bottom>span{background:#fbf6dfde;padding:9px 13px;border-radius:20px}#burner i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#899d83;margin-right:6px}#burner.on i{background:#ed9350;box-shadow:0 0 9px #ed9350}footer{height:62px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#8a9281;flex-shrink:0}footer b{font-size:9px;letter-spacing:1px;color:#566c59}.divider{margin:0 12px;color:#b6bdab}.footer-right>span{font-size:23px;margin-left:14px;color:#a9ae88}.veil{position:absolute;inset:0;background:#dce8d536;backdrop-filter:blur(3px);display:grid;place-items:center;z-index:4}.card{background:#fbf6e8f5;text-align:center;padding:35px 40px;border:1px solid #fffbe9;border-radius:12px;box-shadow:0 18px 70px #52644c22;max-width:440px;margin:20px}h2{font-family:Fraunces,Georgia,serif;font-size:39px;font-weight:500;line-height:1.08;letter-spacing:-1px;margin:14px 0 18px}.card p{font-size:13px;line-height:1.8;color:#788473}.lesson{display:flex;justify-content:center;gap:42px;margin:23px 0;font-size:26px;color:#a17c50}.lesson b{display:block;font-size:12px;margin-top:8px;color:#455e4c}.card .note{font-size:11px}.primary{display:block;background:#3b5949;color:#fff9e9;border:0;border-radius:6px;padding:14px 30px;margin:22px auto 0;font-size:13px;min-width:210px}.primary:hover{background:#4d6d55}.primary:disabled{opacity:.5}.text-button{display:block;border:0;background:none;font-size:11px;margin:18px auto 0;text-decoration:underline;text-underline-offset:4px}.hidden{display:none!important}#toast{position:absolute;bottom:72px;left:50%;transform:translateX(-50%);background:#fbf6e8f2;box-shadow:0 5px 25px #415d3520;padding:13px 22px;border-radius:7px;font-size:12px;text-align:center;opacity:0;transition:opacity .4s;pointer-events:none;max-width:90%;width:max-content}#toast.show{opacity:1}@media(max-width:900px){#objective{top:auto;bottom:65px;right:16px;max-width:290px;padding:11px}.route{top:20px;left:22px}#hint{max-width:205px}#toast{bottom:155px}}@media(max-width:540px){#app{padding:0 10px}header{height:67px}.brand{font-size:11px;letter-spacing:1.5px;gap:8px}.brand small{font-size:8px}.stamp{font-size:19px;padding:3px 6px}nav{gap:5px}nav button{font-size:10px;padding:8px 11px}.route{left:17px;top:18px}h1{font-size:27px;margin:9px 0 14px}.eyebrow{font-size:8px}.stop{font-size:8px;padding:6px 8px}#stops{gap:4px}#objective{left:14px;right:14px;max-width:none;bottom:62px}#count{margin-left:auto}.flight-bottom{left:12px;right:12px;bottom:14px;font-size:8px;gap:5px}.flight-bottom>span{padding:8px 9px}.altitude{display:none}footer{height:47px;font-size:9px;justify-content:center}.footer-right{display:none}.divider{margin:0 7px}footer b{font-size:8px}.card{padding:25px 22px;width:calc(100% - 38px)}h2{font-size:34px}.card p{font-size:12px}}@media(prefers-reduced-motion:reduce){#toast{transition:none}}

/* Keep the credit outside the flight surface and clear of header controls. */
header{position:relative;padding-top:18px}
.copyright{position:absolute;top:6px;left:0;right:0;text-align:center;font-size:11px;line-height:14px;color:#687b66;pointer-events:none}
@media (orientation:landscape){
  #objective{top:18px;right:18px;bottom:auto;left:auto;max-width:min(340px,42%);padding:12px}
}
/* A short top strip leaves the lower portrait sky open for flying. */
@media (orientation:portrait) and (max-width:900px){
  .route{top:13px;left:14px;right:14px}
  .route>.eyebrow,.route>h1{display:none}
  #objective{top:49px;right:14px;left:14px;bottom:auto;max-width:none;padding:8px 11px;gap:9px}
  #objective .parcel{font-size:20px}
  #objective small,#objective #hint{display:none}
  #objective strong{font-size:11px;line-height:1.4;margin:0}
  #count{margin-left:auto}
  #toast{bottom:65px}
}
@media(max-width:540px){header{height:82px}.copyright{font-size:10px}}

/* Credit sits inside the sky, centered above the flight overlays. */
header{padding-top:0}
#sky>.copyright{top:5px;color:#000;z-index:5;font-size:10px;line-height:14px}
@media (orientation:portrait) and (max-width:900px){
  .route{top:25px}
  #objective{top:61px}
}
@media(max-width:540px){header{height:67px}}

/* Homepage links keep the game’s existing typography and colors. */
.home-link{color:inherit;text-decoration:none;pointer-events:auto;touch-action:manipulation}
.home-link:hover{text-decoration:underline}
.home-link:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* Responsive play area — 2026-09-08 */
/* Fit the fixed-ratio boards to their actual remaining space. */
.arena,.garden,.shop{container-type:size}
#app,body>main{min-height:320px;padding-bottom:env(safe-area-inset-bottom);padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}
@supports(width:1cqh){
  .arena #stage,.garden #stage,.shop #stage{width:min(100cqw,calc(100cqh * var(--board-ratio)));height:auto;max-width:100%;max-height:100%;aspect-ratio:var(--board-ratio);align-self:center}
}
footer.cg-game-footer{display:flex;flex-direction:row;flex-wrap:nowrap;height:auto;min-height:48px;gap:8px;padding:2px 0;flex:0 0 auto;justify-content:space-between}
.cg-footer-copy{display:flex;align-items:center;justify-content:center;gap:4px 16px;flex:1;min-width:0;flex-wrap:wrap;text-align:center}
.cg-share-button.cg-share-compact{margin:0!important;padding:6px 12px!important;min-width:64px;min-height:44px;flex:0 0 auto}
@media(max-width:750px){.cg-footer-copy{gap:3px 10px}.cg-footer-copy small{width:100%}}
@media(max-height:550px) and (orientation:landscape){
  #app,body>main{min-height:280px}
  body>main>header{height:44px}
  body>main>header .brand small{display:none}
  .cg-footer-copy{font-size:9px}
}

#sky{min-height:0}
@media(max-height:550px) and (orientation:landscape){#sky .route{top:22px;left:14px}.route>h1,.route>.eyebrow{display:none}#objective{top:22px;padding:6px 9px}#objective small,#hint{display:none}.flight-bottom{bottom:8px}}
