.hb-ui{--hb-navy:#0e1830;--hb-navy-2:#17264a;--hb-line:#3a5190;--hb-text:#f4f7ff;--hb-muted:#a9b9e0;--hb-accent:#ffc83d;--hb-accent-dark:#c88a00;--hb-good:#46e3a0;--hb-bad:#ff6b6b;--hb-pad-t:max(10px, env(safe-area-inset-top));--hb-pad-r:max(10px, env(safe-area-inset-right));--hb-pad-b:max(10px, env(safe-area-inset-bottom));--hb-pad-l:max(10px, env(safe-area-inset-left));color:var(--hb-text);-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,Arial,sans-serif;line-height:1.2}.hb-ui *,.hb-ui :before,.hb-ui :after{box-sizing:border-box}.hb-ui [hidden]{display:none!important}.hb-ui .hb-btn{pointer-events:auto;font:inherit;color:var(--hb-text);background:var(--hb-navy-2);border:2px solid var(--hb-line);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;border-radius:14px;min-height:48px;padding:10px 18px;font-weight:800;transition:transform 80ms,filter .12s,background-color .12s}.hb-ui .hb-btn:active:not(:disabled){transform:scale(.96)}.hb-ui .hb-btn:focus-visible{outline-offset:2px;outline:3px solid #fff}.hb-ui .hb-btn:disabled{opacity:.45;cursor:default}.hb-ui .hb-primary{color:#2b1d00;background:linear-gradient(#ffd966, var(--hb-accent));box-shadow:0 4px 0 var(--hb-accent-dark), 0 8px 18px #00000059;border-color:#fff1b8;min-height:54px;font-size:1.15rem}.hb-ui .hb-primary:active:not(:disabled){box-shadow:0 1px 0 var(--hb-accent-dark);transform:translateY(3px)}.hb-ui .hb-secondary{background:var(--hb-navy-2)}.hb-ui .hb-danger{background:#b3262e;border-color:#ff9a9a}.hb-ui .hb-icon-btn{width:52px;min-width:52px;padding:0;font-size:2rem;line-height:1}.hb-ui .hb-toggle{flex:1 1 0;min-width:0;padding:8px 10px;font-size:.9rem}.hb-ui .hb-toggle.hb-off{color:var(--hb-muted)}.hb-ui .hb-overlay{z-index:2;overscroll-behavior:contain;padding:var(--hb-pad-t) var(--hb-pad-r) var(--hb-pad-b) var(--hb-pad-l);pointer-events:auto;display:flex;position:absolute;top:0;bottom:0;left:0;right:0;overflow-y:auto}.hb-ui .hb-dim{background:#050916a8;animation:.18s ease-out hb-fade}.hb-ui .hb-panel{border:2px solid var(--hb-line);background:#0e1830eb;border-radius:18px;box-shadow:0 10px 30px #0006}.hb-ui .hb-card{border:2px solid var(--hb-line);background:#0e1830f0;border-radius:20px;flex-direction:column;gap:12px;width:100%;max-width:520px;margin:auto;padding:18px;animation:.2s ease-out hb-rise;display:flex;box-shadow:0 12px 36px #00000080}.hb-ui .hb-card.hb-wide{max-width:760px}.hb-ui .hb-center{text-align:center}.hb-ui .hb-h2{letter-spacing:.02em;text-align:center;margin:0;font-size:clamp(1.6rem,6vw,2.1rem);font-weight:900}.hb-ui .hb-good{color:var(--hb-good)}.hb-ui .hb-bad{color:var(--hb-bad)}.hb-ui .hb-text{color:var(--hb-muted);margin:0;font-size:1.05rem}.hb-ui .hb-muted{color:var(--hb-muted);font-size:.95rem}.hb-ui .hb-stack,.hb-ui .hb-confirm{flex-direction:column;gap:10px;display:flex}.hb-ui .hb-section-title{letter-spacing:.12em;text-transform:uppercase;color:var(--hb-muted);font-size:.8rem;font-weight:800}.hb-ui .hb-menu-screen{background:linear-gradient(#05091640,#0509168c);overflow:hidden}.hb-ui .hb-menu{flex-direction:column;gap:10px;width:100%;max-width:520px;height:100%;min-height:0;margin:0 auto;display:flex}.hb-ui .hb-m-head{flex:none;justify-content:space-between;align-items:center;gap:10px;padding:8px 14px;display:flex}.hb-ui .hb-title{color:var(--hb-accent);text-transform:uppercase;letter-spacing:.03em;white-space:nowrap;text-overflow:ellipsis;min-width:0;margin:0;font-size:clamp(1rem,4.6vw,1.8rem);font-weight:900;overflow:hidden}.hb-ui .hb-coins-pill{color:var(--hb-accent);background:#0006;border-radius:999px;flex:none;padding:6px 14px;font-size:1.2rem;font-weight:900}@media (max-width:360px){.hb-ui .hb-m-head{padding:8px 10px}.hb-ui .hb-title{letter-spacing:0;font-size:.95rem}.hb-ui .hb-coins-pill{padding:5px 10px;font-size:1rem}}.hb-ui .hb-m-chapter{flex:none;align-items:center;gap:8px;padding:6px;display:flex}.hb-ui .hb-ch-mid{text-align:center;flex:1;min-width:0}.hb-ui .hb-ch-name{font-size:1.3rem;font-weight:900}.hb-ui .hb-ch-best{color:var(--hb-muted);font-size:.9rem}.hb-ui .hb-play{letter-spacing:.06em;flex:none;min-height:62px;font-size:1.6rem}.hb-ui .hb-play:disabled{opacity:.55}.hb-ui .hb-m-shop{flex-direction:column;flex:auto;gap:8px;min-height:0;padding:10px 10px 4px;display:flex}.hb-ui .hb-shop-list{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;flex-direction:column;flex:auto;gap:8px;min-height:0;padding-bottom:8px;display:flex;overflow-y:auto}.hb-ui .hb-shop-row{background:#ffffff0f;border-radius:12px;flex:none;align-items:center;gap:10px;padding:8px 8px 8px 10px;display:flex}.hb-ui .hb-shop-icon{text-align:center;flex:none;width:40px;font-size:1.7rem}.hb-ui .hb-shop-info{flex:1;min-width:0}.hb-ui .hb-shop-top{flex-wrap:wrap;align-items:baseline;gap:8px;display:flex}.hb-ui .hb-shop-name{font-weight:800}.hb-ui .hb-shop-lvl{color:var(--hb-muted);font-size:.8rem}.hb-ui .hb-shop-eff{color:var(--hb-good);overflow-wrap:anywhere;font-size:.85rem}.hb-ui .hb-buy{color:#2b1d00;background:linear-gradient(#ffd966, var(--hb-accent));white-space:nowrap;border-color:#fff1b8;flex:none;min-width:84px;min-height:46px;padding:6px 10px}.hb-ui .hb-buy.hb-cant{color:#c9d3ee;opacity:.7;background:#2a3556;border-color:#46568a}.hb-ui .hb-buy.hb-maxed{color:var(--hb-good);border-color:var(--hb-good);opacity:1;background:0 0}.hb-ui .hb-m-settings{flex:none;gap:8px;display:flex}.hb-ui .hb-shake{animation:.3s hb-shake}@media (orientation:landscape) and (max-height:560px){.hb-ui .hb-menu{grid-template-rows:auto auto 1fr auto;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:8px 12px;max-width:920px;display:grid}.hb-ui .hb-m-head{grid-area:1/1}.hb-ui .hb-m-chapter{grid-area:2/1}.hb-ui .hb-play{grid-area:3/1;align-self:start}.hb-ui .hb-m-settings{grid-area:4/1}.hb-ui .hb-m-shop{grid-area:1/2/span 4}.hb-ui .hb-card{gap:8px;padding:12px}}.hb-ui .hb-hud{z-index:1;pointer-events:none;padding:var(--hb-pad-t) var(--hb-pad-r) 0 var(--hb-pad-l);position:absolute;top:0;bottom:0;left:0;right:0}.hb-ui .hb-hud-top{grid-template-columns:1fr auto auto;align-items:center;gap:6px 8px;max-width:640px;margin:0 auto;display:grid}.hb-ui .hb-hud-pill{background:#0a1024c7;border:2px solid #7896e68c;border-radius:14px;box-shadow:0 2px 10px #00000059}.hb-ui .hb-soldiers{justify-self:start;align-items:center;gap:8px;min-height:52px;padding:2px 14px 2px 10px;display:flex}.hb-ui .hb-hud-ico{font-size:1.4rem}.hb-ui .hb-soldier-num{font-variant-numeric:tabular-nums;text-shadow:0 2px #00000080;font-size:clamp(2rem,9vw,2.8rem);font-weight:900;line-height:1;display:inline-block}.hb-ui .hb-run-coins{min-height:44px;color:var(--hb-accent);align-items:center;gap:6px;padding:6px 12px;font-size:1.25rem;font-weight:900;display:flex}.hb-ui .hb-coin-num{font-variant-numeric:tabular-nums;display:inline-block}.hb-ui .hb-pause-btn{background:#0a1024d9;border-color:#a0b9f5b3;width:48px;min-width:48px;min-height:48px;padding:0;font-size:1.1rem}.hb-ui .hb-stagebox{grid-column:1/-1;padding:6px 10px 8px}.hb-ui .hb-stage-row{justify-content:space-between;gap:8px;margin-bottom:4px;font-size:.85rem;font-weight:800;display:flex}.hb-ui .hb-stage-num{color:var(--hb-accent);white-space:nowrap}.hb-ui .hb-stage-name{text-overflow:ellipsis;white-space:nowrap;text-align:right;min-width:0;overflow:hidden}.hb-ui .hb-bar{background:#ffffff29;border-radius:8px;height:12px;overflow:hidden}.hb-ui .hb-bar-fill{transform-origin:0;background:linear-gradient(#7fd0ff,#3f9bff);border-radius:8px;width:100%;height:100%;transition:transform .12s linear;transform:scaleX(0)}.hb-ui .hb-boss .hb-bar{height:18px}.hb-ui .hb-boss{border-color:#ff7a7a}.hb-ui .hb-boss .hb-bar-fill{background:linear-gradient(#ff8a8a,#e02b3a)}.hb-ui .hb-boss .hb-stage-name{color:#ffb3b3}.hb-ui .hb-perk-row{flex-wrap:wrap;grid-column:1/-1;gap:5px;min-height:0;display:flex}.hb-ui .hb-perk-chip{background:#0a1024c7;border:2px solid #ffc83d99;border-radius:999px;align-items:center;gap:3px;min-height:30px;padding:2px 7px;font-size:.8rem;font-weight:900;display:flex}.hb-ui .hb-perk-ico{font-size:1.1rem}.hb-ui .hb-perk-stack{color:var(--hb-accent);font-weight:900}.hb-ui .hb-banner{text-align:center;opacity:0;border:3px solid var(--hb-accent);background:#080e20d1;border-radius:18px;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 24px);margin:0 auto;padding:10px 24px;position:absolute;top:30%;left:0;right:0;box-shadow:0 8px 30px #00000080}.hb-ui .hb-banner-main{letter-spacing:.05em;text-transform:uppercase;color:var(--hb-accent);overflow-wrap:anywhere;font-size:clamp(1.5rem,7vw,2.6rem);font-weight:900}.hb-ui .hb-banner-sub{font-size:clamp(.95rem,3.6vw,1.3rem);font-weight:800}.hb-ui .hb-banner-boss{background:#3c060ce0;border-color:#ff5d5d}.hb-ui .hb-banner-boss .hb-banner-main{color:#ff7a7a}.hb-ui .hb-banner-clear{border-color:var(--hb-good)}.hb-ui .hb-banner-clear .hb-banner-main{color:var(--hb-good)}.hb-ui .hb-hint{width:-moz-fit-content;width:fit-content;left:0;right:0;bottom:calc(14% + env(safe-area-inset-bottom));text-align:center;background:#080e20cc;border:2px solid #a0b9f5b3;border-radius:18px;margin:0 auto;padding:10px 22px;animation:1.6s ease-in-out infinite hb-hint-pulse;position:absolute}.hb-ui .hb-hint-hand{font-size:2rem;animation:1.6s ease-in-out infinite hb-hand}.hb-ui .hb-hint-text{font-size:1.4rem;font-weight:900}.hb-ui .hb-hint-sub{color:var(--hb-muted);font-size:.85rem}.hb-ui .hb-pause-perks{flex-direction:column;gap:6px;max-height:34vh;display:flex;overflow-y:auto}.hb-ui .hb-perk-line{background:#ffffff12;border-radius:10px;align-items:center;gap:10px;padding:6px 10px;font-weight:800;display:flex}.hb-ui .hb-perk-line .hb-perk-ico{font-size:1.4rem}.hb-ui .hb-perk-name{flex:1}.hb-ui .hb-perk-cards{flex-direction:column;gap:10px;display:flex}.hb-ui .hb-perk-card{text-align:left;background:#17264af2;border-width:3px;border-radius:16px;align-items:center;gap:14px;min-height:84px;padding:12px 14px;display:flex}.hb-ui .hb-pc-icon{text-align:center;flex:none;width:52px;font-size:2.4rem}.hb-ui .hb-pc-body{flex-direction:column;gap:2px;min-width:0;display:flex}.hb-ui .hb-pc-rarity{letter-spacing:.14em;text-transform:uppercase;font-size:.72rem}.hb-ui .hb-pc-name{font-size:1.2rem;font-weight:900}.hb-ui .hb-pc-desc{color:var(--hb-muted);font-size:.9rem;font-weight:600}.hb-ui .hb-r-common{border-color:#7d8fbf}.hb-ui .hb-r-common .hb-pc-rarity{color:#b9c6e8}.hb-ui .hb-r-rare{border-color:#4aa8ff;box-shadow:0 0 14px #4aa8ff73}.hb-ui .hb-r-rare .hb-pc-rarity{color:#7cc2ff}.hb-ui .hb-r-epic{background:linear-gradient(135deg,#461e6ef2,#17264af2);border-color:#c77dff;box-shadow:0 0 18px #c77dff99}.hb-ui .hb-r-epic .hb-pc-rarity{color:#e0b0ff}.hb-ui .hb-perk-card:hover:not(:disabled){filter:brightness(1.15)}.hb-ui .hb-reroll{align-self:center}@media (min-width:640px) and (min-height:420px){.hb-ui .hb-perk-cards{flex-direction:row}.hb-ui .hb-perk-card{text-align:center;flex-direction:column;flex:1 1 0;justify-content:center;min-height:200px;padding:16px 12px}.hb-ui .hb-pc-body{align-items:center}}@media (orientation:landscape) and (max-height:520px){.hb-ui .hb-perk-cards{flex-direction:row}.hb-ui .hb-perk-card{text-align:center;flex-direction:column;flex:1 1 0;justify-content:center;gap:4px;min-height:0;padding:8px}.hb-ui .hb-pc-icon{font-size:1.9rem}.hb-ui .hb-pc-body{align-items:center}.hb-ui .hb-pc-name{font-size:1rem}.hb-ui .hb-pc-desc{font-size:.8rem}.hb-ui .hb-h2{font-size:1.3rem}}.hb-ui .hb-countdown{color:var(--hb-accent);font-variant-numeric:tabular-nums;font-size:3.4rem;font-weight:900;line-height:1}.hb-ui .hb-cd-bar{background:#ffffff26;border-radius:6px;height:10px;overflow:hidden}.hb-ui .hb-cd-fill{transform-origin:0;background:var(--hb-accent);height:100%;transition:transform .1s linear}.hb-ui .hb-stats{flex-direction:column;gap:4px;display:flex}.hb-ui .hb-stat{background:#ffffff12;border-radius:10px;justify-content:space-between;gap:10px;padding:8px 12px;font-size:1.05rem;display:flex}.hb-ui .hb-stat-l{color:var(--hb-muted)}.hb-ui .hb-stat-v{font-variant-numeric:tabular-nums;font-weight:900}.hb-ui .hb-unlock{color:var(--hb-good);border:2px solid var(--hb-good);background:#46e3a01f;border-radius:12px;padding:10px;font-size:1.15rem;font-weight:900}.hb-ui .hb-double{flex-direction:column;justify-content:center;align-items:center;gap:2px;min-height:68px;font-size:1.15rem;display:flex}.hb-ui .hb-dbl-sub{font-size:1.3rem}.hb-ui .hb-actions,.hb-ui .hb-pause-right{flex-direction:column;gap:10px;display:flex}.hb-ui .hb-pausecard>.hb-h2{order:-1}.hb-ui .hb-ad-block{z-index:3;pointer-events:auto;background:#000000b8;position:absolute;top:0;bottom:0;left:0;right:0}@media (orientation:landscape) and (max-height:520px){.hb-ui .hb-hud-top{gap:4px 8px}.hb-ui .hb-soldiers{min-height:44px}.hb-ui .hb-hint{bottom:6%}.hb-ui .hb-banner{top:36%}.hb-ui .hb-countdown{font-size:2.4rem}.hb-ui .hb-stats{grid-template-columns:1fr 1fr;display:grid}.hb-ui .hb-stat{padding:5px 10px;font-size:.95rem}.hb-ui .hb-actions{flex-direction:row}.hb-ui .hb-actions>*{flex:1 1 0}.hb-ui .hb-double{min-height:56px}.hb-ui .hb-pausecard{grid-template-columns:1fr 1fr;column-gap:14px;max-width:700px;display:grid}.hb-ui .hb-pausecard>.hb-h2{grid-column:1/-1}.hb-ui .hb-pause-perks{max-height:60vh}}@keyframes hb-fade{0%{opacity:0}}@keyframes hb-rise{0%{opacity:0;transform:translateY(12px)scale(.98)}}@keyframes hb-shake{25%{transform:translate(-4px)}75%{transform:translate(4px)}}@keyframes hb-hand{0%,to{transform:translate(-40px)}50%{transform:translate(40px)}}@keyframes hb-hint-pulse{0%,to{opacity:.85}50%{opacity:1}}@media (prefers-reduced-motion:reduce){.hb-ui *,.hb-ui :before,.hb-ui :after{transition:none!important;animation:none!important}}
