/* Full available browser viewport, independent of the physical display size. */
html,body{width:100%;height:100%;min-height:0;overflow:hidden}body{display:block;height:100dvh;padding:max(5px,env(safe-area-inset-top)) max(5px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(5px,env(safe-area-inset-left));overscroll-behavior:none}.app{width:100%;max-width:none;height:100%;margin:auto;display:flex;flex-direction:column;gap:5px;min-height:0}.topbar{flex:0 0 40px;margin:0 5px;min-height:0}.brand{font-size:13px}.brand small{font-size:8px}.game-frame{flex:1;display:flex;flex-direction:column;min-height:0;border-radius:16px}.hud{flex:0 0 52px;height:auto;min-width:0;padding:0 12px;gap:8px}.play-area{flex:1;display:flex;min-height:0;min-width:0;width:100%;padding:0;align-items:stretch}.stage,.expanded .stage,.app:fullscreen .stage,.play-area .stage{flex:1;min-height:0;min-width:0;width:100%!important;height:100%;aspect-ratio:auto!important;margin:0;flex-shrink:1}.stage>canvas{width:100%;height:100%;object-fit:fill}.progress-track{flex:0 0 3px}.footer,.author-credit,.rotate-hint{display:none!important}.playing .topbar,.playing .site-footnote{display:none}.site-footnote{display:flex;align-items:center;justify-content:space-between;gap:10px;flex:0 0 26px;padding:0 8px;font-size:11px;color:#b7d0bc}.site-footnote button{background:transparent;color:#f1da9e;font-size:12px;padding:5px}.orientation-button{width:32px}.location{max-width:280px}.location strong{font-size:11px}.hud-group{gap:10px}.hud-group.right{gap:7px}
/* One composed menu panel, with a connected navigation list. */
.start-screen{background:linear-gradient(90deg,#143f3933,#143f3966);padding:12px;overflow:auto}.title-content{width:min(650px,92%);padding:22px 28px!important;border-radius:22px;border:1px solid #b6cc9580;background:#173f38e8;box-shadow:0 14px 45px #0c302e66}.start-screen h1{font-size:clamp(27px,3.3vw,45px);letter-spacing:2px}.start-screen h1 span{font-size:1.05em;letter-spacing:2px}.start-screen h1 em{font-style:normal;font-size:.48em;letter-spacing:2px;display:inline-block;vertical-align:middle;border:1px solid #dcbf78;border-radius:7px;padding:5px;color:#f8e8b3}.start-screen .intro{margin:12px 0}.start-screen .eyebrow{background:none;padding:0;font-size:9px;color:#cfdfa7;margin-bottom:8px}.main-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:18px 0 0;max-width:none;border:1px solid #789b7566;border-radius:12px;overflow:hidden}.main-links button{border:0;border-right:1px solid #789b7544;border-bottom:1px solid #789b7544;border-radius:0;min-height:43px;padding:8px 5px;background:#264f42;font-size:10px;letter-spacing:.4px}.main-links button:nth-child(3n){border-right:0}.main-links button:nth-last-child(-n+3){border-bottom:0}.main-links button:hover{background:#426b50}.start-hint{margin:12px 0 0;font-size:11px}.edition{display:none}.title-content .primary{min-height:47px;box-shadow:0 3px #b18547;margin:0 auto;width:100%;max-width:330px}.panel-screen{inset:0;position:absolute;padding:20px;touch-action:pan-y}.about-copy{max-width:850px;margin:auto;color:#e0e8cc;font-size:15px;line-height:1.65}.about-copy h3{color:#f6d88b;margin:26px 0 8px}.about-copy a{color:#ffdc88;overflow-wrap:anywhere}.instructions{width:100%;border-collapse:collapse;font-size:14px}.instructions td,.instructions th{padding:10px 8px;text-align:left;border-bottom:1px solid #728e6955}.instructions th{color:#f6d88b}.save-transfer{margin-top:15px;padding-top:9px;border-top:1px solid #789b7555}.save-transfer button{font-size:11px}.intro-card canvas{max-height:62dvh}.intro-card h1{margin-top:8px}
@media(pointer:coarse){.app{max-width:none}.touch-controls{flex:0 0 112px;min-height:0;position:relative;inset:auto;display:flex;justify-content:space-between;align-items:center;padding:12px;gap:6px;border-top:1px solid #71907355;background:linear-gradient(#224b40,#183d38)}.touch-controls button{width:58px;height:70px;border-radius:18px;border:1px solid #afc29b;box-shadow:0 4px 0 #102e2c;opacity:1}.touch-controls .jump{width:78px;height:82px}.touch-controls .fire{width:58px;height:67px}.touch-controls .fart{position:static;width:34px;height:36px;font-size:20px}.directions,.action-controls{position:static;display:flex;flex-direction:row;transform:none;gap:6px}.touch-controls small{font-size:9px}.stage-bottom{font-size:8px;bottom:6px;left:9px;right:9px}.toast{font-size:12px;max-width:88%;padding:10px 14px}.site-footnote span{display:none}.site-footnote{justify-content:center}.local-tag{display:none}.brand{font-size:11px;letter-spacing:1px}.brand-mark{width:32px;height:32px;font-size:23px}.brand small{font-size:7px}.playing .app{margin-top:0}.playing .game-frame{border-radius:8px}}
@media(pointer:coarse) and (orientation:portrait){.play-area{flex-direction:column}.stage,.play-area .stage{height:auto}.hud{flex-basis:62px;grid-template-columns:1fr 1fr;padding:23px 10px 3px;position:relative}.location{max-width:none;position:absolute;top:5px;left:8px;right:8px;display:flex;justify-content:center;align-items:center;gap:7px}.location strong{font-size:11px}.location>span{font-size:7px;margin:0}.hud-group{gap:6px}.hud-group.right{gap:5px}.hud-item strong{font-size:14px}.hud-button{width:29px;height:31px}.heart{font-size:22px}.form-status{font-size:7px;padding:4px}.money>span{font-size:23px}.stars-hud{font-size:11px}.screen-heading h2{font-size:22px}.panel-screen{position:absolute;inset:0;border:0;border-radius:0;padding:15px}.title-content{width:100%;padding:20px 13px!important}.start-screen h1{font-size:30px}.main-links{margin-top:13px}.main-links button{font-size:10px;min-height:46px}.start-screen .intro{font-size:14px}.start-hint{display:block}.about-copy{font-size:14px}.instructions{font-size:12px}.instructions td,.instructions th{padding:9px 5px}}
@media(pointer:coarse) and (orientation:landscape){.hud{flex-basis:38px;padding:0 9px;grid-template-columns:1fr auto 1fr}.hud-item strong{font-size:13px}.location{position:static;display:block;max-width:220px}.location strong{font-size:10px}.location>span{font-size:6px}.play-area{display:grid;grid-template-columns:92px minmax(0,1fr) 88px;min-height:0;padding:0}.play-area .stage{grid-column:2;height:100%;width:100%!important}.touch-controls{position:absolute;inset:0;display:block;padding:0;border:0;background:none;pointer-events:none}.touch-controls button{pointer-events:auto;width:44px;height:63px}.directions{position:absolute;left:0;top:50%;width:92px;justify-content:center;transform:translateY(-50%);gap:2px}.action-controls{position:absolute;right:10px;top:50%;flex-direction:column-reverse;transform:translateY(-57%);gap:9px}.touch-controls .jump{width:66px;height:66px}.touch-controls .fire{width:57px;height:48px}.touch-controls .fart{position:absolute;right:26px;bottom:6px;width:33px;height:30px}.site-footnote{flex-basis:20px}.site-footnote button{font-size:10px;padding:2px}.topbar{display:none}.portrait-layout .play-area{display:flex;flex-direction:column}.portrait-layout .touch-controls{position:relative;inset:auto;display:flex;flex-basis:94px;padding:8px 20px;pointer-events:auto}.portrait-layout .directions,.portrait-layout .action-controls{position:static;transform:none;width:auto;flex-direction:row}.portrait-layout .touch-controls .fart{position:static}.portrait-layout .stage{height:auto}}
@media(orientation:landscape) and (max-height:560px){.start-screen{padding:8px}.title-content{width:min(850px,96%);padding:14px 18px!important;display:grid;grid-template-columns:1fr 1.15fr;column-gap:20px;align-items:center}.start-screen h1{font-size:27px;grid-column:1;grid-row:1}.start-screen .intro,.start-screen .eyebrow,.start-hint{display:none}.title-content .primary{grid-column:1;grid-row:2;margin-top:10px;min-height:40px;font-size:13px;padding:9px}.main-links{grid-column:2;grid-row:1 / span 2;margin:0}.main-links button{font-size:9px;min-height:41px}.intro-card canvas{max-height:59dvh}.intro-card h1{font-size:15px}.intro-card strong{font-size:28px}.intro-brand{font-size:13px}}

/* Override older compact-menu and manual-orientation selectors as well. */
.start-screen .main-links{max-width:none;gap:0}.start-screen .main-links button{min-height:43px}.portrait-layout .play-area{display:flex;flex-direction:column;min-height:0;padding:0}.portrait-layout .play-area .stage{flex:1;height:auto}

@media(pointer:coarse) and (orientation:landscape){body:not(.playing) .play-area{grid-template-columns:minmax(0,1fr)}body:not(.playing) .play-area .stage{grid-column:1}}
