/* Dream11 classic skin (the 2023–25 app), loaded after app.css */
:root { --red: #d1141b; --red-d: #a50f15; --green: #0f9d58; --d11-green: #1a9c44; --bg: #f2f2f2; --line: #e6e6e6; --ink: #1d1d1d; --ink2: #6d6d6d;
  --display: "Roboto", system-ui, sans-serif; --r: 10px; --shadow: none;
  --dark: #15171c; --glow: radial-gradient(120% 140% at 0% 0%, rgba(209,20,27,.55), rgba(209,20,27,0) 55%); }
body { font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--bg); }
.card { border: 1px solid var(--line); box-shadow: none; border-radius: var(--r); }
.section-title { margin: 18px 2px 10px; }
.section-title h2, h1, .vs .tn b, .hf-teams b, .big, .code { font-family: "Roboto", sans-serif; letter-spacing: 0; }
.section-title h2 { font-size: 17px; font-weight: 700; }
.btn { border-radius: 6px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 14px; }
.btn:not(.ghost):not(.danger) { background: var(--d11-green); }
.btn.ghost { background: #fff; border: 1px solid #cfcfcf; color: var(--ink); }
.link { color: var(--ink); }

/* home header: profile circle · logo · wallet */
.top { background: var(--red); height: 56px; padding: 0 12px; padding-top: env(safe-area-inset-top); gap: 10px; box-shadow: none; }
.top .brand { position: absolute; left: 50%; transform: translateX(-50%); }
.top .brand img { width: auto; height: 22px; border-radius: 0; box-shadow: none; }
#me-btn span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--red); font-weight: 900; font-size: 13px; box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
#nav .wallet { display: flex; align-items: center; gap: 6px; padding: 4px 0 4px 8px; background: none; color: #fff; border-radius: 0; }
#nav .wallet svg { width: 24px; height: 24px; }
#nav .wallet b { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
body.sub .top { display: none; }

/* bottom tab bar: full width, outline icons, red when active */
#tabbar, body.has-bar #tabbar { left: 0; right: 0; bottom: 0; width: auto; border-radius: 0; border: 0; border-top: 1px solid var(--line); background: #fff; backdrop-filter: none; box-shadow: 0 -1px 4px rgba(0,0,0,.04); }
body.has-bar #tabbar { transform: translateY(110%); }
#tabbar a { font-weight: 500; font-size: 11.5px; color: #8b8b8b; padding: 7px 0 6px; }
#tabbar a svg { width: 25px; height: 25px; }
#tabbar a.on { color: var(--red); }
#tabbar a.on svg { transform: none; }
#tabbar a.on::before { display: none; }
@media (min-width: 640px) { #tabbar, body.has-bar #tabbar { left: 0; right: 0; width: auto; transform: none; } body.has-bar #tabbar { transform: translateY(110%); } }

/* match screens: near-black bar with a red glow, status pill, PTS */
.subbar { position: sticky; top: 0; z-index: 21; display: flex; align-items: center; gap: 12px; height: 56px; margin: -16px -16px 0; padding: 0 12px; padding-top: env(safe-area-inset-top);
  background: var(--glow), var(--dark); color: #fff; }
.subbar svg { width: 24px; height: 24px; display: block; }
.sb-t { flex: 1; min-width: 0; line-height: 1.2; }
.sb-t b { display: block; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-t small { font-size: 12.5px; opacity: .8; }
.sb-pts { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid #fff; border-radius: 50%; font-size: 9px; font-weight: 900; letter-spacing: -.02em; }
.st-pill { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; letter-spacing: .04em; vertical-align: 2px; }
.st-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-pill.done { background: #1f4a2c; color: #6ee38f; }
.st-pill.live { background: #5a1418; color: #ff6b72; }
.st-pill.live::before { animation: blink 1.2s infinite; }
body.sub .mhead, body.sub .builder-head { top: 56px; }

/* tabs: white bar, red underline */
.tabs, .mhead .tabs { background: #fff; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line); padding: 0; gap: 0; margin: 0 -16px 12px; }
.mhead .tabs { margin: 0; }
.tabs button { border-radius: 0; padding: 13px 14px 10px; color: #757575; font-weight: 500; font-size: 15px; border-bottom: 3px solid transparent; }
.tabs button.on { background: none; color: var(--red); font-weight: 700; border-bottom-color: var(--red); }
.mhead { margin: 0 -16px 12px; padding: 0; }

/* live score card: glass panel on the dark band */
.mhead::before { content: ""; position: absolute; inset: 0 0 auto; height: calc(100% - 49px); background: var(--dark); z-index: -1; }
.lstrip { margin: 0; border-radius: 0; box-shadow: none; padding: 4px 12px 12px; background: var(--dark); }
.lstrip > .ls-row, .lstrip > .ls-over { background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.14); }
.lstrip > .ls-row { border-radius: 14px 14px 0 0; padding: 12px; border-bottom: 0; }
.lstrip > .ls-over { border-radius: 0 0 14px 14px; margin-top: 0; padding: 8px 12px; border-top: 1px solid rgba(255,255,255,.08); }
.lstrip > .ls-row:last-child { border-radius: 14px; border-bottom: 1px solid rgba(255,255,255,.14); }
.ls-t .flag { width: 40px; height: 40px; }
.subbar + .card { border-radius: 0; margin: 0 -16px 12px; border-left: 0; border-right: 0; border-top: 0; }

/* home: My Matches strip */
.mm-strip { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.mm-strip::-webkit-scrollbar { display: none; }
.mm { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.mm-name { font-size: 12px; color: var(--ink2); padding: 8px 12px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-mid { display: flex; align-items: center; gap: 6px; padding: 8px 12px 10px; }
.mm-mid .flag { width: 28px; height: 28px; }
.mm-mid > b { font-size: 15px; font-weight: 700; }
.mm-mid > span { flex: 1; text-align: center; font-size: 13px; }
.mm-mid > span b { color: var(--red); font-weight: 700; font-variant-numeric: tabular-nums; }
.mm-foot { background: #f6f6f6; border-top: 1px solid var(--line); font-size: 12px; font-weight: 500; padding: 6px 12px; color: #424242; }
.dm-live { color: var(--red) !important; display: inline-flex !important; align-items: center; gap: 5px; text-transform: uppercase; font-size: 12px !important; letter-spacing: .04em; }
.dm-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; }
.dm-done { color: var(--green) !important; font-size: 13px !important; }

/* "Play contests with your friends | CREATE NEW" */
.friends-strip { display: flex; align-items: stretch; margin: 14px -16px 0; background: #e8f1fb; border-top: 1px solid #d6e5f5; border-bottom: 1px solid #d6e5f5; }
.friends-strip span { flex: 1; padding: 13px 16px; color: #1d4f91; font-size: 14px; }
.friends-strip b { display: flex; align-items: center; gap: 6px; padding: 0 16px 0 26px; background: #fff; clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%); font-size: 13.5px; letter-spacing: .02em; }
.friends-strip b svg { width: 18px; height: 18px; }

/* Dream11 match card */
.dm { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.dm-top { font-size: 13px; color: #757575; padding: 9px 12px 7px; border-bottom: 1px solid #efefef; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-names { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px 0; font-size: 13px; color: #212121; }
.dm-names span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 48%; }
.dm-names span:last-child { text-align: right; }
.dm-mid { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 6px 12px 10px; }
.dm-mid::before, .dm-mid::after { content: ""; position: absolute; top: 14px; width: 6px; height: 24px; }
.dm-mid::before { left: 0; background: var(--k1); } .dm-mid::after { right: 0; background: var(--k2); }
.dm-t { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dm-t.r { justify-content: flex-end; }
.dm-t b { font-size: 17px; font-weight: 700; }
.dm-t .flag { width: 38px; height: 38px; }
.dm-when { text-align: center; line-height: 1.25; }
.dm-when b { display: block; color: var(--red); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dm-when small { font-size: 11.5px; color: #757575; }
.dm-score { display: flex; justify-content: space-between; gap: 8px; padding: 0 12px 8px; font-size: 12.5px; color: #424242; }
.dm-foot { display: flex; align-items: center; gap: 8px; background: #f6f6f6; border-top: 1px solid #ececec; padding: 7px 12px; min-height: 36px; font-size: 13px; }
.dm-foot .mega { border: 1px solid #4caf50; color: #2e7d32; background: #edf8ee; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 1px 6px; letter-spacing: .03em; }
.dm-ft { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #424242; }
.dm-cta { font-weight: 700; color: var(--ink); font-size: 12.5px; white-space: nowrap; }
.dm-pts { font-variant-numeric: tabular-nums; }
.seg.mini button { border-radius: 999px; }
.seg.mini button.on { border-color: var(--ink); background: var(--ink); color: #fff; }

/* My Matches: Upcoming | Live | Completed */
.seg3 { display: flex; background: #e6e6e6; border-radius: 8px; padding: 3px; margin-bottom: 14px; }
.seg3 button { flex: 1; border: 0; background: none; padding: 8px 4px; border-radius: 6px; font-weight: 500; color: #616161; font-size: 14px; cursor: pointer; }
.seg3 button.on { background: #fff; color: var(--red); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* leaderboard, Dream11 style: cream row for you, rank on the right */
table.board tr.me td { background: #fdf6e7; }
table.board tr.pinned td { border-bottom: 1px solid #f0e3c4; }
.lb-note { text-align: center; color: #3f2d7a; font-size: 14px; padding: 10px 0 4px; }

/* team preview: Dream11 grass, dark and white name tags */
.phead { background: var(--dark); border-radius: var(--r) var(--r) 0 0; }
.phead .split i { border-radius: 4px; }
.phead .split i:last-of-type { background: #3a4048; color: #fff; }

/* PTS sheet */
.ps-h { font-weight: 700; font-size: 14px; padding: 14px 0 6px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .03em; color: #424242; }
.ps-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f1f1f1; font-size: 14px; }
.ps-row b.pos { color: #1a9c44; } .ps-row b.neg { color: var(--red); }
.sb-t small.v { display: inline; font-size: 13px; font-weight: 500; opacity: .75; margin: 0 2px; }
button.sb-pts { background: none; color: #fff; cursor: pointer; padding: 0; }
.top::before, .top::after { display: none !important; }
.section-title h2 { text-transform: none; font-size: 17px; }
.mm-mid .flag, .dm-t .flag, .ls-t .flag { flex: none; }

/* pitch: Dream11 grass, stripes, square name tags (white for one side, slate for the other) */
.phead + .pitch { border-radius: 0 0 var(--r) var(--r); }
.pitch { background: radial-gradient(120% 70% at 50% 45%, #3c9a4a, #23733a 70%, #1b6131); box-shadow: none; }
.pitch .ground { background: radial-gradient(ellipse 47% 42% at 50% 50%, transparent 98.5%, rgba(255,255,255,.35) 99%, transparent 100%), repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 46px, rgba(0,0,0,.04) 46px 92px) !important; }
.pitch .ground::before { border-color: rgba(255,255,255,.18) !important; }
.pitch .ground::after { background: rgba(255,255,255,.12) !important; width: 52px; border-radius: 2px; }
.pitch .line > span { font-size: 11.5px; letter-spacing: .02em; opacity: .85; font-weight: 700; }
.pp .avatar { width: 52px; height: 52px; border: 0; background: none; box-shadow: none; border-radius: 0; }
.pp .avatar img, .pp .avatar .jersey { border-radius: 0 !important; }
.pp .side { display: none; }
.pp .nm { margin-top: 0; border-radius: 3px; padding: 2px 6px; font-size: 12px; font-weight: 700; box-shadow: none; display: inline-block; max-width: 100%; }
.pp.t1 .nm { background: #fff; color: #1d1d1d; }
.pp.t2 .nm { background: #2f363d; color: #fff; }
.pp .pt { font-size: 12.5px; font-weight: 500; text-shadow: none; margin-top: 3px; }
.pp .cv { animation: none; width: 22px; height: 22px; top: -6px; left: 6px; background: #fff; color: #1d1d1d; border: 1.5px solid #1d1d1d; font-size: 10px; }
.pp .cv.vc { background: #fff; color: #1d1d1d; }
.pitch .pp .avatar { background: none !important; box-shadow: none !important; }
.pp .avatar img { object-fit: cover; object-position: top; }
.pitch .jersey.figure { background: none; }

/* Create Team: dark band under the bar, slanted slots, clear button */
.builder-head.d11 { margin: 0 -16px; border-radius: 0; padding: 6px 16px 12px; background: var(--dark); position: sticky; z-index: 10; }
.bh-teams { display: flex; align-items: center; justify-content: center; gap: 10px; color: rgba(255,255,255,.75); font-size: 15px; }
.bh-teams .flag { width: 30px; height: 30px; flex: none; }
.bh-teams b { color: #fff; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 16px; text-align: center; }
.bh-teams i { font-style: normal; opacity: .6; }
.bh-prog { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.bh-prog > span { font-size: 15px; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; min-width: 38px; }
.bh-prog > span b { color: #fff; }
.builder-head.d11 .slots { flex: 1; margin: 0; gap: 4px; }
.builder-head.d11 .slots i { height: 8px; border-radius: 1px; transform: skewX(-24deg); background: rgba(255,255,255,.22); }
.builder-head.d11 .slots i.on { background: #2fbf5b; }
.bh-prog button { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.bh-prog button:disabled { opacity: .35; cursor: default; }
.bh-info { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: rgba(255,255,255,.6); }
.bh-info b { color: #fff; }

/* role tabs: WK · BAT · AR · BOWL with a red underline */
.roletabs { margin: 0 -16px 0; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 0; }
.roletabs button { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: none; padding: 13px 4px 10px; font-size: 15px; font-weight: 700; color: #3d3d3d; }
.roletabs button.on { border-color: var(--red); color: var(--red); background: none; }
.hint { margin: 10px 2px 6px; }
.filters .chip { border-radius: 999px; }
.colhead { background: #fff; margin: 0 -16px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13px; text-transform: none; letter-spacing: 0; }
.colhead button { font-weight: 500; color: #616161; }
.colhead button.on { color: var(--ink); font-weight: 700; }
.plist { margin: 0 -16px; border-radius: 0; border: 0; }
.prow { padding: 12px 16px; gap: 12px; }
.prow .avatar { width: 58px; height: 58px; border-radius: 0; background: none; overflow: hidden; }
.prow .avatar img, .prow .avatar .jersey { border-radius: 0 !important; }
.prow .avatar .jersey.figure { background: #eceff3; }
.prow .avatar .side { left: 0; bottom: 0; transform: none; border-radius: 0 3px 0 0; background: rgba(40,44,50,.85) !important; font-size: 9.5px; padding: 1px 4px; }
.prow .name { font-size: 16px; font-weight: 500; }
.prow .selby { font-size: 13px; color: #616161; }
.prow .sub { font-size: 11.5px; }
.prow .spts { font-size: 15px; color: #616161; }
.prow .cr { font-size: 16px; font-weight: 700; }
.add { width: 28px; height: 28px; border-width: 1.8px; border-color: #1a9c44; color: #1a9c44; font-weight: 400; font-size: 22px; line-height: 1; }
.prow.sel { background: #fff8e6; }
.prow.sel .add { background: #fff; color: var(--red); border-color: var(--red); }
.cvbtn { width: 36px; height: 36px; border: 1.5px solid #bdbdbd; font-weight: 700; color: #616161; }
.cvbtn.on { background: #1d1d1d; border-color: #1d1d1d; color: #fff; }

/* floating PREVIEW pill + NEXT */
.bar.fbar { background: none; border: 0; box-shadow: none; backdrop-filter: none; pointer-events: none; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.fbar .inner { justify-content: center; align-items: center; gap: 12px; }
.fbar .inner > * { pointer-events: auto; }
.fpill { display: flex; align-items: center; background: #1f232a; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.28); overflow: hidden; }
.fpill button { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .02em; padding: 13px 20px; cursor: pointer; }
.fpill button + button { border-left: 1px solid rgba(255,255,255,.2); }
.fpill button:disabled { color: rgba(255,255,255,.45); cursor: default; }
.fpill svg { width: 20px; height: 20px; }
.fnext { border: 0; border-radius: 999px; padding: 13px 26px; font-weight: 700; font-size: 15px; letter-spacing: .03em; background: #1a9c44; color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.2); cursor: pointer; }
.fnext:disabled { background: #e3e6ea; color: #a8adb5; box-shadow: 0 4px 12px rgba(0,0,0,.1); cursor: default; }
body.has-bar main { padding-bottom: 110px; }
button.sb-back { background: none; border: 0; color: #fff; padding: 0; cursor: pointer; }
.bh-teams .flag b { font-size: 8.5px; }
.cvc-note { display: flex; justify-content: center; gap: 22px; margin: 0 -16px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); font-size: 14px; color: #424242; }
.cvc-note b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #1d1d1d; font-size: 11px; margin-right: 6px; }

/* contest card: Prize Pool / Entry, spots bar, footer icons */
.ccard { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin: 12px 0; overflow: hidden; }
.cc-top { display: flex; justify-content: space-between; align-items: flex-end; padding: 12px 14px 8px; }
.cc-top span { display: block; font-size: 13px; color: #757575; margin-bottom: 2px; }
.cc-top b { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.cc-top .r { text-align: right; }
.cc-top .entry { border: 0; border-radius: 6px; background: #1a9c44; color: #fff; font-weight: 700; font-size: 16px; padding: 8px 18px; cursor: pointer; }
.cc-top .entry-txt { font-size: 17px; justify-content: flex-end; }
.cc-bar { margin: 4px 14px 0; height: 4px; border-radius: 2px; background: #fbe3e3; overflow: hidden; }
.cc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f28a52, var(--red)); border-radius: 2px; }
.cc-spots { display: flex; justify-content: space-between; padding: 5px 14px 10px; font-size: 13px; color: #757575; }
.cc-spots span:first-child { color: var(--red); }
.cc-foot { display: flex; align-items: center; gap: 14px; background: #f6f6f6; border-top: 1px solid #ececec; padding: 8px 14px; font-size: 13px; color: #555; }
.cc-foot .r { margin-left: auto; }
.cc-foot i { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1.3px solid #777; border-radius: 50%; font-style: normal; font-size: 9px; font-weight: 700; margin-right: 4px; vertical-align: -3px; }
.cc-foot i sup { font-size: 6px; }
.cc-me { padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--green); border-top: 1px solid #ececec; }
.cc-note { margin: 0 2px 4px; }
.dm-foot .btn.small { padding: 5px 12px; font-size: 12px; }
.dm-when .dm-live { display: flex !important; justify-content: center; }

/* finished match: result line under the scores */
.ls-result { text-align: center; color: rgba(255,255,255,.85); font-size: 14px; padding: 10px 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.14); border-top: 0; border-radius: 0 0 14px 14px; }
.lstrip > .ls-row:has(+ .ls-result) { border-radius: 14px 14px 0 0; border-bottom: 0; }

/* leaderboard: Compare / Share, last-updated note, rows with avatar · name · T1 · points · rank */
.lb-actions { display: flex; gap: 26px; padding: 4px 4px 10px; border-bottom: 1px solid var(--line); margin: 0 -16px; padding-left: 20px; background: #fff; }
.lb-actions button { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 0; background: none; color: var(--ink); font-size: 13px; cursor: pointer; padding: 6px 0 2px; }
.lb-actions svg { width: 24px; height: 24px; }
.lb-note { text-align: center; color: #3f2d7a; font-size: 14px; padding: 12px 0 8px; }
.lb { margin: 0 -16px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lb-head { display: grid; grid-template-columns: 1fr 70px 70px; padding: 10px 16px; font-size: 14px; color: #757575; border-bottom: 1px solid var(--line); }
.lb-head span:nth-child(n+2) { text-align: right; }
.lb-r { display: grid; grid-template-columns: 44px 1fr 70px 70px; align-items: center; gap: 0 12px; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.lb-r:last-child { border-bottom: 0; }
.lb-r.me { background: #fdf3e2; }
.lb-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--kit); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.lb-who { min-width: 0; }
.lb-who > div { display: flex; align-items: center; gap: 6px; min-width: 0; }
.lb-who b { font-weight: 500; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-who small { display: block; font-size: 12.5px; color: #757575; }
.lb-who small.won { color: var(--d11-green); font-size: 13.5px; }
.tchip { font-style: normal; font-size: 11px; color: #757575; background: #f0f0f0; border-radius: 4px; padding: 1px 5px; flex: none; }
.lb-pts { text-align: right; color: #616161; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.lb-rank { text-align: right; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-rank .mv { display: block; margin: 0; }
dialog .lb { margin: 0; border: 0; }

/* completed: "You have won" card, your row, top winners */
.won-card { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(100deg, #fff 55%, #fdf0ee); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 0 0 12px; overflow: hidden; }
.wc-body > div { font-size: 15px; color: #424242; }
.wc-body b { display: block; font-size: 30px; font-weight: 900; color: var(--d11-green); margin: 4px 0 2px; display: flex; align-items: center; gap: 6px; }
.wc-body b.zero { color: var(--ink); font-size: 24px; }
.wc-body span { font-size: 13px; color: #616161; }
.wc-cup { font-size: 54px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.15)); }
.won-card.none .wc-cup { filter: grayscale(1); opacity: .5; }
.cc-row { display: grid; grid-template-columns: 1fr auto 80px; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid #ececec; background: #fffdf3; }
.cc-row b { font-weight: 500; }
.cc-row > b { text-align: right; font-weight: 700; }
.cc-row small { display: block; color: var(--d11-green); font-size: 14px; margin-top: 2px; }
.cc-row > span { color: #616161; font-variant-numeric: tabular-nums; }
.top-win { margin: 4px -16px 12px; padding: 16px; background: linear-gradient(#eef3fb, #f6f8fc); text-align: center; }
.tw-h { font-size: 16px; letter-spacing: .02em; color: #3d3d3d; margin-bottom: 12px; }
.tw-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tw { background: #fff; border-radius: 10px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.tw-n { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tw b { color: var(--d11-green); display: flex; align-items: center; gap: 4px; font-size: 15px; }

/* stats: PLAYERS · POINTS · % SEL BY, your players tinted */
.st-note { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #424242; margin: 0 2px 8px; }
.st-note span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #757575; }
.st-note i { width: 14px; height: 14px; border-radius: 3px; background: #fbf6dc; border: 1px solid #ecdfa1; }
table.stats.d11 th { background: #fff; font-size: 13px; letter-spacing: .02em; color: #757575; font-weight: 500; }
table.stats.d11 th.click { cursor: pointer; }
table.stats.d11 tr.mine td { background: #fbf6dc; }
table.stats.d11 td b { font-weight: 500; }
.avatar.sq { width: 44px; height: 44px; border-radius: 0; background: none; }
.avatar.sq img, .avatar.sq .jersey { border-radius: 0 !important; }

/* builder list sections: Played Last Match / Others, Announced / Unannounced */
.pl-sec { position: relative; text-align: center; padding: 8px 0 0; background: #fff; border-top: 1px solid var(--line); }
.pl-sec span { display: inline-block; background: #1d3a8a; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 14px; border-radius: 0 0 6px 6px; position: relative; top: -8px; }
.pl-sec.in span { background: #1a9c44; }
.pl-sec.out span { background: #263238; }
.pl-sec.in ~ .pl-sec.out span { background: #e05a24; }
.wc-body b .coins, .cc-top b .coins { font-size: inherit; font-weight: inherit; } .wc-body b .coin { width: 24px; height: 24px; } .cc-top b .coin { width: 18px; height: 18px; }
table.stats.d11 td, table.stats.d11 th { white-space: nowrap; } table.stats.d11 td.small { font-size: 11.5px; }

/* real player photos on the pitch: one fixed square, cropped from the top, tag on top of it */
.pitch .pp .avatar { width: 54px !important; height: 54px !important; overflow: hidden !important; border-radius: 6px 6px 0 0 !important; margin: 0 auto; position: relative; z-index: 1; }
.pitch .pp .avatar img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: 50% 12%; display: block; }
.pitch .pp .nm { position: relative; z-index: 2; margin-top: -4px; }
.pitch .pp .cv { z-index: 3; }
@media (max-width: 380px) { .pitch .pp .avatar { width: 48px !important; height: 48px !important; } }

/* builder Lineup tab: one column per team */
.lu-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin: 0 -16px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--line); font-size: 15px; }
.lu-head > span { display: flex; align-items: center; gap: 8px; }
.lu-head > span:last-child { justify-content: flex-end; }
.lu-head .flag { width: 26px; height: 26px; flex: none; }
.lu-head .lu-mid { font-size: 12px; color: #757575; }
.lu { display: grid; grid-template-columns: 1fr 1fr; margin: 0 -16px; background: #fff; }
.lu > :nth-child(odd) { border-right: 1px solid var(--line); }
.lu-sec { text-align: center; margin: 0 -16px; background: #fff; border-top: 1px solid var(--line); }
.lu-sec span { display: inline-block; background: #1d3a8a; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 14px; border-radius: 0 0 6px 6px; }
.lu-sec.out span { background: #263238; }
.lu-row.prow { display: grid; grid-template-columns: 22px 40px 1fr auto; gap: 0 8px; align-items: center; padding: 9px 8px 9px 6px; border-top: 1px solid #f0f0f0; }
.lu-row.empty { border-top: 1px solid #f0f0f0; }
.lu-n { font-size: 20px; font-weight: 700; color: #d5d5d5; line-height: 1; text-align: center; }
.lu-n small { display: block; font-size: 9.5px; color: #757575; font-weight: 500; margin-top: 2px; }
.lu-row .avatar { width: 40px; height: 40px; overflow: hidden; }
.lu-row .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lu-row .avatar .side { display: none; }
.lu-i { min-width: 0; }
.lu-i b { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lu-i small { font-size: 12px; color: #757575; }
.lu-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.lu-r .add { width: 22px; height: 22px; font-size: 17px; }
.lu-r em { font-style: normal; font-size: 13px; font-variant-numeric: tabular-nums; }
.fpill button.on { color: #7fd99a; }
.fpill button svg { width: 19px; height: 19px; }
.pitch .pp { width: 88px; } .pitch .pp .nm { font-size: 11.5px; padding: 2px 4px; } .pitch .line .ps { gap: 6px 2px; }

/* My Balance */
.bal { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; padding: 20px 16px 16px; }
.bal-ic { width: 46px; height: 46px; border-radius: 50%; background: #fdecec; color: var(--red); display: grid; place-items: center; margin-bottom: 4px; }
.bal-ic svg { width: 26px; height: 26px; }
.bal > span:nth-child(2) { font-size: 13px; color: #757575; text-transform: uppercase; letter-spacing: .04em; }
.bal > b { font-size: 30px; font-weight: 700; }
.bal > b .coins { font-size: inherit; } .bal > b .coin { width: 24px; height: 24px; }
.bal > small { font-size: 12px; color: #757575; }
.bal-rows { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r) var(--r); margin-bottom: 4px; }
.bal-rows > div { display: flex; justify-content: space-between; padding: 13px 16px; border-top: 1px solid #f0f0f0; font-size: 15px; }
.bal-rows span { color: #424242; }
.bal-rows b { font-variant-numeric: tabular-nums; }

/* Me: red band, menu rows */
.me-top { display: flex; align-items: center; gap: 14px; margin: -16px -16px 0; padding: 20px 16px 22px; background: var(--red); color: #fff; }
.me-av { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; font-size: 22px; font-weight: 900; flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.me-top b { display: block; font-size: 20px; font-weight: 700; }
.me-top small { font-size: 13px; opacity: .85; }
.me-list { margin: 0 -16px; background: #fff; border-bottom: 1px solid var(--line); }
.me-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 16px; border: 0; border-top: 1px solid #efefef; background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.me-list > :first-child { border-top: 0; }
.me-ic { width: 36px; height: 36px; border-radius: 50%; background: #f4f4f4; color: #424242; display: grid; place-items: center; flex: none; }
.me-ic svg { width: 20px; height: 20px; }
.me-t { flex: 1; min-width: 0; }
.me-t b { display: block; font-weight: 500; font-size: 15.5px; }
.me-t small { font-size: 12.5px; color: #757575; }
.me-r { color: #9e9e9e; font-size: 18px; display: flex; align-items: center; gap: 6px; }
.me-r .coins { font-size: 14px; color: var(--ink); font-weight: 700; }
.me-det { display: block; padding: 0; }
.me-det summary { display: flex; align-items: center; gap: 14px; padding: 15px 16px; list-style: none; cursor: pointer; }
.me-det summary::-webkit-details-marker { display: none; }
.me-det[open] .me-r { transform: rotate(90deg); }
.me-det form { padding: 4px 16px 16px 66px; }
.me-out .me-t b { color: var(--red); }

/* cut-out headshots: no frame, standing on the name tag like Dream11's */
.pitch .pp .avatar:has(img.cut) { border-radius: 0 !important; }
.pitch .pp .avatar img.cut { object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.avatar:has(img.cut) { background: none !important; box-shadow: none !important; }
.avatar img.cut { object-fit: contain; object-position: 50% 100%; }
.prow .avatar:has(img.cut), .lu-row .avatar:has(img.cut) { background: linear-gradient(#fff 40%, #f1f3f6) !important; }
.avatar img.cut, .pitch .avatar img { background: none !important; }
.pitch .pp { width: 80px; } @media (max-width: 380px) { .pitch .pp { width: 76px; } } .pitch .pp .nm { max-width: 100%; }
