/* winwin Fans — mobile-first, RTL-first. Brand tokens taken from winwin.com */
:root {
  --red: #DB2F21;
  --red-600: #B8261A;
  --red-50: #FDECEA;
  --ink: #150808;
  --ink-2: #2F2323;
  --muted: #6E6262;
  --line: #E6E3E3;
  --bg: #F6F5F5;
  --card: #FFFFFF;
  --chip: #ECEBEB;
  --green: #0E8A4F;
  --amber: #B7791F;
  --shadow: 0 1px 2px rgba(21, 8, 8, .05), 0 4px 16px rgba(21, 8, 8, .05);
  --radius: 14px;
  --radius-sm: 10px;
  --nav-h: 66px;
  --top-h: 56px;
  --app-w: 520px;
  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F6F2F2; --ink-2: #E1D8D8; --muted: #A99C9C; --line: #2E2424; --bg: #0E0909; --card: #181111; --chip: #261C1C;
    --red-50: #3A1512; --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #F6F2F2; --ink-2: #E1D8D8; --muted: #A99C9C; --line: #2E2424; --bg: #0E0909; --card: #181111; --chip: #261C1C;
  --red-50: #3A1512; --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
@media (min-width: 560px) { body { background: color-mix(in srgb, var(--bg) 70%, var(--ink) 6%); } }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; }
p { margin: 0; }
[hidden] { display: none !important; }
.ic { flex: none; display: block; }
[dir="rtl"] .rtl-flip { transform: scaleX(-1); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.txt-red { color: var(--red); }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-gap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.row-gap.tight { gap: 6px; justify-content: flex-start; margin-top: 6px; }
.row-gap.center { justify-content: center; margin-top: 12px; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------- app frame ---------- */
.app { max-width: var(--app-w); margin: 0 auto; min-height: 100dvh; background: var(--bg); position: relative; }
@media (min-width: 560px) { .app { box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(0,0,0,.08); } }
.boot { min-height: 100dvh; display: grid; place-items: center; }
#view { padding: 12px 16px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom)); }
.view { animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 0 16px; padding-top: env(safe-area-inset-top);
  background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.logo { height: 20px; width: auto; display: block; color: var(--ink); }
.brand-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 2px 7px; border-radius: 4px; background: var(--ink); color: var(--card); transform: skewX(-12deg); }
.top-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--ink); }
.icon-btn:hover { background: var(--chip); }
.icon-btn.on-dark { color: #fff; background: rgba(0,0,0,.35); }
.lang-btn { height: 32px; min-width: 38px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-weight: 700; font-size: 13px; }
.badge-count { position: absolute; top: 4px; inset-inline-end: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--card); }
.top-me { display: flex; }

/* ---------- bottom nav ---------- */
.bottom-nav {
  position: fixed; bottom: 0; inset-inline: 0; margin: 0 auto; max-width: var(--app-w); z-index: 40;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: var(--card); border-top: 1px solid var(--line);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 500; padding: 6px 0; }
.bottom-nav a.active { color: var(--red); }
.bottom-nav a.active .nav-label { font-weight: 700; }
.bottom-nav .nav-center .nav-ic { width: 50px; height: 50px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(219,47,33,.35); border: 4px solid var(--card); }
.bottom-nav .nav-center.active .nav-ic { background: var(--ink); }
body.is-broadcasting .bottom-nav { display: none; }
body.is-broadcasting #view { padding-bottom: 24px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: transform .08s, background .15s, opacity .15s; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-600); }
.btn-dark { background: var(--ink); color: var(--card); }
.btn-outline { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--muted); }
.btn-outline.danger, .menu-item.danger { color: var(--red); }
.btn-outline.is-on { color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, var(--line)); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13px; }
.btn-lg { height: 52px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }
.follow-group { display: inline-flex; gap: 6px; }

