.s-page, .s-dialog { --sec-card: #202125; --sec-raised: #292a2e; --sec-line: #35363b; --sec-ink: #f6f6f4; --sec-muted: #a7a8af; --sec-gold: #ffbd45; color: var(--sec-ink); }
.s-page *, .s-dialog * { box-sizing: border-box; }
.s-page button, .s-dialog button { font: inherit; cursor: pointer; color: inherit; }
.s-page button:focus-visible, .s-dialog button:focus-visible { outline: 2px solid var(--sec-gold); outline-offset: -3px; }
.s-heading { margin: 0 0 24px; }
.s-heading h1 { font: inherit; font-weight: 800; font-size: clamp(28px, 3vw, 38px); line-height: 1.22; letter-spacing: -.055em; margin: 0; }
.s-heading-small { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 14px; }
.s-heading-small h2 { font-size: 21px; font-weight: 750; letter-spacing: -.04em; line-height: 1.4; margin: 0; }
.s-heading-small > span { font-size: 13px; color: var(--sec-muted); }
.s-card { border-radius: 17px; background: var(--sec-card); border: 1px solid var(--sec-line); overflow: hidden; }
.s-war-layout, .s-league-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; align-items: start; }
.s-war-layout > .s-empty { grid-column: 1 / -1; }
.s-empty, .s-loading { padding: 40px 18px; color: var(--sec-muted); background: var(--sec-card); text-align: center; border-radius: 14px; font-size: 15px; line-height: 1.6; word-break: keep-all; }
.s-scorecard { padding: clamp(17px, 2.4vw, 28px); }
.s-card-meta, .s-time { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 13px; color: var(--sec-muted); }
.s-state, .s-outcome { font-size: 13px; padding: 4px 8px; border-radius: 6px; font-weight: 700; color: #c4c4c9; background: #323338; white-space: nowrap; }
.s-current, .s-win { color: #ffcd6d; background: #3a3122; }
.s-scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 27px 0; }
.s-team { display: grid; justify-items: center; align-content: start; text-align: center; min-width: 0; gap: 7px; }
.s-badge { width: 68px; height: 68px; display: grid; place-items: center; position: relative; color: #f7bf57; background: #383124; border-radius: 17px; }
.s-badge-away { color: #c2bad6; background: #322e3b; }
.s-badge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--sec-card); }
.s-team-name { color: var(--sec-ink); font-weight: 720; font-size: 17px; overflow-wrap: anywhere; line-height: 1.35; }
.s-team-score { font: 750 34px/1 'Barlow Condensed', 'Arial Narrow', sans-serif; font-variant-numeric: tabular-nums; }
.s-team-score span { color: var(--sec-gold); font-size: 19px; vertical-align: 3px; }
.s-versus { font: 700 16px/1.2 'Barlow Condensed',sans-serif; color: #999aa2; }
.s-comparison + .s-comparison { margin-top: 14px; }
.s-comparison > div:first-child { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 5px; }
.s-comparison strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.s-comparison strong:last-child { text-align: right; }
.s-comparison > div > span { font-size: 13px; color: var(--sec-muted); }
.s-meter { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; }
.s-meter span { height: 4px; background: var(--sec-line); border-radius: 4px; overflow: hidden; }
.s-meter b { display: block; height: 100%; }
.s-meter-0 { background: #e4ae4b; float: right; }
.s-meter-1 { background: #aba4ba; }
.s-time { border-top: 1px solid var(--sec-line); margin-top: 23px; padding-top: 16px; flex-wrap: wrap; gap: 5px; }
.s-time time { color: #dedde0; }
.s-filters { display: flex; align-items: stretch; flex-wrap: wrap; gap: 5px; padding: 12px; border-bottom: 1px solid var(--sec-line); }
.s-filters button { border: 0; border-radius: 6px; background: transparent; color: var(--sec-muted); min-height: 36px; padding: 5px 10px; font-size: 14px; }
.s-filters button[aria-pressed=true] { background: var(--sec-raised); color: var(--sec-ink); font-weight: 750; }
.s-log-row, .s-item { display: flex; align-items: center; gap: 11px; padding: 13px 17px; }
.s-log-row + .s-log-row, .s-item + .s-item { border-top: 1px solid var(--sec-line); }
.s-log-icon { flex: none; display: grid; place-items: center; width: 35px; height: 35px; background: #322f39; color: #b9b1cc; border-radius: 9px; }
.s-log-home { background: #383124; color: #ebbc69; }
.s-log-names, .s-hit, .s-item > div, .s-round-name { display: grid; gap: 4px; min-width: 0; }
.s-log-names strong, .s-item strong, .s-round-name strong { font-weight: 650; font-size: 15px; overflow-wrap: anywhere; }
.s-log-names small, .s-hit small, .s-item small, .s-round-name small { color: var(--sec-muted); font-size: 12px; }
.s-hit { margin-left: auto; white-space: nowrap; text-align: right; }
.s-hit i { font-style: normal; color: #57585f; font-size: 15px; }
.s-hit i.is-earned { color: var(--sec-gold); }
.s-more { width: 100%; min-height: 45px; background: var(--sec-raised); border: 0; border-top: 1px solid var(--sec-line); font-size: 14px!important; }
.s-more span { color: var(--sec-muted); font-variant-numeric: tabular-nums; }
.s-league-intro { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin-bottom: 25px; }
.s-league-glyph { width: 54px; height: 54px; display: grid; place-items: center; background: #393125; color: var(--sec-gold); border-radius: 13px; flex: none; }
.s-league-glyph img { width: 100%; height: 100%; object-fit: contain; }
.s-league-intro > div:nth-child(2) { display: grid; gap: 4px; }
.s-league-intro small, .s-league-intro > span { font-size: 13px; color: var(--sec-muted); }
.s-league-intro strong { font-size: 21px; letter-spacing: -.035em; }
.s-league-intro > span { margin-left: auto; }
.s-round { display: flex; align-items: center; gap: 13px; text-align: left; background: transparent; width: 100%; border: 0; padding: 14px 17px; }
.s-round:hover, .s-more:hover, .s-close:hover, .s-filters button:hover, .s-detail-tabs button:hover { background: #303136; }
.s-round + .s-round { border-top: 1px solid var(--sec-line); }
.s-round[aria-pressed=true] { background: #2b2822; box-shadow: inset 3px 0 var(--sec-gold); }
.s-round-number { font: 700 18px/1.2 'Barlow Condensed',sans-serif; min-width: 28px; color: var(--sec-muted); }
.s-round[aria-pressed=true] .s-round-number { color: var(--sec-gold); }
.s-outcome { margin-left: auto; }
.s-round-title { scroll-margin-top: 80px; }
.s-round-logs { margin-top: 22px; }
.s-notice, .s-record-stamp { color: var(--sec-muted); font-size: 13px; line-height: 1.5; }
.s-record-stamp { display: block; margin: 0 0 9px; }
.s-modal-open { overflow: hidden; }
.s-dialog { margin: auto; padding: 0; width: min(470px, calc(100vw - 28px)); max-height: min(88dvh,790px); background: #1c1d20; border: 1px solid #3e3f43; border-radius: 20px; color-scheme: dark; box-shadow: 0 25px 100px #0008; overflow-x: hidden; overscroll-behavior: contain; }
.s-dialog::backdrop { background: rgb(4 5 7 / 74%); }
.s-dialog-shell { padding: 20px; }
.s-dialog-shell > header { display: flex; align-items: center; justify-content: space-between; margin: -4px -2px 12px 0; }
.s-dialog-label { color: var(--sec-muted); font-size: 14px; font-weight: 650; }
.s-close { border: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sec-raised); font-size: 27px!important; font-weight: 400!important; line-height: 1; padding: 0 0 3px; }
.s-profile { display: flex; align-items: center; gap: 13px; margin: 0 0 17px; }
.s-profile h2 { margin: 0; font-size: 25px; line-height: 1.3; font-weight: 750; letter-spacing: -.05em; overflow-wrap: anywhere; }
.s-profile p { color: var(--sec-muted); font-size: 13px; margin: 4px 0 0; }
.s-profile p span { margin: 0 2px; }
.s-game-art { position: relative; flex: none; display: inline-grid; place-items: center; isolation: isolate; background: #2d2d32; border-radius: 8px; width: 40px; height: 40px; overflow: hidden; }
.s-game-art > span { color: #b5b4bb; font-size: 14px; }
.s-game-art img { position: absolute; width: 100%; height: 100%; object-fit: contain; inset: 0; background: #2d2d32; }
.s-game-art img[hidden], .s-badge img[hidden], .s-league-glyph img[hidden] { display: none; }
.s-th-art { width: 60px; height: 60px; border-radius: 12px; }
.s-hero-art { width: 48px; height: 48px; border-radius: 9px; }
.s-profile-metrics { display: grid; grid-template-columns: repeat(3,1fr); padding: 13px 0; background: var(--sec-raised); border-radius: 12px; margin: 0 0 19px; }
.s-profile-metrics > div { display: grid; justify-items: center; gap: 4px; }
.s-profile-metrics > div + div { border-left: 1px solid #424348; }
.s-profile-metrics small, .s-hero-head span { color: var(--sec-muted); font-size: 13px; }
.s-profile-metrics strong { font-size: 19px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.s-profile-metrics i { font-size: 13px; font-style: normal; margin-left: 2px; }
.s-detail-tabs { display: flex; padding: 3px; border-radius: 10px; gap: 4px; background: #111215; margin-bottom: 11px; }
.s-detail-tabs button { border: 0; background: transparent; border-radius: 7px; min-height: 40px; font-size: 14px; flex: 1; color: var(--sec-muted); }
.s-detail-tabs button[aria-pressed=true] { background: var(--sec-raised); color: var(--sec-ink); font-weight: 750; }
.s-detail-tabs button span { color: var(--sec-muted); font-size: 12px; }
.s-hero { border: 1px solid var(--sec-line); border-radius: 12px; padding: 13px; background: var(--sec-card); }
.s-hero + .s-hero { margin-top: 9px; }
.s-hero-head { display: flex; gap: 11px; align-items: center; }
.s-hero-head > div { display: grid; gap: 3px; }
.s-hero-head strong { font-size: 16px; font-weight: 700; }
.s-hero-head b { color: var(--sec-gold); }
.s-pair { margin-top: 12px; border-top: 1px solid var(--sec-line); padding-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.s-pair > div { display: flex; align-items: center; gap: 6px; min-width: 0; }
.s-pair > div > span:last-child { font-size: 13px; overflow-wrap: anywhere; }
.s-pair small { display: block; font-size: 12px; margin-top: 2px; color: var(--sec-muted); }
.s-pair .s-game-art { width: 30px; height: 30px; border-radius: 6px; }
.s-pair p { margin: 0; color: var(--sec-muted); font-size: 13px; }
.s-item { background: var(--sec-card); padding: 11px; }
.s-item:first-child { border-radius: 12px 12px 0 0; }
.s-item:last-child { border-radius: 0 0 12px 12px; }
.s-item > span:last-child { margin-left: auto; font-size: 13px; color: var(--sec-gold); white-space: nowrap; }
.s-retry { text-align: center; padding-bottom: 10px; }
.s-retry button { border-radius: 8px; background: var(--sec-raised); border: 1px solid var(--sec-line); min-height: 42px; padding: 6px 16px; }
@media (max-width: 760px) {
  .s-war-layout, .s-league-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .s-heading { margin-bottom: 18px; }
  .s-league-intro { margin-bottom: 20px; }
}
@media (max-width: 540px) {
  .s-dialog { top: auto; bottom: 0; width: 100%; max-width: 100%; max-height: 90dvh; border-radius: 20px 20px 0 0; margin: auto 0 0; border-bottom: 0; }
  .s-dialog-shell { padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); }
  .s-heading-small h2 { font-size: 19px; }
  .s-card { border-radius: 14px; }
  .s-scoreboard { padding: 19px 0 24px; }
  .s-round, .s-log-row { padding: 12px 14px; }
}
.s-personal-league { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.s-personal-league > small { color: var(--sec-muted); font-size: 13px; }
.s-personal-league .league-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.s-personal-league .league-badge img { width: 25px; height: 25px; object-fit: contain; }
.s-detail-tabs button { white-space: nowrap; padding: 5px 4px; }
.s-member-body [hidden] { display: none !important; }
