/* FRAY ARENA · Sundown UI (2.5.0) · 2.10.1: FRAY GAMES brand palette and fonts (ui/brand.css)
 * Landscape shell: left rail, slab display type, chamfered panels, and the
 * time of day of the match as the running thread (gold afternoon -> night).
 * Loaded after ton-app.css; everything is scoped to body.sd so the classic
 * look returns if the class is removed.
 */

:root {
  /* 2.10.1: FRAY GAMES brand (docs/BRAND.md): navy ground, gold brand, neon blue / pink edge */
  --sd-ink: #0A111B; --sd-bg: #121A2B; --sd-panel: #121A2B; --sd-panel2: #1B2540; --sd-line: #26324D;
  --sd-paper: #EEF3FF; --sd-muted: #A8B4D0; --sd-dim: #7D89A8;
  --sd-gold: #F6A83B; --sd-goldhi: #FCD286; --sd-golddeep: #B86F1F; --sd-copper: #D68029;
  --sd-ember: #FF7A29; --sd-patina: #39E07A; --sd-danger: #FF4F8B; --sd-night: #1B2540; --sd-dusk: #9B6BFF; --sd-ongold: #0A111B;
  --sd-display: 'Bungee', 'Arial Black', sans-serif;
  --sd-cond: 'Rubik', 'Segoe UI', Roboto, sans-serif;
  --sd-body: 'Rubik', 'Segoe UI', Roboto, sans-serif;
  --sd-cut: inset(0 round 14px);
  --sd-cut-s: inset(0 round 12px);
  --sd-rail: 64px;
  --sd-sun: linear-gradient(90deg, #FCD286 0%, #F6A83B 45%, #D68029 100%);
}

/* ------------------------------------------------------------------ base */
body.sd #sk { font-family: var(--sd-cond); color: var(--sd-paper); letter-spacing: .011em; }
body.sd #sk-scrim { background: linear-gradient(90deg, #0A111Bf2 0%, #0A111B99 34%, #0A111B22 52%, #0A111B88 70%, #0A111Bee 100%), linear-gradient(0deg, #0A111Bcc, transparent 30%); }
body.sd .sd-ic { display: block; flex: none; }
body.sd .sd-kicker { font: 700 10px/1 var(--sd-cond); letter-spacing: .077em; color: var(--sd-dim); text-transform: uppercase; }
body.sd .sd-hidden, body.sd #sk-brandtop, body.sd .sk-kicker, body.sd #sk-mint, body.sd #sk-charge, body.sd .sk-lvlbadge, body.sd #sk-objline, body.sd #sk-modecount, body.sd .sk-sidehead { display: none !important; }

/* buttons */
body.sd .sk-btn {
  border: 0; border-radius: 0; clip-path: var(--sd-cut); box-shadow: none;
  background: linear-gradient(180deg, var(--sd-goldhi), var(--sd-gold) 60%, #D68029); color: var(--sd-ongold);
  font: 400 26px/1 var(--sd-display); letter-spacing: .03em; padding: 12px 18px 13px; text-transform: uppercase;
}
body.sd .sk-btn:active { transform: translateY(2px); box-shadow: none; filter: brightness(.95); }
body.sd .sk-btn.alt { background: var(--sd-panel2); color: var(--sd-paper); font: 700 14px/1 var(--sd-cond); letter-spacing: .055em; box-shadow: inset 0 0 0 1px var(--sd-line); }
body.sd .sk-btn.sm { font: 700 12px/1 var(--sd-cond); letter-spacing: .044em; padding: 9px 12px; clip-path: var(--sd-cut-s); }
body.sd .sk-btn.sm.alt { background: var(--sd-panel2); color: var(--sd-paper); }
body.sd .sk-btn[disabled] { filter: grayscale(.7) brightness(.6); }
body.sd .sk-muted { color: var(--sd-muted); font: 500 11.5px/1.4 var(--sd-body); }
body.sd .sk-h { font: 400 22px/1 var(--sd-display); color: var(--sd-paper); letter-spacing: .02em; }

/* chips */
.sd-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; font: 700 10px/1.2 var(--sd-cond); letter-spacing: .055em; text-transform: uppercase;
  border: 1px solid currentColor; border-radius: 4px; background: #0A111B66; white-space: nowrap; }
.sd-chip.fill { color: var(--sd-ongold) !important; border-color: transparent; }
.sd-chip .sd-ic { width: 12px; height: 12px; }

/* ------------------------------------------------------------------ rail */
body.sd #sk #sk-nav {
  position: absolute !important; left: calc(6px + env(safe-area-inset-left, 0px)) !important; right: auto !important; top: 8px !important; bottom: 8px !important;
  width: var(--sd-rail) !important; height: auto !important; padding: 6px 0 !important; margin: 0 !important;
  display: flex !important; flex-direction: column; justify-content: center; gap: 4px;
  background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; z-index: 30;
}
body.sd .sk-tab {
  position: relative; flex: none; width: 58px; height: 58px; margin: 0 auto; padding: 8px 0 6px; box-shadow: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--sd-muted);
  font: 700 9.5px/1 var(--sd-cond); letter-spacing: .055em; text-transform: uppercase;
}
body.sd .sk-tab > b { display: none; }
body.sd .sk-tab .sd-ic { width: 22px; height: 22px; }
body.sd .sk-tab.on { color: var(--sd-gold); background: #F6A83B1f; border-color: #F6A83B88; }
body.sd .sk-tab:active { transform: scale(.96); }
.sd-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 16px; padding: 0 5px; border-radius: 8px; font: 800 9px/16px var(--sd-cond); font-style: normal;
  letter-spacing: .022em; color: var(--sd-ongold); background: var(--sd-gold); text-align: center; pointer-events: none; }
.sd-badge.new { background: var(--sd-ember); color: #fff; }
.sd-badge.patina { background: var(--sd-patina); color: var(--sd-ink); }
.sd-badge:empty { display: none; }

/* ------------------------------------------------------------------ lobby frame */
body.sd #sk #sk-lobby {
  padding: calc(8px + env(safe-area-inset-top, 0px)) calc(10px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) calc(var(--sd-rail) + 16px + env(safe-area-inset-left, 0px)) !important;
  display: none; flex-direction: column; gap: 6px;
}
body.sd #sk #sk-lobby.on { display: flex; }
body.sd #sk-top { padding: 0 !important; width: auto !important; gap: 8px; height: 40px; flex: none; }
body.sd #sk-prof, body.sd #sk-cur .sk-pill, body.sd #sk-gear, body.sd #sk-crewbtn, body.sd .sd-qchip {
  height: 38px; border: 1px solid var(--sd-line); background: #121A2Bd9; border-radius: 8px; box-shadow: none; backdrop-filter: blur(6px);
}
body.sd #sk-prof { padding: 3px 12px 3px 3px; gap: 8px; cursor: pointer; }
body.sd #sk-av { width: 30px; height: 30px; border-radius: 6px; border: 0; background: linear-gradient(135deg, var(--sd-copper), var(--sd-golddeep)); color: var(--sd-paper); font: 400 16px/1 var(--sd-display); }
body.sd #sk-prof .nm { font: 700 14px/1 var(--sd-cond); letter-spacing: .033em; max-width: 110px; }
body.sd #sk-prof .tr { font: 700 11px/1.1 var(--sd-cond); color: var(--sd-gold); display: flex; align-items: center; gap: 4px; }
body.sd .sd-qchip { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--sd-paper); font: 700 12px/1 var(--sd-cond); letter-spacing: .044em; cursor: pointer; }
body.sd .sd-qchip .sd-ic { color: var(--sd-gold); width: 18px; height: 18px; }
body.sd .sd-qchip u { display: block; width: 54px; height: 4px; border-radius: 2px; background: var(--sd-line); overflow: hidden; margin-top: 4px; }
body.sd .sd-qchip u b { display: block; height: 100%; background: var(--sd-gold); }
body.sd .sd-qchip small { display: block; font: 700 12px/1 var(--sd-cond); }
body.sd #sk-cur { margin-left: auto; }
body.sd #sk-cur .sk-pill { padding: 0 5px 0 10px; gap: 8px; font: 700 15.5px/1 var(--sd-cond); }
body.sd #sk-cur .sk-pill b { color: var(--sd-paper); }
body.sd .sd-plus { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: var(--sd-gold); color: var(--sd-ongold); border: 0; cursor: pointer; }
body.sd #sk-gear, body.sd #sk-crewbtn { width: 40px; display: grid; place-items: center; color: var(--sd-paper); font-size: 0 !important; padding: 0; }
body.sd #sk-gear .sd-ic, body.sd #sk-crewbtn .sd-ic { width: 20px; height: 20px; }

