/* ============================================================
   Yieldestate City — canvas-page overrides
   ============================================================ */

.city-body{
  overflow:hidden;
  height:100vh;height:100dvh;
  background:#f6f7fb;
}

/* Full-screen canvas */
#city-canvas{
  position:fixed;inset:0;z-index:1;display:block;touch-action:none;
  background:transparent;
}

/* Hide the global cosmos blobs on the city page so the canvas reads cleanly */
.city-body .cosmos::before,
.city-body .cosmos::after,
.city-body .cosmos > .aurora-3{display:none}
.city-body .cosmos{
  background:
    radial-gradient(80% 60% at 50% 0%, #f8faff 0%, transparent 60%),
    radial-gradient(80% 80% at 50% 100%, #eef1f8 0%, transparent 60%),
    #f6f7fb;
}
.city-body .cosmos-grain{opacity:.10}

/* Title card (top-left) */
.city-title{
  position:fixed;top:96px;left:24px;z-index:10;
  padding:20px 24px;border-radius:22px;max-width:360px;
  background:rgba(255,255,255,.7);
}
.city-title .eyebrow{margin-bottom:12px}
.city-title h1{
  margin:0;font-size:34px;line-height:1;letter-spacing:-.025em;font-weight:700;color:var(--ink);
}
.city-title h1 em{font-style:italic;color:var(--navy)}
.city-title p{margin:10px 0 0;color:var(--ink-2);font-size:13.5px;line-height:1.55}

/* Live totals strip (bottom) */
.city-totals{
  position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:10;
  display:flex;gap:0;padding:12px 4px;border-radius:999px;
  background:rgba(255,255,255,.75);
  align-items:center;
}
.city-totals .t{
  display:flex;flex-direction:column;gap:2px;padding:4px 22px;
  border-right:1px solid rgba(10,10,10,.08);
  min-width:96px;
}
.city-totals .t:last-child{border-right:0}
.city-totals .t .k{font-family:'JetBrains Mono',monospace;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3)}
.city-totals .t .v{font-size:15px;font-weight:600;color:var(--ink)}
.city-totals .t .v.mono{font-family:'JetBrains Mono',monospace;font-size:13px;font-weight:500}

/* Controls (bottom-right vertical stack) */
.city-controls{
  position:fixed;right:24px;bottom:24px;z-index:10;
  display:flex;flex-direction:column;gap:8px;
}
.city-controls .ctrl{
  width:42px;height:42px;border-radius:14px;
  display:grid;place-items:center;
  background:rgba(255,255,255,.75);
  color:var(--ink);font-size:18px;font-weight:600;cursor:pointer;
  border:1px solid rgba(10,10,10,.08);
  transition:transform .2s var(--ease),background .25s var(--ease);
}
.city-controls .ctrl:hover{transform:translateY(-1px);background:rgba(255,255,255,.92)}
.city-controls .ctrl:active{transform:translateY(0)}

/* Mini-map (top-right) */
.city-minimap{
  position:fixed;top:96px;right:24px;z-index:10;
  width:160px;height:160px;border-radius:18px;
  background:rgba(255,255,255,.7);
  padding:0;overflow:hidden;cursor:crosshair;
}
.city-minimap canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.city-minimap .minimap-view{
  position:absolute;border:1.5px solid var(--navy);background:rgba(20,33,61,.08);
  pointer-events:none;border-radius:3px;
}

/* Side panel (slides from right) */
.city-panel{
  position:fixed;top:96px;right:24px;z-index:20;
  width:min(380px, calc(100vw - 48px));
  max-height:calc(100vh - 144px);max-height:calc(100dvh - 144px);
  padding:0;border-radius:24px;overflow:hidden;
  background:rgba(255,255,255,.85);
  display:flex;flex-direction:column;
  transform:translateX(calc(100% + 48px));opacity:0;
  transition:transform .45s var(--spring),opacity .35s var(--ease);
  pointer-events:none;
}
.city-panel.in{transform:translateX(0);opacity:1;pointer-events:auto}

.panel-close{
  position:absolute;top:14px;right:14px;z-index:5;
  width:32px;height:32px;border-radius:50%;
  background:rgba(10,10,10,.06);color:var(--ink-2);font-size:20px;line-height:1;
  display:grid;place-items:center;cursor:pointer;
  transition:background .2s var(--ease),color .2s var(--ease);
}
.panel-close:hover{background:var(--navy);color:#fff}

.panel-head{padding:28px 28px 20px;border-bottom:1px solid rgba(10,10,10,.08)}
.panel-badge{
  display:inline-block;padding:4px 10px;border-radius:999px;font-family:'JetBrains Mono',monospace;
  font-size:10px;letter-spacing:.18em;font-weight:700;margin-bottom:12px;
}
.panel-badge.st-owned{background:var(--navy);color:#fff}
.panel-badge.st-pending{background:rgba(10,10,10,.08);color:var(--ink-2)}
.panel-badge.st-avail{background:rgba(255,255,255,.7);color:var(--ink-3);border:1px solid rgba(10,10,10,.12)}
.panel-head h3{
  margin:0;font-size:30px;font-weight:700;letter-spacing:-.02em;color:var(--ink);
  font-family:'JetBrains Mono',monospace;
}
.panel-loc{margin-top:6px;color:var(--ink-2);font-size:14px;letter-spacing:-.005em}

.panel-body{padding:12px 28px;overflow-y:auto;flex:1}
.panel-body .row{
  display:flex;justify-content:space-between;align-items:center;
  padding:14px 0;border-bottom:1px solid rgba(10,10,10,.06);
}
.panel-body .row:last-child{border-bottom:0}
.panel-body .row .k{color:var(--ink-3);font-size:13px}
.panel-body .row .v{color:var(--ink);font-size:14px;font-weight:500}
.panel-body .row .v.tabular{font-variant-numeric:tabular-nums}
.panel-body .row .v.mono{font-family:'JetBrains Mono',monospace;font-size:12.5px}

.panel-foot{
  padding:18px 28px 24px;border-top:1px solid rgba(10,10,10,.08);
  display:flex;flex-direction:column;gap:10px;
}
.panel-foot .btn{justify-content:center}
.panel-foot .muted-note{font-size:11px;color:var(--ink-3);text-align:center;font-family:'JetBrains Mono',monospace;letter-spacing:.04em}

/* Mobile */
@media (max-width:760px){
  .city-title{top:88px;left:12px;right:12px;max-width:none;padding:14px 16px}
  .city-title h1{font-size:24px}
  .city-title p{font-size:12px}
  .city-minimap{display:none}
  .city-totals{
    flex-wrap:wrap;justify-content:center;border-radius:18px;padding:8px 12px;
    left:12px;right:12px;transform:none;width:auto;
  }
  .city-totals .t{padding:4px 12px;min-width:0}
  .city-panel{top:auto;bottom:88px;right:12px;left:12px;width:auto;max-height:50vh}
  .city-controls{right:12px;bottom:auto;top:160px}
}
