#tower,#pet-home{height:100%;min-height:0;display:flex;flex-direction:column;gap:8px;}
#tower .page-heading,#pet-home .page-heading{margin:0;flex-shrink:0;}
#tower .page-heading h1,#pet-home .page-heading h1{font-size:27px;}
#tower .page-heading p,#pet-home .page-heading p{font-size:11px;margin:2px 0;}
.tower-layout{display:grid;grid-template-columns:minmax(100px,.8fr) minmax(130px,1fr) minmax(230px,1.6fr);gap:12px;flex:1;min-height:0;}
#tower-poster{width:100%;height:100%;min-height:0;object-fit:cover;border-radius:15px;}
#tower-floors{display:grid;grid-template-rows:repeat(5,minmax(0,1fr));gap:5px;min-height:0;}
.tower-floor{display:grid;grid-template-columns:25px 1fr;gap:2px 6px;text-align:left;padding:5px 8px;min-height:0;background:#eef1e3;border:1px solid #aac3bd;color:#305a60;border-radius:10px;}
.tower-floor b{grid-row:1/3;align-self:center;font-size:22px;color:#ba8d3b;}.tower-floor span{font-size:13px;font-weight:bold;}.tower-floor small{font-size:10px;}
.tower-floor[aria-pressed="true"]{background:#cedfdf;outline:2px solid #3c7f91;}.tower-floor:disabled{opacity:.48;}
.tower-detail{display:flex;flex-direction:column;justify-content:center;gap:9px;background:#f7edd6;border:1px solid #d2c39f;border-radius:14px;padding:15px;min-width:0;min-height:0;}
.tower-detail h2{font-size:22px;margin:0;}.tower-detail p{font-size:12px;line-height:1.5;margin:0;}.tower-detail strong{font-size:12px;line-height:1.5;color:#227c93;}.tower-detail .eyebrow{font-size:10px;}.tower-detail button{min-height:34px;padding:5px;font-size:13px;}
.map-art.tower{background:linear-gradient(135deg,#345c7d,#bdcfc7);}
.android-app .shell .map-grid.many-maps{grid-template-columns:repeat(5,minmax(0,1fr));}
.android-app .map-grid.many-maps .map-art{padding:4px;gap:2px;}
.android-app .map-grid.many-maps .map-rival-copy{min-width:0;}
.android-app .map-grid.many-maps .map-rival-copy strong{font-size:11px;}
.android-app .map-grid.many-maps .map-info{grid-template-columns:minmax(0,1fr);gap:2px;padding:4px 6px;}
.android-app .map-grid.many-maps .map-info small{font-size:10px;white-space:normal;line-height:1.15;}
.android-app .map-grid.many-maps .hidden-first-reward{display:none;}
#dragon-world-controls{position:absolute;right:8px;bottom:84px;z-index:6;max-width:206px;background:#1c3849e0;border:1px solid #7fc6df;border-radius:8px;padding:4px 5px;color:#e4f7f5;box-shadow:0 2px 8px #0000002e;}
#dragon-world-controls.collapsed{max-width:152px;padding:3px 6px;}
.dragon-panel-head{display:flex;align-items:center;justify-content:space-between;gap:4px;margin:0 0 3px;}
#dragon-world-controls.collapsed .dragon-panel-head{margin:0;}
#dragon-world-state{font-size:9px;line-height:1.2;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0;color:#d6f5ff;}
#dragon-panel-toggle{flex:0 0 auto!important;min-height:17px!important;min-width:19px;padding:0 4px!important;font-size:11px!important;line-height:1;border-radius:5px;}
.dragon-control-row{display:flex;flex-wrap:wrap;gap:3px;}.dragon-control-row+.dragon-control-row{margin-top:3px;}
#dragon-world-controls button{font-size:9.5px;min-height:22px;padding:1px 5px;background:#3a616d;border-color:#84a89f;color:#fff4d5;white-space:nowrap;touch-action:none;flex:1 1 auto;border-radius:5px;}
#dragon-world-controls button[aria-pressed="true"]{background:#a27d3b;}
#pet-battle-skills{position:absolute;right:8px;bottom:8px;z-index:5;border:1px solid #93d8ed;border-radius:9px;padding:5px;background:#203e54ed;color:#d7f9ff;}
#pet-battle-skills small{display:block;font-size:10px;margin-bottom:4px;}#pet-battle-actions{display:flex;gap:5px;}#pet-battle-actions button{min-height:31px;padding:4px 8px;font-size:11px;background:#416c7e;color:#fff3cc;border-color:#81b2c3;}
@media(max-width:700px){#pet-battle-actions{gap:3px;}#pet-battle-actions button{padding:4px 5px;font-size:10px;}}
.pet-home-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(230px,1fr);gap:10px;flex:1;min-height:0;}
.pet-room{position:relative;min-height:0;overflow:hidden;border-radius:15px;background:#d9e6de;}.pet-room canvas{display:block;width:100%;height:100%;touch-action:none;}
#pet-home-powers{position:absolute;bottom:16px;left:8px;right:8px;margin:0;font-size:10px;background:#284858ce;border-radius:7px;color:#fff0c8;padding:5px;text-align:center;pointer-events:none;}
#pet-affection-meter{position:absolute;bottom:5px;left:10%;width:80%;height:8px;}
.pet-home-panel{display:flex;flex-direction:column;gap:7px;padding:10px;background:#f8f0df;border:1px solid #d9ccb0;border-radius:13px;min-width:0;min-height:0;}
#pet-home-tabs{display:flex;gap:5px;order:0;flex:0 0 auto;}#pet-home-tabs button{flex:1;min-height:30px;padding:3px;font-size:12px;}#pet-home-tabs button[aria-pressed="true"]{background:#426e7b;color:#fff2cd;}
#pet-home-items{display:grid;grid-template-rows:repeat(2,minmax(0,1fr));gap:6px;min-height:0;flex:1;}#pet-home-items>p{font-size:12px;grid-row:1/3;line-height:1.5;}
.pet-home-item{display:grid;grid-template-columns:1fr auto;gap:3px 5px;align-content:center;border:1px solid #d5c69e;background:#fffbef;border-radius:8px;padding:8px;min-width:0;}.pet-home-item strong{font-size:13px;}.pet-home-item small{font-size:10px;grid-column:1;}.pet-home-item button{grid-area:1/2/3;align-self:center;min-height:33px;font-size:12px;padding:4px 8px;}
#pet-home-pager{display:flex;justify-content:center;align-items:center;gap:12px;order:0;flex:0 0 auto;}#pet-home-pager button{min-height:24px;padding:0 14px;}#pet-home-pager span{font-size:11px;}
#pet-home-notice,#pet-selected-furniture{font-size:10px;line-height:1.4;margin:0;}#pet-home-notice{color:#5b716a;}.pet-home-panel>button{min-height:30px;font-size:12px;padding:3px;}
#pet-furniture-editor{flex:1;display:flex;flex-direction:column;justify-content:center;gap:15px;}#pet-furniture-nudge{display:flex;gap:5px;}#pet-furniture-nudge button{flex:1;min-width:0;min-height:34px;padding:3px;}
@media(max-height:400px){.tower-layout{gap:7px;}.tower-detail{padding:8px;gap:5px;}.tower-detail h2{font-size:18px;}.tower-detail p,.tower-detail strong{font-size:11px;line-height:1.3;}.tower-detail button{min-height:30px;padding:3px;}.pet-home-panel{padding:7px;gap:5px;}.pet-home-item{padding:5px;}.pet-home-layout{gap:6px;}}
