:root {
  --ink:#f4f7f1; --muted:#a8b3aa; --panel:rgba(18,28,24,.94); --edge:rgba(255,255,255,.10);
  --accent:#f2c85b; --owned:#78d7a0; --enemy:#e08478;
}
*{box-sizing:border-box} html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#14201c;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink)}
button,input{font:inherit} button{-webkit-tap-highlight-color:transparent}
#app{height:100dvh;display:grid;grid-template-rows:auto auto 1fr auto;background:#14201c}
.topbar{padding:calc(10px + env(safe-area-inset-top)) 14px 9px;display:flex;justify-content:space-between;align-items:center;background:#17231f;border-bottom:1px solid var(--edge);z-index:10}
.brand-wrap{display:flex;align-items:center;gap:10px}.brand-mark{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:linear-gradient(145deg,#f8d66d,#c89d32);color:#1c261f;font-weight:900;font-size:20px}.brand{font-size:16px;font-weight:900;letter-spacing:.12em;line-height:1}.subtitle{margin-top:4px;color:var(--muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.player-button{display:flex;align-items:center;gap:7px;border:1px solid var(--edge);background:rgba(255,255,255,.05);color:var(--ink);padding:7px 10px;border-radius:999px;font-weight:700;max-width:42vw}.player-button span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.resource-strip{display:flex;overflow-x:auto;scrollbar-width:none;background:#1d2b25;border-bottom:1px solid var(--edge);z-index:9}.resource-strip::-webkit-scrollbar{display:none}.resource-card{flex:1 0 76px;min-width:76px;padding:8px 7px;display:flex;align-items:center;justify-content:center;gap:6px;border-right:1px solid rgba(255,255,255,.06)}.resource-icon{font-size:17px}.resource-card small{display:block;color:var(--muted);font-size:7px;letter-spacing:.09em;font-weight:800}.resource-card strong{display:block;margin-top:1px;font-size:14px}
.map-shell{min-height:0;position:relative;overflow:hidden}#map{position:absolute;inset:0;background:#d8d0a3}.map-shade{position:absolute;inset:0;pointer-events:none;background:radial-gradient(circle at 50% 45%,transparent 0 42%,rgba(53,65,48,.10) 100%),linear-gradient(to bottom,rgba(255,244,196,.05),transparent 28%,transparent 62%,rgba(20,32,28,.26))}
.status-pill{position:absolute;top:12px;left:50%;transform:translateX(-50%);max-width:calc(100% - 88px);padding:8px 12px;border-radius:999px;background:rgba(22,33,28,.90);backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,.12);display:flex;align-items:center;gap:8px;font-size:12px;font-weight:750;z-index:5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pulse{width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px rgba(242,200,91,.16);flex:0 0 auto}.status-pill.ok .pulse{background:var(--owned);box-shadow:0 0 0 4px rgba(120,215,160,.15)}.status-pill.error .pulse{background:var(--enemy)}
.map-fab{position:absolute;right:14px;top:12px;z-index:6;width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.18);background:rgba(22,33,28,.92);color:white;font-size:25px;box-shadow:0 6px 20px rgba(0,0,0,.20)}
.territory-card{position:absolute;left:12px;right:12px;bottom:12px;z-index:6;background:var(--panel);border:1px solid rgba(255,255,255,.11);border-radius:18px;padding:13px;box-shadow:0 16px 38px rgba(0,0,0,.28);backdrop-filter:blur(14px)}.territory-card-head{display:flex;justify-content:space-between;align-items:start;gap:12px}.eyebrow{color:var(--accent);font-size:9px;font-weight:900;letter-spacing:.13em}h1{margin:3px 0 0;font-size:19px;line-height:1.1}.terrain-line{margin-top:4px;color:#d9decf;font-size:12px;font-weight:750}.badge{font-size:10px;font-weight:900;letter-spacing:.08em;padding:6px 9px;border-radius:999px;background:rgba(255,255,255,.08);color:var(--muted)}.badge.mine{background:rgba(120,215,160,.14);color:#9ce6b9}.badge.other{background:rgba(224,132,120,.15);color:#f0a69d}.badge.free{background:rgba(242,200,91,.14);color:#f4d778}
.territory-meta{margin-top:10px;display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:7px}.territory-meta>div{min-width:0;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.06);border-radius:11px;padding:8px}.territory-meta small{display:block;color:var(--muted);font-size:7px;font-weight:800;letter-spacing:.07em}.territory-meta strong{display:block;margin-top:3px;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upgrade-info{margin-top:9px;color:#bbc5bb;font-size:10px;line-height:1.35}
.action-dock{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#17231f;border-top:1px solid var(--edge);z-index:10}.action{min-width:0;border:1px solid rgba(255,255,255,.11);background:#26372f;color:var(--ink);min-height:58px;border-radius:12px;padding:7px 4px;display:flex;align-items:center;justify-content:center;gap:5px}.action.primary{background:linear-gradient(145deg,#d4ad43,#f0cb63);color:#182019;border-color:#f4d474}.action:disabled{opacity:.34;filter:grayscale(.3)}.action-icon{font-size:18px}.action strong,.action small{display:block;text-align:left;overflow:hidden;text-overflow:ellipsis}.action strong{font-size:10px;white-space:nowrap}.action small{font-size:8px;margin-top:2px;opacity:.72;white-space:nowrap}
.toast{position:fixed;left:50%;bottom:calc(84px + env(safe-area-inset-bottom));transform:translate(-50%,12px);width:max-content;max-width:calc(100% - 28px);padding:10px 14px;border-radius:12px;background:rgba(9,14,12,.95);color:white;border:1px solid rgba(255,255,255,.12);font-size:13px;font-weight:700;z-index:30;opacity:0;pointer-events:none;transition:.2s ease;box-shadow:0 10px 30px rgba(0,0,0,.30)}.toast.show{opacity:1;transform:translate(-50%,0)}
.player-dialog{border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:0;background:#1c2923;color:white;width:min(380px,calc(100% - 30px));box-shadow:0 24px 60px rgba(0,0,0,.5)}.player-dialog::backdrop{background:rgba(0,0,0,.55);backdrop-filter:blur(3px)}.player-dialog form{padding:20px}.player-dialog h2{margin:0 0 4px}.player-dialog p{margin:0 0 14px;color:var(--muted);font-size:13px}.player-dialog input{width:100%;border:1px solid rgba(255,255,255,.12);background:#111a16;color:white;padding:12px 13px;border-radius:10px;outline:none}.player-dialog input:focus{border-color:var(--accent)}.dialog-actions{display:flex;justify-content:end;gap:8px;margin-top:14px}.dialog-actions button{border:0;border-radius:10px;padding:10px 14px;font-weight:800}.dialog-actions .ghost{background:rgba(255,255,255,.07);color:white}.dialog-actions .save{background:var(--accent);color:#1b241e}
.player-marker{width:18px;height:18px;border-radius:50%;background:#2d7ce0;border:3px solid white;box-shadow:0 2px 10px rgba(0,0,0,.35),0 0 0 6px rgba(45,124,224,.20)}
.building-marker{pointer-events:none;position:relative;display:grid;place-items:center;width:34px;height:38px;border-radius:13px 13px 10px 10px;background:rgba(22,33,28,.94);border:2px solid #f2c85b;box-shadow:0 5px 12px rgba(0,0,0,.32);transform-origin:50% 100%}.building-marker.level-2{width:38px;height:42px}.building-marker.level-3{width:42px;height:46px;border-width:3px}.building-marker.level-4{width:46px;height:50px;border-width:3px}.building-marker.level-5{width:50px;height:54px;border-width:3px;box-shadow:0 6px 16px rgba(0,0,0,.38),0 0 0 3px rgba(242,200,91,.18)}.building-emoji{font-size:20px;line-height:1}.level-3 .building-emoji,.level-4 .building-emoji,.level-5 .building-emoji{font-size:23px}.level-badge{position:absolute;right:-6px;top:-7px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;display:grid;place-items:center;background:#f2c85b;color:#182019;border:2px solid #26372f;font-size:10px;font-weight:950}
.maplibregl-ctrl-bottom-left{display:none}.maplibregl-ctrl-bottom-right{display:block;right:4px;bottom:145px;opacity:.62;font-size:8px}.maplibregl-ctrl-attrib{background:rgba(244,239,205,.76)!important;color:#514f42!important}.maplibregl-ctrl-attrib a{color:#514f42!important}
@media(min-width:780px){#app{width:min(100%,980px);margin:0 auto;box-shadow:0 0 80px rgba(0,0,0,.35)}body{background:#0f1714}.territory-card{left:18px;width:410px;right:auto}}
@media(max-width:380px){.action-dock{gap:4px;padding-left:5px;padding-right:5px}.action{gap:3px}.action-icon{font-size:16px}.action strong{font-size:9px}.territory-card{left:8px;right:8px;bottom:8px;padding:11px}.resource-card{flex-basis:70px;min-width:70px}}
/* Social / login additions */
#app.locked .action-dock button,#app.locked .map-fab,#app.locked .project-card{pointer-events:none;opacity:.32}
.auth-dialog{max-width:390px}.auth-dialog form{padding:24px}.auth-logo{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;margin:0 auto 13px;background:linear-gradient(145deg,#f8d66d,#c89d32);color:#1c261f;font-size:29px;font-weight:950}.auth-dialog h2{text-align:center}.auth-dialog p{text-align:center}.auth-dialog label{display:block;margin-top:12px;color:#cbd4cb;font-size:12px;font-weight:800}.auth-dialog label input{margin-top:6px}.auth-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.auth-actions button{border:0;border-radius:10px;padding:11px;font-weight:850}.auth-actions .save{background:var(--accent);color:#1b241e}.auth-actions .ghost{background:rgba(255,255,255,.08);color:white}.auth-error{min-height:20px;margin-top:10px;color:#f0a69d;font-size:12px;text-align:center}.danger{background:#8e4f49!important;color:white!important}
.bonus-info{min-height:0;margin-top:8px;color:#a9dfbd;font-size:10px;font-weight:750}
.project-card{width:100%;margin-top:10px;border:1px solid rgba(242,200,91,.22);background:rgba(242,200,91,.08);color:var(--ink);border-radius:12px;padding:9px 10px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:9px;text-align:left}.project-card:disabled{opacity:.45}.project-card.complete{border-color:rgba(120,215,160,.30);background:rgba(120,215,160,.09)}.project-icon{font-size:20px}.project-copy{min-width:0}.project-copy small{display:block;color:var(--accent);font-size:7px;font-weight:900;letter-spacing:.09em}.project-copy strong{display:block;font-size:11px;margin-top:2px}.project-copy span{display:block;color:var(--muted);font-size:9px;margin-top:2px}.project-chevron{font-size:25px;color:var(--muted)}
.action-dock{grid-template-columns:repeat(5,1fr)}.action.social:not(:disabled){background:#31543f;border-color:#4f7b60}.action strong{font-size:9px}.action small{font-size:7px}
.building-marker.other{border-color:#e08478}.social-badge{position:absolute;left:50%;bottom:-13px;transform:translateX(-50%);white-space:nowrap;padding:2px 5px;border-radius:999px;background:#31543f;color:#c8f0d5;border:1px solid #78a98a;font-size:8px;font-weight:900}
.project-dialog form{padding:19px}.project-rows{display:grid;gap:10px;margin-top:12px}.project-row{border:1px solid rgba(255,255,255,.08);border-radius:11px;padding:9px;background:rgba(255,255,255,.035)}.project-row-head{display:flex;justify-content:space-between;gap:10px;font-size:11px}.progress{height:7px;background:rgba(255,255,255,.08);border-radius:999px;overflow:hidden;margin:7px 0}.progress span{display:block;height:100%;background:var(--accent);border-radius:999px}.project-row button{width:100%;border:0;border-radius:8px;background:#334d40;color:white;padding:8px;font-size:10px;font-weight:800}.project-row button:disabled{opacity:.35}.project-reward{margin-top:12px;padding:10px;border-radius:10px;background:rgba(120,215,160,.08);color:#bfe9cc;font-size:10px;line-height:1.45}
@media(max-width:380px){.action{padding:6px 2px}.action-icon{font-size:15px}.action strong{font-size:8px}.action small{font-size:6.5px}.territory-card{bottom:8px}.project-card{margin-top:7px}}

/* Compact mobile territory panel */
.territory-card{padding-top:13px;transition:max-height .18s ease,padding .18s ease}
.panel-toggle{position:absolute;right:10px;top:9px;z-index:2;width:38px;height:34px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.07);color:var(--ink);font-size:22px;line-height:1;display:grid;place-items:center}
.territory-card-head{padding-right:43px}
.territory-card.collapsed{padding:10px 12px;max-height:72px}
.territory-card.collapsed .territory-details{display:none}
.territory-card.collapsed .territory-card-head{min-height:43px;align-items:center}
.territory-card.collapsed h1{font-size:15px;margin-top:1px}
.territory-card.collapsed .eyebrow{font-size:8px}
.territory-card.collapsed .terrain-line{font-size:10px;margin-top:2px}
.territory-card.collapsed .panel-toggle{top:10px}

/* Keep building icons geographically centred as hexes shrink during zoom-out. */
.building-marker.marker-compact .social-badge{display:none}
.building-marker.marker-compact .level-badge{right:-4px;top:-5px;min-width:17px;height:17px;font-size:8px;border-width:1px}
@media(max-width:600px){
  .territory-card{left:8px;right:8px;bottom:8px;max-height:52%;overflow:auto}
  .territory-card.collapsed{overflow:hidden}
  .maplibregl-ctrl-bottom-right{bottom:80px}
}

.player-dialog select{width:100%;margin-top:6px;border:1px solid rgba(255,255,255,.12);background:#111a16;color:white;padding:12px 13px;border-radius:10px;outline:none;font-size:16px}.player-dialog select:focus{border-color:var(--accent)}

/* Mastodon profile linking */
.mastodon-box{margin:14px 0;padding:13px;border:1px solid rgba(255,255,255,.09);border-radius:13px;background:rgba(255,255,255,.035)}
.mastodon-heading{display:flex;align-items:center;gap:9px;margin-bottom:10px}.mastodon-heading strong{display:block;font-size:13px}.mastodon-heading small{display:block;color:var(--muted);font-size:9px;margin-top:1px}.mastodon-logo{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#6364ff;color:white;font-weight:950}
.mastodon-connect label{display:block;color:#cbd4cb;font-size:10px;font-weight:800;margin-bottom:5px}.mastodon-connect-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}.mastodon-connect-row input{min-width:0;padding:10px 11px}.mastodon-connect-row button,.mastodon-unlink{border:0;border-radius:9px;padding:9px 11px;font-weight:850;background:#6364ff;color:white}.mastodon-connect>small{display:block;color:var(--muted);font-size:9px;line-height:1.35;margin-top:7px}
.mastodon-connected{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px}.mastodon-connected img{width:38px;height:38px;border-radius:10px;object-fit:cover}.mastodon-profile{min-width:0}.mastodon-profile strong,.mastodon-profile a{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mastodon-profile strong{font-size:12px}.mastodon-profile a{margin-top:2px;color:#aeb6ff;text-decoration:none;font-size:10px}.mastodon-unlink{background:rgba(255,255,255,.08);font-size:9px}.mastodon-box .auth-error{margin-top:6px;min-height:0;text-align:left}

/* Simplified gameplay: legacy micro-actions are intentionally hidden. */
.legacy-hidden{display:none !important;}


/* v0.14 test status + points */
.top-actions{display:flex;align-items:center;gap:7px;min-width:0}.test-badge{display:inline-grid;place-items:center;padding:4px 7px;border-radius:999px;background:#d9a832;color:#17231f;font-size:8px;font-weight:950;letter-spacing:.12em;box-shadow:0 0 0 1px rgba(255,255,255,.12)}.ranking-button{width:34px;height:34px;border:1px solid rgba(255,255,255,.11);border-radius:10px;background:rgba(255,255,255,.06);color:white;font-size:16px}.score-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:12px 0}.score-summary>div{padding:9px 7px;border-radius:10px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07);text-align:center}.score-summary small{display:block;color:var(--muted);font-size:7px;font-weight:900;letter-spacing:.06em}.score-summary strong{display:block;margin-top:3px;font-size:16px;color:#f3cd69}.wide-secondary{width:100%;border:1px solid rgba(242,200,91,.18);border-radius:10px;background:rgba(242,200,91,.08);color:#f1d27c;padding:10px;font-weight:850}.test-notice-dialog .auth-logo{background:linear-gradient(145deg,#f0c14d,#b8861d)}.test-notice-dialog p{line-height:1.5}.test-warning{display:grid;gap:5px;margin:14px 0;padding:12px;border-radius:12px;background:rgba(240,176,70,.10);border:1px solid rgba(240,176,70,.28);font-size:12px;line-height:1.4}.test-warning strong{color:#ffd27a}.test-warning span{color:#d6d4c9}.leaderboard-dialog{width:min(720px,calc(100% - 24px));max-height:86vh}.leaderboard-dialog form{padding:18px}.leaderboard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.leaderboard-head p{max-width:560px}.dialog-x{border:0;background:rgba(255,255,255,.07);color:white;width:34px;height:34px;border-radius:9px;font-size:22px}.leaderboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.leaderboard-grid section{min-width:0}.leaderboard-grid h3{margin:0 0 7px;font-size:12px;color:#f1d27c}.leaderboard-list{display:grid;gap:6px}.leaderboard-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:7px;padding:8px;border-radius:10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.055)}.rank-number{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:rgba(242,200,91,.10);font-size:10px;font-weight:950;color:#f1d27c}.rank-copy{min-width:0}.rank-copy strong,.rank-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-copy strong{font-size:11px}.rank-copy small{font-size:8px;color:var(--muted);margin-top:2px}.rank-points{text-align:right;font-size:12px;font-weight:900}.rank-points small{display:block;color:var(--muted);font-size:7px;font-weight:700}.leaderboard-empty{padding:16px;text-align:center;color:var(--muted);font-size:10px}.scoring-note{margin-top:12px;padding:10px;border-radius:10px;background:rgba(120,215,160,.07);color:#bfe9cc;font-size:9px;line-height:1.5}@media(max-width:620px){.brand-wrap .subtitle{display:none}.top-actions{gap:5px}.test-badge{padding:3px 5px;font-size:7px}.ranking-button{width:30px;height:30px}.player-button{max-width:145px}.leaderboard-grid{grid-template-columns:1fr}.leaderboard-dialog{max-height:90vh;overflow:auto}}


/* v0.15 PWA / mobile browser polish */
html{background:#17231f}
body{min-height:100dvh;overscroll-behavior:none;-webkit-user-select:none;user-select:none}
input,select,textarea{user-select:text;-webkit-user-select:text}
.install-app-button{margin-top:8px;background:rgba(120,215,160,.09);border-color:rgba(120,215,160,.20);color:#bfe9cc}
@media(display-mode:standalone){
  .topbar{padding-top:max(10px,env(safe-area-inset-top))}
}
@media(max-width:600px){
  #app{height:100dvh;min-height:100dvh}
  .topbar{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}
  .action-dock{padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right));padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .territory-card{left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right))}
}


/* v0.16 compact phone HUD */
@media(max-width:600px){
  /* All five live resources must be visible without horizontal scrolling. */
  .resource-strip{
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    overflow:hidden;
  }
  .resource-card{
    min-width:0;
    width:auto;
    padding:7px 2px;
    gap:3px;
    flex:none;
  }
  .resource-icon{font-size:15px;line-height:1}
  .resource-card small{font-size:6.5px;letter-spacing:.04em}
  .resource-card strong{font-size:12px;line-height:1.1}

  /* Keep the field heading clear of the ownership badge and collapse button. */
  .territory-card-head{gap:7px;padding-right:43px}
  .territory-card-head>div:first-child{min-width:0;max-width:calc(100% - 50px)}
  .eyebrow{font-size:8px;letter-spacing:.08em;white-space:nowrap}
  .badge{flex:0 0 auto;padding:5px 7px;font-size:9px}
}
@media(max-width:360px){
  .resource-card{padding-left:1px;padding-right:1px;gap:2px}
  .resource-icon{font-size:14px}
  .resource-card small{font-size:6px}
  .resource-card strong{font-size:11px}
  .eyebrow{font-size:7.5px;letter-spacing:.05em}
}
\n\n/* v0.17 phone HUD: fixed-width resource grid and compact field card */
html,body,#app{max-width:100%;overflow-x:hidden}
@media(max-width:600px){
  .resource-strip{
    width:100%;
    max-width:100vw;
    box-sizing:border-box;
    grid-template-columns:repeat(5,20%);
  }
  .resource-card{box-sizing:border-box;overflow:hidden;min-width:0;max-width:none}
  .resource-card>div{min-width:0}
  .resource-card small,.resource-card strong{white-space:nowrap}

  .territory-card{
    left:max(8px,env(safe-area-inset-left));
    right:auto;
    width:min(270px,calc(100vw - 16px));
    box-sizing:border-box;
  }
  .territory-card-head{padding-right:38px;gap:5px}
  .territory-card-head>div:first-child{max-width:none;min-width:0}
  #territoryTitle{display:none}
  .terrain-line{margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}


/* v0.19 special building clusters */
.special-build-button{margin-top:9px;width:100%;display:flex;align-items:center;gap:9px;border:1px solid rgba(242,200,91,.28);border-radius:11px;background:linear-gradient(135deg,rgba(242,200,91,.16),rgba(120,215,160,.08));color:#f6df9b;padding:10px 12px;text-align:left}
.special-build-button[hidden]{display:none!important}.special-build-button:disabled{opacity:.78}.special-build-button>span:first-child{font-size:20px}.special-build-button>span:last-child{display:grid;gap:2px}.special-build-button strong{font-size:11px}.special-build-button small{font-size:8px;color:#c9cfbd}

/* v0.20 city hub */
.city-dialog h3{margin:18px 0 5px}.city-dialog p{margin:4px 0 12px}.exchange-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.exchange-grid label:last-child{grid-column:1/-1}.exchange-grid select,.exchange-grid input{width:100%;box-sizing:border-box;margin-top:4px}.city-action{border-color:rgba(255,255,255,.14)}
@media(max-width:700px){.action-dock{grid-template-columns:repeat(4,minmax(0,1fr))!important}.action-dock .action{min-width:0!important;padding-left:4px!important;padding-right:4px!important}.action-dock .action strong{font-size:10px}.action-dock .action small{font-size:8px}.exchange-grid{grid-template-columns:1fr}}


/* v0.21 city levels, gold and deliberately compact six-resource HUD */
.resource-strip{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;overflow:hidden!important;width:100%!important;max-width:100vw!important}
.resource-card{min-width:0!important;width:100%!important;box-sizing:border-box!important;padding-left:2px!important;padding-right:2px!important;gap:2px!important;overflow:hidden!important}
.resource-card>div{min-width:0}.resource-card small{font-size:6px!important;letter-spacing:.025em!important}.resource-card strong{font-size:11px!important}.resource-icon{font-size:14px!important}
.city-level-box{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:10px 0;padding:10px 12px;border:1px solid rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.04)}.city-level-box span{font-size:10px;opacity:.75;text-align:right}

/* v0.27: the city is a map landmark; building emojis are no longer map clutter. */
.city-map-marker{display:flex;align-items:center;gap:4px;padding:5px 7px 6px;border-radius:12px;background:rgba(25,38,31,.96);border:2px solid #f2c85b;box-shadow:0 5px 14px rgba(0,0,0,.35);cursor:pointer;white-space:nowrap;transform:translateY(-2px)}
.city-map-marker span{font-size:22px;line-height:1}.city-map-marker b{font-size:10px;color:#fff3b0;line-height:1}

/* v0.32 road contribution controls */
.road-contribute-actions{display:grid;grid-template-columns:auto 1fr;gap:7px;align-items:center;margin-top:7px}
.road-contribute-actions span{grid-column:1/-1;font-size:.78rem;opacity:.72}
.road-contribute-actions button{min-height:38px;padding:7px 10px}
.road-contribute-all{font-weight:700}

.transport-center-map-marker{display:flex;align-items:center;gap:3px;background:#fff;border:2px solid #243447;border-radius:16px;padding:3px 6px;box-shadow:0 2px 8px #0005;font-size:18px;white-space:nowrap}.transport-center-map-marker b{font-size:10px;color:#243447}


/* v0.42 — Fedilandia game-board visual pass */
#map{background:#b8c98f;filter:saturate(1.08) contrast(1.04)}
.map-shade{background:radial-gradient(circle at 50% 42%,rgba(255,244,180,.04) 0 35%,rgba(25,45,31,.12) 100%),linear-gradient(to bottom,rgba(255,225,128,.07),transparent 30%,transparent 66%,rgba(15,29,23,.30));mix-blend-mode:multiply}
.map-shell:after{content:"";position:absolute;inset:0;pointer-events:none;z-index:2;opacity:.13;background-image:radial-gradient(circle at 20% 30%,rgba(255,255,255,.65) 0 1px,transparent 1.5px),radial-gradient(circle at 70% 65%,rgba(25,45,31,.55) 0 1px,transparent 1.5px);background-size:19px 19px,23px 23px}
.maplibregl-canvas{image-rendering:auto}
.maplibregl-ctrl-attrib{opacity:.55;font-size:9px!important}
.city-map-marker{background:linear-gradient(145deg,#263d2f,#15261d);border:2px solid #f2c85b;box-shadow:0 0 0 3px rgba(242,200,91,.16),0 7px 18px rgba(0,0,0,.38);padding:6px 8px;border-radius:14px}
.city-map-marker span{font-size:25px}.city-map-marker b{font-size:10px;color:#ffe38a}
.status-pill,.map-fab,.territory-card{box-shadow:0 8px 0 rgba(10,18,14,.12),0 14px 32px rgba(0,0,0,.22)}
.territory-card{border-color:rgba(242,200,91,.16)}
@media(max-width:600px){.maplibregl-ctrl-attrib{max-width:48vw}}

.school-daily-row{border-color:rgba(240,196,72,.28);background:rgba(240,196,72,.06)}.school-karma-hint{font-size:10px;color:#f2d98b;margin:7px 0 2px;line-height:1.35}


/* v0.80 — map-free dashboard and filtered batch service */
.dashboard-top-button{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#eef4e8;border-radius:10px;padding:7px 10px;font-weight:700;font-size:11px}
.dashboard{position:fixed;inset:0;z-index:90;background:#111d17;color:#eef4e8;overflow:auto;padding-bottom:max(24px,env(safe-area-inset-bottom))}.dashboard[hidden]{display:none!important}
.dashboard-head{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;align-items:center;padding:18px max(18px,calc((100vw - 900px)/2));background:rgba(17,29,23,.96);border-bottom:1px solid rgba(255,255,255,.09);backdrop-filter:blur(10px)}.dashboard-head small{font-size:9px;letter-spacing:.18em;color:#f2c85b}.dashboard-head h1{margin:2px 0 0;font-size:24px}.dashboard-head button{width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.15);background:rgba(255,255,255,.06);color:#fff;font-size:25px}
.dashboard-tabs{position:sticky;top:77px;z-index:2;display:flex;gap:6px;padding:10px max(18px,calc((100vw - 900px)/2));background:#111d17;border-bottom:1px solid rgba(255,255,255,.07)}.dashboard-tab{border:0;border-radius:999px;padding:9px 14px;background:rgba(255,255,255,.06);color:#bdc9bf;font-weight:700}.dashboard-tab.active{background:#f2c85b;color:#17231f}
.dashboard-body{max-width:900px;margin:0 auto;padding:18px}.dashboard-pane{display:none}.dashboard-pane.active{display:block}.dashboard-hero{padding:20px;border:1px solid rgba(242,200,91,.2);border-radius:18px;background:linear-gradient(135deg,rgba(242,200,91,.12),rgba(82,137,91,.12));margin-bottom:12px}.dashboard-hero small{color:#f2c85b}.dashboard-hero h2{font-size:28px;margin:3px 0}.dashboard-hero p{margin:5px 0 0;color:#c8d2c9}
.dashboard-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:14px}.dashboard-stat-grid>div{padding:14px;border-radius:14px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08)}.dashboard-stat-grid small{display:block;font-size:8px;color:#94a298;letter-spacing:.08em}.dashboard-stat-grid strong{display:block;font-size:19px;margin-top:4px}
.dashboard-card{width:100%;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;text-align:left;margin:8px 0;padding:15px;border:1px solid rgba(255,255,255,.09);border-radius:14px;background:rgba(255,255,255,.045);color:#eef4e8}.dashboard-card>span{font-size:23px}.dashboard-card div{display:grid;gap:3px}.dashboard-card small{color:#9eaca1}.dashboard-card b{font-size:22px;color:#f2c85b}
.dashboard-section-head h2{margin:4px 0;font-size:23px}.dashboard-section-head p{margin:0 0 16px;color:#9eaca1}.service-filters{display:grid;grid-template-columns:2fr 1fr 1.5fr;gap:9px}.service-filters label{font-size:9px;color:#aebbb0}.service-filters select,.service-filters input{display:block;width:100%;box-sizing:border-box;margin-top:5px;padding:11px;border-radius:10px;border:1px solid rgba(255,255,255,.12);background:#1c2b23;color:#fff}.service-selection-summary{display:flex;justify-content:space-between;gap:12px;margin:14px 0 8px;padding:13px;border-radius:12px;background:rgba(242,200,91,.09);border:1px solid rgba(242,200,91,.18)}.service-all-button{width:100%;padding:13px;border:0;border-radius:12px;background:#f2c85b;color:#17231f;font-weight:800}.service-all-button:disabled{opacity:.4}.dashboard-note{font-size:10px;color:#9eaca1;margin:8px 2px 18px}
.dashboard-list{display:grid;gap:7px}.dashboard-list-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;padding:12px;border-radius:12px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.07)}.dashboard-list-row.due{border-color:rgba(242,150,91,.32);background:rgba(242,150,91,.07)}.dashboard-list-icon{font-size:22px}.dashboard-list-row>div,.dashboard-list-row>span:last-child{display:grid;gap:3px}.dashboard-list-row>span:last-child{text-align:right}.dashboard-list-row small{font-size:9px;color:#98a69b}.dashboard-empty{color:#98a69b;text-align:center;padding:28px}
body.dashboard-open{overflow:hidden}
@media(max-width:600px){.dashboard-top-button{padding:6px 8px;font-size:0}.dashboard-top-button:first-letter{font-size:17px}.dashboard-head{padding:14px 15px}.dashboard-tabs{top:69px;padding:9px 14px;overflow-x:auto}.dashboard-body{padding:14px}.dashboard-stat-grid{grid-template-columns:repeat(2,1fr)}.service-filters{grid-template-columns:1fr 1fr}.service-filters label:first-child{grid-column:1/-1}.dashboard-list-row{grid-template-columns:34px minmax(0,1fr) auto;padding:10px}.dashboard-list-row strong{font-size:11px}}

.supermarket-link-marker{font-size:34px;line-height:1;filter:drop-shadow(0 2px 3px rgba(0,0,0,.45));cursor:pointer;transform-origin:bottom center}


/* v0.81.7 — always-visible GPS/location control */
.locate-fab{
  position:absolute!important;
  top:12px!important;
  right:12px!important;
  z-index:50!important;
  width:auto!important;
  min-width:44px;
  height:44px!important;
  padding:0 12px!important;
  display:flex!important;
  align-items:center;
  justify-content:center;
  gap:6px;
  border-radius:22px!important;
  border:1px solid rgba(255,255,255,.28)!important;
  background:rgba(18,28,24,.96)!important;
  color:#fff!important;
  opacity:1!important;
  visibility:visible!important;
  box-shadow:0 6px 20px rgba(0,0,0,.32)!important;
  pointer-events:auto!important;
  font-size:17px!important;
  font-weight:800;
}
.locate-fab .locate-label{font-size:11px;white-space:nowrap}
#app.locked .locate-fab{pointer-events:none!important;opacity:.42!important}
@media(max-width:420px){
  .locate-fab{width:44px!important;padding:0!important}
  .locate-fab .locate-label{display:none}
}


/* v0.81.8 — location action lives in the persistent top bar */
.top-location-button{
  min-height:40px;
  padding:0 10px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:12px;
  background:rgba(22,33,28,.92);
  color:#fff;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
}
.top-location-button:disabled{opacity:.45;cursor:default}
@media(max-width:560px){
  .top-location-button{width:40px;padding:0;font-size:18px}
  .top-location-button span{display:none}
}


/* v0.81.9 — simplified HUD: one top bar, one bottom panel */
#app{
  grid-template-rows:auto 1fr!important;
}
.topbar{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:"brand actions" "resources resources"!important;
  gap:7px 10px!important;
  padding-bottom:7px!important;
}
.topbar .brand-wrap{grid-area:brand;min-width:0}
.topbar .top-actions{grid-area:actions}
.topbar .resource-strip{
  grid-area:resources;
  border:0!important;
  border-top:1px solid rgba(255,255,255,.07)!important;
  background:transparent!important;
  width:100%!important;
  min-width:0;
  padding-top:5px;
}
.topbar .resource-card{
  background:transparent!important;
  border:0!important;
  min-height:34px!important;
  padding:3px 5px!important;
}
.topbar .resource-card small{display:none!important}
.topbar .resource-card strong{font-size:13px!important;margin:0!important}
.topbar .resource-icon{font-size:15px!important}
.map-shell{min-height:0!important}

.territory-card{
  bottom:10px!important;
  padding-bottom:7px!important;
}
.territory-card .action-dock{
  position:static!important;
  margin:10px -6px -1px!important;
  padding:8px 0 0!important;
  border-top:1px solid rgba(255,255,255,.10)!important;
  background:transparent!important;
  z-index:auto!important;
}
.status-pill[hidden]{display:none!important}
.status-pill.error{
  display:flex!important;
  top:10px!important;
  max-width:calc(100% - 24px)!important;
}

@media(max-width:600px){
  .topbar{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:5px 6px!important;
  }
  .brand-wrap .subtitle{display:none!important}
  .brand-mark{width:27px!important;height:27px!important}
  .brand{font-size:13px!important}
  .topbar .resource-strip{
    display:grid!important;
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    overflow:visible!important;
  }
  .topbar .resource-card{
    display:flex!important;
    justify-content:center!important;
    gap:2px!important;
    padding:2px 1px!important;
  }
  .topbar .resource-card div{min-width:0}
  .topbar .resource-card strong{font-size:11px!important}
  .topbar .resource-icon{font-size:13px!important}
  .territory-card{left:8px!important;right:8px!important;bottom:8px!important}
  .territory-card .action-dock{gap:3px!important}
}

.municipal-project-row{align-items:flex-start}.municipal-project-actions{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.55rem}.municipal-project-actions button{padding:.45rem .7rem;border-radius:.6rem}.municipal-project-row>div{flex:1;min-width:0}


/* v0.82.5 — compact map HUD; inventory moved to Overblik */
.topbar{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important;padding-bottom:9px!important}
.topbar .brand-wrap{min-width:0;flex:1 1 auto}
.topbar .top-actions{flex:0 0 auto;min-width:0}
.player-button{max-width:190px!important;padding-right:9px!important;gap:6px!important}
.player-gold{display:inline-flex;align-items:center;padding-left:7px;margin-left:1px;border-left:1px solid rgba(255,255,255,.12);color:#f4d36e;font-size:11px;font-weight:900;white-space:nowrap}
.player-gold[hidden]{display:none!important}
.dashboard-resources{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:0 0 14px}
.dashboard-resource{display:flex;align-items:center;gap:8px;min-width:0;padding:12px 10px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.075)}
.dashboard-resource>span{font-size:21px;line-height:1}
.dashboard-resource>div{min-width:0}
.dashboard-resource small{display:block;color:#94a298;font-size:7px;font-weight:850;letter-spacing:.07em}
.dashboard-resource strong{display:block;margin-top:2px;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dashboard-resource.strategic{border-color:rgba(242,200,91,.18);background:rgba(242,200,91,.07)}
@media(max-width:760px){.dashboard-resources{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.dashboard-resource{padding:10px 8px;gap:5px}.dashboard-resource>span{font-size:18px}.dashboard-resource strong{font-size:13px}}
@media(max-width:600px){.topbar{gap:6px!important;padding-left:10px!important;padding-right:10px!important}.top-actions{gap:4px!important}.player-button{max-width:126px!important;padding:6px 7px!important}.player-button>span:first-child{display:none}.player-button #playerName{font-size:11px}.player-gold{font-size:10px;padding-left:5px}.dashboard-resources{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:410px){.brand{font-size:12px!important;letter-spacing:.08em!important}.brand-mark{width:25px!important;height:25px!important}.player-button{max-width:112px!important}.dashboard-resources{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.82.6 — contextual explanations + action consequences */
.object-explain{margin:7px 0 5px;padding:8px 10px;border-radius:10px;background:rgba(120,215,160,.07);border:1px solid rgba(120,215,160,.13);color:#cfe6d6;font-size:9px;line-height:1.38}.action small{white-space:normal!important;line-height:1.15;max-width:100%}.action{min-height:52px}.action strong{font-size:9.5px}@media(max-width:600px){.object-explain{font-size:8.5px;padding:7px 9px}.action small{font-size:7px!important}.action{min-height:50px}}


/* v0.83.1 — visible cluster progression */
.cluster-catalog-row small{display:block;margin-top:3px}.cluster-locked{opacity:.62}.cluster-locked .dashboard-list-icon{filter:grayscale(1)}.cluster-unlocked{border-color:rgba(120,215,160,.18);background:rgba(120,215,160,.035)}

/* v0.83.3 — mobile territory sheet spans the full screen width */
@media(max-width:779px){
  .territory-card{
    left:0!important;
    right:0!important;
    bottom:0!important;
    width:100%!important;
    border-left:0!important;
    border-right:0!important;
    border-bottom:0!important;
    border-radius:18px 18px 0 0!important;
    padding-left:max(13px,env(safe-area-inset-left))!important;
    padding-right:max(13px,env(safe-area-inset-right))!important;
    padding-bottom:max(7px,env(safe-area-inset-bottom))!important;
  }
  .territory-card.collapsed{
    padding-left:max(12px,env(safe-area-inset-left))!important;
    padding-right:max(12px,env(safe-area-inset-right))!important;
  }
  .territory-card .action-dock{
    margin-left:calc(-1 * max(7px,env(safe-area-inset-left)))!important;
    margin-right:calc(-1 * max(7px,env(safe-area-inset-right)))!important;
    padding-left:max(7px,env(safe-area-inset-left))!important;
    padding-right:max(7px,env(safe-area-inset-right))!important;
  }
}

/* v0.84.0 — Min by is the primary progression loop */
.city-progress{margin:12px 0 14px;padding:12px;border:1px solid rgba(242,200,91,.24);border-radius:14px;background:rgba(242,200,91,.055)}
.city-progress-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.city-progress-head span{font-size:11px;opacity:.72}
.city-progress-bar{height:7px;border-radius:99px;background:rgba(255,255,255,.09);overflow:hidden;margin-bottom:10px}.city-progress-bar i{display:block;height:100%;border-radius:inherit;background:#e5b94f;transition:width .35s ease}
.city-requirement{display:flex;justify-content:space-between;gap:12px;padding:7px 2px;border-top:1px solid rgba(255,255,255,.055);font-size:12px}.city-requirement:first-of-type{border-top:0}.city-requirement.ok{color:#b9d9ad}.city-requirement.missing{color:#eee3ca}.city-requirement b{white-space:nowrap}
.city-unlock{display:flex;flex-direction:column;gap:3px;margin:8px 0 12px;padding:10px 12px;border-radius:12px;background:rgba(77,126,88,.15);font-size:12px}.city-unlock:empty{display:none}.city-unlock span{font-size:11px;opacity:.8}
.city-max{text-align:center;padding:8px;color:#ffe38a}.city-map-marker b:before{content:"BY ";opacity:.55}

/* v0.85 build choice: geography is a strong economic signal, not a hard lock. */
.build-choice-dialog{width:min(94vw,560px);max-height:82vh;border:1px solid rgba(180,210,155,.24);border-radius:22px;background:#152219;color:#eef5df;padding:0;box-shadow:0 24px 70px rgba(0,0,0,.55)}
.build-choice-dialog::backdrop{background:rgba(5,12,8,.62);backdrop-filter:blur(3px)}
.build-choice-head{display:flex;justify-content:space-between;gap:16px;padding:20px 20px 12px;border-bottom:1px solid rgba(180,210,155,.14)}
.build-choice-head small{color:#9db18d;font-weight:800;letter-spacing:.11em}.build-choice-head h2{margin:3px 0 6px;font-size:1.35rem}.build-choice-head p{margin:0;color:#b9c8ad;font-size:.9rem;line-height:1.35}
#buildChoiceClose{align-self:flex-start;border:0;background:rgba(255,255,255,.06);color:#dce7d3;border-radius:999px;width:34px;height:34px;font-size:1rem}
.build-choice-rows{display:grid;gap:9px;padding:14px 14px 20px}.build-choice-row{display:grid;grid-template-columns:44px 1fr auto;gap:11px;align-items:center;width:100%;text-align:left;border:1px solid rgba(180,210,155,.15);background:#1c2d21;color:#eef5df;border-radius:16px;padding:13px 14px}.build-choice-row.excellent{border-color:rgba(219,183,82,.7);background:#26331f}.build-choice-row.poor{opacity:.78}.build-choice-icon{font-size:1.8rem}.build-choice-copy{display:grid;gap:3px}.build-choice-copy strong{font-size:1rem}.build-choice-copy small{color:#b9c8ad}.build-choice-copy span{color:#d6dfcd;font-size:.86rem}.build-choice-chevron{font-size:1.5rem;color:#9fb491}
@media(max-width:640px){.build-choice-dialog{width:100vw;max-width:none;margin:auto 0 0;border-radius:22px 22px 0 0;max-height:78vh}.build-choice-rows{padding-bottom:max(20px,env(safe-area-inset-bottom))}}


/* v0.85.1 — relocation after soft-geography rollout */
.demolish-button{width:100%;margin:9px 0 2px;padding:9px 12px;border:1px solid rgba(224,112,96,.26);border-radius:11px;background:rgba(132,48,39,.13);color:#efb0a7;text-align:left;font-weight:800}
.demolish-button small{display:block;margin-top:2px;font-size:9px;font-weight:500;opacity:.72}
.demolish-button[hidden]{display:none!important}

.demolish-button.confirming{background:rgba(165,69,48,.28);border-color:rgba(239,176,167,.62);color:#ffd4cc}
.demolish-button:disabled{opacity:.55;cursor:wait}

/* v0.85.3 — robust demolition confirmation */
.demolish-confirm{position:fixed;inset:0;z-index:80;display:grid;place-items:end center;background:rgba(0,0,0,.55);padding:16px;padding-bottom:max(16px,env(safe-area-inset-bottom));}
.demolish-confirm[hidden]{display:none!important}.demolish-confirm-box{width:min(440px,100%);box-sizing:border-box;background:#1c2923;border:1px solid rgba(255,255,255,.14);border-radius:18px;padding:16px;box-shadow:0 24px 60px rgba(0,0,0,.5)}
.demolish-confirm-box strong{font-size:16px}.demolish-confirm-box p{margin:7px 0 14px;color:#c6d0c7;font-size:12px;line-height:1.4}.demolish-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.demolish-confirm-actions button{min-height:44px;border:0;border-radius:11px;font-weight:850}.demolish-confirm-actions #demolishCancel{background:rgba(255,255,255,.08);color:white}.demolish-confirm-actions #demolishConfirmButton{background:#9f4f43;color:white}


/* v0.86.6 — civic landmarks use the same illustrated game-board language as buildings. */
.city-map-marker{
  min-width:58px;height:52px;box-sizing:border-box;display:flex;align-items:flex-end;justify-content:center;gap:5px;
  padding:5px 7px 6px;border-radius:18px 18px 15px 15px;background:linear-gradient(155deg,#294534,#15271d 72%);
  border:3px solid #e8c85d;box-shadow:0 0 0 3px rgba(232,200,93,.16),0 8px 20px rgba(0,0,0,.38);
}
.city-map-marker:after{content:"";position:absolute;bottom:-7px;left:50%;width:12px;height:12px;background:#1a2d22;border-right:3px solid #e8c85d;border-bottom:3px solid #e8c85d;transform:translateX(-50%) rotate(45deg);border-radius:0 0 3px 0;z-index:-1}
.city-map-marker b{position:absolute;right:-7px;top:-8px;display:grid;place-items:center;min-width:28px;height:24px;padding:0 4px;box-sizing:border-box;border-radius:999px;background:#f0cf67;color:#203126;border:2px solid #1d3024;font-size:10px;line-height:1;box-shadow:0 3px 8px rgba(0,0,0,.28)}
.city-map-marker b:before{content:""!important}.city-settlement{position:relative;display:block;width:39px;height:35px}.city-settlement i{position:absolute;bottom:0;display:block;background:#f4e7b6;border:2px solid #20372a;box-sizing:border-box}.city-settlement i:before{content:"";position:absolute;left:-4px;right:-4px;top:-10px;height:13px;background:#d6a443;clip-path:polygon(50% 0,100% 72%,87% 100%,13% 100%,0 72%)}.city-settlement i:after{content:"";position:absolute;left:50%;bottom:0;width:5px;height:9px;transform:translateX(-50%);background:#345b43;border-radius:2px 2px 0 0}.city-settlement i:nth-child(1){left:1px;width:16px;height:18px}.city-settlement i:nth-child(2){left:13px;width:19px;height:25px;z-index:2}.city-settlement i:nth-child(3){right:0;width:15px;height:16px}

/* Slightly more dimensional landmark treatment around schools and supermarkets. */
.school-dialog form,.supermarket-dialog form{position:relative;overflow:hidden}.school-dialog form:before,.supermarket-dialog form:before{content:"";display:block;height:6px;margin:-19px -19px 15px;background:linear-gradient(90deg,#345b43,#e8c85d,#345b43)}
.school-dialog h2,.supermarket-dialog h2{font-size:20px;margin-bottom:5px}.school-dialog .project-row,.supermarket-dialog .project-row{background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.018));border-color:rgba(232,200,93,.15);box-shadow:inset 0 1px rgba(255,255,255,.025)}
.school-dialog .project-row-head strong,.supermarket-dialog .project-row-head strong{font-size:12px}.school-dialog .progress,.supermarket-dialog .progress{height:9px;background:#101c15;border:1px solid rgba(255,255,255,.05)}.school-dialog .progress span,.supermarket-dialog .progress span{background:linear-gradient(90deg,#7ca56e,#e8c85d)}
.supermarket-economy-row{border-color:rgba(232,200,93,.28)!important;background:linear-gradient(145deg,rgba(232,200,93,.10),rgba(65,103,74,.08))!important}.supermarket-economy-row .progress span{background:linear-gradient(90deg,#d6a443,#f0d77d)}
.city-dialog form{position:relative;overflow:hidden}.city-dialog form:before{content:"";display:block;height:7px;margin:-19px -19px 14px;background:linear-gradient(90deg,#244331 0 24%,#d6a443 24% 38%,#345b43 38% 62%,#e8c85d 62% 76%,#244331 76%)}
.city-dialog .leaderboard-head{padding-bottom:10px;border-bottom:1px solid rgba(232,200,93,.12)}.city-dialog .leaderboard-head h2{font-size:22px}.city-level-box{position:relative;overflow:hidden;border-color:rgba(232,200,93,.28);background:linear-gradient(145deg,rgba(232,200,93,.10),rgba(52,91,67,.10));box-shadow:inset 0 1px rgba(255,255,255,.03)}.city-level-box:before{content:"🏘";font-size:28px;filter:saturate(.8);margin-right:2px}.city-level-box strong{flex:1}.city-progress{background:linear-gradient(145deg,rgba(52,91,67,.12),rgba(232,200,93,.055));box-shadow:inset 0 1px rgba(255,255,255,.025)}


/* v0.87.0 — reliable map landmarks. Marker roots intentionally have no
   transform transition: MapLibre owns the inline transform every animation frame. */
.city-map-marker,.civic-map-marker{cursor:pointer;user-select:none;will-change:transform}
.city-map-marker{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;min-width:0!important;width:auto!important;height:auto!important;border-radius:0!important}
.city-marker-card,.civic-marker-card{position:relative;display:grid;place-items:center;box-sizing:border-box;background:linear-gradient(155deg,#20372a,#10231a 75%);border:2px solid #e8c85d;box-shadow:0 5px 14px rgba(0,0,0,.34),0 0 0 3px rgba(232,200,93,.12)}
.city-marker-card{width:58px;height:58px;border-radius:18px}
.city-marker-kicker,.civic-marker-kicker{position:absolute;top:5px;left:0;right:0;text-align:center;font-size:7px!important;line-height:1!important;font-weight:950;letter-spacing:.11em;color:#f0cf67}
.city-marker-glyph{font-size:27px;line-height:1;margin-top:7px}
.city-marker-card b,.civic-marker-card b{position:absolute;right:-8px;top:-8px;display:grid;place-items:center;min-width:27px;height:24px;padding:0 5px;border-radius:999px;background:#f0cf67;color:#173024;border:2px solid #173024;font-size:10px;font-weight:950;line-height:1;box-shadow:0 3px 8px rgba(0,0,0,.28)}
.city-marker-card b:before{content:""!important}
.civic-map-marker{padding:0;background:transparent;border:0;box-shadow:none}
.civic-marker-card{width:52px;height:52px;border-radius:16px}
.civic-marker-glyph{font-size:24px;line-height:1;margin-top:7px}
.civic-map-marker.school .civic-marker-card{background:linear-gradient(155deg,#23463d,#122c25 76%);border-color:#8fc8b0}
.civic-map-marker.school .civic-marker-kicker{color:#bde6d5}
.civic-map-marker.school .civic-marker-card b{background:#bde6d5;color:#17342b;border-color:#17342b}
.civic-map-marker.supermarket .civic-marker-card{background:linear-gradient(155deg,#4c4021,#29210f 76%);border-color:#e8c85d}
.civic-map-marker.supermarket .civic-marker-kicker{color:#ffe08a}
.civic-map-marker.supermarket .civic-marker-card b{background:#f0cf67;color:#3d3218;border-color:#3d3218;font-size:8px;min-width:31px}
