/* ComboKing web. Same palette as the app (Theme.kt): pitch green on clean white, Inter everywhere.
   ≥1100px: sidebar | bulletin | fixed bet slip.  <1100px: top bar, bottom tabs, slip as bottom sheet. */
:root {
  --brand: #0e9f57;
  --brand-d: #087a42;
  --ink-bar: #0b3d24;
  --league: #13492d;
  --bg: #f3f6f4;
  --surface: #fff;
  --surface-2: #f1f4f2;
  --line: #e2e8e4;
  --text: #101814;
  --muted: #5e6c64;
  --gold: #e2b33c;
  --silver: #94a3b8;
  --bronze: #c2703d;
  --win: #16a34a;
  --lose: #dc2626;
  --pending: #2f6feb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 20, .06), 0 4px 16px rgba(16, 24, 20, .05);
  --tabbar: 64px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); font-size: 14px; line-height: 1.4; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; }
b, strong { font-weight: 700; }
small { font-size: 12px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.big { width: 44px; height: 44px; stroke-width: 1.5; color: #b7c4bc; }
.coin { width: 1.15em; height: 1.15em; vertical-align: -0.2em; flex: none; }
.muted { color: var(--muted); font-size: 13px; }
.muted a { color: var(--brand); font-weight: 600; }
.center { text-align: center; }
.small { font-size: 12px; }
.scroll { overflow-x: auto; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.num, .odd b, .podd, .bal, .wallet b, .val b, .rank { font-variant-numeric: tabular-nums; }

/* ---------- layout ---------- */
.app { min-height: 100vh; }
.side { display: none; }
.top {
  position: sticky; top: 0; z-index: 30; height: 56px; padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--ink-bar); color: #fff; padding-top: env(safe-area-inset-top);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; letter-spacing: -.3px; color: #fff; }
.brand svg { width: 26px; height: 26px; }
.brand b { color: #2bd07a; font-weight: 900; }
.top-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wallet { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); color: #fff; }
.wallet b { font-weight: 800; }
.me { display: flex; align-items: center; gap: 8px; min-width: 0; }
.meinfo { display: none; }
main { padding: 12px 12px calc(var(--tabbar) + 80px); max-width: 860px; margin: 0 auto; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 0 16px calc(var(--tabbar) + 24px); }
.foot a { color: var(--brand); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tabbar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
}
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }
.tabbar a.on { color: var(--brand); }
.tabbar a em, .nav a em { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--brand); color: #fff; font: 700 10px/17px Inter, sans-serif; font-style: normal; text-align: center; }

.slipbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar) + 10px + env(safe-area-inset-bottom)); z-index: 35;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px;
  background: var(--brand); color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgba(14, 159, 87, .35);
}
.slipbar[hidden] { display: none; }
.slipbar b { margin-left: auto; font-size: 16px; }
.slipbar .count, .slip .count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: rgba(255, 255, 255, .25); font-size: 13px; }

/* Bet slip as a bottom sheet on phones */
.slipcol {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 88vh; display: flex;
  transform: translateY(105%); transition: transform .25s ease; border-radius: 20px 20px 0 0; overflow: hidden;
  background: var(--surface); box-shadow: 0 -10px 40px rgba(0, 0, 0, .2);
}
.sheet-open .slipcol { transform: none; }
.sheet-bg { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .4); opacity: 0; pointer-events: none; transition: opacity .2s; }
.sheet-open .sheet-bg { opacity: 1; pointer-events: auto; }
.sheet-open { overflow: hidden; }

/* ---------- common bits ---------- */
.ptitle { font-size: 22px; font-weight: 800; letter-spacing: -.4px; margin: 6px 2px 12px; }
.chips { display: flex; gap: 8px; padding: 2px; }
.chip { flex: none; padding: 8px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 13px; white-space: nowrap; }
.chip.on { background: var(--ink-bar); border-color: var(--ink-bar); color: #fff; }
.lchips { margin: 4px 0 10px; }
.filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; background: none; color: var(--text); min-width: 0; }
.seg { display: flex; padding: 4px; gap: 4px; border-radius: 12px; background: var(--surface-2); margin-bottom: 10px; }
.seg button { flex: 1; padding: 9px 8px; border-radius: 9px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg.small button { padding: 7px 8px; font-size: 13px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.card h3 { margin: 0 0 12px; font-size: 15px; font-weight: 800; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; }
.primary:hover:not(:disabled) { background: var(--brand-d); }
.primary:disabled { opacity: .45; }
.primary.wide { width: 100%; }
.primary.inline { margin-top: 12px; }
.primary.danger, .ghost.danger { background: var(--lose); color: #fff; border-color: var(--lose); }
.ghost { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; }
.link { color: var(--brand); font-weight: 700; }
.iconbtn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); }
.iconbtn:hover { background: var(--surface-2); }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 12px; }
.empty { display: flex; flex-direction: column; align-items: center; padding: 48px 16px; color: var(--muted); text-align: center; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 12px; font-weight: 700; color: var(--muted); }
.field input, .field select { height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); outline: 0; }
.field input:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 159, 87, .15); }

