*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#77d8f5;color:#174862;font:14px Tahoma,Arial,sans-serif}.tower-app{width:min(100%,600px);height:100vh;height:100dvh;margin:auto;display:flex;flex-direction:column;padding:7px max(8px,env(safe-area-inset-right)) max(5px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:linear-gradient(#78ddf8,#c7f5fa);gap:6px}.tower-top{display:flex;align-items:center;gap:8px;background:#ffffffc7;padding:7px 10px;border-radius:22px}.tower-top h1{font-size:21px;margin:0;flex:1}.tower-top a,.tower-top button{font:25px Arial;color:#385671;background:#fff9;border:0;border-radius:50%;width:37px;height:37px;display:grid;place-items:center;text-decoration:none;cursor:pointer}.tower-hud{display:flex;justify-content:space-around;gap:5px;flex-wrap:wrap}.tower-hud span{font-size:11px;background:#ffffffc9;border-radius:15px;padding:6px 10px;white-space:nowrap}.tower-hud b{font-size:16px;margin-inline-start:3px}#towerLives{color:#e65475!important;font-size:17px}.tower-level{display:flex;gap:10px;align-items:center;padding:0 10px;font-size:11px}.tower-level progress{flex:1;min-width:0;height:8px;accent-color:#0aab9d}.tower-stage{position:relative;flex:1;min-height:0;overflow:hidden;border-radius:20px}#towerCanvas{display:block;width:100%;height:100%;object-fit:contain;touch-action:manipulation}footer{text-align:center}#towerDrop{width:100%;max-width:390px;background:linear-gradient(#0dbfaf,#048e93);color:white;border:3px solid #e0ffff;border-radius:29px;padding:12px 16px;box-shadow:0 5px 0 #04777d;font:800 22px Tahoma;cursor:pointer}#towerDrop:disabled{opacity:.65;cursor:default}#towerStatus{font-size:11px;margin:8px 0 0;min-height:16px}dialog{width:min(90vw,390px);max-height:90vh;overflow:auto;border:1px solid #bce8e5;border-radius:24px;padding:22px;background:#f6ffff;color:#164b61;text-align:center;font:14px/1.8 Tahoma}dialog::backdrop{background:#123e6177;backdrop-filter:blur(3px)}dialog h2{margin:0 0 12px;font-size:24px}dialog label{display:flex;align-items:center;gap:8px;justify-content:space-between;margin:10px 0}dialog select{padding:8px;border:1px solid #bddddf;border-radius:10px;background:white;color:#1e5360;font:inherit;max-width:75%}dialog button{display:block;width:100%;border:0;border-radius:14px;background:#079e9c;color:white;font:700 16px Tahoma;padding:12px;margin:10px 0;cursor:pointer}dialog #towerSecondary{background:#e1f3f0;color:#166b6b}dialog a{color:#246f8b}dialog small{display:block;color:#718c97;font-size:10px;line-height:1.7}button:disabled{opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #e8a22c;outline-offset:2px}[hidden]{display:none!important}@media(max-height:550px){.tower-top h1{font-size:16px}.tower-top{padding:4px 8px}.tower-top a,.tower-top button{width:29px;height:29px;font-size:18px}.tower-hud span{padding:3px 7px}.tower-app{gap:3px}#towerDrop{padding:7px;font-size:18px}#towerStatus{margin-top:5px}}@media print{body{overflow:auto}.tower-app{height:900px}footer,dialog{display:none}}

.tower-hud{display:grid;grid-template-columns:1fr 1fr auto;align-items:center}.tower-hud span{text-align:center}.tower-hud b{font-size:20px}.tower-level{display:none}

#towerContinue{background:linear-gradient(135deg,#8062e8,#5852c8);border:2px solid #c9bfff}#towerDialogStatus{min-height:22px}#towerSound{font-size:20px}

/* Main menu and secondary panels, scoped to this game. */
#towerMenu{font-size:23px}#towerMenuActions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:10px 0}#towerMenuActions button,#towerMenuActions a{margin:0;display:grid;place-items:center;min-height:58px;border:1px solid #cde8ef;border-radius:15px;padding:9px;font:700 14px Tahoma;text-decoration:none;background:#e3f5fb;color:#216581}#towerMenuActions .tower-menu-rank{grid-column:1/-1;background:linear-gradient(135deg,#fff4cb,#ffdf9a);color:#7c5410;border-color:#ebcf88}#towerDialog[data-view="menu"] #towerPrimary{background:linear-gradient(135deg,#12bda9,#078b9b);font-size:19px;padding:15px}#towerDialog[data-view="menu"] #towerSecondary{background:#e6efff;color:#315aa0}#towerSettingsPanel,#towerHelpPanel{text-align:right;background:#eaf7fa;border-radius:16px;padding:12px;margin:12px 0}.tower-sound-field input{width:22px;height:22px;accent-color:#08a39d}#towerHelpPanel ol{margin:0;padding-inline-start:24px}#towerHelpPanel li{margin-bottom:10px}.tower-panel-note,#towerWalletInfo{font-size:12px;color:#507789}#towerMenuBack{background:#dfeff3;color:#226779}#towerDialog button:disabled{opacity:.45;cursor:default}#towerMenuActions[hidden],#towerSettingsPanel[hidden],#towerHelpPanel[hidden]{display:none!important}@media(max-width:360px){.tower-top{gap:5px;padding:6px}.tower-top h1{font-size:17px}.tower-top a,.tower-top button{width:32px;height:32px;flex-shrink:0}}
