@font-face{font-family:Wild;src:local('Pretendard'),local('Apple SD Gothic Neo'),local('Noto Sans KR');font-display:swap}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:Wild,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;background:#f3f3e9;color:#183c32;-webkit-tap-highlight-color:transparent}button,input,select{font:inherit}button{cursor:pointer;border:0;transition:transform .18s,background .18s,box-shadow .18s}button:active{transform:scale(.96)}button:focus-visible,canvas:focus-visible{outline:3px solid #f5b547;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.48}svg{display:block}button svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.hidden{display:none!important}#app{display:flex;height:100%;width:100%;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.rail{width:86px;flex:0 0 86px;padding:26px 12px 18px;background:#fffef6;border-right:1px solid #e1e6db;display:flex;align-items:center;flex-direction:column;gap:30px;z-index:3}.brand{width:48px;height:48px;border-radius:17px;background:#183e31;color:#d9ee9b;display:grid;place-items:center;box-shadow:0 5px 12px #173c3024}.brand svg{width:34px;height:34px;fill:currentColor;stroke:none}.brand .leaf{fill:#183e31}.rail-links{display:flex;flex-direction:column;gap:14px;flex:1}.nav{background:transparent;color:#839189;display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;width:60px;height:64px;border-radius:16px}.nav span{font-size:10px;font-weight:800}.nav.active,.nav:hover{color:#214b36;background:#e9f0df}.home{flex:1;min-width:0;overflow:auto;padding:0 38px}.home-header{height:88px;display:flex;align-items:center;justify-content:space-between;gap:15px}.wordmark{font-size:18px;font-weight:950;letter-spacing:2.3px}.wordmark span{font-size:11px;letter-spacing:.2px;margin-left:12px;font-weight:600;color:#839086}.header-right{display:flex;align-items:center;gap:10px;font-size:11px;color:#7e8c80}.saved-dot{width:6px;height:6px;border-radius:50%;background:#719861}.icon-button{width:39px;height:39px;flex-shrink:0;border:1px solid #dbe2d4;border-radius:12px;background:#fffef5;color:#254737;font-weight:800;font-size:19px}.hero{position:relative;min-height:400px;height:clamp(390px,53cqh,650px);border-radius:28px;overflow:hidden;background:linear-gradient(120deg,#d8dfc3,#79a47c);box-shadow:0 12px 40px #263d3010}.hero-art{position:absolute;inset:0 0 0 22%;background-size:cover;background-position:center}.hero-art canvas{width:100%;height:100%}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,#edf0d7 0%,#edf0d7f0 27%,#e7edcc70 48%,#12342800 70%),linear-gradient(0deg,#112e2266,transparent 38%)}.hero-content{position:relative;z-index:1;padding:48px 44px;max-width:610px}.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;display:flex;align-items:center;gap:9px}.eyebrow i{width:6px;height:6px;border-radius:50%;background:#67884c}.hero h1{font-size:clamp(36px,4.2cqw,65px);line-height:1.18;letter-spacing:-2.7px;font-weight:900;margin:23px 0 18px}.hero h1 em{font-style:normal;color:#397149}.hero p{font-size:13px;line-height:1.9;font-weight:500;color:#61705b}.hero-actions{display:flex;gap:10px;margin-top:28px}.primary,.ghost{height:52px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;gap:28px;border-radius:13px;font-weight:800;font-size:13px}.primary{background:#214b35;color:#f8ffe6;box-shadow:0 6px 0 #163a28}.primary:hover{background:#346447}.primary span{font-size:22px;color:#d6ee97}.ghost{background:#fcffef9c;border:1px solid #cdd6b7;color:#304c33;gap:16px}.hero-metrics{display:flex;gap:26px;margin-top:33px}.hero-metrics>div{display:flex;align-items:baseline;gap:6px}.hero-metrics strong{font-size:23px;letter-spacing:-1px}.hero-metrics span{font-size:10px;color:#6e7f62}.art-label{position:absolute;right:28px;bottom:28px;display:flex;flex-direction:column;gap:5px;text-align:right;color:#fff9da;text-shadow:0 2px 14px #142c29}.art-label>span{font-size:10px;letter-spacing:2px}.art-label>strong{font-size:22px}.art-label>small{font-size:10px;opacity:.7}.section-title{display:flex;align-items:flex-end;justify-content:space-between;margin:28px 0 18px}.dark{color:#87947b;font-size:9px;letter-spacing:2px}h2{font-size:21px;margin:7px 0 0;letter-spacing:-.7px}.text-button{background:transparent;font-size:11px;color:#61775c;padding:8px}.text-button span{margin-left:13px}.chapter-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.chapter-card{text-align:left;display:flex;align-items:center;gap:15px;background:#fffff8;border:1px solid #e0e5d7;border-radius:17px;padding:15px 16px;min-width:0;position:relative;overflow:hidden}.chapter-card.current{border-color:#89a66f;background:#f8fce9}.chapter-card .chapter-icon{height:55px;width:55px;flex:0 0 55px;border-radius:14px;background:#e8efda;display:grid;place-items:center;font-size:27px;box-shadow:inset 0 1px #fff}.chapter-card small{font-size:9px;letter-spacing:1px;color:#91a180}.chapter-card strong{display:block;font-size:14px;margin:4px 0}.chapter-card span{font-size:10px;color:#899680}.chapter-card.locked{opacity:.6}.chapter-card .arrow{margin-left:auto;color:#678955;font-size:22px}footer{display:flex;justify-content:space-between;padding:21px 1px;color:#98a18d;font-size:9px;letter-spacing:.2px}.battle{flex:1;min-width:0;display:flex;flex-direction:column;background:#163f34;padding:12px 18px 6px;overflow:hidden}.battle-header{display:flex;align-items:center;gap:13px;min-height:54px;color:#f0f8db}.battle-header .icon-button{background:#2b5345;border-color:#53705b;color:#e9f5c9}.battle-title{display:flex;flex-direction:column;gap:4px;min-width:150px}.battle-title span{font-size:9px;letter-spacing:2px;color:#a6b995}.battle-title strong{font-size:15px}.resource{display:flex;gap:7px;align-items:center;background:#f7edba;border-radius:13px;color:#6a4c21;padding:9px 15px;box-shadow:inset 0 -3px #bfa55844}.resource b{font-size:23px;min-width:40px}.resource small{font-size:9px}.acorn{color:#af7325;font-size:23px;text-shadow:1px 2px #d4b072}.wave-wrap{flex:1;max-width:360px;margin:0 auto}.wave-wrap>div:first-child{display:flex;justify-content:space-between;font-size:10px;gap:10px}.wave-track{height:7px;background:#0d2c22;border-radius:8px;margin-top:8px;overflow:hidden}.wave-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#9cbf64,#e7d88f);transition:width .2s}.lives{color:#f0b29a;white-space:nowrap;font-size:17px;letter-spacing:3px}.battlefield{flex:1;min-height:0;position:relative;display:flex;align-items:center;justify-content:center;padding:10px 0}.battlefield canvas{display:block;width:100%;height:100%;object-fit:contain;touch-action:none}.board-tip{position:absolute;bottom:14px;left:50%;transform:translateX(-50%);pointer-events:none;background:#17382bdd;backdrop-filter:blur(10px);color:#ecf5d5;font-size:10px;padding:8px 16px;border-radius:30px;white-space:nowrap;transition:opacity .4s}.battle-dock{display:flex;gap:10px;min-height:108px;align-items:stretch}.animal-hand{display:flex;gap:7px;flex:1;min-width:0;overflow-x:auto;padding:4px 3px 8px;scrollbar-width:thin;scrollbar-color:#628168 transparent}.animal-card{position:relative;flex:1 0 77px;max-width:108px;min-width:0;display:flex;flex-direction:column;align-items:center;border:2px solid #e4ddbd;background:linear-gradient(#f9f7e2,#e4e7bf);border-radius:13px;color:#344b31;padding:3px 4px 6px;box-shadow:0 4px #102a21;overflow:hidden}.animal-card.selected{border-color:#d9ef77;background:linear-gradient(#ffffdb,#d6e8a6);transform:translateY(-3px);box-shadow:0 0 0 2px #72a45a,0 5px #102a21}.animal-card.unaffordable{filter:saturate(.4);opacity:.7}.animal-card canvas{width:50px;height:48px;flex-shrink:0}.animal-card strong{font-size:10px}.animal-card small{font-size:10px;font-weight:800;margin-top:3px;color:#836333}.animal-card .cooldown{position:absolute;inset:0;background:#19372caa;display:flex;align-items:center;justify-content:center;color:#fff9cd;font-size:23px;font-weight:800;pointer-events:none}.tools{display:flex;gap:7px;padding:4px 0 8px}.tools button{background:#315b48;color:#dce8b8;border:1px solid #628163;border-radius:13px;min-width:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.tools button.selected{background:#8a9f55;color:#f8ffe0;border-color:#dffb94}.tools strong{font-size:29px;line-height:1.1;color:#f0dc91}.tools span{font-size:10px;font-weight:700}.tools small{font-size:8px;color:#b8cba2}.battle-bottom{display:flex;justify-content:space-between;font-size:9px;color:#a5bea4;gap:15px;height:16px;white-space:nowrap;overflow:hidden}.modal{position:absolute;inset:0;z-index:20;background:#091e18b5;backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:24px}.modal-panel{width:min(950px,96cqw);max-height:91cqh;overflow:auto;border:1px solid #ffffff88;border-radius:25px;background:#f3f5e8;padding:32px;position:relative;box-shadow:0 30px 100px #001b1670}.modal-panel.compact{width:490px}.modal-close{position:absolute;right:17px;top:15px;width:33px;height:33px;border-radius:50%;font-size:23px;background:#e3e9d8;color:#365039;z-index:2}.modal-heading .eyebrow{color:#7c9475;font-size:9px}.modal-heading h2{font-size:28px;margin-top:9px}.modal-heading p{font-size:12px;color:#7e8c73;line-height:1.8}.world-tabs{display:flex;gap:6px;overflow:auto;padding:16px 0 20px}.world-tabs button{padding:8px 12px;border-radius:9px;background:#e4ead7;color:#6c7e63;white-space:nowrap;font-size:10px}.world-tabs button.active{background:#294e36;color:#f6ffde}.level-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.level{border:1px solid #d8e2c7;border-radius:15px;background:#fffff5;padding:20px 10px;position:relative;min-height:104px;color:#3e5b38}.level strong{display:block;font-size:27px}.level span{display:block;font-size:10px;margin-top:8px;color:#7d9272}.level.current{background:#deedb7;border-color:#86a45e}.level.boss{background:#efe2c4;border-color:#cdb787}.stars{color:#c49d3e!important;letter-spacing:4px;font-size:14px!important}.map-info{font-size:11px;color:#718268;line-height:1.8;margin:18px 0 0}.collection-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:22px}.collection-card{padding:16px 14px;background:#fffff7;border:1px solid #dde5cf;border-radius:16px;position:relative}.collection-card.locked{background:#e8ebde}.collection-card canvas{width:80px;height:75px;display:block;margin:auto}.collection-card h3{font-size:14px;margin:7px 0}.collection-card p{font-size:10px;line-height:1.6;color:#7c8e70;min-height:32px}.collection-card .badge{display:inline-block;font-size:9px;color:#618348;background:#ecf2dc;padding:4px 7px;border-radius:6px}.collection-card .stats{font-size:10px;color:#a4884d;margin-top:10px}.setting-row{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #dee6ce;padding:17px 0;font-size:12px}.setting-row small{display:block;color:#829373;margin-top:5px;font-size:10px}.setting-row button,.setting-row select{border:1px solid #cad7b9;border-radius:9px;padding:9px 13px;background:#fffef6;color:#48653e;font-size:11px}.setting-actions{display:flex;gap:10px;margin-top:23px}.setting-actions button{flex:1;background:#dce8ca;border-radius:10px;padding:13px;font-size:11px;color:#486039}.help-list{display:flex;flex-direction:column;gap:13px;margin:23px 0}.help-item{display:flex;gap:14px;align-items:center;background:#fffef7;padding:13px;border-radius:12px}.help-item>b{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#e4eccd;color:#527446;font-size:14px;flex-shrink:0}.help-item strong{font-size:12px;display:block}.help-item p{font-size:11px;line-height:1.7;margin:3px 0;color:#7c8a6f}.full-button{width:100%;margin-top:14px}.result{text-align:center;padding:6px 0 10px}.result-illustration{width:140px;height:130px;display:block;margin:0 auto}.result h2{font-size:31px;margin-top:10px}.result p{font-size:12px;color:#7e8d6e;line-height:1.8}.result .result-stars{font-size:34px;color:#b89a42;letter-spacing:8px;margin:14px}.result .unlocked{background:#e4edcc;border-radius:12px;padding:12px;color:#50723e;font-size:12px;margin:17px 0}.result-actions{display:flex;flex-direction:column;gap:10px}.result-actions button{justify-content:center}.pause-info{font-size:12px;color:#7d8e70;line-height:1.9}.pause-menu{display:flex;flex-direction:column;gap:11px;margin-top:24px}.pause-menu button{justify-content:center}#toast{position:absolute;left:50%;bottom:26px;transform:translate(-50%,15px);z-index:40;background:#213c2f;color:#f6ffe1;padding:13px 23px;border:1px solid #6d8858;border-radius:12px;box-shadow:0 8px 20px #0002;font-size:12px;opacity:0;pointer-events:none;transition:.2s;max-width:90cqw;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}

