/* 30-cure.css — Cure room nets
   Part of the ordered set linked from index.html. The parts concatenate to the
   original stylesheet byte for byte; link order IS the cascade order, so never
   reorder the <link> tags and never move a rule between files. */

.mr-action-btn.bad:hover { background: var(--bad); border-color: var(--bad); }

/* ============================================================
   CURE ROOM
   ============================================================ */

#cureRoomSection {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 18px;
  margin-bottom: 16px;
}

.cure-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.cure-title  { font-size: 22px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cure-subtitle { color: var(--muted); font-size: 14px; font-weight: 400; }
.cure-environment {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 180px)) 1fr;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.cure-environment div { display: grid; gap: 2px; }
.cure-environment span { color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cure-environment strong { font-size: 22px; line-height: 1.1; }
.cure-environment p { justify-self: end; margin: 0; color: var(--muted); font-size: 14px; text-align: right; }

.cure-stats-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px;
}

.cure-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700; color: var(--muted);
  padding: 4px 10px; border: 1px solid var(--line);
}

.cure-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cure-badge.drying, .cure-dot.drying { color: var(--warn);   }
.cure-dot.drying  { background: var(--warn); }
.cure-badge.cured, .cure-dot.cured   { color: var(--accent); }
.cure-dot.cured   { background: var(--accent); }
.cure-badge.moved { color: var(--muted); }
.cure-dot.moved   { background: #555; }
.cure-dot.empty   { background: #333; }

/* Net columns — four of them, uneven by design (4/4/5/3). Each net runs
   across its column and the columns stack down the room, so the view is
   read top-down per column, not left-to-right. Columns hang from a common
   top edge; the short one just stops early. */
.cure-grid {
  --cure-gap: 10px;
  display: grid;
  grid-template-columns: repeat(var(--cure-col-count, 4), minmax(150px, 1fr));
  align-items: start;
  gap: 14px;
  margin-bottom: 16px;
  /* Narrow screens scroll the room sideways rather than squeezing the nets
     down to unreadable slivers — the column shape is the point of this view. */
  overflow-x: auto;
  padding: 2px;
}

.cure-column {
  display: grid;
  align-content: start;
  gap: var(--cure-gap);
}

.cure-col-num {
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.cure-net {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: outline 0.1s;
  position: relative;
}

.cure-net.empty  { background: transparent !important; }
.cure-net:hover  { outline: 1px solid rgba(255,255,255,0.3); }
.cure-net.sel    { outline: 2px solid #fff; }

.cure-net-num {
  font-size: 9px; font-weight: 700;
  color: rgba(255,255,255,0.35);
  position: absolute; top: 4px; left: 7px;
}

.cure-net-strain {
  color: rgba(0,0,0,0.75);
  max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

.cure-net-status {
  font-size: 11px; font-weight: 700;
  padding: 2px 6px;
}

.cure-net-status.drying { background: rgba(228,180,93,0.35); color: #e4b45d; }
.cure-net-status.cured  { background: rgba(143,195,106,0.35); color: #8fc36a; }
.cure-net-status.moved  { background: rgba(255,255,255,0.08); color: var(--muted); }

.cure-net-count { font-size: 10px; color: rgba(0,0,0,0.55); }
.cure-net-empty { font-size: 12px; color: var(--muted); font-weight: 700; }

/* Detail panel */
.cure-detail { border: 1px solid var(--line); background: var(--panel); padding: 18px; min-height: 80px; }
.cure-detail-hint { color: var(--muted); font-size: 14px; margin: 0; }
.cure-detail-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* A net holding more than one strain: neutral tile, one swatched line each,
   because there is no single strain colour left to paint it with. */
.cure-net.shared { background: rgba(255,255,255,0.06) !important; }
.cure-net-share { display: grid; gap: 4px; }
.cure-net-share-row { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.cure-net-swatch { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; }
.cure-net-share-name {
  font-weight: 700; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cure-net-share-count { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Each strain in a net gets its own block of facts and its own actions. Side by
   side the grid gap separates them; stacked, they need a rule between. */
.cure-occupant { min-width: 0; }

.cure-status-chip {
  display: inline-block; padding: 3px 8px;
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}

.cure-status-chip.drying { background: rgba(228,180,93,0.15); color: var(--warn); }
.cure-status-chip.cured  { background: rgba(143,195,106,0.15); color: var(--accent); }
.cure-status-chip.moved  { background: rgba(255,255,255,0.05); color: var(--muted); }

@media (max-width: 720px) {
  .cure-environment { grid-template-columns: 1fr 1fr; }
  .cure-environment p { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .cure-grid { --cure-gap: 6px; }
  .cure-detail-inner { grid-template-columns: 1fr; }
  .cure-occupant + .cure-occupant { border-top: 1px solid var(--line); padding-top: 16px; }
}

/* ============================================================
   VEG ROOM
   ============================================================ */

