@layer components {
html[data-route="/bracket"]{

  /* live-bracket count badge in the header */
  .bk-live-count{
    align-self:center; font-family:var(--f-mono); font-size:16px; font-weight:700;
    letter-spacing:.12em; color:var(--red-primary);
    padding:2px 8px; border:1px solid rgba(255,26,26,.35); border-radius:999px;
  }
  .bk-live-count:empty{ display:none; }

  /* switcher (current view) + year bar (history) — chip rows */
  .bk-switcher, .bk-yearbar{
    display:flex; flex-wrap:wrap; gap:8px; align-items:center;
    padding:0 24px 4px; margin:0;
  }
  .bk-chip{
    display:inline-flex; align-items:center; gap:6px;
    padding:8px 14px; border-radius:999px;
    font-family:var(--f-body); font-weight:700; font-size:16px;
    letter-spacing:.1em; text-transform:uppercase;
    background:var(--bg-surface); color:var(--text-muted);
    border:1px solid var(--hairline-2); cursor:pointer;
    transition:background .18s, color .18s, border-color .18s;
    white-space:nowrap;
  }
  .bk-chip:hover, .bk-chip:focus-visible{ color:var(--white-bright); border-color:var(--red-primary); }
  .bk-chip--active{
    background:rgba(255,26,26,.15); color:var(--white-bright);
    border-color:var(--red-primary);
    box-shadow:0 0 0 1px var(--red-primary), 0 0 14px rgba(220,31,46,.15);
  }
  .bk-chip--ghost{ border-style:dashed; color:var(--text-muted); }
  .bk-chip--nodata{ opacity:.45; }
  .bk-chip--nodata:hover{ opacity:.7; }
  .bk-chip-ic{ font-size:16px; }
  .bk-chip-note{ color:var(--text-muted); font-weight:600; }

  /* always-visible season selector bar (CFFSeason.mountToggle target) */
  .bk-season-bar{
    display:flex; align-items:center; justify-content:flex-end;
    padding:10px 24px 0;
  }
  .bk-season-bar:empty{ display:none; }

  /* first-round bye tag on a team row */
  .bk-bye-tag{
    display:inline-block; margin-left:6px; vertical-align:middle;
    font-family:var(--f-mono); font-size:16px; font-weight:700; letter-spacing:.12em;
    color:var(--gray-light); background:rgba(255,255,255,.06);
    border:1px solid var(--hairline-2); border-radius:3px; padding:1px 4px;
    text-transform:uppercase;
  }

  /* empty state (a season with no bracket data — never fake/filler) */
  .bk-empty{ padding:48px 24px; }
  .bk-empty-inner{
    max-width:520px; margin:0 auto; text-align:center;
    background:var(--bg-surface); border:1px solid var(--hairline-2);
    border-radius:14px; padding:36px 28px;
  }
  .bk-empty-icon{ font-size:40px; display:block; margin-bottom:14px; opacity:.8; }
  .bk-empty-msg{ color:var(--text-muted); font-size:16px; line-height:1.5; margin:0; }

  /* inline modal message (validation / result) — never yellow */
  .bk-modal-msg{ min-height:16px; margin:4px 0 12px; font-size:16px; color:var(--text-muted); }
  .bk-modal-msg--err{ color:var(--red-bright); }
  .bk-modal-msg--ok{ color:#3dba6e; }

  /* mobile: tighten chip rows + let the tree scroll on small screens */
  @media (max-width:560px){
    .bk-switcher, .bk-yearbar{ padding:0 12px 4px; gap:6px; flex-wrap:nowrap; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
    .bk-switcher::-webkit-scrollbar, .bk-yearbar::-webkit-scrollbar{ display:none; }
    .bk-chip{ padding:7px 11px; font-size:16px; letter-spacing:.08em; flex-shrink:0; }
    .bk-live-count{ font-size:16px; flex-shrink:0; }
    .bk-empty{ padding:32px 12px; }
    .bk-empty-inner{ padding:28px 18px; }
  }

  /* ── Page Header ──────────────────────────────────────── */
  .bk-page-header {
    background: var(--sns-grad-page-header);
    border-bottom: 1px solid var(--hairline-2);
    padding: 0;
    /* Prevent button labels from escaping the header edge on narrow viewports. */
    overflow: hidden;
  }
  .bk-page-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 24px 20px;
    max-width: var(--sns-app-max);
    margin: 0 auto;
  }
  .bk-title-block { flex: 1; min-width: 0; }
  .bk-page-title {
    font-family: var(--f-display);
    font-size: 38px;
    letter-spacing: var(--sns-ls-display);
    color: var(--white-bright);
    line-height: var(--sns-lh-title);
    margin: 0;
  }
  .bk-page-subtitle {
    font-family: var(--f-mono);
    font-size: var(--sns-fs-11);
    letter-spacing: var(--sns-ls-eyebrow);
    color: var(--white-bright);
    margin: 4px 0 0;
    font-weight: 700;
    /* Truncate cleanly when the champion name makes this overflow on mobile. */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .bk-header-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
  }
  .bk-btn-icon {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
  }

  /* ── Type Tabs ────────────────────────────────────────── */
  .bk-type-tabs {
    display: flex;
    gap: 2px;
    padding: 0 24px;
    border-bottom: 1px solid var(--hairline);
    max-width: var(--sns-app-max);
    margin: 0 auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .bk-type-tab {
    font-family: var(--f-mono);
    font-size: var(--sns-fs-11);
    font-weight: 500;
    letter-spacing: var(--sns-ls-eyebrow);
    color: var(--gray-light);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 14px 20px;
    cursor: pointer;
    text-transform: uppercase;
    transition: color var(--sns-dur-base) var(--sns-ease-out),
                border-color var(--sns-dur-base) var(--sns-ease-out);
    white-space: nowrap;
    min-height: var(--sns-touch-target);
  }
  .bk-type-tab:hover { color: var(--white-bright); }
  .bk-type-tab--active {
    color: var(--red-primary);
    border-bottom-color: var(--red-primary);
    font-weight: 700;
  }

  /* ── Skeleton Loading ─────────────────────────────────── */
  .bk-skeleton {
    padding: 24px;
    max-width: var(--sns-app-max);
    margin: 0 auto;
  }
  .bk-skeleton-tree {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding-bottom: 16px;
  }
  .bk-skeleton-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 220px;
  }
  .bk-skeleton-head {
    width: 140px;
    height: 16px;
    border-radius: var(--sns-radius-sm);
    background: var(--bg-surface-2);
    animation: bracket-bk-shimmer 1.8s ease-in-out infinite;
  }
  .bk-skeleton-match {
    width: 240px;
    height: 88px;
    border-radius: var(--sns-radius-lg);
    background: var(--bg-surface-2);
    animation: bracket-bk-shimmer 1.8s ease-in-out infinite;
  }
  .bk-skeleton-col:nth-child(2) .bk-skeleton-match { animation-delay: 0.15s; }
  .bk-skeleton-col:nth-child(3) .bk-skeleton-match { animation-delay: 0.3s; }
  .bk-skeleton-col:nth-child(4) .bk-skeleton-match { animation-delay: 0.45s; }

  /* ── Error State ──────────────────────────────────────── */
  .bk-error {
    padding: 64px 24px;
    text-align: center;
    max-width: var(--sns-app-max);
    margin: 0 auto;
  }
  .bk-error-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .bk-error-icon {
    font-size: 40px;
    color: var(--red-primary);
  }
  .bk-error-msg {
    font-family: var(--f-body);
    font-size: var(--sns-fs-17);
    color: var(--white-bright);
    font-weight: 600;
    margin: 0;
  }
  .bk-error-detail {
    font-family: var(--f-mono);
    font-size: var(--sns-fs-12);
    color: var(--gray-light);
    margin: 0;
  }

  /* ── Bracket Tree ─────────────────────────────────────── */
  .bk-tree-wrap {
    padding: 24px;
    max-width: var(--sns-app-max);
    margin: 0 auto;
    /* Contain the horizontally-scrollable tree within this box so the
       wide bracket doesn't create a page-level horizontal scrollbar
       that would clip the header and other full-width sections. */
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
  }
  .bk-tree-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    padding-bottom: 16px;
    /* Explicit 100% width ensures the scroll container fills the
       tree-wrap and never bleeds past it. */
    width: 100%;
    box-sizing: border-box;
  }
  .bk-tree {
    display: flex;
    gap: 48px;
    min-width: max-content;
    position: relative;
    padding: 8px 0;
    /* Sit above the spark canvas (z-index:1) so the spark reads as a
       flourish on the connector lines, behind the match cards. */
    z-index: 2;
  }
  .bk-connectors {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }
  .bk-connectors line,
  .bk-connectors path {
    stroke: var(--gray-border);
    stroke-width: 2;
    fill: none;
  }
  .bk-connectors .bk-conn-winner {
    stroke: var(--accent, #FF2D2D);
    stroke-width: 2.5;
    filter: drop-shadow(0 0 4px rgba(255,45,45,.35));
  }

  /* ── Spark-trail flourish ─────────────────────────────────
     A spark travels along the winner-path connectors, lighting each
     advancing team line as it passes. Purely decorative; the canvas
     sits above the connectors but below the match cards so the spark
     reads as a flourish on the line, not over the text.
     Source: SnapDraft v5 spark-trail reference
     (apps/web/snapdraft_html/bracket/index.html). */
  .bk-spark-canvas {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
  }
  .bk-team--winner.bk-spark-lit {
    background: rgba(255,45,45,.10);
    box-shadow: inset 0 0 0 1px rgba(255,45,45,.35),
                0 0 14px rgba(255,45,45,.22);
    transition: background .3s ease, box-shadow .3s ease;
  }

  /* ── Round Columns ────────────────────────────────────── */
  .bk-round {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 250px;
    position: relative;
  }
  .bk-round-header {
    margin-bottom: 16px;
  }
  .bk-round-name {
    font-family: var(--f-display);
    font-size: var(--sns-fs-18);
    letter-spacing: var(--sns-ls-base);
    color: var(--white-bright);
    margin: 0;
    line-height: var(--sns-lh-title);
  }
  .bk-round-sub {
    font-family: var(--f-mono);
    font-size: var(--sns-fs-10);
    letter-spacing: var(--sns-ls-eyebrow);
    color: var(--gray-light);
    margin: 2px 0 0;
  }
  .bk-round--current .bk-round-name {
    color: var(--red-primary);
  }
  .bk-round--current .bk-round-header::after {
    content: 'LIVE';
    font-family: var(--f-mono);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: var(--sns-ls-button);
    color: var(--white-bright);
    background: var(--red-primary);
    padding: 2px 8px;
    border-radius: var(--sns-radius-xs);
    margin-left: 10px;
    vertical-align: middle;
    animation: bracket-bk-pulse 2s ease-in-out infinite;
  }

  /* ── Matchup Cards ────────────────────────────────────── */
  .bk-matches {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex: 1;
    gap: 12px;
  }
  .bk-match {
    background: var(--bg-surface);
    border: 1px solid var(--hairline-2);
    border-radius: var(--sns-radius-lg);
    overflow: hidden;
    transition: transform var(--sns-dur-fast) var(--sns-ease-out),
                box-shadow var(--sns-dur-fast) var(--sns-ease-out),
                border-color var(--sns-dur-fast) var(--sns-ease-out);
    animation: bracket-bk-card-in 450ms var(--sns-ease-snappy) both;
  }
  .bk-match:hover {
    transform: translateY(-2px);
    box-shadow: var(--sns-shadow-card-hover);
    border-color: rgba(255,26,26,.3);
  }
  .bk-match--championship {
    border-color: #FFFFFF;
    box-shadow: 0 0 16px rgba(255,45,45,.2);
  }
  .bk-match--championship:hover {
    box-shadow: 0 0 24px rgba(255,45,45,.4);
  }

  /* Team rows inside match cards */
  .bk-team {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 0;
    padding: 10px 14px;
    cursor: pointer;
    transition: background var(--sns-dur-base) var(--sns-ease-out);
  }
  .bk-team:first-child {
    border-bottom: 1px solid var(--hairline);
  }
  .bk-team:hover {
    background: rgba(255,255,255,.03);
  }
  .bk-team--winner {
    background: rgba(255,26,26,.06);
  }
  .bk-team--winner .bk-team-name {
    color: var(--white-bright);
    font-weight: 700;
  }
  .bk-team--winner .bk-team-score {
    color: var(--white-bright);
    font-weight: 700;
  }
  .bk-team--loser {
    opacity: 0.5;
  }
  .bk-team-seed {
    font-family: var(--f-mono);
    font-size: var(--sns-fs-11);
    color: var(--gray-light);
    font-weight: 500;
    text-align: center;
    min-width: 28px;
  }
  .bk-team-name {
    font-family: var(--f-body);
    font-size: var(--sns-fs-14);
    color: var(--white-bright);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 8px;
  }
  .bk-team-score {
    font-family: var(--f-numeral);
    font-size: var(--sns-fs-14);
    color: var(--gray-light);
    font-weight: 500;
    text-align: right;
    min-width: 32px;
  }

  /* Match venue label */
  .bk-match-venue {
    font-family: var(--f-mono);
    font-size: 16px;
    letter-spacing: var(--sns-ls-mono);
    color: var(--text-faint);
    padding: 4px 14px 6px;
    text-transform: uppercase;
  }

  /* ── Winner Path Animation ────────────────────────────── */
  .bk-match--decided .bk-team--winner {
    position: relative;
  }
  .bk-match--decided .bk-team--winner::after {
    content: '\2713';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white-bright);
    font-size: 16px;
    opacity: 0;
    animation: bracket-bk-check-in 300ms var(--sns-ease-snappy) forwards;
    animation-delay: 600ms;
  }

  /* ── Losers Bracket ───────────────────────────────────── */
  .bk-losers-wrap {
    padding: 0 24px 24px;
    max-width: var(--sns-app-max);
    margin: 0 auto;
  }
  .bk-section-title {
    font-family: var(--f-display);
    font-size: var(--sns-fs-24);
    letter-spacing: var(--sns-ls-base);
    color: var(--white-bright);
    margin: 0 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--hairline);
  }

  /* ── Modal ────────────────────────────────────────────── */
  .bk-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--sns-z-modal);
    padding: 24px;
    animation: bracket-bk-fade-in 200ms ease;
  }
  /* CRITICAL (#848): the explicit display:flex above out-specifies the UA
     [hidden]{display:none} rule, so without this the overlay stays painted
     on page load — covering the viewport at z-modal and trapping the user
     with no working close affordance. Mirror the established pattern used by
     the scores/leagues pages: re-assert display:none when [hidden] is set. */
  .bk-modal-overlay[hidden] {
    display: none !important;
  }
  .bk-modal {
    background: var(--bg-surface);
    border: 1px solid var(--gray-border);
    border-radius: var(--sns-radius-2xl);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--sns-shadow-modal);
    animation: bracket-bk-modal-in 300ms var(--sns-ease-snappy);
  }
  .bk-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
  }
  .bk-modal-title {
    font-family: var(--f-display);
    font-size: var(--sns-fs-24);
    letter-spacing: var(--sns-ls-base);
    color: var(--white-bright);
    margin: 0;
  }
  .bk-modal-close {
    background: none;
    border: none;
    color: var(--gray-light);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color var(--sns-dur-base) var(--sns-ease-out);
    min-width: var(--sns-touch-target);
    min-height: var(--sns-touch-target);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .bk-modal-close:hover { color: var(--white-bright); }
  .bk-modal-body {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .bk-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .bk-label {
    font-family: var(--f-mono);
    font-size: var(--sns-fs-10);
    font-weight: 700;
    letter-spacing: var(--sns-ls-button);
    color: var(--white-bright);
    text-transform: uppercase;
  }
  .bk-input,
  .bk-select {
    font-family: var(--f-body);
    font-size: var(--sns-fs-14);
    color: var(--white-bright);
    background: var(--bg-surface-2);
    border: 1px solid var(--gray-border);
    border-radius: var(--sns-radius-md);
    padding: 10px 14px;
    outline: none;
    transition: border-color var(--sns-dur-base) var(--sns-ease-out),
                box-shadow var(--sns-dur-base) var(--sns-ease-out);
    min-height: var(--sns-touch-target);
  }
  .bk-input::placeholder { color: var(--text-faint); }
  .bk-input:focus,
  .bk-select:focus {
    border-color: var(--red-primary);
    box-shadow: 0 0 0 2px rgba(255,26,26,.2);
  }
  .bk-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8A8A' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
  }
  .bk-select option {
    background: var(--black-bg);
    color: var(--white-bright);
  }

  /* ── Reduced Motion ───────────────────────────────────── */
  @media (prefers-reduced-motion: reduce) {
    .bk-match { animation: none; }
    .bk-skeleton-match,
    .bk-skeleton-head { animation: none; opacity: 0.4; }
    .bk-round--current .bk-round-header::after { animation: none; }
    .bk-match--decided .bk-team--winner::after { animation: none; opacity: 1; }
    .bk-modal-overlay,
    .bk-modal { animation: none; }
    .bk-connectors .bk-conn-winner { filter: none; }
    /* Spark-trail is a motion flourish — disable it entirely. The winner
       rows are still highlighted via the static lit state (applied without
       animation by script.js) so the meaning survives. */
    .bk-spark-canvas { display: none !important; }
    .bk-team--winner.bk-spark-lit { transition: none; }
  }

  /* ── Desktop (>767px) ─────────────────────────────────── */
  @media (min-width: 768px) {
    .bk-tree { gap: 56px; }
    .bk-round { min-width: 270px; }
    .bk-match { min-width: 260px; }
  }

  /* ── Tablet / Small Desktop ───────────────────────────── */
  @media (max-width: 767px) {
    .bk-page-header-inner {
      flex-direction: column;
      align-items: flex-start;
      padding: 18px 16px 14px;
    }
    .bk-page-title { font-size: 30px; }
    .bk-header-actions { width: 100%; }
    .bk-header-actions .btn { flex: 1; justify-content: center; }
    .bk-type-tabs { padding: 0 16px; }
    .bk-type-tab { padding: 12px 14px; font-size: 16px; }
    .bk-tree-wrap { padding: 16px; }
    .bk-tree { gap: 32px; }
    .bk-round { min-width: 220px; }
    .bk-skeleton { padding: 16px; }
    .bk-losers-wrap { padding: 0 16px 16px; }
  }

  /* ── Narrow Mobile (<=480px) ─────────────────────────── */
  /* 390px devices: tighten cards so the bracket scrolls with
     smaller steps; teams truncate cleanly within each card. */
  @media (max-width: 480px) {
    .bk-round { min-width: 190px; }
    .bk-match { min-width: 185px; }
    .bk-team { padding: 9px 10px; grid-template-columns: 26px 1fr auto; }
    .bk-team-name { font-size: 16px; }
    .bk-team-score { min-width: 26px; }
    .bk-header-actions { flex-direction: column; gap: 8px; }
    .bk-header-actions .btn { min-width: 0; white-space: normal; text-align: center; }
  }

  /* ── Mobile (<=359px) ─────────────────────────────────── */
  @media (max-width: 359px) {
    .bk-page-header-inner { padding: 14px 12px 10px; }
    .bk-page-title { font-size: 26px; }
    .bk-page-subtitle { font-size: 16px; }
    .bk-header-actions { flex-direction: column; }
    .bk-type-tabs { padding: 0 12px; }
    .bk-type-tab { padding: 10px 10px; font-size: 16px; }
    .bk-tree-wrap { padding: 12px; }
    .bk-tree { gap: 24px; }
    .bk-round { min-width: 200px; }
    .bk-match { min-width: 195px; }
    .bk-team { padding: 8px 10px; grid-template-columns: 26px 1fr auto; }
    .bk-team-name { font-size: var(--sns-fs-12); }
    .bk-team-seed { font-size: 16px; }
    .bk-team-score { font-size: var(--sns-fs-12); }
    .bk-modal { border-radius: var(--sns-radius-lg); }
    .bk-modal-body { padding: 16px; }
  }

  /* ============================================================
     DESIGN SYSTEM v2 — FLUID RESPONSIVE LAYER  (Issue #762, FLUID agent)
     ------------------------------------------------------------
     Appended last. CONSUMES contract vars (--fs-fluid-*, --space-fluid-*)
     from tokens.css (Tokens agent) with inline clamp() fallbacks of the
     same intent, so correct regardless of PR merge order. tokens.css is
     not edited here.

     Patterns: Utopia.fyi fluid type/space (CC-BY); CSS-Tricks "Modern
     Fluid Typography Using CSS Clamp"; MDN container queries (CC-BY-SA).
     Range 344→2160px; rem base + vw slope preserves zoom (WCAG 1.4.4).

     NOTE: the bracket TREE is intentionally horizontally-scrollable
     (a tournament tree must not reflow into a column), so we do NOT
     auto-fit it. We fluidize the page title, the section paddings
     (24/16/12px ladder), and the inter-round gap so spacing breathes
     smoothly from 344px to ultrawide instead of stepping.
     ============================================================ */

  /* Page title: one clamp replaces the 38→30→26px step ladder. */
  .bk-page-title{ font-size: var(--fs-fluid-h1, clamp(1.625rem, 1.18rem + 2.0vw, 2.375rem)); } /* 26 → 38px */

  /* Section horizontal/vertical padding: fluid 12→24px. */
  .bk-page-header-inner,
  .bk-tree-wrap,
  .bk-skeleton{ padding: var(--space-fluid-lg, clamp(0.75rem, 0.45rem + 1.5vw, 1.5rem)); }
  .bk-losers-wrap{ padding: 0 var(--space-fluid-lg, clamp(0.75rem, 0.45rem + 1.5vw, 1.5rem)) var(--space-fluid-lg, clamp(0.75rem, 0.45rem + 1.5vw, 1.5rem)); }
  .bk-type-tabs{ padding-left: var(--space-fluid-lg, clamp(0.75rem, 0.45rem + 1.5vw, 1.5rem)); padding-right: var(--space-fluid-lg, clamp(0.75rem, 0.45rem + 1.5vw, 1.5rem)); }

  /* Inter-round gap: fluid 24→56px (was 48 base, 56 desktop, 32/24 mobile). */
  .bk-tree{ gap: var(--space-fluid-xl, clamp(1.5rem, 0.9rem + 2.8vw, 3.5rem)); }

  /* ============================================================
     END DESIGN SYSTEM v2 — FLUID RESPONSIVE LAYER
     ============================================================ */


  /* Championship trophy backdrop (DESIGN_SYSTEM_RESET 2026-05-31 §6.6) — RESTORE the
     CFP trophy behind the bracket tree. Asset /bracket/assets/trophy_bg.png was orphaned
     from this route (wired only in snapdraft_html/bracket). Mounted as a CSS watermark on
     the existing .bk-tree container (position:relative) so no JS/DOM change is needed; a
     chrome-health-safe approach that cannot drift out of the markup again.
     NOTE: this ::before is killed via `display:none !important` in polish.css (2026-06-13
     "KILL the ghost second bracket") — dead/inert, but keeping the accent on-brand (red,
     not gold) here too so a future re-enable doesn't reintroduce the banned gold glow. */
  .bk-tree{position:relative;isolation:isolate}
  .bk-tree::before{
    content:"";position:absolute;z-index:-1;pointer-events:none;
    right:clamp(4px,2vw,40px);top:48px;
    width:min(42%,460px);height:min(46%,440px);
    background:url('/bracket/assets/trophy_bg.png') center/contain no-repeat;
    opacity:.34;filter:drop-shadow(0 0 30px rgba(255,45,45,.18));
  }
}
}