@font-face{font-family:"Baloo Game";src:url('assets/fonts/BalooBhaijaan2.ttf') format('truetype');font-weight:400 800;font-display:swap}
:root{font-family:"Baloo Game",Tahoma,sans-serif;--navy:#142e45;--gold:#ffda78;--cream:#fff4d0;--line:#d4b567}
button,input,select{font-family:inherit}h1,h2,h3,p,button{letter-spacing:0!important}button img,a img{pointer-events:none;user-select:none}img{max-width:100%}[hidden]{display:none!important}
.ui-art{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 2px #0a223b80)}.icon-button{width:46px;height:46px;padding:3px;background:linear-gradient(145deg,#214b63ed,#102c40f5);border:1px solid #e3cc814d;border-radius:13px;box-shadow:inset 0 1px #d5f1ff4d,0 3px 0 #071f31,0 6px 12px #0b293640;transition:transform .15s,filter .15s}.icon-button:active:not(:disabled){transform:translateY(2px) scale(.96)}.icon-button:disabled{opacity:.65}.view-tools{gap:7px}
.wallet{background:linear-gradient(145deg,#243e52ed,#152d3df0);border:1px solid #cdb06b99;border-radius:12px;gap:4px;padding:4px 8px;box-shadow:inset 0 2px #ffffff17,0 3px 0 #10273580}.wallet .ui-art{width:32px;height:32px}.wallet small{font-size:9px}.wallet #coins{font-size:20px;line-height:1}.cost-coin{width:17px;height:17px;object-fit:contain}.energy-art{width:23px;height:26px;object-fit:contain}.castle-energy{width:160px;padding:3px 7px 3px 3px;border-color:#8fddcc88;background:linear-gradient(145deg,#244f59ee,#153a46ee);box-shadow:0 3px 0 #092b36a1}.castle-energy>span{font-size:9px}.castle-energy b{font-size:12px}.castle-energy .energy-track{height:7px}.coin-fly img{width:27px;height:27px;object-fit:contain;filter:drop-shadow(0 2px 2px #82601c88)}
.hud-top{width:min(100%,440px);padding-top:max(12px,env(safe-area-inset-top));background:linear-gradient(#102e40d9,#16394b66 75%,transparent)}.hud-top .mission-meta #stage-label{font-size:14px;line-height:1.3}.mission-meta>span{font-size:11px}.mission-meta>small{font-size:10px}.coin-notice{font-size:10px}.base-row{font-size:12px}.health-track{height:8px;border-color:#f2db9266}.battle-info{font-size:11px}.battle-info b{font-size:13px}.hud-bottom{background:linear-gradient(transparent,#133047b0 30%,#10283ddd);padding-top:20px}.upgrade-button,.deploy-button{font-size:14px}.deploy-button{font-size:16px}.deploy-button small{font-size:10px}.upgrade-button small{font-size:13px}.actions{gap:10px}.upgrade-button::before{background:linear-gradient(#3f6782,#1a3a55);border-color:#bdb57a99}.deploy-button::before{background:linear-gradient(#3fa5d1,#185781)}
.game-panel{z-index:31;background:linear-gradient(145deg,#193b55fa,#102b42fc);color:#fff3ce;border:2px solid #ceb26d;border-radius:20px;box-shadow:0 5px 0 #061c30bb,0 16px 45px #071a33aa,inset 0 0 0 3px #eedaa117;padding:24px;max-height:calc(100dvh - 40px);top:20px;left:20px;scrollbar-width:thin;scrollbar-color:#bb9c52 #18364c}.game-panel h2{font-size:23px;padding-left:34px}.game-panel h3{font-size:16px}.game-panel p{font-size:13px;color:#c0d5db;line-height:1.7}.panel-close{width:42px;height:42px;padding:7px;top:8px;left:8px;background:linear-gradient(#365366,#183a4f);border:1px solid #d3ad6d77;border-radius:12px;box-shadow:0 3px #071e30}.panel-close .ui-art{width:100%;height:100%}.setting-row{font-size:16px}.settings-panel label[for=audio-volume]{font-size:13px}.settings-panel input[type=checkbox]{width:23px;height:23px;accent-color:#4cc3e6}.settings-panel input[type=range]{height:28px;accent-color:#43bde7}.ledger-panel{right:20px;left:auto}.ledger-panel dl>div{font-size:14px;line-height:1.6}.ledger-panel dd{font-size:16px}.stage-grid button{min-height:54px;padding:8px;font-size:12px;color:#e7f3ed;background:linear-gradient(#36576d,#22475e);border:1px solid #79959d77;border-radius:10px}.stage-grid button.current{background:linear-gradient(#3298bd,#1c6386);border-color:#f4cd78}.stage-grid button:disabled{opacity:.48}.weapon-choice{background:linear-gradient(#36586a,#244459);border:1px solid #aac1bd55;color:#e9f3eb;border-radius:11px}.weapon-choice>span{font-size:12px}.weapon-choice small{color:#c3d8d8;font-size:10px}.weapon-choice.selected{border-color:#ffe08b;background:linear-gradient(#347997,#1d516b);box-shadow:inset 0 0 12px #8ae2e52b}.weapon-choice img{width:85px;height:77px}.panel-link{color:#ffdf8b;font-size:13px}.building-upgrade{position:relative;min-height:105px;padding:15px 82px 15px 12px;background:linear-gradient(#2c536a,#1d3c54);border:1px solid #afc2b666;border-radius:13px;color:#fff0c8}.building-upgrade b{font-size:17px}.building-upgrade span{font-size:12px;color:#b9d0d3}.building-upgrade small{font-size:14px;color:#ffdc7c}.building-art{position:absolute;right:7px;top:15px;width:67px;height:67px;object-fit:contain}.reward-button{position:relative;min-height:70px;padding-right:70px;background:linear-gradient(#8c6d35,#5b452b);border-color:#eacb80;font-size:16px;border-radius:13px}.reward-button small{font-size:11px}.reward-art{position:absolute;right:10px;top:4px;width:60px;height:60px;object-fit:contain}.reward-overlay{z-index:35;background:#091e35aa}.reward-overlay .dialog{width:min(100%,370px)}.reward-overlay p{font-size:14px}.reward-overlay select{font-size:14px;padding:12px;color:#f8edc6;background:#203f55;border-color:#bca671}
.overlay{padding:20px;background:#0a20354d;pointer-events:auto}.dialog{position:relative;max-height:calc(100dvh - 40px);overflow:auto;width:min(100%,370px);padding:25px;background:linear-gradient(150deg,#21445ced,#112e47f7);color:#fff3d0;border:2px solid #d8ba72;border-radius:23px;box-shadow:0 6px 0 #071b2bb3,0 20px 70px #09172cb3,inset 0 0 0 4px #f8d88c12;backdrop-filter:blur(9px)}.dialog-icon{display:block;width:85px;height:85px;margin:-2px auto 8px}.dialog-icon img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 5px 4px #081c32aa)}#dialog-kicker{font-size:13px;color:#f8d57d}.dialog h2{font-size:27px;line-height:1.35;margin-bottom:13px;color:#fff2ce}.dialog>p#dialog-copy{font-size:14px;line-height:1.75;color:#c6d9dc;margin-bottom:20px}.primary-button{min-height:54px;padding:10px 18px;border-radius:13px;background:linear-gradient(#42b5dd,#1e7aa9);border:2px solid #a8e4ec;box-shadow:0 5px 0 #0b4567,inset 0 2px #e4fbff55;color:#fff8df;font-size:19px;gap:12px}.primary-button img{width:37px;height:37px;object-fit:contain}.primary-button:active:not(:disabled){transform:translateY(3px) scale(.98)}.secondary-button{font-size:14px;color:#d3e4df;min-height:42px;padding:9px 12px 0;display:inline-flex;align-items:center;gap:5px}.secondary-button img{width:26px;height:26px}.gesture-hint{font-size:11px;color:#a9c2ca;margin-top:14px}.result-economy{font-size:13px;line-height:1.8;background:#18394e;border-color:#78998c66;color:#e7e8bc}.intro-hints{display:none}.help-panel{z-index:32}.help-step{display:flex;gap:14px;align-items:center;margin:12px 0}.help-step img{width:65px;height:65px;object-fit:contain;flex:none}.help-step p{margin:0}.help-step b{display:block;font-size:17px;color:#ffe19c;margin-bottom:3px}
/* Home is its own game state, not an oversized start modal over combat controls. */
#game[data-screen=home]>.hud-top,#game[data-screen=home]>.hud-bottom,#game[data-screen=home]>.view-tools,#game[data-screen=home]>#castle-energy,#game[data-screen=home]>#feedback-layer,#game[data-screen=home]>#structure-labels{visibility:hidden;pointer-events:none}.home-screen{position:absolute;inset:0;z-index:20;overflow:hidden;background:#0e253d;color:#fff2cc}.home-art,.loading-art{position:absolute;inset:0;background-image:url('assets/splash-v4/canyon-dawn.webp');background-size:cover;background-position:52% 42%;transform:scale(1.025);animation:home-breathe 18s ease-in-out infinite alternate}.home-shade{position:absolute;inset:0;background:linear-gradient(180deg,#0b223449,transparent 37%,#0c263992 58%,#0c2239ed 84%,#0b2038)}.home-top{position:absolute;top:max(18px,env(safe-area-inset-top));left:max(22px,env(safe-area-inset-left));right:max(22px,env(safe-area-inset-right));display:flex;justify-content:space-between;align-items:center}.home-progress{display:flex;gap:6px;align-items:center;background:#102c42bf;border:1px solid #e0c88666;border-radius:30px;padding:2px 13px 2px 7px;box-shadow:inset 0 1px #ffeeb622,0 3px 8px #10223244}.home-progress img{width:35px;height:35px}.home-progress b{font-size:21px}.home-progress span{font-size:12px;color:#d6e2d9}.home-title{position:absolute;top:11%;right:0;left:0;text-align:center;filter:drop-shadow(0 7px 5px #081d35b3)}.home-title>p{font-size:12px;font-weight:600;color:#f9ecc5;margin:0 0 10px;text-shadow:0 2px 4px #071a30}.home-title h1{font-size:58px;line-height:.88;margin:0;color:#fff1bd;font-weight:800;text-shadow:0 3px #b68b39,0 6px #745c2c,0 9px #17354a,0 12px 12px #09203db3;transform:rotate(-3deg)}.home-title h1 span{display:block;font-size:78px;color:#ffd66f;margin-top:6px}.title-rule{margin:21px auto 0;width:110px;height:3px;background:linear-gradient(90deg,transparent,#ffdfa0,transparent)}.home-command{position:absolute;bottom:190px;left:22px;right:22px;max-width:390px;margin:auto}.selected-mission{display:flex;align-items:center;gap:10px;position:relative;padding:8px 10px 10px;border:1px solid #f1d48e6b;border-radius:17px;background:linear-gradient(135deg,#15394cec,#0c273ce6);box-shadow:0 4px 18px #0a203855,inset 0 1px #f6f0bf1a;margin-bottom:13px;text-align:right}.selected-mission>img{width:62px;height:62px;object-fit:contain}.selected-mission>div:nth-child(2){flex:1}.selected-mission span{font-size:10px;color:#f4cf77;display:block}.selected-mission h2{font-size:23px;line-height:1.2;margin:2px 0 3px;color:#fff0bf}.selected-mission p{font-size:12px;color:#aecbd1;margin:0}.mission-medal{position:relative;width:48px;height:58px;flex:none}.mission-medal img{width:100%;height:100%;object-fit:contain}.mission-medal b{position:absolute;inset:0;display:grid;place-items:center;font-size:19px;color:#fff5c4;text-shadow:0 2px #234f69;transform:translateY(-2px)}.battle-button{position:relative;display:grid;grid-template-columns:52px 1fr;grid-template-rows:36px 18px;column-gap:9px;align-items:center;width:100%;min-height:80px;padding:9px 25px 11px;border-radius:20px;color:#fff6d4;background:linear-gradient(#51c7ed 0%,#2487be 45%,#176694 100%);border:2px solid #b8f1f4;box-shadow:0 6px 0 #093b64,0 9px 0 #091f38,inset 0 3px 0 #defaff77,0 0 26px #48caff33;text-shadow:0 2px 2px #124f78;transition:transform .15s,filter .15s}.battle-button>img{grid-row:1/3;width:52px;height:52px;filter:drop-shadow(0 3px 2px #13436e66)}.battle-button>span{font-size:27px;font-weight:800;line-height:1.2;text-align:center}.battle-button>small{font-size:12px;color:#c7eff0;line-height:1.2;text-align:center}.battle-button:active{transform:translateY(3px) scale(.98);filter:brightness(1.1)}.home-links{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:16px}.home-links button{flex:1;display:flex;align-items:center;justify-content:center;gap:3px;min-height:42px;padding:0 2px;background:transparent;color:#f8eccb;font-size:13px;text-shadow:0 2px #0a2337}.home-links img{width:33px;height:33px;object-fit:contain;filter:drop-shadow(0 2px 2px #061e36)}.home-worlds{position:absolute;bottom:33px;left:22px;right:22px;max-width:600px;margin:auto}.worlds-heading{display:flex;align-items:center;justify-content:space-between;margin:0 1px 8px}.worlds-heading h2{font-size:15px;margin:0;color:#ffe6a6}.worlds-heading>span{font-size:10px;color:#9dbac6}.world-cards{display:flex;gap:9px;overflow-x:auto;padding:2px 2px 8px;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#d8b96b55 transparent}.world-card{position:relative;flex:0 0 99px;height:103px;padding:0 0 6px;border-radius:12px;border:1px solid #a0bbc155;color:#eef4e8;background:linear-gradient(#1d4057,#112d44);overflow:hidden;scroll-snap-align:start;box-shadow:0 3px 0 #081e33}.world-card img{width:100%;height:57px;object-fit:cover;background:var(--map-ground,#759343);display:block;border-bottom:1px solid #e2d9a733}.world-card b{display:block;line-height:1.2;font-size:12px;padding:5px 2px 0}.world-card small{display:block;font-size:9px;color:#9cbbc5}.world-card.selected{border:2px solid #ffd886;box-shadow:0 0 10px #f5d16c33}.home-version{position:absolute;bottom:5px;right:0;left:0;text-align:center;color:#719bab;font-size:10px;margin:0}.home-motes{position:absolute;inset:0;pointer-events:none;overflow:hidden}.home-motes i{position:absolute;width:4px;height:4px;background:#ffdf8c;border-radius:50%;box-shadow:0 0 10px #ffd165;bottom:-20px;left:15%;animation:ember-rise 10s linear infinite}.home-motes i:nth-child(2){left:32%;animation-delay:-4s}.home-motes i:nth-child(3){left:48%;animation-delay:-7s;width:2px;height:2px}.home-motes i:nth-child(4){left:64%;animation-delay:-1s}.home-motes i:nth-child(5){left:77%;animation-delay:-6s;width:3px;height:3px}.home-motes i:nth-child(6){left:90%;animation-delay:-3s}.home-motes i:nth-child(7){left:7%;animation-delay:-8s}.home-motes i:nth-child(8){left:58%;animation-delay:-5s}
/* A supply convoy moves while actual assets load; progress reflects completed assets. */
#loading.loading-screen{z-index:50;display:block;position:absolute;inset:0;background:#0b223a;opacity:1;transition:opacity .35s ease-out;pointer-events:auto}.loading-screen.done{opacity:0!important;pointer-events:none!important}.loading-art{background-position:55% 30%;filter:brightness(.6) saturate(.9);animation:none}.loading-shade{position:absolute;inset:0;background:linear-gradient(transparent,#0b233a99 35%,#0b2138fc 78%)}.loading-content{position:absolute;bottom:9%;left:25px;right:25px;width:min(460px,calc(100% - 50px));margin:auto;text-align:center}.loading-kicker{font-size:12px;color:#f9d68d;margin:0 0 8px}.loading-content h2{font-size:46px;line-height:1.25;margin:0 0 12px;font-weight:800;color:#ffe2a0;text-shadow:0 4px #79552d}.supply-scene{position:relative;height:97px;margin:10px 0}.supply-track{position:absolute;bottom:6px;left:0;right:0;height:17px;border-bottom:2px solid #b7a26755;border-radius:50%;background:radial-gradient(ellipse,#caa96833,transparent 65%)}.supply-crate{position:absolute;width:75px;height:75px;right:20%;bottom:4px;object-fit:contain;animation:crate-bob 1.4s ease-in-out infinite}.supply-soldier{position:absolute;width:95px;height:95px;right:44%;bottom:3px;object-fit:contain;animation:convoy-bob .65s ease-in-out infinite alternate}#loading-label{font-size:19px;font-weight:700;margin:10px 0;color:#f4edce}.loading-progress{direction:ltr;height:16px;border:2px solid #d4b671;border-radius:20px;background:#0a1f32;box-shadow:0 3px 0 #071726,inset 0 2px 4px #0007;overflow:hidden;padding:2px}.loading-progress i{display:block;width:0;height:100%;background:linear-gradient(#b8f2f0,#31b5d4);border-radius:10px;box-shadow:0 0 8px #52e5ff88;transition:width .2s ease-out}.loading-meta{display:flex;justify-content:space-between;gap:12px;margin:8px 2px;color:#aac8d2;font-size:12px}.loading-meta b{color:#f6d786;font-size:15px;direction:ltr}.loading-tip{font-size:12px;color:#8baebb;line-height:1.6;margin:22px auto 0;max-width:330px}.load-failed .supply-crate,.load-failed .supply-soldier{animation:none}.load-failed .loading-tip{display:none}#retry-loading{margin-top:15px}
@keyframes home-breathe{to{transform:scale(1.06) translateY(-6px)}}@keyframes ember-rise{0%{transform:translate3d(0,0,0);opacity:0}12%{opacity:.7}85%{opacity:.4}100%{transform:translate3d(35px,-85vh,0);opacity:0}}@keyframes crate-bob{50%{transform:translateY(-4px) rotate(-2deg)}}@keyframes convoy-bob{to{transform:translateY(-4px) rotate(1deg)}}
@media(min-width:701px) and (min-height:551px){.home-art{background-position:30% 43%}.home-shade{background:linear-gradient(270deg,#0c2239ed 0%,#0c2639b3 32%,transparent 68%),linear-gradient(0deg,#0b2239f0,transparent 40%)}.home-title{top:18%;left:auto;right:7%;width:360px}.home-title h1{font-size:66px}.home-title h1 span{font-size:91px}.home-command{right:7%;left:auto;width:360px;bottom:185px}.home-worlds{left:5%;right:auto;bottom:35px;max-width:calc(100% - 10%);width:710px}.world-card{flex-basis:109px;height:107px}.world-card img{height:62px}.worlds-heading{max-width:700px}.home-version{right:30px;left:auto;bottom:14px}.home-top{right:35px;left:35px}.home-title>p{font-size:14px}.game-panel{width:min(430px,calc(100% - 40px))}.help-panel{left:50%;top:50%;transform:translate(-50%,-50%)}.hud-bottom{width:430px}}
@media(max-width:540px){.view-tools{top:145px;left:max(10px,env(safe-area-inset-left));gap:6px}.view-tools .icon-button{width:40px;height:40px;padding:3px;border-radius:12px}.hud-top{padding:12px 14px 22px}.wallet #coins{font-size:19px}.hud-top .mission-meta #stage-label{font-size:13px}.mission-meta>small{font-size:9px}.base-health{margin-top:8px}.base-row{font-size:11px}.coin-notice{font-size:9px}.castle-energy{width:150px}.castle-energy>span{font-size:8px}.battle-info{padding:0 5px;font-size:10px}.battle-info b{font-size:12px}.hud-bottom{padding:14px 10px max(12px,env(safe-area-inset-bottom))}.dialog{padding:22px;width:min(100%,360px)}.dialog-icon{display:block;width:76px;height:76px}.dialog h2{font-size:26px}.dialog>p#dialog-copy{font-size:14px}.gesture-hint{font-size:10px}.game-panel{top:16px;left:16px;max-height:calc(100dvh - 32px);width:calc(100% - 32px);padding:23px 20px}.ledger-panel{right:16px;left:auto}.arsenal-panel{max-height:calc(100dvh - 32px)}.weapon-choice img{height:71px}.weapon-choice>span{font-size:11px}.game-panel .panel-close{width:40px;height:40px}.help-step img{width:58px;height:58px}}
@media(max-width:540px) and (max-height:700px){.home-title{top:12%}.home-title h1{font-size:44px}.home-title h1 span{font-size:59px}.home-title>p{font-size:10px;margin-bottom:8px}.title-rule{margin-top:14px}.home-command{bottom:160px;left:18px;right:18px}.selected-mission{padding:5px 9px;margin-bottom:9px}.selected-mission>img{width:49px;height:49px}.selected-mission h2{font-size:20px}.selected-mission p{font-size:11px}.mission-medal{width:38px;height:46px}.battle-button{min-height:67px;padding:6px 19px;grid-template-rows:29px 16px;grid-template-columns:43px 1fr}.battle-button>span{font-size:24px}.battle-button>small{font-size:10px}.battle-button>img{width:43px;height:43px}.home-links{margin-top:10px;gap:5px}.home-links button{font-size:12px;min-height:35px}.home-links img{width:28px;height:28px}.home-worlds{left:18px;right:18px;bottom:26px}.worlds-heading{margin-bottom:5px}.worlds-heading h2{font-size:13px}.world-card{height:89px;flex-basis:92px}.world-card img{height:46px}.world-card b{font-size:11px}.home-version{font-size:9px;bottom:2px}.home-top{top:14px;left:18px;right:18px}.home-top .icon-button{width:39px;height:39px}.home-progress{padding:1px 10px 1px 4px}.home-progress img{width:29px;height:29px}.home-progress span{font-size:10px}.home-progress b{font-size:18px}.view-tools{top:130px;gap:4px}.view-tools .icon-button{width:37px;height:37px}.hud-bottom .action-art{width:66px;height:66px}.deploy-button .action-art{width:81px;height:78px}.upgrade-button{height:101px}.deploy-button{height:111px}.dialog-icon{width:62px;height:62px}.dialog h2{font-size:24px}.dialog{padding:18px}.dialog>p#dialog-copy{font-size:13px}.loading-content{bottom:7%}.loading-content h2{font-size:39px}.supply-scene{height:78px}}
@media(max-height:550px) and (min-width:541px){.home-title{top:19%;right:7%;left:auto;width:280px}.home-title>p{font-size:11px}.home-title h1{font-size:43px}.home-title h1 span{font-size:58px}.title-rule{margin-top:15px}.home-top{top:12px;left:20px;right:20px}.home-top .icon-button{width:39px;height:39px}.home-command{bottom:26px;right:6%;left:auto;width:290px;max-width:42%}.selected-mission{padding:4px 8px;margin-bottom:8px}.selected-mission>img{width:44px;height:44px}.selected-mission h2{font-size:18px}.selected-mission p{font-size:10px}.mission-medal{width:35px;height:43px}.battle-button{min-height:63px;grid-template-rows:26px 15px;grid-template-columns:40px 1fr;padding:6px 17px}.battle-button>span{font-size:23px}.battle-button>small{font-size:10px}.battle-button>img{width:40px;height:40px}.home-links{margin-top:8px;gap:4px}.home-links button{font-size:11px;min-height:28px}.home-links img{width:26px;height:26px}.home-worlds{left:4%;right:auto;width:40%;bottom:28px}.world-card{height:90px;flex-basis:93px}.world-card img{height:48px}.worlds-heading h2{font-size:13px}.worlds-heading>span{font-size:9px}.home-version{bottom:4px;font-size:9px}.home-art{background-position:30% 44%}.home-shade{background:linear-gradient(270deg,#0d243ce6,transparent 75%),linear-gradient(0deg,#0e253ee6,transparent 70%)}.home-progress span{font-size:10px}.home-progress img{width:29px;height:29px}.view-tools{top:12px;left:12px;flex-direction:row;gap:5px}.view-tools .icon-button{width:38px;height:38px}.hud-top{width:290px;max-width:40%;padding:10px 14px 15px}.hud-top .mission-meta #stage-label{font-size:11px}.mission-meta>span{font-size:10px}.mission-meta>small{font-size:8px}.coin-notice{font-size:8px}.wallet .ui-art{width:25px;height:25px}.wallet #coins{font-size:17px}.wallet small{display:none}.hud-bottom{left:auto;right:10px;transform:none;width:330px;padding-bottom:8px}.upgrade-button{height:86px;font-size:11px}.deploy-button{height:98px;font-size:13px}.hud-bottom .action-art{width:62px;height:60px}.deploy-button .action-art{width:76px;height:72px}.battle-info{font-size:9px}.deploy-button small{font-size:8px}.base-row{font-size:10px}.dialog{max-width:380px;padding:14px 22px;max-height:calc(100dvh - 24px)}.dialog-icon{width:53px;height:53px;margin-bottom:2px}.dialog h2{font-size:23px;margin-bottom:8px}.dialog>p#dialog-copy{font-size:12px;margin-bottom:12px}.primary-button{min-height:46px;font-size:17px}.primary-button img{width:30px;height:30px}.secondary-button{font-size:12px;padding-top:5px}.gesture-hint{font-size:9px;margin-top:7px}.game-panel{top:12px;max-height:calc(100dvh - 24px)}.loading-content{bottom:7%;max-width:350px}.loading-content h2{font-size:35px;margin-bottom:4px}.loading-kicker{font-size:10px;margin-bottom:3px}.supply-scene{height:66px;margin:3px 0}.supply-crate{width:57px;height:57px}.supply-soldier{width:70px;height:70px}#loading-label{font-size:16px;margin:7px 0}.loading-tip{margin-top:9px;font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.home-art{transform:none}.home-motes{display:none}}

.panel-link img{width:24px;height:24px;object-fit:contain;vertical-align:middle}.game-panel,.overlay,.dialog{transition:scale .25s cubic-bezier(.2,0,0,1),display .25s allow-discrete}.game-panel[hidden],.overlay[hidden]{scale:.98}.game-panel:not([hidden]),.overlay:not([hidden]),.home-screen:not([hidden]){opacity:1}.home-screen{transition:display .3s allow-discrete}@starting-style{.game-panel:not([hidden]),.overlay:not([hidden]){scale:.98}}
.wallet{padding-bottom:16px;min-height:55px}.wallet small{font-family:"Baloo Game",Tahoma,sans-serif;font-size:10px;line-height:1.3;bottom:3px}.home-progress{direction:rtl}
@media(max-height:550px) and (min-width:541px){.home-title h1{font-size:37px}.home-title h1 span{font-size:49px;margin-top:4px}.home-title>p{font-size:9px;margin-bottom:5px}.title-rule{margin-top:10px}.wallet{min-height:35px;padding-bottom:4px}}
.settings-panel input[type=checkbox]{appearance:none;width:44px;height:44px;background:#21475d url('assets/ui-v4/sound-off.png') center/36px 36px no-repeat;border:1px solid #adba9b77;border-radius:12px;box-shadow:0 3px #0b2439;cursor:pointer}.settings-panel input[type=checkbox]:checked{background-image:url('assets/ui-v4/sound-on.png');border-color:#e8c974}.settings-panel input[type=checkbox]:focus-visible{outline:3px solid #ffe7a0;outline-offset:3px}
