/* Front-door live blocks (templates/hub/_live_block.html). Existing tokens only.
   Every grid child sets min-width:0 and every name wraps, so nothing forces a
   horizontal scroll at 320px. */
.mast { margin-bottom: 1.25rem; }
.mast h1 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.mast-stamps { display: flex; flex-wrap: wrap; gap: 0.15rem 0.9rem; margin-top: 0.4rem;
  font-size: 0.75rem; color: var(--text-muted); }
.src-stamp b { font-weight: 600; color: var(--text); }
.src-stamp.is-stale, .src-stamp.is-stale b, .is-stale { color: var(--yellow); }
.mast-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.6rem; font-size: 0.85rem; }
.mast .tool-finder { margin-top: 0.9rem; }

.live-sec { margin-bottom: 1.75rem; min-width: 0; }
.live-sec > h2 { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; overflow-wrap: anywhere; }
.live-game { font-size: 0.78rem; font-weight: 500; margin-left: 0.4rem; color: var(--text-muted); }
.live-unit { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); margin-left: 0.3rem; }
.live-sub { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; overflow-wrap: anywhere; }
.live-empty { font-size: 0.9rem; color: var(--text-muted); }
.live-foot { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; margin-top: 0.6rem;
  font-size: 0.75rem; color: var(--text-muted); }
.live-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.4rem; }

.live-grid { display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.live-card { min-width: 0; border: 1px solid var(--border); border-radius: 10px;
  padding: 0.85rem 0.9rem; background: var(--surface); }
.live-card h3 { font-size: 0.95rem; font-weight: 700; overflow-wrap: anywhere; }
.live-lead { font-size: 0.85rem; margin: 0.35rem 0 0.6rem; overflow-wrap: anywhere; }
.live-trap { font-size: 0.8rem; margin-top: 0.6rem; padding-left: 0.6rem;
  border-left: 2px solid var(--orange); }
.live-trap a { color: var(--orange); }

/* Two-line rows: name + value, then a muted sub line. No tables. */
.rank-list, .mv-list, .bar-list, .win-list { list-style: none; margin: 0; padding: 0; }
.rank-list li, .bar-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 0.75rem; padding: 0.4rem 0; border-top: 1px solid var(--border-soft); }
.rank-list li:first-child, .bar-list li:first-child { border-top: 0; }
.rk-name { min-width: 0; font-size: 0.88rem; font-weight: 600; overflow-wrap: anywhere; }
.rk-val { font-size: 0.88rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.rk-sub { grid-column: 1 / -1; min-width: 0; font-size: 0.75rem; color: var(--text-muted); overflow-wrap: anywhere; }
.rk-sub.is-warn { color: var(--orange); }

.mv-h { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--text-muted); margin: 0.7rem 0 0.2rem; }
.mv-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 72px) auto;
  gap: 0 0.6rem; align-items: center; padding: 0.4rem 0; border-top: 1px solid var(--border-soft); }
.mv-list li:first-child { border-top: 0; }
.mv-list .rk-sub { grid-column: 1 / -1; }
.mv-list .rk-chg { font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.mv-list .up .rk-chg { color: var(--green); }
.mv-list .down .rk-chg { color: var(--red); }
.spark { display: block; width: 100%; height: 24px; }
.spark polyline { stroke: currentColor; stroke-width: 1.5; }
.up .spark { color: var(--green); }
.down .spark { color: var(--red); }
.bar-list li { row-gap: 0.2rem; }
.vbar { grid-column: 1 / -1; display: block; height: 4px; border-radius: 2px; background: var(--surface3); overflow: hidden; }
.vbar i { display: block; height: 100%; background: var(--accent); }

/* Boss clock */
.boss-now { display: flex; gap: 0.8rem; align-items: flex-start; min-width: 0; }
.boss-art { flex: none; width: 56px; height: 56px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface2); }
.boss-main { flex: 1 1 0; min-width: 0; }
.boss-name { font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.boss-when { font-size: 0.88rem; margin-top: 0.15rem; }
.boss-count { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--green); margin-left: 0.3rem; }
.boss-when.is-ended .boss-count { color: var(--text-muted); }
.boss-drop { font-size: 0.85rem; margin-top: 0.4rem; overflow-wrap: anywhere; }
.win-list { margin-top: 0.9rem; }
.win-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.15rem 0.75rem;
  padding: 0.4rem 0; border-top: 1px solid var(--border-soft); }
.win-name { min-width: 0; font-size: 0.85rem; font-weight: 600; overflow-wrap: anywhere; }
.win-name { display: flex; align-items: center; gap: 0.5rem; }
.win-art { flex: none; width: 28px; height: 28px; object-fit: cover; border-radius: 6px; background: var(--surface3); }
.win-time { font-size: 0.75rem; color: var(--text-muted); text-align: right; }
.win-bar { grid-column: 1 / -1; display: block; width: 100%; height: 6px; }
.win-track { fill: var(--surface3); }
.win-fill { fill: var(--accent); }
.win-list li.is-live .win-fill { fill: var(--green); }
.win-list li.is-ended { opacity: 0.55; }
.win-axis { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.7rem; color: var(--text-muted); }

.live-patch { font-size: 0.9rem; overflow-wrap: anywhere; }
.live-patch .live-sub { display: block; margin-top: 0.2rem; }

@media (min-width: 720px) {
  .mast h1 { font-size: 1.6rem; }
}
