/* Logged-in screens, on top of city.css */
.hud{background:var(--lawn);color:#fff}
.hud .wrap{display:flex;flex-wrap:wrap;align-items:center;gap:6px 22px;padding-top:10px;padding-bottom:10px;font-size:15px}
.hud .who{font-weight:900;font-size:20px;margin-right:auto;overflow-wrap:anywhere}
.stock{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0;padding:0;list-style:none}
.stock img{vertical-align:middle;margin-right:4px}
.tabs{background:#fff}
.tabs ul{display:flex;overflow-x:auto;margin:0 auto;padding-top:0;padding-bottom:0;list-style:none;gap:4px}
.tabs a{display:block;padding:13px 12px 10px;border-bottom:4px solid transparent;text-decoration:none;white-space:nowrap}
.tabs a[aria-current]{border-color:var(--brick);font-weight:900}
.road .out{color:#fff;font-weight:900;white-space:nowrap}
.game{min-height:520px;padding-top:24px;padding-bottom:40px}
.game h1{font-size:34px}
.game>.notice{margin-bottom:16px}
.cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}
.sheet{background:#fff;padding:20px;border-radius:4px;min-width:0}
.sheet h2{font-size:24px}
.sheet+.sheet{margin-top:18px}
.cols>.sheet+.sheet{margin-top:0}
.btn.quiet{background:var(--asphalt)}
.btn[disabled]{background:#62757d;cursor:not-allowed}

/* map */
.board{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:14px}
.map{position:relative;overflow:auto;height:max(380px,calc(100vh - 300px));max-height:760px;background:#d5b986;border:4px solid var(--asphalt);scrollbar-width:none;cursor:grab;overscroll-behavior:contain}
.map.held{cursor:grabbing}
.ground{position:relative}
.ground>.terrain{display:block;width:100%;height:100%;max-width:none;user-select:none;pointer-events:none}
.ghost{position:absolute;z-index:2;max-width:none;opacity:.86;cursor:move;touch-action:none;user-select:none;outline:2px dashed var(--brick)}
.tray{display:flex;flex-direction:column;gap:10px;padding:16px;background:#fff;border-radius:4px;align-self:start}
.tray h2{font-size:21px;margin:0}
.tray p{margin:0;font-size:15px}
.tray .preview{align-self:center;max-height:140px;width:auto;height:auto}
.tray .btn{text-align:center;font-size:16px;padding:10px 14px}
.status{font-weight:900;color:#7c210b}
.status:empty{display:none}

/* shop and catalogue */
.filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;padding:0;list-style:none}
.filters a{display:block;padding:7px 13px;background:#fff;border-radius:4px;text-decoration:none}
.filters a[aria-current]{background:var(--asphalt);color:#fff;font-weight:900}
.exchange{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin-bottom:20px}
.exchange label{flex:0 1 340px;min-width:0}
.shop{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:22px 14px;margin:0;padding:0;list-style:none}
.shop li{display:flex;flex-direction:column;min-width:0}
.shop .plot{height:165px;display:flex;align-items:flex-end;justify-content:center}
.shop .plot img{max-height:160px;width:auto;height:auto}
.shop .info{flex:1;display:flex;flex-direction:column;gap:3px;padding:10px 12px;background:#fff;border-radius:0 0 4px 4px;border-top:4px solid var(--asphalt);font-size:15px}
.shop h2,.shop h3{font-size:18px;margin:0}
.shop form{margin-top:auto;padding-top:8px}
.shop .btn{width:100%;font-size:16px;padding:9px}

progress{display:block;width:100%;height:16px;margin:4px 0 14px;border:0;background:#dce3e5;accent-color:var(--lawn)}
progress::-webkit-progress-bar{background:#dce3e5}
progress::-webkit-progress-value{background:var(--lawn)}
progress.low::-webkit-progress-value{background:var(--brick)}
progress.mid::-webkit-progress-value{background:#e0a21b}
progress::-moz-progress-bar{background:var(--lawn)}
progress.low::-moz-progress-bar{background:var(--brick)}
progress.mid::-moz-progress-bar{background:#e0a21b}
table.data{width:100%;border-collapse:collapse}
.data th,.data td{padding:8px;text-align:left;border-bottom:1px solid #dce3e5;overflow-wrap:anywhere}
.data tr.me{font-weight:900;background:#f3e6cc}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.fields .wide{grid-column:1/-1}
.birth{display:grid;grid-template-columns:1fr 1.5fr 1.2fr;gap:6px}
.share{display:flex;flex-wrap:wrap;gap:8px}
.share input{flex:1 1 280px;min-width:0;width:auto;margin:0}

@media (max-width:820px){
 .board,.cols,.fields{grid-template-columns:minmax(0,1fr)}
 .map{height:54vh;min-height:300px}
 .game h1{font-size:28px}
}
@media (max-width:520px){
 .shop{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 8px}
 .shop .plot{height:120px}
 .shop .plot img{max-height:116px}
 .shop .info{padding:8px;font-size:14px}
 .shop h2,.shop h3{font-size:15px}
 .shop .btn{font-size:14px;padding:9px 4px}
}
