/* Screen-space controls and information. World art never determines type size. */
:root{--paw-ink:#173c38;--guide:#e5edb9;--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px)}
.app{height:100dvh;min-height:0;padding:max(4px,var(--safe-top)) max(10px,var(--safe-right)) max(4px,var(--safe-bottom)) max(10px,var(--safe-left));overflow:hidden}
button,.icon-button,.quiet,.close-button,.secondary,.continue,.garden-link{min-width:44px;min-height:44px}.icon-button{width:44px;height:44px}.close-button{top:6px;right:7px}.topbar{height:62px;gap:8px}.top-actions{gap:5px}.quiet{font-size:14px}.quiet>span{width:28px;height:28px;line-height:26px}.sound-status{display:none}.brand small{font-size:9px;letter-spacing:.6px}.brand>span{font-size:18px}.brand img.official-logo{width:48px;height:40px}.top-actions #help-btn{font-size:0}.top-actions #help-btn span{font-size:18px}.playing footer{display:none}
.arena{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;border-radius:16px;background:#153b3e;min-height:0}.scene{grid-row:2;position:relative;min-height:0;min-width:0;overflow:hidden;background:radial-gradient(ellipse at center,#39726a,#163c40)}.scene canvas{width:100%;height:100%;display:block}
.hud{position:static;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;padding:8px;background:#102d32;pointer-events:none;align-items:center}.level-chip,.build-chip,.lives-chip{border:0;border-radius:0;background:none;backdrop-filter:none;padding:0}.level-chip{max-width:none}.level-chip span{font-size:12px;letter-spacing:.5px}.level-chip strong{font-size:16px;line-height:1.2;margin-top:2px}.build-chip{grid-column:2;grid-row:1;grid-template-columns:repeat(3,auto);column-gap:9px;row-gap:5px;padding:0}.build-progress{font-size:16px;letter-spacing:0}.build-chip>span{gap:0}.build-chip small{display:none}.build-chip strong{font-size:16px;font-weight:700}.lives-chip{display:none}
.play-status{grid-row:3;padding:8px 12px;background:#102d32;border-top:1px solid #cae6bc24;text-align:center;min-height:54px;display:flex;flex-direction:column;justify-content:center;gap:5px}.objective{position:static;transform:none;border:0;border-radius:0;background:none;padding:0;margin:0;max-width:none;min-width:0;font-size:16px;line-height:1.3;white-space:normal;color:#e9edd7}.guide{display:flex;align-items:center;justify-content:center;gap:9px;color:#f2efc8;font-weight:700;font-size:16px;line-height:1.3;pointer-events:none}.guide-symbol{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:28px;font-size:23px;letter-spacing:1px;color:var(--guide)}.guide[data-kind="hold"] .guide-symbol,.guide[data-kind="hold-again"] .guide-symbol,.fly-paw{width:25px;height:25px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Cellipse cx='18' cy='25' rx='11' ry='9'/%3E%3Cellipse cx='7' cy='14' rx='4' ry='5' transform='rotate(-25 7 14)'/%3E%3Cellipse cx='14' cy='7' rx='4' ry='5'/%3E%3Cellipse cx='23' cy='7' rx='4' ry='5'/%3E%3Cellipse cx='30' cy='14' rx='4' ry='5' transform='rotate(25 30 14)'/%3E%3C/svg%3E") center/contain no-repeat}.fly-paw{display:none;position:absolute;left:50%;top:-26px;transform:translateX(-50%);color:#eef2ca;pointer-events:none}.guide[data-labels="off"] #guide-label{display:none}.guide[data-labels="off"] .guide-symbol{height:28px}.guide[data-kind="match"] .guide-symbol,.guide[data-kind="multi"] .guide-symbol{border:2px solid var(--guide);border-radius:12px;padding:0 5px;min-width:68px}
.touch-controls{position:relative!important;left:auto!important;right:auto!important;bottom:auto!important;height:90px!important;padding:14px 0 4px!important;gap:10px;z-index:2;pointer-events:auto!important}.touch-controls button{position:relative;flex-shrink:0;min-width:56px;width:60px;height:62px;border-radius:18px;font-size:28px;background:#294746;touch-action:none}.direction-pad{gap:10px}.touch-controls .fly-control{width:108px;background:#d7e8a9;gap:7px}.fly-control span{font-size:16px;letter-spacing:.5px}.touch-tip{display:none}.touch-controls button.pressed{background:#69937b;transform:none;box-shadow:inset 0 0 0 3px #eff7cb}.touch-controls .fly-control.pressed{background:#eaf8bd;color:#173c38}.touch-controls button[data-guided="true"],.launch-button[data-guided="true"]{outline:3px solid #f5d783;outline-offset:4px}.fly-control[data-guided="true"] .fly-paw{display:block}.touch-controls .fly-control[data-guided="true"]{animation:paw-hold 1.8s ease-in-out infinite}.direction-pad [data-guided="true"]:before{content:'↔';position:absolute;top:-29px;left:50%;transform:translateX(-50%);font-size:22px;color:#eef2ca;pointer-events:none}
.launch-button{position:static;transform:none;align-self:center;min-height:48px;font-size:16px;white-space:normal;padding:10px 18px;box-shadow:none}.toast{bottom:112px;font-size:16px;line-height:1.3;padding:9px 14px;z-index:3;max-width:92%;border-radius:14px}.guiding .toast.show{opacity:0}.modal-card{padding:42px 22px 24px}.modal p,.instruction div,.instruction b,.mode,.mode small,.secondary,.modal .install-note{font-size:16px}.instructions{gap:14px}.instruction>span{min-width:42px;height:42px}.modal .install-note{line-height:1.5}.help-options{display:grid;gap:8px;margin:18px 0}.help-options button{border:1px solid #bdd5ac55;border-radius:12px;background:#ffffff08;padding:10px;color:#eef2d7;font-size:16px;text-align:left}.help-options button[aria-pressed="true"]{border-color:#d5ecac}.modal .eyebrow{font-size:12px}.modal .primary{font-size:16px}.garden b,.garden small,.garden em{font-size:16px}.home p{font-size:16px;line-height:1.5}.home-details{font-size:14px}.home .eyebrow{font-size:12px;letter-spacing:1px}.home-content{padding-top:24px}.home .primary{font-size:16px;min-height:48px}.home .continue{font-size:16px}.home .jp-rights{font-size:10px}.home h1{font-size:clamp(34px,6vw,72px)}
@keyframes paw-hold{0%,100%{box-shadow:0 0 0 0 #f5d78320}50%{box-shadow:0 0 0 7px #f5d78335}}
/* More width earns a supporting side panel, not enlarged touch controls. */
@media(min-width:900px),(min-width:600px) and (max-height:560px){
 .playing .arena{grid-template-columns:minmax(0,1fr) 188px;grid-template-rows:minmax(0,1fr) auto}.playing .scene{grid-column:1;grid-row:1/-1}.playing .hud{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:12px;gap:16px}.playing .build-chip{display:grid;grid-template-columns:repeat(3,1fr);gap:9px 5px}.playing .level-chip strong{font-size:16px}.playing .build-progress{white-space:normal;line-height:1.3}.playing .play-status{grid-column:2;grid-row:2;border-top:0;padding:12px;gap:10px}.playing .guide{flex-wrap:wrap}.playing .objective{font-size:16px}.playing .toast{left:40%;bottom:20px;max-width:60%}.playing .topbar{height:52px}.playing .touch-controls{height:82px!important}.playing .launch-button{width:100%}.playing .brand small{display:none}
}
@media(min-width:900px){.playing .arena{grid-template-columns:minmax(0,1fr) 220px}.playing .lives-chip{display:block;text-align:left;font-size:16px;letter-spacing:1px}.playing .lives-chip small{font-size:16px}.playing .touch-controls:not(.hidden){display:flex!important}}
@media(max-width:360px){.topbar{height:56px}.brand>span{font-size:16px}.brand img.official-logo{width:40px;height:34px}.brand small{display:none}.hud{padding:7px 6px;gap:4px}.level-chip strong{font-size:16px}.level-chip span{display:none}.build-chip{column-gap:6px}.build-progress{font-size:16px}.touch-controls button{width:56px}.touch-controls .fly-control{width:96px}.home-content{padding:17px}.home h1{margin:14px 0;font-size:34px}.home p{font-size:15px}.home-details,.hero-caption,.jp-rights{display:none}}
@media(max-height:560px) and (min-width:600px){.playing .topbar{height:44px}.playing .arena{grid-template-columns:minmax(0,1fr) 176px}.playing .hud{gap:8px;padding:8px}.playing .level-chip span{display:none}.playing .play-status{padding:8px}.playing .touch-controls{height:76px!important;padding-top:8px!important}.touch-controls button{height:60px}.home-content{padding:12px 5%;width:70%}.home h1{font-size:34px;margin:8px 0}.home p{font-size:14px;margin-bottom:10px}.home .eyebrow,.home-details,.hero-caption,.jp-rights{display:none}.home .primary{padding:10px 20px}.modal .install-note{display:block}.instructions{gap:14px}}
@media(prefers-reduced-motion:reduce){.touch-controls .fly-control[data-guided="true"]{animation:none!important;box-shadow:0 0 0 4px #f5d78325}*{transition:none!important}}

/* Lives remain visible on the smallest Arcade display; score is supplementary. */
.hud .lives-chip{display:block;grid-column:1;grid-row:2;text-align:left;font-size:16px;letter-spacing:1px;line-height:1.1}.hud .lives-chip small{display:none}.hud .build-chip{grid-row:1/3}.hud .level-chip span{display:none}.top-actions .icon-button{width:44px;height:44px;min-width:44px}.play-status{min-height:90px}.guide-symbol{overflow:visible;height:34px}.guide[data-kind="hold"] .guide-symbol,.guide[data-kind="hold-again"] .guide-symbol{mask:none;background:none;width:auto}.guide[data-kind="match"] .guide-symbol{border:0;padding:0}.demo-key{position:relative;display:inline-flex;width:28px;height:28px;border:2px solid #edf0c5;border-radius:7px;align-items:center;justify-content:center;color:#173c38;background:#e0ecb3;font-size:20px;line-height:1}.demo-plus{font-size:18px;margin:0 7px}.demo-key.held{box-shadow:inset 0 -4px 0 #729578}.demo-key.released{color:#edf0c5;background:none;border-style:dashed}.demo-pad{display:inline-flex;align-items:center;justify-content:center;width:30px;height:25px;border:2px solid var(--guide);border-radius:50%;font-size:18px}.demo-paw{position:absolute;right:-8px;bottom:-7px;width:18px;height:18px;background:#f8efd0;border-radius:40% 40% 50% 50%;box-shadow:0 0 0 1px #173c38}.demo-paw:before{content:'';position:absolute;left:0;top:-5px;width:5px;height:7px;border-radius:50%;background:#f8efd0;box-shadow:6px -2px #f8efd0,12px 0 #f8efd0}.demo-key.released .demo-paw{bottom:24px;right:-10px}.guide[data-kind="match"]{padding-top:7px}.guide[data-kind="match"] .guide-symbol{margin-top:5px}.guide-label{min-width:0}@media(min-width:900px),(min-width:600px) and (max-height:560px){.hud .lives-chip small{display:block;font-size:16px}.playing .play-status{min-height:90px}.playing .hud{min-height:0}.playing .hud .build-chip{row-gap:5px}.playing .hud .lives-chip{margin-top:0}}@media(max-height:560px) and (min-width:600px){.hud .lives-chip small{display:none}.playing .hud{gap:6px}}

/* Reserve a stable instruction rail; one cue replaces, not duplicates, the goal. */
.play-status,.playing .play-status{min-height:64px}.guide{min-height:34px}

/* Direct-start mode choices: the thing that looks like Play really starts. */
.mode-picker .eyebrow{font-size:12px;letter-spacing:.7px}.mode-picker h2{margin:12px 0 8px;font-size:32px}.mode-picker .mode-intro{font-size:16px;line-height:1.4;margin:0 0 20px}.mode-starts{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}.mode-start{display:flex;align-items:center;gap:17px;width:100%;min-height:88px;padding:17px 20px;border:2px solid transparent;border-radius:18px;text-align:left;touch-action:manipulation}.mode-start strong{display:block;font-size:22px;line-height:1.2}.mode-start small{display:block;font-size:16px;line-height:1.4;margin-top:5px}.mode-play-icon{font-size:26px;line-height:1;flex-shrink:0}.mode-start-cozy{background:#d8edb1;color:#193c33;box-shadow:0 4px 14px #071c2928}.mode-start-arcade{background:#ffffff08;border-color:#b6cfb475;color:#f0f0d8}.mode-start-arcade small{color:#c9dace}.mode-start:active{transform:scale(.985)}.mode-start:focus-visible{outline:3px solid #ffe4a0;outline-offset:4px}.mode-start:disabled{opacity:.6}.mode-start small span{white-space:nowrap;font-size:14px;color:inherit}
@media(min-width:600px) and (max-height:560px){.mode-picker .mode-starts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mode-picker .mode-start{min-height:84px;padding:12px;gap:10px}.mode-picker .mode-start strong{font-size:20px}.mode-picker .mode-intro{margin-bottom:12px}.mode-picker h2{font-size:28px;margin:8px 0}.mode-picker .mode-play-icon{font-size:22px}}
@media(prefers-reduced-motion:reduce){.mode-start:active{transform:none}}

/* Familiar names paired with explicit lives rules, as requested. */
.mode-start .mode-lives{display:block;margin-top:3px}.mode-start>span:last-child{min-width:0}.mode-start{min-height:108px}.mode-start strong{font-size:clamp(18px,5vw,21px)}.mode-start small{margin-top:6px}@media(min-width:600px) and (max-height:560px){.mode-picker .mode-start{min-height:108px}.mode-picker .mode-start strong{font-size:20px}}

/* One opening screen: the title's two choices start play directly. */
.home{overflow-y:auto}.home-content{padding-bottom:54px}.home .title-starts{max-width:470px;gap:10px}.home .mode-start{min-height:96px;padding:12px 16px;gap:14px}.home .mode-start strong{font-size:20px}.home .mode-start small{font-size:16px;margin-top:4px}.home .mode-play-icon{font-size:24px}.home .continue{padding-top:10px;line-height:1.3}.home-details{margin-top:14px}
@media(max-width:600px){.home-content{padding:18px 20px 58px}.home h1{font-size:36px;margin:14px 0}.home p{margin-bottom:14px}.home .mode-start{min-height:94px;padding:12px 15px}.home .mode-start strong{font-size:18px}.home .mode-play-icon{font-size:22px}.home-details{display:none}}
@media(max-width:600px) and (max-height:740px){.home-content{padding-top:14px;padding-bottom:48px}.home .eyebrow{display:none}.home h1{font-size:32px;margin:8px 0 12px}.home p{display:none}.home .mode-start{min-height:90px}.hero-caption{display:none}}
@media(min-width:600px) and (max-height:560px){.home-content{width:100%;max-width:800px;padding:10px 4% 12px}.home h1{font-size:28px;margin:5px 0 12px}.home .eyebrow,.home p,.home-details,.hero-caption{display:none}.home .title-starts{max-width:680px;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.home .mode-start{min-height:94px;padding:10px 14px;gap:12px}.home .mode-start strong{font-size:18px}.home .continue{padding-top:8px}.home .garden-link{bottom:8px}}
