.rotoblu-bte {
    --bte-navy: #071f3d;
    --bte-blue: #0c65b8;
    --bte-sky: #eaf6ff;
    --bte-border: #c8dcec;
    --bte-ink: #112f49;
    --bte-muted: #58738a;
    --bte-green: #157347;
    --bte-red: #b02a37;
    box-sizing: border-box;
    width: 100%;
    max-width: 1180px;
    margin: 18px auto 0;
    color: var(--bte-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rotoblu-bte *,
.rotoblu-bte *::before,
.rotoblu-bte *::after { box-sizing: border-box; }

.rotoblu-bte [hidden] { display: none !important; }

.rotoblu-bte__start,
.rotoblu-bte__ready,
.rotoblu-bte__result-hero {
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--bte-border);
    border-radius: 18px;
    background: linear-gradient(145deg, #fff 0%, var(--bte-sky) 100%);
    text-align: center;
    box-shadow: 0 14px 35px rgba(7, 31, 61, .08);
}

.rotoblu-bte__start > img,
.rotoblu-bte__start-copy > img { width: 74px; height: 74px; object-fit: contain; }
.rotoblu-bte__start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, 430px); gap: 24px; align-items: stretch; text-align: left; }
.rotoblu-bte__start-copy { text-align: center; }
.rotoblu-bte__leaderboard { min-width: 0; padding: 18px; border: 1px solid var(--bte-border); border-radius: 13px; background: rgba(255,255,255,.82); box-shadow: 0 5px 16px rgba(7,31,61,.06); }
.rotoblu-bte__leaderboard-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rotoblu-bte__leaderboard-head .rotoblu-bte__eyebrow { margin: 0 0 3px; }
.rotoblu-bte__leaderboard-head h3 { font-size: 22px; }
.rotoblu-bte__leaderboard-tabs { display: flex; gap: 4px; }
.rotoblu-bte__leaderboard-tabs button { padding: 5px 8px; border: 1px solid var(--bte-border); border-radius: 999px; background: #fff; color: var(--bte-muted); font-size: 10px; font-weight: 800; cursor: pointer; }
.rotoblu-bte__leaderboard-tabs button.is-active { border-color: var(--bte-navy); background: var(--bte-navy); color: #fff; }
.rotoblu-bte__leaderboard-status { min-height: 16px; margin: 0 0 7px; color: var(--bte-muted); font-size: 11px; }
.rotoblu-bte__leaderboard-status.is-error { color: var(--bte-red); }
.rotoblu-bte__leaderboard-status.is-loading { color: #725400; }
.rotoblu-bte__leaderboard-table-wrap { max-height: 352px; overflow: auto; border: 1px solid #e5eff6; border-radius: 8px; background: #fff; }
.rotoblu-bte__leaderboard-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.rotoblu-bte__leaderboard-table th { position: sticky; top: 0; padding: 7px 6px; background: var(--bte-navy); color: #fff; font-size: 10px; text-align: left; }
.rotoblu-bte__leaderboard-table td { padding: 7px 6px; border-bottom: 1px solid #edf3f7; vertical-align: top; }
.rotoblu-bte__leaderboard-table tr:last-child td { border-bottom: 0; }
.rotoblu-bte__leaderboard-table td:first-child { width: 24px; color: var(--bte-muted); font-weight: 900; }
.rotoblu-bte__leaderboard-table td:nth-child(3) { white-space: nowrap; }
.rotoblu-bte__leaderboard-table strong { color: var(--bte-navy); }
.rotoblu-bte__leaderboard-table small { display: block; margin-top: 2px; color: var(--bte-muted); font-size: 9px; }
.rotoblu-bte__leaderboard-empty { padding: 18px !important; color: var(--bte-muted); text-align: center; }
.rotoblu-bte h2 { margin: 5px 0 12px; color: var(--bte-navy); font-size: clamp(30px, 6vw, 48px); line-height: 1; }
.rotoblu-bte h3 { margin: 0; color: var(--bte-navy); }
.rotoblu-bte__start > p:not(.rotoblu-bte__eyebrow),
.rotoblu-bte__start-copy > p:not(.rotoblu-bte__eyebrow),
.rotoblu-bte__ready > p:not(.rotoblu-bte__eyebrow),
.rotoblu-bte__result-hero > p:not(.rotoblu-bte__eyebrow) { max-width: 680px; margin: 0 auto 22px; color: var(--bte-muted); line-height: 1.55; }
.rotoblu-bte__start > small,
.rotoblu-bte__start-copy > small { display: block; margin-top: 14px; color: var(--bte-muted); }
.rotoblu-bte__eyebrow { margin: 10px 0 0; color: var(--bte-blue); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.rotoblu-bte__primary-button,
.rotoblu-bte__secondary-button {
    min-height: 44px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--bte-navy);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}
.rotoblu-bte__secondary-button { width: 100%; margin-top: 16px; background: var(--bte-blue); }
.rotoblu-bte__primary-button:hover,
.rotoblu-bte__primary-button:focus-visible,
.rotoblu-bte__secondary-button:hover,
.rotoblu-bte__secondary-button:focus-visible { background: var(--bte-blue); outline: 3px solid rgba(12, 101, 184, .2); }
.rotoblu-bte__primary-button:disabled { opacity: .6; cursor: wait; }

.rotoblu-bte__message { margin: 0 0 14px; padding: 11px 14px; border-radius: 8px; background: var(--bte-sky); color: var(--bte-ink); font-weight: 700; }
.rotoblu-bte__message.is-error { background: #fdebed; color: var(--bte-red); }
.rotoblu-bte__message.is-loading { background: #fff4d5; color: #725400; }

.rotoblu-bte__draft-header {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: var(--bte-navy);
    color: #fff;
}
.rotoblu-bte__draft-header > div { padding: 13px 16px; border-right: 1px solid rgba(255,255,255,.14); text-align: center; }
.rotoblu-bte__draft-header > div:last-child { border-right: 0; }
.rotoblu-bte__draft-header small { display: block; margin-bottom: 2px; color: #bcd6ec; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.rotoblu-bte__draft-header strong { font-size: 22px; }
.rotoblu-bte__progress { height: 6px; overflow: hidden; background: #dbeaf5; }
.rotoblu-bte__progress span { display: block; height: 100%; background: #2ba7df; transition: width .25s ease; }

.rotoblu-bte__draft-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; margin-top: 18px; align-items: start; }
.rotoblu-bte__section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.rotoblu-bte__section-heading .rotoblu-bte__eyebrow { margin: 0 0 2px; }
.rotoblu-bte__section-heading > p { margin: 0; color: var(--bte-muted); font-size: 13px; }
.rotoblu-bte__window-note { margin: 0 0 10px; padding: 8px 10px; border-radius: 7px; background: #fff4d5; color: #725400; font-size: 12px; font-weight: 700; }
.rotoblu-bte__candidates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.rotoblu-bte__player-card {
    display: flex;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid var(--bte-border);
    border-radius: 13px;
    background: #fff;
    color: var(--bte-ink);
    text-align: left;
    box-shadow: 0 5px 16px rgba(7, 31, 61, .07);
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.rotoblu-bte__player-card:hover,
.rotoblu-bte__player-card:focus-visible { transform: translateY(-2px); border-color: var(--bte-blue); outline: none; box-shadow: 0 10px 24px rgba(7, 31, 61, .15); }
.rotoblu-bte__player-top { display: flex; align-items: center; gap: 10px; min-height: 88px; padding: 10px 12px 0; background: linear-gradient(180deg, var(--bte-sky), #fff); }
.rotoblu-bte__photo { display: grid; width: 72px; height: 78px; overflow: hidden; flex: 0 0 72px; place-items: end center; border-radius: 9px 9px 0 0; background: #dcecf7; }
.rotoblu-bte__photo img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.rotoblu-bte__initials { align-self: center; color: var(--bte-navy); font-size: 23px; font-weight: 900; }
.rotoblu-bte__identity { min-width: 0; }
.rotoblu-bte__identity strong { display: block; color: var(--bte-navy); font-size: 17px; line-height: 1.12; }
.rotoblu-bte__identity small { display: block; margin-top: 5px; color: var(--bte-muted); font-weight: 800; }
.rotoblu-bte__chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 9px 10px; border-top: 1px solid #e5eff6; border-bottom: 1px solid #e5eff6; }
.rotoblu-bte__chips span { padding: 3px 7px; border-radius: 999px; background: var(--bte-navy); color: #fff; font-size: 10px; font-weight: 800; }
.rotoblu-bte__stat-lines { display: grid; gap: 6px; padding: 10px; flex: 1; }
.rotoblu-bte__stat-lines div { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 5px; font-size: 11px; }
.rotoblu-bte__stat-lines span { color: var(--bte-muted); font-weight: 800; }
.rotoblu-bte__stat-lines strong { color: var(--bte-ink); font-size: 11px; line-height: 1.3; }
.rotoblu-bte__points { display: flex; align-items: baseline; gap: 6px; padding: 8px 10px; background: #f3f9fd; }
.rotoblu-bte__points strong { color: var(--bte-blue); font-size: 22px; }
.rotoblu-bte__points small { color: var(--bte-muted); font-weight: 700; }
.rotoblu-bte__draft-action { padding: 9px; background: var(--bte-blue); color: #fff; font-size: 12px; font-weight: 900; text-align: center; }

.rotoblu-bte__roster-panel,
.rotoblu-bte__results-grid > aside { padding: 14px; border: 1px solid var(--bte-border); border-radius: 12px; background: #fff; box-shadow: 0 5px 16px rgba(7,31,61,.06); }
.rotoblu-bte__requirements { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 10px 0; }
.rotoblu-bte__requirements span { padding: 5px 7px; border-radius: 6px; background: #fff1f2; color: var(--bte-red); font-size: 10px; }
.rotoblu-bte__requirements span.is-complete { background: #e7f6ed; color: var(--bte-green); }
.rotoblu-bte__roster { display: grid; gap: 3px; }
.rotoblu-bte__roster > p,
.rotoblu-bte__roster-panel > p { color: var(--bte-muted); font-size: 11px; line-height: 1.4; }
.rotoblu-bte__roster-player { display: grid; grid-template-columns: 20px minmax(0, 1fr); padding: 6px 0; border-top: 1px solid #e7eff5; }
.rotoblu-bte__roster-player > span { grid-row: 1 / 3; align-self: center; color: #8aa0b2; font-size: 10px; font-weight: 800; }
.rotoblu-bte__roster-player strong { overflow: hidden; color: var(--bte-navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.rotoblu-bte__roster-player small { color: var(--bte-muted); font-size: 10px; }

.rotoblu-bte__final-roster { display: grid; max-width: 680px; margin: 20px auto; grid-template-columns: 1fr 1fr; gap: 5px 16px; text-align: left; }
.rotoblu-bte__final-roster > div { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; padding: 7px 0; border-bottom: 1px solid var(--bte-border); }
.rotoblu-bte__final-roster span { grid-row: 1 / 3; color: #8298a9; font-size: 11px; }
.rotoblu-bte__final-roster strong { color: var(--bte-navy); font-size: 13px; }
.rotoblu-bte__final-roster small { color: var(--bte-muted); font-size: 11px; }
.rotoblu-bte__final-roster em { grid-column: 3; grid-row: 1 / 3; align-self: center; color: var(--bte-blue); font-size: 12px; font-style: normal; font-weight: 800; }

.rotoblu-bte__result-metrics { display: grid; max-width: 720px; margin: 24px auto 0; grid-template-columns: repeat(4, 1fr); overflow: hidden; border-radius: 10px; background: var(--bte-navy); color: #fff; }
.rotoblu-bte__result-metrics > div { padding: 13px 8px; border-right: 1px solid rgba(255,255,255,.13); }
.rotoblu-bte__result-metrics > div:last-child { border-right: 0; }
.rotoblu-bte__result-metrics strong { display: block; font-size: 22px; }
.rotoblu-bte__result-metrics span { color: #bcd6ec; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.rotoblu-bte__result-actions { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; }
.rotoblu-bte__result-actions .rotoblu-bte__primary-button { min-height: 38px; padding: 8px 16px; font-size: 13px; }
.rotoblu-bte__result-actions [data-bte-share-status] { min-height: 18px; color: var(--bte-green); font-size: 11px; font-weight: 700; }
.rotoblu-bte__submit-score { margin: 16px auto 0; }
.rotoblu-bte__submit-score .rotoblu-bte__secondary-button { width: auto; margin-top: 0; padding: 8px 16px; font-size: 13px; }
.rotoblu-bte__submit-score p { margin: 7px 0 0; color: var(--bte-muted); font-size: 11px; }
.rotoblu-bte__results-grid { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; margin-top: 16px; align-items: start; }
.rotoblu-bte__results-table-wrap { overflow-x: auto; border: 1px solid var(--bte-border); border-radius: 10px; background: #fff; }
.rotoblu-bte__results-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.rotoblu-bte__results-table th { padding: 9px 8px; background: var(--bte-navy); color: #fff; text-align: left; white-space: nowrap; }
.rotoblu-bte__results-table td { padding: 8px; border-bottom: 1px solid #e5edf3; vertical-align: top; }
.rotoblu-bte__results-table td small { display: block; margin-top: 2px; color: var(--bte-muted); font-size: 9px; }
.rotoblu-bte__results-table tr.is-win td:nth-child(4) strong { color: var(--bte-green); }
.rotoblu-bte__results-table tr.is-loss td:nth-child(4) strong { color: var(--bte-red); }
.rotoblu-bte__lineup-cell { min-width: 290px; color: var(--bte-muted); line-height: 1.35; }
.rotoblu-bte__results-roster { display: grid; gap: 3px; margin-top: 10px; }
.rotoblu-bte__results-roster > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 6px 0; border-bottom: 1px solid #e5edf3; }
.rotoblu-bte__results-roster strong { color: var(--bte-navy); font-size: 11px; }
.rotoblu-bte__results-roster span { grid-column: 1; color: var(--bte-muted); font-size: 9px; }
.rotoblu-bte__results-roster em { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--bte-blue); font-size: 11px; font-style: normal; font-weight: 800; }
.rotoblu-bte__credits { padding: 15px 4px 0; color: var(--bte-muted); font-size: 10px; text-align: center; }
.rotoblu-bte__credits a { color: var(--bte-blue); }

@media (max-width: 900px) {
    .rotoblu-bte__draft-layout,
    .rotoblu-bte__results-grid { grid-template-columns: 1fr; }
    .rotoblu-bte__roster-panel { order: -1; }
    .rotoblu-bte__roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
}

@media (max-width: 700px) {
    .rotoblu-bte { margin-top: 10px; }
    .rotoblu-bte__start,
    .rotoblu-bte__ready,
    .rotoblu-bte__result-hero { padding: 24px 14px; border-radius: 0; }
    .rotoblu-bte__start { display: block; }
    .rotoblu-bte__leaderboard { margin-top: 24px; padding: 13px; }
    .rotoblu-bte__leaderboard-head { align-items: start; flex-direction: column; }
    .rotoblu-bte__draft-header { grid-template-columns: 1fr 1fr; border-radius: 0; }
    .rotoblu-bte__draft-header > div:nth-child(2) { border-right: 0; }
    .rotoblu-bte__draft-header > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
    .rotoblu-bte__candidates { grid-template-columns: 1fr; }
    .rotoblu-bte__player-card { display: grid; grid-template-columns: 94px minmax(0, 1fr); }
    .rotoblu-bte__player-top { grid-column: 1 / 3; }
    .rotoblu-bte__chips,
    .rotoblu-bte__stat-lines,
    .rotoblu-bte__points,
    .rotoblu-bte__draft-action { grid-column: 1 / 3; }
    .rotoblu-bte__final-roster { grid-template-columns: 1fr; }
    .rotoblu-bte__result-metrics { grid-template-columns: 1fr 1fr; }
    .rotoblu-bte__result-metrics > div:nth-child(2) { border-right: 0; }
    .rotoblu-bte__result-metrics > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.13); }
    .rotoblu-bte__result-actions { align-items: stretch; flex-direction: column; }
    .rotoblu-bte__section-heading { align-items: start; flex-direction: column; gap: 3px; }
}
