/* suite.css — Balcony Boys Suite. Its own branded room inside the engine:
 * gold is the house accent here (the grade is the headline "value"). */

.bb-mark {
  font-family: var(--font-display);
  font-weight: 800;
  background: linear-gradient(180deg, var(--accent-gold), #d49a1f);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent-gold);
  margin-left: 2px;
}

/* ---------- gate ---------- */
.bb-gate { display: flex; justify-content: center; padding: 40px 0; }
.bb-gate-card {
  max-width: 440px; width: 100%;
  background: radial-gradient(600px 200px at 50% -40%, rgba(232, 177, 76,0.10), transparent 70%), var(--bg-panel);
  border: 1px solid var(--stroke); border-radius: 20px;
  padding: 36px 38px; box-shadow: var(--shadow-modal); text-align: center;
}
.bb-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em;
  color: var(--accent-gold); border: 1px solid rgba(232, 177, 76,0.4);
  padding: 4px 10px; border-radius: var(--radius-pill); margin-bottom: 16px;
}
.bb-gate-card h2 { font-family: var(--font-display); font-size: 24px; font-weight: 800; margin: 0 0 6px; }
.bb-gate-card p { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin: 0 0 18px; }
.bb-gate-row { display: flex; gap: 8px; }
.bb-gate-row input {
  flex: 1; background: var(--bg-input); border: 1px solid var(--stroke); color: var(--text);
  padding: 10px 13px; border-radius: var(--radius-sm); font-size: 14px; font-family: var(--font-stack);
}
.bb-gate-row input:focus { outline: none; border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(232, 177, 76,0.15); }
.bb-gate-err { color: var(--accent-bad); font-size: 12px; min-height: 16px; margin-top: 10px; }
.bb-gate-note { font-size: 11px !important; color: var(--text-faint) !important; margin: 14px 0 0 !important; }

/* ---------- hero ---------- */
.bb-hero {
  display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap;
  background: radial-gradient(900px 240px at 12% -40%, rgba(232, 177, 76,0.08), transparent 70%), var(--bg-panel);
  border: 1px solid var(--stroke); border-radius: var(--radius); box-shadow: var(--shadow-2);
  padding: 22px 26px; margin-bottom: 16px;
}
.bb-hero h2 { font-family: var(--font-display); font-size: 25px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.bb-hero p { margin: 0; max-width: 620px; color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.bb-hero-meta { display: flex; gap: 12px; }
.bb-stat { text-align: right; }
.bb-stat b { font-family: var(--font-mono); font-size: 18px; color: var(--accent-gold); display: block; }
.bb-stat span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); }

/* ---------- controls ---------- */
.bb-controls { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.bb-seg { display: inline-flex; background: var(--bg-input); border: 1px solid var(--stroke); border-radius: var(--radius-pill); padding: 3px; }
.bb-seg-btn {
  border: 0; background: transparent; color: var(--text-muted); cursor: pointer;
  padding: 7px 15px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; font-family: var(--font-stack);
  transition: color .15s, background .15s;
}
.bb-seg-btn:hover:not(.active):not(.disabled) { color: var(--text); }
.bb-seg-btn.active { background: linear-gradient(180deg, rgba(232, 177, 76,0.22), rgba(232, 177, 76,0.10)); color: var(--accent-gold); box-shadow: 0 0 0 1px rgba(232, 177, 76,0.3); }
.bb-seg-btn.disabled { opacity: 0.35; cursor: not-allowed; }
.bb-field { display: flex; flex-direction: column; gap: 5px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); font-weight: 700; }
.bb-field select {
  background: var(--bg-input); color: var(--text); border: 1px solid var(--stroke);
  padding: 8px 11px; border-radius: var(--radius-sm); font-size: 13px; font-family: var(--font-stack);
}
.bb-field select:focus { outline: none; border-color: var(--accent); }
.bb-search { position: relative; margin-left: auto; min-width: 220px; }
.bb-search input {
  width: 100%; background: var(--bg-input); border: 1px solid var(--stroke); color: var(--text);
  padding: 9px 13px; border-radius: var(--radius-pill); font-size: 13px; font-family: var(--font-stack);
}
.bb-search input:focus { outline: none; border-color: var(--accent-gold); box-shadow: 0 0 0 3px rgba(232, 177, 76,0.12); }
.bb-search-results {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px; z-index: 30;
  background: var(--bg-panel); border: 1px solid var(--stroke); border-radius: var(--radius-sm);
  max-height: 320px; overflow-y: auto; box-shadow: var(--shadow-modal);
}
.bb-sr { display: flex; justify-content: space-between; gap: 10px; padding: 9px 13px; cursor: pointer; font-size: 13px; border-bottom: 1px solid var(--stroke-soft); }
.bb-sr:last-child { border-bottom: 0; }
.bb-sr:hover { background: rgba(232, 177, 76,0.07); }

