html,body{background:#171a2b}body{color:#f7f2ff}body>header,main>aside{display:none}main{--game-h:min(100svh,calc(100vw*16/9));margin:0 auto;padding:0;gap:0;max-width:none;min-height:100svh;justify-content:center}.game-stage{box-shadow:0 0 90px #06081477}.standard-home .home-world{background-position:center;background-size:100.0434% 125%}.standard-home button{font-family:RecoveredNunito,system-ui}.standard-settings{position:absolute;right:6%;top:5%;width:8%;aspect-ratio:1;padding:0;border:0;background:none;z-index:2}.standard-settings img{width:100%;height:100%;object-fit:contain}.standard-heading{position:absolute;left:9%;top:9%;right:9%;text-align:center}.standard-heading>span{font-size:3cqw;color:#b9b2d6;font-weight:900;letter-spacing:.25em}.standard-heading h1{font-size:6.6cqw;margin-top:3cqw;letter-spacing:.04em;color:#fff4db;font-weight:900}.standard-challenge{position:absolute;left:25%;top:27%;width:50%;height:auto;aspect-ratio:396/415;border:0;background:none;padding:0;color:#fff;text-align:center;filter:drop-shadow(0 8px 12px #0d153655)}.challenge-card-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.challenge-calendar-year{position:absolute;left:28.5%;width:43%;top:36%;font-size:2.6cqw;line-height:1;color:#957480;font-weight:900;pointer-events:none}.challenge-calendar-date{position:absolute;left:28.5%;width:43%;top:42%;height:16%;display:flex;align-items:baseline;justify-content:center;gap:1.4cqw;color:#785d76;pointer-events:none}.challenge-calendar-date small{font-size:2.9cqw;font-weight:800}.challenge-calendar-date b{font-size:7.3cqw;line-height:1;font-weight:900}.challenge-card-title{position:absolute;left:5%;right:5%;top:81%;font-size:4.8cqw;font-weight:900;text-shadow:0 2px #244285}.challenge-card-description{position:absolute;top:111%;left:-25%;width:150%;font-size:2.9cqw;color:#b4b3d0;font-weight:500;white-space:nowrap}.standard-mainline{position:absolute;left:0;right:0;top:66%;height:30%;text-align:center}.standard-eyebrow{font-size:3.4cqw;color:#d0c4e2;letter-spacing:.14em}.standard-progress{display:flex;justify-content:center;align-items:center;gap:5cqw;margin-top:4cqw}.standard-dot{background:#2f3b43;border:1px solid #586559;box-shadow:0 3px 0 #1f243c;border-radius:50%;width:8cqw;height:8cqw;display:grid;place-items:center;color:#ced5bb;font-size:3.4cqw;font-weight:900}.standard-dot.current{background:#87be44;color:white;border:2px solid #d2f797;box-shadow:0 0 18px #99c44633}.standard-play{left:21.4%;top:42%;width:57.2%;height:44%;}.standard-play .home-level-label{font-size:4.2cqw}.standard-play .home-play-label{font-size:6cqw}.standard-challenge:active,.standard-settings:active{filter:brightness(.8)}
.daily-screen{position:absolute;inset:0;background:#232e50 url('assets/home/BG_Main.png') center/100% 125%;z-index:10;color:#fff;container-type:inline-size}.daily-top{position:absolute;top:4%;left:6%;right:6%;height:6%;display:flex;justify-content:space-between;align-items:center}.daily-top h2{font-size:6cqw;margin:0;text-shadow:0 2px #122c5a}.daily-top>span,.daily-back{width:10cqw}.daily-back{background:none;border:0;color:white;font-size:10cqw;padding:0;line-height:1}.daily-paper{position:absolute;left:6%;top:13%;width:88%;height:68%;background:url('assets/daily/Panel_ChallengePage_1.png') center/100% 100% no-repeat;filter:drop-shadow(0 8px 7px #101c3c66)}.daily-month{position:absolute;left:10%;right:10%;top:21%;height:11%;display:flex;align-items:center;justify-content:space-between;color:#68534b}.daily-month>div{display:flex;align-items:baseline;gap:3cqw}.daily-month small{font-size:4cqw;color:#957a67}.daily-month strong{font-size:7cqw}.daily-month button{border:0;background:none;color:#89715e;font-size:9cqw;padding:0;line-height:1}.daily-week{position:absolute;left:11%;right:11%;top:35%;display:grid;grid-template-columns:repeat(7,1fr);text-align:center;font-size:3cqw;color:#a58c77}.daily-grid{position:absolute;left:10%;right:10%;top:42%;height:40%;display:grid;grid-template-columns:repeat(7,1fr);grid-auto-rows:1fr;gap:1cqw}.daily-day{position:relative;border:0;padding:0;border-radius:2cqw;color:#6b574e;background:#f4dfb5;font-size:3.7cqw;font-weight:900;min-height:0}.daily-day:disabled{opacity:.36;background:#e6d3b1;cursor:default}.daily-day.is-today{outline:2px solid #e5ad32;outline-offset:0}.daily-day.is-selected{background:#6483c1;color:white;box-shadow:inset 0 -3px #42639e}.daily-day.is-complete{background:#83ac66;color:white}.daily-day i{position:absolute;right:0;bottom:-1cqw;font-style:normal;color:#fff;font-size:2.8cqw}.daily-status{position:absolute;left:5%;right:5%;bottom:7.5%;text-align:center;color:#967b64;font-size:3.2cqw}.daily-selection{position:absolute;top:84%;left:3%;right:3%;text-align:center;font-size:3.2cqw;color:#c9cce4}.daily-start{position:absolute;left:23%;top:89%;width:54%;height:8%;border:0;background:transparent url('assets/panels/Btn_Green.png') center/100% 100% no-repeat;color:white;font-size:5.2cqw;font-weight:900;text-shadow:0 2px #357226}.daily-grid button:focus-visible,.standard-challenge:focus-visible{outline:3px solid #fff;outline-offset:3px}.home-toast{z-index:90}.play{border-radius:0}.prop-overlay{position:absolute;inset:0;pointer-events:none;z-index:12;overflow:hidden}.prop-overlay>img,.prop-overlay>span{position:absolute;pointer-events:none}.prop-overlay .prop-trail{width:1.8cqw;height:1.8cqw;border-radius:50%;background:#ffe976;box-shadow:0 0 10px #ffc941}.prop-float{font-size:9cqw;color:#fff18c;font-weight:900;text-shadow:0 2px #a35c22}
.supply-info{position:absolute;inset:17% 5% 22%;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3cqw;font-size:4cqw}.supply-info img{width:35%;height:40%;object-fit:contain}.supply-info strong{font-size:6cqw}.supply-info span{font-size:3.5cqw}.supply-info p{font-size:3.5cqw;color:#ffe0a1;margin:0;text-align:center}.supply-panel{z-index:60}
.daily-month,.daily-week,.daily-grid{left:15%;right:15%}.daily-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.daily-day{min-width:0}.daily-month button{width:7cqw;flex-shrink:0;font-family:system-ui;font-weight:600}.daily-top .daily-back{font-family:system-ui}
.level-failure{inset:0;z-index:40;gap:5cqw;background:#17172ce8}.level-failure strong{font-size:9cqw;color:#ffe597}.level-failure span{font-size:3.7cqw}.level-failure button{background:transparent url('assets/panels/Btn_Green.png') center/100% 100% no-repeat;border:0;width:54%;height:9%;font-size:5cqw;font-weight:900}.level-failure .failure-home{background:none;color:#cfc6df;font-size:3.8cqw;height:auto}.level.daily-level{font-size:3.8cqw}
#hammer.armed img{filter:drop-shadow(0 0 10px #ffe165);transform:rotate(-12deg) scale(1.1)}#hammer.armed{color:#ffef9e}
/* Selection instruction stays legible below the item labels without covering the board. */
.message.hammer-banner{left:5%;right:5%;bottom:1.2%;height:5.6%;min-height:0;padding:0 2.5cqw 0 9cqw;border:1px solid #f4d28a;border-radius:2.4cqw;background:#f6dfaa;color:#594124;box-shadow:0 3px 0 #9e744b66;gap:2cqw;font-size:3cqw;font-weight:900;justify-content:space-between;text-align:left;z-index:14}.message.hammer-banner::before{content:'';position:absolute;left:1.8cqw;top:12%;height:76%;width:6.5cqw;background:url('assets/hammer.png') center/contain no-repeat}.hammer-banner button{border:0;background:#815e33;color:#fff4d6;padding:1cqw 1.8cqw;border-radius:1.3cqw;font-size:2.9cqw;flex-shrink:0}
.standard-heading{top:7%;left:10%;right:10%;height:19%;display:grid;place-items:center}.brand-logo{width:100%;height:100%;object-fit:contain}.standard-home .challenge-card-description{display:none}.challenge-calendar-date small{font-size:2.7cqw}.standard-settings{z-index:4}.standard-challenge .challenge-card-title{font-size:clamp(10px,4.3cqw,24px);top:78%;bottom:5%;display:flex;align-items:center;justify-content:center;line-height:1.1;padding:0 4%}.standard-home .home-play-label{font-size:clamp(13px,5.2cqw,28px);max-width:90%;line-height:1.1;bottom:22%}.standard-home .home-level-label{font-size:clamp(10px,3.8cqw,20px);max-width:95%;line-height:1.15;top:12%}.daily-month strong{font-size:5.3cqw;line-height:1.1;max-width:40cqw;overflow-wrap:anywhere}.daily-selection{padding:0 3%;line-height:1.3}.daily-top h2{font-size:5cqw;text-align:center;line-height:1.2}.daily-start{font-size:4.7cqw;padding:0 5%;line-height:1.15}.settings-title{font-size:5.5cqw;text-align:center;line-height:1.1;padding:0 3%}.settings-bottom button{font-size:3.4cqw;line-height:1.15;padding:0 3%}.settings-option{font-size:3.2cqw}.localized-win{display:flex;align-items:center;justify-content:center;font-size:10cqw;line-height:1.1;color:#ffe477;text-shadow:0 3px #985f1d;margin:0;text-align:center}.settlement #continue{font-size:4.4cqw;line-height:1.15}.message.hammer-banner{font-size:2.8cqw;line-height:1.15}.hammer-banner button{font-size:2.7cqw}.level-failure strong{font-size:7cqw;text-align:center}.level-failure span{font-size:3.6cqw;text-align:center;max-width:85%}html[dir=rtl] .home-world,html[dir=rtl] .daily-screen{direction:rtl}html[dir=rtl] .bar,html[dir=rtl] .actions,html[dir=rtl] .daily-grid,html[dir=rtl] .daily-week,html[dir=rtl] .daily-month{direction:ltr}html[dir=rtl] .daily-selection{unicode-bidi:plaintext}.settlement{padding-bottom:var(--settlement-reserve,0px)}.settlement .settlement-home{top:auto;bottom:max(2%,var(--settlement-reserve,0px))}.settings-close,.daily-back{touch-action:manipulation}.prop-overlay{direction:ltr}main{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px);--game-h:min(calc(100svh - var(--safe-top) - var(--safe-bottom)),calc((100vw - var(--safe-left) - var(--safe-right))*16/9));min-height:100svh;padding:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);box-sizing:border-box}#boot-overlay{position:fixed;inset:0;background:#202941;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;font:16px system-ui;text-align:center;gap:20px;padding:20px}#boot-overlay img{width:min(70vw,360px);height:auto}#boot-overlay progress{width:min(65vw,300px);height:10px;accent-color:#b1d95d}#boot-overlay button{border:0;border-radius:12px;padding:12px 24px;background:#b0d76a;color:#283321}#boot-overlay [hidden]{display:none}
.supply-ad,.reward-ad,.revive-ad{border:1px solid #a8d9ff!important;background:#4d79ad!important;color:white!important;border-radius:2cqw;font-size:3.5cqw!important;line-height:1.15;padding:2cqw 3cqw!important}.settlement #continue{top:64%;height:8%}.settlement .reward-ad{position:absolute;left:25%;width:50%;top:74%;height:6%}.settlement .settlement-home{top:83%;bottom:auto}.settlement .settlement-title{top:10%}.settlement .settlement-coin{top:25%;height:20%}.settlement #resultTitle{top:46%;font-size:11cqw}.settlement #resultText{top:57%;font-size:3.3cqw}.supply-info{bottom:20%}.supply-ad{flex-shrink:0}.level-failure .revive-ad{background:#427bb5!important}.level-failure .failure-home{margin-bottom:0}.level-failure{padding-bottom:150px}
.settlement-content{position:absolute;inset:0 0 150px;min-height:0}.settlement .settlement-content .settlement-home{top:86%;height:8%;padding:0;font-size:3.6cqw}.settlement-content .reward-ad{top:75%}.settlement-content .settlement-wallet{height:5.5%;top:5%}
.level.daily-level{white-space:normal;font-size:3cqw;line-height:1.15;left:34%;width:28%;top:28%;height:70%;display:flex;align-items:center;justify-content:center;overflow-wrap:anywhere}.settings-option[aria-pressed=false] img:first-child{filter:saturate(.8)}html[lang=ar] body,html[lang=ar] button{font-family:TapArabic,system-ui,sans-serif}html[lang=ja] body,html[lang=ja] button{font-family:TapCJK,system-ui,sans-serif}html[lang=zh] body,html[lang=zh] button{font-family:TapCJK,system-ui,sans-serif}
@font-face{font-family:TapLatin;src:url('assets/fonts/latin.woff2') format('woff2');font-display:swap}@font-face{font-family:TapArabic;src:url('assets/fonts/arabic.woff2') format('woff2');font-display:swap}@font-face{font-family:TapCJK;src:url('assets/fonts/cjk.woff2') format('woff2');font-display:swap}body,button,select,.home-shell,.home-control,.home-modal,.daily-screen{font-family:TapLatin,TapArabic,TapCJK,system-ui,sans-serif}html[lang=ar] body,html[lang=ar] button,html[lang=ar] .home-shell{font-family:TapArabic,TapLatin,TapCJK,system-ui,sans-serif}html[lang=zh] body,html[lang=zh] button,html[lang=zh] .home-shell,html[lang=ja] body,html[lang=ja] button,html[lang=ja] .home-shell{font-family:TapCJK,TapLatin,system-ui,sans-serif}
.standard-heading{top:6%;height:18%}.standard-play .home-level-label,.standard-play .home-play-label{text-shadow:-1px -1px #36651c,1px -1px #36651c,-1px 1px #36651c,1px 2px #295116}.actions button{line-height:1.15;min-width:0;max-width:27%;text-align:center}.actions button span{direction:ltr}.daily-paper{direction:ltr}.daily-selection{unicode-bidi:plaintext}.stat b{font-variant-numeric:tabular-nums}
/* Arabic glyphs need taller line boxes; navigation chevrons use the symbol font. */
html[lang=ar] .home-level-label,html[lang=ar] .home-play-label{line-height:1.65}
html[lang=ar] .home-play-label{bottom:14%}
html[lang=ar] .daily-month button,html[lang=ar] .daily-back{font-family:system-ui,sans-serif;line-height:1}
html[lang=ar] .actions button{font-size:2.7cqw;line-height:1.5;max-width:29%}
html[lang=zh] .home-play-label,html[lang=ja] .home-play-label{line-height:1.5;bottom:18%}
html .daily-month button,html .daily-top .daily-back{font-family:system-ui,sans-serif!important;line-height:1}
html[lang=ar] .home-play-label{line-height:1.95;bottom:8%}
html[lang=ar] .home-level-label{line-height:1.95}
html .daily-month button,html .daily-top .daily-back{line-height:1.25}

.settlement #resultTitle{direction:ltr;unicode-bidi:isolate}
/* Keep the two play labels together as one centered group. */
.standard-home .standard-play{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.5cqw;padding:0 0 3cqw;box-sizing:border-box}
html .standard-home .standard-play .home-level-label,html .standard-home .standard-play .home-play-label{position:relative!important;top:auto;bottom:auto;margin:0;flex:0 0 auto}
html .daily-month button,html .daily-top .daily-back{line-height:1.25!important}
.settlement .reward-ad{height:8%;padding:0 2cqw!important;line-height:1.8}

/* Original BuyItemPanel: ad ×1 and coin ×2, plus a corner close control. */
.supply-panel .supply-info{inset:15% 6% 36%;gap:2cqw}
.supply-panel .supply-info>img{width:34%;height:54%}
.supply-panel .supply-balance{display:flex;align-items:center;justify-content:center;gap:1.5cqw;font-size:4cqw;direction:ltr}
.supply-panel .supply-balance img{width:6cqw;height:6cqw;object-fit:contain}
.supply-panel .supply-info p{min-height:2.6em;line-height:1.3;font-size:3cqw}
.supply-purchases{position:absolute;left:4%;right:4%;bottom:5%;height:29%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5%;direction:ltr}
.supply-choice{display:flex;flex-direction:column;align-items:center;gap:2cqw;min-width:0}
.supply-quantity{display:flex;align-items:center;justify-content:center;height:7cqw;gap:1cqw;font-size:4cqw;direction:ltr}
.supply-quantity img{width:7cqw;height:7cqw;object-fit:contain}
.supply-panel .supply-purchases button{display:flex;align-items:center;justify-content:center;gap:1.2cqw;width:100%;height:14cqw;padding:1cqw 2cqw!important;border:0!important;border-radius:0;background:transparent url('assets/panels/Btn_Green.png') center/100% 100% no-repeat!important;font-size:3.3cqw!important;line-height:1.25;color:white;font-weight:900;text-shadow:0 2px #295028;min-width:0}
.supply-panel .supply-purchases .supply-coin{background-image:url('assets/panels/Btn_Blue.png')!important;font-size:4.5cqw!important}
.supply-purchases button img{width:7cqw;height:8cqw;object-fit:contain;flex-shrink:0}
.supply-ad-label{min-width:0;overflow-wrap:anywhere}
html[lang=ar] .supply-ad-label{direction:rtl;line-height:1.7}
.supply-purchases button:disabled{filter:grayscale(.6);opacity:.7}
.standard-home .standard-challenge .challenge-card-title{font-size:3.5cqw;line-height:1.05;top:77%;bottom:4%;padding:0 3%}
.standard-home .challenge-calendar-date{gap:.8cqw}
.standard-home .challenge-calendar-date b{font-size:6.2cqw}
.standard-home .challenge-calendar-date small{font-size:2.2cqw}

/* Standard resource bar, with room below it for the lowered logo. */
.standard-home .standard-heading{top:13%;height:18%}
.standard-home .standard-challenge{left:29%;top:35%;width:42%}
.home-resources{position:absolute;inset:4.5% 20% auto 7%;height:5.1%;display:flex;gap:9%;z-index:3;direction:ltr}
.resource-card{position:relative;width:45.5%;height:100%;display:flex;align-items:center;justify-content:center;padding:0 0 0 4cqw;border:0;border-radius:0;background:transparent url('assets/home/Frame_MainPage_Coin.png') center/100% 100% no-repeat;color:#fff}
.resource-card b{font-size:4.5cqw;line-height:1.15;font-weight:900;direction:ltr;unicode-bidi:isolate}
.resource-icon{position:absolute;left:-4.5%;width:9cqw;height:9cqw;object-fit:contain;filter:drop-shadow(0 2px 1px #15214477)}
.resource-energy-timer{position:absolute;left:-10%;right:-10%;top:110%;font-size:clamp(8px,2.3cqw,13px);line-height:1.6;color:#efe5fa;white-space:nowrap;text-shadow:0 1px #15172a}
html[dir=rtl] .resource-energy-timer{direction:rtl}
.game-resources{position:absolute;left:10%;right:33%;top:4%;height:25%;display:flex;justify-content:space-between;gap:4cqw;direction:ltr;pointer-events:none}
.game-resources>span{display:flex;align-items:center;gap:1cqw;color:#fff;font-size:2.8cqw;line-height:1.2;min-width:0}
.game-resources img{width:4cqw;height:4cqw;object-fit:contain}.game-resources b{font-variant-numeric:tabular-nums;white-space:nowrap}
.energy-content{position:absolute;inset:15% 6% 23%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.4cqw;text-align:center}
.energy-content>img{width:19cqw;height:19cqw;object-fit:contain}.energy-amount{font-size:6cqw;direction:ltr}.energy-countdown{font-size:3.5cqw;line-height:1.6;color:#ffe588}
.energy-content p{color:#fff3dc;font-size:3.3cqw;line-height:1.5;margin:0}.energy-error{font-size:3cqw;line-height:1.4;color:#ffe0a1}
.energy-panel .energy-ad{position:absolute;left:10%;bottom:5%;width:80%;height:13%;border:0;background:transparent url('assets/panels/Btn_Green.png') center/100% 100% no-repeat;color:white;font-weight:900;font-size:3.6cqw;padding:0 3cqw;line-height:1.6}

.resource-card b,.game-resources b,.challenge-calendar-year,.challenge-calendar-date b{font-family:TapLatin,TapArabic,TapCJK,system-ui,sans-serif}
.resource-card b,.challenge-calendar-year{line-height:1.3}
.challenge-calendar-date{height:22%}.challenge-calendar-date b{line-height:1.15}
/* Borders and icon transforms measured from original UIBuyItemPanel (376 × 145). */
.supply-panel .supply-purchases button.recovered-button,.energy-panel .recovered-button,.settlement .recovered-button,.level-failure .recovered-button{isolation:isolate;border:0!important;border-radius:0!important;background:transparent!important;padding:0!important;box-shadow:none;color:#fff;text-shadow:0 2px #28542a;overflow:visible}
.recovered-button{position:relative}
.recovered-button::before{content:'';position:absolute;inset:0;box-sizing:border-box;z-index:-1;pointer-events:none;border:1px solid transparent;border-image-source:url('assets/panels/Btn_Green.png');border-image-slice:38 44 55 43 fill;border-image-width:26.2069% 11.7021% 37.9310% 11.4362%}
.recovered-button.recovered-blue::before{border-image-source:url('assets/panels/Btn_Blue.png');border-image-slice:35 70 67 64 fill;border-image-width:24.1379% 18.6170% 46.2069% 17.0213%}
.recovered-button .original-ad-icon{position:absolute;left:20.7447%;top:8.9655%;width:24.4681%;height:71.0345%;pointer-events:none}
.recovered-button .original-coin-icon{left:24.3351%;top:6.2759%;width:23.4043%;height:64.1379%}
.recovered-button .original-ad-icon>img,.recovered-button .original-ad-icon>canvas{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:contain;max-width:none;max-height:none}
.original-ad-icon.animated>img{visibility:hidden}
.recovered-button .ad-button-label{position:absolute;left:47.3404%;top:.3466%;width:31.9149%;height:76.2809%;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.15;overflow-wrap:anywhere;font-weight:900;direction:inherit}
.recovered-button.recovered-blue .ad-button-label{left:48.8032%;width:26.8617%}
html[lang=ar] .recovered-button .ad-button-label{line-height:1.8;direction:rtl}
.supply-panel .supply-purchases button.recovered-button{height:auto;aspect-ratio:376/145;flex-shrink:0}
.recovered-button:active{filter:brightness(.86);transform:scale(.97)}
.game-stage{container-type:inline-size}
.original-settings .recovered-button,.daily-screen .recovered-button{isolation:isolate;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none}
/* Unity Canvas reference width 1080: retain sprite-border widths as source UI units. */
.recovered-button::before{border-image-width:3.518519cqw 4.074074cqw 5.092593cqw 3.981481cqw}
.recovered-button.recovered-blue::before{border-image-width:3.240741cqw 6.481481cqw 6.203704cqw 5.925926cqw}
.daily-screen .daily-start.recovered-button{position:absolute}

/* Center the label on the green face above the sprite's lower bevel. */
.settlement #continue.recovered-button{
 display:grid;
 place-items:center;
 padding:0 3cqw 2.6cqw!important;
 text-align:center;
 overflow-wrap:break-word;
}


/* Report 2026-11-05: fill the available host viewport, including tall phones. */
html,body{width:100%;height:100%;min-height:0;background:#29324e url('assets/home/BG_Main.png') center/cover no-repeat}
main{--game-h:calc(100dvh - var(--safe-top) - var(--safe-bottom));--game-w:min(calc(100vw - var(--safe-left) - var(--safe-right)),calc(var(--game-h)*9/16));height:100dvh;min-height:0;margin:0;padding:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);align-items:center;justify-content:center}
.game-stage{box-shadow:none}
.resource-plus{position:absolute;right:-1.6cqw;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:5cqw;height:5cqw;border-radius:50%;background:#91ca43;color:white;border:1px solid #d4f29c;font:bold 5cqw/1 TapLatin,system-ui}
.resource-card b{white-space:nowrap;max-width:78%;font-size:4cqw}
.energy-card{padding-right:2cqw}
/* A purchase amount is one unbroken number; words may wrap only between words. */
.recovered-button .ad-button-label,.supply-ad-label{overflow-wrap:normal;word-break:normal;hyphens:none;white-space:normal}
.recovered-button.recovered-blue .ad-button-label{white-space:nowrap;left:40%;width:52%;font-variant-numeric:tabular-nums;direction:ltr}
.recovered-button .original-coin-icon{left:10%;width:22%}
.recovered-button .ad-button-label{left:40%;width:55%}
.recovered-button .original-ad-icon:not(.original-coin-icon){left:9%;width:25%}
.stat b{display:block;font-family:TapLatin,TapArabic,system-ui;white-space:nowrap;font-size:6cqw;line-height:1.2}
.stat{align-items:center;padding:1cqw 0}.stat>div:last-child{min-width:0;width:100%}
html[lang=ar] .stat span{font-size:2.5cqw;line-height:1.6}
.settings-options{gap:6%;padding:0 12%;justify-content:center}.settings-option{width:44%}


/* The banner can shorten the viewport without narrowing the portrait game. */
@media (orientation: portrait), (max-width: 600px) and (pointer: coarse) {
 main{--game-w:calc(100vw - var(--safe-left) - var(--safe-right))}
}

/* The board takes the space left after the controls and the longest status message. */
.game-stage .play:not([hidden]){
 display:grid;
 grid-template-rows:9.22% minmax(0,1fr) auto;
}
.play .canvaswrap{position:relative;inset:auto;height:auto;grid-row:2}
.game-footer{grid-row:3;display:grid;gap:.8cqw;padding:1cqw 5% 2cqw}
.game-footer .actions{position:static;height:auto;gap:5cqw;align-items:start}
.game-footer .actions button{width:28%;max-width:none;gap:.6cqw}
.prop-icon{position:relative;display:block;line-height:0}
.game-footer .prop-icon img{display:block;width:13cqw;height:13cqw}
.game-footer .prop-count{
 position:absolute;z-index:1;inset:-.3cqw -.8cqw auto auto;
 min-width:4.6cqw;padding:.5cqw .9cqw;border-radius:10cqw;
 background:#292440;border:1px solid #9283bb;color:white;
 font-weight:900;font-size:2.9cqw;line-height:1;white-space:nowrap;
}
.game-footer .prop-ad-badge{
 width:6.4cqw;
 height:6.4cqw;
 padding:0;
 background:#292440 url('assets/panels/Icon_WinPage_Adv.png') center/85% no-repeat;
}
.game-footer .message,.game-footer .message.hammer-banner{
 position:relative;inset:auto;height:auto;min-height:5.6cqw;line-height:1.35;
}
.game-footer .message.hammer-banner{padding-block:.7cqw}
.canvaswrap{-webkit-tap-highlight-color:transparent}
