/* ==========================================================================

   BIGBOARD.CC — ORGANIC / EDITORIAL REDESIGN

   Rebuilt from scratch while preserving the site's existing class names.

   Goal: less "AI SaaS template", more independent sports-data publication.

   ========================================================================== */

/* ---------- 1. DESIGN TOKENS ---------- */

:root {

  --bg: #0b0b0c;

  --bg-soft: #111113;

  --panel: #151517;

  --panel-2: #1b1b1e;

  --border: #29292d;

  --border-strong: #3a3a40;

  --text: #f2f0ec;

  --muted: #aaa7a1;

  --muted-2: #77746f;

  --red: #e3262e;

  --red-dark: #a7131a;

  --white: #ffffff;

  --green: #45b97c;

  --yellow: #d6a33f;

  --shadow: 0 16px 42px rgba(0, 0, 0, .28);

  --radius: 8px;

  --radius-sm: 5px;

  --max: 1180px;

  --serif: Georgia, "Times New Roman", serif;

  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

}

/* ---------- 2. RESET / BASE ---------- */

* {

  box-sizing: border-box;

}

html {

  scroll-behavior: smooth;

}

body {

  margin: 0;

  min-height: 100vh;

  color: var(--text);

  font-family: var(--sans);

  background:

    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),

    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px),

    var(--bg);

  background-size: 100% 48px, 48px 100%, auto;

}

body::before {

  content: "";

  position: fixed;

  inset: 0 0 auto 0;

  height: 3px;

  background: var(--red);

  z-index: 100;

  pointer-events: none;

}

::selection {

  background: rgba(227, 38, 46, .35);

  color: #fff;

}

a {

  color: inherit;

  text-decoration: none;

}

a:hover {

  color: #fff;

}

img {

  max-width: 100%;

}

/* ---------- 3. PAGE SHELL ---------- */

.site-shell {

  width: min(var(--max), calc(100% - 40px));

  margin: 0 auto;

}

.player-shell {

  width: min(650px, calc(100% - 32px));

  margin: 0 auto;

}

/* ---------- 4. HEADER ---------- */

.topbar {

  position: sticky;

  top: 0;

  z-index: 20;

  background: rgba(11, 11, 12, .94);

  border-bottom: 1px solid var(--border);

}

.topbar-inner {

  min-height: 62px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 18px;

}

.bottombar {

  position: sticky;

  bottom: 0;

  z-index: 20;

  background: rgba(11, 11, 12, .96);

  border-top: 1px solid var(--border);

}

.brand {

  display: flex;

  align-items: center;

  gap: 11px;

  min-width: 0;

}

.brand-mark {

  width: 38px;

  height: 38px;

  display: grid;

  place-items: center;

  flex: 0 0 auto;

  background: #050506;

  border: 1px solid #4c1619;

  border-radius: 4px;

}

.brand-mark svg {

  width: 25px;

  height: 25px;

}

.brand-mark img {

  width: 20px;

  height: auto;

  display: block;

}

.brand-title {

  min-width: 0;

  display: flex;

  flex-direction: column;

  line-height: 1.05;

}

.brand-title strong {

  font-family: var(--serif);

  font-size: 1.04rem;

  font-weight: 700;

  letter-spacing: .01em;

  white-space: nowrap;

}

.brand-title span {

  margin-top: 5px;

  color: var(--muted);

  font-size: .72rem;

  letter-spacing: .03em;

  white-space: nowrap;

}

.socials {

  display: flex;

  align-items: center;

  gap: 8px;

  color: var(--muted);

}

.socials img {

  width: 38px;

  height: 38px;

  padding: 5px;

  opacity: .55;

  vertical-align: middle;

  border: 1px solid var(--border);

  border-radius: 4px;

  background: transparent;

  transition: opacity .14s ease, border-color .14s ease;

}

.socials img:hover {

  opacity: .92;

  border-color: var(--border-strong);

}

/* ---------- 5. HERO ---------- */

.hero {
  padding: 24px 0 18px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;

  align-items: center;

  gap: 9px;

  color: #d8d2cb;

  font-family: var(--mono);

  font-size: .75rem;

  font-weight: 600;

  text-transform: uppercase;

  letter-spacing: .11em;

}

.eyebrow-dot {

  width: 6px;

  height: 6px;

  background: var(--red);

  border-radius: 1px;

}