/* ---------- leaderboard table ---------- */
.bb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.bb-table thead th { text-align: left; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-faint); padding: 9px 10px; border-bottom: 1px solid var(--stroke); }
.bb-table .bb-num { text-align: right; font-family: var(--font-mono); }
.bb-table .bb-rk { width: 34px; color: var(--text-faint); font-family: var(--font-mono); }
.bb-table tbody td { padding: 10px; border-bottom: 1px solid var(--stroke-soft); }
.bb-table tbody tr:last-child td { border-bottom: 0; }
.bb-prow { cursor: pointer; transition: background .12s; }
.bb-prow:hover { background: rgba(232, 177, 76,0.06); }
.bb-name { font-weight: 600; }
.bb-hl { color: var(--accent-gold); font-weight: 700; }
.bb-vol { color: var(--text-faint); font-size: 11px; }
@media (max-width: 720px) { .bb-vol { display: none; } }

/* grade pills */
.bb-grade { font-family: var(--font-mono); font-weight: 700; padding: 2px 7px; border-radius: 6px; font-size: 12px; }
.bb-grade.g-elite { color: #0a0d14; background: var(--accent-gold); }
.bb-grade.g-great { color: var(--accent-good); background: rgba(74,222,128,0.12); }
.bb-grade.g-good  { color: var(--text-2); background: rgba(255,255,255,0.06); }
.bb-grade.g-ok    { color: var(--accent-warn); background: rgba(224,169,58,0.10); }
.bb-grade.g-poor  { color: var(--accent-bad); background: rgba(255,93,87,0.10); }

/* ---------- player card ---------- */
.bb-player { background: var(--bg-panel); border: 1px solid var(--stroke); border-left: 3px solid var(--accent-gold); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 20px; margin-bottom: 16px; }
.bb-player-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.bb-player-head strong { font-family: var(--font-display); font-size: 19px; font-weight: 800; margin: 0 8px; }
.bb-pos-chip { font-family: var(--font-mono); font-size: 11px; background: var(--bg-chip); border: 1px solid var(--stroke); border-radius: 6px; padding: 2px 7px; color: var(--text-2); }
.bb-close { background: none; border: 0; color: var(--text-muted); font-size: 22px; line-height: 1; cursor: pointer; }
.bb-close:hover { color: var(--text); }
.bb-season-table { margin-top: 14px; }
.bb-traj-note { font-size: 12px; font-style: italic; padding: 8px 0; }

/* trajectory svg */
.bb-traj { width: 100%; height: 150px; display: block; }
.bb-traj-line { fill: none; stroke: var(--accent-gold); stroke-width: 2.5; }
.bb-traj-dot { fill: var(--accent-gold); stroke: var(--bg-panel); stroke-width: 2; }
.bb-grid { stroke: var(--stroke-soft); stroke-width: 1; }
.bb-axis { fill: var(--text-faint); font-size: 10px; font-family: var(--font-mono); }

/* ---------- compare players ---------- */
.bb-compare-hint { font-size: 13px; color: var(--text-muted); margin: -4px 0 14px; max-width: 720px; line-height: 1.5; }
.bb-compare-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.bb-compare-bar .bb-search { flex: 1 1 240px; min-width: 200px; position: relative; }
.bb-link-btn { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-size: 13px; text-decoration: underline; padding: 4px; }
.bb-link-btn:hover { color: var(--bb-gold); }

.bb-cmp-tray { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bb-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-chip); border: 1px solid var(--stroke); border-radius: var(--radius-pill);
  padding: 5px 8px 5px 14px; font-size: 13px; font-weight: 600;
}
.bb-chip-x { background: none; border: 0; color: var(--text-faint); cursor: pointer; font-size: 17px; line-height: 1; padding: 0 2px; }
.bb-chip-x:hover { color: var(--accent-bad); }

.bb-cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.bb-cmp { min-width: 460px; }
table.bb-cmp th.bb-cmp-statcol, table.bb-cmp td.bb-cmp-statcol {
  text-align: left; position: sticky; left: 0; background: var(--bg-panel);
  font-weight: 600; color: var(--text-2); z-index: 1;
}
.bb-cmp-phead { text-align: center !important; vertical-align: bottom; padding: 8px 12px; }
.bb-cmp-phead .bb-name { display: block; font-size: 14px; }
.bb-cmp-phead .c-muted { display: block; font-size: 11px; font-weight: 400; margin-top: 2px; }
.bb-cmp-vol { font-family: var(--font-mono); }
table.bb-cmp td.bb-num { text-align: center; }
.bb-cmp-win {
  position: relative; color: var(--bb-gold) !important; font-weight: 700;
  background: rgba(232, 177, 76,0.10);
}
.bb-cmp-foot { font-size: 12px; margin-top: 8px; }