/* stage: hero info | model | deployment */
body.sd #sk-stage { flex: 1; min-height: 0; display: grid !important; grid-template-columns: minmax(0, 1.95fr) minmax(250px, 1fr); gap: 10px; padding: 0 !important; align-items: stretch; }
body.sd #sk-card {
  display: grid !important; grid-template-columns: minmax(0, 1.1fr) minmax(170px, .9fr); gap: 6px; align-items: stretch;
  border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; overflow: visible;
}
body.sd #sk-card:before { display: none; }
body.sd .sk-infocol { display: flex; flex-direction: column; justify-content: center; gap: 7px; min-width: 0; }
body.sd .sd-heroc { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
body.sd #sk-hrole { font-size: 0; }
body.sd #sk-hrole .sd-chip { font-size: 11px; }
body.sd .sk-rar { margin: 0 !important; padding: 3px 8px !important; border-radius: 4px !important; font: 800 10px/1.2 var(--sd-cond) !important; letter-spacing: .055em !important; color: var(--sd-ink) !important; }
body.sd #sk-hname { font: 400 clamp(36px, 11.5vh, 64px)/.92 var(--sd-display) !important; color: var(--sd-paper); letter-spacing: .01em; margin: 2px 0 0; text-shadow: 0 3px 0 #0006; white-space: nowrap; }
body.sd #sk-trait { font: 600 11.5px/1.3 var(--sd-body) !important; color: var(--sd-muted) !important; letter-spacing: 0 !important; margin: 0 !important; }
body.sd #sk-trait b { font: 700 11px/1.3 var(--sd-cond); color: var(--sd-gold); letter-spacing: .044em; margin-right: 4px; }
.sd-kit { display: flex; gap: 6px; max-width: 100%; }
/* the four kit tiles shrink with the info column (2.5.4: 232 px fixed, the star tile slid under the carousel arrow on iPhone) */
.sd-kit button { position: relative; flex: 0 1 52px; min-width: 38px; display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--sd-paper); }
.sd-kit .t { width: 100%; max-width: 44px; aspect-ratio: 1 / 1; height: auto; display: grid; place-items: center; border-radius: 8px; border: 1px solid; background: #0A111Baa; }
.sd-kit .t .sd-ic { width: 22px; height: 22px; }
.sd-kit span { font: 700 8.5px/1.05 var(--sd-cond); letter-spacing: .033em; text-transform: uppercase; color: var(--sd-muted); text-align: center; max-width: 100%; overflow-wrap: anywhere; }
.sd-kit em { position: absolute; top: 28px; right: -2px; font: 800 8px/1 var(--sd-cond); font-style: normal; padding: 2px 3px; border-radius: 3px; background: var(--sd-ink); color: var(--sd-paper); border: 1px solid var(--sd-line); }
.sd-kit button:active .t { transform: scale(.94); }
.sd-mastery { display: flex; align-items: center; gap: 10px; }
.sd-lvl { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--sd-gold); color: var(--sd-gold); font: 400 18px/1 var(--sd-display); background: #0A111B99; }
.sd-mbar { flex: 1; min-width: 0; }
.sd-mbar .row { display: flex; justify-content: space-between; font: 700 10px/1 var(--sd-cond); letter-spacing: .055em; color: var(--sd-muted); }
.sd-mbar .row b { color: var(--sd-paper); font-weight: 700; white-space: nowrap; }   /* 2.17.1: 0 / 600 broke in two at 640 px */
.sd-mbar u { display: block; height: 6px; border-radius: 3px; background: var(--sd-line); margin-top: 6px; overflow: hidden; }
.sd-mbar u i { display: block; height: 100%; background: linear-gradient(90deg, var(--sd-golddeep), var(--sd-gold)); }
body.sd .sk-stats { display: flex !important; flex-direction: row !important; gap: 14px !important; margin: 0 !important; flex-wrap: wrap; }
body.sd .sk-stats .sd-st { font: 700 12px/1 var(--sd-cond); color: var(--sd-paper); letter-spacing: .022em; white-space: nowrap; }
body.sd .sk-stats .sd-st small { font: 700 9px/1 var(--sd-cond); color: var(--sd-dim); letter-spacing: .066em; margin-left: 3px; }

body.sd .sk-portraitcol { position: relative; display: flex !important; align-items: center; justify-content: center; min-width: 0; gap: 0; }
body.sd .sk-framewrap { flex: 1; height: 100%; display: flex; align-items: center; justify-content: center; min-width: 0; }
body.sd .sk-frame { position: relative; width: 100%; height: 100%; max-height: min(80vh, 560px); border: 0 !important; background: none !important; box-shadow: none !important; clip-path: none !important; padding: 0 !important; }
body.sd .sk-frame:before, body.sd .sk-frame:after { display: none !important; }
body.sd #sk-portrait { position: absolute !important; inset: 0 !important; width: auto !important; height: auto !important; border: 0 !important; border-radius: 0 !important;
  background-color: transparent !important; background-size: contain !important; background-position: center 60% !important; background-repeat: no-repeat !important; filter: drop-shadow(0 14px 22px #000a); }
body.sd .sk-arrow { position: absolute; top: 46%; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--sd-line); background: #121A2Bcc; color: var(--sd-paper); display: grid; place-items: center; font-size: 0; padding: 0; }
body.sd .sk-arrow.prev { left: 0; } body.sd .sk-arrow.next { right: 0; }
body.sd .sk-arrow .sd-ic { width: 18px; height: 18px; }
.sd-skins { position: absolute; bottom: 2px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; z-index: 3; }
.sd-skins u { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #0A111B; box-shadow: 0 0 0 1px var(--sd-line); cursor: pointer; display: block; }
.sd-skins u.on { box-shadow: 0 0 0 2px var(--sd-gold); }
.sd-skins u.lock { opacity: .35; }
/* 2.16.0: STANDARD, the hero's skin (its head), NEON */
.sd-skins { align-items: center; }
.sd-skins u.pic { width: 18px; height: 18px; background: #0A111B center 16% / 190% no-repeat; }
.sd-skins u.pic.lock { opacity: .55; filter: grayscale(.7); }
.sd-skins u.neon { background: linear-gradient(135deg, #3FF0FF 50%, #C64BFF 50%); }
.sd-skins u.neon.on { box-shadow: 0 0 0 2px #3FF0FF, 0 0 8px #3FF0FF; }
.sd-newtag { color: var(--sd-ember); }

/* deployment column */
body.sd #sk-side { display: flex !important; flex-direction: column; gap: 8px; min-width: 0; width: auto !important; max-height: none !important; overflow: visible !important; justify-content: flex-end; }
body.sd #sk-liveops { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #F6A83B66; background: linear-gradient(90deg, #F6A83B1f, #121A2Bcc); border-radius: 6px; cursor: pointer; }
body.sd #sk-liveops .sl-top { flex: 1; display: flex; justify-content: space-between; gap: 8px; font: 700 11px/1 var(--sd-cond); letter-spacing: .055em; color: var(--sd-paper); }
body.sd #sk-liveops .sl-top span { color: var(--sd-goldhi); display: flex; gap: 6px; align-items: center; max-width: 72%; }
body.sd #sk-liveops .sl-top b { color: var(--sd-muted); font-weight: 700; }
body.sd #sk-liveops .sl-bar { display: none; }
#sd-modecard { display: flex; gap: 10px; align-items: stretch; padding: 9px; text-align: left; cursor: pointer; color: var(--sd-paper);
  border: 1px solid var(--sd-line); background: #121A2Be6; border-radius: 8px; width: 100%; }
#sd-modecard img { width: 74px; height: 74px; object-fit: cover; border-radius: 5px; flex: none; border: 1px solid #0006; }
#sd-modecard .mc { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
#sd-modecard .mc b { font: 800 14.5px/1 var(--sd-cond); letter-spacing: .033em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sd-modecard .mc p { margin: 0; font: 500 11px/1.3 var(--sd-body); color: var(--sd-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#sd-modecard .mc .ft { margin-top: auto; display: flex; gap: 10px; align-items: center; font: 700 10px/1 var(--sd-cond); letter-spacing: .055em; color: var(--sd-muted); }
#sd-modecard .mc .ft em { font-style: normal; color: var(--sd-gold); }
#sd-modecard .mc .ft span { display: flex; align-items: center; gap: 3px; }
#sd-modecard .mc .ft .sd-ic { width: 12px; height: 12px; }
#sd-modecard > .sd-ic { align-self: center; color: var(--sd-gold); width: 18px; height: 18px; }
#sd-modecard:active { transform: scale(.99); }
#sd-squadrow { display: flex; gap: 8px; align-items: flex-start; }
#sd-squadrow .sq { width: 50px; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 700 8.5px/1 var(--sd-cond); letter-spacing: .055em; color: var(--sd-muted); background: none; border: 0; padding: 0; cursor: pointer; }
#sd-squadrow .sq i { width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; border: 1px dashed var(--sd-line); background: #121A2Baa; color: var(--sd-muted); overflow: hidden; }
#sd-squadrow .sq.me i { border: 2px solid var(--sd-gold); background: #121A2B center 18% / 190% no-repeat; }
#sd-squadrow .sq.me { color: var(--sd-gold); }
#sd-squadrow p { flex: 1; margin: 2px 0 0; font: 500 10.5px/1.35 var(--sd-body); color: var(--sd-muted); }
#sd-squadrow p b { color: var(--sd-paper); }
body.sd #sk-playwrap { width: 100% !important; max-width: none !important; }
body.sd #sk-play { font-size: clamp(26px, 7.4vh, 34px); padding: 12px 10px 8px; line-height: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
body.sd #sk-play small { font: 800 10px/1 var(--sd-cond); letter-spacing: .055em; opacity: .85; }
body.sd #sk-fee { margin-top: 4px !important; text-align: center; font: 600 10.5px/1.3 var(--sd-body) !important; color: var(--sd-muted) !important; min-height: 0; }
body.sd #sk-fee:empty { display: none; }

/* ------------------------------------------------------------------ mode + map picker */
#sd-picker { position: absolute; inset: 0; z-index: 40; display: none; padding: calc(10px + env(safe-area-inset-top, 0px)) calc(14px + env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) calc(var(--sd-rail) + 16px + env(safe-area-inset-left, 0px));
  background: linear-gradient(90deg, #0A111Bf4, #0A111Be6 60%, #0A111Bcc); backdrop-filter: blur(5px); flex-direction: column; gap: 8px; }
#sd-picker.on { display: flex; }
#sd-picker .hd { display: flex; align-items: center; justify-content: space-between; }
#sd-picker h2 { margin: 0; font: 400 clamp(22px, 6.6vh, 30px)/1 var(--sd-display); color: var(--sd-paper); letter-spacing: .02em; }
#sd-picker .x { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--sd-line); background: var(--sd-panel); color: var(--sd-paper); display: grid; place-items: center; }
#sd-picker .bd { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(250px, .95fr) minmax(0, 1.25fr); gap: 14px; }
body.sd #sd-picker #sk-modes { display: flex !important; flex-direction: column; gap: 5px !important; overflow-y: auto; min-height: 0; padding-right: 2px; }
body.sd #sd-picker .sk-mode { position: relative; display: grid !important; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; text-align: left;
  padding: 7px 10px !important; border: 1px solid var(--sd-line) !important; border-radius: 7px !important; background: #121A2Bdd !important; color: var(--sd-paper) !important;
  font: 800 12.5px/1.1 var(--sd-cond) !important; letter-spacing: .033em !important; box-shadow: none !important; min-height: 44px; flex: none; }
body.sd #sd-picker .sk-mode:before { display: none !important; }
body.sd #sd-picker .sk-mode .sd-ic { width: 18px; height: 18px; color: var(--sd-muted); }
body.sd #sd-picker .sk-mode small { display: block; margin-top: 3px; font: 500 10px/1.2 var(--sd-body) !important; letter-spacing: 0 !important; color: var(--sd-muted) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 1 !important; }
body.sd #sd-picker .sk-mode .fee { font: 800 13px/1 var(--sd-cond); color: var(--sd-paper); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
/* 2.9.0: the label column may shrink (its subtitle ellipsizes) so the charge tag never wraps or spills out */
body.sd #sd-picker .sk-mode > span:not(.fee) { min-width: 0; }
body.sd #sd-picker .sk-mode .fee .sd-ic { width: 13px; height: 13px; color: var(--sd-gold); }
body.sd #sd-picker .sk-mode .fee.free { color: var(--sd-patina); letter-spacing: .1em; font-size: 12px; }
body.sd #sd-picker .sk-mode.on { border-color: var(--sd-gold) !important; background: #F6A83B1a !important; }
body.sd #sd-picker .sk-mode.on .sd-ic { color: var(--sd-gold); }
#sd-picker .rt { min-width: 0; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
body.sd #sd-picker .sk-maprow { flex: 1; min-height: 0; display: flex; gap: 8px; margin: 0; padding: 0 0 2px; overflow-x: auto; overflow-y: hidden; }
body.sd #sd-picker .sk-map { position: relative; flex: 1 0 128px; max-width: 190px; min-width: 128px; display: flex; flex-direction: column; gap: 5px; padding: 7px; text-align: left;
  border: 1px solid var(--sd-line); border-radius: 8px; background: #121A2Bdd; color: var(--sd-paper); cursor: pointer; }
body.sd #sd-picker .sk-map img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 5px; display: block; min-height: 0; flex: 0 1 auto; max-height: 52vh; }
body.sd #sd-picker .sk-map b { font: 400 15px/1.05 var(--sd-display); color: var(--sd-paper); letter-spacing: .01em; }
body.sd #sd-picker .sk-map small { font: 700 8.5px/1 var(--sd-cond); letter-spacing: .066em; color: var(--sd-copper); border: 1px solid #D6802966; border-radius: 3px; padding: 3px 5px; align-self: flex-start; margin: 0; }
body.sd #sd-picker .sk-map p { margin: 0; font: 500 10px/1.3 var(--sd-body); color: var(--sd-muted); }
body.sd #sd-picker .sk-map .when { position: absolute; top: 12px; left: 12px; font: 800 9px/1 var(--sd-cond); letter-spacing: .055em; color: var(--sd-paper); background: #0A111Bd9; padding: 4px 6px; border-radius: 3px; }
body.sd #sd-picker .sk-map.on { border-color: var(--sd-gold); box-shadow: inset 0 0 0 1px var(--sd-gold); }
body.sd #sd-picker .sk-map.on .when { color: var(--sd-gold); }
#sd-picker .act { display: flex; gap: 8px; flex: none; }
#sd-picker .act .fr { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--sd-line); background: var(--sd-panel); color: var(--sd-paper); font: 800 12px/1 var(--sd-cond); letter-spacing: .055em; clip-path: var(--sd-cut-s); }
#sd-picker .act .fr .sd-ic { width: 18px; height: 18px; }
body.sd #sd-picker #sd-pk-play { flex: 1; font-size: clamp(20px, 6vh, 28px); padding: 10px 8px 8px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
body.sd #sd-picker #sd-pk-play small { font: 800 9.5px/1 var(--sd-cond); letter-spacing: .055em; opacity: .85; }

/* ------------------------------------------------------------------ sheets */
body.sd #sk-sheet { left: calc(var(--sd-rail) + 10px + env(safe-area-inset-left, 0px)) !important; bottom: 0 !important; }
body.sd #sk-sheet .bg { background: #0A111Be8; backdrop-filter: blur(4px); }
body.sd #sk-sheetbox { background: transparent !important; border: 0 !important; padding: calc(8px + env(safe-area-inset-top, 0px)) calc(12px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) 8px !important; }
body.sd #sk-sheettitle { font: 400 24px/1 var(--sd-display); color: var(--sd-paper); letter-spacing: .02em; }
body.sd .sk-sheetmark { display: none; }
body.sd .sk-item { background: #121A2Bcc; border: 1px solid var(--sd-line); border-radius: 7px; }
body.sd .sk-item .t { font: 800 13px/1.15 var(--sd-cond); letter-spacing: .033em; color: var(--sd-paper); }
body.sd .sk-item .d { font: 500 11px/1.35 var(--sd-body); color: var(--sd-muted); }
body.sd .sk-bar { background: var(--sd-line); border-radius: 3px; }
body.sd .sk-bar b { background: linear-gradient(90deg, var(--sd-golddeep), var(--sd-gold)); }

/* heroes sheet */
.sd-hs { display: grid; grid-template-columns: minmax(150px, .85fr) minmax(0, 1.45fr) minmax(200px, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px 14px; height: 100%; min-height: 0; }
.sd-hs .flt { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; align-items: center; }
.sd-hs .flt button { flex: none; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--sd-line); background: var(--sd-panel); font: 800 10.5px/1 var(--sd-cond); letter-spacing: .055em; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.sd-hs .flt button.on { background: var(--sd-paper); color: var(--sd-ink) !important; border-color: var(--sd-paper); }
.sd-hs .flt select { margin-left: auto; background: var(--sd-panel); color: var(--sd-paper); border: 1px solid var(--sd-line); border-radius: 6px; font: 700 10px var(--sd-cond); padding: 6px; letter-spacing: .044em; }
.sd-hs .mdl { position: relative; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.sd-hs .mdl .img { flex: 1; width: 100%; min-height: 0; background: center bottom / contain no-repeat; filter: drop-shadow(0 12px 18px #000b); }
.sd-hs .mdl .btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.sd-hs .mdl .btns button { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--sd-line); background: var(--sd-panel); color: var(--sd-paper); font: 800 9.5px/1 var(--sd-cond); letter-spacing: .055em; cursor: pointer; }
.sd-hs .mdl .btns .sd-ic { width: 14px; height: 14px; }
.sd-hs .inf { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; padding-right: 2px; }
.sd-hs .inf h3 { margin: 0; display: flex; align-items: center; gap: 10px; font: 400 clamp(26px, 8vh, 40px)/1 var(--sd-display); color: var(--sd-paper); }
.sd-hs .inf .lore { margin: 0; font: 500 11.5px/1.4 var(--sd-body); color: var(--sd-muted); }
.sd-hs .kit { display: flex; gap: 9px; align-items: flex-start; }
.sd-hs .kit .t { width: 34px; height: 34px; flex: none; border-radius: 7px; border: 1px solid; display: grid; place-items: center; background: #0A111B99; }
.sd-hs .kit .t .sd-ic { width: 18px; height: 18px; }
.sd-hs .kit b { display: block; font: 800 12px/1.15 var(--sd-cond); letter-spacing: .033em; color: var(--sd-paper); }
.sd-hs .kit p { margin: 1px 0 0; font: 500 11px/1.3 var(--sd-body); color: var(--sd-muted); }
.sd-hs .sts { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 7px; }
.sd-hs .sts .hdr { display: flex; justify-content: space-between; }
.sd-hs .sts .bar { display: grid; grid-template-columns: 62px 1fr 60px; align-items: center; gap: 8px; font: 700 10px/1 var(--sd-cond); letter-spacing: .055em; color: var(--sd-muted); }
.sd-hs .sts .bar u { display: block; height: 5px; border-radius: 3px; background: var(--sd-line); overflow: hidden; }
.sd-hs .sts .bar u i { display: block; height: 100%; }
.sd-hs .sts .bar b { text-align: right; color: var(--sd-paper); font-weight: 700; letter-spacing: .04em; }
.sd-hs .sts .tiers { display: flex; gap: 6px; }
.sd-hs .sts .tiers div { flex: 1; padding: 6px 7px; border-radius: 6px; border: 1px solid var(--sd-line); background: var(--sd-panel); font: 800 10px/1.2 var(--sd-cond); letter-spacing: .044em; }
.sd-hs .sts .tiers div small { display: block; font: 600 8.5px/1.2 var(--sd-cond); color: var(--sd-dim); letter-spacing: .033em; }
.sd-hs .sts .tiers div.on { border-color: var(--sd-gold); color: var(--sd-gold); }
.sd-hs .sts .lvl { display: flex; gap: 8px; align-items: center; }
.sd-hs .sts .lvl .sk-btn { flex: none; width: auto; }
.sd-hs .sts .lvl span { font: 600 10.5px/1.3 var(--sd-body); color: var(--sd-muted); }
.sd-hs .roster { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.sd-hs .roster .sk-mini { flex: 0 0 56px !important; width: 56px; height: 56px; padding: 0 !important; border-radius: 8px !important; border: 1px solid var(--sd-line) !important; background-color: var(--sd-panel) !important; background-position: center 14% !important; background-size: 175% !important; background-repeat: no-repeat !important; position: relative; overflow: hidden; cursor: pointer; }
.sd-hs .roster .sk-mini.on { border: 2px solid var(--sd-gold) !important; }
.sd-hs .roster .sk-mini i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.sd-hs .roster .sk-mini em { position: absolute; top: 2px; right: 2px; font: 800 7px/1 var(--sd-cond); font-style: normal; color: #fff; background: var(--sd-ember); padding: 1px 3px; border-radius: 2px; letter-spacing: .033em; }
.sd-hs .skins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
/* 2.16.0: the looks of a hero: STANDARD, its skin, NEON */
.sd-hs .skins .sk-look { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 3px 5px; border-radius: 8px; border: 1px solid var(--sd-line); background: #0A111B; color: var(--sd-paper); cursor: pointer; min-width: 0; }
.sd-hs .skins .sk-look i { width: 100%; height: 46px; background: center 12% / 150% no-repeat; border-radius: 6px; }
.sd-hs .skins .sk-look.neon i { background: radial-gradient(circle at 50% 55%, #3FF0FF55, #C64BFF33 45%, transparent 70%), linear-gradient(135deg, #3FF0FF 0 49%, #C64BFF 51% 100%); background-size: 100% 100%, 26px 26px; background-position: center, center; background-repeat: no-repeat; }
.sd-hs .skins .sk-look b { font: 800 10px/1.15 var(--sd-cond); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sd-hs .skins .sk-look small { font: 700 9px/1.1 var(--sd-cond); color: var(--sd-muted); letter-spacing: .04em; white-space: nowrap; }
/* 2.17.1: on a phone STANDARD and the NEON progress fit their tile (STANDA… and a label that ran out of it) */
.sd-hs .skins .sk-look small { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 760px) { .sd-hs .skins .sk-look b { font-size: 9.5px; letter-spacing: 0; } .sd-hs .skins .sk-look small { letter-spacing: 0; } }
.sd-hs .skins .sk-look.on { border-color: var(--sd-gold); box-shadow: inset 0 0 0 1px var(--sd-gold); }
.sd-hs .skins .sk-look.on small { color: var(--sd-gold); }
.sd-hs .skins .sk-look.neon.on { border-color: #3FF0FF; box-shadow: inset 0 0 0 1px #3FF0FF, 0 0 10px #3FF0FF55; }
.sd-hs .skins .sk-look.neon.on small { color: #3FF0FF; }
.sd-hs .skins .sk-look.lock i { filter: grayscale(.6) brightness(.8); }
.sd-hs .skins .sk-look.lock small { color: var(--sd-ember); }
.sd-hs .sk-lookline { font-size: 10.5px; line-height: 1.3; }
.sd-hs .sk-lookline b { color: var(--sd-paper); }
.sd-hs .sk-lookline b.v { color: var(--sd-gold); }
/* the shop: the selected fighter's skin, every skin in a row */
body.sd .sd-skincard .pic { display: block; height: 58px; background: center 18% / auto 210% no-repeat; border-radius: 6px; background-color: #0A111B; }
body.sd .sd-skinrow { margin: 0 0 8px; }
body.sd .sd-skinrow .hdr { display: flex; justify-content: space-between; margin-bottom: 4px; }
body.sd .sd-skinrow .row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 3px; }
body.sd .sd-skinrow .row button { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px; border-radius: 8px; border: 1px solid var(--sd-line); background: #0A111B; color: var(--sd-paper); cursor: pointer; }
body.sd .sd-skinrow .row button i { width: 56px; height: 52px; background: center 14% / 170% no-repeat; border-radius: 6px; }
body.sd .sd-skinrow .row button b { font: 800 8.5px/1.1 var(--sd-cond); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 58px; }
body.sd .sd-skinrow .row button.own { border-color: var(--sd-gold); }
body.sd .sd-skinrow .row button.own b { color: var(--sd-gold); }

/* pass sheet */
.sd-pass { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 0; }
.sd-pass .top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sd-pass .top .tier { font: 400 34px/1 var(--sd-display); color: var(--sd-paper); }
.sd-pass .top .tier small { font-size: 18px; color: var(--sd-dim); }
.sd-pass .nx { width: 170px; }
.sd-pass .nx u { display: block; height: 6px; border-radius: 3px; background: var(--sd-line); margin-top: 5px; overflow: hidden; }
.sd-pass .nx u i { display: block; height: 100%; background: var(--sd-gold); }
.sd-pass .prem { margin-left: auto; display: flex; flex-direction: column; align-items: center; padding: 8px 16px; background: linear-gradient(180deg, var(--sd-goldhi), var(--sd-gold)); color: var(--sd-ongold); clip-path: var(--sd-cut); font: 400 20px/1 var(--sd-display); border: 0; cursor: pointer; }
.sd-pass .prem small { font: 800 9px/1 var(--sd-cond); letter-spacing: .055em; margin-top: 3px; }
.sd-pass .prem.owned { background: var(--sd-panel2); color: var(--sd-gold); }
.sd-pass .track { flex: 1; min-height: 0; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.sd-pass .col { flex: 0 0 96px; display: flex; flex-direction: column; gap: 6px; }
.sd-pass .num { align-self: center; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 800 11px/1 var(--sd-cond); color: var(--sd-muted); background: var(--sd-panel2); }
.sd-pass .num.done { background: var(--sd-patina); color: var(--sd-ink); }
.sd-pass .num.now { background: var(--sd-gold); color: var(--sd-ongold); }
.sd-pass .cell { flex: 1; min-height: 70px; border-radius: 8px; border: 1px solid var(--sd-line); background: #121A2Bcc; padding: 7px; display: flex; flex-direction: column; gap: 4px; font: 800 10.5px/1.15 var(--sd-cond); letter-spacing: .033em; position: relative; }
.sd-pass .cell .sd-ic { width: 20px; height: 20px; color: var(--sd-gold); }
.sd-pass .cell small { margin-top: auto; font: 700 8.5px/1 var(--sd-cond); letter-spacing: .055em; color: var(--sd-dim); }
.sd-pass .cell.got small { color: var(--sd-patina); }
.sd-pass .cell.now { border-color: var(--sd-gold); }
.sd-pass .cell.p { background: #D6802914; border-color: #D6802966; }
.sd-pass .cell.p small { color: var(--sd-copper); }
.sd-pass .cell.p.lock:after { content: ''; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border: 2px solid var(--sd-dim); border-radius: 2px; }
.sd-pass .cell.empty { border-style: dashed; background: none; }
.sd-pass .sunbar { display: flex; align-items: center; gap: 8px; flex: none; }
.sd-pass .sunbar u { flex: 1; height: 10px; border-radius: 5px; background: var(--sd-sun); position: relative; display: block; }
.sd-pass .sunbar u i { position: absolute; top: -5px; width: 16px; height: 20px; border-radius: 4px; background: var(--sd-goldhi); border: 2px solid var(--sd-ink); transform: translateX(-50%); }
.sd-pass .sunbar .sd-ic { width: 18px; height: 18px; color: var(--sd-gold); }
.sd-pass .sunbar .sd-ic.moon { color: #A8B4D0; }

/* ------------------------------------------------------------------ result */
body.sd #sk-result { display: none; padding: calc(10px + env(safe-area-inset-top, 0px)) calc(14px + env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) calc(18px + env(safe-area-inset-left, 0px)) !important; gap: 0; text-align: left; overflow: hidden; }
body.sd #sk-result.on { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(150px, .75fr) minmax(260px, 1fr); gap: 12px; align-items: stretch; }
body.sd #sk-result .sk-screenlogo { display: none; }
/* 2.17.1: on a 568-620 px phone the stat tiles (178 px) ran under the hero: the left column got 102 px */
@media (max-width: 620px) { body.sd #sk-result.on { grid-template-columns: minmax(180px, 1fr) minmax(56px, .45fr) minmax(240px, 1fr); gap: 10px; } }
.sd-rl { display: flex; flex-direction: column; gap: 8px; justify-content: center; min-width: 0; }
.sd-rl .rk { display: flex; align-items: baseline; gap: 12px; }
.sd-rl .rk b { font: 400 clamp(54px, 21vh, 96px)/.9 var(--sd-display); color: var(--sd-gold); text-shadow: 0 4px 0 #0007; }
body.sd #sk-rtitle { font: 800 clamp(20px, 6.6vh, 30px)/1 var(--sd-cond) !important; letter-spacing: .132em !important; color: var(--sd-paper) !important; text-shadow: none !important; margin: 0; }
body.sd #sk-rtitle.lose { color: var(--sd-danger) !important; }
body.sd #sk-rrank { font: 700 11px/1.2 var(--sd-cond) !important; letter-spacing: .066em; color: var(--sd-muted); text-shadow: none !important; }
.sd-rl .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sd-rl .tiles div { padding: 9px 11px; border: 1px solid var(--sd-line); border-radius: 7px; background: #121A2Bdd; }
.sd-rl .tiles small { display: block; font: 700 9.5px/1 var(--sd-cond); letter-spacing: .066em; color: var(--sd-muted); }
.sd-rl .tiles b { display: block; margin-top: 6px; font: 400 22px/1 var(--sd-display); color: var(--sd-paper); }
.sd-rl .tod { margin-top: 4px; display: flex; align-items: center; gap: 6px; font: 700 10px/1 var(--sd-cond); letter-spacing: .066em; color: var(--sd-muted); }
.sd-rl .tod .sd-ic { width: 14px; height: 14px; }
.sd-rm { background: center 70% / contain no-repeat; filter: drop-shadow(0 16px 22px #000b); min-height: 0; }
.sd-rr { display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 0; justify-content: center; }
body.sd #sk-rewards { width: 100%; max-width: none; background: none; border: 0; border-radius: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; overflow-y: auto; min-height: 0; }
.sd-rw { display: grid; grid-template-columns: 32px 1fr auto; gap: 9px; align-items: center; padding: 6px 10px 6px 6px; border: 1px solid var(--sd-line); border-radius: 7px; background: #121A2Be6; }
.sd-rw .t { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; border: 1px solid; }
.sd-rw .t .sd-ic { width: 16px; height: 16px; }
.sd-rw b { display: block; font: 800 12px/1.1 var(--sd-cond); letter-spacing: .044em; }
.sd-rw span { display: block; font: 500 10px/1.25 var(--sd-body); color: var(--sd-muted); }
.sd-rw u { display: block; height: 4px; border-radius: 2px; background: var(--sd-line); margin-top: 4px; overflow: hidden; }
.sd-rw u i { display: block; height: 100%; }
.sd-rw em { font: 400 19px/1 var(--sd-display); font-style: normal; }
.sd-rw.zero em { color: var(--sd-dim) !important; }
.sd-rw.quest { border-color: #39E07A88; }
body.sd #sk-claimnote { font: 500 9.5px/1.3 var(--sd-body); color: var(--sd-dim); max-width: none; }
body.sd #sk-claimnote:empty { display: none; }
.sd-rr .acts { display: grid; grid-template-columns: .7fr 1.3fr; gap: 6px; }
body.sd #sk-rlobby { flex: none !important; font-size: 14px; }
body.sd #sk-ragain { flex: none !important; font-size: clamp(20px, 6vh, 28px) !important; }
body.sd #sd-share { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border: 1px solid var(--sd-line); background: var(--sd-panel2); color: var(--sd-paper); font: 800 11px/1 var(--sd-cond); letter-spacing: .055em; clip-path: var(--sd-cut-s); cursor: pointer; }
body.sd #sd-share .sd-ic { width: 16px; height: 16px; }
body.sd #sk-claim { margin-top: 0 !important; font-size: 18px; padding: 9px; }

/* ------------------------------------------------------------------ in-match HUD */
body.sd.sk-match #tg-dock { display: none !important; }
body.sd #topbar { top: calc(6px + env(safe-area-inset-top, 0px)); gap: 6px; flex-direction: column; align-items: center; }
body.sd #topbar .hud-brand { display: none; }
body.sd #topbar .pill { font: 800 11px/1 var(--sd-cond); letter-spacing: .055em; border: 1px solid var(--sd-line); background: #121A2Bd9; border-radius: 4px; padding: 5px 9px; box-shadow: none; }
body.sd #topbar #clock { display: none; }
body.sd #topbar #left-count b { color: var(--sd-gold); }
#sd-sun { position: relative; width: 150px; height: 46px; pointer-events: none; }
#sd-sun svg { position: absolute; inset: 0; overflow: visible; }
#sd-sun b { position: absolute; left: 0; right: 0; top: 19px; text-align: center; font: 400 21px/1 var(--sd-display); color: var(--sd-paper); text-shadow: 0 2px 0 #000a; }
#sd-hudrow { display: flex; gap: 6px; align-items: center; }
#sd-gas { font: 800 11px/1 var(--sd-cond); letter-spacing: .055em; border-radius: 999px; padding: 5px 10px; background: var(--sd-danger); color: #0A111B; }
#sd-gas.closing { background: var(--sd-danger); }
#sd-gas:empty { display: none; }
#sd-minimap { position: fixed; z-index: 24; top: calc(8px + env(safe-area-inset-top, 0px)); right: calc(62px + env(safe-area-inset-right, 0px)); width: 92px; height: 92px; border-radius: 8px; border: 2px solid #B86F1F; box-shadow: 0 4px 14px #0009; display: none; pointer-events: none; background: #0A111B; }
body.sd.sk-match #sd-minimap { display: block; }
body.sd #feed { gap: 4px; font: 800 11px/1 var(--sd-cond); letter-spacing: .044em; }
body.sd #feed div { background: #121A2Bd9; border: 1px solid var(--sd-line); border-radius: 4px; padding: 5px 9px; }
body.sd #feed .k { color: var(--sd-gold); } body.sd #feed .v { color: var(--sd-danger); } body.sd #feed .you { color: #2BA3EE; }
body.sd #super { border: 3px solid #0A111B; background: conic-gradient(var(--sd-gold) calc(var(--p, 0) * 1%), #121A2Bd9 0); box-shadow: 0 4px 14px #0008; }
body.sd #super .core { border: 2px solid #0A111B; background: #121A2B; color: var(--sd-paper); font: 800 12px/1.05 var(--sd-cond); letter-spacing: .044em; }
body.sd #super.ready .core { background: radial-gradient(var(--sd-goldhi), var(--sd-gold) 60%, #D68029); color: var(--sd-ongold); }
body.sd #sk-gadget { border-radius: 50% !important; width: 58px; height: 58px; justify-content: center; border: 2px solid var(--sd-patina) !important; background: #121A2Bd9 !important; color: var(--sd-paper) !important; }
body.sd #sk-gadget b { font: 800 9px/1 var(--sd-cond) !important; letter-spacing: .044em !important; }
body.sd #sk-gadget small { font: 800 8.5px/1 var(--sd-cond) !important; color: var(--sd-patina) !important; }
body.sd #sk-gadget.cool { border-color: var(--sd-line) !important; }
body.sd #sk-gadget.cool small { color: var(--sd-muted) !important; }
body.sd #banner { font-family: var(--sd-display); color: var(--sd-goldhi); }
body.sd .oh-name { font-family: var(--sd-cond); font-weight: 800; letter-spacing: .033em; }

/* TG dock: a quiet status chip in the lobby, gone during a match */
body.sd #tg-dock .tg-pill { font: 800 9px/1 var(--sd-cond); letter-spacing: .066em; border-radius: 4px; border-color: var(--sd-line); background: #121A2Bd9; padding: 5px 8px; }
body.sd #tg-dock #tg-balance { display: none; }
/* 2.17.1: a keyboard hint (Mute sound (M)) is not shown on a phone */
@media (hover: none) and (pointer: coarse) { .sd-keyhint { display: none; } }
body.touch .sd-keyhint { display: none; }
/* 2.17.1: on a narrow phone the chip sits between QUESTS and the coins; with little room only its dot stays */
body.sd #tg-dock.sd-tight #tg-handle { display: none; }
body.sd #tg-dock.sd-tight .tg-pill { padding: 5px 6px; gap: 0; }

/* queue */
body.sd #sk-queue .sk-h { font: 400 26px/1 var(--sd-display); }
body.sd .sk-slot { border: 1px solid var(--sd-line); border-radius: 7px; background: var(--sd-panel); }
body.sd #sk-qbar { border: 0; height: 6px; background: var(--sd-line); }
body.sd #sk-qbar b { background: var(--sd-sun); }

/* small and short screens */
@media (max-height: 360px) {
  :root { --sd-rail: 56px; }
  body.sd .sk-tab { width: 52px; height: 50px; font-size: 9.5px; }
  body.sd .sk-tab .sd-ic { width: 19px; height: 19px; }
  .sd-kit .t { width: 38px; height: 38px; }
  .sd-kit button { width: 46px; }
  #sd-modecard img { width: 58px; height: 58px; }
  #sd-squadrow p { display: none; }
  #sd-squadrow .sq { width: 40px; font-size: 8.5px; }
  #sd-squadrow .sq i { width: 34px; height: 34px; }
  body.sd #sk-trait { display: none; }
}
@media (max-width: 760px) {
  body.sd #sk-stage { grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); }
  body.sd #sk-card { grid-template-columns: minmax(0, 1fr) minmax(130px, .8fr); }
}
/* 2.5.5: an iPhone SE (667 px) has room for trophies and the quest bar; only really narrow windows drop them */
@media (max-width: 600px) {
  body.sd .sd-qchip u, body.sd #sk-prof .tr { display: none; }
}
@media (min-height: 520px) {
  body.sd #sk-hname { font-size: 72px !important; }
  .sd-kit .t { width: 52px; height: 52px; }
  .sd-kit button { width: 60px; }
}

/* dialogs */
body.sd #sk-dialog .sk-btn { font-size: 17px; padding: 12px 14px 11px; }
body.sd #sk-dialog .sk-btn.alt { font-size: 14px; }
body.sd #sk-dialog h2, body.sd #sk-dialog .t { font-family: var(--sd-display); }

/* --- overrides of the classic shell rules that collide with the new layout */
body.sd #sk-trait { display: block !important; }
body.sd #sk-side { background: none !important; border: 0 !important; padding: 0 !important; clip-path: none !important; box-shadow: none !important; }
body.sd #sk-side:before { display: none !important; }
body.sd .sk-btn:after { content: none !important; }
body.sd #sk-hrole { border: 0 !important; padding: 0 !important; margin: 0 !important; letter-spacing: 0 !important; text-transform: none !important; }
body.sd #sk-stage { grid-template-columns: minmax(0, 1.75fr) minmax(286px, 1.06fr); }
body.sd #sk-side { gap: 7px; }
#sd-modecard img { width: 66px; height: 66px; }
#sd-modecard .mc b { font-size: 15px; }
#sd-modecard .mc p { font-size: 11px; }
#sd-squadrow .sq i { width: 42px; height: 42px; }
#sd-squadrow p { font-size: 10.5px; line-height: 1.3; }
body.sd #sk-play { padding: 10px 10px 7px; }
@media (max-height: 410px) {
  body.sd #sk-liveops { padding: 6px 9px; }
  #sd-squadrow .sq { width: 44px; }
  #sd-squadrow .sq i { width: 38px; height: 38px; }
}
body.sd.sd-cover #tg-dock { display: none !important; }
.sd-pass .cell .lk { position: absolute; top: 7px; right: 7px; color: var(--sd-dim); }
.sd-pass .cell .lk .sd-ic { width: 13px; height: 13px; color: var(--sd-dim); }
.sd-pass .cell.p.lock:after { display: none; }
/* shop cards: from monospace to the Sundown type */
body.sd .sk-shop-title { font: 400 24px/1.05 var(--sd-display) !important; color: var(--sd-paper) !important; }
body.sd .sk-shop-tag { font: 800 9px/1 var(--sd-cond) !important; letter-spacing: .077em !important; }
body.sd .sk-shop-name { font: 800 14.5px/1.1 var(--sd-cond) !important; letter-spacing: .033em !important; }
body.sd .sk-shop-desc { font: 500 11.5px/1.35 var(--sd-body) !important; color: var(--sd-muted) !important; }
body.sd .sk-shop-price { font: 800 13px/1 var(--sd-cond) !important; }
body.sd .sk-shop-card { border-radius: 8px !important; border-color: var(--sd-line) !important; background: #121A2Bdd !important; }
body.sd .sk-shop-card.featured { border-color: #F6A83B88 !important; background: linear-gradient(160deg, #1B2540cc, #121A2Bdd) !important; }
body.sd .sk-shop-card .sk-btn { font: 800 11px/1 var(--sd-cond) !important; letter-spacing: .055em !important; padding: 9px !important; }
/* the classic shell stretched #topbar edge to edge and still translated it by -50% */
body.sd #topbar { left: 50% !important; right: auto !important; transform: translateX(-50%) !important; }
body.sd #feed { right: auto !important; align-items: flex-start; top: calc(12px + env(safe-area-inset-top, 0px)) !important; max-width: 40vw; }
body.sd #feed div { backdrop-filter: none; font-size: 11.5px; }
body.sd.sd-full #tg-dock, body.sd.sd-full #hud, body.sd.sd-full #sd-minimap { display: none !important; }
@media (max-width: 720px) {
  .sd-kit { gap: 5px; }
  .sd-kit button { width: 44px; }
  .sd-kit .t { width: 38px; height: 38px; }
  .sd-kit .t .sd-ic { width: 19px; height: 19px; }
  .sd-kit span { font-size: 8.5px; }
  body.sd #sk-hname { font-size: clamp(32px, 10.5vh, 52px) !important; }
  body.sd #sk-card { grid-template-columns: minmax(0, 1fr) minmax(120px, .72fr); }
  body.sd .sk-arrow { width: 30px; height: 30px; top: 40%; }
  body.sd #sk-trait { font-size: 11px !important; }
}
/* 2.4.7 bug: #hud is pointer-events:none, so the gadget button never received taps */
#sk-gadget { pointer-events: auto; touch-action: manipulation; }

/* ------------------------------------------------------------------ 2.5.4 squad */
#sd-squadrow .sq i { position: relative; overflow: visible; }
#sd-squadrow .sq.mate i { border: 2px solid var(--sd-line); border-style: solid; background: #121A2B center 18% / 190% no-repeat; color: var(--sd-paper); font: 800 15.5px/1 var(--sd-cond); }
#sd-squadrow .sq.mate { color: var(--sd-paper); max-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sd-squadrow .sq.ok i { border-color: #39E07A; box-shadow: 0 0 0 2px #39E07A33; }
#sd-squadrow .sq.wait i { border-color: #F6A83B99; border-style: dashed; }
#sd-squadrow .sq.off { opacity: .5; }
#sd-squadrow .sq.me.ok { color: #39E07A; }
#sd-squadrow .sq.me.wait { color: #F6A83B; }
#sd-squadrow .sq .cr { position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; border-radius: 50%; background: var(--sd-gold); color: #0A111B; display: grid; place-items: center; box-shadow: 0 0 0 2px #0A111B; }
#sd-squadrow .sq .cr .sd-ic { width: 11px; height: 11px; }
#sd-squadrow .sq:not(.me):not(.mate) i { border-color: #F6A83B66; color: var(--sd-gold); }
#sd-squadrow .sq:not(.me):not(.mate):active i { transform: scale(.94); }
body.sd #sk-play.sq-ready { background: linear-gradient(135deg, #8CF2B0, #39E07A 55%, #1FA857) !important; color: #0A111B !important; }
body.sd #sk-play.sq-wait small { color: inherit; }
#sd-modecard.locked { opacity: .85; cursor: default; }
#sd-modecard.locked > .sd-ic { opacity: .3; }
body.sd #sd-picker .sk-mode.nofit { opacity: .5; }
body.sd #sd-picker .sk-mode.nofit small { color: #FF4F8B; }
body.sd #sk-toast2 { z-index: 80; opacity: 0; visibility: hidden; transition: transform .28s, opacity .2s, visibility 0s linear .28s; }
/* hidden toasts were an empty pill at the bottom edge (2.5.4: translate 120% is not enough above the home indicator) */
body.sd #sk-toast2.show { opacity: 1; visibility: visible; transition: transform .28s, opacity .2s; }
.sd-pass .prem-buy { margin-left: auto; display: flex; gap: 8px; }
.sd-pass .prem-buy .prem { margin-left: 0; }
.sd-pass .prem.fray { background: linear-gradient(135deg, #FCD286, #F6A83B 45%, #D68029); }

/* squad sheet: invite link, friends, code */
#sq-sheet { position: absolute; inset: 0; z-index: 45; display: none; align-items: center; justify-content: center; background: #0A111Bd9; backdrop-filter: blur(5px);
  padding: calc(8px + env(safe-area-inset-top, 0px)) calc(10px + env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) calc(10px + env(safe-area-inset-left, 0px)); }
#sq-sheet.on { display: flex; }
#sq-sheet .sq-box { width: min(760px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 8px; background: #121A2B; border: 1px solid var(--sd-line); border-radius: 10px; padding: 12px 14px; box-shadow: 0 18px 60px #000a; }
#sq-sheet .sq-hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
#sq-sheet h2 { margin: 0; font: 400 26px/1 var(--sd-display); color: var(--sd-paper); }
#sq-sheet h2 small { font: 800 13px/1 var(--sd-cond); color: var(--sd-gold); letter-spacing: .044em; margin-left: 6px; }
#sq-sheet .x { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--sd-line); background: var(--sd-panel); color: var(--sd-paper); display: grid; place-items: center; }
#sq-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; overflow: hidden; }
#sq-body .sq-col { display: flex; flex-direction: column; gap: 6px; min-height: 0; overflow-y: auto; scrollbar-width: none; }
#sq-body .sq-col::-webkit-scrollbar { display: none; }
#sq-body .sq-list { display: flex; flex-direction: column; gap: 5px; }
#sq-body .sq-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--sd-line); border-radius: 7px; background: #121A2B; }
#sq-body .sq-av { width: 34px; height: 34px; flex: none; border-radius: 7px; display: grid; place-items: center; font: 800 14px/1 var(--sd-cond); color: var(--sd-paper); border: 2px solid var(--sd-line); background: #121A2B center 18% / 190% no-repeat; font-style: normal; }
#sq-body .sq-av.on { border-color: #39E07A; }
#sq-body .sq-av.off { opacity: .5; }
#sq-body .sq-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#sq-body .sq-who b { font: 800 12px/1.1 var(--sd-cond); letter-spacing: .022em; color: var(--sd-paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sq-body .sq-who span { font: 700 9px/1.1 var(--sd-cond); letter-spacing: .055em; color: var(--sd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#sq-body .sq-who span.ok { color: #39E07A; }
#sq-body .sq-mini { flex: none; padding: 7px 10px; border-radius: 6px; border: 1px solid var(--sd-line); background: var(--sd-panel); color: var(--sd-paper); font: 800 10px/1 var(--sd-cond); letter-spacing: .055em; cursor: pointer; }
#sq-body .sq-mini.gold { border-color: #F6A83B88; color: var(--sd-gold); }
#sq-body .sq-mini:disabled { opacity: .55; }
#sq-body .sq-open { font: 600 10.5px/1.3 var(--sd-body); color: var(--sd-muted); padding: 2px 2px 0; }
#sq-body .sq-warn { font: 700 11px/1.3 var(--sd-body); color: #FF4F8B; }
#sq-body .sq-code { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; border: 1px dashed #F6A83B88; background: #F6A83B1f; margin-top: 2px; }
#sq-body .sq-code span { font: 700 9px/1 var(--sd-cond); letter-spacing: .077em; color: var(--sd-muted); }
#sq-body .sq-code b { flex: 1; font: 800 17.5px/1 var(--sd-cond); letter-spacing: .066em; color: var(--sd-gold); }
#sq-body .sk-btn { display: flex; align-items: center; justify-content: center; gap: 8px; font: 800 13px/1 var(--sd-cond) !important; letter-spacing: .044em; padding: 12px 10px !important; }
#sq-body .sq-actions { display: flex; gap: 6px; justify-content: space-between; }
#sq-body .sq-join { display: flex; gap: 6px; }
#sq-body .sq-join input { flex: 1; min-width: 0; padding: 9px 10px; border-radius: 6px; border: 1px solid var(--sd-line); background: #0A111B; color: var(--sd-paper); font: 800 13px/1 var(--sd-cond); letter-spacing: .055em; text-transform: uppercase; -webkit-user-select: text; user-select: text; }
#sq-body .sq-empty { font: 600 11px/1.4 var(--sd-body); color: var(--sd-muted); padding: 6px 2px; }
@media (max-height: 380px) {
  #sq-sheet .sq-box { padding: 8px 10px; gap: 5px; }
  #sq-sheet h2 { font-size: 20px; }
  #sq-body .sq-row { padding: 4px 6px; }
  #sq-body .sq-av { width: 28px; height: 28px; }
}
@media (max-width: 560px) { #sq-body { grid-template-columns: 1fr; overflow-y: auto; } #sq-body .sq-col { overflow: visible; } }
body:not(.sk-match) #settings .sk-inmatch { display: none !important; }
#sk-leavematch { border-color: #FF4F8B !important; color: #FF4F8B !important; }
/* live-ops ticker: long event names shorten instead of pushing "1D LEFT" off the card */
body.sd #sk-liveops .sl-top span { flex: 1; min-width: 0; max-width: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
body.sd #sk-liveops .sl-top span .sd-ic { vertical-align: -2px; margin-right: 4px; }
body.sd #sk-liveops .sl-top b { flex: none; }
body.sd #sk-liveops .sl-top { min-width: 0; }

/* ---------------------------------------------------- 2.5.5 · starter pass */
.sd-pass.v2 { gap: 8px; }
.sd-pass.v2 .top { flex-wrap: nowrap; gap: 14px; align-items: center; min-height: 0; }
.sd-pass.v2 .ttl { flex: none; }
.sd-pass.v2 .top .tier { font: 400 26px/1 var(--sd-display); white-space: nowrap; }
.sd-pass.v2 .nx { width: auto; flex: 1 1 140px; min-width: 110px; max-width: 240px; }
.sd-pass.v2 .claimall { width: auto; flex: none; white-space: nowrap; animation: sd-glow 1.6s ease-in-out infinite; }
.sd-pass.v2 .prem-buy { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: 0 1 auto; min-width: 0; }
.sd-pass.v2 .prem-buy .what { font: 700 9.5px/1.2 var(--sd-cond); letter-spacing: .033em; color: var(--sd-muted); text-align: right; }
.sd-pass.v2 .prem-buy .btns { display: flex; gap: 6px; }
.sd-pass.v2 .prem { margin-left: 0; padding: 6px 14px; font: 400 18px/1 var(--sd-display); white-space: nowrap; }
.sd-pass.v2 .prem.owned { margin-left: auto; padding: 8px 14px; }
.sd-pass.v2 .track { flex: 1 1 auto; min-height: 0; gap: 6px; align-items: stretch; scroll-snap-type: x proximity; scroll-padding-left: 58px; position: relative; }
.sd-pass.v2 .rows { flex: 0 0 52px; position: sticky; left: 0; z-index: 2; display: grid; grid-template-rows: 26px 1fr 1fr; gap: 6px; background: linear-gradient(90deg, #121A2B 80%, #121A2B00); padding-right: 6px; }
.sd-pass.v2 .rows span { display: grid; place-items: center start; font: 800 8.5px/1.15 var(--sd-cond); letter-spacing: .055em; color: var(--sd-dim); }
.sd-pass.v2 .rows span:first-child { grid-row: 2; color: var(--sd-muted); }
.sd-pass.v2 .rows span:last-child { grid-row: 3; color: var(--sd-ember); }
.sd-pass.v2 .col { flex: 0 0 92px; display: grid; grid-template-rows: 26px 1fr 1fr; gap: 6px; scroll-snap-align: start; min-height: 0; }
.sd-pass.v2 .cell { min-height: 0; text-align: left; color: var(--sd-paper); cursor: default; padding: 6px 7px; gap: 3px; overflow: hidden; }
.sd-pass.v2 .cell b { font: 800 10px/1.12 var(--sd-cond); letter-spacing: .028em; font-weight: 800; }
.sd-pass.v2 .cell .sd-ic { width: 18px; height: 18px; flex: none; }
.sd-pass.v2 .cell.lock { opacity: .55; }
.sd-pass.v2 .cell.plock { opacity: .8; }
.sd-pass.v2 .cell.got { opacity: .5; }
.sd-pass.v2 .cell.got small { color: var(--sd-patina); }
.sd-pass.v2 .cell.ready { cursor: pointer; border-color: var(--sd-gold); background: linear-gradient(180deg, #F6A83B2e, #121A2Bee); box-shadow: 0 0 0 1px #F6A83B55, 0 0 14px #F6A83B44; animation: sd-glow 1.6s ease-in-out infinite; }
.sd-pass.v2 .cell.ready small { color: var(--sd-goldhi); }
.sd-pass.v2 .cell.p.ready { border-color: var(--sd-copper); background: linear-gradient(135deg, #D6802933, #121A2Bee); }
.sd-pass.v2 .cell.ready:active { transform: scale(.97); }
.sd-pass.v2 .foot { flex: none; text-align: center; color: var(--sd-dim); }
@keyframes sd-glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }

/* claimed rewards: a short look, tap or wait */
#sd-claimfx { position: absolute; inset: 0; z-index: 90; display: none; place-items: center; background: #060B12cc; backdrop-filter: blur(3px); cursor: pointer; }
#sd-claimfx.on { display: grid; animation: sd-fadein .18s ease-out; }
#sd-claimfx .cf-box { min-width: 260px; max-width: min(560px, 88vw); max-height: 86%; overflow: auto; padding: 16px 20px 12px; border-radius: 12px; border: 1px solid var(--sd-gold); background: radial-gradient(120% 80% at 50% 0%, #1B2540, #121A2B 70%); text-align: center; box-shadow: 0 18px 50px #000c; }
#sd-claimfx .cf-fray { margin: 8px 0 4px; display: flex; align-items: center; justify-content: center; gap: 6px; font: 400 40px/1 var(--sd-display); color: var(--sd-goldhi); animation: sd-pop .35s cubic-bezier(.2, 1.6, .4, 1); }
#sd-claimfx .cf-fray .fray-ico { width: 30px; height: 30px; }
#sd-claimfx .cf-fray small { font: 800 13px/1 var(--sd-cond); letter-spacing: .055em; color: var(--sd-muted); }
#sd-claimfx .cf-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
#sd-claimfx .cf-it { width: 104px; padding: 8px 6px; border-radius: 8px; border: 1px solid var(--sd-line); background: #121A2B; display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0; animation: sd-pop .32s cubic-bezier(.2, 1.6, .4, 1) forwards; }
#sd-claimfx .cf-it i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: var(--sd-panel2); color: var(--sd-gold); }
#sd-claimfx .cf-it i.pic { background: var(--sd-panel) center 18% / 170% no-repeat; border: 2px solid; }
#sd-claimfx .cf-it b { font: 800 10.5px/1.15 var(--sd-cond); letter-spacing: .028em; color: var(--sd-paper); }
#sd-claimfx .cf-it small { font: 700 8.5px/1 var(--sd-cond); letter-spacing: .044em; color: var(--sd-muted); }
#sd-claimfx .cf-tap { margin-top: 12px; font: 700 9px/1 var(--sd-cond); letter-spacing: .077em; color: var(--sd-dim); }
@keyframes sd-pop { 0% { opacity: 0; transform: scale(.6); } 100% { opacity: 1; transform: none; } }
@keyframes sd-fadein { from { opacity: 0; } to { opacity: 1; } }
@media (max-height: 420px) {
  .sd-pass.v2 .top .tier { font-size: 22px; }
  .sd-pass.v2 .prem-buy .what { display: none; }
  .sd-pass.v2 .col, .sd-pass.v2 .rows { grid-template-rows: 22px 1fr 1fr; gap: 5px; }
  .sd-pass.v2 .num { width: 22px; height: 22px; font-size: 11px; }
}

/* ------------------------------------------- 2.5.5 · pre-fight lobby: portraits + names */
body.sd #sk-queue { gap: 10px; padding-left: calc(18px + env(safe-area-inset-left, 0px)) !important; padding-right: calc(18px + env(safe-area-inset-right, 0px)) !important; }
body.sd #sk-queue .sk-h { font: 400 clamp(22px, 6vh, 30px)/1 var(--sd-display); letter-spacing: .02em; }
body.sd #sk-queue #sk-qsub { font: 700 11px/1.2 var(--sd-cond); letter-spacing: .055em; text-transform: uppercase; color: var(--sd-muted); }
body.sd #sk-qgrid { display: grid; gap: 8px; width: 100%; max-width: 760px; }
body.sd #sk-qgrid.solo { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.sd #sk-qgrid.solo[data-n="1"] { grid-template-columns: minmax(0, 150px); justify-content: center; }
body.sd #sk-qgrid.solo[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 150px)); justify-content: center; }
body.sd #sk-qgrid.teams { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
body.sd #sk-qgrid .qteam { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 9px; border: 1px solid var(--sd-line); background: #0A111Baa; }
body.sd #sk-qgrid .qteam.mine { border-color: #2BA3EE; background: #2BA3EE14; }
body.sd #sk-qgrid .qteam > span { font: 800 9px/1 var(--sd-cond); letter-spacing: .077em; color: var(--sd-muted); text-align: center; }
body.sd #sk-qgrid .qteam.mine > span { color: var(--sd-patina); }
body.sd .sk-slot.q { display: grid; grid-template-columns: 46px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left;
  padding: 5px 8px 5px 5px; opacity: 1; transform: none; transition: opacity .25s, transform .25s, border-color .25s; min-width: 0; }
body.sd .sk-slot.q .pic { grid-row: 1 / 3; width: 46px; height: 46px; border-radius: 7px; background: #121A2B center 16% / 175% no-repeat; border: 1px solid var(--sd-line); }
body.sd .sk-slot.q b { font: 800 12px/1.1 var(--sd-cond); letter-spacing: .022em; color: var(--sd-paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: end; }
body.sd .sk-slot.q b em { font: 800 8.5px/1 var(--sd-cond); font-style: normal; color: var(--sd-ink); background: var(--sd-patina); padding: 1px 4px; border-radius: 3px; vertical-align: 1px; }
body.sd .sk-slot.q small { font: 700 9.5px/1.1 var(--sd-cond); letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: start; }
body.sd .sk-slot.q.me { border-color: #2BA3EE; box-shadow: 0 0 0 1px #2BA3EE55; }
body.sd .sk-slot.q.ally { border-color: #2BA3EE88; }
body.sd .sk-slot.q.wait { opacity: .38; }
body.sd .sk-slot.q.wait .pic { background-image: none !important; filter: none !important; background: repeating-linear-gradient(45deg, #121A2B, #121A2B 6px, #1B2540 6px, #1B2540 12px); }
body.sd .sk-slot.q.wait b, body.sd .sk-slot.q.wait small { color: transparent !important; background: #26324D; border-radius: 3px; }
body.sd .sk-slot.q.on { animation: sd-pop .3s cubic-bezier(.2, 1.6, .4, 1); }
body.sd #sk-qbar { width: 100%; max-width: 760px; }
@media (max-height: 420px) {
  body.sd #sk-queue { gap: 7px; }
  body.sd .sk-slot.q { grid-template-columns: 38px minmax(0, 1fr); padding: 4px 6px 4px 4px; }
  body.sd .sk-slot.q .pic { width: 38px; height: 38px; }
  body.sd #sk-qgrid { gap: 6px; }
  body.sd #sk-qgrid .qteam { gap: 4px; padding: 4px; }
}
@media (max-width: 700px) { body.sd #sk-qgrid.solo { grid-template-columns: repeat(4, minmax(0, 1fr)); } body.sd .sk-slot.q small { display: none; } }
@media (max-height: 430px) { body.sd #sk-queue .sk-screenlogo { display: none; } }

/* ------------------------------------------- 2.5.5 · match HUD: one row under the sun clock */
/* 2.5.4: #sk-dm-score was position:fixed inside the transformed #sk-live, so it landed on top
   of the mode pill and the score wrapped over three lines */
body.sd #sk-live { top: calc(60px + env(safe-area-inset-top, 0px)); align-items: center; gap: 6px; }
/* 2.5.5: the row under the sun arc holds FIGHTERS LEFT (BR) at the same height as the
   mode/score row; DM hides it (respawns), BR moves the mode row one line down */
body.sd.sd-mode-dm #left-count { display: none !important; }
body.sd.sd-mode-br #sk-live { top: calc(92px + env(safe-area-inset-top, 0px)); }
/* countdown / FIGHT! / BACK IN banners start below those rows (24% / 17% ran into them on phones) */
body.sd.sk-match #banner { top: max(24%, calc(var(--sdz, 1) * 128px + env(safe-area-inset-top, 0px))); }
body.sd.sk-match #banner.small { top: max(17%, calc(var(--sdz, 1) * 128px + env(safe-area-inset-top, 0px))); }
body.sd #sk-live .sk-pill { height: 28px; padding: 0 10px; gap: 6px; font: 800 11px/1 var(--sd-cond); letter-spacing: .055em; border: 1px solid var(--sd-line); background: #121A2Bd9; border-radius: 6px; box-shadow: none; color: var(--sd-paper); }
body.sd #sk-live .sk-pill .sd-ic { width: 14px; height: 14px; color: var(--sd-gold); }
body.sd #sk-live .sk-pill b { color: var(--sd-paper); font-weight: 800; }
body.sd #sk-dm-score { position: static; transform: none; height: 28px; padding: 0 10px; gap: 8px; border-radius: 6px; border: 1px solid var(--sd-line); background: #121A2Bd9; white-space: nowrap; font: 800 10px/1 var(--sd-cond); letter-spacing: .055em; }
body.sd #sk-dm-score b { font: 800 10px/1 var(--sd-cond); color: var(--sd-gold); }
body.sd #sk-dm-score span { font: 800 14px/1 var(--sd-cond); color: var(--sd-paper); }
body.sd #sk-dm-score em { font: 800 11px/1 var(--sd-cond); color: var(--sd-muted); border-left-color: var(--sd-line); }
body.sd #feed .sd-ic { width: 13px; height: 13px; vertical-align: -2px; margin: 0 3px; color: var(--sd-muted); }
@media (max-width: 700px) { body.sd #sk-live .sk-pill b { display: none; } }
/* 2.5.6 · ping to the game server (online rooms only) */
#sk-ping { display: none; }
#sk-ping.on { display: flex; align-items: center; }
#sk-ping .bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
#sk-ping .bars s { display: block; width: 3px; border-radius: 1px; background: currentColor; opacity: .3; }
#sk-ping .bars s:nth-child(1) { height: 5px; }
#sk-ping .bars s:nth-child(2) { height: 8px; }
#sk-ping .bars s:nth-child(3) { height: 12px; }
#sk-ping[data-q="good"] { color: #39E07A; }
#sk-ping[data-q="ok"] { color: #F6A83B; }
#sk-ping[data-q="bad"] { color: #FF4F8B; }
#sk-ping[data-q="good"] .bars s, #sk-ping[data-q="ok"] .bars s:nth-child(-n+2), #sk-ping[data-q="bad"] .bars s:nth-child(1) { opacity: 1; }
body.sd #sk-live #sk-ping b { display: inline; color: inherit; font-variant-numeric: tabular-nums; }

/* ------------------------------------------- 2.5.5 · connect screen */
body.sd #sk-connect { background: radial-gradient(ellipse 60% 70% at 50% 48%, #0A111Be6 0%, #0A111Bb3 55%, #0A111B40 100%); }
body.sd #sk-connect .sk-brandtag { color: var(--sd-goldhi); text-shadow: 0 2px 6px #000; font: 800 11px/1 var(--sd-cond); letter-spacing: .165em; }
body.sd #sk-connect > .sk-muted { color: var(--sd-paper); opacity: .9; text-shadow: 0 1px 4px #000; }
body.sd .sk-wbtn i.wi { display: grid; place-items: center; color: var(--sd-goldhi); }
body.sd .sk-wbtn i.wi .sd-ic { width: 22px; height: 22px; }

/* ------------------------------------------- 2.5.5 · dialogs */
body.sd #sk-dialog .sk-btn { white-space: nowrap; text-align: center; justify-content: center; display: flex; align-items: center; min-width: 0; }
body.sd #sk-dialog #sk-dialog-actions[data-n="3"] .sk-btn { font-size: 14px; padding: 11px 8px 10px; }
body.sd.sd-dlg #tg-dock { display: none !important; }

/* ------------------------------------------- 2.5.5 · picker: three arenas fit, one-line play button */
body.sd #sd-picker .sk-map { flex: 1 1 0; min-width: 96px; max-width: 200px; }
body.sd #sd-picker .sk-map b { overflow-wrap: anywhere; }
/* 2.5.5: map names fit their card (ton-app.css kept them on one line: MINESHAFT and
   SUNDOWN DUNES ran into the next card on phones); the size follows the card width */
body.sd #sd-picker .sk-map { container-type: inline-size; }
body.sd #sd-picker .sk-map b { white-space: normal; font-size: 13px; font-size: clamp(11px, 11.5cqw, 15px); line-height: 1.08; }
body.sd #sd-picker #sd-pk-play { font-size: clamp(16px, 5vh, 26px); white-space: nowrap; min-width: 0; }
@media (max-width: 760px) {
  /* iPhone SE: PLAY BR SINGLE was cut at both ends next to a wide FRIENDLY 1V1 */
  #sd-picker .act .fr { padding: 0 10px; font-size: 11px; letter-spacing: .08em; gap: 6px; }
  #sd-picker .act .fr .sd-ic { display: none; }
}
body.sd #sd-picker #sd-pk-play small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* ------------------------------------------- 2.5.5 · social panel in the Sundown look
   (2.5.4: monospace 7–9 px, the SQUAD / COPY buttons had no style at all) */
body.sd #social-panel .soc-sheet { width: min(760px, 96vw); max-height: min(94vh, 100%); border: 1px solid var(--sd-line); border-radius: 12px; background: #121A2Bf2; box-shadow: 0 24px 80px #000c; }
body.sd #social-panel, body.sd #social-panel button, body.sd #social-panel input, body.sd #social-panel select { font-family: var(--sd-cond) !important; }
body.sd #social-panel .soc-head { padding: 12px 14px 10px; align-items: center; border-bottom-color: var(--sd-line); }
body.sd #social-panel .soc-kicker { font: 800 9px/1 var(--sd-cond); letter-spacing: .088em; color: var(--sd-gold); }
body.sd #social-panel h2 { font: 400 28px/1 var(--sd-display); letter-spacing: .02em; color: var(--sd-paper); margin-top: 4px; }
body.sd #social-panel .soc-code { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; font: 800 9px/1 var(--sd-cond); letter-spacing: .077em; color: var(--sd-muted); }
body.sd #social-panel .soc-code b { display: inline; margin: 0 4px 0 0; font: 800 14.5px/1 var(--sd-cond); letter-spacing: .066em; color: var(--sd-gold); }
body.sd #social-panel .soc-code button, body.sd #social-panel .soc-code #soc-close { margin: 0; height: 32px; padding: 0 12px; border: 1px solid var(--sd-line); border-radius: 6px; background: var(--sd-panel2); color: var(--sd-paper); font: 800 10px/1 var(--sd-cond); letter-spacing: .055em; cursor: pointer; display: inline-flex; align-items: center; }
body.sd #social-panel .soc-code #soc-team { background: linear-gradient(180deg, var(--sd-goldhi), var(--sd-gold)); color: var(--sd-ongold); border-color: transparent; }
body.sd #social-panel .soc-tabs { padding: 6px 10px; gap: 6px; border-bottom-color: var(--sd-line); }
body.sd #social-panel .soc-tabs button { font: 800 11px/1 var(--sd-cond); letter-spacing: .066em; padding: 9px 4px; border-radius: 6px; background: transparent; color: var(--sd-muted); }
body.sd #social-panel .soc-tabs button.on { background: #F6A83B1a; border-color: var(--sd-gold); color: var(--sd-gold); }
body.sd #social-panel .soc-body { padding: 10px 14px 12px; }
body.sd #social-panel .soc-label { font: 800 9.5px/1 var(--sd-cond); letter-spacing: .077em; color: var(--sd-patina); margin: 12px 0 6px; }
body.sd #social-panel .soc-card { border-color: var(--sd-line); background: #0A111Baa; border-radius: 8px; }
body.sd #social-panel .soc-hint { font: 600 11px/1.45 var(--sd-body); color: var(--sd-muted); }
body.sd #social-panel .soc-hint b { color: var(--sd-paper); }
body.sd #social-panel .soc-av { width: 34px; height: 34px; border-radius: 7px; border-color: var(--sd-line); font: 800 13px/1 var(--sd-cond); }
body.sd #social-panel .soc-grow b { font: 800 12px/1.15 var(--sd-cond); letter-spacing: .022em; color: var(--sd-paper); }
body.sd #social-panel .soc-grow span { font: 700 9.5px/1.2 var(--sd-cond); letter-spacing: .044em; color: var(--sd-muted); }
body.sd #social-panel .soc-btn { font: 800 11px/1 var(--sd-cond); letter-spacing: .055em; padding: 10px 14px; border-radius: 6px; border: 0; background: linear-gradient(180deg, var(--sd-goldhi), var(--sd-gold)); color: var(--sd-ongold); }
body.sd #social-panel .soc-btn.alt { background: var(--sd-panel2); color: var(--sd-paper); border: 1px solid var(--sd-line); }
body.sd #social-panel .soc-mini { font: 800 10px/1 var(--sd-cond); letter-spacing: .055em; padding: 8px 10px; border-radius: 6px; border-color: var(--sd-line); background: var(--sd-panel2); color: var(--sd-paper); }
body.sd #social-panel .soc-mini.gold { border-color: var(--sd-gold); color: var(--sd-gold); }
body.sd #social-panel input, body.sd #social-panel select { font: 700 12px/1 var(--sd-cond) !important; letter-spacing: .044em; padding: 10px; border-radius: 6px; border-color: var(--sd-line); background: #0A111B; }
body.sd #social-panel .soc-empty { font: 600 11.5px/1.4 var(--sd-body); color: var(--sd-muted); }
body.sd #social-panel .soc-link { font: 700 10px/1.3 var(--sd-cond); letter-spacing: .022em; border-radius: 6px; border-color: var(--sd-line); }
body.sd #social-panel .soc-stats > div { border-color: var(--sd-line); border-radius: 8px; background: #0A111Baa; }
body.sd #social-panel .soc-stats b { font: 400 22px/1 var(--sd-display); }
body.sd #social-panel .soc-stats span { font: 800 9px/1 var(--sd-cond); letter-spacing: .066em; }
body.sd #social-panel .soc-msg { font: 600 11.5px/1.35 var(--sd-body); }
body.sd #social-panel .soc-foot { font: 800 8.5px/1 var(--sd-cond); letter-spacing: .088em; border-top-color: var(--sd-line); }

/* ------------------------------------------- 2.5.5 · rank: compact two-column board */
.sd-rank { display: flex; flex-direction: column; gap: 8px; }
.sd-rank .list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px; }
.sd-rank .list.pin { border-top: 1px dashed var(--sd-line); padding-top: 6px; }
.sd-rk { display: grid; grid-template-columns: 30px 30px minmax(0, 1fr) auto; align-items: center; gap: 8px; height: 42px; padding: 0 10px 0 6px; border-radius: 7px; border: 1px solid var(--sd-line); background: #121A2Bcc; }
.sd-rk.me { border-color: var(--sd-copper); background: #D680291a; }
.sd-rk .n { font: 800 13px/1 var(--sd-cond); color: var(--sd-copper); text-align: center; }
.sd-rk .av { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; font: 400 15px/1 var(--sd-display); color: var(--sd-paper); background: linear-gradient(135deg, var(--sd-copper), var(--sd-golddeep)); }
.sd-rk b { font: 800 13px/1.1 var(--sd-cond); letter-spacing: .022em; color: var(--sd-paper); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-rk b em { font: 800 8.5px/1 var(--sd-cond); font-style: normal; color: var(--sd-ink); background: var(--sd-copper); padding: 1px 4px; border-radius: 3px; vertical-align: 2px; }
.sd-rk .tr { display: flex; align-items: center; gap: 4px; font: 800 13px/1 var(--sd-cond); color: var(--sd-paper); }
.sd-rk .tr .sd-ic { color: var(--sd-gold); }

/* ------------------------------------------- 2.5.5 · wallet sheet */
.sd-wal { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.sd-wal .col { display: flex; flex-direction: column; gap: 8px; }
.sd-wal .sk-btn { width: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.sd-wal .bal { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; border: 1px solid var(--sd-line); background: #121A2Bcc; font: 700 11px/1.2 var(--sd-cond); letter-spacing: .033em; color: var(--sd-muted); }
.sd-wal .bal b { display: flex; align-items: center; gap: 5px; font: 800 13px/1 var(--sd-cond); color: var(--sd-paper); }
.sd-wal .bal.sm { padding: 5px 10px; }
.sd-wal .bal.sm b { font-size: 12px; }

/* ------------------------------------------- 2.5.5 · quests: daily | weekly */
.sd-quests { display: flex; flex-direction: column; gap: 8px; }
.sd-quests .qhead { display: flex; align-items: center; gap: 10px; }
.sd-quests .qhead .sk-muted { flex: 1; }
.sd-quests .qcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.sd-quests .qcols .sd-kicker { margin-bottom: 6px; }
.sd-quests .sk-item { padding: 7px 10px; }
.sd-quests .sk-item .t { font-size: 14px; }
.sd-quests .sk-item .sk-btn { min-width: 84px; font-size: 12px; padding: 7px 10px; }
.sd-quests .qst { flex: none; font: 800 8.5px/1 var(--sd-cond); letter-spacing: .066em; color: var(--sd-dim); white-space: nowrap; }
.sd-quests .qst.go { color: var(--sd-gold); }
.sd-quests .qst.ok { color: var(--sd-patina); }
.sd-quests .sk-list { gap: 6px; }
.sd-quests .sk-item .sk-bar { margin-top: 3px; }
@media (max-height: 430px) { .sd-quests { gap: 6px; } .sd-quests .sk-item { padding: 6px 10px; } .sd-quests .qcols .sd-kicker { margin-bottom: 4px; } }

/* ------------------------------------------- 2.5.5 · heroes sheet: show that the columns scroll */
.sd-hs .inf.ov:not(.end), .sd-hs .sts.ov:not(.end) { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 22px), transparent); }
.sd-hs .inf.ov, .sd-hs .sts.ov { padding-bottom: 4px; }
/* 2.5.5: short landscape phones (iPhone, Seeker): tighter columns, lore on one line (tap for all) */
@media (max-height: 430px) {
  .sd-hs { gap: 6px 12px; }
  .sd-hs .inf { gap: 5px; }
  .sd-hs .inf .lore { display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
  .sd-hs .inf .lore.open { display: block; -webkit-line-clamp: unset; line-clamp: none; }
  .sd-hs .kit p { line-height: 1.25; }
  .sd-hs .sts { gap: 5px; }
  .sd-hs .sts .tiers div { padding: 5px 6px; white-space: nowrap; }
  .sd-hs .sts .tiers div small { display: inline; margin-left: 4px; }
  .sd-hs .sts .tiers div small em { display: none; }
  .sd-hs .skins .sk-look i { height: 40px; }
}
.sd-hs .sts .tiers div small em { font-style: normal; }
.sd-hs .sts .tiers div { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* iPhone SE: three tier boxes in a ~200 px column, the thresholds stay in the tooltip */
@media (max-height: 430px) and (max-width: 760px) { .sd-hs .sts .tiers div small { display: none; } }
.sd-hs .flt { scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 24px; }
.sd-hs .flt::-webkit-scrollbar { display: none; }
@media (max-height: 420px) { .sd-hs .flt button { padding: 5px 8px; font-size: 10.5px; } }

/* ------------------------------------------- 2.5.5 · big screens: scale the UI layers (--sdz from shell.js) */
body.sd #sk, body.sd #sk-dialog, body.sd #social-panel, body.sd #sk-live, body.sd #tg-dock, body.sd #tg-panel, body.sd #fm-overlay { zoom: var(--sdz, 1); }
body.sd.sk-match #settings, body.sd #settings { zoom: var(--sdz, 1); }
/* a desktop window in portrait cannot be rotated: ask for a wider window instead */
#rotate-hint .rh-desk { display: none; }
@media (hover: hover) and (pointer: fine) {
  #rotate-hint .rh-phone, #rotate-hint .rh-mob { display: none; }
  #rotate-hint .rh-desk { display: block; }
}

/* 2.5.5 · shop: three offers in a row + two short rows (2.5.4 scrolled ~100 px on a landscape phone) */
body.sd .sd-shop-hero { padding: 0 0 6px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
body.sd .sd-shop-hero .sk-muted { font-size: 11px; }
body.sd .sk-offer-grid.sd-offers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 8px; }
body.sd .sd-offers .sk-shop-card { min-height: 0; padding: 9px 10px; gap: 4px; }
body.sd .sd-offers .sk-shop-desc { flex: 1; }
body.sd .sd-offers .sk-shop-card .sk-btn { margin-top: 4px !important; }
body.sd .sd-pity { display: flex; align-items: center; gap: 8px; font: 800 8.5px/1 var(--sd-cond); letter-spacing: .055em; color: var(--sd-dim); }
body.sd .sd-pity u { flex: 1; height: 4px; border-radius: 2px; background: var(--sd-line); overflow: hidden; display: block; }
body.sd .sd-pity u i { display: block; height: 100%; background: var(--sd-gold); }
body.sd .sd-shop-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
body.sd .sd-shop-rows .sk-item { margin: 0; padding: 8px 10px; }
body.sd .sd-odds { margin-top: 8px; font-size: 10.5px; line-height: 1.35; }
@media (max-height: 430px) {
  body.sd .sd-shop-hero .sk-shop-title { font-size: 19px !important; }
  body.sd .sd-offers .sk-shop-desc { font-size: 11px !important; line-height: 1.3 !important; }
  body.sd .sd-shop-rows .sk-item .d { font-size: 10.5px; line-height: 1.3; }
}
@media (max-width: 620px) {
  body.sd .sk-offer-grid.sd-offers, body.sd .sd-shop-rows { grid-template-columns: 1fr; }
}

/* 2.5.5 · settings: a wide panel with the sections in columns (2.5.4: a 310 px dropdown that
   scrolled ~830 px on a landscape phone); in a match it stays a narrow column at the side */
body.sd #settings h3 { font: 400 24px/1 var(--sd-display); color: var(--sd-paper); letter-spacing: .02em; margin: 0 0 4px; }
body.sd #settings h4 { margin: 10px 0 5px; font: 800 10px/1 var(--sd-cond); letter-spacing: .077em; }
body.sd #settings section { break-inside: avoid; padding-bottom: 2px; }
body.sd #settings .row { margin: 1px 0; min-height: 30px; font-size: 13px; line-height: 1.2; }
body.sd #settings .seg { gap: 4px; }
body.sd #settings .seg button { min-width: 0; padding: 6px 2px; font-size: 10px; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.sd #settings .row .ghost-btn, body.sd #settings section > .ghost-btn { margin-top: 2px !important; padding: 7px 10px; font-size: 12px; }
body.sd #settings .tip { font-size: 11.5px; }
body.sd:not(.sk-match) #settings {
  width: min(820px, calc(100% - var(--sd-rail) - 44px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-width: none;
  top: calc(64px + env(safe-area-inset-top, 0px));
  max-height: calc(100% - 74px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
}
body.sd:not(.sk-match) #settings .sd-setcols { columns: 4 150px; column-gap: 18px; column-rule: 1px solid #ffffff12; }
body.sd:not(.sk-match) #settings .sd-settop { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 1px solid #ffffff12; }
body.sd #settings .sd-settop h4 { margin-top: 4px; }
/* 2.9.0: a fade at the bottom while the panel scrolls (it is taller than a landscape phone) */
body.sd #settings.ov:not(.end) { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent); }
body.sd #settings .row input[type=range] { min-width: 0; }
@media (max-height: 430px) { body.sd #settings .tip { display: none; } body.sd #settings .row { min-height: 28px; } }
body.sd:not(.sk-match) #settings .sd-setcols section:first-child h4 { margin-top: 4px; }

/* 2.5.5 · result: CLAIM below the list (it scrolled out of sight inside the rewards list on
   phones), no clipped REWARDS header, the list fades only when it scrolls */
.sd-rl, .sd-rr { justify-content: safe center; }
body.sd #sd-rclaim:empty { display: none; }
body.sd #sd-rclaim .sk-btn { width: 100%; }
body.sd #sk-rewards { flex: 0 1 auto; }
body.sd #sk-rewards.ov:not(.end) { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 18px), transparent); }
@media (max-height: 430px) {
  .sd-rr { gap: 5px; }
  .sd-rw { padding: 4px 9px 4px 5px; gap: 8px; grid-template-columns: 28px 1fr auto; }
  .sd-rw .t { width: 28px; height: 28px; }
  .sd-rw em { font-size: 17px; }
  body.sd #sk-claimnote { display: none; }
  body.sd #sd-share { padding: 7px; }
  body.sd #sk-claim { font-size: 16px; padding: 7px; }
}

/* 2.5.5 · desktop / tablets: the pass track no longer stretches every tier into a ~400 px tall
   empty box; the pass sits in the middle of the sheet */
@media (min-height: 700px) {
  .sd-pass.v2 { justify-content: center; }
  .sd-pass.v2 .track { flex: 0 1 auto; height: 440px; max-height: 100%; }
}

/* 2.5.5 · kit tiles: names never break inside a word (BUCKSHO/T in Telegram on an iPhone);
   where four names do not fit next to each other the tiles say ATTACK / SUPER / GADGET / STAR */
.sd-kit { container-type: inline-size; }
.sd-kit span.nm, .sd-kit span.ty { overflow-wrap: normal; word-break: normal; hyphens: manual; }
.sd-kit span.ty { display: none; }
@container (max-width: 230px) {
  .sd-kit span.nm { display: none; }
  .sd-kit span.ty { display: block; }
}
/* mastery tiers: the thresholds only where the stats column has room for them (Telegram on an
   iPhone narrows it by the safe areas) — they stay in the tooltip */
.sd-hs .sts { container-type: inline-size; }
@container (max-width: 270px) { .sd-hs .sts .tiers div small { display: none; } }
/* Telegram on short phones (header + safe areas leave ~330–360 px): the last few pixels */
@media (max-height: 400px) {
  body.sd #sd-picker .sk-mode { padding: 5px 10px !important; min-height: 40px; }
  body.sd #sd-picker #sk-modes { gap: 4px !important; }
}
@media (max-height: 370px) {
  .sd-hs .inf .lore { display: none; }
  .sd-hs .sts { gap: 4px; }
  .sd-hs .skins .sk-look i { height: 34px; }
}


/* ------------------------------------------- 2.6.0 · FRAY status (tokenomics v3) */
.sd-beta { font-style: normal; font: 800 8.5px/1 var(--sd-cond); letter-spacing: .066em; color: #0A111B; background: var(--sd-gold); border-radius: 3px; padding: 2px 4px; margin-left: 4px; vertical-align: 1px; }
.sd-fraystat { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; text-align: left; padding: 8px 10px; border-radius: 7px; border: 1px solid #FF7A2988; background: linear-gradient(90deg, #FF7A2922, #121A2Bcc); color: var(--sd-paper); cursor: pointer; }
.sd-fraystat b { font: 800 11px/1 var(--sd-cond); letter-spacing: .055em; color: var(--sd-goldhi); }
.sd-fraystat span { font: 700 10px/1.2 var(--sd-cond); letter-spacing: .033em; color: var(--sd-muted); }
#sk-fray { position: fixed; inset: 0; z-index: 82; display: none; align-items: center; justify-content: center; padding: 8px; background: radial-gradient(120% 120% at 50% 0%, #0A111Bcc, #060B12f2 70%); backdrop-filter: blur(6px); }
#sk-fray.open { display: flex; }
.sk-fraybox { width: min(820px, 96vw); max-height: 96vh; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, #121A2B, #0A111B); border: 1px solid var(--sd-line); border-radius: 8px; box-shadow: 0 30px 80px #000b; }
body.sd .sk-fraybox { zoom: var(--sdz, 1); }
.sk-frayhead { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 8px; border-bottom: 1px solid var(--sd-line); }
.sk-frayhead h2 { margin: 2px 0 0; font: 800 20px/1 var(--sd-cond); letter-spacing: .044em; color: var(--sd-paper); }
#sk-frayclose { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--sd-line); background: #121A2B; color: var(--sd-paper); }
#sk-fraybody { padding: 10px 14px 14px; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.fs-phase { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 7px; border: 1px solid #F6A83B88; background: linear-gradient(90deg, #F6A83B1f, #121A2Bcc); }
.fs-phase b { font: 800 13px/1 var(--sd-cond); letter-spacing: .066em; color: var(--sd-goldhi); }
.fs-phase span { font: 600 11.5px/1.3 var(--sd-body, inherit); color: var(--sd-paper); opacity: .9; }
.fs-phase.live { border-color: #39E07A88; background: linear-gradient(90deg, #39E07A22, #121A2Bcc); }
.fs-phase.live b { color: #39E07A; }
.fs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; align-items: start; }
.fs-col { display: flex; flex-direction: column; gap: 6px; }
.fs-gate { display: grid; grid-template-columns: 1fr 84px auto; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--sd-line); background: #121A2Bcc; font: 700 10px/1.2 var(--sd-cond); letter-spacing: .028em; color: var(--sd-muted); }
.fs-gate i { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--sd-gold) var(--p), #26324D var(--p)); }
.fs-gate b { font: 800 10px/1 var(--sd-cond); color: var(--sd-paper); white-space: nowrap; }
.fs-gate.done { border-color: #39E07A66; }
.fs-gate.done i { background: #39E07A; }
.fs-pot, .fs-entry { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--sd-line); background: #121A2Bcc; font: 700 10px/1.2 var(--sd-cond); color: var(--sd-muted); letter-spacing: .028em; }
.fs-pot b, .fs-entry b { color: var(--sd-paper); font: 800 11px/1 var(--sd-cond); }
.fs-pot small { flex-basis: 100%; font: 600 9px/1.3 var(--sd-cond); color: var(--sd-muted); }
.fs-entry a { margin-left: auto; color: var(--sd-goldhi); }
.fs-me { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fs-me div { display: flex; flex-direction: column; gap: 3px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--sd-line); background: #121A2Bcc; }
.fs-me span { font: 700 9px/1 var(--sd-cond); letter-spacing: .044em; color: var(--sd-muted); }
.fs-me b { font: 800 14px/1 var(--sd-cond); color: var(--sd-paper); }
.fs-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.fs-how div { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 7px; border: 1px solid var(--sd-line); background: #121A2Bd9; }
.fs-how b { font: 800 11px/1 var(--sd-cond); letter-spacing: .055em; color: var(--sd-goldhi); }
.fs-how span { font: 600 11px/1.35 var(--sd-body, inherit); color: var(--sd-paper); opacity: .88; }
.fs-note { font: 700 9.5px/1.3 var(--sd-cond); letter-spacing: .028em; color: var(--sd-muted); text-align: center; }

/* ---- 2.7.0 · Core mode: test credit note, fighter unlock grid, locked-fighters row */
body.sd .sd-testnote { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 7px 10px; border-radius: 7px;
  border: 1px dashed #2BA3EE99; background: #2BA3EE14; color: var(--sd-paper); font: 600 10.5px/1.3 var(--sd-body, inherit); }
body.sd .sd-testnote b { font: 800 10px/1 var(--sd-cond); letter-spacing: .044em; color: #2BA3EE; }
body.sd .sd-testnote svg { flex: none; color: #2BA3EE; }
body.sd .sd-unlock { display: grid; grid-template-columns: repeat(auto-fill, minmax(25px, 1fr)); gap: 3px; max-height: 88px; overflow-y: auto; padding: 2px 0; }
body.sd .sd-unlock button { aspect-ratio: 1; border-radius: 6px; border: 1px solid var(--sd-line); background: #0A111B center 18% / 160% auto no-repeat;
  cursor: pointer; padding: 0; filter: grayscale(.55) brightness(.85); transition: filter .15s, border-color .15s; }
body.sd .sd-unlock button:hover, body.sd .sd-unlock button:focus-visible { filter: none; border-color: var(--sd-gold); }
body.sd .sd-lockrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 7px 10px; border-radius: 7px;
  border: 1px solid var(--sd-line); background: #121A2Bd9; font: 700 10.5px/1.2 var(--sd-cond); letter-spacing: .033em; color: var(--sd-muted); }
body.sd .sd-lockrow span { display: flex; align-items: center; gap: 6px; }
body.sd .sd-lockrow span.b { flex: none; }

/* ---- 2.17.0 · ALL FIGHTERS: every fighter by class, owned and missing */
.sd-hs .flt .ro-go { border-color: var(--sd-gold); color: var(--sd-gold); }
.sd-hs .flt .ro-go.miss { border-style: dashed; }
.sd-ro { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 0; }
.sd-ro .hd { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sd-ro .sum { display: flex; align-items: flex-end; gap: 6px; line-height: 1; }
.sd-ro .sum b { font: 400 34px/0.9 var(--sd-display); color: var(--sd-gold); }
.sd-ro .sum span { font: 800 10px/1.1 var(--sd-cond); letter-spacing: .055em; color: var(--sd-muted); padding-bottom: 2px; }
.sd-ro .prog { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 5px; }
.sd-ro .prog u { display: block; height: 6px; border-radius: 3px; background: var(--sd-line); overflow: hidden; }
.sd-ro .prog u i { display: block; height: 100%; background: var(--sd-sun); }
.sd-ro .how { display: flex; align-items: center; gap: 5px; font: 600 10.5px/1.25 var(--sd-body); color: var(--sd-muted); }
.sd-ro .how .sd-ic { flex: none; color: var(--sd-gold); }
.sd-ro .vw { display: flex; gap: 6px; }
.sd-ro .vw button { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--sd-line); background: var(--sd-panel); color: var(--sd-paper);
  font: 800 10.5px/1 var(--sd-cond); letter-spacing: .055em; cursor: pointer; }
.sd-ro .vw button small { font: 800 9.5px/1 var(--sd-cond); color: var(--sd-dim); }
.sd-ro .vw button.on { background: var(--sd-paper); color: var(--sd-ink); border-color: var(--sd-paper); }
.sd-ro .vw button.on small { color: var(--sd-ink); opacity: .65; }
.sd-ro .vw button:disabled { opacity: .45; cursor: default; }
.sd-ro .cls { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px 16px; padding: 0 2px 6px 0; }
.sd-ro section { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sd-ro h4 { margin: 0; display: flex; align-items: center; gap: 5px; font: 800 10px/1 var(--sd-cond); letter-spacing: .066em; color: var(--sd-goldhi); white-space: nowrap; }
.sd-ro h4 small { font: 800 9.5px/1 var(--sd-cond); color: var(--sd-dim); letter-spacing: .04em; }
.sd-ro h4 small.full { color: var(--sd-patina); }
.sd-ro .grid { display: flex; gap: 6px; }
.sd-ro .ro { position: relative; width: 66px; flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 0 0 4px; border-radius: 9px;
  border: 1px solid var(--sd-line); background: var(--sd-panel); color: var(--sd-paper); cursor: pointer; overflow: hidden; text-align: center; }
.sd-ro .ro::after { content: ''; position: absolute; left: 0; right: 0; top: 63px; height: 3px; background: var(--rc); }
.sd-ro .ro .pic { display: block; width: 100%; height: 66px; background: #0A111B center 14% / 175% auto no-repeat; }
.sd-ro .ro b { margin-top: 3px; font: 800 9.5px/1.1 var(--sd-cond); letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 3px; }
.sd-ro .ro small { font: 700 8px/1.1 var(--sd-cond); letter-spacing: .033em; color: var(--sd-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 3px; }
.sd-ro .ro em { position: absolute; top: 3px; right: 3px; font: 800 7px/1 var(--sd-cond); font-style: normal; letter-spacing: .033em; padding: 1px 3px; border-radius: 2px;
  background: var(--fg-volt, var(--sd-ember)); color: var(--fg-navy, #fff); }
.sd-ro .ro.own small { color: var(--rc); }
.sd-ro .ro.own:hover, .sd-ro .ro.own:focus-visible { border-color: var(--sd-gold); }
.sd-ro .ro.miss { border-style: dashed; border-color: #3A4664; background: #0E1524; }
.sd-ro .ro.miss .pic { filter: grayscale(1) brightness(.42) contrast(1.1); }
.sd-ro .ro.miss b { color: var(--sd-muted); }
.sd-ro .ro.miss small { color: var(--sd-dim); }
.sd-ro .ro.miss .lk { position: absolute; left: 0; right: 0; top: 0; height: 66px; display: grid; place-items: center; color: var(--sd-paper); opacity: .9; }
.sd-ro .ro.miss .lk .sd-ic { filter: drop-shadow(0 1px 2px #000); }
.sd-ro .ro.miss:hover, .sd-ro .ro.miss:focus-visible { border-color: var(--sd-gold); }
.sd-ro .ro.miss:hover .pic, .sd-ro .ro.miss:focus-visible .pic { filter: grayscale(.6) brightness(.7); }
@media (max-height: 420px) { .sd-ro .sum b { font-size: 28px; } .sd-ro .ro { width: 60px; } .sd-ro .ro .pic { height: 60px; } .sd-ro .ro::after { top: 57px; } .sd-ro .ro.miss .lk { height: 60px; } }

/* ------------------------------------------- 2.8.0 · economy v4: Coins, leagues, the season sheet */
.coin-ico { filter: drop-shadow(0 1px 1px #0008); }
.sd-league { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--lc); color: var(--lc);
  font: 800 9px/1 var(--sd-cond); letter-spacing: .055em; background: color-mix(in srgb, var(--lc) 12%, transparent); }
body.sd #sk-prof .tr em.lg { font: 800 9px/1 var(--sd-cond); font-style: normal; letter-spacing: .055em; }
.sd-rank.v4 { gap: 10px; }
.sd-rank.v4 .sr-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, .7fr); gap: 8px; }
.sd-rank.v4 .sr-top > div { border: 1px solid var(--sd-line); border-radius: 8px; background: #121A2Bcc; padding: 9px 11px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sd-rank.v4 .sr-me { border-color: var(--lc) !important; background: linear-gradient(135deg, color-mix(in srgb, var(--lc) 18%, #121A2B), #121A2Bcc) !important; }
.sd-rank.v4 .sr-me .lg { display: flex; align-items: center; gap: 7px; color: var(--lc); }
.sd-rank.v4 .sr-me .lg b { font: 400 24px/1 var(--sd-display); letter-spacing: .04em; }
.sd-rank.v4 .sr-me .sc { display: flex; align-items: baseline; gap: 7px; }
.sd-rank.v4 .sr-me .sc b { font: 400 30px/1 var(--sd-display); color: var(--sd-paper); }
.sd-rank.v4 .sr-me .sc span, .sd-rank.v4 .sr-me .pg span { font: 700 9.5px/1.2 var(--sd-cond); color: var(--sd-muted); letter-spacing: .044em; }
.sd-rank.v4 .sr-me .pg u { display: block; height: 6px; border-radius: 3px; background: var(--sd-line); overflow: hidden; margin-bottom: 3px; }
.sd-rank.v4 .sr-me .pg u i { display: block; height: 100%; background: var(--lc); }
.sd-rank.v4 .sr-est b { font: 400 28px/1 var(--sd-display); color: var(--sd-goldhi, #FCD286); display: flex; align-items: center; gap: 4px; }
.sd-rank.v4 .sr-est b small { font: 800 11px/1 var(--sd-cond); color: var(--sd-muted); letter-spacing: .055em; }
.sd-rank.v4 .sr-est b .fray-ico { width: 24px; height: 24px; }
.sd-rank.v4 .sr-est span, .sd-rank.v4 .sr-end span { font: 600 9.5px/1.3 var(--sd-cond); color: var(--sd-muted); }
.sd-rank.v4 .sr-est .nx { color: #2BA3EE; }
.sd-rank.v4 .sr-end b { font: 400 26px/1 var(--sd-display); color: var(--sd-paper); }
.sd-rank.v4 .sr-table { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font: 700 9px/1 var(--sd-cond); color: var(--sd-muted); letter-spacing: .044em; }
.sd-rank.v4 .sr-table span { margin-right: 4px; }
.sd-rank.v4 .sr-table i { font-style: normal; display: inline-flex; gap: 3px; padding: 3px 6px; border-radius: 4px; border: 1px solid var(--sd-line); background: #121A2Bcc; }
.sd-rank.v4 .sr-table i b { color: var(--sd-paper); }
.sd-rank.v4 .sr-table i.p b { color: #39E07A; }
.sd-rank.v4 .sr-table i.m b { color: #FF4F8B; }
.sd-rank.v4 .sr-leagues { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.sd-rank.v4 .sr-leagues > div { border: 1px solid var(--sd-line); border-top: 3px solid var(--lc); border-radius: 6px; background: #121A2Bcc; padding: 6px 6px 5px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sd-rank.v4 .sr-leagues > div.on { background: color-mix(in srgb, var(--lc) 16%, #121A2B); border-color: var(--lc); }
.sd-rank.v4 .sr-leagues b { font: 800 10px/1 var(--sd-cond); letter-spacing: .044em; color: var(--lc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-rank.v4 .sr-leagues span, .sd-rank.v4 .sr-leagues small { font: 600 8.5px/1.1 var(--sd-cond); color: var(--sd-muted); }
.sd-rank.v4 .sr-leagues em { font: 800 11px/1.1 var(--sd-cond); font-style: normal; color: var(--sd-paper); }
.sd-rk.v4 { height: 46px; }
.sd-rk.v4 b small { display: block; font: 600 8.5px/1.2 var(--sd-cond); color: var(--sd-muted); letter-spacing: .033em; }
.sd-rk.v4 .tr { flex-direction: column; align-items: flex-end; gap: 2px; }
.sd-rk.v4 .tr small { font: 700 8.5px/1 var(--sd-cond); color: var(--sd-goldhi, #FCD286); }
@media (max-height: 520px), (max-width: 760px) {
  .sd-rank.v4 .sr-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sd-rank.v4 .sr-end { grid-column: span 2; flex-direction: row !important; align-items: baseline; gap: 10px !important; }
  .sd-rank.v4 .sr-leagues { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.sd-rw.season { border-color: #2BA3EE88; }

/* ------------------------------------------------------------------ 2.10 */
/* settings: one GRAPHICS row with the CAMERA next to it. The engine's tier row and the bot row stay in
   the DOM (the engine fills them at start) but out of sight; AO and bloom only where the tier draws
   them; dev stats with ?dev=1 */
body.sd #settings .sd-hidden { display: none !important; }
body.sd:not(.sk-match) #settings .sd-settop { grid-template-columns: 4fr 3fr; }
body.sd:not(.gfx-fx) #settings .sd-fxonly { display: none; }
body.sd:not(.sd-dev) #settings .sd-devonly { display: none; }
body.sd:not(.gfx-fx):not(.sd-dev) #settings #sd-fxsec { display: none; }
/* match HUD: the time of day read as a match timer. Deathmatch hides it (the mode row moves up),
   battle royale keeps the sun arc without the clock */
body.sd.sd-mode-dm #sd-sun { display: none; }
body.sd.sd-mode-dm #sk-live { top: calc(8px + env(safe-area-inset-top, 0px)); }
body.sd #sd-sun b { display: none; }
body.sd #sd-sun { height: 34px; }
body.sd.sd-mode-br #sk-live { top: calc(80px + env(safe-area-inset-top, 0px)); }
/* deathmatch has one HUD row now: 3-2-1 / FIGHT! / BACK IN sit higher, off the fighter in the middle */
body.sd.sk-match.sd-mode-dm #banner { top: max(13%, calc(var(--sdz, 1) * 50px + env(safe-area-inset-top, 0px))); }
body.sd.sk-match.sd-mode-dm #banner.small { top: max(11%, calc(var(--sdz, 1) * 46px + env(safe-area-inset-top, 0px))); }
/* pass: a rail between the premium rewards (tiers 1, 10, 20, 30) instead of empty boxes */
.sd-pass.v2 .cell.empty.rail { border: 0; background: none; overflow: visible; position: relative; padding: 0; }
.sd-pass.v2 .cell.empty.rail::before { content: ""; position: absolute; left: -7px; right: -7px; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: #D680293d; }

/* ------------------------------------------------------------------ 0.7.0 */
/* overhead HP bars: the number sat in an 8 px bar with overflow hidden and lost its lower half. The bar
   is now as tall as the number's line, the number sits centred in it (also on crates and boxes) */
.oh-bar { height: 13px; }
.oh-hp { height: 13px; font-size: 10.5px; line-height: 13px; letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.oh.box .oh-bar { height: 12px; }
.oh.box .oh-hp { height: 12px; font-size: 9.5px; line-height: 12px; }
