/* Shared by the Draft Helper and the Draft Challenge */

/* utilities */
.muted { color: var(--dim); font-size: 13px; }
.muted.small { font-size: 11.5px; color: var(--faint); margin-top: 10px; line-height: 1.45; }
.muted.good { color: var(--good); }
.pos { color: var(--gold); } .neg { color: var(--bad); } .faint { color: var(--faint); } .good { color: var(--good); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  font-size: 11px; padding: 1px 7px; border-radius: 999px; color: var(--c, var(--dim));
  border: 1px solid color-mix(in srgb, var(--c, var(--dim)) 45%, transparent);
  background: color-mix(in srgb, var(--c, var(--dim)) 10%, transparent);
}

/* role picker */
.role-card { margin-bottom: 16px; }
.roles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.role {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-2); background: var(--bg-2);
  transition: border-color .15s, background .15s, transform .15s;
}
.role:hover { border-color: var(--gold); transform: translateY(-1px); }
.role.on { border-color: var(--gold); background: var(--gold-soft); box-shadow: 0 0 0 1px var(--gold); }
.role-num {
  width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  background: var(--surface-3); color: var(--gold);
}
.role.on .role-num { background: var(--gold); color: var(--bg); }
.role-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.role-txt b { font-size: 14px; }
.role-txt small { font-size: 11.5px; color: var(--dim); }

/* capability chart: wheel */
.radar-card { padding-bottom: 12px; }
.radar-wrap { width: 100%; max-width: 440px; margin: 0 auto; }
.radar-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.rlabel { font-size: 12px; fill: var(--text-2); font-family: var(--font-body); }
.rlabel:hover { fill: var(--text); }
.poly { stroke-width: 2; stroke-linejoin: round; transition: opacity .2s; }
.poly.ally { fill: rgba(47, 213, 181, 0.18); stroke: var(--ally); }
.poly.enemy { fill: rgba(255, 107, 94, 0.1); stroke: var(--enemy); stroke-opacity: 0.7; }
.poly.pick { fill: rgba(242, 177, 52, 0.14); stroke: var(--gold); stroke-dasharray: 5 4; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-top: 6px; font-size: 12px; color: var(--dim); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg.ally i { background: var(--ally); } .lg.enemy i { background: var(--enemy); } .lg.pick i { background: var(--gold); }

/* capability view toggle + impact bars */
.radar-card .card-title { flex-wrap: wrap; }
.view-toggle .chip { padding: 4px 10px; font-size: 11.5px; text-transform: none; letter-spacing: 0; font-family: var(--font-body); }
.cap-bars[hidden], .cap-wheel[hidden] { display: none; }
.center { text-align: center; }
.ib-head { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .8px; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.ib-head small { text-transform: none; letter-spacing: 0; }
.ib-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 44px; align-items: center; gap: 10px; padding: 4px 0; }
.ib-row:hover .ib-name span { color: var(--text); }
.ib-name { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); min-width: 0; }
.ib-name i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.ib-name span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-name small { margin-left: auto; font-size: 11px; color: var(--dim); }
.ib-track { position: relative; height: 14px; }
.ib-imp { position: relative; height: 100%; border-radius: 4px; background: var(--surface-3); border: 1px solid var(--border-2); overflow: visible; }
.ib-fill { height: 100%; border-radius: 3px; background: var(--ally); opacity: .85; transition: width .3s cubic-bezier(.2, .8, .2, 1); }
.ib-fill.picked { background: linear-gradient(90deg, var(--ally), var(--gold)); opacity: 1; }
.ib-base { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--text); opacity: .8; border-radius: 1px; }
.ib-enemy { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1.5px; background: var(--enemy); border-radius: 2px; box-shadow: 0 0 0 1px var(--bg); }
.ib-val { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.ib-val b { font-size: 14px; color: var(--ally); }
.ib-val small { font-size: 10.5px; color: var(--enemy); }
.ib-dead { margin-top: 10px; font-size: 12px; color: var(--faint); }
.ib-legend { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--dim); }
.ib-legend span { display: flex; align-items: flex-start; gap: 8px; }
.ib-legend i { flex: none; margin-top: 3px; display: inline-block; height: 9px; border-radius: 2px; }
.sw-imp { width: 22px; background: var(--surface-3); border: 1px solid var(--border-2); }
.sw-fill { width: 22px; background: var(--ally); }
.sw-enemy { width: 3px; background: var(--enemy); }
@media (max-width: 760px) {
  .ib-row { grid-template-columns: 112px minmax(0, 1fr) 34px; gap: 8px; }
  .ib-name { font-size: 12px; }
  .ib-name small { display: none; }
}


/* hero pool */
.pool-card { margin-top: 16px; }
.pool-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.pool-bar .search { margin-left: auto; }
.pool { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pool-group[hidden] { display: none; }
.pool-label { display: flex; align-items: center; gap: 7px; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-2); margin-bottom: 8px; }
.pool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 4px; }
.tile {
  position: relative; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden;
  background: var(--surface-3); border: 1px solid transparent; transition: transform .12s, filter .12s, border-color .12s;
}
.tile[hidden] { display: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-name { display: none; }
.tile.noimg .tile-name { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; font-size: 9.5px; text-align: center; padding: 2px; color: var(--text-2); }
.tile:hover { transform: scale(1.12); z-index: 2; border-color: var(--text); }
.tile.taken { filter: grayscale(1) brightness(0.35); cursor: not-allowed; }
.tile.taken:hover { transform: none; border-color: transparent; }
.tile.chosen { border: 2px solid var(--gold); box-shadow: 0 0 12px rgba(242, 177, 52, 0.5); }
.tile.whatif { border: 2px dashed var(--text); }

.tag.small { font-size: 10px; opacity: .85; }
.tag.neg { border-style: dashed; }
