/* ============================================================================
   landlord-clicker.css — "Paint Over It"
   A DOM-based idle/clicker. The shared shell (game-shell.css) owns the header,
   top banner, side rails, overlays, game-over card and push bar. Everything
   below styles the in-#game-wrap app + the slide-up panels + the request modal.
   ============================================================================ */

/* This game has no <canvas>; undo the pixelated rule just in case + give the
   stage a warm, peeling-paint backdrop. */
#game-wrap { background: radial-gradient(circle at 50% 18%, #1a130c, var(--bg) 62%); }

/* ── APP SHELL ─────────────────────────────────────────────────────────────── */
.lc-app {
  width: min(440px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px 12px;
  font-family: var(--fn);
  user-select: none;
  -webkit-user-select: none;
}

/* ── TOP BAR ───────────────────────────────────────────────────────────────── */
.lc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.lc-top-cash { display: flex; flex-direction: column; line-height: 1.05; }
.lc-cash { font-family: var(--fm); font-weight: 500; font-size: 30px; color: var(--am); letter-spacing: -.5px; }
.lc-rate { font-family: var(--fm); font-size: 12px; color: var(--gn); }
.lc-top-date { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
#lc-date { font-family: var(--ff); font-size: 12px; color: var(--mu); letter-spacing: .5px; }
.lc-risk-pill {
  font-family: var(--ff); font-size: 11px; font-weight: 600; letter-spacing: .5px;
  padding: 2px 9px; border-radius: 999px;
  background: rgba(0,230,118,.12); color: var(--gn); border: 1px solid rgba(0,230,118,.3);
}
.lc-risk-pill.med  { background: rgba(255,184,0,.12); color: var(--am); border-color: rgba(255,184,0,.35); }
.lc-risk-pill.high { background: var(--acd); color: var(--ac); border-color: var(--ac); }

/* ── METERS ────────────────────────────────────────────────────────────────── */
.lc-meters { display: flex; flex-direction: column; gap: 5px; }
.lc-meter-lbl { display: flex; justify-content: space-between; font-size: 11px; color: var(--mu); margin-bottom: 2px; letter-spacing: .3px; }
.lc-meter-lbl b { font-family: var(--fm); color: var(--tx); font-weight: 500; }
.lc-bar { height: 7px; background: #15161d; border: 1px solid var(--bd); border-radius: 999px; overflow: hidden; }
.lc-bar i { display: block; height: 100%; border-radius: 999px; transition: width .35s ease, background .35s ease; }
.lc-bar-cond { background: linear-gradient(90deg,#7a4a1f,#4ade80); }
.lc-bar-pat  { background: linear-gradient(90deg,#7a1f1f,#4d9eff); }
.lc-bar-risk { background: linear-gradient(90deg,#2a5a2a,#C0001A); }

/* ── STAGE (the building) ──────────────────────────────────────────────────── */
.lc-stage { position: relative; flex: 1; min-height: 150px; display: flex; align-items: center; justify-content: center; }
.lc-building {
  position: relative; cursor: pointer; text-align: center;
  padding: 18px 30px; border-radius: var(--rl);
  transition: transform .06s ease;
}
.lc-building:active { transform: scale(.94); }
.lc-bld-art { font-size: clamp(72px, 22vw, 120px); line-height: 1; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.lc-bld-units { font-family: var(--ff); font-size: 13px; color: var(--tx); margin-top: 6px; letter-spacing: .5px; }
.lc-tap-hint { font-size: 10px; color: var(--su); margin-top: 2px; letter-spacing: 1px; text-transform: uppercase; }
.lc-building.deteriorating .lc-bld-art { animation: lc-shudder 2.6s ease-in-out infinite; }
@keyframes lc-shudder { 0%,92%,100%{transform:translateX(0)} 94%{transform:translateX(-2px) rotate(-1deg)} 96%{transform:translateX(2px) rotate(1deg)} 98%{transform:translateX(-1px)} }

/* floating +$ texts */
.lc-floaters { position: absolute; inset: 0; pointer-events: none; }
.lc-float { position: absolute; font-family: var(--fm); font-weight: 500; font-size: 18px; color: var(--am); animation: lc-rise 0.9s ease-out forwards; }
.lc-float.red { color: var(--ac); }
@keyframes lc-rise { from{transform:translateY(0);opacity:1} to{transform:translateY(-60px);opacity:0} }

/* Darren */
.lc-darren { position: absolute; left: 4px; bottom: 0; display: flex; align-items: flex-end; gap: 6px; max-width: 70%; pointer-events: none; }
.lc-darren-face { font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.lc-darren-bubble {
  background: var(--s2); border: 1px solid var(--bd); border-radius: 10px;
  padding: 6px 10px; font-size: 11px; color: var(--mu); font-style: italic; line-height: 1.3;
  max-width: 220px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s;
}
.lc-darren-bubble.show { opacity: 1; transform: translateY(0); }

/* Inspector toast */
.lc-inspector {
  position: absolute; top: 4px; right: 4px; display: none;
  font-family: var(--fm); font-size: 15px; color: #fff;
  background: var(--ac); border: 1px solid #ff4d63; border-radius: 8px;
  padding: 5px 10px; box-shadow: 0 0 16px var(--glow1); animation: lc-pulse 1s infinite;
}
.lc-inspector.show { display: block; }
@keyframes lc-pulse { 0%,100%{box-shadow:0 0 8px var(--glow1)} 50%{box-shadow:0 0 22px var(--glow0)} }

/* ── BOTTOM CONTROLS ───────────────────────────────────────────────────────── */
.lc-controls { display: flex; gap: 8px; }
.lc-ctl {
  position: relative; flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-family: var(--ff); font-weight: 600; font-size: 13px; letter-spacing: .3px;
  padding: 10px 4px; border-radius: var(--r);
  background: var(--s1); border: 1px solid var(--bd); color: var(--tx);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.lc-ctl small { font-family: var(--fm); font-size: 11px; color: var(--am); font-weight: 400; }
.lc-ctl:hover:not(:disabled) { border-color: var(--bdb); }
.lc-ctl:disabled { opacity: .45; }
.lc-ctl.affordable { border-color: var(--ac); box-shadow: 0 0 10px var(--glow2); }
.lc-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
  font-family: var(--fm); font-size: 11px; color: #fff;
  background: var(--ac); border-radius: 999px;
}
.lc-ctl.flash { animation: lc-flash .5s ease; }
@keyframes lc-flash { 0%,100%{box-shadow:none} 50%{box-shadow:0 0 0 2px var(--ac), 0 0 18px var(--glow0)} }

/* ── SLIDE-UP PANELS (units / upgrades / inbox) ────────────────────────────── */
.lc-panel {
  display: none;
  position: fixed; inset: 0; z-index: 900;
  align-items: flex-end; justify-content: center;
  background: rgba(11,12,15,.72); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.lc-panel.active { display: flex; }
.lc-panel-inner {
  width: 100%; max-width: 440px; max-height: 78vh; display: flex; flex-direction: column;
  background: var(--s1); border: 1px solid var(--bd); border-bottom: none;
  border-radius: var(--rl) var(--rl) 0 0; padding: 16px 16px 22px;
  animation: lc-slideup .22s ease;
}
@keyframes lc-slideup { from{transform:translateY(40px);opacity:.4} to{transform:translateY(0);opacity:1} }
.lc-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.lc-panel-head h3 { font-family: var(--fc); font-weight: 700; font-size: 22px; color: var(--tx); }
.lc-x { font-size: 16px; color: var(--mu); width: 30px; height: 30px; border-radius: var(--r); }
.lc-x:hover { color: var(--tx); background: var(--s3); }
.lc-panel-sub { font-size: 12px; color: var(--mu); margin-bottom: 12px; }
.lc-list { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; -webkit-overflow-scrolling: touch; }

/* store rows (units + upgrades) */
.lc-row {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 11px 12px; border-radius: var(--r);
  background: var(--s2); border: 1px solid var(--bd); width: 100%;
}
.lc-row:disabled { opacity: .5; }
.lc-row.affordable { border-color: var(--bdb); }
.lc-row-ico { font-size: 26px; line-height: 1; flex-shrink: 0; }
.lc-row-main { flex: 1; min-width: 0; }
.lc-row-nm { font-family: var(--ff); font-weight: 600; font-size: 14px; color: var(--tx); display: flex; gap: 8px; align-items: baseline; }
.lc-row-nm .lc-owned { font-family: var(--fm); font-size: 11px; color: var(--mu); font-weight: 400; }
.lc-row-desc { font-size: 11px; color: var(--mu); font-style: italic; line-height: 1.35; margin-top: 2px; }
.lc-row-meta { font-family: var(--fm); font-size: 11px; color: var(--gn); margin-top: 3px; }
.lc-row-cost { font-family: var(--fm); font-size: 14px; color: var(--am); flex-shrink: 0; text-align: right; }
.lc-row.owned-upg { border-color: rgba(0,230,118,.3); }
.lc-row.owned-upg .lc-row-cost { color: var(--gn); font-size: 12px; }

/* inbox rows */
.lc-inbox-row {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 10px 12px; border-radius: var(--r);
  background: var(--s2); border: 1px solid var(--bd); width: 100%;
}
.lc-inbox-row.sev-high { border-color: var(--ac); }
.lc-inbox-row .lc-ib-sev { font-size: 18px; }
.lc-inbox-row .lc-ib-txt { flex: 1; font-size: 12px; color: var(--tx); font-style: italic; }
.lc-inbox-row .lc-ib-age { font-family: var(--fm); font-size: 11px; color: var(--mu); }
.lc-inbox-empty { text-align: center; color: var(--su); font-size: 12px; padding: 20px; }

/* ── REQUEST MODAL ─────────────────────────────────────────────────────────── */
.lc-req-inner { max-width: 360px; }
.lc-req-from { font-family: var(--ff); font-size: 12px; color: var(--mu); letter-spacing: .5px; }
.lc-req-sev { font-family: var(--ff); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin: 2px 0 12px; }
.lc-req-sev.low  { color: var(--gn); }
.lc-req-sev.med  { color: var(--am); }
.lc-req-sev.high { color: var(--ac); }
.lc-req-text { font-family: var(--fc); font-weight: 600; font-size: 21px; color: var(--tx); line-height: 1.25; margin-bottom: 18px; }
.lc-req-choices { display: flex; gap: 8px; }
.lc-choice {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-family: var(--ff); font-weight: 600; font-size: 14px; letter-spacing: .5px;
  padding: 13px 6px; border-radius: var(--r); border: 1px solid var(--bd); color: var(--tx);
}
.lc-choice small { font-family: var(--fm); font-size: 11px; font-weight: 400; opacity: .85; }
.lc-fix   { background: rgba(0,230,118,.1);  border-color: rgba(0,230,118,.35); }
.lc-fix:hover:not(:disabled){ box-shadow: 0 0 12px rgba(0,230,118,.25); }
.lc-fix:disabled { opacity: .4; }
.lc-patch { background: rgba(255,184,0,.1);  border-color: rgba(255,184,0,.35); }
.lc-patch:hover:not(:disabled){ box-shadow: 0 0 12px rgba(255,184,0,.25); }
.lc-patch:disabled { opacity: .4; }
.lc-blame { background: var(--acd); border-color: var(--ac); }
.lc-blame:hover { box-shadow: 0 0 12px var(--glow1); }
.lc-req-blameline { font-size: 12px; color: var(--su); font-style: italic; margin-top: 12px; min-height: 16px; }

/* ── MILESTONE CARD ────────────────────────────────────────────────────────── */
.lc-ms-title { font-family: var(--fc); font-weight: 700; font-size: 30px; letter-spacing: 1px; color: var(--am); text-shadow: 0 0 18px rgba(255,184,0,.3); margin-bottom: 2px; }
.lc-ms-sub { font-family: var(--ff); font-size: 12px; color: var(--mu); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }

/* tighten game-over flavor list spacing reuse already styled in shell */
