/* econ.css — E11 economy chrome: wallet chips, walk-bar buttons, results strip, pin bar.
   Part of The Ten Towers (E11 economy). Loaded after css/zh.css.
   See brain/plans/E11-economy.md §4.2 and §5 (Agent A, EC1). */

/* ── wallet chips in the top header (#sSh, #sTok, #sStar go after the DAY RUN .stat) ──
   compact: number + glyph; the word only shows on wide screens so the header stays one row at 800px */
.stat#sSh b{color:#FFD27A}
.stat#sTok b{color:#9CEBD0}
.stat#sStar b{color:#FF8FD0}
.stat#sStar.over b{text-shadow:0 0 14px rgba(255,143,208,.6)}
.ec-stat{gap:3px}
.ec-stat .ec-ic{font-style:normal;font-size:13px}
.ec-stat .ec-w{margin-left:3px}
@media (max-width:900px){.ec-stat .ec-w{display:none}}
@media (max-width:420px){.ec-stat b{font-size:15px}}

/* ── walk-bar buttons (Market, Arcade, Wish, Loft) — share the .wbtn look, smaller ── */
.wbar .wbtn.market{background:linear-gradient(145deg,#3a2a18,#1c1822);color:#FFD27A;border-color:rgba(255,210,122,.4)}
.wbar .wbtn.arcade{background:linear-gradient(145deg,#1c2a3a,#101a26);color:#9CEBD0;border-color:rgba(156,235,208,.4)}
.wbar .wbtn.wish  {background:linear-gradient(145deg,#3a1830,#22111e);color:#FF8FD0;border-color:rgba(255,143,208,.4)}
.wbar .wbtn.loft  {background:linear-gradient(145deg,#1c2a26,#0e1c1c);color:#B8E89C;border-color:rgba(184,232,156,.4)}
/* the bar now holds ~10 buttons (ours + e4/e6/e7's). Wide screens: wrap, but never under the
   quest panel (right 14px, ≤300px wide). Every .wbtn keeps its 44px tap height and never squashes. */
.wbar{display:flex;flex-wrap:wrap;gap:6px;right:min(330px,calc(52vw + 28px))}
.wbar .wbtn{padding:6px 12px;font-size:13px;border-radius:14px;min-height:44px;flex-shrink:0;white-space:nowrap}
.wbar .wbtn.big{font-size:14px}
/* phones: one horizontally-scrolling row across the top, the quest panel tucked under it */
@media (max-width:620px){
  .wbar,.city3d.walking .wbar{left:0;right:0;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;
    padding:0 14px 4px;scroll-snap-type:x proximity;scroll-padding:0 14px;scrollbar-width:none;
    -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;
    -webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
  .wbar::-webkit-scrollbar{display:none}
  .wbar .wbtn{scroll-snap-align:start;padding:6px 11px}
  .wbar>*:last-child{margin-right:14px}
  .wquests{top:66px}
  .city3d.walking .wquests{top:calc(max(14px,env(safe-area-inset-top)) + 54px)}
  .city3d.walking .wtip{top:calc(max(14px,env(safe-area-inset-top)) + 110px)}
}

/* ── pin progress: the "save for this" bar inside .wq-h ── */
.wq-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.wq-h .wq-pin{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:10px;
  background:rgba(255,210,122,.18);color:#FFD27A;font-size:12px;font-weight:700}
.wq-q{opacity:.7;margin-left:auto}

/* ── results strip (added by sceneResults wrapper in EC4/B) ── */
.ec-run{margin:8px 0;padding:8px 12px;border-radius:10px;background:rgba(255,210,122,.1);
  border:1px solid rgba(255,210,122,.25);color:#FFD27A;font-size:13px;line-height:1.4}
.ec-run b{color:#fff}
.ec-run span{margin-right:10px}

/* ── generic market / family / arcade / loft panels (skeleton; B/E/C/G fill them in) ── */
.ec-panel{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;
  background:rgba(10,15,30,.7);backdrop-filter:blur(4px)}
.ec-panel .card{background:linear-gradient(150deg,#1a1e36,#0c0e1c);border-radius:18px;padding:24px;
  width:min(94vw,720px);max-height:88vh;overflow:auto;color:#e7eaf3;border:1px solid rgba(255,255,255,.08)}
.ec-panel .card h2{margin:0 0 8px;font-family:"Chakra Petch",sans-serif;font-size:22px}
.ec-panel .card .x{float:right;background:none;border:0;color:#aaa;font-size:20px;cursor:pointer}
.ec-panel .card .tabs{display:flex;gap:6px;margin:12px 0 16px;flex-wrap:wrap}
.ec-panel .card .tabs button{padding:6px 10px;border-radius:10px;border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);color:#cfd6e6;font-weight:600;cursor:pointer;font-size:13px}
.ec-panel .card .tabs button.on{background:#FFD27A;color:#1a1410;border-color:#FFD27A}