/* target-race.css — Feature 6a + 6b: Daily Target Race + Offline Warrior. */

/* ==== target race ==== */
.tr-head{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  background:var(--surface2);border:1px solid var(--border);border-radius:12px;
  padding:10px 14px;margin-bottom:12px;
}
.tr-target-chip{
  display:inline-flex;align-items:center;gap:5px;
  background:var(--accent);color:#fff;font-weight:700;font-size:.78rem;
  border-radius:99px;padding:4px 12px;
}
.tr-status{
  display:inline-flex;align-items:center;gap:6px;
  font-size:.82rem;font-weight:600;color:var(--text2);flex:1;
}
.tr-status.tr-met{ color:#06d6a0; }

.tr-progress-row{ display:flex;align-items:center;gap:10px;margin-bottom:14px; }
.tr-bar{ flex:1;height:10px;background:var(--surface2);border-radius:99px;overflow:hidden; }
.tr-bar-fill{
  height:100%;border-radius:99px;
  background:linear-gradient(90deg,var(--accent),var(--accent2));
  transition:width .6s ease;
}
.tr-bar-fill.tr-done{ background:linear-gradient(90deg,#06d6a0,#4ade80); }
.tr-bar-label{ font-weight:800;font-size:.86rem;min-width:42px;text-align:right; }

.tr-list{ display:flex;flex-direction:column;gap:8px; }
.tr-row{
  display:flex;align-items:center;gap:10px;
  background:var(--surface);border:1px solid var(--border);border-radius:10px;
  padding:9px 12px;
}
.tr-row-me{ border-color:var(--accent);background:var(--accent-soft); }
.tr-rank{ width:28px;text-align:center;font-weight:800;color:var(--text2);font-size:.9rem;flex:0 0 auto; }
.tr-avatar{
  width:32px;height:32px;border-radius:50%;overflow:hidden;flex:0 0 auto;
  background:var(--accent-soft);color:var(--accent);
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:.85rem;
}
.tr-avatar img{ width:100%;height:100%;object-fit:cover; }
.tr-info{ flex:1;min-width:0; }
.tr-name{ font-weight:700;font-size:.85rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; margin-bottom:5px; }
.tr-name b{ color:var(--accent); }
.tr-bar.tr-bar-sm{ height:6px; }
.tr-side{ text-align:right;flex:0 0 auto; }
.tr-pct{ font-weight:800;font-size:.92rem; }
.tr-met-tag{
  display:inline-flex;align-items:center;gap:3px;
  font-size:.68rem;font-weight:700;color:#06d6a0;
}

/* ==== offline warrior ==== */
.ow-dash-card{
  background:var(--surface);border:1px solid var(--border);border-radius:14px;
  padding:14px;margin-bottom:12px;height:fit-content;
  animation:itemIn var(--dur-base) var(--ease-decel);
}
.ow-dash-head{ display:flex;align-items:center;gap:10px; }
.ow-emblems{
  width:40px;height:40px;border-radius:12px;flex:0 0 auto;
  background:var(--surface2);color:var(--warn);
  display:flex;align-items:center;justify-content:center;
}
.ow-dash-info{ flex:1;min-width:0; }
.ow-dash-title{ font-weight:800;font-size:.95rem; }
.ow-dash-sub{ font-size:.76rem;color:var(--text2); }
.ow-badge-tag{ font-size:1.4rem; }
.ow-bar{ height:8px;background:var(--surface2);border-radius:99px;overflow:hidden;margin-top:10px; }
.ow-bar-fill{
  height:100%;border-radius:99px;
  background:linear-gradient(90deg,var(--warn),#f59e0b);
  transition:width .4s ease-out;
}
.ow-bar-fill.ow-done{ background:linear-gradient(90deg,#06d6a0,#4ade80); }

.ow-status-card{
  background:var(--surface2);border:1px solid var(--border);border-radius:12px;
  padding:14px;margin-top:18px;
}
.ow-status-head{ display:flex;align-items:center;gap:8px;font-weight:800;font-size:.92rem;margin-bottom:6px; }
.ow-status-head .ico{ color:var(--warn); }