h1 {
  max-width: 850px;
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  line-height: .96;
}

h1.widget-header {

  margin: 0;

  font-size: 2.2rem;

}

.gradient-text {

  color: #f4f0e9;

  background: none;

  -webkit-text-fill-color: initial;

}

.hero-copy {
  max-width: 690px;
  margin: 0 0 18px;
  color: #b8b4ad;
  font-size: clamp(.95rem, 1.4vw, 1.05rem);
  line-height: 1.55;
}

.hero-actions {

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  gap: 10px;

}

.button {

  min-height: 42px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 9px;

  padding: 0 15px;

  border: 1px solid var(--border-strong);

  border-radius: 4px;

  background: #161618;

  color: #f6f4ef;

  font: 700 .83rem/1 var(--sans);

  letter-spacing: .015em;

  cursor: pointer;

  transition: background .14s ease, border-color .14s ease;

}

.button:hover {

  background: #1d1d20;

  border-color: #515158;

}

.button-primary {

  border-color: var(--red);

  background: var(--red);

  color: #fff;

}

.button-primary:hover {

  background: #f02b34;

  border-color: #f02b34;

}

.button-secondary {

  background: transparent;

}

/* ---------- 6. HERO / WIDGET CARDS ---------- */

.hero-card,
.widget-card {
  position: relative;
  overflow: hidden;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #101012;
  box-shadow: var(--shadow);
}

.hero-card {

  transform: rotate(.25deg);

}

.hero-card::before {

  content: "";

  position: absolute;

  inset: 0 auto 0 0;

  width: 3px;

  background: var(--red);

  pointer-events: none;

}

.logo-stage {
  padding: 1rem;
  position: relative;

  display: grid;

  place-items: center;

  overflow: hidden;

  border: 1px solid #232326;

  border-radius: 4px;

  background:

    linear-gradient(135deg, transparent 0 49.5%, rgba(255,255,255,.025) 49.5% 50.5%, transparent 50.5%),

    #09090a;

}

.logo-stage::after {

  content: "CONSENSUS • 2027";

  position: absolute;

  right: 10px;

  bottom: 9px;

  color: #5e5d5a;

  font: 600 .62rem/1 var(--mono);

  letter-spacing: .12em;

}

.bigboard-logo {
  width: min(160px, 70%);

  filter: drop-shadow(0 16px 28px rgba(0,0,0,.45));

}

.quick-stats-3,
.quick-stats-2 {
  position: relative;
  display: grid;
  gap: 1px;
  margin-top: 8px;

  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: 4px;

  background: var(--border);

}

.quick-stats-3 {

  grid-template-columns: repeat(3, 1fr);

}

.quick-stats-2 {

  grid-template-columns: repeat(2, 1fr);

}

.stat {
  min-width: 0;
  padding: 10px 12px;

  border: 0;

  border-radius: 0;

  background: #101012;

}

.stat strong {

  display: block;

  font-family: var(--mono);

  font-size: 1.13rem;

  font-weight: 700;

  letter-spacing: -.04em;

}

.stat span {

  display: block;

  margin-top: 5px;

  color: var(--muted-2);

  font-size: .67rem;

  text-transform: uppercase;

  letter-spacing: .09em;

}

/* ---------- 7. SECTIONS ---------- */

.section {

  padding: 26px 0;

}

.section + .section {

  border-top: 1px solid #1a1a1d;

}

.section-head {

  display: flex;

  justify-content: space-between;

  align-items: end;

  gap: 24px;

  margin-bottom: 16px;

}

.section-head h2 {

  margin: 0;

  font-family: var(--serif);

  font-size: clamp(1.6rem, 3vw, 2.35rem);

  line-height: 1;

  letter-spacing: -.025em;

}

.section-head p {

  max-width: 680px;

  margin: 0;

  color: var(--muted);

  line-height: 1.55;

}

.updated-pill {

  display: inline-flex;

  align-items: center;

  gap: 7px;

  padding: 0;

  color: var(--muted);

  background: transparent;

  border: 0;

  border-radius: 0;

  font-family: var(--mono);

  font-size: .72rem;

  white-space: nowrap;

}

/* ---------- 8. BOARD ---------- */

.board-panel {

  overflow: hidden;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  background: #0f0f11;

  box-shadow: 0 12px 32px rgba(0,0,0,.22);

}

