
/* Pat (2026-07): the scrolling scoreticker "slide banner" belongs on the dashboard
   ONLY — hide it on /leagues. High specificity + !important to beat chrome.js's own
   .scoreticker.sn--c_scoreticker{display:flex!important} show rule. */
html[data-route="/leagues"] #score-ticker,
html[data-route="/leagues"] .scoreticker.sn--c_scoreticker { display: none !important; }

html[data-route="/leagues"] .st-avatar {
  border-radius: 8px;
  object-fit: contain;
}
html[data-route="/leagues"] .mu-logo,
html[data-route="/leagues"] .sn--c_matchups .mu-team-stack .mu-logo {
  border-radius: 8px;
  object-fit: contain;
}
html[data-route="/leagues"] .inv-helmet {
  border-radius: 8px;
  object-fit: contain;
}
@layer components {
html[data-route="/leagues/new"]{

  /* ── Layout ─────────────────────────────────────────────────────────── */
  .lcf-row { grid-template-columns: 1fr; }

  .lcf-card {
    max-width: 760px;
    width: 100%;
    margin: 24px auto;
    /* Suppress the global card:hover lift — this is a form card, not a nav card */
    transition: none;
  }
  .lcf-card:hover {
    transform: none;
    border-color: var(--gray-border);
    box-shadow: 0 0 0 1px var(--hairline-2);
  }

  .lcf-head {
    border-bottom: 1px solid var(--hairline-2);
    margin-bottom: 24px;
  }

  /* ── Section labels ─────────────────────────────────────────────────── */
  .lcf-section-label {
    font-family: var(--f-body);
    font-size: 16px;
    letter-spacing: .14em;
    color: #FFFFFF;
    border-bottom: 1px solid var(--hairline-2);
    padding-bottom: 8px;
    margin: 24px 0 16px;
  }

  /* ── Field rows ─────────────────────────────────────────────────────── */
  .lcf-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .lcf-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* ── Labels, inputs, selects ────────────────────────────────────────── */
  .lcf-label {
    font-family: var(--f-body);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--white-bright);
  }

  .lcf-req { color: var(--red-bright); margin-left: 2px; }

  .lcf-hint {
    font-family: var(--f-body);
    font-size: 16px;
    color: var(--text-muted);
    letter-spacing: .04em;
  }

  .lcf-input {
    background: var(--bg-surface-2);
    border: 1px solid var(--gray-border);
    border-radius: 6px;
    padding: 11px 14px;
    font-family: var(--f-body);
    font-size: 16px;
    color: var(--white-bright);
    min-height: 44px;
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
  }
  .lcf-input::placeholder { color: var(--text-faint); }
  .lcf-input:focus {
    outline: none;
    border-color: var(--red-primary);
    box-shadow: 0 0 0 3px rgba(255, 26, 26, .18);
  }
  .lcf-input:invalid:not(:placeholder-shown) {
    border-color: var(--red-bright);
  }

  .lcf-select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%238A8A8A' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
    cursor: pointer;
  }
  .lcf-select option { background: var(--black-card); color: var(--white-bright); }

  /* ── Radio card buttons ─────────────────────────────────────────────── */
  .lcf-radio-group {
    display: flex;
    gap: 10px;
  }

  .lcf-radio-card {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg-surface-2);
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
    min-height: 44px;
  }
  .lcf-radio-card:hover {
    border-color: var(--red-primary);
    background: var(--bg-surface-3);
  }
  .lcf-radio-card.is-selected {
    border-color: var(--red-primary);
    background: rgba(255, 26, 26, .08);
    box-shadow: 0 0 0 1px var(--red-primary);
  }

  .lcf-radio-input {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-border);
    border-radius: 50%;
    flex: 0 0 20px;
    margin-top: 2px;
    cursor: pointer;
    transition: border-color .15s ease;
    background: transparent;
  }
  .lcf-radio-input:checked {
    border-color: var(--red-primary);
    background: var(--red-primary);
    box-shadow: inset 0 0 0 3px var(--bg-surface-2);
  }
  .lcf-radio-input:focus-visible {
    outline: 2px solid var(--red-bright);
    outline-offset: 2px;
  }

  .lcf-radio-body { display: flex; flex-direction: column; gap: 2px; }

  .lcf-radio-title {
    font-family: var(--f-body);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--white-bright);
  }
  .lcf-radio-desc {
    font-family: var(--f-body);
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.4;
  }

  /* ── Draft scheduling note ──────────────────────────────────────────── */
  .lcf-draft-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding: 12px 14px;
    background: rgba(255, 45, 45, .06);
    border: 1px solid rgba(255, 45, 45, .2);
    border-radius: 8px;
    font-family: var(--f-body);
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.5;
  }
  .lcf-draft-note-icon { font-size: 16px; flex: 0 0 auto; margin-top: 1px; }

  /* ── Error banner ───────────────────────────────────────────────────── */
  .lcf-error {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    background: rgba(255, 26, 26, .10);
    border: 1px solid rgba(255, 26, 26, .4);
    border-radius: 8px;
    font-family: var(--f-body);
    font-size: 16px;
    color: var(--red-bright);
    line-height: 1.5;
  }
  .lcf-error[hidden] { display: none; }
  .lcf-error-icon { flex: 0 0 auto; font-size: 16px; margin-top: 1px; }

  /* ── Success panel ──────────────────────────────────────────────────── */
  .lcf-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 32px 24px;
  }
  .lcf-success[hidden] { display: none; }

  .lcf-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a4a1a, #0d2e0d);
    border: 2px solid #2a7a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #4cde4c;
    line-height: 1;
  }

  .lcf-success-title {
    font-family: var(--f-display);
    font-size: 32px;
    letter-spacing: .06em;
    color: var(--white-bright);
    margin: 0;
  }

  .lcf-success-sub {
    font-family: var(--f-body);
    font-size: 16px;
    color: var(--text-muted);
    margin: 0;
    max-width: 420px;
    line-height: 1.6;
  }

  .lcf-invite-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .lcf-invite-wrap[hidden] { display: none; }

  .lcf-invite-label {
    font-family: var(--f-mono);
    font-size: 16px;
    letter-spacing: .14em;
    color: #FFFFFF;
  }

  .lcf-invite-code {
    font-family: var(--f-mono);
    font-size: 24px;
    letter-spacing: .2em;
    color: var(--white-bright);
    background: var(--bg-surface-2);
    border: 1px solid var(--hairline-2);
    border-radius: 8px;
    padding: 10px 24px;
    user-select: all;
  }

  .lcf-go-btn { min-width: 200px; margin-top: 8px; }
  .lcf-success-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
  .lcf-import-btn { min-width: 240px; }
  .lcf-import-btn, .lcf-success-actions .lcf-go-btn { margin-top: 0; }

  /* ── Submit button spinner ──────────────────────────────────────────── */
  .lcf-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: leagues-new-lcf-spin .7s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
  }
  .lcf-spinner[hidden] { display: none; }

  @media (prefers-reduced-motion: reduce) {
    .lcf-spinner { animation-duration: 2s; }
    .lcf-radio-card,
    .lcf-input,
    .lcf-radio-input { transition: none; }
  }

  /* ── #689/#690: custom scoring + roster, conferences, pool, dynasty ───── */
  .lcf-custom-scoring,
  .lcf-custom-roster {
    margin: -4px 0 8px;
    padding: 14px;
    background: var(--bg-surface-2);
    border: 1px solid var(--hairline-2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .lcf-custom-scoring[hidden],
  .lcf-custom-roster[hidden],
  .lcf-keeper-count[hidden],
  .lcf-commish-invite[hidden],
  .lcf-import-pre[hidden],
  .lcf-commish-link[hidden],
  .lcf-draft-sched[hidden] { display: none; }

  .lcf-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .lcf-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--f-body);
    font-size: 16px;
    letter-spacing: .04em;
    color: var(--text-muted);
  }
  .lcf-stat input {
    min-height: 38px;
    font-size: 16px;
    padding: 8px 10px;
  }

  .lcf-conf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }
  .lcf-conf-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    background: var(--bg-surface-2);
    border: 1px solid var(--gray-border);
    border-radius: 7px;
    cursor: pointer;
    font-family: var(--f-body);
    font-size: 16px;
    color: var(--white-bright);
    transition: border-color .15s ease, opacity .15s ease;
    min-height: 44px;
  }
  .lcf-conf-chip:hover { border-color: var(--red-primary); }
  .lcf-conf-chip.is-off { opacity: .5; }
  .lcf-conf-chip input { width: 20px; height: 20px; accent-color: var(--red-primary); cursor: pointer; flex: 0 0 20px; }

  .lcf-pool {
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(255, 45, 45, .05);
    border: 1px solid rgba(255, 45, 45, .2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .lcf-pool-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .lcf-pool-lbl { font-family: var(--f-body); font-size: 16px; color: var(--text-muted); }
  .lcf-pool-val { font-family: var(--f-mono); font-size: 16px; color: var(--white-bright); font-weight: 700; }
  .lcf-pool-warn {
    margin-top: 4px;
    padding: 9px 11px;
    background: rgba(255, 26, 26, .10);
    border: 1px solid rgba(255, 26, 26, .4);
    border-radius: 6px;
    font-family: var(--f-body);
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--red-bright);
  }
  .lcf-pool-warn[hidden] { display: none; }

  .lcf-radio-group--3 { flex-wrap: wrap; }
  .lcf-radio-group--3 .lcf-radio-card { flex: 1 1 30%; min-width: 140px; }

  .lcf-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 12px;
    font-family: var(--f-body);
    font-size: 16px;
    color: var(--white-bright);
    cursor: pointer;
    min-height: 44px; /* ≥44px tap target */
    padding: 4px 0;
  }
  .lcf-check input { width: 20px; height: 20px; accent-color: var(--red-primary); cursor: pointer; flex: 0 0 20px; }

  .lcf-import-pre {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 12px;
    padding: 12px 14px;
    background: rgba(255, 45, 45, .06);
    border: 1px solid rgba(255, 45, 45, .2);
    border-radius: 8px;
    font-family: var(--f-body);
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.5;
  }

  .lcf-commish-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
  }
  .lcf-commish-url {
    font-family: var(--f-mono);
    font-size: 16px;
    color: var(--white-bright);
    background: var(--bg-surface-2);
    border: 1px solid var(--hairline-2);
    border-radius: 8px;
    padding: 10px 16px;
    word-break: break-all;
    user-select: all;
    max-width: 100%;
  }

  .lcf-draft-sched {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(255, 45, 45, .06);
    border: 1px solid rgba(255, 45, 45, .2);
    border-radius: 8px;
    font-family: var(--f-body);
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: left;
  }

  /* #689: custom-scoring save failure — warning tone (amber/red), distinct
     from the informational draft-sched note. */
  .lcf-scoring-warn {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    background: rgba(224, 64, 64, .08);
    border: 1px solid rgba(224, 64, 64, .28);
    border-radius: 8px;
    font-family: var(--f-body);
    font-size: 16px;
    color: var(--text);
    line-height: 1.5;
    text-align: left;
  }
  .lcf-scoring-warn[hidden] { display: none; }
  .lcf-scoring-warn-icon { flex: 0 0 auto; font-size: 16px; margin-top: 1px; }

  @media (max-width: 600px) {
    .lcf-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .lcf-radio-group--3 .lcf-radio-card { flex: 1 1 100%; }
  }

  /* ── Actions row ────────────────────────────────────────────────────── */
  .lcf-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    justify-content: flex-end;
  }
  .lcf-actions .btn { min-width: 160px; flex: 0 0 auto; }

  /* ── Responsive ─────────────────────────────────────────────────────── */
  @media (max-width: 600px) {
    .lcf-field-row { grid-template-columns: 1fr; }
    .lcf-radio-group { flex-direction: column; }
    .lcf-actions {
      flex-direction: column-reverse;
    }
    .lcf-actions .btn { width: 100%; min-height: 48px; flex: 0 0 auto; }
    .lcf-card { margin: 0; }
    .lcf-success-title { font-size: 26px; }
    .lcf-invite-code { font-size: 18px; letter-spacing: .14em; }
  }
}
html[data-route="/leagues/sandbox"]{
  /* ex-:root local overrides (--f-display intentionally omitted — none present) */
  --sb-bg: #0a0a0d;
  --sb-card: rgba(20, 20, 26, 0.96);
  --sb-card-2: rgba(28, 28, 36, 0.92);
  --sb-line: rgba(255, 255, 255, 0.10);
  --sb-line-2: rgba(255, 255, 255, 0.18);
  --sb-text: #f5f5f7;
  --sb-text-dim: rgba(245, 245, 247, 0.70);
  --sb-text-mute: rgba(245, 245, 247, 0.50);
  --sb-accent: #ff3552;      /* SNS red */
  --sb-accent-2: #FF2D2D;    /* SNS brand red (was gold, banned per D-AUDIT-0702) */
  --sb-good: #2cd07e;        /* gain / win */
  --sb-bad: #ff5a5a;         /* loss */
  --sb-user: #ff3552;        /* user-team highlight */
  --sb-glow: 0 0 24px rgba(255, 53, 82, 0.45);

  /* ─── Phase scaffolding ──────────────────────────────────────────── */

  .sb-phase {
    display: none;
    padding: 32px 28px 64px;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--sb-text);
  }
  .sb-phase.is-active {
    display: block;
    animation: leagues-sandbox-sb-phase-in 360ms ease-out both;
  }

  .sb-phase-head {
    margin-bottom: 24px;
  }
  .sb-phase-tag {
    display: inline-block;
    font-family: var(--f-display);
    letter-spacing: 0.18em;
    font-size: 16px;
    color: var(--sb-accent-2);
    border: 1px solid rgba(255, 45, 45, 0.45);
    border-radius: 3px;
    padding: 3px 10px;
    margin-bottom: 12px;
  }
  .sb-phase-title {
    font-family: var(--f-display);
    letter-spacing: 0.06em;
    font-size: clamp(28px, 4vw, 44px);
    margin: 0 0 6px;
    color: var(--sb-text);
  }
  .sb-phase-sub {
    margin: 0;
    color: var(--sb-text-dim);
    font-size: 16px;
  }

  /* ─── Intro ───────────────────────────────────────────────────────── */

  .sb-intro-card {
    background: var(--sb-card);
    border: 1px solid var(--sb-line);
    border-radius: 14px;
    padding: 48px 36px;
    text-align: center;
    margin: 36px auto 0;
    max-width: 720px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  }
  .sb-eyebrow {
    font-family: var(--f-display);
    letter-spacing: 0.22em;
    font-size: 16px;
    color: var(--sb-accent-2);
  }
  .sb-headline {
    font-family: var(--f-display);
    letter-spacing: 0.04em;
    font-size: clamp(28px, 4.5vw, 48px);
    line-height: 1.05;
    margin: 12px 0 18px;
  }
  .sb-sub {
    margin: 0 auto 32px;
    max-width: 560px;
    color: var(--sb-text-dim);
    font-size: 16px;
    line-height: 1.55;
  }

  .sb-cta {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--sb-accent), #c01e3a);
    border: none;
    color: #fff;
    font-family: var(--f-display);
    letter-spacing: 0.10em;
    font-size: 20px;
    padding: 14px 28px;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
    box-shadow: 0 6px 18px rgba(255, 53, 82, 0.35);
  }
  .sb-cta:hover,
  .sb-cta:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 53, 82, 0.55); }
  .sb-cta:active { transform: translateY(0); filter: brightness(0.95); }
  .sb-cta-icon { font-size: 16px; }

  .sb-cta--secondary {
    background: linear-gradient(135deg, #1e1e26, #2a2a36);
    border: 1px solid var(--sb-line-2);
    box-shadow: none;
  }
  .sb-cta--secondary:hover { box-shadow: 0 6px 18px rgba(255, 255, 255, 0.10); }
  .sb-cta--tertiary {
    background: transparent;
    border: 1px solid var(--sb-line-2);
    box-shadow: none;
    color: var(--sb-text-dim);
  }

  .sb-hint {
    margin: 14px 0 24px;
    font-size: 16px;
    color: var(--sb-text-mute);
  }
  .sb-speed {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--sb-line);
    border-radius: 999px;
  }
  .sb-speed-label {
    font-family: var(--f-display);
    letter-spacing: 0.18em;
    color: var(--sb-text-mute);
    padding: 0 12px 0 8px;
    font-size: 16px;
  }
  .sb-speed-btn {
    appearance: none;
    background: transparent;
    color: var(--sb-text-dim);
    border: none;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 16px;
    transition: background 140ms ease, color 140ms ease;
  }
  .sb-speed-btn:hover { color: var(--sb-text); background: rgba(255, 255, 255, 0.06); }
  .sb-speed-btn.is-active {
    background: var(--sb-accent);
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 53, 82, 0.40);
  }

  /* ─── Draft phase ────────────────────────────────────────────────── */

  .sb-draft-stage {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
  .sb-draft-board {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    background: var(--sb-card);
    border: 1px solid var(--sb-line);
    border-radius: 12px;
    padding: 14px;
  }
  .sb-team-col {
    background: var(--sb-card-2);
    border: 1px solid var(--sb-line);
    border-radius: 8px;
    padding: 10px;
    min-height: 280px;
  }
  .sb-team-col.is-user {
    border-color: var(--sb-user);
    box-shadow: 0 0 0 1px rgba(255, 53, 82, 0.35), var(--sb-glow);
  }
  .sb-team-col-name {
    font-family: var(--f-display);
    letter-spacing: 0.06em;
    font-size: 16px;
    color: var(--sb-text);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .sb-team-col-tag {
    font-size: 16px;
    color: var(--sb-accent);
    border: 1px solid var(--sb-accent);
    border-radius: 3px;
    padding: 1px 5px;
  }
  .sb-team-picks {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: "JetBrains Mono", monospace;
    font-size: 16px;
    color: var(--sb-text-dim);
  }
  .sb-team-picks li {
    padding: 3px 0;
    border-bottom: 1px solid var(--sb-line);
    opacity: 0;
    transform: translateY(-6px);
    animation: leagues-sandbox-sb-pick-in 320ms ease-out forwards;
  }
  .sb-team-picks li:last-child { border-bottom: 0; }
  .sb-pick-pos {
    display: inline-block;
    width: auto;
    min-width: 26px;
    margin-right: 6px;
    color: var(--sb-accent-2);
    font-weight: 600;
  }

  .sb-draft-feed {
    background: var(--sb-card);
    border: 1px solid var(--sb-line);
    border-radius: 12px;
    padding: 16px;
    position: sticky;
    top: 88px;
  }
  .sb-feed-title {
    font-family: var(--f-display);
    letter-spacing: 0.18em;
    font-size: 16px;
    color: var(--sb-accent-2);
    margin: 0 0 10px;
  }
  .sb-feed-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 16px;
    max-height: 360px;
    overflow: hidden;
  }
  .sb-feed-list li {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--sb-line);
    color: var(--sb-text-dim);
    opacity: 0;
    transform: translateX(8px);
    animation: leagues-sandbox-sb-feed-in 280ms ease-out forwards;
  }
  .sb-feed-list li:last-child { border-bottom: 0; }
  .sb-feed-name { color: var(--sb-text); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sb-feed-meta { color: var(--sb-text-mute); font-size: 16px; font-family: "JetBrains Mono", monospace; }

  /* ─── Season phase ────────────────────────────────────────────────── */

  .sb-season-stage {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }
  .sb-matchups {
    background: var(--sb-card);
    border: 1px solid var(--sb-line);
    border-radius: 12px;
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .sb-match {
    background: var(--sb-card-2);
    border: 1px solid var(--sb-line);
    border-radius: 8px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    transition: border-color 200ms ease, box-shadow 200ms ease;
  }
  .sb-match.is-user { border-color: var(--sb-user); box-shadow: 0 0 0 1px rgba(255, 53, 82, 0.30); }
  .sb-match-team {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--sb-text);
  }
  .sb-match-team .sb-match-rank {
    display: inline-block;
    font-family: "JetBrains Mono", monospace;
    color: var(--sb-text-mute);
    font-size: 16px;
    margin-right: 4px;
  }
  .sb-match-score {
    font-family: var(--f-display);
    font-size: 26px;
    letter-spacing: 0.04em;
    color: var(--sb-text);
    min-width: 56px;
    text-align: center;
    transition: color 200ms ease;
  }
  .sb-match-score.is-winning { color: var(--sb-good); }
  .sb-match-score.is-losing { color: var(--sb-bad); }
  .sb-match-vs {
    font-family: var(--f-display);
    font-size: 16px;
    color: var(--sb-text-mute);
  }
  .sb-match-row-away { text-align: right; }

  .sb-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .sb-feed, .sb-standings {
    background: var(--sb-card);
    border: 1px solid var(--sb-line);
    border-radius: 12px;
    padding: 14px;
  }
  .sb-rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: rank;
    font-size: 16px;
  }
  .sb-rank-list li {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--sb-line);
    color: var(--sb-text-dim);
    transition: transform 280ms ease, color 200ms ease;
  }
  .sb-rank-list li:last-child { border-bottom: 0; }
  .sb-rank-list li.is-user { color: var(--sb-text); font-weight: 600; }
  .sb-rank-list li.is-user .sb-rank-name::after {
    content: "YOU";
    font-family: var(--f-display);
    font-size: 16px;
    letter-spacing: 0.15em;
    background: var(--sb-user);
    color: #fff;
    padding: 1px 4px;
    border-radius: 2px;
    margin-left: 6px;
    vertical-align: 2px;
  }
  .sb-rank-num {
    font-family: "JetBrains Mono", monospace;
    color: var(--sb-text-mute);
    font-size: 16px;
  }
  .sb-rank-record {
    font-family: "JetBrains Mono", monospace;
    font-size: 16px;
    color: var(--sb-text-mute);
  }

  /* Transactions */
  .sb-txn-trade  .sb-feed-meta { color: var(--sb-accent-2); }
  .sb-txn-waiver .sb-feed-meta { color: var(--sb-good); }
  .sb-txn-nil    .sb-feed-meta { color: #6ec9ff; }
  .sb-txn-booster.sb-feed-meta { color: var(--sb-accent); }
  .sb-txn-injury .sb-feed-meta { color: var(--sb-bad); }

  .sb-nil-float {
    position: fixed;
    pointer-events: none;
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    color: var(--sb-good);
    font-size: 16px;
    animation: leagues-sandbox-sb-nil-float 1800ms ease-out forwards;
    z-index: 9000;
    text-shadow: 0 0 8px rgba(44, 208, 126, 0.65);
  }
  .sb-nil-float.is-spend { color: var(--sb-bad); text-shadow: 0 0 8px rgba(255, 90, 90, 0.65); }

  /* ─── Playoffs phase ─────────────────────────────────────────────── */

  .sb-bracket {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    background: var(--sb-card);
    border: 1px solid var(--sb-line);
    border-radius: 12px;
    padding: 20px;
  }
  .sb-br-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: center;
  }
  .sb-br-col-title {
    font-family: var(--f-display);
    letter-spacing: 0.18em;
    font-size: 16px;
    color: var(--sb-text-mute);
    margin: 0 0 6px;
    text-align: center;
  }
  .sb-br-match {
    background: var(--sb-card-2);
    border: 1px solid var(--sb-line);
    border-radius: 8px;
    padding: 12px;
    display: grid;
    gap: 6px;
    min-height: 80px;
  }
  .sb-br-match.is-live {
    border-color: var(--sb-accent);
    box-shadow: var(--sb-glow);
    animation: leagues-sandbox-sb-pulse 1400ms ease-in-out infinite;
  }
  .sb-br-match.is-final-game {
    border-color: var(--sb-accent-2);
    box-shadow: 0 0 22px rgba(255, 45, 45, 0.35);
  }
  .sb-br-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
    font-size: 16px;
  }
  .sb-br-row.is-winner {
    color: var(--sb-good);
    font-weight: 700;
  }
  .sb-br-seed {
    font-family: "JetBrains Mono", monospace;
    color: var(--sb-text-mute);
    font-size: 16px;
  }
  .sb-br-team {
    color: var(--sb-text);
  }
  .sb-br-score {
    font-family: var(--f-display);
    font-size: 18px;
  }
  .sb-br-bye {
    color: var(--sb-text-mute);
    font-style: italic;
    font-size: 16px;
    text-align: center;
    padding: 14px 0;
  }

  .sb-champion {
    text-align: center;
    margin: 28px auto 0;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 45, 45, 0.22), rgba(255, 53, 82, 0.22));
    border: 1px solid rgba(255, 45, 45, 0.50);
    border-radius: 14px;
    max-width: 480px;
    animation: leagues-sandbox-sb-champ-in 600ms ease-out both;
    box-shadow: var(--sb-glow);
  }
  .sb-champion-eyebrow {
    font-family: var(--f-display);
    letter-spacing: 0.22em;
    color: var(--sb-accent-2);
    font-size: 16px;
  }
  .sb-champion-name {
    display: block;
    font-family: var(--f-display);
    letter-spacing: 0.05em;
    font-size: clamp(28px, 4.5vw, 46px);
    margin-top: 6px;
    color: #fff;
    text-shadow: 0 0 18px rgba(255, 53, 82, 0.65);
  }

  /* ─── Recap phase ────────────────────────────────────────────────── */

  .sb-recap-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
  }
  .sb-recap-card {
    background: var(--sb-card);
    border: 1px solid var(--sb-line);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    animation: leagues-sandbox-sb-recap-in 480ms ease-out both;
  }
  .sb-recap-card:nth-child(1) { animation-delay: 0ms; }
  .sb-recap-card:nth-child(2) { animation-delay: 90ms; }
  .sb-recap-card:nth-child(3) { animation-delay: 180ms; }
  .sb-recap-card:nth-child(4) { animation-delay: 270ms; }
  .sb-recap-eyebrow {
    font-family: var(--f-display);
    letter-spacing: 0.18em;
    font-size: 16px;
    color: var(--sb-accent-2);
  }
  .sb-recap-stat {
    display: block;
    font-family: var(--f-display);
    letter-spacing: 0.04em;
    font-size: 38px;
    color: var(--sb-text);
    margin: 8px 0 4px;
    line-height: 1.0;
  }
  .sb-recap-stat--small { font-size: 22px; }
  .sb-recap-meta { color: var(--sb-text-dim); font-size: 16px; }

  .sb-recap-cta {
    text-align: center;
    padding: 24px 16px;
    background: var(--sb-card);
    border: 1px solid var(--sb-line);
    border-radius: 12px;
  }
  .sb-recap-cta-text {
    font-family: var(--f-display);
    letter-spacing: 0.06em;
    font-size: clamp(22px, 3.5vw, 32px);
    margin: 0 0 18px;
  }
  .sb-recap-cta .sb-cta { margin: 0 6px 8px; }

  /* ─── Mobile ──────────────────────────────────────────────────────── */

  @media (max-width: 880px) {
    .sb-phase { padding: 20px 12px 48px; }
    .sb-draft-stage { grid-template-columns: 1fr; }
    .sb-draft-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sb-draft-feed { position: static; top: auto; }
    .sb-season-stage { grid-template-columns: 1fr; }
    .sb-matchups { grid-template-columns: 1fr; }
    .sb-bracket { grid-template-columns: 1fr; gap: 14px; }
    .sb-recap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 480px) {
    .sb-draft-board { grid-template-columns: 1fr; }
    .sb-recap-grid { grid-template-columns: 1fr; }
    .sb-headline { font-size: 28px; }
    .sb-intro-card { padding: 32px 18px; }
  }

  /* ─── Reduced motion ─────────────────────────────────────────────── */

  @media (prefers-reduced-motion: reduce) {
    .sb-phase,
    .sb-phase.is-active,
    .sb-team-picks li,
    .sb-feed-list li,
    .sb-rank-list li,
    .sb-recap-card,
    .sb-champion,
    .sb-nil-float,
    .sb-br-match.is-live {
      animation: none !important;
      transition: none !important;
    }
    .sb-rank-list li { transform: none !important; }
    .sb-team-picks li, .sb-feed-list li, .sb-recap-card { opacity: 1 !important; transform: none !important; }
  }
}
}