/* paleta DAGCity Realty (aceeași ca paginile Real Estate): panouri albe, verde închis, alamă; desenul hărții rămâne neschimbat */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/fonts/inter-700.woff2') format('woff2'); }
:root {
  --glass: rgba(255, 255, 255, 0.94);
  --line: #E6E1D6;
  --text: #1F2421;
  --muted: #6B6F6A;
  --accent: #B8893B;
  --green: #1E4D3A;
  --green-2: #2C6650;
  --brass: #B8893B;
  --brass-soft: #F3E9D6;
  --bg: #F7F4EE;
  --hover: rgba(30, 77, 58, 0.06);
  --field: #FFFFFF;
  --ok: #2E8B57;
  --gap: 10px;
  --shadow: 0 1px 2px rgba(31,36,33,.08), 0 6px 18px rgba(31,36,33,.12);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #101628; color: var(--text);
  font: 14px/1.35 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
/* #map: stratul static; la zoom se scalează din CSS peste #ov (toată harta, rezoluție mică). #fx: animații și intrare. */
#ov { position: fixed; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; visibility: hidden; display: block; }
#map { position: fixed; inset: 0; width: 100vw; height: 100vh; transform-origin: 0 0; pointer-events: none; display: block; }
#fx { position: fixed; inset: 0; width: 100vw; height: 100vh; touch-action: none; cursor: grab; display: block; }
#fx.dragging { cursor: grabbing; }
.glass { background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
[hidden] { display: none !important; }

.offline-tag { display: none; color: #F2A39A !important; font-style: normal; margin-left: 6px; }
body.offline .offline-tag { display: inline; }
body.offline .bar { opacity: .75; }
.chip { border-radius: 999px; padding: 7px 12px; white-space: nowrap; }
.chip small { color: var(--muted); margin-left: 4px; }
.chip { text-decoration: none; color: var(--text); }
.chip .short { display: none; }
.chip:hover { border-color: var(--brass); background: var(--brass-soft); color: var(--green); }

.panel { position: fixed; right: var(--gap); top: calc(var(--top-h, 56px) + 8px); width: min(320px, calc(100vw - 2 * var(--gap)));
  max-height: calc(100vh - var(--dock-h, 96px) - var(--top-h, 56px) - 24px); overflow: auto; border-radius: 14px; padding: 10px 12px; }
.panel h3 { margin: 2px 0 8px; font-size: 14px; }
.panel ol { list-style: none; margin: 0; padding: 0; }
.panel li { display: flex; gap: 8px; align-items: center; padding: 6px 4px; border-top: 1px solid var(--line); cursor: pointer; border-radius: 6px; }
.panel li:hover { background: var(--hover); }
.panel li .n { font-variant-numeric: tabular-nums; color: var(--accent); min-width: 96px; }
.panel li small { color: var(--muted); margin-left: auto; }
.sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.panel li.ev { cursor: default; color: var(--muted); font-size: 12.5px; }
.panel li.ev .n { color: var(--muted); }
.card a { color: var(--green); }

.dock { position: fixed; left: var(--gap); right: var(--gap); bottom: max(var(--gap), env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; }
.dock > * { pointer-events: auto; }
.next { border-radius: 999px; padding: 6px 14px; font-size: 13px; max-width: 100%; text-align: center; }
.next b { font-weight: 600; }
.next .short { display: none; }
.next .cost { color: var(--muted); }
.next.ready { background: var(--green); color: #fff; border-color: transparent; }
.next.ready .cost { color: rgba(255,255,255,.75); }
/* bara de jos: căsuțe pe toată lățimea; în fiecare, valoarea mare deasupra etichetei ei */
.bar { width: 100%; border-radius: 16px; padding: 10px 14px; display: grid; grid-template-columns: 1.25fr repeat(4, 1fr) auto; align-items: stretch; gap: 0; }
.cell { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 2px 14px; border-left: 1px solid var(--line); }
.cell.block { border-left: 0; padding-left: 4px; }
.cell .val { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.cell .val.tick { color: var(--brass); transition: none; }
.cell .lbl { font-size: 13px; color: var(--text); opacity: .85; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.cell .lbl .ico { display: flex; }
.cell .lbl .ico svg { width: 15px; height: 15px; }
.cell .gain { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell code.gain { font-size: 11px; }
.res { display: contents; }
.meter { height: 6px; background: #ECE6DA; border-radius: 3px; overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; width: 0; border-radius: 3px; transition: width .35s; }
.meter.big { height: 10px; border-radius: 5px; }
.build { border: 0; border-radius: 12px; padding: 11px 14px; background: var(--green); color: #fff; font-weight: 600; white-space: nowrap; }
.build:hover { background: var(--green-2); }
.build.ready { background: var(--brass); color: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(184, 137, 59, 0.25); } }

/* panoul clădirii: desktop în dreapta, telefon de jos */
.card { position: fixed; right: var(--gap); top: calc(var(--top-h, 56px) + 8px); bottom: calc(var(--dock-h, 96px) + 6px); width: min(460px, calc(100vw - 2 * var(--gap))); font-size: 15px;
  border-radius: 16px; padding: 0; overflow: auto; animation: slide .18s ease-out; z-index: 5; }
@keyframes slide { from { opacity: 0; transform: translateX(10px); } }
@keyframes up { from { opacity: 0; transform: translate(-50%, 8px); } }
.card .x { position: absolute; right: 8px; top: 8px; z-index: 2; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 999px;
  width: 34px; height: 34px; font-size: 20px; line-height: 1; color: var(--text); }
.card .pic { background: radial-gradient(ellipse at 50% 75%, rgba(255,255,255,.9), rgba(255,255,255,0) 70%), linear-gradient(#EEF3EF, #F7F4EE);
  display: flex; align-items: flex-end; justify-content: center; padding: 18px 18px 6px; min-height: 160px; }
.card .pic img { width: 100%; max-height: 260px; object-fit: contain; display: block; }
.card .pic.none { background: linear-gradient(135deg, var(--c), #F7F4EE); }
.card .body { padding: 14px 18px 18px; }
.card h2 { margin: 0; font-size: 24px; line-height: 1.2; color: var(--text); }
.card .kind { margin: 3px 0 0; color: var(--accent); font-size: 15px; font-weight: 500; }
.card .where { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.card dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 14px 0; font-size: 15px; }
.card dt { color: var(--muted); }
.card dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.card code { font-size: 12.5px; }
.card a.act { text-align: center; text-decoration: none; margin-top: 10px; }
.votes { display: grid; gap: 5px; }
.vote { display: grid; grid-template-columns: 92px 1fr 36px; gap: 8px; align-items: center; font-size: 12.5px; }
.vote .meter { margin: 0; height: 8px; }
.vote.win { font-weight: 600; }
.vote span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.card p.lead { margin: 10px 0 0; font-size: 15.5px; line-height: 1.45; }
.note { color: var(--muted); font-size: 11px; margin: 10px 0 0; }

.toast { position: fixed; left: 50%; top: calc(var(--top-h, 56px) + 12px); transform: translateX(-50%); border-radius: 999px; padding: 8px 16px;
  white-space: nowrap; max-width: calc(100vw - 20px); overflow: hidden; text-overflow: ellipsis; animation: up .2s ease-out; }

@media (max-width: 760px) {
  .bar { grid-template-columns: repeat(4, 1fr); padding: 8px 6px; row-gap: 6px; }
  .cell { padding: 2px 6px; }
  .cell.block { grid-column: 1 / -1; flex-direction: row; align-items: baseline; gap: 8px; border-left: 0; padding: 0 6px 4px; border-bottom: 1px solid var(--line); }
  .cell.block .lbl { order: -1; }
  .cell.block .gain { margin-left: auto; }
  .res .cell:first-child { border-left: 0; }
  .cell.block .gain { display: none; }
  .cell .val { font-size: 17px; }
  .cell .lbl { font-size: 12px; }
  .cell .lbl .ico { display: none; }
  .cell .gain { font-size: 10.5px; }
  /* telefon: rândul mic de sub cifră pe cel mult două rânduri, fără „…” (926 households, turn 2/24 / next turn ~15 min) */
  .res .cell .gain { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
  .res .cell .gain .sep { display: none; }
  .res .cell .gain span:not(.sep) { display: block; }
  .card { left: 0; right: 0; top: auto; bottom: 0; width: auto; max-height: 62vh; border-radius: 18px 18px 0 0; animation: rise .2s ease-out; }
  @keyframes rise { from { transform: translateY(30px); opacity: 0; } }
  .card .pic { min-height: 120px; padding: 14px 14px 4px; }
  .card .pic img { max-height: 180px; }
    .build { padding: 8px 12px; font-size: 13px; }
  .next { font-size: 12px; border-radius: 12px; padding: 5px 10px; white-space: nowrap; }
  .next .long { display: none; }
  .next .short { display: inline; }
  .chip { padding: 6px 9px; font-size: 13px; }
  .toast { white-space: normal; border-radius: 14px; text-align: center; width: max-content; }
}

/* contul și tabloul jucătorului */
.chip.accent { background: var(--green); color: #fff; border-color: transparent; font-weight: 600; }
.chip.accent:hover { background: var(--green-2); color: #fff; }
.panel.account { width: min(360px, calc(100vw - 2 * var(--gap))); }
.account h4 { margin: 14px 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.account p { margin: 6px 0; font-size: 13px; }
.account .big small { display: block; color: var(--muted); font-size: 12px; }
.account .big b { font-size: 22px; font-variant-numeric: tabular-nums; }
.account .me-sum { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 10px; margin: 4px 0 6px; }
.account .me-sum .big b.pos { color: var(--ok); }
.account .me-sum .big b.neg { color: #B23A2A; }
.account .me-sum .big b { white-space: nowrap; font-size: 20px; }
.account .me-sum .big b span { font-size: 13px; font-weight: 600; margin-left: 3px; }
.account a.act.me-open { text-align: center; text-decoration: none; font-size: 15px; padding: 11px 12px; }
.account .muted, .card .muted { color: var(--muted); }
.small { font-size: 11.5px; }
.act { display: block; width: 100%; margin: 6px 0; padding: 9px 12px; border-radius: 10px; border: 0; background: var(--green); color: #fff; font-weight: 600; text-align: left; }
.act:hover:not(:disabled) { background: var(--green-2); }
.act.alt { background: var(--brass-soft); color: var(--green); }
.act.alt:hover:not(:disabled) { background: #EADCC0; }
.act:disabled { opacity: .45; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--green); padding: 0; text-decoration: underline; }
.account .row, .actions .row { display: flex; gap: 8px; align-items: center; }
.account input, .actions select { flex: 1; background: var(--field); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font: inherit; }
table.mini { width: 100%; border-collapse: collapse; font-size: 13px; }
table.mini td { padding: 3px 0; border-bottom: 1px solid var(--line); }
table.mini .num { text-align: right; font-variant-numeric: tabular-nums; }
table.mini .tot td { font-weight: 700; border-bottom: 0; }
.account ul.list { list-style: none; margin: 0; padding: 0; }
.account ul.list li { padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; display: flex; gap: 8px; align-items: baseline; }
.account ul.list li[data-focus], .clickable { cursor: pointer; }
.account ul.reqs small.done { color: var(--ok); }
.account ul.reqs small.rejected { color: #C0392B; }
.account .foot { margin-top: 14px; text-align: right; }
.card .actions { margin-top: 8px; }
.account .warn { color: #8A5A12; background: #FBF1DC; border-radius: 8px; padding: 8px 10px; }

/* bara laterală: anunțurile live și următorul pas */
.side { position: fixed; left: var(--gap); top: calc(var(--top-h, 56px) + 8px); bottom: calc(var(--dock-h, 96px) + 6px); width: 330px; border-radius: 14px;
  display: flex; flex-direction: column; overflow: hidden; z-index: 4; transition: width .2s; }
.side-head { position: absolute; top: 6px; right: 6px; z-index: 2; display: flex; }
.side-toggle { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; width: 30px; height: 30px; border-radius: 8px; }
.side-toggle:hover { background: var(--hover); color: var(--text); }
.side-toggle .chev { display: inline-block; transition: transform .2s; }
.side-close { display: none; }
.side-body { overflow: auto; padding: 8px 14px 14px; }
.side-body section:first-child h3 { padding-right: 34px; }
.side h3 { margin: 6px 0 10px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.side-feed { margin-top: 16px; }
.side p { margin: 6px 0; font-size: 13.5px; }
.side h5 { margin: 12px 0 4px; font-size: 12px; color: var(--muted); }
.side .progress small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.side ul.list { list-style: none; margin: 0; padding: 0; }
.side ul.list li { padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; border-radius: 6px; }
.side ul.list li:hover, .feed li[data-focus]:hover { background: var(--hover); }
.side ul.list small { color: var(--muted); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; border-top: 1px solid var(--line); font-size: 13px; border-radius: 6px; }
.feed li[data-focus] { cursor: pointer; }
.feed li .sw { margin-top: 3px; }
.feed li div { min-width: 0; flex: 1; }
.feed li small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.feed li.saving b { font-weight: 600; font-size: 13px; }
.feed li.muted { color: var(--muted); }
body.side-collapsed .side { width: 44px; }
body.side-collapsed .side-body { display: none; }
body.side-collapsed .side-toggle .chev { transform: rotate(180deg); }
.sheet-btn { display: none; }

@media (max-width: 760px) {
  .side { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 72vh; border-radius: 18px 18px 0 0; transform: translateY(105%);
    transition: transform .22s ease-out; z-index: 6; }
  body.sheet-open .side { transform: none; }
  body.side-collapsed .side { width: auto; }
  body.side-collapsed .side-body { display: block; }
  .side-toggle { display: none; }
  .side-close { display: block; background: none; border: 0; color: var(--muted); font-size: 24px; padding: 2px 8px; }
  .sheet-btn { display: block; position: fixed; left: var(--gap); bottom: calc(var(--dock-h, 96px) + 8px); z-index: 3; }
}

/* cardul caselor: fiecare casă pe un rând (adresa, starea, butoanele) */
.card h4.units-h { margin: 16px 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.units { list-style: none; margin: 0; padding: 0; }
.units li { padding: 7px 0; border-top: 1px solid var(--line); display: grid; gap: 3px; font-size: 13px; }
.units .addr { font-variant-numeric: tabular-nums; }
.units .st { color: var(--muted); font-size: 12.5px; }
.units .st .sale { color: var(--ok); font-weight: 600; }
.units .st.yours { color: var(--ok); font-weight: 600; }   /* taraba jucătorului: „Yours” */
.units .btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.mini-act { border: 0; border-radius: 8px; padding: 5px 9px; font-size: 12px; font-weight: 600; background: var(--green); color: #fff; }
.mini-act.alt { background: var(--brass-soft); color: var(--green); }
/* motivul unui buton de locuință oprit (home-actions.js): pe rândul lui, sub buton */
.units .btns .btn-why { flex-basis: 100%; margin: 0; font-size: 12px; line-height: 1.35; color: #6d5222; background: var(--brass-soft); border-radius: 6px; padding: 4px 8px; }
.units .btns .btn-hint { flex-basis: 100%; margin: -3px 0 0; font-size: 11.5px; color: var(--muted); padding: 0 8px; }
.units .btns .chosen-home { flex-basis: 100%; font-size: 12px; color: #1E4D3A; background: #E7F0EA; border-radius: 6px; padding: 4px 8px; }
.grant-note { margin: 8px 0 0; font-size: 12.5px; line-height: 1.4; color: #1E4D3A; background: #E7F0EA; border-radius: 8px; padding: 6px 10px; }
.mini-act:disabled { opacity: .45; cursor: not-allowed; }
.account .field { display: grid; gap: 4px; margin: 8px 0 2px; font-size: 13px; }
.account .field input { background: var(--field); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; }
.account .check { display: flex; gap: 8px; align-items: center; margin: 14px 0 4px; font-size: 13px; }

/* lotul comercial liber („Build a business”) și lotul de colț (parc mic) */
.card .pic.none.lot.commercial { background: repeating-linear-gradient(135deg, #EFE7D6 0 14px, #E6DCC6 14px 28px); }
.card .pic.none.lot.corner { background: radial-gradient(ellipse at 50% 60%, #9FD08F, #5E9A5A); }
.units.build li .addr { font-weight: 600; }
.units.build li.off .addr { color: var(--muted); font-weight: 500; }
.units.build li.off small { font-style: italic; }
.account textarea { width: 100%; background: var(--field); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; font: inherit; font-size: 14px; resize: vertical; }
.account .field select { background: var(--field); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; font: inherit; font-size: 14px; }
.units.build small { white-space: normal; overflow-wrap: anywhere; }

/* prețurile: DAG$ și, dedesubt, echivalentul în BDAG */
.dual { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.dual .bdag, small.bdag { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
button small.bdag { color: inherit; opacity: .75; }
dd .dual { align-items: flex-end; }
.dualrow { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.dualrow .dual { align-items: flex-start; }
/* Gold Pages, licitațiile */
.gold-badge { display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--brass); color: #fff; }
.chip.gold { border-color: var(--brass); color: #8A6424; }
.auction dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 8px 0; }
.auction dd { margin: 0; text-align: right; }
.auction input, .actions input[data-bbtext], .actions input[data-bbprice] { width: 100%; background: var(--field); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font: inherit; }
.account ul.list li.loan { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.account ul.list li.loan > span, .account ul.list li.loan > small.muted { grid-column: 1 / -1; }
.list li.loan small.bdag { text-align: right; }
.sale-badge { display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 700; letter-spacing: .03em; padding: 3px 8px; border-radius: 999px; background: var(--green); color: #fff; }

/* /replay: orașul accelerat zi cu zi (panoul de sus) */
.replay { position: fixed; top: calc(var(--top-h, 56px) + 8px); left: 50%; transform: translateX(-50%); z-index: 30; padding: 10px 14px; border-radius: 14px; width: min(980px, calc(100vw - 32px)); display: grid; gap: 8px; }
.replay-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.replay-stats span { display: grid; }
.replay-stats small { opacity: .7; font-size: 11px; }
.replay-stats b { font-size: 15px; }
.replay-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.replay-ctl input[type=range] { flex: 1 1 260px; }
.replay-ctl select { background: var(--field); color: inherit; border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; }
.replay-jumps { display: flex; flex-wrap: wrap; gap: 6px; }
.replay-ctl .act { width: auto; padding: 6px 16px; }

/* insignele de pe profil (Founder, Pioneer, Landlord, Miner) */
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.badge-chip { display: inline-grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: center; padding: 5px 10px 5px 6px; border-radius: 12px; font-size: 12.5px; font-weight: 700;
  background: var(--bg); border: 1px solid var(--line); }
.badge-chip i { grid-row: span 2; font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: #1b1300; }
.badge-chip small { font-weight: 400; color: var(--muted); font-size: 11px; }
.badge-chip.founder i { background: linear-gradient(135deg, #ffe08a, #e8b730); }
.badge-chip.pioneer i { background: linear-gradient(135deg, #a8e6ff, #4aa8e8); }
.badge-chip.landlord i { background: linear-gradient(135deg, #b9f3c8, #45c27a); }
.badge-chip.miner i { background: linear-gradient(135deg, #ffc6a8, #e8743a); }
/* înștiințările Trezoreriei din „My notices”: culoarea după nivel */
.account ul.list.notices li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; border-left: 4px solid #5b9bd5; padding-left: 8px; }
.account ul.list.notices li small { grid-column: 1; color: var(--muted); }
.account ul.list.notices li .mini-act { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-decoration: none; }
.account ul.list.notices li a { color: var(--text); text-decoration: none; }
.account ul.list.notices li code { color: var(--muted); font-size: 11px; }
.account ul.list.notices li.payment { border-left-color: #f2c94c; }
.account ul.list.notices li.final { border-left-color: #f2994a; }
.account ul.list.notices li.auction { border-left-color: #eb5757; }
.account ul.list.notices li.bankruptcy { border-left-color: #9b51e0; }
.account ul.list.notices li.done { opacity: .6; }
.account ul.list li.loan small.warn { grid-column: 1 / -1; padding: 4px 8px; }

/* cardul clădirii / afacerii: text mai mare (rândurile locuințelor, butoanele, notele, prețurile în BDAG) */
.card .act { font-size: 15px; padding: 11px 14px; }
.card .units li { font-size: 14.5px; gap: 4px; padding: 9px 0; }
.card .units .st { font-size: 14px; }
.card .mini-act { font-size: 13.5px; padding: 7px 11px; }
.card .note, .card .small { font-size: 13px; }
.card .dual .bdag, .card small.bdag { font-size: 12.5px; }
.card .muted { font-size: inherit; }
.card small { font-size: 13px; }
.card .gold-badge, .card .sale-badge { font-size: 12px; }
.tg-code { font-size: 22px; letter-spacing: .2em; color: var(--green); }
.units .rent-limit { color: #8A5A12; font-size: 12.5px; }

/* după login: pașii următori și linia wallet-ului (opțional în testul închis) */
#account-body .next-steps { margin: 4px 0 10px; padding-left: 20px; font-size: 14px; line-height: 1.45; }
#account-body .next-steps li { margin: 4px 0; }
#account-body .wallet-later { margin-top: 10px; }
#account-body .wallet-later .link { font-weight: 600; }
#account-body ol.next-steps { counter-reset: step; padding-left: 0; list-style: none; }
#account-body ol.next-steps li { position: relative; padding: 6px 0 6px 30px; list-style: none; }
#account-body ol.next-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 7px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }

/* motivul pentru care butoanele sunt oprite (de ex. „You are moving in…”, rezidența): vizibil, nu doar în tooltip */
.block-reason { margin: 8px 0 4px; padding: 8px 10px; border-radius: 10px; background: #FBF1DC; color: #7A5A12; font-size: 13px; line-height: 1.4; }
/* câmpul poreclei: pasul 1, bine vizibil */
#account-body .nick-field span { font-weight: 700; color: var(--text); font-size: 14px; }
#account-body .nick-field input { border: 2px solid var(--green); border-radius: 10px; padding: 11px 12px; font-size: 16px; background: #fff; box-shadow: 0 0 0 4px rgba(30, 77, 58, .08); }
#account-body .nick-field input:focus { outline: none; box-shadow: 0 0 0 4px rgba(30, 77, 58, .25); }
#account-body .nick-field input::placeholder { color: #8A938D; }
.account .check input { flex: none; width: auto; margin: 0; }

/* ——— bara de joc (culorile DAGCity Realty) ———
   desktop (≥ 900 px): bară de 56 px sus, pe toată lățimea: logo + ziua/tura/ora, taburile, Help ▾ și pastila jucătorului;
   telefon: logo-ul cu ziua sus în stânga, pastila sus în dreapta, taburile în dock-ul de jos (Help: foaie de jos) */
.gbar { --cream: #F7F4EE; --gold: #B8893B; position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: calc(56px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 16px 0; display: flex; align-items: center; gap: 14px;
  background: rgba(23, 59, 45, .94); color: var(--cream); box-shadow: 0 1px 0 rgba(0,0,0,.18), 0 4px 14px rgba(0,0,0,.16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gbar svg, .mdock svg, .help-sheet svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gbar :focus-visible, .mdock :focus-visible, .help-sheet :focus-visible { outline: 2px solid var(--gold, #B8893B); outline-offset: 2px; }
.gb-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 auto; }
.gb-logo { display: block; width: 34px; height: 34px; border-radius: 8px; flex: none; }
.gb-logo svg { width: 34px; height: 34px; stroke: none; display: block; }
.gb-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.gb-name b { font-size: 16px; font-weight: 700; letter-spacing: .2px; }
.gb-status { font-size: 11.5px; color: rgba(247, 244, 238, .72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.gb-status > span:empty { display: none; }
.gb-status > #gb-turn::before, .gb-status > .gb-time::before { content: '·'; margin: 0 5px; }
.gb-time { background: none; border: 0; padding: 0; color: inherit; font: inherit; border-radius: 4px; }
.gb-time:hover { color: var(--cream); text-decoration: underline dotted; }
.gb-tabs { flex: 1 1 auto; display: flex; justify-content: center; align-self: stretch; gap: 2px; min-width: 0; }
.gb-tab { display: flex; align-items: center; gap: 8px; padding: 0 14px; color: rgba(247, 244, 238, .8); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap;
  border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
.gb-tab:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.gb-tab[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }
.gb-tab:focus-visible { outline-offset: -3px; }
.gb-right { display: flex; align-items: center; gap: 10px; flex: none; }
.gb-help { position: relative; }
.gb-helpbtn { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid rgba(247, 244, 238, .25);
  background: transparent; color: var(--cream); font-weight: 500; }
.gb-helpbtn:hover, .gb-helpbtn[aria-expanded="true"] { background: rgba(255, 255, 255, .08); border-color: rgba(184, 137, 59, .7); }
.gb-helpbtn .gb-caret { width: 15px; height: 15px; transition: transform .15s; }
.gb-helpbtn[aria-expanded="true"] .gb-caret { transform: rotate(180deg); }
.gb-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; border-radius: 12px; background: #fff; color: var(--text);
  border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(23, 59, 45, .22); }
.gb-menu a, .gb-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none;
  color: var(--text); text-decoration: none; font-size: 14px; text-align: left; }
.gb-menu a svg, .gb-menu button svg { color: var(--green); }
.gb-menu a:hover, .gb-menu button:hover { background: var(--brass-soft); color: var(--green); }
.gb-menu :focus-visible { outline-offset: -2px; }
.gb-menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
/* comutatoarele „Pedestrians” / „Traffic” (meniul Help și foaia Help): un întrerupător mic în dreapta */
[data-life]::after { content: ""; flex: none; margin-left: auto; width: 30px; height: 18px; border-radius: 9px;
  background: #D6CFBF radial-gradient(circle at 9px 9px, #fff 6px, transparent 6.5px); transition: background-color .15s; }
[data-life][aria-checked="true"]::after { background: var(--green, #1E4D3A) radial-gradient(circle at 21px 9px, #fff 6px, transparent 6.5px); }
[data-life][hidden], hr[hidden] { display: none !important; }
.gb-pill { display: flex; align-items: center; gap: 9px; height: 42px; max-width: 230px; padding: 3px 14px 3px 3px; border-radius: 999px;
  border: 1px solid rgba(184, 137, 59, .65); background: rgba(247, 244, 238, .08); color: var(--cream); text-align: left; }
.gb-pill:hover { background: rgba(247, 244, 238, .16); }
.gb-pill .pi-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #0E2219; font-weight: 700; font-size: 13px; letter-spacing: .3px; }
.gb-pill .pi-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.gb-pill .pi-name { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-pill .pi-bal { font-size: 11.5px; color: #E6C789; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gb-pill .pi-bal .s { display: none; }
.gb-pill.signin { padding: 0 18px; background: var(--gold); border-color: var(--gold); color: #0E2219; font-weight: 700; }   /* textul verde foarte închis pe auriu: 5,3:1 (WCAG AA); era #173B2D, 3,9:1 */
.gb-pill.signin:hover { background: #C99A4A; }
.mdock { display: none; }
.help-sheet { display: none; }
@media (max-width: 1100px) {
  .gbar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .gb-brand { flex: none; }
  .gb-tab { padding: 0 8px; gap: 6px; font-size: 13.5px; }
  .gb-pill { max-width: 170px; }
}
/* 900–1040 px: pastila arată doar inițialele și soldul (numele rămâne în eticheta butonului) */
@media (min-width: 900px) and (max-width: 1040px) {
  .gb-tabs { gap: 0; }
  .gb-tab { padding: 0 6px; }
  .gb-helpbtn { padding: 0 6px 0 8px; }
  .gb-pill .pi-name { display: none; }
  .gb-pill { padding-right: 10px; }
}

@media (max-width: 899.98px) {
  .gbar { height: auto; padding: max(8px, env(safe-area-inset-top)) var(--gap) 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    justify-content: space-between; align-items: flex-start; pointer-events: none; }
  .gbar > * { pointer-events: auto; }
  .gb-tabs, .gb-help { display: none; }
  .gb-brand { gap: 7px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(23, 59, 45, .94); box-shadow: var(--shadow); min-height: 40px; }
  .gb-logo, .gb-logo svg { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; }
  .gb-logo svg rect { rx: 15px; }
  .gb-name b, .gb-status > .gb-time { display: none; }
  .gb-status { font-size: 12px; color: var(--cream); font-weight: 500; }
  .gb-pill { height: 40px; max-width: 168px; padding-right: 12px; gap: 7px; background: rgba(23, 59, 45, .94); box-shadow: var(--shadow); }
  .gb-pill .pi-av { width: 32px; height: 32px; font-size: 12px; }
  .gb-pill .pi-name { font-size: 12.5px; max-width: 84px; }
  .gb-pill .pi-bal { font-size: 12px; font-weight: 600; color: #FFE3A3; }
  /* pe telefon atingerea lasă „hover” activ: pastila rămâne verde închis, ca soldul să se citească pe orice fundal al hărții */
  .gb-pill:hover { background: rgba(23, 59, 45, .94); }
  .gb-pill .pi-bal .l { display: none; }
  .gb-pill .pi-bal .s { display: inline; }
  .gb-pill.signin { padding: 0 16px; background: var(--gold); }
  .mdock { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; width: 100%; max-width: 520px; padding: 4px; border-radius: 16px;
    background: #F7F4EE; border: 1px solid var(--line); box-shadow: var(--shadow); }
  .mdock a, .mdock button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 48px; min-width: 0; padding: 4px 2px;
    border: 0; border-radius: 12px; background: none; color: var(--green); text-decoration: none; font-size: 11px; font-weight: 600; line-height: 1.1; text-align: center; letter-spacing: -.1px; }
  @media (max-width: 380px) { .mdock a, .mdock button { font-size: 10.5px; } }
  .mdock span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mdock svg { width: 21px; height: 21px; }
  .mdock a:hover, .mdock button:hover { background: rgba(30, 77, 58, .08); }
  .mdock [aria-current="page"], .mdock [aria-current="page"]:hover, .mdock button[aria-expanded="true"] { background: var(--green); color: #fff; }
  .help-sheet[open] { display: block; position: fixed; inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: 520px; max-height: 80vh; overflow: auto; border: 0;
    border-radius: 18px 18px 0 0; padding: 8px 16px max(16px, env(safe-area-inset-bottom)); background: #F7F4EE; color: var(--text); box-shadow: 0 -8px 30px rgba(0,0,0,.25);
    animation: rise .2s ease-out; }
  .help-sheet::backdrop { background: rgba(16, 22, 40, .45); }
  .help-sheet .hs-grip { width: 40px; height: 4px; border-radius: 2px; background: #D6CFBF; margin: 2px auto 10px; }
  .help-sheet h3 { margin: 0 4px 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
  .help-sheet a, .help-sheet button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 0 12px; border: 0; border-top: 1px solid var(--line);
    background: none; color: var(--text); text-decoration: none; font-size: 15.5px; text-align: left; }
  .help-sheet a svg, .help-sheet button svg { width: 20px; height: 20px; color: var(--green); }
  .help-sheet .hs-close { justify-content: center; margin-top: 8px; border: 0; border-radius: 12px; background: var(--green); color: #fff; font-weight: 600; }
  @keyframes rise { from { transform: translateY(30px); opacity: 0; } }
}
/* cardul unei afaceri: nota despre clienți / prag (public/js/bizinfo.js) */
.bz-note { display: flex; gap: 8px; align-items: flex-start; }
.bz-ic { flex: none; display: inline-grid; place-items: center; width: 17px; height: 17px; margin-top: 1px; border-radius: 50%; border: 1px solid currentColor; font: italic 600 11px/1 Georgia, serif; }

/* ——— căutarea („Find a resident or business”) ———
   desktop: câmpul în bara de sus, rezultatele într-un panou dedesubt; telefon: lupa (pastilă verde) deschide căutarea pe tot ecranul */
.gb-search { position: relative; }
.gs-open { display: none; }
.gs-bar { display: flex; align-items: center; gap: 6px; height: 38px; width: 250px; padding: 0 6px 0 10px; border-radius: 10px;
  border: 1px solid rgba(247, 244, 238, .25); background: rgba(247, 244, 238, .08); color: var(--cream); }
.gs-bar:focus-within { border-color: rgba(184, 137, 59, .9); background: rgba(247, 244, 238, .14); }
.gbar .gs-ico { width: 16px; height: 16px; opacity: .8; }
.gs-bar input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; outline: none; }
.gs-bar input::placeholder { color: rgba(247, 244, 238, .7); }
.gs-bar input::-webkit-search-cancel-button { display: none; }
.gbar .gs-bar :focus-visible { outline: none; }
.gs-close { display: none; }
.gs-res { position: absolute; right: 0; top: calc(100% + 8px); width: 400px; max-height: min(70vh, 560px); overflow: auto; padding: 6px 8px 8px; border-radius: 12px;
  background: #fff; color: var(--text); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(23, 59, 45, .22); }
.gs-h { margin: 8px 6px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted, #6b6b6b); }
.gs-person { padding: 6px; border-top: 1px solid var(--line); }
.gs-person:first-of-type { border-top: 0; }
.gs-ph { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 2px 4px 4px; }
.gs-ph b { font-size: 15px; color: var(--green); }
.gs-badge { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: #F5E9CF; color: #6E4B12; }
.gs-card { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--green); }
.gs-item { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; width: 100%; padding: 7px 8px; border: 0; border-radius: 8px; background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.gs-item:hover, .gs-item:focus-visible { background: var(--brass-soft, #F3ECDD); outline: none; }
.gs-k { grid-row: span 2; align-self: start; min-width: 64px; margin-top: 1px; font-size: 11.5px; font-weight: 600; color: var(--muted, #6b6b6b); }
.gs-t { font-size: 14px; font-weight: 600; }
.gs-a { font-size: 13px; color: var(--muted, #6b6b6b); }
.gs-empty, .gs-none { margin: 10px 8px; font-size: 13.5px; color: var(--muted, #6b6b6b); }
@media (max-width: 1100px) { .gs-bar { width: 200px; } }
@media (min-width: 900px) and (max-width: 1040px) { .gs-bar { width: 160px; } }
@media (max-width: 899.98px) {
  .gb-right { gap: 8px; }
  .gs-open { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(184, 137, 59, .65);
    background: rgba(23, 59, 45, .94); color: var(--cream); box-shadow: var(--shadow); }
  .gs-open svg { width: 19px; height: 19px; }
  .gs-bar, .gs-res { display: none; }
  /* deschisă: tot ecranul, câmpul sus, rezultatele dedesubt */
  .gb-search.open { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; background: #F7F4EE; color: var(--text);
    padding: max(10px, env(safe-area-inset-top)) 16px env(safe-area-inset-bottom); }
  .gb-search.open .gs-open { display: none; }
  .gb-search.open .gs-bar { display: flex; width: 100%; height: 46px; flex: none; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--text); padding-right: 4px; }
  .gb-search.open .gs-bar input { font-size: 16px; }
  .gb-search.open .gs-bar input::placeholder { color: #6b6b6b; }
  .gb-search.open .gs-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: var(--green); font-size: 26px; line-height: 1; }
  .gb-search.open .gs-res:not([hidden]) { display: block; position: static; width: auto; max-height: none; flex: 1 1 auto; margin-top: 10px; overflow: auto; box-shadow: none; }
  body.gs-lock { overflow: hidden; }
}