@container(min-width:1700px){.home{padding:0 4cqw}.home-header{height:100px}.hero-content{padding:65px}.hero{height:59cqh}.section-title{margin-top:36px}.chapter-card{padding:23px}.rail{width:100px;flex-basis:100px}}@container(max-width:1100px){.home{padding:0 23px}.hero-content{padding:38px 30px}.hero{min-height:380px}.hero-metrics{gap:17px}.chapter-cards{gap:9px}.chapter-card{padding:12px 10px;gap:8px}.chapter-card .chapter-icon{width:43px;height:43px;flex-basis:43px;font-size:23px}.chapter-card strong{font-size:12px}.rail{width:72px;flex-basis:72px;padding-inline:6px}.battle{padding:8px 10px 5px}.battle-title{min-width:105px}.battle-title strong{font-size:12px}.resource{padding:7px 10px}.resource small{display:none}.battle-header{gap:8px}.animal-card{flex-basis:68px}.tools button{min-width:58px}.wordmark span{display:none}}
@container(max-height:720px) and (min-width:700px){.home-header{height:63px}.hero{min-height:310px;height:51cqh}.hero-content{padding:25px 32px}.hero h1{font-size:43px;margin:16px 0 10px}.hero p{font-size:11px}.hero-actions{margin-top:18px}.primary,.ghost{height:43px}.hero-metrics{margin-top:22px}.hero-metrics strong{font-size:18px}.section-title{margin:18px 0 12px}.chapter-card{padding:10px}.chapter-card .chapter-icon{height:40px;width:40px;flex-basis:40px}footer{padding:15px 0}.battle-dock{min-height:90px}.animal-card canvas{width:41px;height:38px}.animal-card strong,.animal-card small{font-size:9px}.battle-header{min-height:44px}.battle-bottom{font-size:8px}.board-tip{font-size:9px;padding:6px 12px}.tools strong{font-size:23px}}
@container(max-height:480px){.rail{width:57px;flex-basis:57px;padding:12px 4px;gap:15px}.brand{width:38px;height:38px;border-radius:12px}.nav{width:45px;height:43px}.nav svg{width:19px;height:19px}.nav span{font-size:8px}.rail-links{gap:7px}.home{padding:0 20px}.home-header{height:45px}.hero{height:calc(100cqh - 73px);min-height:250px}.hero-content{padding:20px 25px}.hero h1{font-size:32px;margin:12px 0}.hero p{font-size:10px}.hero-actions{margin-top:14px}.hero-metrics{display:none}.journey,footer{display:none}.battle{padding:4px 8px 3px}.battle-header{min-height:36px;gap:7px}.battle-header .icon-button{height:30px;width:31px;font-size:15px}.battle-title span{font-size:7px}.battle-title strong{font-size:10px}.resource{padding:4px 8px;border-radius:8px}.resource b{font-size:18px;min-width:32px}.resource .acorn{font-size:17px}.wave-track{height:5px;margin-top:5px}.wave-wrap>div:first-child{font-size:8px}.lives{font-size:12px;letter-spacing:1px}.battle-dock{min-height:70px;gap:7px}.animal-hand{gap:5px;padding-bottom:5px}.animal-card{flex-basis:58px;border-radius:9px;padding:0 3px 3px}.animal-card canvas{width:34px;height:29px}.animal-card strong{font-size:8px}.animal-card small{font-size:8px;margin-top:1px}.tools{gap:5px;padding-bottom:5px}.tools button{min-width:49px;border-radius:9px}.tools strong{font-size:20px}.tools span{font-size:8px}.tools small{font-size:7px}.battle-bottom{height:12px;font-size:7px}.battlefield{padding:5px 0}.board-tip{bottom:7px;font-size:8px;padding:5px 10px}.modal{padding:12px}.modal-panel{padding:22px;max-height:94dvh}.modal-heading h2{font-size:22px}.level{padding:12px 8px;min-height:80px}.level-grid{gap:8px}.collection-grid{grid-template-columns:repeat(4,1fr)}.result-illustration{height:65px;width:75px}.result h2{font-size:24px}.result .result-stars{font-size:20px;margin:9px}.result p{margin:8px}.result .unlocked{padding:8px;margin:9px}.result-actions{flex-direction:row}.result-actions button{flex:1;font-size:11px}}

