/* Personal champion pool — /pool */

.pool-shell { display: flex; flex-direction: column; gap: 14px; }

.pool-hero { padding: 6px 2px 0; }
.pool-hero h1 { margin: 6px 0 8px; font-size: clamp(24px, 3.6vw, 38px); line-height: 1.18; letter-spacing: -.015em; }
.pool-hero .lede { max-width: 780px; margin: 0; }
.pool-auth-note { margin: 10px 0 0; min-height: 18px; color: var(--accent-2); font-size: 12px; }
.pool-auth-note.error { color: #ff7a90; }
.pool-auth-note.ok { color: #7ee0a8; }

.pool-auth { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; }
.pool-auth-copy h2 { margin: 0 0 5px; font-size: 15px; }
.pool-auth-copy p { margin: 0; max-width: 680px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.pool-auth-actions { flex: none; }

.pool-login {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px;
  background: linear-gradient(135deg, #fff, #e7edf6); color: #17202c;
  font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28); transition: transform .15s ease, box-shadow .15s ease;
}
.pool-login::before {
  content: "G"; display: grid; place-items: center; width: 18px; height: 18px;
  border-radius: 50%; background: conic-gradient(#4285f4 0 25%, #34a853 25% 50%, #fbbc05 50% 75%, #ea4335 75%);
  color: transparent; font-size: 0; flex: none;
}
.pool-login:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 0, 0, .36); }

.pool-user { display: none; align-items: center; gap: 11px; width: 100%; }
.pool-user.is-visible { display: flex; }
.pool-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #13202f; border: 1px solid var(--line); }
.pool-user-copy { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.pool-user-copy strong { color: var(--text); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pool-user-copy span { color: var(--dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.danger { border-color: rgba(255, 93, 120, .4); color: #ff8fa0; }
button.danger:hover { border-color: #ff5d78; color: #fff; background: rgba(255, 93, 120, .16); }

.pool-builder { padding: 0; }
.pool-builder-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line-soft); }
.pool-builder-head h2 { margin: 0; font-size: 15px; }
.pool-builder-head .hint { margin: 4px 0 0; color: var(--dim); font-size: 11px; }
.pool-count { flex: none; padding: 5px 10px; border: 1px solid rgba(255, 191, 91, .35); border-radius: 999px; color: var(--gold); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pool-count.is-full { color: #0b0f16; background: var(--gold); }

.pool-role-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 16px 0; }
.pool-role-tab {
  appearance: none; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #0a111b; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.pool-role-tab:hover { border-color: rgba(70, 167, 255, .45); color: var(--text); }
.pool-role-tab.is-active { border-color: rgba(255, 191, 91, .55); background: rgba(255, 191, 91, .1); color: var(--text); }
.pool-role-tab .role-count { margin-left: 5px; color: var(--dim); font-size: 10px; font-variant-numeric: tabular-nums; }
.pool-role-tab.is-active .role-count { color: var(--gold); }

.pool-selected { margin: 12px 16px 0; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 11px; background: rgba(10, 17, 27, .6); }
.pool-selected h3 { margin: 0 0 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pool-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pool-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 8px;
  border: 1px solid rgba(255, 191, 91, .35); border-radius: 999px; background: rgba(255, 191, 91, .08);
  color: var(--text); font-size: 11px; font-weight: 600;
}
.pool-chip img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; background: #111c2a; }
.pool-chip button { appearance: none; width: 16px; height: 16px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--muted); font-size: 11px; line-height: 1; cursor: pointer; }
.pool-chip button:hover { background: rgba(255, 93, 120, .3); color: #fff; }
.pool-empty-selection { margin: 0; color: var(--dim); font-size: 11px; }

.pool-search-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px 0; }
.pool-search { flex: 1 1 220px; min-width: 180px; }
.pool-search input {
  width: 100%; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px;
  background: #080d15; color: var(--text); font-size: 12px; outline: none;
}
.pool-search input:focus { border-color: rgba(70, 167, 255, .55); box-shadow: 0 0 0 2px rgba(70, 167, 255, .12); }
.pool-show-all { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; cursor: pointer; white-space: nowrap; }
.pool-show-all input { width: 13px; height: 13px; margin: 0; accent-color: var(--gold); }
.pool-result-count { color: var(--dim); font-size: 10px; font-variant-numeric: tabular-nums; }

.pool-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 7px; padding: 12px 16px 16px; max-height: 620px; overflow-y: auto;
}
.pool-champ {
  appearance: none; position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 6px 4px; border: 1px solid var(--line); border-radius: 9px; background: #0b121d;
  color: var(--muted); cursor: pointer; transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.pool-champ:hover { border-color: rgba(255, 191, 91, .5); background: #0e1724; transform: translateY(-1px); }
.pool-champ img { width: 46px; height: 46px; border-radius: 7px; object-fit: cover; background: #111c2a; }
.pool-champ span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.pool-champ.is-picked { border-color: var(--gold); background: rgba(255, 191, 91, .11); color: var(--text); }
.pool-champ.is-picked::after {
  content: "✓"; position: absolute; top: 3px; right: 4px; display: grid; place-items: center;
  width: 14px; height: 14px; border-radius: 50%; background: var(--gold); color: #0b0f16;
  font-size: 9px; font-weight: 900;
}
.pool-champ:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.pool-grid-empty { padding: 6px 16px 18px; color: var(--dim); font-size: 12px; }

.pool-help { padding: 14px 16px; }
.pool-help h2 { margin: 0 0 8px; font-size: 14px; }
.pool-help-list { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.pool-help-list li::marker { color: var(--accent-2); }
.pool-privacy { margin: 10px 0 0; font-size: 11px; }

/* Pool reinforcement report */
.pool-advice { padding: 0; }
.pool-advice-summary { margin: 12px 16px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.pool-advice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 10px; padding: 12px 16px 16px; }
.pool-advice-card { display: flex; flex-direction: column; gap: 9px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(9, 15, 24, .55); }
.pool-advice-card[data-status="missing"] { border-color: rgba(255, 93, 120, .38); }
.pool-advice-card[data-status="thin"] { border-color: rgba(255, 191, 91, .32); }
.pool-advice-card[data-status="solid"] { border-color: rgba(70, 167, 255, .32); }
.pool-advice-card[data-status="deep"] { border-color: rgba(126, 224, 168, .32); }
.pool-advice-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pool-advice-card-head h3 { margin: 0; font-size: 13px; letter-spacing: .02em; }
.pool-advice-badge { flex: none; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pool-advice-card[data-status="missing"] .pool-advice-badge { color: #ff8ea0; border-color: rgba(255, 93, 120, .4); }
.pool-advice-card[data-status="thin"] .pool-advice-badge { color: var(--gold); border-color: rgba(255, 191, 91, .4); }
.pool-advice-meta { margin: 0; color: var(--dim); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.pool-advice-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pool-advice-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px 3px 4px; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--text); font-size: 11px; }
.pool-advice-chip img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; background: #111c2a; }
.pool-advice-chip small { color: var(--dim); font-size: 9.5px; font-variant-numeric: tabular-nums; }
.pool-advice-gaps { display: flex; flex-wrap: wrap; gap: 4px; }
.pool-advice-gap { padding: 2px 7px; border-radius: 6px; background: rgba(255, 191, 91, .1); color: var(--gold); font-size: 10px; }
.pool-advice-gap.is-high { background: rgba(255, 93, 120, .12); color: #ff9aab; }
.pool-advice-gap.is-low { background: rgba(255, 255, 255, .06); color: var(--dim); }
.pool-advice-heading { margin: 2px 0 0; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pool-advice-list { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pool-advice-item { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(13, 22, 35, .6); }
.pool-advice-avatar { flex: none; width: 30px; height: 30px; border-radius: 8px; object-fit: cover; background: #111c2a; }
.pool-advice-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin-right: auto; }
.pool-advice-copy strong { color: var(--text); font-size: 12px; }
.pool-advice-copy > span { color: var(--dim); font-size: 10px; font-variant-numeric: tabular-nums; }
.pool-advice-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.pool-advice-tag { padding: 1px 6px; border-radius: 5px; background: rgba(70, 167, 255, .12); color: #9cc9ff; font-size: 9.5px; }
.pool-advice-add { flex: none; appearance: none; padding: 5px 10px; border: 1px solid rgba(255, 191, 91, .4); border-radius: 8px; background: rgba(255, 191, 91, .08); color: var(--gold); font-size: 11px; font-weight: 700; cursor: pointer; }
.pool-advice-add:hover { background: rgba(255, 191, 91, .18); color: #fff; }
.pool-advice-empty-role { margin: 0; color: var(--dim); font-size: 11px; }
.pool-advice-note { margin: 0 16px 14px; color: var(--dim); font-size: 10.5px; line-height: 1.6; }

@media (max-width: 720px) {
  .pool-advice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .pool-auth { flex-direction: column; align-items: stretch; }
  .pool-user { flex-wrap: wrap; }
  .pool-user-copy { flex: 1 1 100%; }
  .pool-grid { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); max-height: 520px; }
  .pool-champ img { width: 40px; height: 40px; }
}
