.pb-home { padding-top: 14px; }
.pb-demo-banner { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; padding: 8px 10px; border: 1px solid rgba(255, 189, 56, 0.48); color: #e4d5b1; background: rgba(255, 189, 56, 0.08); font-size: 14px; }
.pb-demo-banner strong { color: var(--pb-gold); letter-spacing: 0.08em; text-transform: uppercase; }
.pb-eyebrow { margin: 0 0 5px; color: var(--pb-text-main); font: 800 14px/1 var(--pb-font-display); letter-spacing: 0.05em; text-transform: uppercase; }
.pb-section { margin-top: 12px; scroll-margin-top: 70px; }

.pb-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 235px; gap: 18px; min-height: 330px; padding: 28px 18px 24px 30px; overflow: hidden; border: 1px solid var(--pb-border); border-radius: var(--pb-radius); background: radial-gradient(circle at 66% 45%, rgba(0, 144, 214, 0.28), transparent 32%), linear-gradient(105deg, #061a2a 0%, #061522 50%, #020b15 100%); box-shadow: var(--pb-shadow); }
.pb-hero::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(90deg, rgba(2, 9, 20, 0.94) 0%, rgba(2, 9, 20, 0.66) 43%, rgba(2, 9, 20, 0.13) 72%, rgba(2, 9, 20, 0.42) 100%), repeating-linear-gradient(90deg, transparent 0 92px, rgba(0, 201, 255, 0.025) 93px); }
.pb-hero::after { position: absolute; z-index: -1; right: 21%; bottom: -44%; width: 44%; aspect-ratio: 1; content: "21"; color: rgba(0, 201, 255, 0.06); font: italic 900 230px/1 var(--pb-font-display); text-shadow: 0 0 45px rgba(0, 201, 255, 0.12); transform: rotate(-5deg); }
.pb-hero__art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.pb-hero__copy { align-self: center; max-width: 610px; }
.pb-hero h1 { margin: 0; font: italic 900 clamp(44px, 5vw, 74px)/0.9 var(--pb-font-display); letter-spacing: -0.02em; text-transform: uppercase; text-shadow: 0 5px 22px rgba(0, 0, 0, 0.52); }
.pb-hero h1::first-line { color: #fff; }
.pb-hero__subtitle { margin: 10px 0 8px; color: #fff; font: italic 800 clamp(14px, 1.6vw, 20px)/1 var(--pb-font-display); letter-spacing: 0.035em; text-transform: uppercase; }
.pb-hero__lead { max-width: 500px; margin: 0 0 16px; color: #c4d2da; font-size: 14px; }
.pb-hero__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-server-status { align-self: center; min-height: 235px; padding: 16px; border: 1px solid rgba(0, 201, 255, 0.32); border-radius: 6px; background: rgba(3, 15, 25, 0.88); box-shadow: inset 0 0 24px rgba(0, 201, 255, 0.04); backdrop-filter: blur(8px); }
.pb-server-status > small { display: block; color: #d3dee4; font: 800 14px/1 var(--pb-font-display); text-transform: uppercase; }
.pb-server-status > strong { display: flex; gap: 8px; align-items: center; margin-top: 13px; color: var(--pb-green); font: 900 28px/1 var(--pb-font-display); text-transform: uppercase; }
.pb-server-status p { min-height: 48px; margin: 12px 0; color: #b5c9bd; font-size: 14px; }
.pb-server-status > span { display: block; margin: 12px 0; color: var(--pb-text-soft); font-size: 14px; text-transform: uppercase; }
.pb-server-status > a { display: grid; place-items: center; min-height: 44px; padding: 7px; border: 1px solid var(--pb-border); color: #bde9f7; font: 800 14px/1 var(--pb-font-display); text-align: center; text-decoration: none; text-transform: uppercase; }
.pb-server-status--offline > strong,
.pb-server-status--error > strong,
.pb-server-status--schema-mismatch > strong { color: var(--pb-red); }
.pb-server-status--stale > strong,
.pb-server-status--degraded > strong { color: var(--pb-gold); }

.pb-kpi-section { margin-top: 10px; }
.pb-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.pb-kpi { --pb-accent: var(--pb-cyan); position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 84px; padding: 11px 13px; overflow: hidden; }
.pb-kpi::after { position: absolute; right: 0; bottom: 0; width: 44%; height: 1px; content: ""; background: linear-gradient(90deg, transparent, var(--pb-accent)); box-shadow: 0 0 14px var(--pb-accent); opacity: 0.7; }
.pb-kpi__icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid color-mix(in srgb, var(--pb-accent) 50%, transparent); border-radius: 50%; color: var(--pb-accent); background: color-mix(in srgb, var(--pb-accent) 8%, transparent); font: 900 14px/1 var(--pb-font-display); box-shadow: 0 0 18px color-mix(in srgb, var(--pb-accent) 15%, transparent); }
.pb-kpi > div { display: grid; min-width: 0; }
.pb-kpi > div > span { color: var(--pb-text-muted); font-size: 14px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.pb-kpi strong { margin: 3px 0; font: 900 23px/1 var(--pb-font-display); }
.pb-kpi small { color: color-mix(in srgb, var(--pb-accent) 72%, var(--pb-text-muted)); font-size: 14px; text-transform: uppercase; }

.pb-accent--cyan { --pb-accent: var(--pb-cyan); }
.pb-accent--green { --pb-accent: var(--pb-green); }
.pb-accent--purple { --pb-accent: var(--pb-purple); }
.pb-accent--gold { --pb-accent: var(--pb-gold); }
.pb-accent--red { --pb-accent: var(--pb-red); }

.pb-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.pb-mode-card { --pb-accent: var(--pb-cyan); position: relative; min-height: 250px; overflow: hidden; border-color: color-mix(in srgb, var(--pb-accent) 55%, var(--pb-border)); }
.pb-mode-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: 0.57; }
.pb-mode-card::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(3, 13, 23, 0.97) 0%, rgba(3, 13, 23, 0.82) 48%, rgba(3, 13, 23, 0.22) 100%), radial-gradient(circle at 82% 30%, color-mix(in srgb, var(--pb-accent) 18%, transparent), transparent 35%); }
.pb-mode-card::after { position: absolute; right: -30px; bottom: -70px; width: 190px; aspect-ratio: 1; content: ""; border: 1px solid color-mix(in srgb, var(--pb-accent) 24%, transparent); border-radius: 50%; }
.pb-mode-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 250px; padding: 15px; }
.pb-mode-card h3 { max-width: 80%; margin: 0; font: 850 15px/1.1 var(--pb-font-display); text-transform: uppercase; }
.pb-mode-card p { max-width: 72%; min-height: 38px; margin: 5px 0 0; color: #b7c6ce; font-size: 14px; }
.pb-mode-card__mark { display: block; margin: auto 0 4px; color: #fff; font: italic 900 34px/1 var(--pb-font-display); letter-spacing: 0.05em; text-shadow: 0 0 16px color-mix(in srgb, var(--pb-accent) 38%, transparent); text-transform: uppercase; }
.pb-mode-card__meta { display: flex; gap: 7px; margin-bottom: 8px; }
.pb-mode-card__meta span { padding: 4px 7px; border: 1px solid color-mix(in srgb, var(--pb-accent) 35%, var(--pb-border)); border-radius: 10px; color: #c1ced5; background: rgba(2, 12, 20, 0.72); font-size: 14px; text-transform: uppercase; }
.pb-mode-card__meta i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--pb-text-soft); box-shadow: none; }
.pb-mode-card__meta[data-state="verified"] i { background: var(--pb-green); box-shadow: 0 0 8px rgba(53, 229, 111, 0.5); }

.pb-live-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(310px, 0.95fr); gap: 9px; }
.pb-feed { min-width: 0; padding: 10px; }
.pb-live-body { min-height: 150px; }
.pb-feed > header,
.pb-data-panel > header { display: flex; gap: 8px; align-items: center; justify-content: space-between; min-height: 30px; padding-bottom: 8px; border-bottom: 1px solid var(--pb-divider); }
.pb-feed h3,
.pb-data-panel h2 { margin: 0; font: 850 14px/1 var(--pb-font-display); letter-spacing: 0.025em; text-transform: uppercase; }
.pb-feed > header a,
.pb-data-panel > header a { display: grid; place-items: center; min-height: 44px; padding: 5px 7px; border: 1px solid var(--pb-border); border-radius: 3px; color: var(--pb-text-muted); font-size: 14px; text-decoration: none; text-transform: uppercase; }
.pb-match-feed > header h3 i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--pb-text-soft); box-shadow: none; }
.pb-match-feed[data-state="live"] > header h3 i { background: var(--pb-red); box-shadow: 0 0 8px var(--pb-red); }
.pb-inline-state { margin: 8px 0; color: #ffd477; font-size: 14px; }
.pb-table-wrap { overflow-x: auto; }
.pb-room-feed table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pb-room-feed th,
.pb-room-feed td { padding: 8px 5px; text-align: left; border-bottom: 1px solid var(--pb-divider); white-space: nowrap; }
.pb-room-feed thead th { color: var(--pb-text-muted); font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; }
.pb-room-feed tbody th { max-width: 180px; overflow: hidden; color: #dbe9f0; font-weight: 650; text-overflow: ellipsis; }
.pb-room-feed tbody th a { color: inherit; text-decoration: none; }
.pb-table-badge,
.pb-room-status { display: inline-block; padding: 3px 5px; border: 1px solid rgba(0, 201, 255, 0.35); border-radius: 3px; color: #c2eaf7; background: rgba(0, 201, 255, 0.06); font-size: 14px; text-transform: uppercase; }
.pb-room-status { color: #c2eaf7; border-color: rgba(0, 201, 255, 0.35); background: rgba(0, 201, 255, 0.06); }
.pb-featured-match { padding: 13px 9px 9px; text-align: center; background: radial-gradient(circle at 50% 30%, rgba(0, 201, 255, 0.12), transparent 46%); }
.pb-featured-match > span { color: var(--pb-cyan); font-size: 14px; text-transform: uppercase; }
.pb-featured-match > div { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin: 13px 0 5px; }
.pb-featured-match > div strong { font: 800 14px/1.1 var(--pb-font-display); text-transform: uppercase; }
.pb-featured-match > div b { color: #fff; font: 900 30px/1 var(--pb-font-display); white-space: nowrap; }
.pb-featured-match p { min-height: 18px; margin: 0 0 9px; color: var(--pb-text-muted); font-size: 14px; }
.pb-match-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--pb-divider); }
.pb-match-list li { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 7px; align-items: center; min-height: 44px; padding: 7px 3px; border-bottom: 1px solid var(--pb-divider); font-size: 14px; }
.pb-match-list li span:nth-of-type(2) { text-align: right; }
.pb-match-list strong { color: #fff; font-size: 14px; }
.pb-match-list small { color: var(--pb-text-muted); }

.pb-community-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
/* Announcements sit on their own row, the full width of the page. A headline
   and a lead paragraph need the horizontal room; a ranking is a narrow column of
   names and does not. Sharing a three-column row squeezed the news into a strip
   too narrow to read and left the boards short. */
.pb-news-panel { grid-column: 1 / -1; }
/* Two crests to a headline row now that there is width for it. */
.pb-news-panel .pb-news-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
@media (max-width: 820px) {
    .pb-news-panel .pb-news-list { grid-template-columns: minmax(0, 1fr); }
}
.pb-data-panel { min-width: 0; padding: 10px; }
.pb-data-panel > [data-pb-section-body] { min-height: 210px; }
.pb-data-panel ul { margin: 0; padding: 0; list-style: none; }
.pb-data-panel li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; align-items: center; min-height: 44px; padding: 6px 2px; border-bottom: 1px solid var(--pb-divider); }
.pb-data-panel li > .pb-record-main { display: flex; gap: 8px; align-items: center; min-width: 0; }
.pb-record-copy { display: grid; min-width: 0; }
.pb-data-panel li .pb-record-copy strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.pb-data-panel li small { color: var(--pb-text-soft); font-size: 14px; text-transform: uppercase; }
.pb-data-panel li > b { font: 800 14px/1 var(--pb-font-display); }
.pb-news-list > article { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; min-height: 58px; padding: 7px 0; border-bottom: 1px solid var(--pb-divider); }
.pb-news-list img { width: 76px; height: 44px; object-fit: cover; border: 1px solid var(--pb-border-soft); border-radius: 3px; }
.pb-news-list small { display: block; overflow: hidden; color: #d491ff; font-size: 14px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.pb-news-list h3 { margin: 3px 0; overflow: hidden; font-size: 14px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.pb-news-list h3 a { color: var(--pb-text-main); text-decoration: none; }
.pb-news-list p { margin: 0; overflow: hidden; color: var(--pb-text-muted); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }

.pb-quick-links { position: relative; padding-top: 12px; border-top: 2px solid transparent; border-image: linear-gradient(90deg, var(--pb-cyan), var(--pb-purple), var(--pb-red)) 1; }
.pb-quick-links h2 { margin: 0 0 9px; font: 850 14px/1 var(--pb-font-display); text-transform: uppercase; }
.pb-quick-links > div { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.pb-quick-links a { --pb-accent: var(--pb-cyan); display: flex; gap: 9px; align-items: center; min-height: 70px; padding: 10px; border: 1px solid color-mix(in srgb, var(--pb-accent) 58%, var(--pb-border)); border-radius: 6px; color: inherit; background: linear-gradient(145deg, color-mix(in srgb, var(--pb-accent) 7%, var(--pb-bg-card)), rgba(3, 13, 22, 0.95)); text-decoration: none; }
.pb-quick-links a:hover { border-color: var(--pb-accent); box-shadow: 0 0 18px color-mix(in srgb, var(--pb-accent) 12%, transparent); transform: translateY(-1px); }
.pb-quick-links a > i { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border: 1px solid var(--pb-accent); border-radius: 50%; color: var(--pb-accent); font: 900 14px/1 var(--pb-font-display); }
.pb-quick-links a > span { display: grid; min-width: 0; }
.pb-quick-links strong { font: 800 14px/1.1 var(--pb-font-display); text-transform: uppercase; }
.pb-quick-links small { margin-top: 3px; color: var(--pb-text-muted); font-size: 14px; }

@media (max-width: 1279px) {
  .pb-hero { grid-template-columns: minmax(0, 1fr) 220px; }
  .pb-quick-links > div { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1023px) {
  .pb-hero { grid-template-columns: minmax(0, 1fr) minmax(210px, 0.42fr); }
  .pb-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .pb-mode-card h3,
  .pb-mode-card p { max-width: 80%; }
  .pb-live-grid { grid-template-columns: 1fr; }
  .pb-community-grid { grid-template-columns: repeat(2, 1fr); }
  .pb-news-panel { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .pb-home { padding-top: 10px; }
  .pb-section { margin-top: 10px; }
  .pb-hero { grid-template-columns: 1fr; min-height: 0; padding: 26px 18px 18px; }
  .pb-hero::before { background: linear-gradient(180deg, rgba(2, 9, 20, 0.5), rgba(2, 9, 20, 0.95) 54%, #020914); }
  .pb-hero__art { object-position: 66% center; opacity: 0.58; }
  .pb-hero__copy { padding-top: 110px; }
  .pb-hero h1 { font-size: clamp(40px, 14vw, 62px); }
  .pb-server-status { min-height: 0; }
  .pb-mode-grid { grid-template-columns: 1fr; }
  .pb-mode-card,
  .pb-mode-card__body { min-height: 205px; }
  .pb-community-grid { grid-template-columns: 1fr; }
  .pb-news-panel { grid-column: auto; }
  .pb-room-feed table,
  .pb-room-feed thead,
  .pb-room-feed tbody,
  .pb-room-feed tr,
  .pb-room-feed th,
  .pb-room-feed td { display: block; }
  .pb-room-feed thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .pb-room-feed tbody tr { display: grid; grid-template-columns: repeat(2, 1fr); gap: 5px 12px; margin-top: 8px; padding: 10px; border: 1px solid var(--pb-divider); border-radius: 5px; }
  .pb-room-feed tbody th,
  .pb-room-feed tbody td { max-width: none; padding: 2px 0; border: 0; white-space: normal; }
  .pb-room-feed tbody th { grid-column: 1 / -1; font-size: 14px; }
  .pb-room-feed td::before { display: block; color: var(--pb-text-soft); content: attr(data-label); font-size: 14px; text-transform: uppercase; }
  .pb-server-status > a,
  .pb-feed > header a,
  .pb-data-panel > header a { min-height: 44px; }
  .pb-quick-links > div { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 479px) {
  .pb-demo-banner { align-items: flex-start; flex-direction: column; }
  .pb-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .pb-kpi { grid-template-columns: 1fr; min-height: 112px; padding: 10px; }
  .pb-kpi__icon { width: 30px; height: 30px; }
  .pb-kpi strong { font-size: 19px; }
  .pb-featured-match > div { gap: 6px; }
  .pb-featured-match > div strong { font-size: 14px; }
  .pb-featured-match > div b { font-size: 24px; }
  .pb-match-list li { grid-template-columns: 1fr auto 1fr; }
  .pb-match-list small { grid-column: 1 / -1; text-align: center; }
  .pb-quick-links > div { gap: 7px; }
  .pb-quick-links a { align-items: flex-start; flex-direction: column; min-height: 96px; }
}

/* ============================================================================
 * Homepage refresh — icons, typography, no inner scrollbars, live scoreboard.
 * Later in the cascade than the original rules, so it overrides them.
 * ========================================================================== */

/* ---- Typography --------------------------------------------------------- */
.pb-hero__copy h1 {
    font: 800 clamp(38px, 5.4vw, 74px)/0.94 var(--pb-font-display);
    letter-spacing: -0.015em;
    text-transform: uppercase;
}
.pb-hero__subtitle {
    font: 600 clamp(14px, 1.4vw, 19px)/1.2 var(--pb-font-condensed);
    letter-spacing: 0.10em;
    text-transform: uppercase;
}
.pb-eyebrow {
    font: 500 12px/1 var(--pb-font-condensed);
    letter-spacing: 0.26em;
    text-transform: uppercase;
}
.pb-card > header h2,
.pb-card > header h3,
.pb-feed > header h3,
.pb-data-panel > header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 500 13px/1 var(--pb-font-condensed);
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.pb-kpi strong,
.pb-data-panel li b {
    font-family: var(--pb-font-display);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.pb-kpi span:first-of-type,
.pb-quick-links strong {
    font-family: var(--pb-font-condensed);
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.pb-room-feed thead th {
    font: 500 11px/1 var(--pb-font-condensed);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ---- Live rooms table --------------------------------------------------- */
.pb-room-status {
    display: inline-block;
    padding: 2px 9px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 99px;
    font: 500 11px/1.5 var(--pb-font-condensed);
    letter-spacing: 0.10em;
    text-transform: uppercase;
}
.pb-room-status--open { border-color: rgba(0, 224, 158, 0.45); color: #55f0c0; background: rgba(0, 224, 158, 0.10); }
.pb-room-status--in_progress,
.pb-room-status--live { border-color: rgba(255, 96, 96, 0.45); color: #ff8f8f; background: rgba(255, 96, 96, 0.10); }
.pb-room-status--waiting { border-color: rgba(255, 190, 80, 0.45); color: #ffc866; background: rgba(255, 190, 80, 0.10); }
.pb-room-feed tbody tr:hover { background: rgba(0, 201, 255, 0.045); }

/* ---- Results & rankings rows -------------------------------------------- */
.pb-record-rank {
    display: grid;
    flex: 0 0 22px;
    place-items: center;
    width: 22px;
    color: var(--pb-text-soft);
    font: 700 13px/1 var(--pb-font-display);
    font-variant-numeric: tabular-nums;
}
.pb-data-panel li.pb-result-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}
.pb-result-side {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}
.pb-result-side span {
    /* min-width:0 is what makes the ellipsis work at all. A flex item defaults to
       min-width:auto and refuses to shrink below its content, so an unbroken name
       like "player401269166" pushed the row wider instead of being clipped, and
       the layout collapsed into two lines. */
    min-width: 0;
    overflow: hidden;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pb-result-side--away { justify-content: flex-end; }
.pb-result-score {
    display: inline-flex;
    gap: 4px;
    padding: 3px 11px;
    border: 1px solid rgba(0, 201, 255, 0.22);
    border-radius: 8px;
    background: rgba(0, 201, 255, 0.07);
    font: 700 16px/1 var(--pb-font-display);
    font-variant-numeric: tabular-nums;
}
.pb-result-score i { color: var(--pb-text-soft); font-style: normal; }
/* The status sits under the score, centred between the two names — not flush
   left under the home player, where it read as belonging to them. */
.pb-data-panel li.pb-result-row small {
    /* Own row, spanning every column — NOT column 2.
       Column 2 is auto-sized, so parking the meta line there made it as wide as
       its text: once the finish time was added the score pill stretched and the
       two 1fr name columns collapsed, truncating "NOOB-SAIBOT" to "NOOB-S...".
       Spanning the full width keeps column 2 sized to the score alone. */
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
    color: var(--pb-text-soft);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---- Live match center -------------------------------------------------- */
.pb-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4d4d;
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.65);
    animation: pb-live-pulse 1.8s infinite;
}
@keyframes pb-live-pulse {
    70% { box-shadow: 0 0 0 9px rgba(255, 77, 77, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

/* Stadium image behind the WHOLE Live Match Center, not just the featured match. */
.pb-match-feed.has-stadium {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.pb-match-feed.has-stadium::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background:
        linear-gradient(180deg, rgba(3, 12, 22, 0.80), rgba(3, 12, 22, 0.93) 55%, rgba(3, 12, 22, 0.97)),
        var(--pb-stadium, none);
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

.pb-scoreboard {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    padding: 20px 16px 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 201, 255, 0.18);
    border-radius: 12px;
}
/* When the container carries the stadium, the scoreboard is a translucent panel
   over it; when it does not, it keeps its own subtle backdrop. */
.pb-scoreboard__bg {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 12, 22, 0.55), rgba(3, 12, 22, 0.78)),
        var(--pb-stadium, radial-gradient(circle at 50% 0%, rgba(0, 144, 214, 0.35), transparent 60%));
    background-position: center;
    background-size: cover;
}
.pb-match-feed.has-stadium .pb-scoreboard {
    border-color: rgba(0, 201, 255, 0.28);
    background: rgba(6, 18, 30, 0.35);
}
.pb-match-feed.has-stadium .pb-scoreboard__bg { display: none; }
.pb-scoreboard__side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    min-width: 0;
    text-align: center;
}
.pb-scoreboard__side .pb-crest { --pb-avatar-size: 64px; border-width: 2px; }
.pb-scoreboard__side strong {
    max-width: 100%;
    overflow: hidden;
    font: 600 13px/1.2 var(--pb-font-condensed);
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.pb-scoreboard__core {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}
.pb-scoreboard__mode {
    padding: 2px 9px;
    border-radius: 99px;
    background: rgba(0, 201, 255, 0.14);
    color: #8fe3ff;
    font: 500 10px/1.6 var(--pb-font-condensed);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.pb-scoreboard__score {
    display: flex;
    gap: 8px;
    align-items: baseline;
    color: #fff;
    font: 800 46px/1 var(--pb-font-display);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 26px rgba(0, 201, 255, 0.35);
}
.pb-scoreboard__score i { color: rgba(255, 255, 255, 0.34); font-size: 30px; font-style: normal; }
.pb-scoreboard__minute {
    color: #55f0c0;
    font: 700 15px/1 var(--pb-font-display);
    font-variant-numeric: tabular-nums;
}
.pb-scoreboard__phase {
    color: var(--pb-text-soft);
    font: 500 10px/1.4 var(--pb-font-condensed);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.pb-scoreboard__venue {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    color: var(--pb-text-soft);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}
.pb-scoreboard__cta { grid-column: 1 / -1; justify-self: center; margin-top: 8px; }

.pb-match-list { display: grid; gap: 2px; margin: 12px 0 0; padding: 0; list-style: none; }
.pb-match-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 42px;
    gap: 8px;
    align-items: center;
    padding: 8px 6px;
    border-radius: 8px;
}
.pb-match-list li:hover { background: rgba(0, 201, 255, 0.05); }
.pb-match-list__side { display: flex; min-width: 0; align-items: center; gap: 7px; }
.pb-match-list__side span { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.pb-match-list__side--away { justify-content: flex-end; }
.pb-match-list__side .pb-crest { --pb-avatar-size: 26px; }
.pb-match-list__score {
    display: inline-flex;
    gap: 3px;
    font: 700 15px/1 var(--pb-font-display);
    font-variant-numeric: tabular-nums;
}
.pb-match-list__score i { color: var(--pb-text-soft); font-style: normal; }
.pb-match-list li small {
    color: #55f0c0;
    font: 700 12px/1 var(--pb-font-display);
    text-align: right;
}

/* ---- Global server status ----------------------------------------------- */
.pb-server-status {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(0, 201, 255, 0.22);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(6, 24, 38, 0.92), rgba(3, 12, 22, 0.92));
    backdrop-filter: blur(4px);
}
.pb-ss__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pb-ss__head small {
    color: var(--pb-text-soft);
    font: 500 10px/1 var(--pb-font-condensed);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.pb-ss__pill {
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(0, 224, 158, 0.12);
    color: #55f0c0;
    font: 700 10px/1.6 var(--pb-font-display);
    white-space: nowrap;
}
.pb-ss__state {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #55f0c0;
    font: 800 26px/1 var(--pb-font-display);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}
.pb-server-status--offline .pb-ss__state { color: #ff8f8f; }
.pb-server-status--degraded .pb-ss__state,
.pb-server-status--stale .pb-ss__state { color: #ffc866; }

.pb-ss__chart {
    position: relative;
    height: 74px;
    margin: 0;
    color: var(--pb-cyan);
}
.pb-server-status--offline .pb-ss__chart { color: #ff8f8f; }
.pb-ss__chart svg { width: 100%; height: 60px; overflow: visible; }
.pb-ss__chart figcaption {
    display: flex;
    justify-content: space-between;
    color: var(--pb-text-soft);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.pb-ss__nochart {
    margin: 0;
    padding: 14px 4px;
    color: var(--pb-text-soft);
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.pb-ss__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; }
.pb-ss__stats div {
    padding: 7px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    text-align: center;
}
.pb-ss__stats dt {
    color: var(--pb-text-soft);
    font: 500 9px/1.3 var(--pb-font-condensed);
    letter-spacing: 0.10em;
    text-transform: uppercase;
}
.pb-ss__stats dd {
    margin: 3px 0 0;
    font: 700 15px/1 var(--pb-font-display);
    font-variant-numeric: tabular-nums;
}
.pb-ss__stats dd.is-great { color: #55f0c0; }
.pb-ss__stats dd.is-good { color: #9ee37d; }
.pb-ss__stats dd.is-fair { color: #ffc866; }
.pb-ss__stats dd.is-poor { color: #ff8f8f; }

.pb-ss__actions { display: flex; gap: 6px; }
.pb-ss__actions .pb-button { flex: 1; justify-content: center; gap: 6px; }
.pb-ss__foot { margin: 0; color: var(--pb-text-soft); font-size: 10px; text-align: center; }

/* ---- Quick links -------------------------------------------------------- */
.pb-quick-links a i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: var(--pb-accent, var(--pb-cyan));
    background: color-mix(in srgb, var(--pb-accent, var(--pb-cyan)) 14%, transparent);
    font-style: normal;
}

@media (max-width: 900px) {
    .pb-scoreboard { grid-template-columns: 1fr; }
    .pb-scoreboard__side { flex-direction: row; justify-content: center; }
    .pb-match-list li { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
    .pb-match-list li small { grid-column: 1 / -1; text-align: center; }
    .pb-ss__stats { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Active rooms table ------------------------------------------------- */
.pb-rooms-table th[scope="row"] { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.pb-rooms-table th[scope="row"] small {
    width: 100%;
    color: var(--pb-text-soft);
    font-size: 11px;
    font-weight: 400;
}
/* The competition a room belongs to, read out of its name. Coloured because it
   is the one line in the row that turns an anonymous room into a known fixture. */
.pb-rooms-table th[scope="row"] small.pb-room-comp { color: var(--pb-cyan); font-weight: 600; }
.pb-room-comp a { color: inherit; text-decoration: none; }
.pb-room-comp a:hover { text-decoration: underline; }
.pb-room-lock { display: inline-flex; color: #ffc866; }
.pb-room-players { display: inline-flex; flex-direction: column; gap: 4px; min-width: 62px; }
.pb-room-players b { font: 700 13px/1 var(--pb-font-display); font-variant-numeric: tabular-nums; }
.pb-room-fill { display: block; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.10); }
.pb-room-fill i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #4f7fff, var(--pb-cyan)); }
.pb-room-ping { display: inline-flex; align-items: center; gap: 5px; font: 700 13px/1 var(--pb-font-display); font-variant-numeric: tabular-nums; }
.pb-room-ping.is-great { color: #55f0c0; }
.pb-room-ping.is-good { color: #9ee37d; }
.pb-room-ping.is-fair { color: #ffc866; }
.pb-room-ping.is-poor { color: #ff8f8f; }

.pb-rooms-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 34px 18px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    text-align: center;
}
.pb-rooms-idle .pb-icon { color: rgba(0, 201, 255, 0.45); }
.pb-rooms-idle p { margin: 0; max-width: 46ch; color: var(--pb-text-muted); font-size: 13px; }
.pb-rooms-idle small { color: var(--pb-text-soft); font-size: 11px; }

/* ---- Live match centre: minute, and a list that never overflows ---------- */
.pb-scoreboard__minute {
    padding: 2px 10px;
    border-radius: 99px;
    background: rgba(0, 224, 158, 0.14);
    color: #55f0c0;
    font: 800 17px/1.3 var(--pb-font-display);
    font-variant-numeric: tabular-nums;
}

/* The status column was a fixed 42px, so "Scheduled" ran off the card. It now
   sizes to its content and the names give way instead. */
.pb-match-list li { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(44px, max-content); }
.pb-match-list li small {
    overflow: hidden;
    color: var(--pb-text-soft);
    font: 500 10px/1.25 var(--pb-font-condensed);
    letter-spacing: 0.06em;
    text-align: right;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.pb-match-list li small.is-minute {
    color: #55f0c0;
    font: 700 13px/1 var(--pb-font-display);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    text-transform: none;
}

/* ---- Player links --------------------------------------------------------
   A name or face that leads to a public profile. It must not look like a body
   link inside a table or scoreboard — the cue is a colour shift on hover. */
.pb-player-link {
    display: inline-flex;
    align-items: center;
    gap: inherit;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    transition: color .16s ease;
}
.pb-result-side .pb-player-link,
.pb-match-list__side .pb-player-link { gap: inherit; }
.pb-record-main .pb-player-link { gap: 8px; }
.pb-scoreboard__side .pb-player-link {
    flex-direction: column;
    gap: 8px;
    align-items: center;
}
.pb-player-link:hover { color: var(--pb-cyan); }
.pb-player-link:hover .pb-player-avatar,
.pb-player-link:hover .pb-crest {
    border-color: var(--pb-cyan);
    box-shadow: 0 0 0 2px rgba(0, 201, 255, 0.18);
}
.pb-player-link:focus-visible {
    outline: 2px solid var(--pb-cyan);
    outline-offset: 2px;
    border-radius: 6px;
}
.pb-rooms-table .pb-player-link { display: inline; }

/* ---- Club crests ---------------------------------------------------------
   The club a side played as. Derived from the Konami team id, so it appears
   without any lookup; the name is a tooltip to keep rows compact. */
.pb-club-crest {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.9;
}
.pb-scoreboard__club {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    overflow: hidden;
    color: var(--pb-text-soft);
    font: 500 10px/1.3 var(--pb-font-condensed);
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.pb-scoreboard__club img { width: 16px; height: 16px; object-fit: contain; }

/* ---- Goal feed on the scoreboard ---- */
.pb-scoreboard__goals {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
    margin: 10px 0 0;
    padding: 8px 0 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    list-style: none;
}
.pb-scoreboard__goals li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}
/* Away goals mirror to the right, so a glance shows who scored. */
.pb-scoreboard__goals li.is-away { flex-direction: row-reverse; text-align: right; }
.pb-scoreboard__goals .pb-icon { color: #55f0c0; }
.pb-scoreboard__goals b {
    color: #55f0c0;
    font: 700 12px/1 var(--pb-font-display);
    font-variant-numeric: tabular-nums;
}
.pb-scoreboard__goals small { color: var(--pb-text-soft); font-size: 10px; }

/* A goal names two things that are not the same: the footballer who scored and
   the human who was playing them. The footballer leads; the account follows in
   a lighter weight and is what links to a profile. */
.pb-goal-scorer { font-weight: 600; color: var(--pb-text-main); }
.pb-goal-by {
    color: var(--pb-text-soft);
    font-size: 11px;
    font-style: normal;
    letter-spacing: 0.04em;
}
.pb-goal-by a { color: inherit; text-decoration: none; }
.pb-goal-by a:hover { color: var(--pb-cyan); }

/* ══ Ranking boards ════════════════════════════════════════════════════════
   The Rankings panel answers more than one question — who turns up, who scores,
   who concedes least — so it holds several boards instead of one arbitrary
   table. Tabs to choose; it also advances on its own every 20 seconds, because
   most visitors never click anything. */
.pb-board-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    padding: 3px;
    border: 1px solid var(--pb-border);
    border-radius: 999px;
    background: rgba(4, 16, 28, 0.6);
}

.pb-board-tab {
    flex: 1 1 0;
    min-width: 0;
    padding: 6px 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--pb-text-muted);
    font: 600 11px/1.2 var(--pb-font-condensed);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.pb-board-tab:hover { color: #dff4ff; }

.pb-board-tab.is-active {
    color: #041018;
    background: linear-gradient(135deg, var(--pb-cyan), #4f7fff);
    box-shadow: 0 4px 14px -6px rgba(0, 201, 255, 0.7);
}

/* Boards are stacked in one grid cell so the panel keeps a steady height while
   they swap; only the active one takes part in layout. */
.pb-boards { display: grid; }
.pb-boards > .pb-board { grid-area: 1 / 1; }

.pb-board__caption {
    margin: 0 0 6px;
    color: var(--pb-text-muted);
    font: 600 10px/1.2 var(--pb-font-condensed);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* The swap: the outgoing board is simply hidden, and the incoming one rises a
   few pixels as it fades. Cheap, and it reads as a change rather than a flicker. */
.pb-board.is-active {
    animation: pb-board-in 0.42s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@keyframes pb-board-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* Each row lands just after the one above it, so the board assembles instead of
   appearing all at once. Six rows, so six steps and no more. */
.pb-board.is-active li { animation: pb-board-row-in 0.4s ease both; }
.pb-board.is-active li:nth-child(1) { animation-delay: 0.03s; }
.pb-board.is-active li:nth-child(2) { animation-delay: 0.07s; }
.pb-board.is-active li:nth-child(3) { animation-delay: 0.11s; }
.pb-board.is-active li:nth-child(4) { animation-delay: 0.15s; }
.pb-board.is-active li:nth-child(5) { animation-delay: 0.19s; }
.pb-board.is-active li:nth-child(6) { animation-delay: 0.23s; }

@keyframes pb-board-row-in {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    /* No rotation is started in JS either; what is on screen stays there. */
    .pb-board.is-active,
    .pb-board.is-active li { animation: none; }
}