/* ---------- chips, pills, badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 500; white-space: nowrap; }
.chips.static .chip { height: 28px; font-size: 12px; background: var(--chip); border-color: transparent; }
.chip.active { background: var(--ink); color: var(--card); border-color: var(--ink); }
.chip-team { background: var(--red-50); color: var(--red); border-color: transparent; font-weight: 600; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
.badge-live { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 6px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.badge-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.pill-dark { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; font-size: 12px; backdrop-filter: blur(6px); }
.status-pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--chip); color: var(--ink-2); }
.s-pending { background: #FFF4DE; color: #8A5A00; }
.s-approved { background: #E3F6EC; color: var(--green); }
.s-rejected { background: var(--red-50); color: var(--red); }
.s-admin { background: var(--ink); color: var(--card); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s-pending { background: #3A2C10; color: #F2C46D; } :root:not([data-theme="light"]) .s-approved { background: #10301F; color: #5FD39A; } }
.count-pill { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; display: grid; place-items: center; }
.verified { color: #1D9BF0; display: inline-flex; vertical-align: -2px; }

/* ---------- avatar & crest ---------- */
.avatar { position: relative; width: var(--s); height: var(--s); flex: none; display: inline-grid; place-items: center; }
.avatar-in { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 700; font-size: calc(var(--s) * .38); letter-spacing: .02em; }
.avatar.is-live::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(var(--red), #ff7a59, var(--red)); z-index: -1; }
.avatar.is-live { isolation: isolate; }
.avatar.is-live .avatar-in { box-shadow: 0 0 0 2px var(--card); }
.avatar-live { position: absolute; bottom: -6px; inset-inline: 0; margin: 0 auto; width: max-content; padding: 0 6px; height: 16px; border-radius: 4px; background: var(--red); color: #fff; font-size: 9.5px; font-weight: 700; line-height: 16px; border: 1.5px solid var(--card); }
.crest-wrap { width: var(--s); height: var(--s); flex: none; display: inline-grid; place-items: center; }
.crest { width: 100%; height: 100%; object-fit: contain; }
.crest-fb { display: none; width: 100%; height: 100%; border-radius: 50%; background: var(--chip); color: var(--ink-2); font-size: calc(var(--s) * .34); font-weight: 700; place-items: center; }
.crest-wrap.err .crest { display: none; }
.crest-wrap.err .crest-fb { display: grid; }

/* ---------- sections ---------- */
.section { margin-top: 26px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title { position: relative; font-size: 20px; font-weight: 700; isolation: isolate; padding-inline-start: 4px; }
.section-title::before { content: ""; position: absolute; inset-inline-start: -4px; top: -7px; width: 16px; height: 40px; background: var(--chip); transform: skewX(-20deg); z-index: -1; }
.more-link { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--chip); font-size: 12.5px; font-weight: 500; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.page-head { display: flex; align-items: center; gap: 6px; min-height: 44px; margin: 0 -6px 10px; }
.page-head h1 { font-size: 22px; font-weight: 700; flex: 1; padding-inline: 6px; }
.page-head-actions { display: flex; gap: 4px; }
.h-scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 10px; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; flex: none; }

/* ---------- hello & cta ---------- */
.hello { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 6px; }
.hello h1 { font-size: 22px; font-weight: 700; }
.hello p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.cta-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; padding: 16px;
  border-radius: var(--radius); background: #150808; color: #fff; margin-bottom: 4px;
}
.cta-banner::after { content: ""; position: absolute; inset-inline-end: -30px; top: -40px; width: 90px; height: 180px; background: var(--red); transform: skewX(-20deg); opacity: .9; }
.cta-banner > * { position: relative; z-index: 1; }
.cta-ic { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex: none; }
.cta-text { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.cta-text b { font-size: 15.5px; }
.cta-text span { font-size: 12.5px; opacity: .78; }
.cta-banner .btn { background: #fff; color: #150808; }

/* ---------- match cards ---------- */
.match-card { width: 268px; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.mc-league { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; margin: 8px 8px 0; border-radius: 6px; background: var(--bg); font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.mc-league span { overflow: hidden; text-overflow: ellipsis; }
.mc-body { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; padding: 12px 10px 10px; }
.mc-team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12.5px; font-weight: 600; min-width: 0; }
.mc-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.mc-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 70px; }
.mc-foot { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 7px; font-size: 11.5px; font-weight: 600; color: var(--red); background: var(--red-50); }
.mc-foot.mc-line { padding: 0; height: 3px; background: var(--red); opacity: .18; }
.match-card.is-live .mc-foot.mc-line { opacity: 1; }
.score { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 26px; color: var(--red); line-height: 1; font-variant-numeric: tabular-nums; }
.score i { font-style: normal; color: color-mix(in srgb, var(--red) 40%, transparent); font-size: 20px; }
.score.is-time { color: var(--ink); font-size: 18px; }
.pen { display: block; font-size: 11px; color: var(--muted); }
.m-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.m-status.is-live { color: var(--red); font-weight: 700; }
.m-status.is-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: pulse 1.4s infinite; }
.vs { color: var(--muted); font-weight: 400; margin: 0 2px; }

/* matches page */
.day-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 10px; padding: 0 16px; }
.day-tabs button { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13.5px; font-weight: 500; }
.day-tabs button.active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.filter-row { margin-bottom: 10px; }
.search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--muted); margin-bottom: 14px; }
.search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); min-width: 0; }
.league-group { margin-bottom: 18px; }
.league-head { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; margin-bottom: 8px; }
.league-head img { object-fit: contain; }
.league-head small { margin-inline-start: auto; color: var(--muted); font-weight: 500; }
.m-card { overflow: hidden; }
.match-row { position: relative; display: grid; grid-template-columns: 1fr 84px 1fr; align-items: center; gap: 6px; padding: 12px 12px; border-bottom: 1px solid var(--line); }
.match-row:last-child { border-bottom: 0; }
.match-row.is-live { background: linear-gradient(to left, transparent, color-mix(in srgb, var(--red) 5%, transparent)); }
.match-row .score { font-size: 20px; }
.match-row .score.is-time { font-size: 15px; }
.mr-team { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; min-width: 0; }
.mr-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-team:last-of-type { flex-direction: row-reverse; text-align: end; }
.mr-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mr-mic { position: absolute; top: 6px; inset-inline-start: 50%; transform: translateX(50%); display: inline-flex; align-items: center; gap: 2px; padding: 0 6px; height: 16px; border-radius: 4px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; }
[dir="ltr"] .mr-mic { transform: translateX(-50%); }
.match-row:has(.mr-mic) .mr-mid { padding-top: 10px; }
.source-note { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 11.5px; color: var(--muted); margin-top: 8px; }