.controls {

  display: grid;

  grid-template-columns: 1.4fr repeat(2, minmax(140px, .45fr));

  gap: 10px;

  padding: 12px;

  border-bottom: 1px solid var(--border);

  background: #131315;

}

.field {

  position: relative;

}

.field input,

.field select {

  width: 100%;

  height: 42px;

  padding: 0 12px;

  border: 1px solid #343439;

  border-radius: 4px;

  outline: none;

  background: #0d0d0f;

  color: var(--text);

  font: inherit;

}

.field input::placeholder {

  color: #6d6b67;

}

.field input:focus,

.field select:focus {

  border-color: #7d3034;

  box-shadow: 0 0 0 2px rgba(227, 38, 46, .10);

}

.field select {

  color-scheme: dark;

}

.field select option {

  background: #111113;

  color: #f4f2ee;

}

.field select option:checked {

  background: #6f171c;

  color: #fff;

}

.table-wrap {

  overflow-x: auto;

}

table {

  width: 100%;

  min-width: 900px;

  border-collapse: collapse;

  font-family: var(--mono);

}

th,

td {

  padding: 13px 14px;

  text-align: left;

  border-bottom: 1px solid #242428;

}

th {

  color: #8f8c86;

  background: #0b0b0d;

  font-size: .68rem;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: .08em;

  white-space: nowrap;

  user-select: none;

}

tbody tr {

  cursor: pointer;

  transition: background .10s ease;

}

tbody tr:nth-child(even) {

  background: rgba(255,255,255,.012);

}

tbody tr:hover {

  background: #18181b;

}

tbody tr:hover td:first-child {

  box-shadow: inset 3px 0 0 var(--red);

}

.rank {

  color: #f8f5ef;

  font-size: 1rem;

  font-weight: 800;

}

.player {

  color: #fff;

  font-family: var(--sans);

  font-size: 1rem;

  font-weight: 700;

}

.tag {

  min-width: 40px;

  height: 24px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  padding: 0 7px;

  border: 1px solid currentColor;

  border-radius: 3px;

  background: transparent;

  font-family: var(--mono);

  font-size: .7rem;

  font-weight: 800;

}

/* ---------- 9. POSITION COLORS ---------- */

