/* AllEyez on the web (ALL-219 part 3): the app shell and the signed-in pages.
   Same palette and shapes as index.html (from the app's AppColors / AppShapes). */

/* ---- The app's shell (MainShell): signed in, the website is laid out like the phone app ---- */
.ava { width:28px; height:28px; border-radius:50%; background:var(--green-dim); color:var(--green);
  display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; overflow:hidden; flex:none; }
.ava img { width:100%; height:100%; object-fit:cover; }
.btn-green { display:inline-flex; align-items:center; justify-content:center; gap:6px; background:var(--green);
  color:var(--green-ink); font-weight:700; font-size:15px; padding:11px 18px; border-radius:var(--r-btn); border:0; cursor:pointer; }
.btn-green:disabled { opacity:.5; cursor:default; }
.btn-line { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--border-2);
  font-weight:600; font-size:15px; padding:10px 16px; border-radius:var(--r-btn); background:var(--surface); cursor:pointer; color:var(--text); }
.btn-line:hover { background:var(--surface-2); }

/* The top bar: "AllEyez Beta", then the bell (and the gear on Me). */
.topbar { background:#000 !important; border-bottom:0 !important; backdrop-filter:none !important; -webkit-backdrop-filter:none !important; }
.topbar .logo { font-size:26px; font-weight:800; letter-spacing:-.8px; }
.topbar .beta { border:0; padding:0; font-size:14px; font-weight:500; letter-spacing:.6px; color:var(--text-3); margin-left:2px; }
.ae-actions { display:flex; align-items:center; gap:6px; }
.ae-icon, .ae-bell { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:50%; color:var(--text); }
.ae-icon:hover, .ae-bell:hover { background:var(--surface-2); }
.ae-icon svg, .ae-bell svg { width:26px; height:26px; }
.ae-link { padding:8px 12px; border-radius:999px; font-size:14px; font-weight:600; color:var(--text-2); }
.ae-link:hover, .ae-link[aria-current="page"] { color:var(--text); background:var(--surface-2); }
.ae-signin { padding:9px 16px; font-size:14px; margin-left:4px; }
body.in-app .topbar-in, body.in-app .wrap { max-width:620px; }

/* The tabs: icons only, the active one green (Record, the middle one, is phone-only). */
.app-tabs { position:fixed; left:0; right:0; bottom:0; z-index:30; display:flex; justify-content:center; }
.app-tabs a { flex:1; max-width:155px; display:flex; align-items:center; justify-content:center; }

.app-tabs a[aria-current="page"] { color:var(--green); }
.app-tabs a:hover { color:var(--text); }
.app-tabs a[aria-current="page"]:hover { color:var(--green); }

/* Screen headers: the big title, its actions on the right. */
.app-h { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.app-h h1 { margin:0; }
.app-h-acts { display:flex; gap:6px; }
.back-h { justify-content:flex-start; }
.ae-back { font-size:28px; line-height:1; padding:4px 6px; color:var(--text); }
.fab-add { width:58px; height:58px; border-radius:50%; background:var(--green); color:var(--green-ink);
  display:inline-flex; align-items:center; justify-content:center; flex:none; }
.fab-add svg { width:30px; height:30px; }

/* Underlined tabs (Mine / Discover, the profile's tabs). */
.u-tabs { display:flex; gap:28px; margin:0 0 16px; border-bottom:1px solid var(--border); }
.u-tab { position:relative; padding:10px 2px 12px; font-size:19px; font-weight:600; color:var(--text-3); }
.u-tab[aria-selected="true"] { color:var(--text); font-weight:700; }
.u-tab[aria-selected="true"]::after { content:""; position:absolute; left:10%; right:10%; bottom:-1px; height:4px; border-radius:2px; background:var(--green); }

/* Friendly matches: two columns of match cards. */
.fm-grid { display:grid; grid-template-columns:1fr 1fr; }
.fm-card { position:relative; display:block; overflow:hidden; }
.fm-card > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.fm-novideo { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); }

.fm-shade { position:absolute; inset:0; }
.fm-body { position:absolute; left:0; right:0; bottom:0; display:flex; flex-direction:column; }
.fm-team { display:flex; align-items:center; }
.fm-team .fm-nm { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.fm-team.won .fm-nm, .fm-team.won .fm-sc { color:#FFD60A; }
.lt-crest { width:22px; height:22px; border-radius:50%; flex:none; display:inline-flex; align-items:center; justify-content:center;
  font-size:11px; font-weight:800; color:#fff; background:#555; }

@media (max-width:420px) { .fm-team { font-size:14px; } .fm-meta { font-size:11.5px; } .fm-body { padding:10px; } }

/* Tournament cards (TournamentCard). */
.tc-list { display:flex; flex-direction:column; }
.tc-card { display:flex; }

.tc-emblem { flex:none; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; overflow:hidden; }

.tc-emblem img { width:100%; height:100%; object-fit:contain; }
.tc-body { flex:1; min-width:0; display:flex; flex-direction:column; }
.tc-top { display:flex; justify-content:space-between; }

.tc-chip { flex:none; border-radius:999px; }
.tc-chip.ongoing { color:var(--green); }
.tc-chip.upcoming { color:#0A84FF; }

.tc-line { display:flex; align-items:center; }
.flag { width:22px; height:15px; border-radius:2px; object-fit:cover; vertical-align:-2px; margin-right:4px; }
body.in-app #hdrapp { display:none !important; }
.tc-teams { display:inline-flex; align-items:center; }
.tc-teams svg { color:var(--text-3); }
.tc-scorer { display:flex; align-items:center; color:var(--text-2); }
.tc-scorer svg { color:#FFD60A; }

/* Search. */
.app-search { display:flex; align-items:center; border:1px solid var(--border-2); background:#000; color:var(--text-3); }
.app-search svg { width:24px; height:24px; flex:none; }
.app-search input { flex:1; min-width:0; background:none; border:0; outline:0; color:var(--text); font:inherit; }
.s-h { display:flex; justify-content:space-between; align-items:center; color:var(--text-2); }
.s-clear { color:var(--green); }
.s-recent { display:flex; align-items:center; gap:8px; }
.s-q { flex:1; display:flex; align-items:center; text-align:left; color:var(--text); }
.s-q svg { color:var(--text-3); }
.s-x { color:var(--text-3); padding:0 6px; }
.acct-list { display:flex; flex-direction:column; }
.acct-card { display:flex; align-items:center; }
.acct-ava { border-radius:50%; flex:none; overflow:hidden; display:inline-flex; align-items:center; justify-content:center; background:#1D3A26; color:var(--green); font-weight:700; }
.acct-ava img { width:100%; height:100%; object-fit:cover; }
.acct-body { display:flex; flex-direction:column; min-width:0; }

.acct-sub { color:var(--text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Settings. */

.set-row { display:flex; align-items:center; }
.set-row:hover { background:#0D0D0F; }
.set-ic svg { color:var(--text); display:block; }
.set-b { flex:1; display:flex; flex-direction:column; }

.set-ch svg { color:var(--text-3); display:block; }
.set-logout { display:block; color:#FF453A; }

/* Profile (ProfileScreen). */
.pf-head { display:flex; }
.pf-ava { flex:none; border-radius:50%; overflow:hidden; border:4px solid #8E8E93; background:#1D3A26; color:var(--green); display:inline-flex; align-items:center; justify-content:center; font-weight:800; }
.pf-ava img { width:100%; height:100%; object-fit:cover; }
.pf-who { min-width:0; display:flex; flex-direction:column; }
.pf-name { display:flex; align-items:center; }
.pf-tick { width:26px; height:26px; flex:none; }

.pf-chips { display:flex; flex-wrap:wrap; }
.pf-chip { background:#2C2C2E; color:var(--text); }
.pf-chip.green { color:var(--green); }

.pf-edit { text-align:center; margin-bottom:16px; }
.pf-edit:hover { background:#0D0D0F; }
.pf-card { display:block; }
.pf-big { grid-template-columns:repeat(3,1fr); text-align:center; }
.pf-big-i b { display:block; }
.pf-big-i span { display:inline-flex; align-items:center; }
.pf-big-i svg, .pf-line svg, .pf-tro svg { width:18px; height:18px; }
.pf-line { display:flex; justify-content:center; }
.pf-line span { display:inline-flex; align-items:center; }
.pf-all { display:block; color:var(--green); }
.pf-tro { display:flex; align-items:center; width:100%; margin-top:16px; padding-top:16px; }
.pf-tro > span { flex:1; display:inline-flex; align-items:center; }
.pf-tro > span svg { color:#FFD60A; }
.pf-tro b { color:#FFD60A; }

.pf-org { display:flex; align-items:center; }
.pf-org-c { display:flex; gap:-8px; }
.pf-org-i { border-radius:50%; border:2px solid #3A3A3C; background:#2C2C2E; display:inline-flex; align-items:center; justify-content:center; font-weight:700; overflow:hidden; margin-right:6px; }
.pf-org-i img { width:100%; height:100%; object-fit:cover; }
.pf-org-t { flex:1; display:flex; flex-direction:column; }

.pf-org-all { color:var(--green); }
.pf-tabs { justify-content:space-around; gap:0; }
.pf-tabs .u-tab { flex:1; font-size:16px; }
.pf-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:10px; }
.pf-tile { position:relative; aspect-ratio:9/16; border-radius:14px; overflow:hidden; background:#1C1C1E; }
.pf-tile img { width:100%; height:100%; object-fit:cover; }
.pf-play { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:44px; height:44px; border-radius:50%;
  background:rgba(255,255,255,.9); color:#000; display:flex; align-items:center; justify-content:center; }
.pf-play svg { width:22px; height:22px; margin-left:3px; }
.pf-trophies { display:flex; flex-direction:column; gap:12px; }
.pf-trophy { display:flex; align-items:center; gap:14px; }
.pf-tr-ic { font-size:28px; }
.pf-trophy span span { display:block; color:var(--text-3); font-size:14px; }
.pf-statlist { padding:6px 20px; }
.pf-stat { display:flex; justify-content:space-between; padding:12px 0; border-bottom:1px solid #2C2C2E; }
.pf-stat:last-child { border-bottom:0; }
@media (max-width:480px) {
  .app-h h1 { font-size:30px; }
  .pf-ava { width:92px; height:92px; }
  .pf-name { font-size:24px; }
  .pf-head { gap:16px; }
  .tc-emblem { width:60px; height:60px; }
  .tc-name { font-size:17px; }
}

/* ---- Page parts ---- */
.page-h { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin:8px 0 14px; }
.page-h h1 { font-size:28px; font-weight:800; letter-spacing:-.4px; margin:0; }
.sec-h { display:flex; align-items:center; justify-content:space-between; margin:26px 0 10px; }
.sec-h h2 { font-size:18px; font-weight:700; margin:0; }
.sec-h a { font-size:14px; font-weight:600; color:var(--green); }
.hero { padding:28px 24px; background:radial-gradient(120% 140% at 0% 0%, rgba(48,209,88,.16), transparent 55%), var(--surface); }
.hero h1 { font-size:30px; line-height:1.15; font-weight:800; letter-spacing:-.5px; margin:0 0 8px; }
.hero p { color:var(--text-2); margin:0 0 18px; max-width:560px; }
.hero .acts { display:flex; flex-wrap:wrap; gap:10px; }
.list { padding:4px 18px; }
.row-link { display:flex; align-items:center; gap:12px; padding:13px 0; border-bottom:1px solid var(--border); color:var(--text); }
.row-link:last-child { border-bottom:0; }
.row-link .body { flex:1; min-width:0; }
.row-link .nm { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.row-link .sub { color:var(--text-2); font-size:13px; }
.row-link .score { font-family:"Space Mono",monospace; font-weight:700; font-size:16px; white-space:nowrap; }
.row-link .chev { color:var(--text-3); }
.tag { display:inline-block; font-size:11px; font-weight:700; letter-spacing:.3px; padding:2px 8px; border-radius:999px;
  background:var(--surface-3); color:var(--text-2); margin-left:6px; vertical-align:middle; }
.tag.green { background:var(--green-dim); color:var(--green); }
.empty { color:var(--text-2); font-size:14px; padding:16px 0; }
.search { width:100%; margin:0 0 12px; }

/* ---- Forms ---- */
.form-card { max-width:440px; margin:18px auto 0; padding:26px 24px; }
.form-card h1 { font-size:26px; font-weight:800; margin:0 0 6px; }
.form-card .lead { color:var(--text-2); margin:0 0 20px; }
.field { display:block; margin:0 0 14px; }
.field > span { display:block; font-size:13px; font-weight:600; color:var(--text-2); margin:0 0 6px; }
.field small { display:block; font-size:12px; color:var(--text-3); margin-top:5px; }
.field small.bad { color:var(--red); }
.field small.ok { color:var(--green); }
.input, .search, textarea.input { width:100%; background:var(--surface-2); border:1px solid var(--border-2); color:var(--text);
  border-radius:var(--r-btn); padding:12px 14px; font:inherit; font-size:15px; outline:none; }
.input:focus, .search:focus { border-color:var(--green); }
textarea.input { min-height:88px; resize:vertical; }
.two { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.or { display:flex; align-items:center; gap:10px; color:var(--text-3); font-size:13px; margin:16px 0; }
.or::before, .or::after { content:""; flex:1; height:1px; background:var(--border-2); }
.form-msg { font-size:14px; margin:4px 0 14px; padding:10px 12px; border-radius:var(--r-sm); display:none; }
.form-msg.err { display:block; background:rgba(255,69,58,.12); color:#ff8a82; }
.form-msg.info { display:block; background:var(--green-dim); color:var(--green); }
.form-foot { margin-top:16px; font-size:14px; color:var(--text-2); text-align:center; }
.form-foot a { color:var(--green); font-weight:600; }
.w100 { width:100%; }

.pos-chips { display:flex; flex-wrap:wrap; gap:8px; }
.pos-chip { padding:8px 12px; border-radius:999px; border:1px solid var(--border-2); background:var(--surface-2);
  font-weight:700; font-size:13px; color:var(--text-2); }
.pos-chip[aria-pressed="true"] { background:var(--green-dim); border-color:var(--green); color:var(--green); }

/* ---- Reactions (stage 2) ---- */
.rx.on { border-color:var(--green); background:var(--green-dim); }

/* ---- Who's in this clip ---- */
.tags-sec { margin-top:14px; }
.tags-h h2 { font-size:18px; font-weight:700; margin:0 0 6px; }
.cut-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:12px; margin-top:12px; }
.cut { background:var(--surface-2); border:1px solid var(--border); border-radius:14px; padding:8px; position:relative; }
.cut-img { aspect-ratio:3/4; border-radius:10px; overflow:hidden; background:var(--surface-3); display:flex; align-items:center; justify-content:center; color:var(--text-3); font-weight:700; }
.cut-img img { width:100%; height:100%; object-fit:cover; }
.cut-tags { margin-top:6px; }
.tag-line { padding:4px 0; border-top:1px solid var(--border); font-size:13px; }
.tag-line:first-child { border-top:0; }
.tag-who { font-weight:600; }
.tag-who a { color:var(--text); text-decoration:underline; text-decoration-color:var(--border-2); }
.tag-who .tag { margin-left:4px; }
.votes { color:var(--text-3); font-size:12px; font-weight:500; }
.tag-acts { display:flex; flex-wrap:wrap; gap:4px 10px; margin-top:2px; }
.link-btn { font-size:12px; font-weight:700; color:var(--text-2); padding:2px 0; }
.link-btn.green { color:var(--green); }
.link-btn.red { color:#ff8a82; }
.link-btn:disabled { opacity:.4; }
.cut-acts { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.chip-btn { font-size:12px; font-weight:700; padding:6px 10px; border-radius:999px; border:1px solid var(--border-2); background:var(--surface); color:var(--text); }
.chip-btn.green { background:var(--green); border-color:var(--green); color:var(--green-ink); }
.chip-btn:disabled { opacity:.5; }
.pick-box { position:absolute; left:0; right:0; top:100%; z-index:15; margin-top:6px; background:var(--surface); border:1px solid var(--border-2);
  border-radius:12px; padding:8px; box-shadow:0 12px 30px rgba(0,0,0,.6); min-width:220px; }
.pick-box .input { padding:9px 11px; font-size:14px; }
.pick-res { margin-top:6px; }
.pick-row { display:block; width:100%; text-align:left; padding:8px 6px; border-radius:8px; font-size:14px; }
.pick-row:hover { background:var(--surface-2); }

/* ---- Tournaments: actions, sheets, manage (stage 3a) ---- */
.t-actions { margin-top:12px; }
.t-act-row { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; }
.t-act-t { font-weight:700; font-size:16px; }
.t-actions .t-act-row > div:first-child { flex:1 1 240px; min-width:0; }
.t-act-btns { flex-wrap:wrap; align-items:center; }
.t-act-btns > .btn-green, .t-act-btns > .btn-line { min-width:120px; padding:12px 22px; white-space:nowrap; }
@media (max-width:560px) {
  .t-actions .t-act-btns { width:100%; }
  .t-act-btns > .btn-green, .t-act-btns > .btn-line { flex:1 1 auto; }
}
.back-link { display:inline-block; color:var(--text-2); font-size:14px; font-weight:600; margin:4px 0 2px; }
.back-link:hover { color:var(--text); }
.sheet-back { position:fixed; inset:0; z-index:100; background:rgba(0,0,0,.6); display:flex; align-items:center; justify-content:center; padding:16px; }
.sheet { width:100%; max-width:460px; max-height:86vh; overflow:auto; background:var(--surface); border:1px solid var(--border-2); border-radius:20px; }
.sheet-h { display:flex; align-items:center; justify-content:space-between; padding:16px 18px 6px; position:sticky; top:0; background:var(--surface); }
.sheet-h h2 { font-size:19px; margin:0; }
.sheet-x { font-size:26px; line-height:1; color:var(--text-2); padding:0 4px; }
.sheet-body { padding:6px 18px 18px; }
.sheet-body .input { margin-bottom:10px; }
.sheet-acts { display:flex; justify-content:flex-end; gap:8px; margin-top:12px; }
@media (max-width:720px) { .sheet-back { align-items:flex-end; padding:0; } .sheet { border-radius:20px 20px 0 0; max-height:90vh; } }
.pick-list { display:flex; flex-direction:column; gap:8px; margin:6px 0 12px; }
.pick-opt { display:block; width:100%; text-align:left; padding:12px 14px; border-radius:12px; border:1px solid var(--border-2); background:var(--surface-2); }
.pick-opt .nm { font-weight:700; }
.pick-opt .sub { font-size:13px; color:var(--text-2); }
.pick-opt[aria-pressed="true"] { border-color:var(--green); background:var(--green-dim); }
.guest-row { display:flex; gap:8px; margin-top:12px; }
.guest-row .input { margin:0; flex:1; }
.fx-edit { border-bottom:1px solid var(--border); }
.fx-edit:last-child { border-bottom:0; }
.fx-head { width:100%; text-align:left; border-bottom:0; }
.fx-body { padding:4px 0 16px; }
.fx-label { font-size:12px; font-weight:700; letter-spacing:.4px; text-transform:uppercase; color:var(--text-3); margin:10px 0 6px; }
.score-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; }
.score-row .sn { font-weight:600; font-size:14px; min-width:60px; }
.score-in { width:56px; text-align:center; font-family:"Space Mono",monospace; font-weight:700; font-size:18px; padding:8px; }
.score-row .dash { color:var(--text-3); }
.score-row input[type="datetime-local"] { width:auto; }
.pens .sn:first-child { color:var(--text-2); }

/* ---- Manage: teams + settings (stage 3b) ---- */
.lock-banner { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.add-row { display:flex; align-items:stretch; gap:10px; margin:10px 0 14px; }
.add-row .input { flex:1; min-width:0; height:48px; }
.add-row .btn-green { height:48px; padding:0 22px; white-space:nowrap; flex:none; }
.check-row { display:flex; align-items:center; gap:10px; margin:0 0 12px; font-size:15px; }
.check-row input { width:18px; height:18px; accent-color:var(--green); }
.tb-list { display:flex; flex-direction:column; gap:6px; }
.tb-row { display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:10px; background:var(--surface-2); }
.tb-row .n { width:22px; height:22px; border-radius:50%; background:var(--surface-3); display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; }
.tb-row .link-btn { margin-left:auto; }
select.input { appearance:auto; }
.red-line { color:#ff8a82; border-color:rgba(255,69,58,.4); }

.bracket-card { margin-bottom:12px; }

/* ---- Create a tournament (stage 3b part 3) ---- */
.wz-head { display:flex; justify-content:space-between; }
.wz-head h1 { margin:0; }
.wz-bar { display:flex; }
.wz-bar span { flex:1; height:3px; border-radius:2px; background:var(--border-2); }
.wz-bar span.on { background:var(--green); }
.wz-body { max-width:640px; }
.wz-body > .input, .wz-body > textarea.input, .wz-body > .two { margin-bottom:6px; }
.wz-body > .two .input { margin:0; }
.wz-label { color:var(--text-2); display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; }

.wz-label > .muted.body-sm { flex-basis:100%; font-weight:400; }
.wz-label .link-btn { margin-left:auto; }
.wz-count { margin:0 0 4px; }
.wz-err { color:#ff8a82; margin:4px 0; }

.wz-sec { margin:0 0 6px; }
.seg { display:flex; gap:4px; padding:4px; border-radius:var(--r-btn); background:var(--surface-2); }
.seg-opt { flex:1; min-height:44px; border-radius:var(--r-btn); font-size:15px; color:var(--text-2); padding:0 6px; white-space:nowrap; }
.seg-opt[aria-pressed="true"] { background:var(--green); color:var(--green-ink); font-weight:700; }
.wz-sum { color:var(--text-2); margin:14px 0 0; }
.wz-sum b { color:var(--text); }
.wz-review { display:block; width:100%; text-align:left; }
.wz-rv-t { display:flex; justify-content:space-between; color:var(--text-2); }
.wz-rv-t .green { color:var(--green); }

.wz-cta { width:100%; }
.wz-cta.dim { opacity:.45; }
.gen-card .btn-green { margin-top:12px; }
.gen-card .muted { margin-top:4px; }

/* ---- Uploads (stage 4) ---- */
.logo-card { display:flex; align-items:center; gap:16px; margin-bottom:12px; }
.logo-pic { width:72px; height:72px; flex:none; border-radius:50%; overflow:hidden; background:var(--surface-2); border:1px solid var(--border-2);
  display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:800; color:var(--green); }
.logo-pic img { width:100%; height:100%; object-fit:cover; }
.logo-side { flex:1; min-width:0; display:flex; flex-direction:column; gap:6px; }
.logo-side .t-act-btns { margin-top:4px; }
.muted.bad, .body-sm.bad { color:#ff8a82; }
.wz-media { display:flex; align-items:center; gap:14px; margin:0 0 6px; flex-wrap:wrap; }
.wz-media > div { display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
.wz-media .green { color:var(--green); font-weight:600; cursor:pointer; }
.wz-logo { width:64px; height:64px; cursor:pointer; font-size:24px; }

/* ---- Upload a match (stage 4 part 2) ---- */
.up-intro p { margin:6px 0 14px; }
.up-status .up-bar { height:6px; border-radius:3px; background:var(--surface-2); margin:12px 0 8px; overflow:hidden; }
.up-status .up-bar span { display:block; height:100%; width:0; background:var(--green); transition:width .4s; }
.up-list { display:flex; flex-direction:column; gap:12px; }
.up-hl { display:flex; gap:16px; align-items:flex-start; flex-wrap:wrap; }
.up-vid { width:320px; max-width:100%; aspect-ratio:16/9; background:#000; border-radius:12px; object-fit:contain; }
.up-hl-body { flex:1; min-width:240px; display:flex; flex-direction:column; gap:8px; }
.up-hl-t { font-weight:700; font-size:16px; }
.up-times { display:flex; gap:18px; flex-wrap:wrap; }
.up-step { display:flex; align-items:center; gap:8px; }
.up-step b { min-width:44px; text-align:center; font-variant-numeric:tabular-nums; }
.muted.ok { color:var(--green); }
.up-parts { margin-top:16px; }
.up-parts summary { cursor:pointer; font-weight:600; }
.up-part-list { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:6px; margin-top:10px; }
.up-part { display:flex; justify-content:space-between; gap:8px; font-size:13px; padding:6px 10px; border-radius:8px; background:var(--surface-2); color:var(--text-2); }
.up-part.done span:last-child { color:var(--green); }
.up-part.failed span:last-child, .up-part.not-football span:last-child { color:#ff8a82; }
@media (max-width:560px) { .up-vid { width:100%; } }

/* ---- Notifications (inbox) ---- */
.ae-bell { position:relative; display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:50%;
  color:var(--text-2); margin-right:8px; }
.ae-bell:hover, .ae-bell[aria-current="page"] { color:var(--text); background:var(--surface-2); }
.ae-bell svg { width:21px; height:21px; }
.ae-badge { position:absolute; top:2px; right:0; min-width:17px; height:17px; padding:0 4px; border-radius:9px; background:var(--green);
  color:var(--green-ink); font-size:10.5px; font-weight:800; line-height:17px; text-align:center; }
.inbox-list { padding:0; overflow:hidden; }

.inbox-row:last-child { border-bottom:0; }

.inbox-main { flex:1; min-width:0; }
.inbox-main.clickable { cursor:pointer; }
.inbox-top { display:flex; justify-content:space-between; }

.inbox-decide { display:flex; flex-wrap:wrap; }
.inbox-decide .btn-green, .inbox-decide .btn-line { padding:8px 16px; font-size:14px; }
.inbox-decide .green { color:var(--green); flex-basis:100%; }
.inbox-del { color:var(--text-3); font-size:22px; line-height:1; padding:0 4px; }
.inbox-del:hover { color:#ff8a82; }
.inbox-dot { right:12px; bottom:14px; border-radius:50%; background:var(--green); }

/* ---- Pushed screens: no "AllEyez" bar, their own back header ---- */
body.in-app.pushed .topbar { display:none; }
body.in-app.pushed .wrap { padding-top:6px; }

/* ---- Tournament (TournamentDetailScreen) ---- */
.td-sticky { position:sticky; top:0; z-index:15; background:#000; }
body.out-app .td-sticky { top:66px; margin:0; padding:6px 0 0; }
.td-head { display:flex; align-items:center; }
.td-back, .td-share { flex:none; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; color:var(--text); }
.td-share { color:var(--text-2); }
.td-back:hover, .td-share:hover { background:var(--surface-2); }

.td-emblem { flex:none; display:inline-flex; align-items:center; justify-content:center; overflow:hidden; }
.td-emblem img { width:100%; height:100%; object-fit:contain; }
.td-emblem.initial { border-radius:50%; background:#22324A; color:#9FB3CC; font-weight:800; }
.td-titles { flex:1; min-width:0; }

.td-meta { display:flex; align-items:center; }
.td-live { display:inline-flex; align-items:center; }
.td-live i { border-radius:50%; animation:tdpulse 1.6s infinite; }
@keyframes tdpulse { 0% { box-shadow:0 0 0 0 rgba(48,209,88,.6); } 70% { box-shadow:0 0 0 7px rgba(48,209,88,0); } 100% { box-shadow:0 0 0 0 rgba(48,209,88,0); } }
.td-won { border-radius:999px; color:#FFD60A; }

.t-act-btns { display:flex; gap:10px; }
.t-act-main { flex:1; }
.t-act-say { display:flex; flex-direction:column; }

.t-act-wait { height:56px; }
.td-tabs { display:flex; }
body.out-app .td-tabs { margin:6px 0 0; }
.td-tab { flex:1; position:relative; white-space:nowrap; }
.td-tab[aria-selected="true"] { color:var(--green); font-weight:700; }
.td-tab[aria-selected="true"]::after { content:""; bottom:-1px; height:4px; border-radius:2px; }

.ov-about-h { display:flex; align-items:center; width:100%; text-align:left; }
.ov-i { flex:none; border-radius:50%; background:#8E8E93; color:#1C1C1E; font-weight:800; display:inline-flex; align-items:center; justify-content:center; font-family:Georgia, serif; }
.ov-about-t { flex:1; min-width:0; display:flex; flex-direction:column; }

.ov-about-t span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ov-about.open .ov-about-t span { white-space:normal; }
.ov-chev { border-right:2.2px solid var(--text-2); border-bottom:2.2px solid var(--text-2); transform:rotate(45deg); margin:-6px 6px 0; }
.ov-about.open .ov-chev { transform:rotate(-135deg); margin-top:6px; }
.ov-about-b { color:var(--text-2); }
.ov-about-b .desc { display:none; }
.ov-sub { margin-top:12px; }
.ov-note { display:flex; align-items:flex-start; }
.ov-note-ic svg, .ov-gold svg { width:26px; height:26px; color:#FFD60A; }
.ov-note b { display:block; }

.ov-champ { position:relative; display:flex; align-items:center; background:linear-gradient(110deg, #26230F 0%, #16181d 45%); border:1.5px solid rgba(255,214,10,.6); }
.ov-champ:not(.won) { border-color:rgba(48,209,88,.5); background:#1C1C1E; }

.ov-champ-t { flex:1; min-width:0; display:flex; flex-direction:column; }
.ov-champ-t .lbl { color:#FFD60A; }
.ov-champ:not(.won) .ov-champ-t .lbl { color:var(--green); }

.ov-champ-t span { color:var(--text-2); }
.ov-champ-ic svg { color:#FFD60A; }
.ov-stats { display:grid; grid-template-columns:repeat(3,1fr); text-align:center; }
.ov-stats b { display:block; }
.ov-stats span { color:var(--text-3); }
.ov-sec { display:flex; justify-content:space-between; align-items:center; color:var(--text-2); }
.ov-link { color:var(--green); }
.ov-scorer { display:flex; align-items:center; }
.ov-scorer span { display:block; color:var(--text-3); }

.ov-awards { display:flex; flex-direction:column; }
.ov-award { display:flex; align-items:flex-start; }
.ov-award svg { width:22px; height:22px; }
.ov-award span { display:block; color:var(--text-2); }
.ov-pstats { padding:12px 14px 16px; }
.ov-pstats table.standings { font-size:15px; }
.ov-pstats .standings td { border-bottom:0; padding:10px 6px; }
.ov-more { display:block; margin:6px 10px 0 auto; }
/* The result row (the app's): day + FT on the left, the teams and scores on the right. */
.fx { display:flex; flex-direction:column; }
.fx-row.rs { display:flex !important; align-items:stretch; gap:0; border:0; grid-template-columns:none; }
.rs-when { flex:none; display:flex; flex-direction:column; justify-content:center; }

.rs-when span { color:var(--text-3); }
.rs-sides { flex:1; min-width:0; display:flex; flex-direction:column; }
.rs-team { display:flex; align-items:center; }
.rs-team .crest { flex:none; }
.rs-team .n { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rs-team .sc { min-width:18px; text-align:right; }
.rs-team.win .n, .rs-team.win .sc { color:#FFD60A; }
.rs-team.tbd .n { color:var(--text-3); }
a.fx-row.rs:hover { background:#232326; }
@media (max-width:480px) {
  .td-name { font-size:18px; }
  .ov-champ-t b { font-size:22px; }
  .rs-team { font-size:15.5px; }
  .rs-when { width:62px; margin-right:12px; }
}

.ov-pstats .standings th { text-transform:none; letter-spacing:0; font-size:15px; font-weight:500; color:#8E8E93; padding:6px 6px 10px; }
.ov-pstats .standings td.team .nm { font-size:17px; font-weight:500; }
.ov-pstats .standings td.team .muted { font-size:13.5px !important; color:#8E8E93; }
.ov-pstats .standings td { font-size:17px; color:#8E8E93; }
.ov-pstats .standings td.pos { color:#8E8E93; }

/* ---- Match (MatchScreen) ---- */
.mh-head { position:sticky; top:0; z-index:15; display:flex; align-items:center; background:#000; }
body.out-app .mh-head { top:66px; margin:0; padding:10px 0; }
.mh-title { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mh-player { margin:4px 0 16px; border-radius:26px; overflow:hidden; }
.mh-teams { margin-bottom:16px; border:1px solid #2C2C2E; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; }
.mh-side { display:flex; flex-direction:column; align-items:center; }

.mh-nm { text-align:center; }

.mh-vs.score { color:var(--text); }
.mh-vs i { font-style:normal; color:#8E8E93; margin:0 6px; }
.mh-side.win .mh-nm { color:#FFD60A; }
.mh-facts { grid-column:1 / -1; text-align:center; }
.mh-acts { display:flex; }
.mh-share { flex:1; background:#000; border:1.5px solid #3A3A3C; }
.mh-find { margin-bottom:6px; }

.hl-grid .hl-tile[hidden] { display:none; }
.hl-tile .hl-dur { right:auto; background:none; text-shadow:0 1px 3px rgba(0,0,0,.7); font-family:inherit; }
.hl-tags { position:absolute; display:inline-flex; align-items:center; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.7); }
.hl-tags svg { opacity:.85; }

/* Pushed screens' headers: the back arrow beside the title. */
.back-h .td-back { margin-left:-10px; }
.back-h h1 { flex:1; min-width:0; }
.back-h .btn-line { flex:none; }
.wz-head { align-items:center; }
.wz-head h1 { flex:1; }

/* Edit profile (the app's): the photo on top, centred. */
.ep-photo { display:flex; flex-direction:column; align-items:center; gap:10px; margin:4px 0 20px; }
.ep-ava { border:4px solid #8E8E93; font-size:40px !important; }
.ep-change { color:var(--green); font-weight:700; font-size:16px; }

/* Signed out: the bar is AllEyez, Tournaments, About, Sign in — "Get the app" lives on the about page. */
body.out-app #hdrapp { display:none !important; }
@media (max-width:480px) {
  .topbar .logo { font-size:23px; }
  .topbar .beta { display:none; }
  body.out-app .ae-link { padding:8px 8px; font-size:13.5px; }
  body.out-app .ae-signin { padding:8px 12px; font-size:13.5px; }
}

/* ---- Tournament tabs: Matches, Bracket, Teams (the app's) ---- */
.rs-sec { display:flex; flex-direction:column; }

.td-panel .section-title { display:none; }
.rs-pens { color:var(--text-3); }
.bracket-scroll { overflow-x:auto; }

.bracket .round-h { text-align:left; text-transform:none; }

.mcard { overflow:hidden; }

.mcard .mrow.win .n, .mcard .mrow.win .sc { color:#FFD60A; }
.mcard .mrow .pens { color:var(--text-3); }

.tm-list { display:flex; flex-direction:column; }
.tm-row { display:flex; align-items:center; }
.tm-row:hover { background:#232326; }
.tm-crest { width:62px !important; height:62px !important; font-size:28px !important; flex:none; }
.tm-b { flex:1; min-width:0; display:flex; flex-direction:column; }

.tm-ch svg { color:var(--text-3); display:block; }

/* ---- Notifications: plain rows on black (the app's) ---- */
.inbox-list { background:none !important; border:0 !important; }
.inbox-row { border-bottom:0; }

.inbox-main .muted.body-sm { font-size:15px; color:var(--text-2); }
body.in-app:not(:has(.app-tabs)) .wrap { padding-bottom:40px; }

/* ---- Team (TeamDetailScreen) ---- */
.tmd-hero { display:flex; align-items:center; }
.tmd-crest { flex:none; }
.tmd-t { display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
.tmd-t b { letter-spacing:-.3px; }

.pl-list { display:flex; flex-direction:column; }
.pl-card { display:flex; align-items:center; }
a.pl-card:hover { background:#232326; }
.pl-ava { flex:none; border-radius:50%; overflow:hidden; background:#2C2C2E; color:var(--text-2); display:inline-flex; align-items:center; justify-content:center; font-weight:700; }
.pl-ava img { width:100%; height:100%; object-fit:cover; }
.pl-b { flex:1; min-width:0; }
.pl-nm { display:flex; align-items:center; flex-wrap:wrap; }
.pl-cap { color:var(--green); }
.pl-guest { background:#2C2C2E; }
.pl-sub { color:var(--text-2); }
.pl-card .t-act-btns { flex-direction:column; align-items:flex-end; gap:4px; }
.mg-tabs { overflow-x:auto; scrollbar-width:none; }
.mg-tabs .td-tab { flex:none; padding-left:12px; padding-right:12px; }
.mg-tabs .td-tab[aria-selected="true"]::after { left:12px; right:12px; }

/* ---- The highlight player (HighlightPlayer): segments, close on the left, actions on the right ---- */
.reel-segs { position:absolute; display:flex; z-index:3; }
.reel-segs span { flex:1; overflow:hidden; }
.reel-segs span.done { background:#fff; }
.reel-segs span i { display:block; height:100%; width:0; background:#fff; }
.reel-bar { left:0; right:0; justify-content:space-between !important; }
.reel-bar .reel-close { order:-1; }
.reel-side { position:absolute; display:flex; flex-direction:column; z-index:3; }
.reel-act { display:flex; flex-direction:column; align-items:center; background:none; border:0; cursor:pointer; }

.reel-act.tag svg { color:var(--green); }
.reel-info { position:absolute; z-index:3; display:flex; flex-direction:column; }
.reel-info .reel-rx { position:static; }

.reel-clock { margin-top:8px; font-family:inherit; }
.reel-line { position:absolute; z-index:3; overflow:hidden; }
.reel-line i { display:block; height:100%; width:0; background:var(--green); }
.reel-count { display:none; }

/* ---- Manage (ManageTournamentScreen) ---- */
.mg-more { flex:none; border-radius:50%; color:var(--text); display:inline-flex; align-items:center; justify-content:center; }

.mg-more:hover { background:var(--surface-2); }
.back-h h1 { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mg-pills { display:flex; position:sticky; top:0; z-index:12; background:#000; }
.mg-pill { flex:1; color:var(--text-2); }

.mg-h { display:flex; align-items:center; justify-content:space-between; }
.mg-h h2 { margin:0; }
.mg-count { border-radius:999px; color:var(--text-2); }
.mg-none { color:var(--text-3); }

.mg-lock { display:flex; align-items:center; margin-bottom:16px; }
.mg-lock > svg { color:#0A84FF; flex:none; }
.mg-lock b { display:block; }
.mg-lock-a { color:#0A84FF; padding:0; }
.mg-teams { display:flex; flex-direction:column; }
.mg-team { display:flex; align-items:center; }
.mg-grip { display:flex; flex-direction:column; }
.mg-grip i { display:block; border-radius:2px; }

.mg-crest { flex:none; }
.mg-nm { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mg-ic { display:inline-flex; align-items:center; justify-content:center; border-radius:50%; }

.mg-ic:hover { background:#2C2C2E; color:var(--text); }
.mg-add { position:sticky; bottom:100px; width:100%; }
.pick-opt.red .nm { color:#FF453A; }
.mg-band { color:var(--text-2); }
.mg-fx-list { display:flex; flex-direction:column; }
.mg-fx-list .fx-edit { overflow:hidden; }
.mg-fx { display:flex; align-items:center; width:100%; text-align:left; }
.mg-fx-sides { flex:1; min-width:0; display:flex; flex-direction:column; }
.mg-fx-team { display:flex; align-items:center; }
.mg-fx-team .crest { flex:none; }
.mg-fx-team.bye .crest { background:#2C2C2E !important; }
.mg-fx-team .n { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.mg-fx-team.bye .n { color:var(--text-3); }
.mg-fx-team .sc { text-align:right; }
.mg-fx-team.win .n, .mg-fx-team.win .sc { color:#FFD60A; }
.mg-st { flex:none; }

.mg-switch { display:flex; align-items:center; margin-bottom:12px; cursor:pointer; }
.mg-switch > span { flex:1; display:flex; flex-direction:column; }

.mg-switch > span > span { color:var(--text-3); }
.mg-switch input { display:none; }
.mg-switch i { position:relative; flex:none; background:#3A3A3C; transition:background .2s; }
.mg-switch i::after { content:""; position:absolute; border-radius:50%; background:#8E8E93; transition:left .2s, background .2s; }

.mg-switch input:checked + i::after { background:var(--green); }
.mg-round { border-radius:50%; color:var(--green); display:inline-flex; align-items:center; justify-content:center; }

.mg-orgs { display:flex; flex-direction:column; margin-bottom:8px; }
.mg-org { display:flex; align-items:center; }
.mg-org-ava { border-radius:50%; color:var(--green); display:inline-flex; align-items:center; justify-content:center; font-weight:700; flex:none; }
.mg-org-nm { flex:1; min-width:0; }
.mg-org-nm span { color:var(--text); margin-left:6px; }
.mg-org-role { color:var(--text-3); }
.mg-org-role.creator { color:var(--green); }
.mg-danger-t { display:flex; align-items:center; gap:12px; color:#FF453A; font-weight:700; margin-bottom:6px; }
.mg-danger-t svg { width:26px; height:26px; }
.btn-blue { display:flex; align-items:center; justify-content:center; width:100%; height:54px; border-radius:20px; background:#0A84FF; color:#fff; font-weight:700; font-size:15.5px; border:0; margin-top:12px; cursor:pointer; }
.mg-pill::after, .mg-pill[aria-selected="true"]::after { display:none !important; }
.mg-pill { border:0 !important; box-shadow:none !important; }

.mg-pill[aria-selected="true"] { color:var(--green) !important; background:#0C1F12 !important; }
.mg-pill:not([aria-selected="true"]) { color:var(--text-2) !important; }

/* The match's filter (MatchFilterBar): the sides, then a side's players. */
.mh-chips { display:flex; gap:10px; overflow-x:auto; scrollbar-width:none; margin:10px 0 0; }
.mh-chip { flex:none; border-radius:999px; background:#1C1C1E; color:var(--text-2); font-weight:600; }
.mh-chip.on { background:var(--green); color:#000; }
.mh-fline { color:var(--text-3); margin-top:8px; }
.mh-fline:empty { display:none; }

.ev[hidden] { display:none !important; }

.mh-share.mh-primary { background:var(--green); color:#000; border:0; }

/* ---- Manage → Settings → Trophies ---- */
.mg-h-sm span { color:var(--text-2); font-weight:600; }
.mg-link { color:var(--green); font-weight:600; padding:0; }
.mg-trophy-empty { display:flex; flex-direction:column; align-items:center; color:var(--text-3); }

.mg-wide { width:100%; background:#000; border:1.5px solid #3A3A3C; }
.mg-sugg { margin-bottom:12px; }
.mg-sugg-h { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:8px; }
.mg-sugg-h b { display:block; }
.mg-sugg-h span, .mg-sugg-r span { display:block; color:var(--text-3); }
.mg-sugg-r { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 0; }

.mg-given { color:var(--green); font-size:14px; font-weight:600; }
.mg-you { color:var(--text-3); font-size:14px; }
.mg-slot { margin-bottom:12px; }
.mg-slot-t { display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:17px; margin-bottom:4px; }
.mg-emoji { font-size:24px; }
.mg-prem { padding:2px 8px; border-radius:6px; background:#2A2208; color:#FFD60A; font-size:11px; font-weight:800; letter-spacing:.5px; }
.mg-tier { font-size:11px; font-weight:800; letter-spacing:.5px; }
.mg-given-line { color:var(--green); font-size:14px; }
.mg-slot .t-act-btns { margin-top:12px; align-items:center; }
.mg-cat { display:flex; align-items:center; gap:12px; }
.mg-cat > span:nth-child(2) { flex:1; }
.mg-tiers { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.mg-tier-b { padding:8px 14px; border-radius:8px; background:#1C1C1E; color:var(--text-3); font-weight:700; font-size:12.5px; }
.mg-tier-b.on { color:var(--tc); background:color-mix(in srgb, var(--tc) 20%, transparent); }

/* The server isn't answering (Supabase outage). */
.ae-down { position:sticky; top:0; z-index:40; background:#3A1F00; color:#FFD60A; font-size:14px; font-weight:600; text-align:center; padding:10px 16px; }
.ae-down button { margin-left:10px; color:#000; background:#FFD60A; border-radius:8px; padding:4px 10px; font-weight:700; }

/* ---- The match reel editor (/m/<id>/reel): the app's OverviewEditorScreen ---- */
.mh-reel { display:inline-flex; align-items:center; justify-content:center; gap:8px; text-decoration:none; color:#000 !important; background:var(--green); border:0; font-weight:700; }
.mh-reel.disabled { opacity:.45; pointer-events:none; }
body.reel-editing .app-tabs { display:none !important; }
.rl-head { position:relative; }
.rl-act { margin-left:auto; color:var(--green); font-weight:700; font-size:17px; padding:8px 4px; }
.rl-body { display:flex; flex-direction:column; padding-bottom:24px; }
.rl-loading, .rl-empty { min-height:50vh; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; color:rgba(255,255,255,.75); text-align:center; padding:32px; }
.rl-bar { width:120px; height:3px; border-radius:2px; background:rgba(255,255,255,.12); overflow:hidden; }
.rl-bar i { display:block; width:40%; height:100%; background:var(--green); animation:rl-slide 1.1s ease-in-out infinite; }
@keyframes rl-slide { 0% { transform:translateX(-100%); } 100% { transform:translateX(260%); } }
.rl-stage { display:flex; justify-content:center; }
.rl-preview { position:relative; width:100%; aspect-ratio:16/9; max-height:62vh; background:#000; overflow:hidden; cursor:pointer; touch-action:none; }
.rl-preview.tall { width:auto; height:min(62vh, 960px); aspect-ratio:9/16; }
.rl-preview.edit { border-radius:16px; }
.rl-preview.edit:not(.tall) { width:calc(100% - 32px); }
.rl-preview.edit.tall { height:min(50vh, 760px); }
.rl-preview canvas { display:block; width:100%; height:100%; }
.rl-glyph { position:absolute; left:50%; top:50%; width:56px; height:56px; margin:-28px 0 0 -28px; border-radius:50%; background:rgba(0,0,0,.55); display:flex; align-items:center; justify-content:center; pointer-events:none; }
.rl-glyph svg { width:32px; height:32px; color:#fff; }
.rl-glyph[hidden] { display:none; }
.rl-emblem { position:absolute; transform:translate(-50%,-50%); opacity:.75; cursor:grab; touch-action:none; z-index:2; }
.rl-emblem.on { opacity:1; cursor:grabbing; }
.rl-emblem[hidden] { display:none; }
.rl-seek { display:flex; align-items:center; gap:10px; padding:6px 16px; }
.rl-line { flex:1; height:28px; display:flex; align-items:center; cursor:pointer; touch-action:none; position:relative; }
.rl-line::before { content:""; position:absolute; left:0; right:0; top:50%; height:3px; margin-top:-1.5px; border-radius:2px; background:#2C2C2E; }
.rl-line.on::before { height:5px; margin-top:-2.5px; }
.rl-line i { position:relative; height:3px; border-radius:2px; background:var(--green); }
.rl-line.on i { height:5px; }
.rl-clock { color:var(--text-2); font-variant-numeric:tabular-nums; }
.rl-lower { display:flex; flex-direction:column; }
.rl-summary { display:flex; flex-direction:column; align-items:center; gap:6px; padding:0 20px; }
.rl-facts { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; }
.rl-facts span { padding:5px 10px; border-radius:999px; background:#2C2C2E; font-size:13px; font-weight:600; }
.rl-note { color:var(--text-3); font-size:13px; text-align:center; padding:0 24px; }
.rl-watch { display:flex; flex-direction:column; align-items:center; gap:4px; padding:14px 16px 12px; }
.rl-primary { width:100%; }
.rl-primary:disabled { opacity:.5; }
.rl-links { display:flex; align-items:center; gap:2px; }
.rl-link { color:#fff; padding:10px 12px; display:inline-flex; align-items:center; gap:6px; }
.rl-link:disabled { opacity:.5; }
.rl-link.done svg, .rl-posted svg { width:16px; height:16px; color:var(--green); }
.rl-link.danger { color:#FF453A; font-size:14px; font-weight:600; }
.rl-dot { color:rgba(255,255,255,.4); }
.rl-err { color:#FF453A; font-size:14px; text-align:center; margin-bottom:6px; }
.rl-posted { display:flex; align-items:center; gap:6px; font-size:14px; font-weight:600; margin-bottom:8px; }
.rl-row-h { display:flex; align-items:center; padding:4px 4px 0 16px; }
.rl-label { color:var(--text-2); flex:1; margin:14px 0 8px; }
.rl-row-h .rl-label { margin:8px 0; }
.rl-more { color:var(--green); padding:8px 12px; }
.rl-looks { display:flex; gap:10px; }
.rl-lower > .rl-looks { padding:0 16px; gap:8px; }
.rl-look { flex:1; min-width:0; display:flex; flex-direction:column; align-items:center; padding:8px; border-radius:14px; background:#1C1C1E; border:2px solid transparent; color:#fff; }
.rl-looks.compact .rl-look { padding:6px; border-radius:12px; }
.rl-look.on { border-color:var(--green); }
.rl-look-img { width:100%; aspect-ratio:16/9; border-radius:8px; overflow:hidden; background:#000; }
.rl-look-img.tall { aspect-ratio:9/16; }
.rl-looks.compact .rl-look-img.tall { width:auto; height:64px; }
.rl-look-img canvas { width:100%; height:100%; display:block; }
.rl-look-n { margin-top:6px; display:flex; align-items:center; gap:3px; max-width:100%; overflow:hidden; white-space:nowrap; }
.rl-looks.compact .rl-look-n { margin-top:4px; }
.rl-look.on .rl-look-n { color:var(--green); }
.rl-look-n svg { width:12px; height:12px; flex:none; }
.rl-entries { display:flex; gap:8px; padding:10px 16px 12px; }
.rl-entry { flex:1; min-width:0; display:flex; align-items:center; gap:8px; padding:12px; border-radius:12px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.08); color:#fff; }
.rl-entry svg { width:18px; height:18px; flex:none; }
.rl-entry span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rl-lower > .rl-primary { width:calc(100% - 32px); margin:0 16px 12px; }
.rl-strip { display:flex; gap:8px; overflow-x:auto; padding:8px 16px 4px; scrollbar-width:none; }
.rl-strip::-webkit-scrollbar { display:none; }
.rl-tile { position:relative; flex:none; width:84px; height:96px; border-radius:10px; background:#1C1C1E; border:1px solid rgba(255,255,255,.12); overflow:hidden; text-align:left; color:#fff; transition:transform .12s; user-select:none; -webkit-user-select:none; touch-action:pan-x; padding:0; }
.rl-tile.on { border:2px solid var(--green); }
.rl-tile.lift { transform:scale(1.08); z-index:2; }
.rl-tile.card { display:flex; flex-direction:column; justify-content:space-between; align-items:flex-start; padding:6px; }
.rl-tile.card b { font-size:12px; line-height:13px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.rl-tile.card > span { font-size:11px; color:rgba(255,255,255,.7); }
.rl-tile img, .rl-addt img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; pointer-events:none; }
.rl-dim { position:absolute; inset:0; background:rgba(0,0,0,.4); }
.rl-tile.on .rl-dim { background:rgba(0,0,0,.25); }
.rl-tile-in { position:absolute; inset:0; padding:6px; display:flex; flex-direction:column; justify-content:space-between; }
.rl-n { align-self:flex-start; padding:1px 6px; border-radius:999px; background:#fff; color:#000; font-size:11px; font-weight:700; }
.rl-tile.on .rl-n { background:var(--green); }
.rl-sel { display:flex; align-items:center; gap:2px; height:12px; color:var(--green); font-size:9px; font-weight:700; font-style:normal; }
.rl-sel svg { width:12px; height:12px; }
.rl-tile-f { display:flex; align-items:center; justify-content:space-between; }
.rl-tile-f b { font-size:11px; font-weight:600; }
.rl-tile-f em { font-size:9px; font-style:normal; color:rgba(255,255,255,.8); }
.rl-tile.add { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; background:none; border:1px solid rgba(255,255,255,.25); font-size:11px; font-weight:600; }
.rl-tile.add svg { width:24px; height:24px; }
.rl-tools { display:flex; align-items:center; gap:8px; padding:8px 16px 0; min-height:44px; }
.rl-tool { display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border-radius:10px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.08); color:#fff; white-space:nowrap; }
.rl-tool svg { width:16px; height:16px; }
.rl-tool.danger { color:#FF453A; }
.rl-grow { flex:1; }
.rl-hint { flex:1; color:var(--text-2); font-size:14px; }
.rl-chips { display:flex; gap:8px; padding:8px 16px; }
.rl-chip { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; padding:10px 0; border-radius:12px; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.08); font-size:11px; font-weight:600; color:#fff; }
.rl-chip svg { width:18px; height:18px; }
.rl-foot { display:flex; justify-content:flex-end; padding:0 8px; }
.rl-foot .rl-link { font-size:14px; font-weight:600; }
/* sheets */
.rl-sheet .sheet-body { padding-bottom:28px; }
.rl-sub { color:var(--text-2); font-size:14px; margin:-2px 0 6px; }
.rl-opt, .rl-orient-o, .rl-track { width:100%; display:flex; align-items:center; gap:12px; padding:12px; margin:4px 0; border-radius:14px; background:#1C1C1E; border:2px solid transparent; text-align:left; color:#fff; cursor:pointer; }
.rl-opt.on, .rl-orient-o.on, .rl-track.on { border-color:var(--green); }
.rl-opt > span, .rl-orient-o > span, .rl-track-t { flex:1; min-width:0; display:flex; flex-direction:column; }
.rl-opt b, .rl-orient-o b, .rl-track-t b { font-size:15px; }
.rl-opt span span, .rl-orient-o span span, .rl-track-t span { color:var(--text-2); font-size:13px; }
.rl-track-t span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rl-opt > svg, .rl-orient-o > svg:last-child, .rl-tick svg { width:18px; height:18px; color:var(--green); flex:none; }
.rl-orient { display:flex; gap:10px; }
.rl-orient-o { flex:1; min-width:0; }
.rl-orient-o > svg:first-child { width:22px; height:22px; color:var(--text-2); flex:none; }
.rl-orient-o.on > svg:first-child { color:var(--green); }
.rl-fx { display:flex; align-items:center; gap:4px; margin-top:20px; }
.rl-fx > span { flex:1; display:flex; flex-direction:column; }
.rl-fx > span b { font-weight:600; }
.rl-fx > span span { color:var(--text-2); font-size:13px; }
.rl-switch { display:flex; align-items:center; gap:12px; padding:8px 0; cursor:pointer; }
.rl-switch.bare { padding:0; }
.rl-switch.bare > span { display:none; }
.rl-switch > span { flex:1; display:flex; flex-direction:column; }
.rl-switch > span b { font-weight:500; }
.rl-switch > span span { color:var(--text-2); font-size:13px; }
.rl-switch.off > span b { color:var(--text-3); }
.rl-switch input { display:none; }
.rl-switch i { position:relative; width:52px; height:32px; flex:none; border-radius:16px; background:#3A3A3C; transition:background .2s; }
.rl-switch i::after { content:""; position:absolute; left:4px; top:4px; width:24px; height:24px; border-radius:50%; background:#8E8E93; transition:left .2s, background .2s; }
.rl-switch input:checked + i { background:var(--green); }
.rl-switch input:checked + i::after { left:24px; background:#000; }
.rl-switch.off i { opacity:.4; }
.rl-sheet .rl-primary { margin-top:20px; }
.rl-lock { display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:999px; background:rgba(255,214,10,.15); font-size:14px; margin-bottom:12px; }
.rl-lock svg { width:16px; height:16px; color:#FFD60A; }
.rl-lock svg + b + svg { width:12px; height:12px; color:var(--text-2); }
.rl-lock span { color:var(--text-2); font-size:13px; }
.rl-names { display:flex; gap:10px; }
.rl-names .rl-field { flex:1; min-width:0; }
.rl-field { display:flex; flex-direction:column; gap:4px; margin-bottom:10px; }
.rl-field > span { color:var(--text-2); font-size:13px; }
.rl-field .input { margin:0; width:100%; }
.rl-play { width:36px; height:36px; flex:none; border-radius:50%; background:#2C2C2E; display:flex; align-items:center; justify-content:center; color:#fff; }
.rl-play.on { background:var(--green); color:#000; }
.rl-play svg { width:20px; height:20px; }
.rl-vol { display:flex; justify-content:space-between; align-items:center; }
.rl-vol b { font-weight:500; }
.rl-vol span { color:var(--text-2); font-size:14px; }
.rl-range { width:100%; accent-color:var(--green); margin:8px 0; }
.rl-licence { color:var(--text-3); font-size:13px; margin-top:8px; }
.rl-addgrid { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; max-height:380px; overflow:auto; }
.rl-addt { position:relative; aspect-ratio:1; border-radius:10px; background:#1C1C1E; overflow:hidden; color:#fff; text-align:left; padding:0; }
.rl-addt:disabled { opacity:.6; }
.rl-addt .rl-dim { background:rgba(0,0,0,.35); }
.rl-addt .rl-tile-in > span:last-child { display:flex; flex-direction:column; }
.rl-addt em { font-style:normal; font-size:10px; font-weight:700; }
.rl-addt em.rej { color:#FFD60A; }
.rl-addt em.bad { color:#FF453A; }
.rl-addt b { font-size:11px; font-weight:600; }
.rl-trim-v { width:100%; height:200px; border-radius:12px; background:#000; object-fit:contain; display:block; }
.rl-trim-i { display:flex; justify-content:space-between; margin:12px 0 6px; font-size:14px; font-weight:600; }
.rl-trim-i b { color:var(--green); }
.rl-trim-s { position:relative; height:56px; display:flex; border-radius:8px; background:#1C1C1E; touch-action:none; margin:0 14px; }
.rl-trim-s img { flex:1; min-width:0; height:100%; object-fit:cover; opacity:.55; }
.rl-trim-w { position:absolute; top:0; bottom:0; border:3px solid var(--green); border-radius:8px; }
.rl-hdl { position:absolute; top:-3px; bottom:-3px; width:28px; cursor:ew-resize; touch-action:none; }
.rl-hdl.l { left:-17px; }
.rl-hdl.r { right:-17px; }
.rl-hdl::after { content:""; position:absolute; left:11px; top:50%; width:6px; height:26px; margin-top:-13px; border-radius:3px; background:var(--green); }
.rl-remove { display:block; margin:28px auto 0; }

/* ALL-128: the profile's own reels and Build my reel */
.pf-reels { display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; margin-bottom:8px; }
.pf-reel { position:relative; flex:none; width:150px; aspect-ratio:9/16; border-radius:12px; overflow:hidden; background:#1C1C1E; padding:0; }
.pf-reel img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.pf-build { display:flex; align-items:center; justify-content:center; height:50px; border-radius:14px; margin-bottom:12px; font-weight:700; text-decoration:none; color:#000 !important; }

/* Reframe (ALL-165): the clip with the portrait window over it */
.rl-reframe { position:fixed; inset:0; z-index:110; background:var(--bg, #000); display:flex; flex-direction:column; overflow-y:auto; max-width:620px; margin:0 auto; padding-bottom:16px; }
.rf-box { position:relative; width:100%; background:#000; overflow:hidden; touch-action:none; cursor:grab; flex:none; }
.rf-box video { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.rf-win { position:absolute; border:2px solid #fff; box-shadow:0 0 0 9999px rgba(0,0,0,.55); border-radius:2px; pointer-events:none; }
.rf-win.on { border-color:var(--green); }
.rf-veil { position:absolute; inset:0; background:rgba(0,0,0,.55); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:#fff; }
.rf-veil[hidden] { display:none; }
.rf-ctl { display:flex; align-items:center; gap:8px; padding:4px 12px; }
.rf-ctl .rl-range { flex:1; }
.rf-pp { width:40px; height:40px; color:#fff; display:flex; align-items:center; justify-content:center; }
.rf-pp svg { width:24px; height:24px; }
.rf-dots { position:relative; height:16px; margin:2px 64px 2px 60px; }
.rf-dot { position:absolute; top:3px; width:10px; height:10px; margin-left:-5px; border-radius:50%; background:var(--green); padding:0; }
.rf-hint { color:var(--text-2); font-size:13px; margin:4px 20px; }
.rl-reframe .rl-orient { padding:8px 16px 0; }
.rf-grow { flex:1; min-height:12px; }
.rl-reframe > .rl-primary { width:calc(100% - 32px); margin:10px 16px 0; flex:none; }

/* ==== Sizes measured against the Android app (Pixel 8, 411 dp wide): the shell and Search ==== */
body.in-app .topbar-in { padding:4px 16px; gap:8px; min-height:56px; }
body.in-app .topbar .logo { font-size:20px; font-weight:700; letter-spacing:0; }
body.in-app .topbar .beta { display:inline; font-size:11px; font-weight:500; letter-spacing:.5px; color:var(--text-3); margin:0; }
body.in-app .ae-actions { gap:0; }
body.in-app .ae-icon, body.in-app .ae-bell { width:48px; height:48px; color:var(--text-2); }
body.in-app .ae-icon svg, body.in-app .ae-bell svg { width:24px; height:24px; }
body.in-app .wrap { padding:0 16px 96px; }
.app-tabs { background:var(--surface); border-top:0; padding:0 0 env(safe-area-inset-bottom); }
.app-tabs a { height:56px; padding:0; color:var(--text-3); }
.app-tabs a svg { width:26px; height:26px; }
.app-tabs a[aria-current="page"] svg { transform:scale(1.12); }
.app-h { margin:12px 0 8px; }
.app-h h1 { font-size:22px; font-weight:700; letter-spacing:0; line-height:28px; }
.app-search { height:56px; border-radius:14px; border-color:var(--border); padding:0 12px; gap:16px; }
.app-search input { font-size:16px; }
.s-h { margin:16px 0 6px; font-size:11px; font-weight:500; letter-spacing:.5px; }
.s-clear { font-size:11px; font-weight:500; }
.s-q { gap:12px; padding:10px 0; font-size:15px; }
.s-q svg { width:18px; height:18px; }
.s-x { font-size:15px; }
.acct-list { gap:8px; }
.acct-card { gap:12px; padding:10px; border-radius:20px; background:var(--surface); }
.acct-ava { width:40px; height:40px; font-size:12px; }
.acct-nm { font-size:11px; font-weight:600; letter-spacing:.3px; }
.acct-sub { font-size:11px; font-weight:500; letter-spacing:.5px; }

/* ==== Cups (TournamentsListScreen), measured against the app ==== */
.app-h-acts .ae-icon { color:var(--text); }
.app-h-acts .ae-icon svg { width:24px; height:24px; }
.home-tabs { display:flex; margin:0 -8px 0; }
.home-tab { display:flex; flex-direction:column; align-items:center; padding:6px 10px; border-radius:10px; font-size:17px; line-height:23px; font-weight:500; color:var(--text-3); }
.home-tab::after { content:""; width:28px; height:3px; margin-top:5px; border-radius:999px; background:var(--green); opacity:0; transform:scaleX(0); transition:transform .15s, opacity .15s; }
.home-tab[aria-selected="true"] { font-weight:700; color:var(--text); }
.home-tab[aria-selected="true"]::after { opacity:1; transform:none; }
.tc-list { gap:12px; margin-top:4px; }
.tc-card { align-items:flex-start; gap:12px; padding:12px; border-radius:20px; background:var(--surface); border:1px solid transparent; box-shadow:0 2px 4px rgba(0,0,0,.35); }
.tc-card.live { border-color:transparent; background:linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, rgba(48,209,88,.75), rgba(48,209,88,.10)) border-box; box-shadow:0 0 10px rgba(48,209,88,.35); }
.tc-emblem { width:64px; height:64px; color:var(--text-3); background:linear-gradient(135deg, rgba(104,104,104,.2), #2C2C2E); }
.tc-emblem.ongoing { color:var(--green); background:linear-gradient(135deg, rgba(48,209,88,.3), #2C2C2E); }
.tc-emblem.upcoming { background:linear-gradient(135deg, rgba(10,132,255,.3), #2C2C2E); }
.tc-emblem.completed { color:#FFD60A; background:linear-gradient(135deg, rgba(255,214,10,.3), #2C2C2E); }
.tc-emblem.has { background:transparent; }
.tc-emblem svg { width:28px; height:28px; }
.tc-body { gap:0; }
.tc-top { align-items:center; gap:6px; }
.tc-name { font-size:17px; font-weight:600; line-height:23px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tc-chip { padding:4px 10px; font-size:11px; font-weight:600; letter-spacing:.3px; }
.tc-chip.ongoing { background:rgba(48,209,88,.22); }
.tc-chip.upcoming { background:rgba(10,132,255,.15); }
.tc-chip.completed, .tc-chip.cancelled { background:rgba(104,104,104,.15); color:var(--text-3); }
.tc-chip.won { background:rgba(255,214,10,.16); color:#FFD60A; }
.tc-line { margin-top:4px; gap:0; font-size:13px; line-height:18px; color:var(--text-2); }
.tc-dot { margin:0 6px; }
.tc-teams { gap:4px; margin-left:10px; }
.tc-teams svg { width:14px; height:14px; }
.tc-prog { display:flex; align-items:center; gap:8px; margin-top:10px; font-size:11px; font-weight:500; letter-spacing:.5px; color:var(--text-3); }
.tc-bar { flex:1; height:6px; border-radius:999px; background:#2C2C2E; overflow:hidden; }
.tc-bar i { display:block; height:100%; background:var(--green); }
.tc-scorer { margin-top:10px; gap:4px; font-size:13px; font-weight:500; line-height:18px; }
.tc-scorer svg { width:14px; height:14px; }
.tc-empty { display:flex; flex-direction:column; align-items:center; text-align:center; padding:48px 16px; }
.tc-empty-ic { width:72px; height:72px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#FFD60A; background:linear-gradient(135deg, rgba(255,214,10,.3), #2C2C2E); }
.tc-empty-ic svg { width:34px; height:34px; }
.tc-empty b { margin-top:16px; font-size:17px; font-weight:600; line-height:23px; }
.tc-empty > span:not(.tc-empty-ic) { margin-top:6px; font-size:15px; line-height:22px; color:var(--text-3); }
.tc-empty .app-btn { margin-top:20px; width:100%; }
.tc-empty-link { margin-top:4px; padding:10px 12px; color:var(--green); font-family:Roboto, system-ui, sans-serif; font-size:14px; font-weight:500; }
/* The app's AppButton: 48 dp, 12 dp corners, white 11 sp label, an 18 dp icon 8 dp before it. */
.app-btn { height:48px; padding:0 24px; border-radius:12px; color:#fff !important; font-size:11px; font-weight:600; letter-spacing:.3px; gap:8px; }
.app-btn svg { width:18px; height:18px; }

.app-h.cups-h { margin:4px -10px 0 0; min-height:48px; }

.tc-line img, .tc-line .flag { width:16px !important; height:12px !important; object-fit:cover; border-radius:2px; vertical-align:-1px; }
.tc-sec { margin:14px 4px -6px; font-size:13px; font-weight:600; line-height:18px; color:var(--text-2); }

/* ==== Friendlies (MatchesScreen + RecordingTile), measured against the app ==== */
.app-h.fm-h { margin:20px 0 12px; }
.app-h.fm-h h1 { font-size:26px; line-height:33px; }
.fm-new { display:inline-flex; align-items:center; justify-content:center; height:40px; min-width:52px; padding:0 14px; border-radius:20px;
  background:var(--green); color:#05230F; font-size:15px; font-weight:600; text-decoration:none; flex:none; }
.fm-new svg { width:24px; height:24px; }
.fm-new.wide { padding:0 20px; gap:8px; margin-top:18px; }
.fm-grid { gap:12px; }
.fm-card { aspect-ratio:16/11; border-radius:14px; background:#1E1E1E; }
.fm-shade { background:linear-gradient(180deg, transparent 50%, rgba(0,0,0,.9)); }
.fm-shade.scored { background:linear-gradient(180deg, transparent 15%, rgba(0,0,0,.9)); }
.fm-play { position:absolute; left:50%; top:50%; width:40px; height:40px; margin:-20px 0 0 -20px; border-radius:50%; background:rgba(0,0,0,.33);
  display:flex; align-items:center; justify-content:center; color:#fff; }
.fm-play svg { width:24px; height:24px; }
.fm-body { padding:10px; gap:3px; }
.fm-team { gap:6px; font-size:14px; font-weight:600; text-shadow:none; }
.fm-team.won .fm-nm { font-weight:700; }
.fm-team .fm-sc { font-size:15px; font-weight:700; }
.fm-team .lt-crest { width:18px !important; height:18px !important; font-size:10px !important; }
.fm-when-big { font-size:14px; font-weight:600; text-shadow:none; }
.fm-meta { font-size:11px; color:#CCCCCC; text-shadow:none; }
.fm-body.plain { gap:0; }
.fm-empty { grid-column:1 / -1; display:flex; flex-direction:column; align-items:center; text-align:center; padding:96px 8px; }
.fm-empty b { font-size:18px; font-weight:600; }
.fm-empty > span { margin-top:6px; font-size:14px; color:var(--text-2); }
.fm-novideo svg { width:24px; height:24px; }
.fm-novideo { color:#5A5A5E; }

/* ==== Profile (ProfileScreen + ProfileStats), measured against the app ==== */
.pf-head { align-items:flex-start; gap:16px; margin:16px 0 0; padding:8px 0 0; }
.pf-ava { width:80px; height:80px; border-width:3px; font-size:32px; }
.pf-who { gap:0; }
.pf-name { gap:6px; font-size:22px; font-weight:700; letter-spacing:0; line-height:28px; }
.pf-name svg, .pf-tick { width:18px !important; height:18px !important; }
.pf-user { font-size:15px; line-height:22px; color:var(--text-3); }
.pf-chips { gap:8px; margin-top:4px; }
.pf-chip { padding:2px 8px; border-radius:6px; font-size:11px; font-weight:600; letter-spacing:.3px; line-height:14px; }
.pf-chip.green { background:rgba(48,209,88,.12); }
.pf-where { margin-top:4px; font-size:11px; font-weight:500; letter-spacing:.5px; line-height:14px; color:var(--text-3); }
.pf-where img, .pf-where .flag { width:14px !important; height:10px !important; }
.pf-bio { margin:10px 0 0; font-size:13px; line-height:18px; color:var(--text-2); display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.pf-edit { display:flex; align-items:center; justify-content:center; height:48px; padding:0; margin:20px 0 12px; border:1.5px solid var(--border); border-radius:12px;
  font-size:11px; font-weight:600; letter-spacing:.3px; color:var(--text); }
.pf-card { background:var(--surface); border-radius:20px; padding:0; margin-bottom:12px; box-shadow:0 2px 4px rgba(0,0,0,.35); }
.pf-sum { padding:14px 16px; }
.pf-big { display:flex; }
.pf-big-i { flex:1; display:flex; flex-direction:column; align-items:center; }
.pf-big-i b { font-size:22px; font-weight:700; line-height:28px; }
.pf-big-i span { gap:3px; font-size:11px; font-weight:500; letter-spacing:.5px; color:var(--text-3); }
.pf-big-i svg { width:13px; height:13px; }
.pf-line { flex-wrap:wrap; gap:6px 14px; margin-top:10px; font-size:11px; font-weight:500; letter-spacing:.5px; color:var(--text-2); }
.pf-line span { gap:4px; }
.pf-line svg { width:14px; height:14px; color:var(--text-3); }
.pf-all { margin:8px auto 0; padding:4px; font-size:11px; font-weight:600; letter-spacing:.5px; }
.pf-nostats { padding:18px 16px; text-align:center; font-size:13px; line-height:18px; color:var(--text-2); }
.pf-tro { margin:0; padding:12px 16px; border-top:0; position:relative; gap:0; font-size:11px; font-weight:500; letter-spacing:.5px; color:var(--text-3); }
.pf-tro::before { content:""; position:absolute; left:16px; right:16px; top:0; height:.5px; background:rgba(255,255,255,.035); }
.pf-tro > span { gap:0; }
.pf-tro > span svg { width:20px; height:20px; margin-right:6px; }
.pf-tro b { font-size:17px; font-weight:700; margin-right:4px; }
.pf-tro > svg { width:18px; height:18px; }
.pf-org { padding:12px 14px; gap:6px; }
.pf-org-i { width:32px; height:32px; font-size:13px; }
.pf-org-t b { font-size:15px; font-weight:400; line-height:22px; }
.pf-org-t span { margin-top:2px; font-size:11px; font-weight:500; letter-spacing:.5px; color:var(--text-2); }
.pf-org-all { font-size:13px; font-weight:400; }
.pf-tabs { display:flex; position:sticky; top:0; z-index:5; background:#000; border-bottom:.5px solid rgba(255,255,255,.035); }
.pf-tab { flex:1; display:flex; flex-direction:column; align-items:center; padding:10px 0 0; font-size:11px; font-weight:500; letter-spacing:.3px; color:var(--text-3); }
.pf-tab::after { content:""; align-self:stretch; height:2px; margin-top:8px; background:transparent; }
.pf-tab[aria-selected="true"] { font-weight:700; color:var(--text); }
.pf-tab[aria-selected="true"]::after { background:var(--green); }
.pf-tabempty { display:flex; align-items:center; justify-content:center; gap:8px; padding:20px 0; font-size:13px; color:var(--text-3); }
.pf-tabempty svg { width:18px; height:18px; }
.pf-panel { margin-top:12px; }

/* ==== Settings (SettingsScreen) and the pushed screens' back header, measured against the app ==== */
.back-h { gap:0; margin:8px 0 8px -12px; min-height:48px; }
.back-h .td-back { width:48px; height:48px; display:inline-flex; align-items:center; justify-content:center; margin:0; }
.back-h .td-back svg { width:24px; height:24px; }
.back-h h1 { font-size:22px; font-weight:700; line-height:28px; }
.set-list { margin:0 -16px; border-top:.5px solid var(--border); }
.set-row { gap:16px; padding:14px 20px; border-bottom:.5px solid var(--border); }
.set-ic svg { width:22px; height:22px; }
.set-t { font-size:15px; font-weight:600; line-height:20px; }
.set-s { font-size:11px; font-weight:500; letter-spacing:.5px; line-height:14px; color:var(--text-3); }
.set-ch svg { width:20px; height:20px; }
.set-logout { margin:0 -16px; padding:18px 20px; font-size:15px; font-weight:600; }

/* ==== Notifications (NotificationsScreen), measured against the app ==== */
.inbox-all { margin-left:auto; padding:8px 12px; font-size:13px; color:var(--green); }
.inbox-list { margin:0 -16px; }
.inbox-swipe { position:relative; overflow:hidden; }
.inbox-bed { position:absolute; inset:0; display:flex; align-items:center; justify-content:flex-end; padding:0 20px; background:rgba(255,69,58,.85); color:#fff; font-size:13px; }
.inbox-row { position:relative; display:flex; align-items:flex-start; gap:0; padding:12px 16px !important; border:0 !important; background:#000 !important; touch-action:pan-y; user-select:none; }
.inbox-row.unread { background:linear-gradient(rgba(48,209,88,.06), rgba(48,209,88,.06)), #000 !important; }
.inbox-top { align-items:center; gap:8px; }
.inbox-t { flex:1; font-size:15px; line-height:22px; font-weight:500; }
.inbox-row.unread .inbox-t { font-weight:600; }
.inbox-when { font-size:11px; font-weight:500; letter-spacing:.5px; color:var(--text-3); }
.inbox-b { margin-top:2px; font-size:13px; line-height:18px; color:var(--text-2); }
.inbox-dot { position:static; flex:none; width:8px; height:8px; margin:6px 0 0 8px; }
.inbox-decide { gap:8px; margin-top:8px; }
.inbox-decide .app-btn { flex:1; padding:0 8px; }
.app-btn-line { background:transparent !important; border:1.5px solid var(--border) !important; color:var(--text) !important; }
.inbox-empty { display:flex; flex-direction:column; align-items:center; text-align:center; gap:0; }
.inbox-empty svg { width:48px; height:48px; color:var(--text-3); }
.inbox-empty b { margin-top:12px; font-size:17px; font-weight:600; line-height:23px; }
.inbox-empty span { margin-top:4px; font-size:13px; line-height:18px; color:var(--text-2); }
.inbox-empty { justify-content:center; min-height:calc(100vh - 130px); padding:0 32px; }

/* ==== Tournament page (TournamentDetailScreen), measured against the app ==== */
.td-sticky { margin:0 -16px; padding:8px 4px 0; }
.td-head { gap:0; padding:0 0 4px; }
.td-back, .td-share { width:48px; height:48px; }
.td-back svg, .td-share svg { width:24px; height:24px; }
.td-emblem { width:44px; height:44px; margin-right:10px; }
.td-emblem.initial { font-size:17px; }
.td-name { font-size:17px; font-weight:700; line-height:23px; letter-spacing:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.td-meta { gap:6px; margin-top:0; font-size:11px; font-weight:500; letter-spacing:.5px; line-height:14px; color:var(--text-2); flex-wrap:nowrap; }
.td-meta > span:last-child { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.td-won { flex:none; padding:4px 10px; font-size:11px; font-weight:600; letter-spacing:.3px; background:rgba(255,214,10,.16); }
.td-live { flex:none; gap:6px; padding:4px 9px; border-radius:999px; background:rgba(255,69,58,.14); color:#FF453A; font-size:11px; font-weight:700; letter-spacing:.3px; }
.td-live i { width:10px; height:10px; background:#FF453A; }
.t-actions.app { margin:0; padding:6px 12px; }
.t-act-main { height:48px; border-radius:12px !important; font-size:11px; font-weight:600; letter-spacing:.3px; gap:8px; color:#fff !important; }
.t-act-main svg { width:18px; height:18px; }
.t-act-say { padding:0; }
.t-act-say b { font-size:15px; font-weight:700; line-height:22px; }
.t-act-say span { font-size:11px; font-weight:500; letter-spacing:.5px; color:var(--text-3); }
.td-tabs { margin:0 -4px 0; padding:0 8px; border-bottom:1px solid var(--border); }
.td-tab { display:flex; flex-direction:column; align-items:center; padding:10px 4px 0; font-size:11px; font-weight:500; letter-spacing:.3px; color:var(--text-2); }
.td-tab::after { content:""; width:var(--tw, 40px); height:3px; margin-top:8px; border-radius:3px 3px 0 0; background:transparent; position:static !important; }
.td-tab[aria-selected="true"]::after { background:var(--green); position:static; left:auto; right:auto; }
.td-panel { padding-top:8px; }
.ov-card { background:var(--surface); border-radius:20px; padding:16px; margin-bottom:12px; box-shadow:0 2px 4px rgba(0,0,0,.35); }
.ov-about { padding:0; }
.ov-about-h { gap:8px; padding:14px; }
.ov-i { width:20px; height:20px; font-size:12px; }
.ov-about-t b { font-size:15px; line-height:20px; font-weight:600; }
.ov-about-t span { font-size:11px; font-weight:500; letter-spacing:.5px; color:var(--text-2); }
.ov-chev { width:9px; height:9px; }
.ov-about-b { padding:0 14px 14px 42px; font-size:13px; line-height:18px; }
.ov-note { gap:10px; }
.ov-note-ic svg { width:18px; height:18px; }
.ov-note b { font-size:15px; font-weight:400; line-height:22px; }
.ov-note span { font-size:11px; font-weight:500; letter-spacing:.5px; color:var(--text-3); }
.ov-champ { gap:14px; padding:16px; margin-bottom:12px; border-radius:20px; }
.ov-champ-crest { width:52px !important; height:52px !important; font-size:22px !important; box-shadow:0 0 0 6px var(--surface), 0 0 0 7.5px #FFD60A; margin:6px; }
.ov-champ-t .lbl { font-size:11px; font-weight:500; letter-spacing:2px; }
.ov-champ-t b { font-size:22px; font-weight:700; letter-spacing:0; line-height:28px; }
.ov-champ-t span { font-size:11px; font-weight:500; letter-spacing:.5px; }
.ov-champ-ic svg { width:34px; height:34px; }

.ov-stats b { font-size:17px; font-weight:700; line-height:23px; }
.ov-stats span { font-size:11px; font-weight:500; letter-spacing:.5px; }
.ov-sec { margin:18px 4px 6px; font-size:13px; font-weight:600; line-height:18px; }
.ov-link { font-size:13px; font-weight:400; }
.ov-scorer { gap:8px; padding:16px; }
.ov-scorer svg { width:20px; height:20px; }
.ov-scorer span { font-size:11px; font-weight:600; letter-spacing:.3px; }
.ov-scorer b { font-size:17px; font-weight:600; line-height:23px; }
.ov-awards { gap:0; padding:8px 16px; }
.ov-award { gap:12px; padding:8px 0; }
.ov-award svg, .ov-award .em { width:32px; height:32px; }
.ov-award b { font-size:15px; font-weight:400; }
.ov-award span { font-size:13px; }
.rs-when { width:64px; border-right:0; margin-right:0; position:relative; }
.rs-when::after { content:""; position:absolute; right:-11px; top:50%; width:1px; height:40px; margin-top:-20px; background:var(--border); }
.rs-when b { font-size:11px; font-weight:600; letter-spacing:.5px; color:var(--text-2); }
.rs-when span { font-size:11px; font-weight:500; letter-spacing:.5px; }
.rs-sides { gap:8px; margin-left:21px; }
.rs-team { gap:10px; font-size:15px; line-height:22px; }
.rs-team .crest { width:22px; height:22px; font-size:10px; }
.rs-team .sc { font-size:17px; font-weight:500; line-height:23px; }
.rs-team.win .n, .rs-team.win .sc { font-weight:700; }
.rs-team.lose .n, .rs-team.lose .sc { opacity:.82; }
.rs-pens { font-size:11px; }
.td-tab::after { display:none !important; }
.td-tl { position:relative; display:inline-block; padding-bottom:11px; white-space:nowrap; }
.td-tl::after { content:""; position:absolute; left:0; right:0; bottom:0; height:3px; border-radius:3px 3px 0 0; background:transparent; }
.td-tab[aria-selected="true"] .td-tl::after { background:var(--green); }
.fx { gap:8px; }
.fx-row.rs { padding:12px; border-radius:20px; background:var(--surface); box-shadow:none; }
.ov-stats { padding:16px; }
.ov-champ-ic { margin-left:-6px; }
.rs-sec { margin:16px 0 8px; }
.rs-sec b { font-size:11px; font-weight:600; letter-spacing:.3px; line-height:14px; }
.rs-sec span { font-size:11px; font-weight:500; letter-spacing:.5px; line-height:14px; color:var(--text-3); }
.rs-pens { margin-top:-2px; }

/* ==== Bracket (BracketScreen + BracketMatchCard), measured against the app ==== */
.bracket-scroll { margin:0 -16px; padding:10px 16px 24px; }
.bracket .round { width:164px !important; }
.bracket .round + .round { margin-left:28px !important; }
.bracket .round-h { display:flex; align-items:center; gap:5px; font-size:11px !important; font-weight:600; letter-spacing:.3px; color:var(--text-2); margin:0 0 8px !important; padding:0; }
.bracket .round-h.final { color:#FFD60A; }
.slot { padding:7px 0; }
.mcard { width:164px !important; border:1px solid var(--border) !important; border-radius:10px !important; background:var(--surface) !important; }
.mcard .mrow { height:32px; padding:0 9px !important; gap:8px !important; font-size:13px !important; font-weight:500 !important; }
.mcard .mrow + .mrow { border-top:1px solid rgba(255,255,255,.07) !important; }
.mcard .mrow .crest { width:20px !important; height:20px !important; font-size:9px !important; }
.mcard .mrow .sc { font-size:15px !important; font-weight:500 !important; }
.mcard .mrow.win .n, .mcard .mrow.win .sc { font-weight:700 !important; }
.mcard .mrow .pens { font-size:11px !important; margin-right:-2px; }
.round.has-next .slot::after, .round.has-next .pair::before, .round.has-next .pair::after { background:rgba(104,104,104,.55) !important; width:14px; height:1px; }
.round.has-next .pair::before { width:1px !important; }
.round.has-next .slot::after { right:-14px !important; width:14px !important; }
.round.has-next .pair::before { right:-14px !important; }
.round.has-next .pair::after { right:-28px !important; width:14px !important; }
.round.has-next .pair.lone .slot::after { width:28px !important; right:-28px !important; }
.round.final-r .mcard, .mcard.final { border-color:rgba(255,214,10,.55) !important; }
.round.has-next .pair::before { height:auto !important; }
.mcard .mrow .pens { margin:0 -4px 0 -2px !important; }

/* ==== Teams tab (TournamentTeamsScreen), measured against the app ==== */
.tm-list { gap:8px !important; }
.tm-row { gap:12px !important; padding:12px !important; border-radius:20px !important; background:var(--surface) !important; }
.tm-row .crest, .tm-crest { width:44px !important; height:44px !important; font-size:18px !important; }
.tm-b b { font-size:17px !important; font-weight:600; line-height:23px; }
.tm-b span { font-size:13px !important; line-height:18px; color:var(--text-2) !important; }
.tm-ch svg { width:18px !important; height:18px !important; }

/* ==== Team page (TeamDetailScreen), measured against the app ==== */
.tmd-hero { gap:14px !important; }
.tmd-crest { width:72px !important; height:72px !important; font-size:30px !important; }
.tmd-t b { font-size:22px !important; font-weight:700; line-height:28px; }
.tmd-t span { font-size:13px !important; line-height:18px; color:var(--text-2); }
.pl-list { gap:10px; }
.pl-card { gap:12px; padding:12px; border-radius:20px; background:var(--surface); }
.pl-ava { width:40px; height:40px; font-size:12px; }
.pl-nm { gap:6px; font-size:11px; font-weight:600; letter-spacing:.3px; line-height:14px; }
.pl-cap { font-size:11px; font-weight:500; letter-spacing:.5px; }
.pl-cap svg { width:13px; height:13px; }
.pl-guest { padding:1px 6px; border-radius:4px; font-size:11px; font-weight:500; letter-spacing:.5px; color:var(--text-3); }
.pl-sub { font-size:11px; font-weight:500; letter-spacing:.5px; line-height:14px; }
.pl-card .tm-ch svg, .pl-card > svg { width:20px; height:20px; }
.tmd-hero { margin:8px 0 24px !important; }

/* ==== Match page (MatchScreen + HighlightsGrid), measured against the app ==== */
.mh-find[hidden], .mh-chips[hidden] { display:none !important; }
.mh-head { margin:0 -16px; padding:4px 4px; gap:4px; min-height:56px; }
.mh-head .td-back { width:48px; height:48px; }
.mh-title { font-size:22px; font-weight:400; line-height:28px; }
.mh-teams { border-radius:20px; padding:16px; margin:8px 0 12px; }
.mh-side { gap:10px; }
.mh-crest { width:52px !important; height:52px !important; font-size:22px !important; }
.mh-nm { font-size:15px; font-weight:600; line-height:20px; }
.mh-side.win .mh-nm { font-weight:700; }
.mh-vs { font-size:22px; font-weight:400; padding:0 12px; color:var(--text-3); }
.mh-vs.score { font-size:46px; font-weight:700; line-height:50px; }
.mh-facts { margin-top:10px; font-size:13px; line-height:18px; color:rgba(255,255,255,.6); }
.mh-acts { gap:8px; margin-bottom:8px; }
.mh-share { height:48px; border-radius:12px; font-size:11px; font-weight:600; letter-spacing:.3px; gap:8px; }
.mh-share svg { width:18px !important; height:18px !important; }
.mh-share.mh-primary, .mh-reel { color:#fff !important; }
.mh-sec { margin:20px 4px 6px; font-size:13px; font-weight:600; line-height:18px; color:var(--text-2); }
.mh-sec span { font-weight:600; color:var(--text-3); margin-left:6px; }
.hl-grid { gap:4px; margin:0 -4px; }
.hl-tile { border-radius:10px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.06); }
.hl-tile::after { background:linear-gradient(to top, rgba(0,0,0,.6), transparent 30%); }
.hl-tile .hl-play { display:none; }
.hl-tile .hl-dur { left:7px; bottom:6px; font-size:12px; font-weight:700; line-height:16px; }
.hl-tags { right:7px; bottom:6px; gap:2px; font-size:11px; font-weight:700; }
.hl-tags svg { width:14px; height:14px; }
.mh-chip { padding:6px 14px; font-size:13px; }
.mh-fline { font-size:13px; }
.mh-teams { row-gap:0 !important; margin-top:19px; }

/* ==== Match sheet (MatchEventsSection + its sheets), the app's sizes ==== */
.mh-info { margin-left:auto; flex:none; }
.mh-info svg { width:24px; height:24px; }
.mh-goals { grid-column:1 / -1; display:grid; grid-template-columns:1fr 56px 1fr; margin-top:10px; font-size:11px; font-weight:500; letter-spacing:.5px; line-height:14px; color:rgba(255,255,255,.7); text-align:center; }
.mh-goals .mh-gcol:last-child { grid-column:3; }
.mh-goals .mh-gcol div { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ms-sheet { background:#000; }
.ms-sheet .sheet-h { background:#000; padding:16px 20px 6px; }
.ms-sheet .sheet-h h2 { font-size:17px; font-weight:600; line-height:23px; }
.ms-sheet .sheet-body { padding:6px 20px 28px; }
.ms-muted { color:var(--text-3); }
.ms-sheet .ms-cap { font-size:11px; font-weight:500; letter-spacing:.5px; line-height:14px; }
.ms-sheet .body { font-size:13px; line-height:18px; }
.ms-sheet .green { color:var(--green); }
.ms-lead { margin-bottom:14px; }
.ms-gap { height:14px; }
.ms-h { display:flex; align-items:center; margin:8px 0 6px; }
.ms-h h3, .ms-lineup h3 { flex:1; margin:0; font-size:17px; font-weight:600; line-height:23px; color:#fff; }
.ms-ib { flex:none; width:32px; height:32px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:var(--surface); color:var(--green); }
.ms-ib svg { width:16px; height:16px; }
.ms-ib.sm { width:26px; height:26px; }
.ms-ib.sm svg { width:13px; height:13px; }
.ms-ib.alt { width:28px; height:28px; background:#2C2C2E; }
.ms-ib.alt svg { width:16px; height:16px; }
.ms-ib.ok { width:30px; height:30px; background:rgba(48,209,88,.18); margin-left:6px; }
.ms-ib.bin { width:30px; height:30px; background:none; color:var(--text-3); }
.ms-score { display:flex; align-items:center; gap:12px; }
.ms-rows { flex:1; display:flex; flex-direction:column; gap:6px; }
.ms-srow { display:flex; align-items:center; gap:8px; font-size:15px; line-height:22px; }
.ms-srow .ms-sn { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ms-srow .ms-sc { font-size:15px; font-weight:700; }
.ms-srow.win { font-weight:700; }
.ms-crest { width:22px !important; height:22px !important; font-size:10px !important; flex:none; }
.ms-result { margin-top:4px; font-size:11px; font-weight:500; letter-spacing:.5px; color:var(--green); }
.ms-lineup { margin-bottom:14px; }
.ms-side { background:var(--surface); border-radius:8px; padding:6px 0; margin-top:8px; }
.ms-side + .ms-side { margin-top:10px; }
.ms-side-h { display:flex; align-items:center; gap:8px; padding:6px 12px; }
.ms-side-h .t { flex:1; min-width:0; font-size:11px; font-weight:600; letter-spacing:.3px; color:var(--text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ms-side-h .n { font-size:11px; font-weight:500; color:var(--text-3); }
.ms-pad { padding:6px 12px; }
.ms-lrow { display:flex; align-items:center; gap:10px; width:100%; padding:7px 12px; text-align:left; color:var(--text); }
.ms-num { min-width:30px; padding:2px 6px; border-radius:6px; background:rgba(48,209,88,.15); color:var(--green); font-size:13px; font-weight:700; text-align:center; }
.ms-ln { flex:1; min-width:0; font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ms-evs { display:flex; flex-direction:column; }
.ms-ev { display:flex; align-items:center; gap:10px; margin:3px 0; padding:10px 12px; border-radius:10px; background:var(--surface); border:0; }
.ms-ev[hidden] { display:none; }
.ms-ev.claim { background:rgba(28,28,30,.55); }
.ms-ev.tap { cursor:pointer; }
.ms-evic { width:20px; height:20px; flex:none; color:var(--green); }
.ms-ev.claim .ms-evic { color:var(--text-3); }
.ms-evic svg { width:20px; height:20px; }
.ms-evb { flex:1; min-width:0; }
.ms-ev1, .ms-ev2 { display:flex; align-items:center; gap:6px; min-width:0; white-space:nowrap; overflow:hidden; }
.ms-ev1 .t { font-size:15px; font-weight:600; line-height:22px; }
.ms-ev.claim .ms-ev1 .t { font-weight:400; color:var(--text-2); }
.ms-tier { display:inline-flex; align-items:center; gap:3px; }
.ms-tier svg { width:12px; height:12px; }
.ms-ava { flex:none; border-radius:50%; overflow:hidden; background:#2C2C2E; color:var(--text-2); display:inline-flex; align-items:center; justify-content:center; font-weight:600; }
.ms-ava img { width:100%; height:100%; object-fit:cover; }
.ms-del { display:inline-block; margin:24px 0 0 -8px; padding:8px; border-radius:8px; font-size:13px; color:#E05A5A; }
.ms-red { color:#E05A5A !important; }
.ms-field { display:block; margin-bottom:10px; }
.ms-field > span { display:block; margin:0 0 4px 2px; font-size:13px; color:var(--text-2); }
.ms-field input { width:100%; height:56px; padding:0 16px; border:1px solid var(--border); border-radius:12px; background:transparent; color:var(--text); font:inherit; font-size:15px; }
.ms-field input:focus { outline:none; border-color:var(--green); }
.ms-lbl { margin:4px 0 6px; font-size:13px; color:var(--text-2); }
.ms-scorein { display:flex; align-items:flex-end; gap:8px; }
.ms-scorein .ms-field { flex:1; min-width:0; }
.ms-scorein .ms-field > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ms-dash { padding:0 0 26px; font-size:17px; color:var(--text-3); }
.ms-wide { width:100%; margin-top:16px; }
.ms-types { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; margin-bottom:8px; }
.ms-type { display:flex; align-items:center; gap:6px; padding:10px 8px; border-radius:10px; background:var(--surface); color:var(--text-2); font-size:11px; font-weight:500; letter-spacing:.5px; text-align:left; }
.ms-type svg { width:16px; height:16px; flex:none; color:var(--text-3); }
.ms-type.on { background:rgba(48,209,88,.16); color:var(--green); font-weight:700; }
.ms-type.on svg { color:var(--green); }
.ms-teams { display:flex; gap:8px; margin-bottom:12px; }
.ms-team { flex:1; min-width:0; display:flex; align-items:center; gap:8px; padding:10px; border-radius:10px; background:var(--surface); color:var(--text); font-size:13px; text-align:left; }
.ms-team span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ms-team.on { background:rgba(48,209,88,.16); color:var(--green); font-weight:700; }
.ms-chips { display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; margin:-2px 0 10px; }
.ms-chips:empty { display:none; }
.ms-pchip { flex:none; display:flex; align-items:center; gap:6px; padding:4px 12px 4px 4px; border-radius:999px; background:var(--surface); color:var(--text); font-size:11px; font-weight:500; }
.ms-check { display:flex; align-items:center; gap:10px; width:100%; padding:6px 0; font-size:13px; color:var(--text-2); }
.ms-check .box { width:20px; height:20px; border-radius:4px; background:var(--surface); flex:none; display:inline-flex; align-items:center; justify-content:center; }
.ms-check.on .box { background:var(--green); }
.ms-check.on .box::after { content:""; width:6px; height:11px; margin-top:-3px; border:solid #000; border-width:0 2px 2px 0; transform:rotate(45deg); }
.ms-err { font-size:13px; color:#FF453A; margin-top:8px; }
.ms-err:empty { display:none; }
.ms-alist { display:flex; flex-direction:column; }
.ms-arow { display:flex; align-items:center; gap:10px; margin:3px 0; padding:10px 12px; border-radius:10px; background:var(--surface); color:var(--text); font-size:15px; text-align:left; }
.ms-arow.use { background:rgba(48,209,88,.16); color:var(--green); }
.ms-arow svg { width:20px; height:20px; }
.ms-arow i { font-style:normal; margin-left:6px; }
.ms-lacts .ms-wide { margin-top:8px; }

/* ==== Highlight player (ViewerChrome), measured against the app ==== */
.reel-page::before, .reel-page::after { content:""; position:absolute; left:0; right:0; z-index:2; pointer-events:none; }
.reel-page::before { top:0; height:110px; background:linear-gradient(rgba(0,0,0,.65), transparent); }
.reel-page::after { bottom:0; height:230px; background:linear-gradient(transparent, rgba(0,0,0,.75)); }
.reel-segs { left:12px; right:12px; top:10px; gap:3px; }
.reel-segs[hidden] { display:none; }
.reel-segs span { height:3px; border-radius:999px; background:rgba(255,255,255,.3); }
.reel-bar { top:23px !important; padding:0 12px !important; gap:10px; }
.reel-bar .fm-btn { width:40px; height:40px; background:rgba(0,0,0,.4) !important; backdrop-filter:none; -webkit-backdrop-filter:none; }
.reel-bar .fm-btn svg { width:20px; height:20px; }
.reel-side { right:8px; bottom:50px; gap:14px; }
.reel-act { padding:2px 4px; font-size:10px; color:rgba(255,255,255,.9); line-height:13px; }
.reel-act svg { box-sizing:content-box; width:22px; height:22px; padding:11px; border-radius:50%; background:rgba(0,0,0,.4); filter:none; }
.reel-info { left:12px; right:76px; bottom:50px; gap:0; text-shadow:none; }
.reel-info .reel-rx { margin-bottom:10px; }
.reel-info .rx-row { gap:6px; flex-wrap:nowrap; }
.reel-info .rx { padding:4px 9px; font-size:16px; line-height:20px; border-radius:999px; background:rgba(0,0,0,.4); border:1px solid rgba(255,255,255,.18); }
.reel-info .rx.on { background:rgba(48,209,88,.28); border-color:var(--green); }
.reel-info .rx b { margin-left:4px; font-size:12px; font-weight:600; }
.reel-t { font-size:11px; font-weight:600; letter-spacing:.3px; line-height:14px; }
.reel-at, .reel-desc { font-size:11px; font-weight:500; letter-spacing:.5px; line-height:14px; color:rgba(255,255,255,.8); }
.reel-desc { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.reel-clock { position:absolute; left:0; bottom:-22px; margin:0; font-size:11px; font-weight:500; letter-spacing:.5px; line-height:14px; color:rgba(255,255,255,.7); }
.reel-line { left:12px; right:12px; bottom:12.5px; height:3px; border-radius:999px; background:rgba(255,255,255,.28); }
.reel-more { position:absolute; inset:0; z-index:20; background:rgba(0,0,0,.5); display:flex; align-items:flex-end; justify-content:center; }
.reel-more-box { width:100%; max-width:440px; padding:8px 0; border-radius:20px 20px 0 0; background:#2C2C2E; }
.reel-more-row { display:flex; align-items:center; gap:16px; width:100%; padding:14px 20px; color:var(--text); font-size:15px; line-height:22px; text-align:left; }
.reel-more-row svg { width:22px; height:22px; }
.reel-more-note { padding:10px 20px; font-size:11px; font-weight:500; letter-spacing:.5px; color:var(--text-3); }
.reel-clock.mono { font-family:inherit !important; }
.reel-act span { font-weight:400 !important; line-height:24px; }
.reel-act { gap:3px !important; }

/* ==== Manage (ManageTournamentScreen, TeamsTab, FixturesTab), the app's sizes ==== */
.mg-more { width:48px; height:48px; margin-right:-12px; }
.mg-more svg { width:24px; height:24px; }
.mg-pills { gap:8px; margin:4px 0 0; padding:4px 0; }
.mg-pill { height:auto; padding:10px 0; border-radius:12px; background:var(--surface); font-weight:600; letter-spacing:.3px; line-height:14px; }
.mg-pill[aria-selected="true"] { background:rgba(48,209,88,.15); }
/* Teams */
.mg-h { margin:12px 0; }

.mg-count { padding:6px 10px; background:#2C2C2E; font-size:11px; font-weight:600; letter-spacing:.5px; line-height:14px; }
.mg-none { font-size:13px; margin:0 0 12px; }

.mg-lock { gap:8px; padding:10px 12px; border-radius:12px; background:rgba(10,132,255,.15); margin:8px 0; }
.mg-lock > svg { width:18px; height:18px; }
.mg-lock b { font-size:13px; font-weight:400; line-height:18px; }
.mg-lock-a { margin-top:4px; font-size:13px; font-weight:600; line-height:18px; }
.mg-teams { gap:8px; margin-top:8px; }
.mg-team { gap:0; padding:12px; border-radius:20px; background:var(--surface); box-shadow:0 2px 4px rgba(0,0,0,.35); }
.mg-grip { width:36px; height:36px; align-items:center; justify-content:center; gap:3px; }
.mg-grip i { width:16px; height:2px; background:var(--text-3); opacity:.4; }
.mg-seed { width:18px; margin:0 4px; text-align:left; font-size:11px; font-weight:500; letter-spacing:.5px; color:var(--text-3); }
.mg-crest { width:28px !important; height:28px !important; font-size:12px !important; margin-right:10px; }
.mg-nm { font-size:15px; font-weight:600; line-height:22px; }
.mg-ic { width:36px; height:36px; margin-left:4px; color:var(--text-3); }
.mg-ic svg { width:20px; height:20px; }
.mg-add { height:48px; border-radius:12px; margin-top:16px; font-size:11px; font-weight:600; letter-spacing:.3px; color:#fff !important; }
/* Fixtures */
.mg-band { margin:4px -16px 4px; padding:10px 16px; background:#2C2C2E; font-size:11px; font-weight:600; letter-spacing:.3px; line-height:14px; }
.mg-fx-list { gap:8px; margin-bottom:8px; }
.mg-fx-list .fx-edit { border-radius:20px; background:var(--surface); }
.mg-fx { gap:12px; padding:12px; }
.mg-fx-sides { gap:8px; }
.mg-fx-team { gap:10px; font-size:15px; line-height:22px; }
.mg-fx-team .crest { width:22px; height:22px; font-size:10px; }
.mg-fx-team .sc { min-width:24px; font-size:17px; font-weight:500; line-height:23px; }
.mg-fx-team.win .n, .mg-fx-team.win .sc { font-weight:700; }
.mg-st { padding:4px 10px; border-radius:12px; font-size:11px; font-weight:600; letter-spacing:.5px; line-height:14px; background:#2C2C2E; color:var(--text-3); }
.mg-st.completed { background:rgba(48,209,88,.15); color:var(--green); }

/* ==== Manage → Settings (SettingsTabContent, OrganizersSection, TrophySlotCard), the app's sizes ==== */
.mg-pill { font-size:11px !important; }
.mg-h h2 { font-size:17px; font-weight:600; line-height:23px; }
.mg-teams-h h2, .mg-h.mg-teams-h h2 { font-size:19px; font-weight:700; }
.mg-sub { margin:18px 4px 6px; font-size:13px; font-weight:600; color:var(--text-2); }
.mg-switch { gap:12px; padding:12px 14px; border-radius:20px; background:var(--surface); margin:6px 0; }
.mg-switch b { font-size:15px; font-weight:400; line-height:22px; }
.mg-switch > span > span { font-size:13px; line-height:18px; }
.mg-switch i { width:52px; height:32px; border-radius:16px; }
.mg-switch i::after { left:8px; top:8px; width:16px; height:16px; }
.mg-switch input:checked + i { background:rgba(48,209,88,.4); }
.mg-switch input:checked + i::after { left:24px; top:4px; width:24px; height:24px; }
.mg-round { width:32px; height:32px; background:var(--surface); }
.mg-round svg { width:18px; height:18px; }
.mg-orgs { gap:0; margin:8px 0; }
.mg-org { gap:10px; margin:4px 0; padding:8px 12px; border-radius:10px; background:var(--surface); }
.mg-org-ava { width:28px; height:28px; background:rgba(48,209,88,.18); font-size:13px; }
.mg-org-nm { font-size:15px; line-height:22px; }
.mg-org-role { font-size:11px; font-weight:500; letter-spacing:.5px; }
.mg-org-x { flex:none; width:24px; height:24px; margin-left:-4px; display:inline-flex; align-items:center; justify-content:center; color:var(--text-3); }
.mg-org-x svg { width:14px; height:14px; }
.mg-h-sm span { font-size:13px; }
.mg-link { font-size:13px; }
.mg-slot2 { display:flex; align-items:center; gap:12px; padding:12px; margin-bottom:8px; border-radius:20px; background:var(--surface); box-shadow:0 4px 8px rgba(0,0,0,.35); }
.mg-slot-art { flex:none; width:48px; height:48px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; }
.mg-slot-art img { width:32px; height:32px; object-fit:contain; }
.mg-slot-b { flex:1; min-width:0; }
.mg-slot-n { display:flex; align-items:center; gap:6px; }
.mg-slot-n b { font-size:17px; font-weight:600; line-height:23px; }
.mg-slot-g { font-size:13px; line-height:18px; color:var(--green); }
.mg-slot-d { font-size:13px; line-height:18px; color:var(--text-2); }
.mg-slot-l { font-size:11px; font-weight:500; letter-spacing:.5px; color:#FF9F0A; }
.mg-slot-aw { flex:none; padding:0 16px; margin:0; }
.mg-slot-x { width:32px; height:32px; margin-left:-8px; }
.mg-slot-x svg { width:16px; height:16px; }
.mg-trophy-empty { gap:8px; padding:24px; border-radius:20px; font-size:15px; }
.mg-trophy-empty .btn-green { padding:0 24px; height:48px; border-radius:12px; font-size:11px; font-weight:600; letter-spacing:.3px; color:#fff; }
.mg-wide { height:48px; border-radius:12px; margin:8px 0; font-size:11px; font-weight:600; letter-spacing:.3px; }
.mg-sugg-h b { font-size:17px; font-weight:600; }
.mg-sugg-h span, .mg-sugg-r span { font-size:13px; }
.mg-sugg-r b { font-size:15px; font-weight:400; }
.mg-given, .mg-you { font-size:13px; }
.mg-danger-t { font-size:17px !important; }

/* ==== Edit profile + Account (EditProfileScreen, SettingsScreen's Account), the app's sizes ==== */
.ep-top { display:flex; flex-direction:column; align-items:center; padding:8px 0 0; }
.ep-photo2 { width:76px; height:76px; border-radius:50%; overflow:hidden; background:#2C2C2E; color:var(--text-2); font-size:28px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.ep-photo2 img { width:100%; height:100%; object-fit:cover; }
.ep-chg { padding:8px 12px; font-size:13px; font-weight:600; line-height:18px; color:var(--green); }
.ep-list { margin:0 -16px; }
.ep-row { display:flex; align-items:center; width:100%; padding:15px 20px; border-top:.5px solid var(--border); text-align:left; }
.ep-row:last-child { border-bottom:.5px solid var(--border); }
.ep-l { flex:none; font-size:15px; line-height:22px; color:var(--text-2); }
.ep-v { flex:1; min-width:0; margin-left:16px; text-align:right; font-size:15px; line-height:22px; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ep-v.add { color:var(--green); }
.ep-v .flag { width:20px; height:14px; vertical-align:-1px; border-radius:2px; }
.ep-ch { flex:none; width:18px; height:18px; margin-left:4px; color:var(--text-3); }
.ep-ch svg { width:18px; height:18px; display:block; }
.ep-sheet { background:#000; }
.ep-sheet .sheet-h { background:#000; padding:16px 20px 4px; }
.ep-sheet .sheet-h h2 { font-size:17px; font-weight:600; }
.ep-sheet .sheet-body { padding:0 20px 24px; }
.ep-hint { font-size:11px; font-weight:500; letter-spacing:.5px; line-height:14px; color:var(--text-3); margin-bottom:12px; }
.ep-pos { display:grid; grid-template-columns:1fr 1fr; gap:6px 8px; }
.ep-chip { height:32px; padding:0 16px; border:1px solid var(--border); border-radius:8px; text-align:left; font-size:14px; font-weight:500; color:var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ep-chip.on { background:rgba(48,209,88,.15); border-color:transparent; color:var(--green); }
.ep-save { width:100%; margin-top:16px; }
.ep-search { width:100%; height:56px; padding:0 16px; margin-bottom:8px; border:1px solid var(--border); border-radius:12px; background:transparent; color:var(--text); font:inherit; font-size:15px; }
.ep-search:focus { outline:none; border-color:var(--green); }
.ep-countries { max-height:400px; overflow-y:auto; }
.ep-country { display:flex; align-items:center; gap:12px; width:100%; padding:12px 4px; text-align:left; font-size:15px; color:var(--text); }
.ep-country img { width:24px; height:17px; border-radius:2px; object-fit:cover; }
.ep-country span { flex:1; }
.ep-country.on { color:var(--green); font-weight:700; }
.ep-country svg { width:20px; height:20px; }
.ep-sug { display:flex; flex-direction:column; margin-top:4px; }
.ep-sug-r { padding:10px 4px; text-align:left; font-size:15px; color:var(--text); }
.ae-dlg-back { position:fixed; inset:0; z-index:120; background:rgba(0,0,0,.6); display:flex; align-items:center; justify-content:center; padding:24px; }
.ae-dlg { width:100%; max-width:360px; padding:24px 24px 18px; border-radius:28px; background:var(--surface); }
.ae-dlg h3 { margin:0 0 16px; font-size:17px; font-weight:600; line-height:23px; }
.ae-dlg-a { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; }
.ae-dlg-btn { height:40px; padding:0 12px; border-radius:20px; font-size:14px; font-weight:500; }
.ae-dlg-btn.green { color:var(--green); }
.ae-dlg-btn.muted { color:var(--text-3); }
.ae-dlg-btn:disabled { opacity:.5; }
.ae-p { margin:0 0 12px; font-size:13px; line-height:18px; color:var(--text-2); }
.ae-of { position:relative; display:block; margin-top:8px; }
.ae-of input, .ae-of textarea { width:100%; min-height:56px; padding:16px; border:1px solid var(--border); border-radius:12px; background:transparent; color:var(--text); font:inherit; font-size:15px; resize:none; }
.ae-of textarea { min-height:96px; }
.ae-of input:focus, .ae-of textarea:focus { outline:none; border-color:var(--green); }
.ae-of > span { position:absolute; left:12px; top:-8px; padding:0 4px; background:var(--surface); font-size:12px; color:var(--text-3); }
.ae-of.bare > span { display:none; }
.ae-of input:focus + span, .ae-of textarea:focus + span { color:var(--green); }
.ae-under { margin-top:6px; font-size:11px; font-weight:500; letter-spacing:.5px; line-height:14px; color:var(--text-3); }
.ae-under:empty { display:none; }
.ae-under.bad { color:#FF453A; }
.ac-card { border-radius:20px; background:var(--surface); box-shadow:0 2px 4px rgba(0,0,0,.35); overflow:hidden; }
.ac-row { display:flex; align-items:center; gap:14px; width:100%; padding:14px 16px; text-align:left; color:var(--text); }
.ac-ic { flex:none; width:20px; height:20px; color:var(--text-3); }
.ac-ic.accent, .ac-l.accent, .ac-tr.accent { color:#FF9F0A; }
.ac-ic svg, .ac-tr svg { width:20px; height:20px; display:block; }
.ac-b { flex:1; min-width:0; display:flex; flex-direction:column; }
.ac-l { font-size:15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ac-s { font-size:11px; font-weight:500; letter-spacing:.5px; line-height:14px; color:var(--text-3); }
.ac-tr { flex:none; color:var(--text-3); }
.ac-ok svg { width:16px; height:16px; color:var(--green); }
.ac-div { height:.5px; margin-left:50px; background:var(--border); }
.ep-l, .ep-v { line-height:19px; } .ep-list { margin-top:9px; }
.ac-l { line-height:19px; } 
.ac-card { margin-top:8px; }
.ep-pos { row-gap:22px; padding:8px 0; }

/* ==== Sign in / Create account (AuthScreen), the app's sizes ==== */
body.auth-full .topbar { display:none; }
body.auth-full .wrap { padding:0; max-width:none; }
.au { max-width:520px; margin:0 auto; }
.au-hero { position:relative; height:200px; overflow:hidden; background:var(--surface); }
.au-hero img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.au-hero > i { position:absolute; inset:0; background:linear-gradient(transparent 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.6) 70%, #000 100%); }
.au-hero-t { position:absolute; left:24px; right:24px; bottom:12px; }
.au-word { font-family:Outfit, var(--font, system-ui); font-size:36px; font-weight:700; letter-spacing:-.02em; line-height:44px; color:#fff; }
.au-word span { color:var(--green); }
.au-tag { margin-top:4px; font-size:15px; line-height:22px; color:var(--text-2); }
.au-body { padding:20px 24px 32px; }
.au-toggle { position:relative; display:flex; height:42px; padding:3px; border-radius:999px; background:var(--surface); }
.au-toggle > i { position:absolute; left:3px; top:3px; bottom:3px; width:calc(50% - 3px); border-radius:999px; background:var(--green); transition:transform .24s; }
.au-toggle.right > i { transform:translateX(100%); }
.au-toggle button { position:relative; flex:1; border-radius:999px; font-size:13px; font-weight:500; color:var(--text-2); }
.au-toggle button.on { font-weight:600; color:#000; }
.au-fields { margin-top:18px; }
.au-form { display:flex; flex-direction:column; }
.au-f { margin:8px 0 12px; }  /* 8: the space an OutlinedTextField keeps above its box for the floating label */
.au-f[hidden], .au-org[hidden], .au-knote[hidden] { display:none; }
.au-box { position:relative; display:flex; align-items:center; width:100%; min-height:56px; padding:0 12px; border:1px solid var(--border); border-radius:12px; background:transparent; color:var(--text); text-align:left; cursor:text; }
button.au-box { cursor:pointer; }
.au-box:focus-within { border-width:2px; border-color:var(--green); padding:0 11px; }
.au-box.bad { border-color:#FF453A; }
.au-ic { flex:none; width:24px; height:24px; margin-right:12px; color:var(--text-3); }
.au-ic svg, .au-st svg, .au-eye svg { width:24px; height:24px; display:block; }
.au-box input, .au-val { flex:1; min-width:0; height:54px; padding:18px 0 0; border:0; outline:0; background:transparent; color:var(--text); font:inherit; font-size:15px; }
.au-val { display:flex; align-items:center; gap:8px; padding-top:16px; }
.au-val img { width:22px; height:16px; border-radius:2px; object-fit:cover; }
.au-box input[type="date"] { color-scheme:dark; }
.au-lab { position:absolute; left:48px; top:50%; transform:translateY(-50%); font-size:15px; color:var(--text-3); pointer-events:none; transition:top .15s, font-size .15s; }
.au-box:focus-within .au-lab, .au-box input:not(:placeholder-shown) ~ .au-lab, .au-box.has .au-lab { top:16px; font-size:12px; }
.au-box:not(.has):not(:focus-within) input[type="date"] { color:transparent; }
.au-box:not(.has):not(:focus-within) input[type="date"]::-webkit-calendar-picker-indicator { opacity:0; }
.au-box:not(.has):not(:focus-within) input[type="date"] ~ .au-lab { top:50%; font-size:15px; }
.au-box:focus-within .au-lab { color:var(--green); }
.au-box.bad .au-lab { color:#FF453A; }
.au-st { flex:none; display:flex; margin-left:8px; }
.au-st.ok { color:var(--green); }
.au-st.bad { color:#FF453A; }
.au-st svg { width:20px; height:20px; }
.au-eye { flex:none; margin-left:8px; color:var(--text-3); }
.au-under { margin-top:4px; padding:0 4px; font-size:13px; line-height:18px; color:var(--text-2); }
.au-under:empty { display:none; }
.au-under.bad { color:#FF453A; }
.au-under.ok { color:var(--green); }
.au-forgot-row { display:flex; justify-content:flex-end; margin:-8px 0 0; }
.au-link { padding:12px 8px; font-size:13px; line-height:18px; color:var(--green); }
.au-stay { display:flex; align-items:center; gap:12px; height:48px; font-size:13px; color:var(--text); cursor:pointer; }
.au-stay input { display:none; }
.au-cb { width:18px; height:18px; margin-left:15px; border:2px solid var(--text-2); border-radius:2px; display:inline-flex; align-items:center; justify-content:center; }
.au-stay input:checked + .au-cb { background:var(--green); border-color:var(--green); }
.au-stay input:checked + .au-cb::after { content:""; width:5px; height:10px; margin-top:-2px; border:solid #000; border-width:0 2px 2px 0; transform:rotate(45deg); }
.au-msg { margin:0 0 8px; font-size:13px; line-height:18px; color:#FF453A; }
.au-msg:empty { display:none; }
.au-msg.info { color:var(--green); }
.au-cta { height:56px; margin-top:8px; border-radius:12px; background:var(--green); color:#000; font-size:17px; font-weight:600; display:flex; align-items:center; justify-content:center; }
.au-cta:disabled { opacity:.7; }
.au-spin { display:inline-block; width:20px; height:20px; border:2px solid var(--text-3); border-top-color:transparent; border-radius:50%; animation:au-spin .8s linear infinite; }
.au-spin.dark { width:24px; height:24px; border-width:2.5px; border-color:#000; border-top-color:transparent; }
@keyframes au-spin { to { transform:rotate(360deg); } }
.au-or { display:flex; align-items:center; margin:16px 0; font-size:13px; color:var(--text-3); }
.au-or i { flex:1; height:1px; background:var(--border); }
.au-or span { padding:0 8px; }
.au-google { display:flex; align-items:center; justify-content:center; gap:12px; width:100%; height:56px; border:1px solid var(--border); border-radius:12px; background:var(--surface); color:var(--text); font-size:17px; font-weight:600; }
.au-google svg { width:20px; height:20px; }
.au-foot { display:flex; align-items:center; justify-content:center; margin-top:12px; font-size:13px; color:var(--text-3); }
.au-kinds { margin-bottom:16px; }
.au-kq { margin-bottom:8px; font-size:13px; color:var(--text-2); }
.au-krow { display:flex; gap:10px; }
.au-kind { flex:1; min-width:0; display:grid; grid-template-columns:20px 1fr; align-items:center; align-content:start; column-gap:8px; row-gap:4px; padding:12px; border:1px solid var(--border); border-radius:14px; background:var(--surface); text-align:left; color:var(--text); }
.au-kind > span:last-child { grid-column:1 / -1; }
.au-kind.on { border:2px solid var(--green); padding:11px; background:rgba(48,209,88,.08); }
.au-kic { width:20px; height:20px; color:var(--text-2); }
.au-kind.on .au-kic { color:var(--green); }
.au-kic svg { width:20px; height:20px; display:block; }
.au-kind b { font-size:15px; font-weight:600; }
.au-kind > span:last-child { font-size:11px; font-weight:500; letter-spacing:.5px; line-height:14px; color:var(--text-3); }
.au-knote { margin:6px 0 12px; font-size:11px; font-weight:500; letter-spacing:.5px; line-height:14px; color:var(--text-3); }
.au-meter { display:flex; align-items:center; gap:4px; margin:-4px 0 12px; }
.au-meter i { flex:1; height:4px; border-radius:2px; background:var(--border); transition:background .2s; }
.au-meter span { min-width:44px; margin-left:8px; font-size:11px; font-weight:500; color:var(--text-3); }
.au-meter.s1 i:nth-child(1) { background:#FF453A; }
.au-meter.s2 i:nth-child(-n+2) { background:#FF9F0A; }
.au-meter.s3 i { background:var(--green); }
.au-sent { display:flex; flex-direction:column; gap:6px; padding:24px 4px; text-align:center; }
.au-sent b { font-size:17px; font-weight:600; }
.au-sent span { font-size:15px; line-height:22px; color:var(--text-2); }

/* ==== Final score (FinalizeMatchSheet) ==== */
.ms-final { width:100%; margin-top:10px; }
.ms-fin .sheet-h h2 { font-size:20px; font-weight:700; }
.ms-fin-note, .ms-fin-q { font-size:12px; color:rgba(255,255,255,.55); }
.ms-fin-note { margin-top:-2px; }
.ms-fin-q { margin:14px 0 6px; }
.ms-fin-names { display:flex; gap:10px; }
.ms-fin-names input { flex:1; min-width:0; height:56px; padding:0 16px; border:1px solid var(--border); border-radius:12px; background:transparent; color:var(--text); font:inherit; font-size:15px; }
.ms-fin-names input:focus { outline:none; border-color:var(--green); }
.ms-fin-row { display:flex; align-items:center; justify-content:center; gap:8px; margin:20px 0 4px; }
.ms-fin-dash { font-size:32px; color:rgba(255,255,255,.5); }
.ms-step { display:flex; flex-direction:column; align-items:center; min-width:0; }
.ms-step-l { max-width:140px; font-size:11px; font-weight:600; color:rgba(255,255,255,.55); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ms-step-r { display:flex; align-items:center; gap:12px; margin-top:8px; }
.ms-step-r b { min-width:30px; text-align:center; font-size:48px; font-weight:700; line-height:56px; }
.ms-step-b { width:40px; height:40px; border-radius:50%; background:rgba(255,255,255,.1); color:#fff; font-size:22px; line-height:1; }

/* ==== AppButton everywhere: the app's primary (green, white label) and outline buttons ==== */
.btn-green:not(.rl-primary):not(.ae-signin), .btn-line:not(.rl-btn) { min-height:48px; padding:0 24px; border-radius:12px; font-size:11px; font-weight:600; letter-spacing:.3px; line-height:14px; gap:8px; }
.btn-green:not(.rl-primary):not(.ae-signin) { color:#fff; }
.btn-line:not(.rl-btn) { background:transparent; border:1.5px solid var(--border); color:var(--text); }
.btn-green:not(.rl-primary):not(.ae-signin) svg, .btn-line:not(.rl-btn) svg { width:18px; height:18px; flex:none; }

/* ==== Create tournament (TournamentCreateWizard), measured against the app ==== */
.wz-head { margin:11px 0 10px; }
.wz-head h1 { font-size:22px; font-weight:700; line-height:28px; }
.wz-head .td-back { width:48px; height:48px; margin-left:-12px; }
.wz-head .muted, .wz-step { font-size:11px; font-weight:500; letter-spacing:.5px; color:var(--text-3); }
.wz-bar { gap:6px; margin:0 0 20px; }
.wz-type { margin:0 0 12px; padding:12px 15px; border-radius:20px; }
.wz-type .nm { font-size:17px; font-weight:600; line-height:22px; }
.wz-type .sub, .wz-type .muted { font-size:13px; line-height:16px; }
.wz-body { padding-bottom:132px; }
.wz-foot { position:fixed; left:16px; right:16px; z-index:25; max-width:640px; margin:0 auto; padding-top:8px; background:#000; }
.wz-hint { min-height:0; margin-bottom:6px; font-size:13px; }
.wz-hint:empty { display:none; }
.wz-cta { height:48px; }
.wz-head { gap:0; margin-top:8px; }
.wz-type { margin-bottom:15px; }
.wz-lead { margin-bottom:24px !important; }

/* ==== Visibility and joining (JoinSettingsSelector) ==== */
.js-sel { display:flex; flex-direction:column; gap:8px; }
.js-list { display:flex; align-items:center; gap:12px; width:100%; padding:10px 12px; border-radius:12px; background:var(--surface); color:var(--text); text-align:left; }
.js-ic { flex:none; width:22px; height:22px; color:var(--text-2); }
.js-list.on .js-ic, .js-opt.on .js-ic { color:var(--green); }
.js-ic svg, .js-ok svg { width:100%; height:100%; display:block; }
.js-b { flex:1; min-width:0; display:flex; flex-direction:column; }
.js-b b { font-size:15px; font-weight:700; line-height:22px; }
.js-b > span { font-size:11px; font-weight:500; letter-spacing:.5px; line-height:14px; color:var(--text-2); }
.js-sw { position:relative; flex:none; width:52px; height:32px; margin-left:8px; border-radius:16px; background:#3A3A3C; border:2px solid #8E8E93; transition:background .2s; }
.js-sw::after { content:""; position:absolute; left:6px; top:6px; width:16px; height:16px; border-radius:50%; background:#8E8E93; transition:all .2s; }
.js-list.on .js-sw { background:var(--green); border-color:var(--green); }
.js-list.on .js-sw::after { left:22px; top:2px; width:24px; height:24px; background:#fff; }
.js-q { margin-top:6px; font-size:11px; font-weight:700; letter-spacing:.5px; color:var(--text-3); }
.js-opt { display:flex; align-items:center; gap:12px; width:100%; padding:12px; border:1px solid transparent; border-radius:12px; background:var(--surface); color:var(--text); text-align:left; }
.js-opt.on { background:rgba(48,209,88,.12); border-color:var(--green); }
.js-ok { flex:none; width:20px; height:20px; margin-left:8px; color:var(--green); }
.js-sub { display:flex; flex-direction:column; gap:8px; padding-left:20px; }
/* The wizard's field labels: the app's label style (11 sp, semibold) */
.wz-label { margin:16px 0 8px; font-size:11px; font-weight:600; letter-spacing:.3px; line-height:14px; }
.wz-label .muted { font-size:11px; font-weight:500; letter-spacing:.5px; }
.wz-label > .muted.body-sm { font-size:11px; line-height:14px; }
.wz-err { font-size:11px; font-weight:500; letter-spacing:.5px; }

.wz-foot { bottom:56px; padding-bottom:12px; }
.wz-count { font-size:11px !important; font-weight:500; letter-spacing:.5px; }
.wz-body .input.bad { border-color:#FF453A; }
/* Wizard steps 2-4: the app's spacing and its Format controls */

.wz-body .seg { padding:6px; border-radius:12px; background:var(--surface); }
.wz-body .seg-opt { min-height:44px; border-radius:10px; font-size:15px; }
.wz-body .seg-opt[aria-pressed="true"] { color:#000; font-weight:600; }
.wz-pts { margin:20px 0 0; font-size:13px; line-height:18px; color:var(--text-3); }
.wz-tog { display:inline-flex; align-items:center; min-height:48px; margin:6px 0 0; padding:0 12px; font-size:12px; font-weight:500; }
.wz-body .tb-list { gap:8px; }
.wz-body .tb-row { gap:10px; padding:10px 12px 10px 14px; border-radius:12px; background:var(--surface); }
.wz-body .tb-row .n { width:auto; height:auto; background:none; color:var(--green); font-size:12px; font-weight:700; }
.wz-body .tb-row > span:nth-child(2) > div:first-child { font-size:15px; line-height:19px; }
.wz-body .tb-row .muted.body-sm { font-size:11px; font-weight:500; letter-spacing:.5px; line-height:14px; }
.wz-body .tb-row .link-btn { font-size:12px; font-weight:500; padding:0 4px; white-space:nowrap; }
.wz-body > .wz-label:first-child { margin-top:16px; }

.wz-body .wz-pts.muted.body-sm { font-size:13px; line-height:18px; color:var(--text-3); margin-top:20px; }

.wz-body .tb-row .link-btn { margin-right:-6px; }
.wz-body > :first-child:not(.wz-lead):not(.wz-type) { margin-top:0; }

.wz-body:not(:has(.wz-type)) { padding-top:3px; }
.wz-tog { margin-top:15px; }
.wz-tog + .wz-label, .wz-tog ~ .wz-label { margin-top:28px; }
.wz-body .tb-row > span:nth-child(2) { flex:1; min-width:0; }
.wz-body .tb-row { padding-left:16px; }
.wz-body .tb-row .muted.body-sm { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* Review (StepReview) */
.wz-review { margin:0 0 12px; border-radius:20px; background:var(--surface); }
.wz-rv-t { align-items:center; font-size:11px; font-weight:600; letter-spacing:.3px; line-height:14px; }
.wz-rv-t .green { display:inline-flex; align-items:center; gap:4px; font-size:11px; font-weight:600; }
.wz-rv-t .green::before { content:""; width:16px; height:16px; background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.8 9.94l-3.75-3.75zM20.7 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.8 9.94l-3.75-3.75zM20.7 7.04a1 1 0 0 0 0-1.41l-2.34-2.34a1 1 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z'/%3E%3C/svg%3E") center/contain no-repeat; }
.wz-rv-b { font-size:15px; }
.wz-body:has(.wz-review) { padding-top:0; } .wz-review { padding:12px 13px; }
.wz-body .wz-review { padding:12px 13px !important; border-radius:20px !important; margin:0 0 12px !important; }
.wz-body .wz-review { border:0 !important; } .wz-rv-b { line-height:21px; } .wz-rv-t { margin-bottom:2px; }
/* New friendly match (MatchesScreen's sheet) */
.nm-sheet { background:#2C2C2E; }
.nm-sheet .sheet-h { background:#2C2C2E; padding:20px 20px 4px; }
.nm-sheet .sheet-h h2 { font-size:20px; font-weight:700; }
.nm-sheet .sheet-body { padding:10px 20px 28px; display:flex; flex-direction:column; gap:10px; }
.nm-row { display:flex; align-items:center; gap:12px; width:100%; padding:16px 14px; border-radius:12px; background:var(--surface); color:var(--text); font-size:16px; font-weight:600; text-align:left; }
.nm-row svg { width:20px; height:20px; color:var(--green); flex:none; }
.nm-row:disabled { opacity:.6; }

/* ==== New friendly match from a video (MatchStartScreen), the app's sizes ==== */
.up-head h1 { font-size:17px; font-weight:600; line-height:23px; }
.up-stage { padding:0 8px 24px; }
.up-pick { padding:28px 0 0; }
.up-pick-t { font-size:24px; font-weight:700; line-height:30px; }
.up-pick-s { margin:4px 0 22px; font-size:13px; line-height:18px; color:rgba(255,255,255,.6); }
.up-choose { width:100%; }
.up-msg { margin-top:12px; font-size:13px; line-height:18px; color:var(--text-2); }
.up-msg:empty { display:none; }
.up-msg.bad { color:#FF453A; }
.up-note { padding:12px 0; font-size:13px; color:var(--text-3); }
.up-form { display:flex; flex-direction:column; padding-top:20px; }
.up-form-t { font-size:24px; font-weight:700; line-height:30px; }
.up-form-s { margin:4px 0 22px; font-size:13px; line-height:18px; color:rgba(255,255,255,.6); }
.up-team { display:flex; align-items:center; gap:10px; }
.up-team + .up-team { margin-top:12px; }
.up-crest { flex:none; width:36px; height:36px; }
.up-crest-i { width:36px !important; height:36px !important; font-size:15px !important; }
.up-name, .up-score { height:56px; border:1px solid var(--border); border-radius:12px; background:transparent; color:var(--text); font:inherit; }
.up-name { flex:1; min-width:0; padding:0 16px; font-size:15px; }
.up-score { width:68px; flex:none; padding:0 8px; font-size:20px; font-weight:700; text-align:center; }
.up-name:focus, .up-score:focus { outline:none; border-color:var(--green); }
.up-go { width:100%; margin-top:28px; }
.up-skip { height:40px; margin-top:6px; font-size:14px; font-weight:500; color:var(--text-2); }
.up-status { display:flex; flex-direction:column; align-items:center; padding-top:28px; }
.up-line { display:flex; align-items:flex-start; justify-content:center; gap:6px; width:100%; margin-bottom:28px; }
.up-side { flex:1; display:flex; flex-direction:column; align-items:center; gap:10px; min-width:0; }
.up-side-c { width:52px !important; height:52px !important; font-size:22px !important; }
.up-side-n { font-size:15px; font-weight:600; text-align:center; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }
.up-vs { align-self:center; padding:0 12px; margin-bottom:28px; font-size:22px; color:var(--text-3); white-space:nowrap; }
.up-title { font-size:22px; font-weight:700; line-height:28px; text-align:center; }
.up-sub { margin-top:6px; font-size:13px; line-height:18px; color:rgba(255,255,255,.65); text-align:center; }
.up-bar { width:100%; height:6px; margin-top:22px; border-radius:3px; background:rgba(255,255,255,.12); overflow:hidden; }
.up-bar span { display:block; height:100%; width:0; background:var(--green); transition:width .3s; }
.up-bar.dim span { background:rgba(255,255,255,.4); }
.up-pct { margin-top:6px; font-size:13px; font-weight:600; }
.up-steps { align-self:stretch; margin-top:26px; }
.up-step-r { display:flex; align-items:center; gap:12px; padding:8px 0; }
.up-step-i { flex:none; width:26px; height:26px; display:inline-flex; align-items:center; justify-content:center; }
.up-step-r.done .up-step-i { width:24px; height:24px; margin:1px; border-radius:50%; background:var(--green); color:#05230F; }
.up-step-r.done .up-step-i svg { width:15px; height:15px; }
.up-step-r.running .au-spin { width:22px; height:22px; border-width:2.5px; border-color:var(--green); border-top-color:transparent; }
.up-step-r.waiting .up-step-i i { width:12px; height:12px; border-radius:50%; background:rgba(255,255,255,.22); }
.up-step-b { flex:1; min-width:0; font-size:15px; line-height:22px; }
.up-step-r.waiting .up-step-b > div:first-child { color:rgba(255,255,255,.55); }
.up-step-r.running .up-step-b > div:first-child { font-weight:600; }
.up-step-d { font-size:13px; line-height:18px; color:rgba(255,255,255,.55); }
.up-rev-h { margin:20px 0 8px; font-size:13px; font-weight:600; color:var(--text-2); }
.up-rev-h[hidden], .up-open[hidden], .up-note[hidden] { display:none; }
.up-open { width:100%; margin-top:16px; }

/* ==== Review highlights (MatchScrubberScreen, reviewing) ==== */
body.rv-open { overflow:hidden; }
.rv { position:fixed; inset:0; z-index:90; display:flex; flex-direction:column; background:#000; }
.rv-bar { display:flex; align-items:center; gap:4px; height:64px; padding:0 4px; }
.rv-bar .td-back { width:48px; height:48px; color:#fff; }
.rv-title { flex:1; min-width:0; font-size:22px; line-height:28px; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rv-del { margin-right:8px; padding:8px 10px; border-radius:8px; font-size:14px; color:#FF453A; }
.rv-body { flex:1; min-height:0; display:flex; flex-direction:column; padding:20px; max-width:640px; width:100%; margin:0 auto; }
.rv-scroll { flex:1; min-height:0; overflow-y:auto; }
.rv-vid { display:block; width:100%; height:240px; border-radius:12px; background:#000; object-fit:contain; }
.rv-times { display:flex; align-items:center; margin:20px 0 6px; font-size:15px; }
.rv-range { flex:1; }
.rv-len { color:var(--green); }
.rv-len.bad { color:#FF453A; }
.rv-strip { position:relative; height:64px; border-radius:10px; overflow:hidden; background:#1C1C1E; touch-action:none; cursor:ew-resize; user-select:none; }
.rv-frames { position:absolute; inset:0; display:flex; }
.rv-frames img { flex:1; min-width:0; height:100%; object-fit:cover; }
.rv-shade { position:absolute; top:0; bottom:0; background:rgba(0,0,0,.55); }
.rv-shade.l { left:0; } .rv-shade.r { right:0; }
.rv-sel { position:absolute; top:0; bottom:0; border-top:3px solid var(--green); border-bottom:3px solid var(--green); box-sizing:border-box; }
.rv-h { position:absolute; top:-3px; bottom:-3px; width:14px; background:var(--green); }
.rv-h.s { left:-14px; border-radius:6px 0 0 6px; } .rv-h.e { right:-14px; border-radius:0 6px 6px 0; }
.rv-h::after { content:""; position:absolute; left:6px; top:50%; width:2px; height:20px; margin-top:-10px; border-radius:1px; background:rgba(0,0,0,.45); }
.rv-go { width:100%; margin-top:12px; flex:none; }
.up-open[hidden] { display:none; }

/* ==== Reel editor (OverviewEditorScreen), the app's type sizes ==== */
.rl-label { font-size:11px; font-weight:600; letter-spacing:.3px; line-height:14px; }
.rl-more { font-size:13px; font-weight:600; }
.rl-clock { font-size:11px; font-weight:600; letter-spacing:.5px; }
.rl-look-n { font-size:11px; font-weight:600; letter-spacing:.5px; }
.rl-entry { font-size:13px; font-weight:600; }
.rl-tool { font-size:13px; font-weight:600; }
.rl-primary { height:48px; border-radius:12px; font-size:11px; font-weight:600; letter-spacing:.3px; color:#fff !important; }
.rl-link { font-size:15px; }
.rl-link.done, .rl-top .rl-link { font-weight:700; }

/* ==== Trophies and achievements (TrophyReveal, AchievementReveal, TrophyCard, badges, ShareCard) ==== */
body.hn-open { overflow:hidden; }
.hn-rv { position:fixed; inset:0; z-index:150; display:flex; flex-direction:column; align-items:center; justify-content:center; background:rgba(0,0,0,.95); opacity:0; transition:opacity .25s; cursor:pointer; }
.hn-rv.in { opacity:1; } .hn-rv.out { opacity:0; transition-duration:.18s; }
.hn-stage { position:relative; width:320px; height:320px; flex:none; display:flex; align-items:center; justify-content:center; }
.hn-rays { position:absolute; inset:0; width:100%; height:100%; }
.hn-cup { position:relative; width:170px; height:170px; display:flex; align-items:center; justify-content:center; transform:scale(.2) rotate(-18deg); }
.hn-cup.achievement { width:150px; height:150px; transform:scale(.2) rotateY(-140deg); }
.hn-rv.in .hn-cup.trophy { animation:hn-cup 1.3s .12s cubic-bezier(.2,.9,.3,1) forwards, hn-tilt 1.6s .12s forwards; }
.hn-rv.in .hn-cup.achievement { animation:hn-medal 1.4s .12s forwards; }
@keyframes hn-cup { 0% { transform:scale(.2) rotate(-18deg); } 45% { transform:scale(1.14) rotate(7deg); } 65% { transform:scale(.95) rotate(-3deg); } 82% { transform:scale(1.03) rotate(1deg); } 100% { transform:scale(1) rotate(0); } }
@keyframes hn-tilt { from { filter:none; } to { filter:none; } }
@keyframes hn-medal { 0% { transform:scale(.2) rotateY(-140deg); } 45% { transform:scale(1.12) rotateY(18deg); } 70% { transform:scale(.96) rotateY(-6deg); } 100% { transform:scale(1) rotateY(0); } }
.hn-cup-img { width:100%; height:100%; object-fit:contain; }
.hn-text { display:flex; flex-direction:column; align-items:center; padding:0 32px; text-align:center; opacity:0; transform:translateY(24px); transition:opacity .4s .57s, transform .4s .57s; }
.hn-rv.in .hn-text { opacity:1; transform:none; }
.hn-new { margin-bottom:6px; font-size:11px; font-weight:700; letter-spacing:.5px; }
.hn-name { font-size:28px; font-weight:700; line-height:34px; color:#fff; }
.hn-desc { margin-top:6px; font-size:15px; line-height:22px; color:var(--text-2); }
.hn-chips { display:flex; gap:8px; margin-top:12px; }
.hn-chip { padding:3px 10px; border-radius:6px; background:rgba(255,255,255,.12); color:#fff; font-size:11px; font-weight:700; letter-spacing:.5px; }
.hn-where { margin-top:12px; font-size:13px; font-weight:600; line-height:18px; color:var(--text-2); }
.hn-where + .hn-where { margin-top:0; }
.hn-where.link { color:var(--green); text-decoration:none; }
.hn-where.muted { font-size:11px; font-weight:500; color:var(--text-3); }
.hn-date { margin-top:4px; font-size:11px; font-weight:500; letter-spacing:.5px; color:var(--text-3); }
.hn-share { margin-top:20px; padding:10px 22px; border-radius:999px; background:rgba(255,255,255,.14); color:#fff; font-size:15px; font-weight:600; }
.hn-close { margin-top:28px; font-size:11px; font-weight:500; letter-spacing:.5px; color:var(--text-3); }
.hn-medal { position:relative; flex:none; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; overflow:hidden; box-sizing:border-box; }
.hn-medal img { width:100%; height:100%; object-fit:contain; }
.hn-medal-i svg { width:100%; height:100%; display:block; }
.pf-tr-grid { display:flex; flex-wrap:wrap; gap:12px; margin:8px 0 16px; }
.hn-card { width:80px; display:flex; flex-direction:column; align-items:center; color:var(--text); }
.hn-card-art { position:relative; width:80px; height:80px; display:flex; align-items:center; justify-content:center; }
.hn-card-glow { position:absolute; left:12px; top:12px; width:56px; height:56px; border-radius:50%; filter:blur(10px); }
.hn-card-art img { position:relative; width:52px; height:52px; object-fit:contain; }
.hn-dot { position:absolute; width:10px; height:10px; border-radius:50%; }
.hn-dot.red { right:-2px; top:-2px; background:#FF453A; }
.hn-dot.green { right:0; top:0; background:var(--green); }
.hn-card-n { max-width:80px; margin-top:4px; font-size:11px; font-weight:500; letter-spacing:.5px; line-height:14px; color:var(--text-2); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pf-hon-h { display:flex; align-items:center; gap:6px; margin:16px 0 4px; font-size:11px; font-weight:600; letter-spacing:.3px; color:var(--text-2); }
.pf-hon-h:first-child { margin-top:4px; }
.pf-hon-h b { color:#FF9F0A; font-weight:600; }
.pf-ach { padding:0; margin-top:8px; }
.hn-badges { display:flex; gap:14px; padding:10px 16px; overflow-x:auto; scrollbar-width:none; }
.hn-badge { flex:none; width:76px; display:flex; flex-direction:column; align-items:center; color:var(--text); }
.hn-badge-art { position:relative; width:56px; height:56px; }
.hn-x { position:absolute; right:-4px; bottom:-2px; padding:1px 5px; border-radius:999px; background:#2C2C2E; font-size:11px; }
.hn-badge-n { margin-top:6px; font-size:11px; font-weight:500; letter-spacing:.5px; line-height:14px; text-align:center; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.pf-tab { position:relative; }
.pf-tab-dot { position:absolute; top:8px; right:calc(50% - 44px); width:7px; height:7px; border-radius:50%; background:#FF453A; }
.pf-trend { display:block; font-size:11px; font-weight:500; letter-spacing:.5px; color:var(--green); }
.pf-st { display:flex; flex-direction:column; gap:12px; }
.pf-st-h { margin:0 0 -6px 4px; font-size:11px; font-weight:600; letter-spacing:.3px; color:var(--text-3); }
.pf-st-card { border-radius:8px; background:#2C2C2E; overflow:hidden; }
.pf-st-r { position:relative; display:flex; align-items:center; gap:10px; padding:10px 12px; }
.pf-st-r + .pf-st-r::before { content:""; position:absolute; left:40px; right:0; top:0; height:1px; background:rgba(84,84,88,.3); }
.pf-st-ic { flex:none; width:18px; height:18px; color:var(--text-3); }
.pf-st-ic svg { width:18px; height:18px; display:block; }
.pf-st-b { flex:1; min-width:0; display:flex; flex-direction:column; }
.pf-st-b b { font-size:15px; font-weight:400; line-height:19px; color:var(--text); }
.pf-st-b span { font-size:11px; font-weight:500; letter-spacing:.5px; line-height:14px; color:var(--text-3); }
.pf-st-v { flex:none; display:flex; flex-direction:column; align-items:flex-end; }
.pf-st-v b { font-size:17px; font-weight:700; line-height:22px; }
.pf-st-note { margin-top:12px; font-size:13px; line-height:18px; color:var(--text-2); }
.hn-sc { position:fixed; inset:0; z-index:160; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:20px; background:rgba(0,0,0,.92); }
.hn-sc-card { width:300px; height:375px; display:flex; align-items:center; justify-content:center; }
.hn-sc-canvas { width:300px; height:375px; display:block; }
.hn-sc-wait { font-size:13px; color:var(--text-2); }
.hn-sc-row { display:flex; gap:12px; margin-top:20px; }

/* My reaction, as the app's ReactionBar: green tint, green outline — on every page (cards included). */
.rx.on, .card .rx.on, .reel-info .rx.on { background:rgba(48,209,88,.28) !important; border:1px solid var(--green) !important; color:var(--text); }

/* The camera tab (MainShell's Record): a 44 dp green circle, a black camera. */
.app-tabs .app-rec { flex:1; display:flex; align-items:center; justify-content:center; height:56px; padding:0; background:none; border:0; cursor:pointer; }
.app-rec > span { width:44px; height:44px; border-radius:50%; background:var(--green); color:#000; display:inline-flex; align-items:center; justify-content:center; }
.app-rec svg { width:24px; height:24px; }
.rec-row { align-items:center; }
.rec-b { display:flex; flex-direction:column; min-width:0; }
.rec-b small { font-size:13px; font-weight:400; line-height:18px; color:var(--text-2); }
.rec-note { margin:0 0 16px; font-size:15px; line-height:22px; color:var(--text-2); }
.rec-get { width:100%; }
/* Highlight player: the first reaction's emoji lines up with the text under it. */

.app-tabs .app-rec { max-width:155px; }
.reel-info .reel-rx { margin-left:-13px; }

/* Discover's map (TournamentsMap.kt): the whole page, the tab bar still under it. */
.tm-pill { position:fixed; left:50%; transform:translateX(-50%); bottom:calc(72px + env(safe-area-inset-bottom)); z-index:31;
  display:inline-flex; align-items:center; gap:8px; padding:10px 18px; border-radius:999px; border:0; cursor:pointer;
  background:var(--text); color:#000; font:inherit; font-size:14px; font-weight:600; box-shadow:0 6px 20px rgba(0,0,0,.45); }
.tm-pill[hidden] { display:none; }
.tm-pill svg { width:18px; height:18px; }
body.map-open .tm-open-map { display:none; }
.tm-wrap { position:fixed; left:0; right:0; bottom:0; z-index:29; background:#000; }
.tm-wrap .leaflet-tile-pane { filter:invert(1) hue-rotate(180deg) brightness(.85) contrast(.9) saturate(.6); }
.tm-map { position:absolute; inset:0; background:#0b0b0c; }
.tm-wrap .tm-pill { position:absolute; bottom:16px; z-index:500; }
.tm-pin { background:none; border:0; }
.tm-pin svg { width:30px; height:40px; display:block; filter:drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.tm-card { position:absolute; left:16px; right:16px; bottom:76px; z-index:500; display:flex; align-items:center; gap:12px;
  padding:16px; border-radius:16px; background:var(--surface-2); box-shadow:0 8px 24px rgba(0,0,0,.5); max-width:520px; margin:0 auto; }
.tm-card[hidden] { display:none; }
.tm-c-main { flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; color:var(--text); text-decoration:none; }
.tm-c-main b { font-size:15px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tm-c-main span { font-size:13px; color:var(--text-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tm-open { color:var(--green); font-size:13px; font-weight:600; text-decoration:none; }
.tm-x { width:28px; height:28px; flex:none; border-radius:14px; border:0; background:var(--surface-3); color:var(--text-3);
  display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
.tm-x svg { width:16px; height:16px; }
.tm-none { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); z-index:500; width:min(300px, calc(100% - 64px));
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px; padding:20px; border-radius:16px; background:rgba(0,0,0,.72); }
.tm-none svg { width:26px; height:26px; color:var(--text-3); margin-bottom:6px; }
.tm-none b { font-size:15px; font-weight:500; color:#fff; }
.tm-none span { font-size:13px; color:rgba(255,255,255,.7); }
.tm-wrap .leaflet-container { background:#0b0b0c; font:inherit; }
.tm-wrap .leaflet-control-attribution { background:rgba(0,0,0,.55); color:var(--text-3); font-size:10px; }
.tm-wrap .leaflet-control-attribution a { color:var(--text-2); }

/* Manage: the name wraps as ManageTopBar's does; the cap note under Add team. */
.back-h.mg-title h1 { white-space:normal; overflow:visible; }
.mg-capnote { margin-top:6px; text-align:center; font-size:11px; font-weight:500; letter-spacing:.5px; color:var(--text-3); }
/* Add team stays at the foot of the screen, above the tab bar, as the app's sticky button. */
.mg-add { position:fixed; z-index:20; left:50%; transform:translateX(-50%); width:calc(min(100vw, 620px) - 32px); margin:0;
  bottom:calc(56px + env(safe-area-inset-bottom) + 12px); box-shadow:0 0 0 12px var(--bg, #000); }
.mg-capnote { position:fixed; z-index:20; left:0; right:0; bottom:calc(56px + env(safe-area-inset-bottom) + 64px); margin:0; }
.mg-teams { padding-bottom:72px; }