/* The stage fills the available area. Controls stay in a slim, predictable edge strip. */
#viewport-root{position:fixed;left:0;top:0;width:100dvw;height:100dvh;transform-origin:0 0;overflow:hidden;container-type:size;background:#163f34}
#app{width:100%;height:100%;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.battle{padding:0 4px 0;gap:0}.battle-header{height:42px;min-height:42px;flex-shrink:0;gap:10px;padding:0 7px;flex-wrap:nowrap}
.battle-header .icon-button{width:34px;height:34px;border-radius:9px;font-size:16px}.battle-title{min-width:130px;gap:2px}.battle-title span{font-size:7px;letter-spacing:1.5px}.battle-title strong{font-size:12px}
.resource{padding:3px 10px;gap:5px;border-radius:10px}.resource b{font-size:20px;min-width:37px}.resource small{display:none}.resource .acorn{font-size:19px}
.wave-wrap{max-width:420px}.wave-wrap>div:first-child{font-size:9px}.wave-track{height:4px;margin-top:4px}.lives{font-size:14px;letter-spacing:2px}
.battlefield{padding:0;flex:1;min-height:0;min-width:0;overflow:hidden;border-radius:15px}.battlefield canvas{width:100%;height:100%;object-fit:fill;outline-offset:-4px}
.board-tip{bottom:6px;font-size:9px;padding:4px 12px;background:#17382bbf}
.battle-dock{height:63px;min-height:63px;flex-shrink:0;gap:9px;flex-direction:row;padding:0 5px}.animal-hand{flex:1;min-height:0;gap:5px;padding:4px 3px 3px;scrollbar-width:none;overscroll-behavior:contain}.animal-hand::-webkit-scrollbar{display:none}
.animal-card{flex:0 0 74px;max-width:74px;height:55px;display:grid;grid-template-columns:36px 1fr;grid-template-rows:1fr 1fr;column-gap:0;padding:3px 2px;border-width:1px;border-radius:10px;box-shadow:0 2px #102a21}.animal-card canvas{grid-row:1/3;width:37px;height:43px}.animal-card strong{font-size:9px;align-self:end;white-space:nowrap;letter-spacing:-.5px}.animal-card small{font-size:9px;align-self:start;margin-top:4px;white-space:nowrap}.animal-card.selected{transform:translateY(-1px);box-shadow:0 0 0 1px #a4c968,0 3px #102a21}
.tools{gap:5px;padding:4px 0 3px;justify-content:flex-end}.tools button{min-width:57px;width:57px;height:55px;max-width:none;flex:none;flex-direction:column;gap:1px;border-radius:10px}.tools strong{font-size:22px;line-height:22px}.tools span{font-size:8px}.tools small{font-size:7px}.battle-bottom{height:12px;min-height:12px;flex-shrink:0;font-size:8px;line-height:11px;padding:0 9px;gap:12px}.battle-bottom #selection-info{overflow:hidden;text-overflow:ellipsis}.battle-bottom span:last-child{flex-shrink:0}
.modal-panel{width:min(950px,94cqw);max-height:94cqh}.modal-panel.compact{width:min(580px,94cqw)}
@container(max-height:480px){
 .battle{padding:0 3px}.battle-header{height:36px;min-height:36px;gap:7px;padding:0 4px}.battle-header .icon-button{width:29px;height:29px;font-size:14px;border-radius:8px}.battle-title{min-width:112px}.battle-title strong{font-size:10px}.battle-title span{font-size:6px}.resource{padding:2px 8px}.resource b{font-size:18px;min-width:30px}.resource .acorn{font-size:16px}.wave-wrap>div:first-child{font-size:8px}.lives{font-size:12px;letter-spacing:1px}
 .battle-dock{height:53px;min-height:53px;gap:6px;padding:0 3px}.animal-hand{gap:4px;padding:3px 2px 3px}.animal-card{flex-basis:67px;max-width:67px;height:47px;grid-template-columns:31px 1fr;padding:2px 1px;border-radius:8px}.animal-card canvas{width:32px;height:37px}.animal-card strong,.animal-card small{font-size:8px}.animal-card small{margin-top:3px}.tools{gap:4px;padding:3px 0}.tools button{min-width:49px;width:49px;height:47px;border-radius:8px}.tools strong{font-size:19px;line-height:18px}.tools span{font-size:8px}.tools small{font-size:7px}.battle-bottom{height:10px;min-height:10px;font-size:7px;line-height:9px}.board-tip{font-size:8px;padding:3px 9px;bottom:4px}
 .modal{padding:8px}.modal-panel{max-height:95cqh;padding:20px 23px;border-radius:18px}.modal-panel.compact{width:min(650px,94cqw)}.modal-heading h2{font-size:22px}.modal-heading p{font-size:11px;line-height:1.5;margin-bottom:10px}.help-list{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:10px 0}.help-item{padding:8px;gap:8px;align-items:flex-start}.help-item>b{width:24px;height:24px;font-size:11px}.help-item strong{font-size:11px}.help-item p{font-size:10px;line-height:1.45}.full-button{margin-top:9px}.setting-row{padding:10px 0}.setting-actions{margin-top:12px}.map-info{margin-top:10px}.pause-menu{margin-top:13px}.modal-close{top:9px;right:10px}.result-actions .primary,.result-actions .ghost{height:38px}
 .home{padding:0 14px}.home-header{height:42px}.hero{height:calc(100cqh - 55px);min-height:230px;border-radius:19px}.hero-content{padding:15px 22px}.hero h1{font-size:31px;margin:10px 0}.hero-actions{margin-top:12px}.hero-actions .primary,.hero-actions .ghost{height:39px;font-size:11px;padding:0 17px}.hero p{margin:8px 0;font-size:10px}.home-header .wordmark{font-size:15px}.wordmark span{display:none}.header-right{font-size:9px;gap:6px}.header-right .icon-button{height:28px;width:29px;font-size:16px}.hero .eyebrow{font-size:8px}.home footer{display:flex;position:absolute;right:32px;bottom:14px;padding:0;color:#edf3cf;font-size:7px;z-index:2}.home footer span:first-child{display:none}.art-label{bottom:30px;right:20px}.art-label>strong{font-size:17px}
}
@container(max-width:700px){.battle-title{min-width:88px}.battle-title span{display:none}.wave-wrap{min-width:65px}.wave-wrap #wave-label{display:none}.battle-header{gap:5px}.header-right #save-status,.saved-dot{display:none}.hero-art{left:15%}.hero-content{padding-left:17px}.hero-actions{gap:7px}.hero-actions .ghost{padding:0 11px}.help-item p{font-size:9px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

#viewport-root[data-rotated="true"] #app{padding:env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left) env(safe-area-inset-top)}

/* Mission field command: goals remain visible, without adding a large dashboard. */
.operation-bar{height:24px;min-height:24px;display:flex;gap:10px;align-items:center;padding:0 12px 3px;color:#e9f3cf;font-size:10px;white-space:nowrap;overflow:hidden}.operation-bar>strong{font-size:11px;color:#ffe6a1}.operation-bar #operation-progress{background:#385e47;border-radius:7px;padding:2px 8px}.operation-bar #operation-event{flex:1;overflow:hidden;text-overflow:ellipsis;color:#bacfac}.operation-bar #squad-count{margin-left:auto;font-size:9px;color:#ecde9a;flex-shrink:0}.operation-bar.complete #operation-progress{color:#ddf6a3;background:#446237}.animal-card.deployed{background:linear-gradient(#d9ebd1,#9fbd97);border-color:#8aac76}.animal-card.deployed small{color:#2b5f3a}.animal-card.selected.deployed{border-color:#fff0ad}.mission-brief{display:grid;grid-template-columns:1.5fr 1fr;gap:12px;margin:20px 0}.brief-objective{border-radius:15px;padding:17px;background:#e0ebc8;border:1px solid #bdce9e}.brief-objective>span{font-size:10px;color:#687f48}.brief-objective h3{margin:7px 0;font-size:21px}.brief-objective p{font-size:12px;line-height:1.65;margin:7px 0;color:#526743}.brief-rules{display:flex;flex-direction:column;gap:8px}.brief-rules p{margin:0;border-radius:11px;background:#fffdf0;padding:11px;font-size:11px;line-height:1.5;color:#627554}.brief-enemies{font-size:10px;color:#71805c;line-height:1.6}.brief-actions{display:flex;gap:8px}.brief-actions .primary{flex:1;justify-content:center}.brief-actions .ghost{font-size:11px}.level .mission-label{font-size:11px;color:#3d6743;font-weight:800;letter-spacing:-.3px}.tutorial-guide{position:absolute;right:12px;top:10px;width:min(38%,420px);padding:15px 17px;border:1px solid #fff3b6;border-radius:15px;background:#f5f5e6f5;box-shadow:0 7px 24px #15372a25;color:#24472f;z-index:5}.tutorial-top{display:flex;align-items:center;justify-content:space-between;font-size:9px;color:#6a8250;gap:10px}.tutorial-top>span{font-weight:800;letter-spacing:1px}.tutorial-top button{background:transparent;border:0;padding:4px;color:#849174;font-size:9px;text-decoration:underline}.tutorial-guide h3{font-size:17px;margin:7px 0}.tutorial-guide p{font-size:12px;line-height:1.6;margin:5px 0 8px}.tutorial-guide .primary{width:100%;height:36px;font-size:11px;justify-content:center;margin-top:10px;padding:0 13px}.tutorial-guide[data-phase="done"]{border-color:#abce6f;background:#f0f8def5}.tutorial-guide[data-phase="done"] h3::before{content:'✓ ';color:#619340}.tutorial-guide.nudge{border:2px solid #edb36d}.coach-focus{outline:3px solid #ffe28a!important;outline-offset:-2px;box-shadow:0 0 15px #ffc94b99!important}.tutorial-active #board-tip{display:none}.tutorial-active #selection-info{color:#f5e6aa}.tutorial-active .battle-title strong{color:#ffe59b}
@container(max-height:480px){.operation-bar{height:20px;min-height:20px;padding:0 8px 2px;gap:7px;font-size:8px}.operation-bar>strong{font-size:9px}.operation-bar #operation-progress{padding:1px 5px}.operation-bar #squad-count{font-size:8px}.tutorial-guide{top:5px;right:7px;width:37%;min-width:238px;padding:10px 12px;border-radius:12px}.tutorial-guide h3{font-size:13px;margin:4px 0}.tutorial-guide p{font-size:10px;line-height:1.5;margin:3px 0 5px}.tutorial-top,.tutorial-top button{font-size:8px}.tutorial-guide .primary{height:30px;font-size:10px;margin-top:7px}.mission-brief{margin:10px 0;gap:9px}.brief-objective{padding:12px}.brief-objective h3{font-size:17px}.brief-objective p{font-size:11px;line-height:1.5}.brief-rules{gap:6px}.brief-rules p{font-size:10px;padding:8px}.brief-actions .primary,.brief-actions .ghost{height:38px}.level .mission-label{font-size:10px}.board-tip{max-width:85%;text-overflow:ellipsis;overflow:hidden}}

.resource small{display:inline;font-size:8px;color:#8a702e;white-space:nowrap}
@container(max-height:480px){.tutorial-guide h3{font-size:15px}.tutorial-guide p{font-size:11px;line-height:1.6}.tutorial-guide .primary{height:34px}.resource small{font-size:7px}}