/* scoreboard */
.scoreboard { background: #150808; color: #fff; border-radius: var(--radius); padding: 14px 14px 12px; position: relative; overflow: hidden; }
.scoreboard::before { content: ""; position: absolute; inset-inline-start: -40px; top: -30px; width: 90px; height: 200px; background: var(--red); transform: skewX(-20deg); opacity: .18; }
.sb-league { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; opacity: .85; position: relative; }
.sb-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 14px 0 10px; position: relative; }
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 14px; }
.sb-team .crest-fb { background: rgba(255,255,255,.12); color: #fff; }
.sb-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 96px; }
.scoreboard .score { font-size: 40px; color: #fff; }
.scoreboard .score i { color: rgba(255,255,255,.5); }
.scoreboard .score.is-time { font-size: 26px; }
.scoreboard .m-status { color: rgba(255,255,255,.75); }
.scoreboard .m-status.is-live { color: #fff; background: var(--red); padding: 2px 8px; border-radius: 4px; }
.scoreboard .m-status.is-live i { background: #fff; }
.sb-info { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; font-size: 11.5px; opacity: .75; position: relative; }
.sb-info span { display: inline-flex; align-items: center; gap: 4px; }
.sb-channels { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.12); position: relative; opacity: .9; }
.sb-channels img { height: 14px; width: auto; filter: brightness(1.2); }
.sb-channels span { font-size: 11px; }
.go-live-match { margin-top: 12px; }

/* tabs */
.tabs { display: flex; gap: 4px; padding: 4px; margin: 14px 0 12px; border-radius: 12px; background: var(--chip); overflow-x: auto; scrollbar-width: none; }
.tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.tabs button.active { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.tab-count:not(:empty) { min-width: 18px; height: 18px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px; }
.chat-panel { height: 62dvh; min-height: 380px; }

/* predictions */
.predict { padding: 16px; }
.predict h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.predict > .muted { font-size: 12.5px; margin: 4px 0 14px; }
.predict-row { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: 8px; margin-bottom: 14px; }
.pr-team { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; text-align: center; }
.pr-colon { font-size: 22px; font-weight: 700; color: var(--muted); }
.stepper { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stepper button { width: 34px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); display: grid; place-items: center; }
.stepper output { font-size: 30px; font-weight: 700; min-width: 40px; text-align: center; color: var(--red); font-variant-numeric: tabular-nums; }
.score.mini { font-size: 15px; color: var(--green); }
.score.mini i { color: inherit; font-size: 13px; }
.saved-pred { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--green); }
.community { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.community h4 { font-size: 14px; margin-bottom: 10px; }
.community small { color: var(--muted); font-weight: 400; }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar { display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 8px; font-size: 12.5px; }
.bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar i { height: 10px; border-radius: 999px; background: var(--chip); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); background: var(--red); border-radius: 999px; transition: width .4s; }
.bar b { text-align: end; }
.predict .small { margin-top: 12px; }

/* ---------- live cards ---------- */
.live-card { width: 236px; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--radius); background: linear-gradient(160deg, #2a0e0b, #150808 60%); color: #fff; position: relative; overflow: hidden; }
.live-card::after { content: ""; position: absolute; inset-inline-end: -26px; bottom: -40px; width: 60px; height: 160px; background: var(--red); transform: skewX(-20deg); opacity: .25; }
.live-grid .live-card, .stack .live-card, .section > .live-card { width: 100%; }
.live-grid { display: grid; gap: 12px; }
.lc-top { display: flex; align-items: center; justify-content: space-between; }
.lc-mode { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; opacity: .85; }
.lc-who { display: flex; align-items: center; gap: 10px; }
.lc-who .avatar.is-live .avatar-in { box-shadow: 0 0 0 2px #150808; }
.lc-who .avatar-live { border-color: #150808; }
.lc-name { font-weight: 700; font-size: 14.5px; }
.lc-viewers { font-size: 12px; opacity: .75; display: inline-flex; gap: 4px; align-items: center; }
.lc-match { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.07); }
.lc-match .score { font-size: 20px; color: #fff; }
.lc-match .score.is-time { font-size: 15px; color: #fff; }
.lc-teams { font-size: 12px; text-align: center; opacity: .85; margin-top: -4px; }
.lc-teams .vs { color: rgba(255,255,255,.6); }
.lc-title { font-size: 12.5px; opacity: .9; border-top: 1px solid rgba(255,255,255,.1); padding-top: 8px; }

/* ---------- commentator cards ---------- */
.c-card { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.c-card-main { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.c-card-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.c-name { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 4px; }
.c-sub { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.c-meta .txt-red { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.c-card-cta { flex: none; }

/* profile hero */
.profile-hero { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 22px 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.profile-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 92px; background: linear-gradient(120deg, var(--c), #150808); z-index: -1; }
.profile-hero::after { content: ""; position: absolute; top: -20px; inset-inline-end: 30px; width: 40px; height: 140px; background: var(--red); transform: skewX(-20deg); opacity: .6; z-index: -1; }
.profile-hero .avatar-in { box-shadow: 0 0 0 4px var(--card); }
.profile-hero h1 { font-size: 22px; display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.role-line { font-size: 13px; color: var(--muted); }
.hero-cta { margin-top: 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.stat-grid.three { grid-template-columns: repeat(3, 1fr); margin: 8px 0 4px; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; background: var(--bg); text-align: center; }
.stat b { font-size: 18px; font-weight: 700; }
.stat span { font-size: 11.5px; color: var(--muted); }
.stat .ic { color: var(--red); }
.about { padding: 16px; margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.about h3 { font-size: 16px; }
.past-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.past-row:last-child { border-bottom: 0; }
.past-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--red-50); color: var(--red); display: grid; place-items: center; flex: none; }

/* ---------- live view (viewer + host) ---------- */
.view-watch, .view-studio:has(.live-view) { margin: -12px -16px 0; }
.live-view { display: flex; flex-direction: column; min-height: calc(100dvh - var(--top-h) - var(--nav-h)); }
body.is-broadcasting .live-view { min-height: calc(100dvh - var(--top-h)); }
.stage { position: relative; background: #000; aspect-ratio: 16 / 9; overflow: hidden; color: #fff; }
.stage.is-audio { aspect-ratio: auto; height: 300px; background: radial-gradient(circle at 50% 40%, #3b120e, #150808 70%); }
.stage-video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.mirror { transform: scaleX(-1); }
.stage-top { position: absolute; top: 10px; inset-inline: 10px; display: flex; align-items: center; gap: 8px; z-index: 3; }
.stage-top .badge-live { margin-inline-start: auto; }
.is-host .stage-top .badge-live { margin-inline-start: 0; }
.stage-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(0,0,0,.45); font-size: 13.5px; z-index: 2; }
.stage.is-audio .stage-state { background: rgba(0,0,0,.25); }
.unmute { white-space: nowrap; position: absolute; bottom: 14px; inset-inline-start: 50%; transform: translateX(50%); z-index: 4; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: #fff; color: #150808; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
[dir="ltr"] .unmute { transform: translateX(-50%); }
.stage-ended { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(21,8,8,.92); text-align: center; padding: 16px; }
.audio-stage { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding-top: 24px; }
.is-host .stage.is-audio { height: 360px; }
.is-host .audio-stage { padding-bottom: 70px; }
.rings { position: relative; display: grid; place-items: center; width: 150px; height: 150px; }
.rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); opacity: calc(.15 + var(--lv, 0) * .8); transform: scale(calc(.72 + var(--lv, 0) * .5)); transition: transform .08s, opacity .08s; }
.rings i:nth-child(2) { transform: scale(calc(.86 + var(--lv, 0) * .7)); opacity: calc(.1 + var(--lv, 0) * .5); }
.rings i:nth-child(3) { transform: scale(calc(1 + var(--lv, 0) * .9)); opacity: calc(.05 + var(--lv, 0) * .35); }
.host-mic { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: var(--red); }
.audio-name { font-weight: 700; font-size: 17px; }
.eq { display: flex; align-items: center; gap: 4px; height: 36px; }
.eq i { width: 4px; height: var(--h, 8%); min-height: 4px; border-radius: 4px; background: var(--red); transition: height .08s; }
.float-layer { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: hidden; }
.chat .float-emoji, .float-layer .float-emoji { position: absolute; bottom: 10px; inset-inline-end: var(--x); font-size: 28px; animation: floatUp var(--d, 2.6s) ease-out forwards; }
@keyframes floatUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translateY(-20px) scale(1.1); } 100% { transform: translateY(-220px) scale(1); opacity: 0; } }
.host-controls { position: absolute; bottom: 12px; inset-inline: 0; display: flex; justify-content: center; gap: 10px; z-index: 4; }
.ctl { height: 46px; min-width: 46px; padding: 0 12px; border-radius: 999px; border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(8px); font-weight: 600; }
.ctl.off { background: #fff; color: var(--red); }
.ctl-end { background: var(--red); padding: 0 18px; }
.live-meta { padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.host-row { display: flex; align-items: center; gap: 10px; }
.host-link { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.live-title { font-size: 13.5px; }
.notified { display: flex; align-items: center; gap: 6px; }
.mini-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--bg); }
.ms-team { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; min-width: 0; }
.ms-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-team:last-child { flex-direction: row-reverse; }
.ms-mid { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.mini-score .score { font-size: 18px; }
.mini-score .score.is-time { font-size: 14px; }
.live-chat { flex: 1; display: flex; flex-direction: column; min-height: 320px; background: var(--card); }
.live-chat .chat { flex: 1; border-radius: 0; border: 0; height: auto; }
.ended-card { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 28px 18px; margin-bottom: 14px; }
.ended-card h2 { font-size: 20px; }
.big-emoji { font-size: 48px; }

/* ---------- chat ---------- */
.chat { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.chat-list { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; min-height: 160px; max-height: 60dvh; }
.live-chat .chat-list { max-height: none; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; }
.msg { display: flex; align-items: flex-start; gap: 8px; animation: fade .15s; }
.msg-body { flex: 1; min-width: 0; }
.msg-head { display: flex; align-items: center; gap: 6px; font-size: 12.5px; }
.msg-head b { font-weight: 700; }
.msg-head time { color: var(--muted); font-size: 11px; margin-inline-start: auto; }
.msg-badge { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--chip); }
.b-host .msg-badge { background: var(--red); color: #fff; }
.b-admin .msg-badge { background: var(--ink); color: var(--card); }
.b-commentator .msg-badge { background: #E3F0FD; color: #1565C0; }
.b-host .msg-text { background: var(--red-50); }
.msg-text { margin-top: 2px; padding: 7px 11px; border-radius: 4px 14px 14px 14px; background: var(--bg); font-size: 14px; word-wrap: break-word; overflow-wrap: anywhere; width: fit-content; max-width: 100%; }
[dir="rtl"] .msg-text { border-radius: 14px 4px 14px 14px; }
.msg-del { opacity: 0; border: 0; background: transparent; color: var(--muted); padding: 4px; }
.msg:hover .msg-del, .msg:focus-within .msg-del { opacity: 1; }
@media (hover: none) { .msg-del { opacity: .5; } }
.chat-new { position: absolute; bottom: 112px; inset-inline-start: 50%; transform: translateX(50%); border: 0; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: var(--card); font-size: 12px; z-index: 2; }
[dir="ltr"] .chat-new { transform: translateX(-50%); }
.react-bar { display: flex; gap: 2px; padding: 6px 10px; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.react-btn { flex: none; width: 38px; height: 34px; border: 0; border-radius: 10px; background: transparent; font-size: 20px; transition: transform .1s; }
.react-btn:active { transform: scale(1.3); }
.react-btn:hover { background: var(--chip); }
.chat-form { display: flex; gap: 8px; padding: 8px 10px 10px; }
.chat-form input { flex: 1; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); outline: 0; min-width: 0; }
.chat-form input:focus { border-color: var(--ink-2); }
.chat > .btn-block { margin: 8px 10px 10px; width: auto; }

/* ---------- studio ---------- */
.studio-intro { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 10px 12px; border-radius: 12px; background: var(--red-50); color: var(--ink-2); margin-bottom: 12px; }
.studio-intro .ic { color: var(--red); }
.step { padding: 16px; margin-bottom: 12px; }
.step h3 { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 12px; }
.step-n { width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: var(--card); display: grid; place-items: center; font-size: 13px; transform: skewX(-8deg); }
.pick-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.pick { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); text-align: start; }
.pick.active { border-color: var(--red); background: var(--red-50); }
.pick-league { font-size: 11.5px; color: var(--muted); }
.pick-teams { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: center; gap: 6px; font-size: 13px; }
.pick-teams b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pick-teams b:last-of-type { text-align: end; }
.pick .score { font-size: 16px; }
.pick .score.is-time { font-size: 13px; }
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mode-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); text-align: center; }
.mode-opt span { font-size: 11.5px; color: var(--muted); }
.mode-opt.active { border-color: var(--red); background: var(--red-50); color: var(--red); }
.mode-opt.active b { color: var(--ink); }
.preview { position: relative; border-radius: 12px; overflow: hidden; background: #150808; color: #fff; aspect-ratio: 16 / 9; display: grid; place-items: center; margin-bottom: 14px; }
.preview-video { width: 100%; height: 100%; object-fit: cover; }
.preview-empty, .preview-err, .preview-audio { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 16px; font-size: 13px; }
.preview-err p { color: #ffb4ab; }
.test-flag { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--amber); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.meter { width: 180px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.meter.wide { width: 200px; }
.meter i { display: block; height: 100%; width: calc(var(--lv, 0) * 100%); background: linear-gradient(90deg, #4ade80, #facc15, var(--red)); transition: width .06s; }
[dir="rtl"] .meter i { margin-inline-start: 0; }
.go-live-bar { position: sticky; bottom: calc(var(--nav-h) + 8px); padding: 12px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0,0,0,.08); display: flex; flex-direction: column; gap: 8px; }
.go-live-bar p { display: flex; align-items: center; gap: 6px; justify-content: center; }

/* ---------- forms ---------- */
.form { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.form h3 { font-size: 16px; margin-top: 4px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); outline: 0; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--ink-2); background: var(--card); }
.hint { color: var(--muted); font-size: 12px; }
.inline-input { display: flex; gap: 8px; }
.inline-input input { flex: 1; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.check input { width: 18px; height: 18px; accent-color: var(--red); margin-top: 2px; flex: none; }
.form-error { color: var(--red); font-size: 13px; text-align: center; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--chip); }
.seg button { flex: 1; height: 38px; border: 0; border-radius: 9px; background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.seg button.active { background: var(--card); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.seg.small button { height: 32px; padding: 0 12px; font-size: 13px; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; border-radius: 14px; border: 2px dashed var(--line); background: var(--bg); text-align: center; cursor: pointer; color: var(--muted); }
.dropzone b { color: var(--ink); }
.dropzone span { font-size: 12px; }
.dropzone:hover { border-color: var(--red); color: var(--red); }
.recorder { position: relative; border-radius: 14px; overflow: hidden; background: #150808; aspect-ratio: 16 / 9; display: grid; place-items: center; }
.rec-video { width: 100%; height: 100%; object-fit: cover; }
.rec-overlay { position: absolute; top: 8px; inset-inline-start: 8px; display: flex; align-items: center; gap: 8px; background: rgba(0,0,0,.55); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-variant-numeric: tabular-nums; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: pulse 1s infinite; }
.rec-err { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #ffb4ab; padding: 16px; text-align: center; font-size: 13px; }
.picked { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.picked video { width: 100%; display: block; background: #000; max-height: 260px; }
.picked-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px; font-size: 12.5px; }
.progress { position: relative; height: 26px; border-radius: 999px; background: var(--chip); overflow: hidden; }
.progress i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: var(--red); transition: width .2s; }
.progress span { position: relative; display: grid; place-items: center; height: 100%; font-size: 12px; font-weight: 600; mix-blend-mode: difference; color: #fff; }

/* apply */
.apply-hero { text-align: center; padding: 22px 16px; margin-bottom: 14px; border-radius: var(--radius); background: #150808; color: #fff; position: relative; overflow: hidden; }
.apply-hero::before { content: ""; position: absolute; top: -40px; inset-inline-start: -20px; width: 70px; height: 220px; background: var(--red); transform: skewX(-20deg); opacity: .8; }
.apply-hero > * { position: relative; }
.apply-hero-ic { width: 64px; height: 64px; border-radius: 18px; background: var(--red); display: grid; place-items: center; margin: 0 auto 12px; }
.apply-hero h2 { font-size: 21px; }
.apply-hero p { font-size: 13.5px; opacity: .82; margin-top: 6px; }
.perks { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; text-align: start; }
.perks li { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.07); }
.perks .ic { color: #ff8a7d; }
.app-status { padding: 18px 16px; display: flex; flex-direction: column; gap: 16px; }
.app-status-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.app-status-head h2 { font-size: 19px; }
.app-status-head p { font-size: 13.5px; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; top: 24px; bottom: 0; inset-inline-start: 11px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--green); }
.timeline i { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--chip); color: #fff; position: relative; }
.timeline li.done i { background: var(--green); }
.timeline li.bad i { background: var(--red); }
.timeline li.current i { background: var(--amber); box-shadow: 0 0 0 5px color-mix(in srgb, var(--amber) 25%, transparent); animation: pulse 1.6s infinite; }
.timeline div { display: flex; flex-direction: column; font-size: 14px; }
.timeline span { font-size: 12px; color: var(--muted); }
.admin-note { padding: 12px; border-radius: 12px; background: var(--bg); border-inline-start: 3px solid var(--red); }
.admin-note b { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 4px; }
.app-video { width: 100%; border-radius: 12px; background: #000; max-height: 300px; display: block; }
.app-details { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; font-size: 13px; }
.app-details dt { color: var(--muted); }
.app-details dd { margin: 0; }

/* admin */
.admin-list { display: flex; flex-direction: column; gap: 12px; }
.app-card { padding: 14px; display: flex; flex-direction: column; gap: 12px; transition: opacity .25s, transform .25s; }
.app-card.leaving { opacity: 0; transform: translateX(20px); }
.app-card-head { display: flex; align-items: center; gap: 10px; }
.app-card-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-card-head .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.decision { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.admin-row { display: flex; align-items: center; gap: 10px; padding: 12px; flex-wrap: wrap; }
.js-stats { margin-bottom: 4px; }

/* account */
.me-card { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 12px; }
.me-card h2 { font-size: 18px; }
.menu { display: flex; flex-direction: column; margin: 12px 0; overflow: hidden; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: start; font-size: 14.5px; width: 100%; }
.menu-item:last-child { border-bottom: 0; }
.menu-item span { flex: 1; }
.menu-item small { color: var(--muted); font-size: 12px; }
.menu-item.hl { background: var(--red-50); }
.menu-item.hl .ic, .menu-item.hl small { color: var(--red); font-weight: 600; }
.settings { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.settings h3 { font-size: 16px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.set-row > div:first-child { display: flex; align-items: center; gap: 10px; }
.set-row span { display: flex; flex-direction: column; }
.set-row small { color: var(--muted); font-size: 12px; }
.push-banner { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--red-50); margin-bottom: 12px; }
.push-banner .ic { color: var(--red); }
.push-banner > div { flex: 1; display: flex; flex-direction: column; font-size: 13px; }
.n-list { overflow: hidden; }
.n-item { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.n-item:last-child { border-bottom: 0; }
.n-item.unread { background: color-mix(in srgb, var(--red) 5%, var(--card)); }
.n-item .grow { gap: 2px; }
.n-item b { font-size: 14px; }
.n-item .grow > span { font-size: 13px; color: var(--ink-2); }
.n-item time { font-size: 11.5px; color: var(--muted); }
.n-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--chip); }
.n-live .n-ic { background: var(--red); color: #fff; }
.n-app_approved .n-ic { background: #E3F6EC; color: var(--green); }

/* leaderboard */
.lb-teaser { display: block; padding: 16px; }
.lb-podium { display: flex; justify-content: center; align-items: flex-end; gap: 16px; min-height: 60px; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; text-align: center; max-width: 90px; }
.pod b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pod span { color: var(--red); font-weight: 700; }
.pod-1 { order: 2; } .pod-2 { order: 1; } .pod-3 { order: 3; }
.lb-cta { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--red); }
.lb-explainer { display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 12px; }
.lb-explainer .ic { color: var(--red); }
.lb-explainer > div { flex: 1; display: flex; flex-direction: column; font-size: 12.5px; }
.lb-me { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; margin-bottom: 12px; background: var(--ink); color: var(--card); border: 0; }
.lb-me b { font-size: 22px; }
.lb-list { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.lb-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.lb-list li:last-child { border-bottom: 0; }
.lb-list li.me { background: var(--red-50); }
.lb-list small { color: var(--muted); font-size: 11.5px; }
.rank { width: 26px; text-align: center; font-weight: 700; color: var(--muted); }
.rank.r1 { color: #D4A017; } .rank.r2 { color: #8E9AAF; } .rank.r3 { color: #B87333; }
.pts { font-size: 17px; color: var(--red); }

/* auth */
.auth { display: flex; flex-direction: column; gap: 14px; padding-top: 10px; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; }
.auth-brand .logo { height: 30px; }
.auth-brand span { font-weight: 700; font-size: 15px; padding: 2px 10px; border-radius: 6px; background: var(--red); color: #fff; transform: skewX(-12deg); }
.auth-tag { text-align: center; color: var(--muted); font-size: 13.5px; }
.auth-perks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.auth-perks li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.auth-perks .ic { color: var(--red); }
.center-link { text-align: center; text-decoration: underline; }
.view-login ~ * { display: none; }
body[data-route="login"] .bottom-nav { display: none; }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: calc(var(--top-h) + 8px + env(safe-area-inset-top)); inset-inline: 0; margin: 0 auto; max-width: calc(var(--app-w) - 24px); width: calc(100% - 24px); z-index: 60; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--ink); color: var(--card); box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: toastIn .25s ease-out; transition: opacity .25s, transform .25s; }
.toast.out { opacity: 0; transform: translateY(-10px); }
.toast-body { flex: 1; display: flex; flex-direction: column; font-size: 13px; gap: 2px; }
.toast-body b { font-size: 14px; }
.toast-live { background: linear-gradient(120deg, #150808, #4a1410); color: #fff; border: 1px solid var(--red); }
.toast-success { background: #0E3B25; color: #fff; }
.toast-error { background: var(--red); color: #fff; }
.toast-x { border: 0; background: transparent; color: inherit; opacity: .6; font-size: 20px; line-height: 1; padding: 0 4px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px); } }

/* ---------- mascot (Winny) ---------- */
.mascot-tip { display: flex; align-items: flex-end; gap: 8px; margin: 2px 0 14px; }
.mascot-svg { flex: none; overflow: visible; }
.mascot-svg .m-body { animation: mBob 2.6s ease-in-out infinite; transform-box: view-box; transform-origin: 80px 160px; }
.mascot-svg .m-wave { animation: mWave 1.8s ease-in-out infinite; transform-box: view-box; transform-origin: 38px 124px; }
.mascot-svg .m-eyes { animation: mBlink 4.2s infinite; transform-box: view-box; transform-origin: 80px 92px; }
.mascot-svg .m-rec { animation: pulse 1.2s infinite; }
.mascot-svg.mood-sad .m-body, .mascot-svg.mood-sad .m-wave { animation: none; }
@keyframes mBob { 50% { transform: translateY(-5px); } }
@keyframes mWave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-20deg); } }
@keyframes mBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.mascot-tip .bubble { position: relative; flex: 1; min-width: 0; margin-bottom: 22px; padding: 12px 14px; border-radius: 18px; background: var(--red-50); border: 1px solid color-mix(in srgb, var(--red) 28%, transparent); font-size: 13.5px; }
.mascot-tip .bubble::after { content: ""; position: absolute; bottom: 18px; inset-inline-start: -7px; width: 12px; height: 12px; background: inherit; border: inherit; border-top-color: transparent; border-inline-end-color: transparent; transform: rotate(45deg); }
[dir="rtl"] .mascot-tip .bubble::after { transform: rotate(-45deg); }
.mascot-tip .bubble b { display: block; font-size: 15px; margin-bottom: 3px; color: var(--ink); }
.mascot-tip .bubble p { color: var(--ink-2); line-height: 1.6; }
.mascot-tip.mood-sad .bubble { background: var(--chip); border-color: var(--line); }
.bubble-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }

.cam-guide { display: flex; align-items: center; gap: 14px; padding: 12px; margin: 0 0 6px; border-radius: 16px; background: var(--bg); border: 1.5px dashed var(--line); }
.cam-art { flex: none; width: 112px; height: 112px; border-radius: 50%; background: #FFFDFC; display: grid; place-items: center; box-shadow: inset 0 0 0 4px color-mix(in srgb, #DB2F21 18%, transparent); }
.cam-svg .ca-rec { animation: pulse 1.2s infinite; }
.perm-mock { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; background: #FFFFFF; color: #202124; border: 1px solid #DADCE0; box-shadow: 0 6px 18px rgba(0,0,0,.12); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 12.5px; }
.perm-site { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; color: #202124; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.perm-mock p { margin: 4px 0 9px; color: #3C4043; line-height: 1.45; }
.perm-btns { display: flex; gap: 8px; justify-content: flex-end; }
.perm-block, .perm-allow { padding: 5px 14px; border-radius: 999px; font-weight: 600; font-size: 12px; }
.perm-block { color: #1A73E8; border: 1px solid #DADCE0; }
.perm-allow { background: #1A73E8; color: #FFFFFF; animation: allowPulse 1.6s infinite; }
@keyframes allowPulse { 0% { box-shadow: 0 0 0 0 rgba(26,115,232,.55); } 70% { box-shadow: 0 0 0 10px rgba(26,115,232,0); } 100% { box-shadow: 0 0 0 0 rgba(26,115,232,0); } }
.cam-guide-cap { margin: 0 0 14px; font-size: 12px; color: var(--muted); text-align: center; }

.rule-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--red-50); border-inline-start: 4px solid var(--red); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.55; text-align: start; }
.rule-note .ic { color: var(--red); margin-top: 2px; }
.go-live-bar .rule-note { justify-content: flex-start; }

/* ---------- dialog ---------- */
.dialog-backdrop { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 4, 4, .55); animation: fade .15s; padding: 16px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.dialog { width: 100%; max-width: 420px; padding: 20px 18px 16px; border-radius: 18px; background: var(--card); box-shadow: 0 20px 50px rgba(0,0,0,.3); animation: toastIn .2s ease-out; }
.dialog p { font-size: 15.5px; font-weight: 600; text-align: center; margin-bottom: 16px; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 560px) { .dialog-backdrop { align-items: center; } }

/* ---------- misc ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 26px 16px; border-radius: var(--radius); background: var(--card); border: 1px dashed var(--line); }
.empty-ic { font-size: 34px; }
.empty h3 { font-size: 15.5px; }
.empty p { font-size: 13px; color: var(--muted); max-width: 300px; }
.empty .btn { margin-top: 4px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--chip); border-top-color: var(--red); animation: spin .8s linear infinite; }
.spinner.light { border-color: rgba(255,255,255,.25); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel-list { display: flex; flex-direction: column; gap: 10px; }
.skel { height: 84px; border-radius: var(--radius); background: linear-gradient(90deg, var(--chip), var(--card), var(--chip)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