.banner { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 12px; border-radius: var(--radius); text-align: left;
  background: linear-gradient(110deg, #0e9f57, #0b3d24); color: #fff; }
.banner .ic { width: 28px; height: 28px; }
.banner span { display: flex; flex-direction: column; flex: 1; }
.banner small { opacity: .8; }
.banner em { font-style: normal; font-weight: 800; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .18); white-space: nowrap; }

/* ---------- bulletin ---------- */
.league { background: var(--surface); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); }
.lhead { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--league); color: #fff; font-size: 13px; }
.lhead b { flex: 1; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcols { display: none; }
.mrow { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.mrow:first-of-type { border-top: 0; }
.teams { display: flex; align-items: center; gap: 12px; min-width: 0; }
.teams time { flex: none; width: 42px; font-size: 12px; font-weight: 700; color: var(--muted); }
.tn { display: flex; flex-direction: column; min-width: 0; }
.tn b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo { display: grid; grid-template-columns: repeat(5, 1fr) 40px; gap: 6px; align-items: stretch; }
.pricing { grid-column: 1 / 6; display: flex; align-items: center; color: var(--muted); font-size: 12px; }
.more { display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--muted); }
.odd { width: 100%; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border-radius: 10px; background: var(--surface-2); border: 1px solid transparent; transition: background .12s, transform .08s; }
.odd small { font-size: 10px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.odd b { font-size: 14px; font-weight: 800; }
.odd:hover:not(:disabled) { background: #e3f4ea; border-color: #bfe6cf; }
.odd:active:not(:disabled) { transform: scale(.97); }
.odd.on, .odd.on:hover:not(:disabled) { background: var(--brand); border-color: var(--brand); color: #fff; }
.odd.on small { color: rgba(255, 255, 255, .85); }
.odd:disabled { opacity: .5; }

/* ---------- match page ---------- */
.backlink { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; margin: 2px 0 10px; }
.mhead { border-radius: var(--radius); padding: 16px; color: #fff; background: radial-gradient(120% 140% at 50% 0%, #17804c, var(--ink-bar)); margin-bottom: 10px; }
.mhead .lg { font-size: 12px; opacity: .85; text-align: center; margin-bottom: 10px; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; text-align: center; }
.vs > b { font-size: 17px; font-weight: 800; }
.vs .ko { display: flex; flex-direction: column; font-size: 12px; opacity: .9; }
.vs .ko b { font-size: 22px; }
.vs .score { font-size: 30px; font-weight: 900; }
.xg { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin-top: 14px; font-size: 12px; font-weight: 700; }
.xg small { grid-column: 1 / -1; text-align: center; opacity: .7; font-weight: 500; }
.xg .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.xg .bar i { display: block; height: 100%; background: #2bd07a; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tab { flex: none; padding: 9px 14px; border-radius: 10px; font-weight: 700; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.tab.on { color: #fff; background: var(--ink-bar); border-color: var(--ink-bar); }
.market { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.market h3 { margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.mgrid { display: grid; gap: 6px; grid-template-columns: repeat(3, 1fr); }
.mgrid.g2 { grid-template-columns: repeat(2, 1fr); }
.mgrid.g4 { grid-template-columns: repeat(4, 1fr); }
.mgrid .odd { height: 50px; }
.mgrid .odd small { font-size: 11px; }

/* ---------- bet slip ---------- */
.slip { display: flex; flex-direction: column; width: 100%; min-height: 0; }
.slip header { display: flex; align-items: center; gap: 8px; padding: 14px 16px; background: var(--ink-bar); color: #fff; }
.slip header b { font-size: 15px; }
.slip header .link { margin-left: auto; color: #9ff0c3; font-size: 13px; }
.slip header .iconbtn { color: #fff; }
.slip-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 20px; text-align: center; color: var(--muted); }
.slip-empty .ic { width: 40px; height: 40px; color: #b7c4bc; stroke-width: 1.5; }
.picks { flex: 1; overflow-y: auto; min-height: 0; }
.pick { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.pick > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pick small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick b { font-size: 13px; font-weight: 700; }
.podd { font-weight: 800; padding: 4px 8px; border-radius: 8px; background: var(--surface-2); }
.slip footer { padding: 12px 16px 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
.line { display: flex; justify-content: space-between; align-items: center; }
.line b { font-weight: 800; font-size: 15px; }
.line.big b { font-size: 18px; color: var(--brand-d); display: flex; align-items: center; gap: 6px; }
.stake { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stake label { font-weight: 700; color: var(--muted); }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button { width: 38px; height: 40px; font-size: 18px; font-weight: 700; background: var(--surface-2); }
.stepper input { width: 84px; height: 40px; border: 0; text-align: center; font-weight: 800; outline: 0; }
.quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.quick button { padding: 7px 0; border-radius: 8px; background: var(--surface-2); font-size: 12px; font-weight: 700; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; }
.check input { accent-color: var(--brand); width: 18px; height: 18px; }

/* ---------- coupons ---------- */
.coupon { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--pending); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.coupon.won { border-left-color: var(--win); }
.coupon.lost { border-left-color: var(--lose); }
.coupon.void { border-left-color: var(--silver); }
.coupon header { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.coupon header time { margin-left: auto; color: var(--muted); font-size: 12px; }
.status { font-weight: 800; font-size: 13px; }
.coupon.pending .status { color: var(--pending); }
.coupon.won .status { color: var(--win); }
.coupon.lost .status { color: var(--lose); }
.boosted { font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: #fff3cd; color: #8a5608; }
.cpick { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.cpick > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.cpick small { color: var(--muted); }
.cpick .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pending); flex: none; }
.r-won .dot { background: var(--win); }
.r-lost .dot { background: var(--lose); }
.r-void .dot { background: var(--silver); }
.mini { padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--lose); }
.coupon footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 10px 14px; font-size: 13px; color: var(--muted); }
.coupon footer b { color: var(--text); }

/* ---------- avatar, names, badges ---------- */
.avatar { --s: 40px; position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center;
  background: #dcf5e7; color: #053b20; font-weight: 900; font-size: calc(var(--s) * .38); }
.avatar.framed { padding: calc(var(--s) * .09); }
.avatar.framed > span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: #dcf5e7; }
.avatar.frame_silver { background: conic-gradient(#a7b4c2, #fff, #a7b4c2, #d8dee5, #a7b4c2); }
.avatar.frame_gold { background: conic-gradient(#e2b33c, #fff1b8, #b9770e, #f6d365, #e2b33c); }
.avatar.frame_diamond { background: conic-gradient(#39c4e8, #fff, #7fe0f7, #b98cff, #39c4e8); }
.medal { --s: 16px; --c: #0e9f57; flex: none; display: inline-grid; place-items: center; width: var(--s); height: var(--s); border-radius: 50%; vertical-align: middle;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c), #fff 45%), var(--c) 55%, color-mix(in srgb, var(--c), #000 30%));
  box-shadow: inset 0 0 0 calc(var(--s) * .06) rgba(255, 255, 255, .55); margin-left: 4px; }
.medal svg { width: 62%; height: 62%; }
.sname { font-weight: 700; }
.sname.colored { font-weight: 900; }
.tchip { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 10px; font-weight: 800; letter-spacing: .3px; color: #fff; background: linear-gradient(90deg, #2f80ed, #1b5fc4); vertical-align: middle; }
.tchip.gold { color: #3a2a00; background: linear-gradient(90deg, #f6d365, #e2a93b); }
.ln { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ln.big .sname { font-size: 20px; }
.bal { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: rgba(0, 0, 0, .18); color: #fff; font-weight: 800; white-space: nowrap; }

/* ---------- leaderboard ---------- */
.cta { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: var(--radius); background: #e3f4ea; color: var(--brand-d); font-weight: 600; margin-bottom: 12px; }
.cta.big { flex-direction: column; background: linear-gradient(110deg, #e3f4ea, #f6fbf8); border: 1px solid #bfe6cf; color: var(--text); }
.cta.big small { color: var(--muted); }
.cta.big em { font-style: normal; color: var(--brand); font-weight: 800; }
.podium { border-radius: 20px; padding: 14px 8px 0; margin-bottom: 12px; background: linear-gradient(180deg, rgba(226, 179, 60, .16), var(--surface) 70%); border: 1px solid var(--line); }
.podium h4 { margin: 0 0 6px; text-align: center; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.spots { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; }
.spot { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 4px; min-width: 0; text-align: center; }
.spot .crown svg { width: 28px; height: 28px; }
.pav { position: relative; padding-bottom: 8px; }
.pav .rk { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 12px; }
.r1 .rk, .r1 .block { background: var(--gold); }
.r2 .rk, .r2 .block { background: var(--silver); }
.r3 .rk, .r3 .block { background: var(--bronze); }
.pn { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.block { width: 100%; display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 12px 12px 0 0; color: #fff; font-weight: 800; }
.block b.w { color: #fff; }
.r1 .block { height: 64px; }
.r2 .block { height: 46px; }
.r3 .block { height: 34px; }
.rows { display: flex; flex-direction: column; gap: 6px; }
.lrow { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.lrow.me { background: #e3f4ea; border-color: #9fdcb8; }
.rank { flex: none; width: 40px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-weight: 800; }
.rank.m1 { background: var(--gold); color: #fff; }
.rank.m2 { background: var(--silver); color: #fff; }
.rank.m3 { background: var(--bronze); color: #fff; }
.who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.who > .sname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { color: var(--muted); }
.val { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; white-space: nowrap; }
.val small { color: var(--muted); font-weight: 500; }
.mybar { position: sticky; bottom: calc(var(--tabbar) + 8px); margin-top: 12px; padding: 10px; border-radius: 16px; background: linear-gradient(90deg, #0e9f57, #087a42); color: #fff; box-shadow: 0 8px 24px rgba(14, 159, 87, .3); }
.mybar .lrow { background: transparent; border: 0; padding: 0; color: #fff; }
.mybar .rank { background: rgba(255, 255, 255, .2); color: #fff; }
.mybar .who small, .mybar .val small { color: rgba(255, 255, 255, .8); }
.mybar > small { display: block; margin: 8px 2px 0; font-weight: 600; }

/* ---------- shop ---------- */
.look { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; color: #fff; background: linear-gradient(120deg, #0e9f57, #075c33); margin-bottom: 8px; }
.look > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.look small { opacity: .85; }
.look .avatar:not(.framed) { background: rgba(255, 255, 255, .2); color: #fff; }
.sec { margin: 18px 2px 8px; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.item { --rc: #7d8f86; display: flex; flex-direction: column; background: var(--surface); border-radius: 16px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--rc), transparent 65%); }
.item.wearing { border: 2px solid var(--rc); }
.show { position: relative; height: 112px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--rc), transparent 70%), transparent 60%), linear-gradient(180deg, color-mix(in srgb, var(--rc), transparent 80%), color-mix(in srgb, var(--rc), transparent 96%)); }
.art { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.art .aa { font-size: 34px; font-weight: 900; line-height: 1; }
.rar { position: absolute; top: 8px; left: 8px; padding: 2px 6px; border-radius: 6px; background: var(--rc); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }
.tag { position: absolute; top: 8px; right: 8px; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .92); color: var(--rc); font-size: 11px; font-weight: 800; }
.tag.muted { color: var(--muted); }
.tag.green { color: var(--brand); }
.info { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info small { color: var(--muted); }
.info .primary, .info .ghost { margin-top: 8px; height: 38px; width: 100%; }

/* ---------- profile & auth ---------- */
.phead { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: linear-gradient(120deg, #0b3d24, #13492d); color: #fff; margin-bottom: 12px; }
.phead > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.phead small { opacity: .8; }
.phead .avatar:not(.framed) { background: rgba(255, 255, 255, .15); color: #fff; }
.lvl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; margin-top: 6px; font-weight: 700; font-size: 13px; }
.lvl .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.lvl .bar i { display: block; height: 100%; background: #2bd07a; }
.primary.wide + .cta, .phead + .primary { margin-bottom: 12px; }
.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 12px; }
.sday { display: flex; flex-direction: column; align-items: center; padding: 8px 2px; border-radius: 10px; background: var(--surface-2); font-size: 12px; }
.sday small { color: var(--muted); font-size: 10px; }
.sday.done { background: #e3f4ea; color: var(--brand-d); }
.sday.next { background: var(--brand); color: #fff; }
.sday.next small { color: rgba(255, 255, 255, .85); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stat { padding: 12px; border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 2px; }
.stat small { color: var(--muted); }
.stat b { font-size: 18px; font-weight: 800; }
.pos { color: var(--win); }
.neg { color: var(--lose); }
.auth { max-width: 420px; margin: 8px auto; }
.google { width: 100%; height: 46px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; border: 1px solid var(--line); font-weight: 700; background: var(--surface); }
.google:disabled { opacity: .5; }
.or { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted); font-size: 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.warn { padding: 10px 12px; border-radius: 10px; background: #fff3cd; color: #8a5608; font-size: 13px; }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .45); }
.modal { position: fixed; z-index: 81; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(420px, calc(100% - 32px)); padding: 20px; border-radius: 18px; background: var(--surface); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.modal p { margin: 0 0 6px; }
.mart { display: flex; justify-content: center; margin-bottom: 10px; }
.age { text-align: center; }
.age svg { width: 44px; height: 44px; }
.age h2 { margin: 6px 0; font-size: 20px; }
.age p { color: var(--muted); margin-bottom: 16px; }
.toast { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar) + 80px); max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px; background: #101814; color: #fff; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: pop .2s ease; }
.toast.bad { background: var(--lose); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- tablet ---------- */
@media (min-width: 700px) {
  main { padding: 16px 20px calc(var(--tabbar) + 90px); }
  .filters { flex-direction: row; align-items: center; }
  .filters .chips { flex: 1; }
  .search { width: 240px; }
  .mrow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
  .mo { grid-template-columns: repeat(5, 64px) 44px; }
  .mrow .odd small { display: none; }
  .lcols { display: grid; grid-template-columns: repeat(5, 64px) 44px; gap: 6px; text-align: center; font-size: 11px; opacity: .8; }
  .lcols i { font-style: normal; white-space: nowrap; }
  .items { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .meinfo { display: flex; flex-direction: column; line-height: 1.2; }
  .meinfo .sname { color: #fff; }
  .meinfo small { opacity: .7; font-size: 11px; }
  .slipcol { left: auto; right: 16px; bottom: 16px; width: 380px; border-radius: 20px; max-height: calc(100vh - 32px); }
  .slipbar { left: auto; right: 16px; width: 380px; }
}

/* ---------- desktop: sidebar | content | slip ---------- */
@media (min-width: 1100px) {
  :root { --tabbar: 0px; }
  body { font-size: 14px; }
  .app { display: grid; grid-template-columns: 248px minmax(0, 1fr) 360px; grid-template-rows: 64px 1fr auto; grid-template-areas: "side top top" "side main slip" "side foot foot"; }
  .side { grid-area: side; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; padding: 18px 14px; background: var(--ink-bar); color: #fff; overflow-y: auto; }
  .side .brand { padding: 4px 8px 10px; font-size: 22px; }
  .nav { display: flex; flex-direction: column; gap: 2px; }
  .nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: rgba(255, 255, 255, .78); font-weight: 600; }
  .nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
  .nav a.on { background: rgba(43, 208, 122, .16); color: #fff; }
  .nav a.on .ic { color: #2bd07a; }
  .nav a em { position: static; margin-left: auto; }
  .side-leagues { display: flex; flex-direction: column; gap: 1px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 12px; }
  .side-leagues h4 { margin: 0 8px 6px; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
  .side-leagues button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-align: left; color: rgba(255, 255, 255, .82); font-size: 13px; }
  .side-leagues button span { width: 18px; text-align: center; }
  .side-leagues button em { margin-left: auto; font-style: normal; font-size: 11px; color: rgba(255, 255, 255, .45); }
  .side-leagues button:hover { background: rgba(255, 255, 255, .07); }
  .side-leagues button.on { background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; }
  .promo { margin-top: auto; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 600; }
  .top { grid-area: top; position: sticky; height: 64px; padding: 0 24px; background: var(--surface); color: var(--text); border-bottom: 1px solid var(--line); justify-content: flex-end; }
  .top .brand { display: none; }
  .wallet { background: var(--surface-2); color: var(--text); padding: 8px 14px; }
  .meinfo .sname { color: var(--text); }
  main { grid-area: main; width: 100%; max-width: 980px; padding: 20px 24px 40px; margin: 0 auto; }
  .slipcol { grid-area: slip; position: sticky; top: 64px; transform: none; height: calc(100vh - 64px); max-height: none; width: auto; right: auto; bottom: auto; border-radius: 0; box-shadow: none; border-left: 1px solid var(--line); }
  .slip header .sheet-close { display: none; }
  .slipbar, .tabbar, .sheet-bg, .mobile-only { display: none !important; }
  .foot { grid-area: foot; padding: 16px 24px 24px; }
  .mo { grid-template-columns: repeat(5, 70px) 48px; }
  .lcols { grid-template-columns: repeat(5, 70px) 48px; }
  .mybar { bottom: 12px; }
  .toast { bottom: 28px; }
  .items { grid-template-columns: repeat(3, 1fr); }
  .page-match .mhead { padding: 24px; }
  .vs > b { font-size: 20px; }
}
@media (min-width: 1440px) {
  .app { grid-template-columns: 268px minmax(0, 1fr) 380px; }
  .items { grid-template-columns: repeat(4, 1fr); }
}
@media (hover: none) { .odd:hover:not(:disabled) { background: var(--surface-2); border-color: transparent; } .odd.on:hover { background: var(--brand); } }
