/* V13.2 Green Town — one stage, two drawers, no duplicate dashboard.
   The database RPCs, numerical rules and existing art are unchanged. */
.fs132-town{--fs132-green:#246348;--fs132-ink:#274639;--fs132-edge:#dae8db;min-width:0;position:relative;isolation:isolate;}
.fs132-town .fs125-town{border:0;box-shadow:none;padding:clamp(8px,1.4vw,15px);background:linear-gradient(145deg,#e6f2e5,#f2f9ee 67%,#eaf3e6);border-radius:20px;}
.fs132-hud{min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 8px 12px;}
.fs132-hud-brand,.fs132-hud-right{display:flex;align-items:center;gap:9px;min-width:0;}
.fs132-hud-brand{flex:1;}.fs132-hud-brand strong{display:block;color:#265540;font-size:16px;line-height:1.25;font-weight:900;}
.fs132-hud-brand small{font-size:11px;color:#718f7a;font-weight:700;}
.fs132-hud-icon{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:12px;background:#f5faf2;font-size:22px;}
.fs132-wallet{border:1px solid #d8e7d4;border-radius:999px;padding:7px 10px;color:#63804b;background:white;font-weight:850;white-space:nowrap;font-size:12px;}
.fs132-build{border:0;border-radius:12px;background:#246b50;color:white;padding:11px 17px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;font-weight:900;font-size:13px;white-space:nowrap;cursor:pointer;}
.fs132-build:hover:not(:disabled){background:#175239;}.fs132-build:disabled{opacity:.5;cursor:not-allowed;}
.fs132-circle{border:1px solid #d8e7d4;background:white;color:#376c51;border-radius:50%;width:39px;height:39px;min-width:39px;font-size:17px;font-weight:900;cursor:pointer;}
.fs132-mission{display:flex;align-items:center;gap:9px;border-radius:11px;padding:10px 13px;background:#fffef8;border:1px solid #e7eddd;color:#3f6d51;min-height:40px;font-weight:850;font-size:13px;margin:0 0 12px;}
.fs132-mission-dot{width:9px;height:9px;border-radius:50%;background:#7dbf78;flex:none;box-shadow:0 0 0 4px #e7f4df;}
.fs132-inline-cancel{margin-left:auto;border:0;background:#e8ede8;border-radius:999px;color:#476f56;padding:7px 11px;font-weight:800;cursor:pointer;}
.fs132-town .fs125-workspace{display:block;position:relative;max-width:790px;margin:0 auto;}
.fs132-town .fs125-map-column{max-width:none;}
.fs132-town .fs125-map-frame{background:#fbfcf7;padding:8px 8px 4px;border:1px solid #d4e3d1;border-radius:20px;}
.fs132-town .fs125-map-board{width:min(100%,590px)!important;max-width:590px;border:3px solid #7da778;border-radius:15px;box-shadow:inset 0 0 0 2px #c8e2ac,0 8px 20px #24503322;}
.fs132-town .fs125-map-board:before{opacity:.48;}
.fs132-town .fs125-map-cell.tone-a{background:linear-gradient(145deg,#c9dfaa,#add293);}
.fs132-town .fs125-map-cell.tone-b{background:linear-gradient(145deg,#bcd8a0,#acd093);}
.fs132-town .fs125-map-cell{border-color:#87b38024;}
.fs132-town .fs125-map-cell:hover{background:#e0edb0;}
.fs132-town .fs125-map-cell:active{background:#ecf3c4;}
.fs132-town .fs125-map-footer{font-size:11px;align-items:center;min-height:40px;flex-wrap:wrap;padding:8px 11px;}
.fs132-footer-link{font-size:11px;border:0;background:#e3f1e5;border-radius:100px;padding:7px 10px;color:#296c51;font-weight:850;cursor:pointer;}
.fs132-town .fs125-map-toast{max-width:92%;bottom:72px;border-radius:14px;}
.fs132-town .fs125-roster{margin:10px auto 0;border:0;background:transparent;max-width:650px;padding:5px;}
.fs132-town .fs125-roster-heading{margin-bottom:4px;}
.fs132-town .fs125-roster-item{min-height:58px;border-radius:14px;box-shadow:0 2px 9px #314f3411;}
.fs132-town .fs125-roster-item img{width:40px;height:40px;}
.fs132-town .fs125-inspector{position:fixed;z-index:150;right:clamp(12px,4vw,45px);top:50%;transform:translateY(-50%);width:min(350px,calc(100vw - 24px));max-height:calc(100dvh - 36px);overflow:auto;background:#fffffff8;backdrop-filter:blur(10px);box-shadow:0 16px 60px #234d3570;border:1px solid #d6e7d8;border-radius:22px;padding:22px;}
.fs132-inspector-close{position:absolute;right:9px;top:8px;border:0;background:#eaf3e8;color:#315c45;border-radius:50%;height:31px;width:31px;font-size:21px;cursor:pointer;}
.fs132-town .fs125-inspector-head{padding-right:15px;}
.fs132-town .fs125-mobile-confirm{display:flex!important;align-items:center;gap:8px;position:absolute;z-index:25;left:7px;right:7px;bottom:7px;background:#fffdf5f2;backdrop-filter:blur(10px);border:1px solid #edcd77;border-radius:12px;padding:8px;box-shadow:0 6px 24px #324c3660;}
.fs132-town .fs125-mobile-confirm span{flex:1;font-weight:850;color:#436849;}
.fs132-town .fs125-mobile-confirm button{padding:7px 12px;min-height:37px;}
.fs132-town .fs125-inspector .fs125-confirm-box{display:none;}
.fs132-town .fs125-mobile-roster{display:none;}
.fs132-sheet-layer{position:fixed;z-index:210;inset:0;background:#122f228c;display:flex;justify-content:flex-end;align-items:stretch;}
.fs132-sheet{width:min(540px,100%);height:100dvh;overflow:hidden;display:flex;flex-direction:column;background:#f6fbf5;box-shadow:-10px 0 50px #102e2b5e;animation:fs132-slide .18s ease-out;}
.fs132-sheet-head{flex:none;padding:17px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #dbe6d8;background:white;}
.fs132-sheet-head strong{font-size:18px;font-weight:950;color:#2e5f48;}
.fs132-sheet-close{background:#e6f1e9;border:0;border-radius:50%;color:#39664f;width:36px;height:36px;font-size:26px;line-height:1;cursor:pointer;}
.fs132-sheet-body{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;min-height:0;flex:1;padding:13px;}
.fs132-sheet .fs125-catalog,.fs132-sheet .fs125-owned{padding:9px;border:0;background:transparent;}
.fs132-sheet .fs125-catalog-title strong,.fs132-sheet .fs125-section-heading h3{font-size:15px;}
.fs132-sheet .fs125-building-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
.fs132-sheet .fs125-building-card{padding:10px;gap:7px;border-radius:14px;}
.fs132-sheet .fs125-building-head{gap:7px;align-items:flex-start;flex-direction:column;}
.fs132-sheet .fs125-catalog-art{width:75px;height:69px;}
.fs132-sheet .fs125-overline{display:none;}
.fs132-sheet .fs125-building-copy h3{font-size:13px;}
.fs132-sheet .fs125-effect-chips{display:none;}
.fs132-sheet .fs125-mini-details{display:none;}
.fs132-sheet .fs125-building-copy{gap:4px;}
.fs132-sheet .fs125-building-card .fs125-card-actions{width:100%;}
.fs132-sheet .fs125-building-card .fs125-card-actions button{width:100%;}
.fs132-sheet .fs125-catalog-title span{font-size:10px;}
.fs132-help{position:relative;margin:auto;width:min(430px,calc(100vw - 24px));background:#f9fff6;border-radius:24px;padding:32px 23px 23px;box-shadow:0 10px 40px #132c265c;display:flex;flex-direction:column;align-items:center;gap:16px;text-align:center;}
.fs132-help h2{font-size:22px;color:#285b42;font-weight:900;}
.fs132-help .fs132-sheet-close{position:absolute;top:10px;right:10px;}
.fs132-help p{font-size:13px;color:#607a67;line-height:1.5;}
.fs132-steps{display:flex;gap:8px;align-items:center;justify-content:center;flex-wrap:wrap;}
.fs132-steps span{border:1px solid #d4e4d4;background:white;padding:9px 11px;border-radius:13px;color:#346b4c;font-weight:850;font-size:12px;}
.fs132-town button:focus-visible,.fs132-town .fs132-sheet-close:focus-visible{outline:3px solid #ffce68;outline-offset:2px;}
@keyframes fs132-slide{from{transform:translateX(20px);opacity:.7;}to{transform:translateX(0);opacity:1;}}
@media(max-width:750px){
 .fs132-town .fs125-workspace{width:100%;}
 .fs132-hud-brand strong{font-size:14px;}
 .fs132-town .fs125-roster{max-width:100%;}
 .fs132-town .fs125-roster-items{overflow-x:auto;scroll-snap-type:x proximity;}
 .fs132-town .fs125-roster-item{scroll-snap-align:start;}
 .fs132-town .fs125-map-board{width:100%!important;}
 .fs132-town .fs125-inspector{top:auto;right:0;left:0;bottom:0;transform:none;width:100%;max-height:70dvh;border-radius:22px 22px 0 0;}
 .fs132-town .fs125-map-footer{font-size:10px;}
}
@media(max-width:540px){
 .fs132-town .fs125-town{padding:7px;}
 .fs132-hud{gap:5px;padding:5px 2px 8px;}
 .fs132-hud-brand{gap:5px;}
 .fs132-hud-icon{width:31px;height:31px;border-radius:9px;font-size:18px;}
 .fs132-hud-brand strong{font-size:13px;}
 .fs132-hud-brand small{font-size:10px;}
 .fs132-hud-right{gap:4px;}
 .fs132-wallet{font-size:10px;padding:6px;}
 .fs132-build{padding:8px;min-height:38px;font-size:12px;}
 .fs132-circle{width:32px;height:32px;min-width:32px;font-size:14px;}
 .fs132-mission{font-size:11px;padding:8px 10px;margin-bottom:8px;}
 .fs132-town .fs125-map-frame{padding:4px 4px 2px;border-radius:14px;}
 .fs132-town .fs125-map-board{border:2px solid #81a67c;border-radius:11px;}
 .fs132-town .fs125-map-footer{padding:6px;}
 .fs132-town .fs125-roster{padding:1px;margin-top:7px;}
 .fs132-sheet{width:100%;}
 .fs132-sheet .fs125-building-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
 .fs132-town .fs125-mobile-confirm button{font-size:11px;}
}
@media(prefers-reduced-motion:reduce){.fs132-sheet{animation:none;}.fs132-town *{transition:none!important;animation:none!important;}}

/* In the town view, the map HUD replaces the duplicate outer challenge and toolbar. */
.v132-town-venue .v131-actionrail,.v132-town-venue .v131-workspace-head{display:none!important;}
.fs132-town .fs132-more-menu{position:absolute;z-index:75;right:30px;top:58px;background:#fff;border:1px solid #d8e6d7;border-radius:14px;padding:7px;box-shadow:0 8px 28px #24432a33;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;width:min(280px,calc(100% - 35px));}
.fs132-more-menu button{border:0;border-radius:9px;background:#f1f8f1;padding:10px;color:#2e5b42;font-size:12px;font-weight:850;cursor:pointer;min-height:40px;}
.fs132-more-menu button:hover{background:#e2f0e6;}
@media(max-width:750px){.fs132-town .fs125-roster{display:block!important;}}