.pos-qb { color: #ff7a73; background: rgba(255, 59, 48, .07); border-color: rgba(255, 59, 48, .32); }

.pos-wr { color: #75baff; background: rgba(0, 122, 255, .07); border-color: rgba(0, 122, 255, .30); }

.pos-rb { color: #80d79a; background: rgba(52, 199, 89, .07); border-color: rgba(52, 199, 89, .30); }

.pos-te { color: #d09af0; background: rgba(175, 82, 222, .07); border-color: rgba(175, 82, 222, .30); }

.pos-fb { color: #c99e7c; background: rgba(161, 106, 64, .07); border-color: rgba(161, 106, 64, .30); }

.pos-ol { color: #eab25e; background: rgba(255, 149, 0, .07); border-color: rgba(255, 149, 0, .30); }

.pos-ed { color: #f07a96; background: rgba(220, 20, 60, .07); border-color: rgba(220, 20, 60, .30); }

.pos-dt { color: #c7c7ca; background: rgba(142, 142, 147, .07); border-color: rgba(142, 142, 147, .30); }

.pos-lb { color: #86d994; background: rgba(50, 215, 75, .07); border-color: rgba(50, 215, 75, .30); }

.pos-cb { color: #8ed9f4; background: rgba(90, 200, 250, .07); border-color: rgba(90, 200, 250, .30); }

.pos-s  { color: #aaa8f4; background: rgba(88, 86, 214, .07); border-color: rgba(88, 86, 214, .30); }

.pos-k  { color: #ec88a0; background: rgba(255, 45, 85, .07); border-color: rgba(255, 45, 85, .30); }

.pos-p  { color: #81d5df; background: rgba(48, 176, 199, .07); border-color: rgba(48, 176, 199, .30); }

.trend-up {

  color: var(--green);

  font-weight: 800;

}

.trend-down {

  color: var(--yellow);

  font-weight: 800;

}

.trend-flat {

  color: var(--muted-2);

  font-weight: 800;

}

/* ---------- 10. MOBILE PLAYER LIST ---------- */

.mobile-list {

  display: none;

  padding: 6px;

  gap: 0;

}

.mobile-card {

  padding: 12px 11px;

  border: 0;

  border-bottom: 1px solid var(--border);

  border-radius: 0;

  background: transparent;

  box-shadow: none;

}

.mobile-card:last-child {

  border-bottom: 0;

}

.mobile-card:active {

  background: #171719;

}

.mobile-card-top {

  display: grid;

  grid-template-columns: 1fr auto;

  gap: 10px;

  align-items: start;

}

.mobile-card h3 {

  margin: 0;

  font-family: var(--sans);

  font-size: .98rem;

  font-weight: 750;

  line-height: 1.2;

  letter-spacing: -.015em;

}

.mobile-card .school {

  margin-top: 3px;

  color: var(--muted);

  font-size: .78rem;

  line-height: 1.15;

}

.mobile-card .pos,

.mobile-card .position {

  padding: 3px 6px;

  border: 1px solid var(--border-strong);

  border-radius: 3px;

  background: transparent;

  color: var(--text);

  font: 800 .67rem/1 var(--mono);

  letter-spacing: .04em;

  white-space: nowrap;

}

.mobile-meta {

  display: flex;

  flex-wrap: wrap;

  gap: 6px;

  margin-top: 8px;

  color: var(--muted-2);

  font: .69rem/1 var(--mono);

}

.mobile-meta div {

  padding: 0;

  border: 0;

  border-radius: 0;

  background: transparent;

}

.mobile-meta strong {

  display: inline;

  color: #d6d3cc;

  font-size: .69rem;

  font-weight: 800;

}

.mobile-meta span {

  display: inline;

  margin-left: 2px;

  color: var(--muted-2);

  font-size: .69rem;

  text-transform: none;

  letter-spacing: 0;

}

.mobile-meta div:not(:last-child)::after {

  content: "/";

  margin-left: 6px;

  color: #494946;

}

/* ---------- 11. BOARD FOOTER ---------- */

.panel-footer {

  display: flex;

  justify-content: space-between;

  gap: 12px;

  padding: 11px 14px;

  border-top: 1px solid var(--border);

  background: #0b0b0d;

  color: var(--muted-2);

  font-family: var(--mono);

  font-size: .72rem;

}

/* ---------- 12. METHOD / EXPLAINER CARDS ---------- */

.method-grid {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 12px;

}

.method-card {

  position: relative;

  min-height: 180px;

  padding: 18px 18px 20px;

  border: 1px solid var(--border);

  border-radius: 5px;

  background: #111113;

}

.method-icon {

  width: auto;

  height: auto;

  display: block;

  margin: 0 0 18px;

  border: 0;

  border-radius: 0;

  background: transparent;

  color: var(--red);

  font-size: 1.25rem;

}

.method-card h3 {

  margin: 0 0 8px;

  font-family: var(--serif);

  font-size: 1.08rem;

  font-weight: 700;

}

.method-card p {

  margin: 0;

  color: var(--muted);

  font-size: .9rem;

  line-height: 1.62;

}

/* ---------- 13. SUPPORT / CHARITY LINE ---------- */

.support-line-desktop {

  display: inline-flex;

  align-items: center;

  gap: 7px;

  padding: 0;

  border: 0;

  border-radius: 0;

  background: transparent;

  color: #8e8a84;

  font: 600 .69rem/1 var(--mono);

  letter-spacing: .06em;

  text-transform: uppercase;

}

.support-line-desktop::before {

  content: "•";

  color: var(--red);

}

.support-line-desktop a {

  color: #d8d4ce;

  font-weight: 700;

}

.support-line-desktop a:hover {

  color: #fff;

  text-decoration: underline;

  text-underline-offset: 3px;

}

/* ---------- 14. FOOTER ---------- */

.footer {

  padding: 20px 0 28px;

  color: var(--muted);

}

.footer-inner {

  display: flex;

  justify-content: space-between;

  gap: 20px;

  padding-top: 18px;

  border-top: 1px solid var(--border);

  font-size: .82rem;

}

.no-results {

  padding: 36px 20px;

  color: var(--muted);

  text-align: center;

}

/* ---------- 15. LOADING ---------- */

.loading-small {

  text-align: center;

}

.loading-small img {

  width: 42px;

  height: 42px;

  opacity: .8;

}

/* ---------- 16. PLAYER WIDGET OVERLAY ---------- */

.player-widget-container {

  position: fixed;

  inset: 0;

  z-index: 1000;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 20px;

  background: rgba(0, 0, 0, .74);

  animation: widget-overlay-in .14s ease-out;

}

.player-widget-box {

  position: relative;

  z-index: 1001;

  animation: widget-box-in .16s ease-out;

}

.player-widget-box .widget-card {

  border-top: 3px solid var(--red);

  border-radius: 5px;

  background: #101012;

}

.player-widget-content h2 {

  margin: 0 34px 4px 0;

  color: #fff;

  font-family: var(--serif);

  font-size: 22px;

  font-weight: 700;

  line-height: 1.08;

  letter-spacing: -.025em;

}

.player-widget-content p {

  margin: 0;

}

.player-widget-content br + strong {

  display: inline-block;

  margin-top: 9px;

}

.player-widget-content strong {

  color: rgba(255,255,255,.95);

  font-weight: 700;

}

.player-widget-close {

  position: absolute;

  top: -12px;

  right: -12px;

  z-index: 20;

  width: 27px;

  height: 27px;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 0;


  border-radius: 16px;


  color: #8f8c86;

  font: 400 16px/1 Arial, sans-serif;

  cursor: pointer;

  transition: color .12s ease, border-color .12s ease, background .12s ease;

}

.player-widget-close:hover {

  border-color: #702128;

  background: #241416;

  color: #ff6069;

}

.player-widget-close:active {

  transform: translateY(1px);

}

.player-widget-close:focus-visible {

  outline: 2px solid rgba(227, 38, 46, .75);

  outline-offset: 2px;

}

@keyframes widget-overlay-in {

  from { opacity: 0; }

  to { opacity: 1; }

}

@keyframes widget-box-in {

  from { opacity: 0; transform: translateY(5px); }

  to { opacity: 1; transform: translateY(0); }

}

/* ---------- 17. REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {

  *,

  *::before,

  *::after {

    scroll-behavior: auto !important;

    animation-duration: .01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: .01ms !important;

  }

}

/* ---------- 18. MOBILE ---------- */

@media (max-width: 760px) {

  body {

    background-size: 100% 44px, 44px 100%, auto;

  }

  #methodology {
    display: none;
  }

  #heroText {
    display: none;
  }

  .site-shell {

    width: min(100% - 22px, var(--max));

  }

  .topbar-inner {

    min-height: 62px;

  }

  .brand-title span {

    display: none;

  }

  .hero {
    padding: 14px 0 10px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-card {
    order: -1;
    transform: none;
    padding: 10px;
  }

  .logo-stage {
    min-height: 165px;
  }

  h1 {
    font-size: clamp(2rem, 10.5vw, 3rem);
    line-height: .96;
    letter-spacing: -.04em;
  }

  .hero-copy {
    margin-bottom: 14px;
    font-size: .92rem;
    line-height: 1.48;
  }

  .hero-actions .button {

    width: 100%;

  }

  .section {

    padding: 20px 0;

  }

  .section-head {

    align-items: start;

    gap: 12px;

  }

  .section-head p {

    font-size: .9rem;

  }

  .controls {

    grid-template-columns: 1fr;

    padding: 9px;

  }

  .table-wrap {

    display: none;

  }

  .mobile-list {

    display: grid;

  }

  .method-grid {

    grid-template-columns: 1fr;

    gap: 8px;

  }

  .method-card,

  .method-card:nth-child(2),

  .method-card:nth-child(3) {

    min-height: 0;

    transform: none;

  }

  .quick-stats-3,

  .quick-stats-2 {

    grid-template-columns: repeat(3, 1fr);

  }

  .panel-footer {

    flex-direction: column;

  }

  .footer-inner {

    flex-direction: column;

  }

  .support-line-desktop {

    display: none;

  }

  .player-widget-container {

    padding: 14px;

  }

  .player-widget-box {

    width: 100%;

    max-width: 330px;

  }

  .player-widget-content h2 {

    font-size: 21px;

  }

  .player-widget-content {

    font-size: 14px;

  }

}

@media (max-width: 480px) {
  .quick-stats-3 {
    grid-template-columns: 1fr;
  }

  .quick-stats-3 .stat {
    padding: 12px 15px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: baseline;
    gap: 8px;
  }

  .quick-stats-3 .stat strong {
    font-family: var(--mono);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
  }

  .quick-stats-3 .stat span {
    margin-top: 0;
    color: var(--muted-2);
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
}

/* ---------- 19. PLAYER PROFILE PAGE ---------- */

.player-profile .hero:first-child {
  padding-bottom: 0;
}

.player-profile .hero + .hero {
  padding-top: 12px;
}

.player-profile .hero-card {
  transform: none;
}

.player-profile .widget-header {
  font-size: clamp(1.65rem, 5vw, 2.2rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.player-sub {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}

.trend-chart {
  min-width: 0;
  margin: 16px 0 14px;
}

/* Keep two-column profile stats even on narrow screens. */
.player-profile .quick-stats-2,
.player-widget-content .quick-stats-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---------- 20. WEEKLY RANKING CHART ---------- */

.bbh {
  width: 100%;
  margin: 0;
  color: var(--text);
  font-family: var(--sans);
}

.bbh, .bbh * { box-sizing: border-box; }

.bbh-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 9px;
}

.bbh-heading {
  color: #f2f0ec;
  font-size: .86rem;
  font-weight: 750;
  letter-spacing: .008em;
}

.bbh-current {
  flex: 0 0 auto;
  color: #ff5267;
  font-size: .77rem;
  font-weight: 750;
  white-space: nowrap;
}

.bbh-canvas {
  max-width: 100%;
  border: 1px solid #303038;
  border-radius: 9px;
  background: #101114;
  overflow: hidden;
  line-height: 0;
}

.bbh-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.bbh-grid {
  stroke: #31333a;
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.bbh-axis,
.bbh-axis-label {
  fill: #a2a5af;
  font-family: var(--sans);
  font-size: 11px;
}

.bbh-axis-label {
  font-weight: 650;
  letter-spacing: .03em;
}

.bbh-path {
  fill: none;
  stroke: #ff344f;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bbh-area { opacity: .58; }

.bbh-point {
  outline: none;
  cursor: crosshair;
}

.bbh-hit {
  fill: transparent;
  pointer-events: all;
}

.bbh-dot {
  fill: #ff344f;
  stroke: #101114;
  stroke-width: 2;
  transition: fill .13s ease, stroke .13s ease;
}

.bbh-point:hover .bbh-dot,
.bbh-point:focus .bbh-dot {
  r: 6;
  fill: #ff7485;
  stroke: #f5f3f0;
  stroke-width: 2.2;
}

/* The tooltip is in its own topmost SVG layer. Individual visibility rules
   are generated and scoped by trendChart.js, with no runtime JS required. */
.bbh-tooltip {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.75));
  transition: opacity .12s ease;
}

.bbh-tooltip-bg {
  fill: #191b22;
  fill-opacity: 1;
  stroke: #535762;
  stroke-width: 1;
}

.bbh-tooltip-accent { fill: #ff465e; }

.bbh-tooltip-date,
.bbh-tooltip-rank,
.bbh-tooltip-detail,
.bbh-tooltip-average {
  font-family: var(--sans);
  stroke: none;
}

.bbh-tooltip-date {
  fill: #b4bdce;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .025em;
}

.bbh-tooltip-rank {
  fill: #fff;
  font-size: 22px;
  font-weight: 780;
  letter-spacing: -.025em;
}

.bbh-tooltip-divider {
  stroke: #383c46;
  stroke-width: 1;
}

.bbh-tooltip-detail {
  fill: #e7e9ee;
  font-size: 12px;
  font-weight: 600;
}

.bbh-tooltip-average {
  fill: #aeb5c2;
  font-size: 11px;
  font-weight: 500;
}

.bbh-foot {
  margin: 9px 0 0;
  color: #989aa3;
  font-size: .72rem;
  line-height: 1.5;
}

.bbh-empty {
  margin-top: 9px;
  padding: 25px 12px;
  border: 1px solid #303038;
  border-radius: 9px;
  background: #101114;
  color: #a6a9b3;
  font-size: .82rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 560px) {
  .player-profile .widget-card { padding: 12px; }
  .bbh-canvas {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  /* Preserve readable axes/tooltips instead of shrinking them to 6px. */
  .bbh-svg { min-width: 540px; }
  .bbh-foot { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bbh-dot, .bbh-tooltip { transition: none; }
}
