500;600;700&family=Nunito:wght@700;800;900;1000&family=Noto+Sans+JP:wght@400;500;600;700;800;900&display=swap');

/* Preserve the authored game palette when the device requests dark mode. */
:root{color-scheme:only light;--ink:#294e3c;--soft:#788377;--paper:#f6f5ee;--green:#315b41;--lime:#e6ecad;--line:#dde0d4;font-family:'DM Sans','Noto Sans JP',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid #d2934a;outline-offset:4px}button{border:0}button:disabled{cursor:default}button:active{transform:translateY(2px)}.hidden{display:none!important}.site-header{height:104px;max-width:1440px;padding:0 62px;margin:auto;display:flex;align-items:center;justify-content:space-between}.wordmark{display:flex;align-items:center;gap:10px;font:900 19px 'Nunito',sans-serif;letter-spacing:-.6px;text-decoration:none;color:var(--ink)}.wordmark img{width:37px;height:37px}.wordmark-jp{display:block;font:600 9px 'Noto Sans JP',sans-serif;letter-spacing:3px;margin:1px 0 0 2px}.header-note{font-size:10px;letter-spacing:2px;display:flex;align-items:center;gap:10px;color:#758170}.header-note i,.status-dot{width:6px;height:6px;background:#98ad73;border-radius:50%;display:inline-block}.text-button{background:none;color:var(--ink);font-size:11px;letter-spacing:1px;padding:10px 0}.text-button span{padding-left:17px;font-size:16px}.layout{display:flex;justify-content:center;align-items:center;padding:10px 24px 25px;margin:0 auto}.intro{align-self:center;padding-bottom:15px}.eyebrow{font-size:9px;font-weight:700;line-height:1.9;letter-spacing:2.2px;color:#7e8978}.intro h1{font-size:48px;line-height:1.52;letter-spacing:-2px;margin:29px 0 24px;font-weight:800;white-space:nowrap}.intro h1 span{position:relative}.intro h1 span:after{position:absolute;content:'';height:8px;border:2px solid #bccb8c;border-color:#bccb8c transparent transparent transparent;border-radius:50%;width:105%;bottom:-12px;left:0;transform:rotate(-4deg)}.intro p{font-size:12px;line-height:2.5;letter-spacing:1.2px;color:#718171}.little-flower{font-size:61px;color:#c2cd97;margin:28px 0 30px 26px;display:inline-block;transform:rotate(12deg)}.intro-bottom{display:flex;align-items:center;gap:12px;font-size:9px;letter-spacing:1px;white-space:nowrap;color:#8a9380}.line{width:23px;height:1px;background:#afb99d}.game-shell{width:400px}.game{width:100%;height:min(740px,calc(100svh - 171px));min-height:570px;position:relative;overflow:hidden;background:#e4edcf;border:6px solid #fffef9;border-radius:32px;box-shadow:0 20px 60px #344b3212,0 3px 12px #344b320c;isolation:isolate;user-select:none;-webkit-user-select:none;touch-action:auto}.game:after{content:'';position:absolute;inset:0;box-shadow:inset 0 0 0 1px #42664312;border-radius:26px;pointer-events:none;z-index:20}canvas{display:block;width:100%;height:100%;touch-action:none}.game-top{position:absolute;top:21px;left:21px;right:17px;display:flex;justify-content:space-between;align-items:center;z-index:3;pointer-events:none}.zone-label{font-size:10px;font-weight:600;letter-spacing:1.3px;display:flex;align-items:center;gap:7px;opacity:.85}.zone-dot{width:7px;height:7px;background:#779b63;border-radius:50%}.top-actions{display:flex;gap:7px;pointer-events:auto}.round-button{border:1px solid #52633b22;color:var(--ink);width:31px;height:31px;border-radius:50%;background:#fffdf45c;display:grid;place-items:center;padding:7px}.round-button svg{width:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sound-waves{display:none}#sound[aria-pressed=true] .sound-waves{display:block}#sound[aria-pressed=true] .sound-slash{display:none}.title-screen{position:absolute;inset:0;z-index:2;pointer-events:none;display:flex;flex-direction:column;justify-content:space-between;align-items:center;text-align:center}.title-heading{margin-top:78px}.title-kicker{font-size:12px;letter-spacing:5px;font-weight:700;margin-bottom:13px}.title-heading h2{font-family:'Nunito',sans-serif;font-size:65px;font-weight:1000;line-height:.9;letter-spacing:-3.5px;margin:0;transform:rotate(-5deg);text-shadow:0 3px 0 #fff8dc}.title-heading h2>span{display:block;color:#5d7d45;position:relative}.title-flower{font-family:sans-serif;position:absolute;font-size:31px;color:#d59b4f;right:-31px;top:1px;transform:rotate(10deg);text-shadow:none}.title-heading p{font-size:11px;letter-spacing:1.8px;margin-top:24px;color:#637752}.title-bottom{width:calc(100% - 86px);padding-bottom:22px;pointer-events:auto}.best-badge{font:700 9px 'DM Sans',sans-serif;letter-spacing:1.8px;display:table;margin:0 auto 15px;background:#fafbecb3;padding:7px 13px;border-radius:30px;color:#67744f}.best-badge span{font-size:13px;letter-spacing:0;margin-left:7px}.best-badge small{font-size:9px;margin-left:2px;letter-spacing:0}.primary-button{display:flex;align-items:center;justify-content:center;position:relative;border-radius:17px;background:var(--green);color:#fffeec;min-height:56px;width:100%;font-size:15px;font-weight:700;letter-spacing:2px;box-shadow:0 4px 0 #203d2c;transition:background .18s,transform .18s}.primary-button:hover{background:#3c6b4b}.primary-button>span{position:absolute;right:19px;font:400 22px 'DM Sans',sans-serif;color:#cedcaf}.how-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;background:transparent;color:#52674a;font-size:11px;font-weight:600;letter-spacing:1px;padding:18px 5px 11px}.how-button>span{font:600 9px 'DM Sans',sans-serif;border:1px solid #78907185;border-radius:50%;width:14px;height:14px;display:grid;place-items:center}.touch-note{font-size:9px;letter-spacing:.8px;color:#75856b;margin:8px 0 0;display:flex;align-items:center;justify-content:center;gap:6px}.touch-note svg{width:24px;height:20px;stroke:#738a69;fill:none;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}.device-caption{display:flex;align-items:center;justify-content:center;gap:8px;font-size:7px;font-weight:600;letter-spacing:1px;color:#8c9686;margin-top:16px;white-space:nowrap}.status-dot{width:4px;height:4px}.caption-divider{color:#bec5b4;margin:0 3px}.field-notes{padding:40px 0 0 0;align-self:center}.note-line{height:1px;width:35px;background:#c6cfb5;margin:18px 0 24px}.field-notes h2{font-size:22px;letter-spacing:1px;line-height:1.7;font-weight:600;margin:0;white-space:nowrap}.bounce-diagram{height:197px;display:flex;align-items:flex-end;position:relative;margin:29px 0 21px;width:167px;gap:13px}.diagram-drop{position:relative;height:126px;padding-bottom:9px;color:#9ca78c}.diagram-drop>span{font-size:10px;letter-spacing:2px;position:absolute;top:-8px;left:10px;white-space:nowrap}.diagram-drop svg{height:103px;width:41px;margin-top:12px;fill:none;stroke:#b2bda3;stroke-width:1.8;stroke-dasharray:3 5;stroke-linecap:round}.diagram-spring{font-size:40px;line-height:.5;position:absolute;bottom:-5px;left:30px;transform:rotate(-8deg);color:#788f58}.diagram-spring span{position:absolute;top:24px;left:3px;font-size:9px;line-height:1;letter-spacing:2px;white-space:nowrap;color:#8f9b7f}.diagram-jump{position:relative;margin-left:7px;color:#69844e}.diagram-jump strong{font:800 26px 'Nunito',sans-serif;position:absolute;top:10px;left:46px;transform:rotate(6deg)}.diagram-jump svg{height:180px;width:48px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.field-notes p{font-size:10px;line-height:2.2;letter-spacing:.8px;margin-top:42px;color:#7f8b75;white-space:nowrap}.note-foot{display:block;font-size:7px;font-weight:600;letter-spacing:1.2px;line-height:1.8;max-width:170px;margin-top:24px;color:#a1aa95}.site-footer{display:flex;align-items:center;justify-content:center;max-width:1440px;padding:17px 62px 26px;margin:auto;font-size:8px;letter-spacing:1.2px;color:#a2aa99}.site-footer>span:nth-child(2){font-size:9px;letter-spacing:1px}.footer-star{font-size:16px;color:#aebb91;margin-left:9px;vertical-align:middle}
.hud{position:absolute;top:66px;left:24px;right:24px;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none;z-index:3}.height{font:800 38px/.95 'Nunito',sans-serif;letter-spacing:-1px}.height small{font-size:15px;margin-left:3px}.height>div{font:500 8px 'Noto Sans JP',sans-serif;letter-spacing:1px;margin-top:7px;color:#7a8968}.hud-right{text-align:right}.hearts{font-size:27px;letter-spacing:1px;color:#d88976;text-shadow:0 1px 0 #fff5e7}.hearts .lost{color:#a1ad903d}.gem-count{margin-top:8px;font:600 13px 'Nunito',sans-serif;color:#6c7b49}.gem-count>span{color:#c7a644;font-size:17px;vertical-align:-1px;margin-right:4px}.spring-meter{position:absolute;bottom:23px;width:184px;left:50%;transform:translateX(-50%);z-index:2;pointer-events:none;background:#fffbeaeb;padding:10px 13px 11px;border-radius:14px;box-shadow:0 3px 15px #557c3420}.spring-meter-label{display:flex;justify-content:space-between;gap:7px;font-size:9px;font-weight:700;letter-spacing:.5px;margin-bottom:6px}.meter-track{height:5px;border-radius:5px;background:#dfe5c8;overflow:hidden}.meter-track>div{height:100%;width:0;background:#c7a555;border-radius:5px;transition:background .2s}.spring-meter.ready .meter-track>div{background:#6f9955}.spring-meter.ready .spring-meter-label{color:#5d883d}.power-banner{position:absolute;top:139px;text-align:center;left:0;right:0;color:#668746;pointer-events:none;font:900 18px 'Nunito',sans-serif;letter-spacing:1px;animation:power-in .25s ease-out}.power-banner>span{color:#ba983e;margin:0 6px}.power-banner small{display:block;font:600 10px 'Noto Sans JP',sans-serif;letter-spacing:1px;margin-top:5px}.hint{position:absolute;bottom:25px;left:20px;right:20px;text-align:center;font-size:10px;letter-spacing:.3px;padding:12px 4px;background:#fffdeeeb;border-radius:16px;color:#687b55;pointer-events:none}.toast{position:absolute;top:45%;left:50%;transform:translate(-50%,-50%) scale(.9);z-index:4;opacity:0;transition:opacity .25s,transform .25s;background:#fcf8e5ed;padding:11px 20px;border-radius:30px;color:#517343;font-size:12px;font-weight:700;white-space:nowrap;pointer-events:none;box-shadow:0 3px 20px #39563d13}.toast.visible{opacity:1;transform:translate(-50%,-50%) scale(1)}.modal-backdrop{position:absolute;inset:0;z-index:10;background:#263f3359;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:23px;touch-action:auto}.modal{background:#fffcee;border:1px solid #fffdf9;border-radius:25px;padding:29px 23px 22px;width:100%;position:relative;box-shadow:0 16px 50px #20332222;max-height:calc(100% - 30px);overflow-y:auto;touch-action:pan-y}.modal>.eyebrow{font-size:8px;letter-spacing:1.8px}.modal h2{font-size:24px;font-weight:800;letter-spacing:.2px;margin:9px 0 24px}.close-button{width:30px;height:30px;border-radius:50%;background:#eaf0d9;color:#6c7d58;font-size:22px;line-height:1;position:absolute;right:15px;top:15px}.rule{display:flex;align-items:center;gap:13px;margin:22px 0}.rule-icon{flex-shrink:0;border-radius:16px;background:#e9eed4;color:#5f8050;font:700 29px 'Nunito',sans-serif;width:42px;height:48px;display:grid;place-items:center}.spring-icon{background:#f2e9c3;color:#b19443}.star-icon{background:#f2e1d1;color:#b77e5e}.rule h3{font-size:11px;letter-spacing:.2px;margin:0 0 6px}.rule p{font-size:9px;line-height:1.95;color:#7a856c;margin:0;letter-spacing:.15px}.help-tip{background:#f0f0d9;border-radius:10px;font-size:9px;line-height:1.8;padding:10px;text-align:center;color:#82906c;margin:22px 0 20px}.modal .primary-button{min-height:49px;font-size:12px;border-radius:14px}.keyboard-note{font-size:7px;text-align:center;color:#9a9e85;margin:17px 0 0;line-height:1.6}.pause-card,.result-card{text-align:center;padding:33px 26px 22px}.pause-card h2{margin:8px 0 28px}.pause-card p{font-size:11px;color:#899276;margin:0 0 33px}.secondary-button{width:100%;border:1px solid #d9dfc4;background:transparent;border-radius:13px;color:#71835e;font-size:11px;padding:14px;margin-top:14px}.result-card h2{margin:20px 0 17px}.result-height{font:900 69px/1 'Nunito',sans-serif;letter-spacing:-3px}.result-height small{font-size:22px;margin-left:7px;letter-spacing:0}.result-caption{font-size:9px;letter-spacing:1px;color:#889174;margin:7px 0 28px}.result-stats{display:flex;justify-content:space-between;border-top:1px solid #e2e5d1;border-bottom:1px solid #e2e5d1;padding:19px 0;margin-bottom:26px;font-size:8px;color:#7e8a6d;gap:8px}.result-stats strong{display:block;font:800 22px 'Nunito',sans-serif;color:#57734b;margin-top:7px}.result-stats small{font-size:10px}.playing .game-top{top:19px}.playing .zone-label{font-size:9px}.playing canvas{cursor:crosshair}@keyframes power-in{from{transform:translateY(10px) scale(.8);opacity:0}to{transform:translateY(0) scale(1);opacity:1}}
@media(min-width:1450px){.layout{max-width:1260px}.game-shell{width:420px}.game{height:min(790px,calc(100svh - 175px))}.intro h1{font-size:53px}}
@media(max-width:1100px){.layout{max-width:990px;padding-left:27px;padding-right:27px}.game-shell{width:380px}.site-header{padding:0 35px;height:88px}.intro h1{font-size:37px}.field-notes h2{font-size:19px}.intro p{font-size:10px}.header-note{font-size:9px}.game{height:calc(100svh - 157px);max-height:750px}.site-footer{padding:13px 35px 20px}}
@media(max-width:850px){.layout{max-width:720px}.game-shell{width:390px}.field-notes{display:none}.header-note{display:none}.site-footer>span:nth-child(2){display:none}}
@media(max-width:700px){html,body{width:100%;height:100%;overflow:hidden;background:#e8edcf}.site-header,.intro,.field-notes,.site-footer,.device-caption{display:none}.layout{display:block;padding:0;margin:0;height:100%;max-width:none}.game-shell{height:100%;width:100%;max-width:480px;margin:auto}.game{border:0;border-radius:0;min-height:0;width:100%;height:100svh;max-height:none;box-shadow:none}.game:after{border-radius:0}.game-top{top:calc(19px + env(safe-area-inset-top));left:24px;right:23px}.playing .game-top{top:calc(19px + env(safe-area-inset-top))}.hud{top:calc(68px + env(safe-area-inset-top))}.title-heading{margin-top:calc(98px + env(safe-area-inset-top))}.title-heading h2{font-size:74px}.title-heading p{margin-top:27px}.title-bottom{padding-bottom:calc(28px + env(safe-area-inset-bottom));max-width:310px;width:calc(100% - 84px)}.title-bottom .primary-button{min-height:60px}.title-kicker{font-size:13px;margin-bottom:17px}.spring-meter{bottom:calc(26px + env(safe-area-inset-bottom))}.hint{bottom:calc(26px + env(safe-area-inset-bottom))}.modal-backdrop{padding:28px}.modal{max-width:340px}.power-banner{top:calc(145px + env(safe-area-inset-top))}}
@media(max-height:690px){.title-heading{margin-top:62px}.title-heading h2{font-size:58px}.title-heading p{margin-top:18px;font-size:10px}.title-kicker{margin-bottom:11px}.title-bottom{padding-bottom:17px}.title-bottom .primary-button{min-height:49px}.best-badge{margin-bottom:10px;padding:5px 12px}.touch-note{margin-top:3px}.how-button{padding-top:13px}.help-card{padding:23px 20px 17px}.modal h2{margin-bottom:18px;font-size:22px}.rule{margin:17px 0}.help-tip{margin:16px 0}.keyboard-note{margin-top:13px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
#help-modal{z-index:11}
.help-tip-heart{color:#c87589;font-size:12px}

/* The Japanese title is the game's only wordmark. */
.wordmark-name{font:900 20px 'Noto Sans JP',sans-serif;letter-spacing:1px}
.title-heading .title-kicker{font-size:9px;letter-spacing:1.7px;margin-bottom:17px}
.title-heading .game-title{position:relative;font-family:'Noto Sans JP',sans-serif;font-size:clamp(44px, 14vw, 56px);font-weight:900;line-height:1.25;letter-spacing:-2px;white-space:nowrap;color:#4f733f;text-shadow:0 4px 0 #fff6d8,0 6px 0 #8fa56535;transform:rotate(-4deg)}
.title-heading .game-title>.title-flower{position:absolute;display:block;right:-19px;top:-9px;font:400 24px/1 sans-serif;color:#d59b4f;transform:rotate(13deg);text-shadow:none}
.title-sound-hint{margin:5px 0 0;color:#839174;font-size:8px;line-height:1.5;letter-spacing:.4px;pointer-events:none}

/* The whole playfield accepts swipes; interactive buttons sit above it. */
.game{--swipe-zone-height:100%}
.game-top{z-index:6}
.game.playing canvas{height:100%;cursor:default}
.game.playing .spring-meter{bottom:calc(104px + env(safe-area-inset-bottom, 0px));z-index:6}
.swipe-zone.is-guiding~.spring-meter{bottom:calc(188px + env(safe-area-inset-bottom, 0px))}
.swipe-zone{
  position:absolute;left:0;right:0;bottom:0;height:var(--swipe-zone-height);z-index:5;
  background:linear-gradient(to bottom, transparent 85%, #f4f5e44d);
  touch-action:none;cursor:ew-resize;overflow:hidden;
}
.swipe-zone>*{pointer-events:none}
.swipe-zone-label{
  position:absolute;left:0;right:0;bottom:calc(20px + env(safe-area-inset-bottom, 0px));height:72px;
  display:flex;align-items:center;justify-content:center;gap:28px;z-index:12;pointer-events:none;
  color:#587147;font-size:10px;font-weight:600;letter-spacing:.4px;white-space:nowrap;
  padding:0 24px;background:#fffde9a8;text-shadow:0 1px 0 #fffdeb;
}
.swipe-zone-label>svg{display:block;flex:1;min-width:0;width:0;height:24px;overflow:visible;fill:none;stroke:#93a279;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.swipe-zone-label path{vector-effect:non-scaling-stroke}
.swipe-zone.is-guiding:not(.hidden):not(.is-paused)~.swipe-zone-label{bottom:calc(104px + env(safe-area-inset-bottom, 0px))}
/* Keep modal buttons above the persistent, non-interactive arrow strip. */
.game.playing>.modal-backdrop{padding-bottom:calc(112px + env(safe-area-inset-bottom, 0px))}
.swipe-guide{position:absolute;left:18px;right:18px;bottom:calc(22px + env(safe-area-inset-bottom, 0px));height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.swipe-guide-motion{position:relative;width:190px;height:65px;flex:none}
.swipe-guide-trail{position:absolute;left:12px;right:12px;top:13px;height:1px;border-top:2px dashed #a8b68d9c}
.swipe-guide-trail>span{position:absolute;top:-14px;font:400 24px/1 'DM Sans',sans-serif;color:#8a9e70}
.swipe-guide-trail>span:first-child{left:-9px}
.swipe-guide-trail>span:last-child{right:-9px}
.swipe-guide-hand{position:absolute;left:calc(50% - 21px);top:0;width:52px;height:62px;overflow:visible;filter:drop-shadow(0 3px 2px #607c4620);animation:swipe-demo 2.4s ease-in-out infinite}
.swipe-contact{fill:#abc18d3d;stroke:#9cad7e;stroke-width:1.5}
.swipe-hand-shape{fill:#fffbea;stroke:#71815d;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.swipe-hand-detail{stroke:#adb592;stroke-width:1.5;stroke-linecap:round}
.swipe-guide p{margin:0;color:#637b52;font-size:9px;line-height:1.5;letter-spacing:.5px;text-align:center;white-space:nowrap;padding:3px 8px;background:#fffde9a8;border-radius:12px}
.swipe-zone.is-paused .swipe-guide-hand{animation-play-state:paused}
@keyframes swipe-demo{0%,100%{transform:translateX(-50px) rotate(-6deg)}50%{transform:translateX(50px) rotate(6deg)}}
@media(prefers-reduced-motion:reduce){.swipe-guide-hand{transform:translateX(0);animation:none}}

/* The introductory route teaches entirely through motion, stars and the dragon. */
.game.is-tutorial .zone-label,
.game.is-tutorial .goal-progress,
.game.is-tutorial .spring-meter,
.game.is-tutorial .power-banner,
.game.is-tutorial .goal-bonus,
.game.is-tutorial .toast,
.game.is-tutorial .stage-celebration,
.game.is-tutorial .swipe-guide p,
.game.is-tutorial .pause-card>.eyebrow,
.game.is-tutorial .pause-card>p{display:none!important}
.game.is-tutorial .top-actions{margin-left:auto}
.clear-heart-flights{position:absolute;inset:0;z-index:8;pointer-events:none;direction:ltr;overflow:hidden}
.clear-heart-flight{position:absolute;left:0;top:0;width:32px;height:32px;pointer-events:none;filter:drop-shadow(0 2px 4px #9e4f6550);transform-origin:center}
body:has(.game.is-tutorial) .intro,
body:has(.game.is-tutorial) .field-notes,
body:has(.game.is-tutorial) .device-caption{visibility:hidden}

/* A small trail to the summit, above the touch layer but never intercepting it. */
.goal-progress{position:absolute;top:calc(152px + env(safe-area-inset-top, 0px));right:8px;width:44px;height:clamp(200px, 43%, 360px);z-index:7;display:flex;flex-direction:column;align-items:center;gap:10px;pointer-events:none;color:#567347;text-align:center;text-shadow:0 1px 3px #fffdece6}
.goal-progress *{pointer-events:none}
.goal-destination{display:flex;flex-direction:column;align-items:center;gap:2px;flex:none}
.goal-flag{width:20px;height:22px;stroke:#708458;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #fffcebbc)}
.goal-flag path+path{fill:#d7b15c;stroke:#ad8d42}
.goal-destination>span{font-size:8px;font-weight:700;letter-spacing:1px}
.goal-destination>b{font:800 10px 'Nunito',sans-serif;letter-spacing:.1px}
.goal-track{position:relative;flex:1;min-height:80px;width:5px;border-radius:5px;background:#506d4930;box-shadow:0 0 0 2px #fffeeb73}
.goal-fill{position:absolute;left:0;right:0;bottom:0;height:0;border-radius:5px;background:linear-gradient(to top, #95af6c, #c9b167)}
.goal-marker{position:absolute;left:50%;bottom:0;transform:translate(-50%, 50%);width:15px;height:14px;border:1.5px solid #6d8553;border-radius:50% 50% 40% 40%;background:#fffbe4;box-shadow:0 2px 5px #36542c25}
.goal-marker:before{content:'';position:absolute;left:3px;top:4px;width:2px;height:3px;border-radius:50%;background:#526545;box-shadow:5px 0 #526545}
.goal-marker:after{content:'';position:absolute;left:3px;bottom:-4px;width:6px;height:2px;border-top:1px solid #8c9b64;border-bottom:1px solid #8c9b64}
.goal-progress.is-descending .goal-fill{top:0;bottom:auto;background:linear-gradient(to bottom,#e1c386,#a8a1cf)}
.goal-progress.is-descending .goal-flag{transform:rotate(180deg)}
.checkpoint-marker{position:absolute;right:9px;bottom:50%;transform:translateY(50%);display:grid;place-items:center;width:21px;height:21px;border:1px solid #8da27688;border-radius:50%;background:#fff9e4;color:#82946b;font:800 13px/1 'Nunito',sans-serif}
.checkpoint-marker:after{content:attr(data-label);position:absolute;top:23px;width:64px;font:700 8px/1.2 sans-serif;white-space:normal;overflow-wrap:anywhere;text-align:center}
.checkpoint-marker.is-active{background:#dedede;color:#686868;border-color:#9b9b9b}
.goal-distance{flex:none;min-width:44px;padding:4px 2px 5px;border-radius:10px;background:#fffcebb8;box-shadow:0 2px 8px #536b3220;line-height:1.2}
.goal-distance>span{font-size:8px;letter-spacing:1px}
.goal-distance b{font:800 14px 'Nunito',sans-serif;font-variant-numeric:tabular-nums}
.goal-distance small{font:700 9px 'Nunito',sans-serif;margin-left:1px}
.goal-bonus{position:absolute;top:calc(148px + env(safe-area-inset-top, 0px));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 112px);padding:9px 13px;border:1px solid #d9c58780;border-radius:14px;background:#fff9dce6;box-shadow:0 3px 14px #75633510;text-align:center;color:#927431;pointer-events:none;z-index:4}
.goal-bonus strong{display:block;font-size:12px;line-height:1.5;letter-spacing:.4px}
.goal-bonus span{display:block;margin-top:3px;font-size:9px;line-height:1.5;white-space:nowrap}
.help-goal{margin:-12px 0 17px;font-size:9px;color:#879159;line-height:1.7;letter-spacing:.1px}

/* Stage celebrations leave the summit character and doorway in view. */
.stage-label{position:absolute;left:0;top:-21px;padding:3px 7px;border:1px solid #879a6133;border-radius:12px;background:#fffceda1;color:#7c8b57;font:800 8px/1.1 'Nunito',sans-serif;letter-spacing:1px;white-space:nowrap}
.stage-celebration{position:absolute;left:50%;top:calc(clamp(136px, 22%, 186px) + 18px);transform:translateX(-50%);width:min(280px, calc(100% - 112px));z-index:8;text-align:center;pointer-events:none;color:#647e40;text-shadow:0 2px 0 #fff9dc,0 0 16px #fffbe3}
.stage-celebration *{pointer-events:none}
.world-guide{margin:18px 0;padding:12px;border:1px solid #d9dfc4;border-radius:12px;background:#f0f0df;font-size:10px;color:#657852}
.world-guide summary{cursor:pointer;font-weight:700}
.world-guide ol{list-style:none;padding:0;margin:0}
.world-guide li{display:grid;grid-template-columns:20px 1fr auto;align-items:center;gap:5px;padding:6px 0;border-top:1px solid #d9dfc4}
.world-guide strong{font-size:10px}.world-guide small{font-size:9px;color:#7a856c}

.stage-celebration h2{margin:0;font:1000 clamp(20px, 5.9vw, 25px)/1.2 'Nunito',sans-serif;letter-spacing:.7px;white-space:nowrap}
.game.is-tower .stage-celebration{width:min(300px, calc(100% - 48px))}
.game.is-tower .stage-celebration h2{font-size:clamp(18px, 5.3vw, 23px);letter-spacing:.2px}
.game.is-tower .result-card h2{font-size:clamp(20px, 5.6vw, 25px)}
.stage-celebration p{margin:9px 0 0;font-size:9px;font-weight:600;letter-spacing:.5px;line-height:1.6;color:#758253}
.stage-celebration .celebration-rank{display:inline-flex;align-items:center;justify-content:center;gap:6px;max-width:100%;margin:13px 0 0;padding:7px 13px;border:1px solid #d6b86e;border-radius:18px;background:#fff7dfed;color:#806022;font-size:clamp(12px,3.7vw,16px);font-weight:800;line-height:1.5;letter-spacing:.2px;text-shadow:none;box-shadow:0 3px 12px #76531d15;overflow-wrap:anywhere}
.celebration-rank:before{content:'✦';flex-shrink:0;color:#c5993f;font-size:15px}
.stage-fade{position:absolute;inset:0;z-index:9;background:#f4f2df;opacity:0;pointer-events:none}

/* Hearts are health; the little mochi counts the remaining retries. */
.hud-counters{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:6px}
.hud-counters .gem-count{margin-top:0;white-space:nowrap}
.stock-indicator{display:flex;align-items:center;gap:3px;color:#748754;white-space:nowrap}
.stock-label{font-size:7px;font-weight:600;letter-spacing:.3px;margin-right:1px}
.stock-mochi{display:block;width:18px;height:20px;flex:none}
.stock-times{font:600 10px 'Nunito',sans-serif;margin-left:1px}
.stock-indicator>b{font:800 13px 'Nunito',sans-serif;font-variant-numeric:tabular-nums}
.miss-card{text-align:center;padding:30px 24px 26px}
.miss-card h2{margin:18px 0 25px}
.miss-stock-label{font-size:10px;font-weight:600;letter-spacing:2px;color:#8a9872}
.miss-stock-count{display:flex;align-items:center;justify-content:center;gap:10px;margin:8px 0 17px;color:#6e8650}
.miss-stock-count .stock-mochi{width:53px;height:57px;filter:drop-shadow(0 3px 3px #aabd8033)}
.miss-stock-count>span{font:700 22px 'Nunito',sans-serif}
.miss-stock-count>strong{font:900 48px/1 'Nunito',sans-serif}
.miss-detail{font-size:10px;line-height:2;color:#82916c;margin:0 0 27px;white-space:pre-line}
.help-stock{margin:0 0 20px;padding:11px 12px;border:1px solid #dfe4ca;border-radius:12px;color:#7b8c63;background:#f7f5e5}
.help-stock>strong{font-size:9px;line-height:1.7}
.help-stock>p{font-size:8px;line-height:1.9;margin:6px 0 0;letter-spacing:0}
@media(max-width:350px){.hud-counters{gap:7px}.stock-indicator{gap:2px}.stock-label{font-size:6px}.stock-mochi{width:16px;height:18px}.miss-card{padding-left:20px;padding-right:20px}.miss-detail{font-size:9px}.help-stock{padding:10px}}

.oneup-progress{margin-top:3px;color:#748254;font-size:8px;line-height:1.5;letter-spacing:.1px;white-space:nowrap}
.oneup-progress>b{margin-left:3px;font:800 9px 'Nunito',sans-serif;font-variant-numeric:tabular-nums;color:#657746}
.enemy-guide{margin:19px 0;padding:12px 10px 10px;background:#f2eddd80;border:1px solid #e7e4ce;border-radius:13px}
.enemy-guide>h3{font-size:9px;font-weight:700;letter-spacing:.3px;color:#7e8765;margin:0 0 9px}
.enemy-guide-row{display:flex;align-items:center;gap:9px;padding:7px 0}
.enemy-guide-row+.enemy-guide-row{border-top:1px dashed #dddeca}
.enemy-guide-row>svg{width:35px;height:37px;flex:none;overflow:visible}
.enemy-guide-row>div{min-width:0}
.enemy-guide-row strong{display:block;font-size:9px;line-height:1.7;color:#71815e}
.enemy-guide-row strong>span{color:#a48e5f;font-size:8px;margin-right:4px;white-space:nowrap}
.enemy-guide-row p{font-size:8px;line-height:1.7;color:#8b8d73;margin:2px 0 0}
.enemy-guide-note{margin:9px 0 0;padding-top:9px;border-top:1px solid #dedfca;font-size:8px;line-height:1.8;color:#89906d}

/* The pursuer's position stays readable even when it is below the screen. */
.pursuer-warning{position:absolute;left:13px;bottom:calc(97px + env(safe-area-inset-bottom, 0px));display:flex;align-items:center;gap:7px;max-width:calc(100% - 75px);padding:8px 11px;border:1px solid #b9b67499;border-radius:13px;background:#fff7ddeb;color:#6c8153;box-shadow:0 3px 13px #54704515;pointer-events:none;z-index:4}
.pursuer-icon{font-size:19px;color:#bf9657}
.pursuer-warning strong{display:block;font-size:10px;line-height:1.5;letter-spacing:.2px}
.pursuer-warning div>span{display:block;font-size:8px;line-height:1.6;color:#8a895e;white-space:nowrap}
.pursuer-warning b{font-weight:700;font-variant-numeric:tabular-nums}
.pursuer-warning.is-close{border-color:#c59066;background:#fff0ddec;color:#a06547}
.pursuer-warning.is-close .pursuer-icon,.pursuer-warning.is-close div>span{color:#a67150}
.dragon-hud{position:absolute;top:calc(147px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);width:min(260px,calc(100% - 36px));padding:10px 13px 8px;border:1px solid #f1d2a56b;border-radius:14px;background:#342d43e6;box-shadow:0 4px 16px #1d213633;color:#fff0d4;z-index:6;pointer-events:none}
.dragon-hud-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;font:800 11px 'Nunito',sans-serif;letter-spacing:1.2px}
.dragon-hud-heading span{font-variant-numeric:tabular-nums;letter-spacing:.4px;color:#f7d5b6}
.dragon-health{height:7px;border-radius:8px;background:#eee1e321;overflow:hidden}
#dragon-hp-fill{height:100%;width:100%;border-radius:inherit;background:linear-gradient(90deg,#dc907b,#f4c17e);transition:width .2s ease-out}
.dragon-hud p{margin:6px 0 0;text-align:center;font-size:9px;font-weight:600;line-height:1.5;letter-spacing:.2px;color:#f2dec9}
.dragon-hud.is-ahead{border-color:#f4dba3;background:#493747ed}
.game.is-boss .power-banner{top:calc(120px + env(safe-area-inset-top,0px));left:24px;right:auto;width:190px;text-align:left;font-size:11px;letter-spacing:.3px}
.game.is-boss .power-banner small{font-size:8px;margin-top:1px;letter-spacing:0}
/* The visible boss replaces the distance warning; keep its face unobstructed. */
.game.is-boss .pursuer-warning{display:none}
.game.is-boss .spring-meter{bottom:calc(250px + env(safe-area-inset-bottom,0px))}
.game.is-boss .dragon-hud{top:calc(4px + env(safe-area-inset-top,0px));bottom:auto;left:auto;right:88px;transform:none;width:min(200px,calc(100% - 202px));padding:4px 6px}
.game.is-boss .dragon-hud-heading{font-size:9px;line-height:1.2;margin-bottom:3px}
.game.is-boss .dragon-health{height:7px}
.game.is-boss .dragon-hud p{font-size:8px;margin-top:3px}
.game.is-boss .power-banner{top:calc(49px + env(safe-area-inset-top,0px));left:auto;right:24px;width:150px;text-align:right;font-size:10px}
.game.is-boss .power-banner small{font-size:7.5px}
@media(max-height:590px){.game.is-boss .spring-meter{display:none}}
.finale-caption{position:absolute;top:calc(72px + env(safe-area-inset-top,0px));left:20px;right:20px;z-index:8;text-align:center;color:#fff3d2;text-shadow:0 2px 8px #282238,0 0 18px #282238;pointer-events:none}
.finale-caption h2{font:800 clamp(18px,5.2vw,23px)/1.5 'Noto Sans JP',sans-serif;margin:0;letter-spacing:.7px}
.finale-caption p{font-size:11px;line-height:1.7;margin:9px 0 0;color:#eee2ec;font-weight:600}
@media (prefers-reduced-motion:reduce){#dragon-hp-fill{transition:none}}

/* The sky grows darker as the journey reaches space; keep the play HUD legible. */
.game.is-dark .zone-label,.game.is-dark .height{color:#fff3dc;text-shadow:0 2px 5px #151735a6}
.game.is-dark .zone-dot{background:#b9e0d4;box-shadow:0 0 8px #b9e0d466}
.game.is-dark .height>div,.game.is-dark .current-height,.game.is-dark .stock-indicator,.game.is-dark .oneup-progress,.game.is-dark .oneup-progress>b{color:#dce5ed;text-shadow:0 1px 4px #151735}
.game.is-dark .gem-count{color:#fff1c8;text-shadow:0 1px 4px #151735}
.game.is-dark .gem-count>span{color:#ffe297}
.game.is-dark .hearts{color:#ffafa5;text-shadow:0 1px 3px #432b57}
.game.is-dark .hearts .lost{color:#dccddd55}
.game.is-dark .round-button{color:#f6eedb;background:#202d506b;border-color:#e0dafb66}
.game.is-dark .stage-label{color:#faf2d4;background:#293956c9;border-color:#c8d8e47a}
.game.is-dark .goal-progress{color:#f3e9da;text-shadow:0 1px 4px #151735}
.game.is-dark .goal-distance{color:#3e5265;text-shadow:none;background:#fff6e1ec}
.game.is-dark .goal-track{background:#e7e4fc33;box-shadow:0 0 0 2px #ebedff66}
.game.is-dark .goal-fill{background:linear-gradient(to top,#96c4da,#f4d58e)}
.game.is-dark .checkpoint-marker:after{color:#f4ead8;text-shadow:0 1px 4px #151735}
.game.is-dark .power-banner{color:#fff1b0;text-shadow:0 2px 6px #202441}
.game.is-dark .power-banner>span{color:#f8d77c}
.game.is-dark .stage-celebration{color:#fff2c2;text-shadow:0 2px 5px #252849,0 0 16px #24213e}
.game.is-dark .stage-celebration p{color:#eee3f8}
.game.is-dark .stage-celebration .celebration-rank{color:#fff1be;background:#343044ed;border-color:#cfb474;box-shadow:0 3px 14px #16152a40}
.toast{max-width:calc(100% - 34px);width:max-content;white-space:normal;text-align:center;line-height:1.7}
.toast.is-stage-announcement{padding:14px 18px;border-radius:18px;overflow-wrap:anywhere}
.stage-announcement-label{display:block;font-size:12px;line-height:1.5}
.stage-announcement-name{display:block;margin-top:4px;font-size:clamp(19px,5.4vw,24px);font-weight:800;line-height:1.4;overflow-wrap:anywhere}
.low-gravity-notice{display:block;margin-top:5px;font-size:clamp(22px,6vw,28px);font-weight:800;line-height:1.3;overflow-wrap:anywhere}
.all-clear .result-card{background:linear-gradient(150deg,#fffbee,#f1f0ce);border-color:#efe0a1}
.all-clear .result-card>.eyebrow{color:#a18c46}
.all-clear .result-card h2{color:#5e7f46}

.save-status{margin:9px 0 2px;font-size:9px;line-height:1.7;color:#60714f;letter-spacing:.2px}
.new-game-button{display:block;width:100%;min-height:36px;background:transparent;color:#697959;font-size:11px;text-decoration:underline;text-underline-offset:4px}
.save-help{font-size:9px;line-height:1.8;color:#71815e;margin:-10px 0 22px}
@media(max-height:650px){.title-bottom:has(#new-game:not(.hidden)){padding-bottom:8px}.title-bottom:has(#new-game:not(.hidden)) .best-badge{margin-bottom:8px}.title-bottom:has(#new-game:not(.hidden)) .touch-note{margin-top:4px}}

/* Height titles share the existing metre record and remain readable on every world. */
.best-badge{display:table;max-width:100%;margin-bottom:5px;padding:8px 20px;border:1px solid #e4d8ae;border-radius:18px;background:#fffbeee8}
.best-value{line-height:18px}
.best-tower{display:block;margin-top:4px;padding-top:4px;border-top:1px solid #d9d5b5;color:#3d6244;font:800 12px/1.5 'Noto Sans JP',sans-serif;letter-spacing:.2px;white-space:nowrap}
.best-title{display:block;margin-top:3px;font:700 13px/1.5 'Noto Sans JP',sans-serif;letter-spacing:.4px;color:#6b713e;overflow-wrap:anywhere}
.best-title:before{content:'✦';color:#ba9b43;margin-right:6px;font-size:11px}
.best-next{font:500 9px/1.6 'Noto Sans JP',sans-serif;letter-spacing:0;color:#63754f;margin:0 -16px 12px;overflow-wrap:anywhere}
.height>.height-rank{display:table;margin-top:5px;max-width:180px;padding:3px 7px;border-radius:7px;border:1px solid #d5dcb899;background:#fffce4de;color:#5c7045;font:700 9px/1.25 'Noto Sans JP',sans-serif;letter-spacing:0;text-shadow:none;overflow-wrap:anywhere}
.game.is-dark .height>.height-rank{background:#262c4ede;border-color:#9d9bbc77;color:#fff1c1;text-shadow:none}
.result-rank{margin:13px auto 10px;padding:12px 8px;border-radius:14px;background:#f2edce;border:1px solid #e8ddb2}
.result-rank>strong{display:block;color:#6b753e;font:800 18px/1.5 'Noto Sans JP',sans-serif;letter-spacing:.5px;overflow-wrap:anywhere}
.result-rank>strong:before{content:'✦';font-size:14px;color:#bd9b40;margin-right:7px}
.result-rank>span{display:block;margin-top:3px;font-size:9px;line-height:1.6;color:#7f815b;letter-spacing:.1px}
.result-rank>.result-next{margin-top:7px;color:#62744e;font-weight:600}
.result-card .result-caption{margin-bottom:18px}
@media(max-width:360px){.height>.height-rank{max-width:150px;font-size:8px}.best-title{font-size:12px}.best-next{font-size:8px}.result-rank>strong{font-size:16px}.result-height{font-size:48px}}
@media(max-height:650px){.best-badge{padding:5px 14px;margin-bottom:4px}.best-title{font-size:11px;margin-top:1px}.best-next{font-size:8px;margin-bottom:8px}.title-bottom:has(#new-game:not(.hidden)) .best-badge{margin-bottom:4px}.result-rank{margin:9px auto 8px;padding:8px}.result-card .result-caption{margin-bottom:12px}.result-card .result-stats{padding:12px 0;margin-bottom:16px}}

/* Keep the ending free of the gameplay location label while retaining pause and sound. */
.is-ending .zone-label{visibility:hidden}
.is-ending canvas{cursor:default}
.ending-skip{min-height:44px;padding:8px 12px;border:1px solid #c9b98b;border-radius:14px;background:#fff8e8f2;color:#294e3c;font-size:12px;font-weight:700;line-height:1.3;max-width:160px;overflow-wrap:anywhere;touch-action:manipulation}
.is-ending .zone-label{display:none}
.is-ending .top-actions{margin-inline-start:auto}

/* Empty status slots never reserve space when no essential label is shown. */
[hidden],#celebration-detail:empty{display:none!important}
.help-card h2{padding-right:28px}
.world-guide li:first-child{border-top:0}

/* A leather field guide makes the title's collection entrance a visible object. */
.title-menu-actions{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);justify-content:center;margin-top:17px;padding:0 4px 7px}
.title-menu-actions>.bestiary-book-button{grid-column:2}
.bestiary-book-button{display:block;position:relative;width:108px;height:136px;max-width:100%;padding:0;border:0;background:transparent;isolation:isolate;transform:rotate(-2deg);transition:transform .2s;touch-action:manipulation}
.bestiary-book-pages{position:absolute;inset:7px -3px -5px 7px;border:1px solid #785446;border-radius:4px 9px 7px 4px;background:repeating-linear-gradient(to bottom,#efe1b8 0 2px,#ccb995 2px 3px);box-shadow:0 5px 0 #6c3d30,0 9px 14px #5635242e;transform:skewY(-.7deg)}
.bestiary-book-cover{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;position:absolute;inset:0;border:1px solid #613329;border-radius:7px 9px 8px 5px;background:radial-gradient(ellipse at 75% 0,#bc705057,transparent 72%),linear-gradient(105deg,#874531,#a5543c 42%,#82422f);color:#f8d68d;box-shadow:inset 0 2px 1px #f6bf814d,inset 0 -3px 1px #482a2645,2px 2px 1px #4b2e23;overflow:hidden;padding:12px 10px 14px 20px}
.bestiary-book-cover:before{content:"";position:absolute;inset:7px 7px 7px 16px;border:1px solid #e0b56d9c;border-radius:2px;pointer-events:none}
.bestiary-book-cover:after{content:"";position:absolute;inset:10px 10px 10px 19px;border:1px solid #e0b56d26;pointer-events:none}
.bestiary-book-spine{position:absolute;inset:0 auto 0 0;width:11px;border-right:1px solid #3c231d70;background:linear-gradient(90deg,#55342b,#a0573c 50%,#73402e);box-shadow:2px 0 3px #43261f55}
.bestiary-book-spine:before,.bestiary-book-spine:after{content:"";position:absolute;left:1px;right:1px;height:3px;border-top:1px solid #d9a3617a;border-bottom:1px solid #45282085;background:#ba754a66}
.bestiary-book-spine:before{top:16px}.bestiary-book-spine:after{bottom:16px}
.bestiary-book-emblem{display:block;flex:none;width:47px;height:47px;filter:drop-shadow(0 1px 0 #512d28)}
.bestiary-book-title{display:flex;flex-direction:column;align-items:center;width:100%;min-width:0;font:800 17px/1.15 'Noto Sans JP',sans-serif;letter-spacing:0;text-shadow:0 1px 1px #42281f;white-space:pre-line;text-align:center}
.bestiary-book-corner{position:absolute;right:12px;bottom:12px;font-size:8px;color:#eec37d;line-height:1}
.bestiary-book-button:hover{transform:translateY(-3px) rotate(-2deg)}
.bestiary-book-button:hover .bestiary-book-cover{filter:brightness(1.09)}
.bestiary-book-button:active{transform:translateY(2px) rotate(-1deg)}
.bestiary-book-button:focus-visible{outline:3px solid #6f3f29;outline-offset:9px;border-radius:5px}
@media(max-height:690px){.title-menu-actions{margin-top:12px;padding-bottom:6px}.bestiary-book-button{width:91px;height:115px}.bestiary-book-cover{gap:7px;padding-left:18px;padding-right:9px}.bestiary-book-emblem{width:38px;height:38px}.bestiary-book-title{font-size:15px}}
@media(max-height:590px){.title-menu-actions{margin-top:10px;padding-bottom:5px}.bestiary-book-button{width:78px;height:98px}.bestiary-book-cover{gap:5px;padding-left:15px;padding-right:6px}.bestiary-book-cover:before{inset:6px 5px 6px 14px}.bestiary-book-cover:after{inset:9px 8px 9px 17px}.bestiary-book-spine{width:9px}.bestiary-book-emblem{width:31px;height:31px}.bestiary-book-title{font-size:13px;letter-spacing:0}.bestiary-book-corner{right:10px;bottom:10px;font-size:6px}}
@media(max-height:650px){.title-bottom:has(#new-game:not(.hidden)){padding-bottom:16px}}
body:has(#bestiary-modal:not(.hidden)){overflow:hidden}
#bestiary-modal{position:fixed;inset:0;z-index:100;padding:0;overflow:hidden;background:#fffcee;backdrop-filter:none}
.bestiary-card{display:flex;flex-direction:column;gap:10px;width:100%;height:100%;max-width:none;max-height:none;padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));overflow:hidden;border:0;border-radius:0;box-shadow:none;background:#fffcee;color:#294e3c}
.bestiary-header{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none;min-height:38px}
.bestiary-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;min-width:0}
.bestiary-card .bestiary-heading h2{margin:0;font-size:23px;line-height:1.4;letter-spacing:1px}
#bestiary-count{font:700 11px/1.5 'Nunito','Noto Sans JP',sans-serif;color:#587044;font-variant-numeric:tabular-nums}
.bestiary-header .close-button{position:static;flex:none;width:44px;height:44px;color:#395935;background:#e8edcf}
.bestiary-debug-toggle{align-self:flex-start;flex:none;max-width:100%;min-height:40px;padding:8px 12px;border:1px solid #a6b68e;border-radius:10px;background:#edf2d8;color:#345936;font:700 12px/1.5 'Nunito','Noto Sans JP',sans-serif;overflow-wrap:anywhere}
.bestiary-debug-toggle[aria-pressed=true]{background:#36573c;color:#fffcee;border-color:#36573c}
.bestiary-list-panel{display:flex;flex:1;flex-direction:column;min-height:0}
.bestiary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:7px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a2b589 #f5f2df;padding:3px 4px 5px;touch-action:pan-y}
.bestiary-grid:empty{display:none}
.bestiary-entry{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 68px auto auto;align-content:start;align-items:start;justify-items:center;gap:2px;min-width:0;min-height:148px;padding:6px 5px;border:1px solid #c7d1b1;border-radius:16px;background:#faf9e9;color:#294e3c;text-align:center;box-shadow:0 2px 0 #e3e7cc;touch-action:pan-y}
.bestiary-entry>.bestiary-entry-number{grid-area:1/1}.bestiary-entry>.bestiary-entry-art,.bestiary-entry>.bestiary-unknown{grid-area:2/1}.bestiary-entry>.bestiary-entry-name{grid-area:3/1}.bestiary-entry>.bestiary-entry-stage{grid-area:4/1}
.bestiary-entry:not(:disabled):hover{background:#f1f4db;border-color:#86a16b}
.bestiary-entry:disabled{background:#f2f0e2;border-color:#d3d7c2;color:#5d6b53;opacity:1}
.bestiary-entry-art,.bestiary-unknown{width:100%;height:68px;max-width:126px;border-radius:11px;background:radial-gradient(ellipse at center,#e9efcf,#f7f5e3 75%);touch-action:pan-y}
.bestiary-entry-art{width:84px;height:68px;max-width:100%;object-fit:contain;align-self:center;justify-self:center}
.bestiary-unknown{display:grid;place-items:center;color:#6c7e55;font:800 38px/1 'Nunito',sans-serif}
.bestiary-entry-number,.bestiary-number{color:#5a7049;font:800 11px/1.5 'Nunito','Noto Sans JP',sans-serif;letter-spacing:.7px;font-variant-numeric:tabular-nums}
.bestiary-entry-name{align-self:center;min-width:0;max-width:100%;font-size:11px;font-weight:800;line-height:1.5;overflow-wrap:anywhere}
.bestiary-entry-stage{max-width:100%;color:#596c4c;font-size:9px;line-height:1.5;overflow-wrap:anywhere}
.bestiary-back{min-height:40px;padding:8px 10px;border:1px solid #bac9a5;border-radius:11px;background:#eaf0d7;color:#345936;font-size:11px;font-weight:700;white-space:nowrap}
.bestiary-detail-panel{display:flex;flex:1;flex-direction:column;align-items:stretch;gap:9px;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a2b589 #f5f2df;padding:3px 4px 8px;touch-action:pan-y}
.bestiary-back{align-self:flex-start;flex:none}
#bestiary-portrait{display:block;flex:none;width:200px;max-width:100%;height:auto;aspect-ratio:5/4;margin:2px auto 3px;border-radius:24px;background:radial-gradient(ellipse at center,#e9efcc,#fffcee 75%);touch-action:pan-y}
.bestiary-detail-panel>.bestiary-number{text-align:center}
#bestiary-name{margin:0;color:#294e3c;font-size:21px;font-weight:800;line-height:1.6;text-align:center;overflow-wrap:anywhere}
.bestiary-traits{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.bestiary-traits>span{padding:5px 9px;border:1px solid #c0d0a8;border-radius:20px;background:#edf2d8;color:#3c5c36;font-size:11px;font-weight:700;line-height:1.5}
#bestiary-appearance{margin:3px 0 0;padding:11px 12px;border:1px solid #e3dbc0;border-radius:12px;background:#f8f3df;color:#526644;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.bestiary-card button:focus-visible{outline:3px solid #bd8533;outline-offset:-3px}
@media(max-width:350px){.bestiary-card .bestiary-heading h2{font-size:21px}.bestiary-grid{gap:6px;padding-inline:2px}.bestiary-entry{padding-inline:4px}}
@media(min-width:480px){.bestiary-grid{grid-template-columns:repeat(auto-fill,minmax(116px,1fr));gap:9px}.bestiary-detail-panel{width:min(560px,100%);align-self:center}}
@media(max-height:590px){.bestiary-card{gap:8px}}

/* Short stock countdown is driven by the game clock, including tab pauses. */
#miss-modal{transition:none;pointer-events:auto}
.miss-card{animation:none;width:min(280px,80%);padding:22px 24px 18px}
.miss-card h2{margin:4px 0 20px}
.miss-stock-count{position:relative;margin-bottom:8px}
.miss-stock-count>strong{display:inline-block;min-width:1.2em;font-variant-numeric:tabular-nums}
.miss-stock-count>.miss-stock-loss{position:absolute;right:18px;top:-9px;color:#ce875c;font-size:22px;opacity:0}

/* Three compact save cards retain a clear selection above the main action. */
.title-bottom:has(.save-slots){width:calc(100% - 64px);max-width:310px}
.save-slots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 0 12px}
.save-slot{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:58px;padding:7px 5px 6px;border:1px solid #a7b58e;border-radius:12px;background:#fffceeeb;color:#4d6341;box-shadow:0 2px 0 #94a17b;touch-action:manipulation;transition:background .15s,border-color .15s,transform .15s}
.save-slot-number{font:800 11px/1.25 'Noto Sans JP',sans-serif;letter-spacing:.2px;white-space:nowrap}
.save-slot-status{display:flex;align-items:center;justify-content:center;min-height:2.6em;max-width:100%;font:500 9px/1.3 'Noto Sans JP',sans-serif;letter-spacing:0;overflow-wrap:anywhere;text-wrap:balance}
.save-slot:hover{background:#f0f3d9;border-color:#768c59}
.save-slot[aria-pressed=true]{border-color:#3d5831;background:#506f3f;color:#fffdec;box-shadow:0 2px 0 #344a2c,inset 0 1px 0 #ffffff24}
.save-slot[aria-pressed=true] .save-slot-status{color:#f0f2d9}
.save-slot:focus-visible{outline:3px solid #bf8d39;outline-offset:3px}
@media(max-height:690px){.save-slots{gap:5px;margin-bottom:10px}.save-slot{min-height:54px;padding:5px 4px;gap:3px}}
@media(max-height:590px){.save-slots{margin-bottom:9px}.save-slot{min-height:52px}.save-slot-number{font-size:10px}.save-slot-status{font-size:8.5px}}

/* Rounded outlined wordmark: its Japanese glyphs are embedded SVG paths. */
.title-heading{width:calc(100% - 26px);max-width:350px;pointer-events:none}
.title-heading .game-title{width:100%;margin:0;font-size:0;line-height:0;letter-spacing:0;white-space:normal;text-shadow:none;transform:none}
.title-wordmark{display:block;width:100%;height:auto;overflow:visible}
.logo-letter{transform-box:fill-box;transform-origin:center bottom;animation:logo-soft-bounce 5.6s ease-in-out infinite;animation-delay:calc(var(--letter) * .11s)}
.logo-shadow{fill:#68834f;stroke:#68834f;stroke-width:13;stroke-linejoin:round}
.logo-rim{fill:none;stroke:#fff9df;stroke-width:13;stroke-linejoin:round}
.logo-ink{fill:var(--ink,#5d8553);stroke:var(--ink,#5d8553);stroke-width:2.6;stroke-linejoin:round;stroke-linecap:round}
.logo-spring{fill:none;stroke:#759082;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.logo-mochi{transform-box:fill-box;transform-origin:center bottom;animation:logo-mochi-bounce 5.6s ease-in-out infinite}
.logo-spark{transform-box:fill-box;transform-origin:center;animation:logo-spark-shine 5.6s ease-in-out infinite}
@keyframes logo-soft-bounce{0%,12%,100%{transform:translateY(0) scale(1)}4%{transform:translateY(-2px) scale(1.025,.98)}8%{transform:translateY(.5px) scale(.99,1.015)}}
@keyframes logo-mochi-bounce{0%,16%,100%{transform:translateY(0) rotate(-5deg)}5%{transform:translateY(-3px) rotate(2deg)}10%{transform:translateY(1px) rotate(-7deg)}}
@keyframes logo-spark-shine{0%,12%,100%{opacity:.85;transform:scale(1)}6%{opacity:1;transform:scale(1.12)}}
@media(max-height:690px){.title-heading{max-width:328px}}
@media(prefers-reduced-motion:reduce){.logo-letter,.logo-mochi,.logo-spark{animation:none}}
.international-wordmark{display:none}
.international-language .title-wordmark{display:none}
.international-language .title-heading .international-wordmark{display:block;font:900 clamp(30px,9vw,42px)/1.18 sans-serif;letter-spacing:-.5px;color:#4f733f;text-shadow:0 3px 0 #fff6d8;overflow-wrap:anywhere;padding:12px 10px}
.language-card{max-width:340px}.language-card>label{display:block;font-size:14px;margin:0 0 8px}
/* Native ad dialogs cover the WebView themselves. Keep menu hit targets alive. */
.swipe-zone,.modal-backdrop{pointer-events:auto}
.ad-revive{width:100%;margin:14px 0 0;padding:12px 14px;border:1px solid #53794c70;border-radius:12px;background:#eef0d7;color:#385a3b;font-weight:700;line-height:1.4}.ad-revive:disabled{opacity:.6}
.language-card select{display:block;width:100%;min-height:48px;margin-bottom:24px;padding:10px 12px;border:1px solid #91a77c;border-radius:12px;background:#fffdf4;color:var(--ink);font:inherit;font-size:16px}
#language-modal{z-index:12}
#sensitivity-modal{z-index:12}
.sensitivity-card{max-height:calc(100dvh - 48px);overflow-y:auto;touch-action:pan-y}
.sensitivity-card p{margin:16px 0 24px;line-height:1.7;overflow-wrap:anywhere}
.sensitivity-label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:700}
#sensitivity-value{font-size:24px;font-variant-numeric:tabular-nums}
#sensitivity-range{display:block;width:100%;height:48px;margin:8px 0 0;accent-color:#4f7041;cursor:pointer;touch-action:pan-y}
.sensitivity-bounds{display:flex;justify-content:space-between;gap:16px;margin:0 0 24px;font-size:12px;color:#667953}
.sensitivity-card .primary-button{margin-top:14px}
.primary-button>b,.how-button>b{font-weight:inherit}.power-banner>b{font-weight:inherit}
.bestiary-book-title span{max-width:100%;overflow-wrap:anywhere;hyphens:auto}
.international-language .bestiary-book-title{font-size:13px;letter-spacing:0;line-height:1.25}
.international-language .zone-label{max-width:calc(100% - 112px);line-height:1.4}
.international-language .height>.height-rank{max-width:min(46vw,175px);line-height:1.35;overflow-wrap:anywhere}
.international-language .stage-label{max-width:min(76vw,280px);white-space:normal;line-height:1.3;overflow-wrap:anywhere}
.international-language .best-tower{white-space:normal;overflow-wrap:anywhere}
.international-language .primary-button{letter-spacing:0;padding-inline:18px 28px;line-height:1.35}
.international-language .oneup-progress{max-width:150px;white-space:normal;line-height:1.4}
.international-language .goal-destination>span{max-width:44px;overflow-wrap:anywhere;line-height:1.35}
.international-language .bestiary-entry-name{hyphens:auto}
html[dir=rtl] .game{direction:ltr}
html[dir=rtl] .modal,html[dir=rtl] .title-screen,html[dir=rtl] .bestiary-card,html[dir=rtl] .zone-label,html[dir=rtl] .height,html[dir=rtl] .hud-right{direction:rtl}
html[dir=rtl] .bestiary-entry,html[dir=rtl] .bestiary-detail-panel{direction:rtl}
html[dir=rtl] .primary-button>span{right:auto;left:19px}

/* Keep purchase controls reachable on short phone screens. */
.pause-card{max-height:calc(100dvh - 64px);overflow-y:auto}.purchase-actions{display:flex;flex-direction:column;gap:2px;margin:4px 0}.purchase-actions .how-button{padding-block:10px}.purchase-actions button:disabled{opacity:.7}

/* Keep title utilities and purchase controls below the animated mascot. */
.title-menu-actions{align-items:center;gap:8px}
.title-side-actions{display:flex;grid-column:3;flex-direction:column;align-items:center;gap:8px;min-width:0;max-width:170px}
.title-settings{display:flex;flex-wrap:wrap;justify-content:center;gap:2px 8px;margin:0}
.title-settings button{min-height:28px;max-width:100%;padding:5px 2px;color:#667953;background:transparent;font-size:9.5px;line-height:1.5;text-decoration:underline;text-decoration-color:#aebd91;text-underline-offset:3px;overflow-wrap:anywhere}
@media(max-height:590px){.title-side-actions{gap:5px}.title-settings button{min-height:24px;padding:3px 1px;font-size:9px}}
.title-settings button:disabled{opacity:.6}
.primary-button.ad-purchase-button{min-height:60px;padding:15px 16px;border-radius:17px;background:var(--green);color:#fffeec;font-size:15px;line-height:1.6;letter-spacing:.03em;box-shadow:0 4px 0 #203d2c;overflow-wrap:anywhere}
.purchase-actions{margin-top:18px}
.title-remove-ads{flex:1;min-width:0;max-width:170px;min-height:48px;padding:12px 10px;border:1px solid #becba5;border-radius:14px;color:#536c45;background:#fffcee;font-size:12px;font-weight:700;line-height:1.6;overflow-wrap:anywhere;box-shadow:0 3px 0 #becba5}
.title-menu-actions>.title-remove-ads{grid-column:1;grid-row:1;align-self:center;justify-self:center;flex:none;width:100%;max-width:130px;min-height:60px;padding:12px 7px;pointer-events:auto}
.title-menu-actions>.bestiary-book-button,.title-menu-actions>.title-side-actions{grid-row:1}
@media(max-height:690px){.title-menu-actions>.title-remove-ads{min-height:54px;padding:10px 6px;font-size:11px}}
.ad-offer-panel{position:absolute;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;overflow-y:auto;padding:72px 28px;background:radial-gradient(ellipse at 50% 22%,#fffdf2,#edf2db 75%);touch-action:pan-y}
.ad-offer-content{width:100%;max-width:330px;text-align:center;margin:auto;color:#526d45}
.ad-offer-star{display:block;font-size:58px;color:#c3a047;line-height:1.4;margin-bottom:22px}
.ad-offer-content .primary-button,.ad-offer-content .secondary-button{min-height:60px;padding:15px 16px;font-size:15px;line-height:1.6;letter-spacing:.03em;overflow-wrap:anywhere}
.ad-offer-content .secondary-button{margin-top:20px}
.connection-panel{z-index:140}
.connection-card{max-width:360px}
#connection-title:focus{outline:none}
.connection-card p{line-height:1.8;margin:18px 0;overflow-wrap:anywhere}
.connection-card button{width:100%;margin-top:12px;white-space:normal;overflow-wrap:anywhere}
@media(max-height:590px){.ad-offer-panel{padding:64px 24px 28px}.ad-offer-star{font-size:40px;margin-bottom:10px}}
#restart-confirm-modal{z-index:15}.restart-confirm-card{text-align:center}.restart-confirm-card p{font-size:13px;line-height:1.8;margin-bottom:24px}

/* Play counters stay at the physical upper left in every language. */
.game.playing .zone-label,
.hud>.stage-label,
.hud>.height,
.hud .stock-label,
.hud .oneup-progress,
#goal-progress,
#pursuer-warning{display:none!important}
.game.playing .game-top{top:calc(4px + env(safe-area-inset-top,0px));left:8px;right:8px;justify-content:flex-end;direction:ltr}
.game.playing .top-actions{margin-left:auto;direction:ltr}
.hud{top:calc(4px + env(safe-area-inset-top,0px));left:8px;right:8px;display:block;direction:ltr}
.hud-right{position:absolute;top:0;left:0;transform:none;display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;direction:ltr}
.hud .current-height{font:700 32px/1.25 'Nunito',sans-serif;font-variant-numeric:tabular-nums;color:#748754;white-space:nowrap;unicode-bidi:isolate}
.hud .hearts{display:flex;align-items:center;justify-content:center;gap:7px;font-size:42px;line-height:1.1;letter-spacing:0}
.hud .hud-counters{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:0;direction:ltr}
.hud .gem-count{display:flex;align-items:center;justify-content:center;gap:5px;margin:0;font-size:20px;line-height:24px;direction:ltr}
.hud .gem-count>span{font-size:23px;margin:0}
.hud .stock-indicator{gap:5px}
.hud .stock-mochi{width:36px;height:38px}
.hud .stock-times{font-size:18px}
.hud .stock-indicator>b{font-size:26px;line-height:1.15}
html[dir="rtl"] .hud-right{direction:ltr}
@media(max-width:350px){.hud .hearts{font-size:40px;gap:6px}}
.debug-stages-card{width:100%;max-width:390px;max-height:calc(100svh - 40px);display:flex;flex-direction:column;text-align:start;padding:24px 18px 16px;overflow:hidden}
.debug-stages-card h2{margin:0 36px 8px 0;font-size:21px}
.debug-stages-card>p{margin:0 0 12px;font-size:12px;line-height:1.5}
.debug-stages-card>label{font-size:12px;margin-bottom:6px}
.debug-stages-card>input{flex:none;width:100%;min-height:44px;padding:8px 12px;border:1px solid #91a77c;border-radius:10px;font:inherit;font-size:16px;background:#fffdf4;color:#36513d}
.debug-stages-card>.debug-stage-count{margin:8px 0;font-size:11px;font-variant-numeric:tabular-nums}
.debug-stage-list{min-height:0;max-height:52svh;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;display:flex;flex-direction:column;gap:6px;padding:2px 4px 4px 0}
.debug-stage-list button{flex:none;display:flex;justify-content:space-between;gap:12px;align-items:center;min-height:46px;text-align:start;padding:10px 12px;border:1px solid #c8d1b2;border-radius:10px;background:#f5f6e9;color:#36513d;font:inherit;font-size:13px;font-weight:700;line-height:1.5}
.debug-stage-list button:focus-visible{outline:3px solid #71975c;outline-offset:1px}
.debug-stage-list button span{flex:none;font-size:18px}
.debug-stage-badge{position:absolute;z-index:12;top:calc(112px + env(safe-area-inset-top,0px));right:10px;padding:3px 6px;border-radius:5px;background:#254934c9;color:#fff;font:700 10px/1.4 sans-serif;letter-spacing:.6px;pointer-events:none}

html[data-edition="swipari"],
html[data-edition="swipari"] body {
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  background: radial-gradient(ellipse at 50% 34%, #f0f1d8, #c8ddc2);
}

[data-edition="swipari"] .layout {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

[data-edition="swipari"] .game-shell {
  width: min(100%, 65vh);
  height: 100%;
}

[data-edition="swipari"] .game {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  touch-action: none;
}

[data-edition="swipari"] .game::after {
  border-radius: 0;
}

[data-edition="swipari"] :is(#title-screen, #home, #pause-home) {
  display: none !important;
}

[data-edition="swipari"] .is-feed-paused,
[data-edition="swipari"] .is-feed-paused * {
  animation-play-state: paused !important;
}

[data-edition="swipari"] .is-feed-paused {
  pointer-events: none;
}
