:root {
  --navy: #0a1a3a;
  --navy-2: #0f2552;
  --navy-3: #071226;
  --green: #22c55e;
  --green-2: #16a34a;
  --blue: #1d4ed8;
  --bg: #f1f4f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e5e9f0;
  --red: #ef4444;
  --gold: #f5c542;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--navy-3);
  font-size: 14px;
  line-height: 1.4;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.sm { width: 16px; height: 16px; }

/* ---------- stage & phone frame ---------- */
.stage {
  min-height: 100%;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(ellipse 60% 40% at 15% 0%, rgba(120, 170, 255, .28), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 0%, rgba(120, 170, 255, .28), transparent 70%),
    radial-gradient(ellipse 90% 35% at 50% 105%, rgba(34, 197, 94, .35), transparent 70%),
    linear-gradient(180deg, #0b1d44 0%, #071226 70%);
}
.phone {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
@media (min-width: 520px) {
  .phone {
    width: 380px;
    height: min(780px, calc(100dvh - 60px));
    border-radius: 40px;
    border: 9px solid #05070d;
    box-shadow: 0 0 0 2px #2a3550, 0 30px 80px rgba(0, 0, 0, .6);
  }
}
#screen { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
#screen::-webkit-scrollbar { width: 0; }

/* ---------- top bar ---------- */
#top:empty, #tabs:empty { display: none; }
.topbar {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px 12px;
  min-height: 56px;
}
.topbar .title { flex: 1; text-align: center; font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; position: relative; flex: none; }
.iconbtn:active { background: rgba(255, 255, 255, .12); }
.iconbtn .dot { position: absolute; top: 2px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-style: italic; font-size: 21px; letter-spacing: -.3px; color: #fff; }
.logo b { color: var(--green); font-weight: 800; }
.logo svg { width: 26px; height: 26px; }
.live-badge { background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 5px; letter-spacing: .5px; }

/* ---------- bottom tabs ---------- */
.tabbar { display: flex; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: #5b6b8c; padding: 4px 0; font-weight: 500; }
.tabbar a.on { color: var(--green-2); font-weight: 700; }
.tabbar a.on .ic { fill: rgba(34, 197, 94, .18); }

/* ---------- generic ---------- */
.pad { padding: 14px; }
.card { background: var(--card); border-radius: 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, .07); padding: 14px; margin-bottom: 12px; }
.sec-head { display: flex; justify-content: space-between; align-items: center; margin: 18px 2px 10px; }
.sec-head:first-child { margin-top: 2px; }
.sec-head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.sec-head a, .link { color: var(--blue); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 2px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; }
.empty b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.trunc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 20px; font-weight: 700; font-size: 14.5px; background: linear-gradient(180deg, #2bd46c, var(--green-2)); color: #fff; box-shadow: 0 4px 12px rgba(22, 163, 74, .3); width: 100%; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); box-shadow: none; }
.btn.dark { background: var(--navy); box-shadow: none; }
.btn.danger { background: #fff; color: var(--red); border: 1.5px solid #fecaca; box-shadow: none; }
.btn.sm { padding: 8px 14px; font-size: 13px; width: auto; }
.btn.soft { background: #e7f8ee; color: var(--green-2); box-shadow: none; }
.btn.soft.on { background: var(--green-2); color: #fff; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; }

.badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #dbeafe; color: var(--blue); white-space: nowrap; }
.badge.ongoing, .badge.live { background: #dcfce7; color: #15803d; }
.badge.completed { background: #e2e8f0; color: #475569; }
.badge.solid { background: var(--blue); color: #fff; }
.badge.solid.ongoing { background: var(--green-2); }
.badge.solid.completed { background: #475569; }
.badge.cap { background: #fef3c7; color: #92400e; }

.crest { width: 44px; height: 50px; flex: none; }
.crest.sm { width: 30px; height: 34px; }
.crest.lg { width: 64px; height: 72px; }

/* ---------- segmented tabs ---------- */
.seg { display: flex; background: #fff; border-bottom: 1px solid var(--line); padding: 0 8px; overflow-x: auto; position: sticky; top: 0; z-index: 5; }
.seg::-webkit-scrollbar { height: 0; }
.seg a { flex: 1; text-align: center; padding: 12px 10px 10px; font-size: 13.5px; color: var(--muted); font-weight: 500; white-space: nowrap; border-bottom: 3px solid transparent; }
.seg a.on { color: var(--text); font-weight: 700; border-bottom-color: var(--green); }
.seg.dark { background: var(--navy); border-bottom: 0; }
.seg.dark a { color: #a9b6d3; }
.seg.dark a.on { color: #fff; }

/* ---------- hero art ---------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(190, 215, 255, .55), transparent 22%),
    radial-gradient(circle at 88% 8%, rgba(190, 215, 255, .55), transparent 22%),
    radial-gradient(ellipse 120% 45% at 50% 112%, #1f9d4d 0%, #14703a 45%, transparent 70%),
    linear-gradient(180deg, #0a1a3a 0%, #12306b 55%, #0d2a2a 100%);
}
.hero .trophy { position: absolute; right: 10px; bottom: 4px; width: 92px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .5)); }
.banner { border-radius: 14px; padding: 18px 110px 18px 16px; min-height: 128px; display: flex; flex-direction: column; justify-content: center; gap: 8px; cursor: pointer; }
.banner h3 { margin: 0; font-size: 19px; line-height: 1.2; font-weight: 800; }
.banner .chev { position: absolute; right: 10px; bottom: 10px; }
.pill-live { display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .45); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; width: fit-content; }
.pill-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.t-hero { padding: 86px 16px 16px; }
.t-hero .trophy { right: 50%; transform: translateX(50%); top: 6px; bottom: auto; width: 74px; }
.t-hero h1 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.t-hero .meta { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-top: 5px; color: #e2e8f0; }

/* ---------- quick access ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 500; color: var(--text); line-height: 1.2; }
.quick .tile { width: 54px; height: 54px; border-radius: 14px; background: #e8f0fe; display: grid; place-items: center; color: var(--blue); }
.quick .tile .ic { width: 26px; height: 26px; }
.quick .tile.gold { color: #d97706; background: #fef3c7; }

/* ---------- match card ---------- */
.match { cursor: pointer; }
.match .m-meta { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 10px; text-align: center; }
.match .m-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.match .m-team { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.match .m-team .nm { font-weight: 700; font-size: 13px; }
.match .m-team .sc { font-weight: 800; font-size: 17px; }
.match .m-team .ov { font-size: 11px; color: var(--muted); }
.match .m-team.lost .sc, .match .m-team.lost .nm { color: #94a3b8; }
.match .vs { font-weight: 800; color: var(--navy); font-size: 15px; }
.match .m-foot { margin-top: 10px; text-align: center; font-size: 12.5px; font-weight: 600; }
.match .m-foot.res { color: var(--green-2); }
.match .m-foot.livetxt { color: #b45309; }
.match .m-act { display: flex; justify-content: center; margin-top: 10px; }

/* ---------- tournament card ---------- */
.tcard { padding: 0; overflow: hidden; cursor: pointer; }
.tcard .hero { height: 96px; }
.tcard .hero .trophy { width: 66px; right: 18px; }
.tcard .body { padding: 12px 14px; }
.tcard h3 { margin: 0; font-size: 15.5px; font-weight: 800; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tcard .line { font-size: 12.5px; color: #334155; margin-top: 5px; }
.tcard .foot { display: flex; justify-content: flex-end; margin-top: 8px; }

/* ---------- lists ---------- */
.list { background: #fff; border-radius: 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, .07); overflow: hidden; margin-bottom: 12px; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; width: 100%; text-align: left; }
.item:last-child { border-bottom: 0; }
.item .t { font-weight: 700; }
.item .s { font-size: 12px; color: var(--muted); }
.item .chev { color: #94a3b8; }
.item .ico { width: 38px; height: 38px; border-radius: 10px; background: #e8f0fe; color: var(--blue); display: grid; place-items: center; flex: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; flex: none; }
.teamgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.teamgrid a { background: #f6f8fc; border-radius: 12px; padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; text-align: center; }

/* ---------- tables ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: right; font-weight: 600; color: var(--muted); font-size: 11px; padding: 8px 5px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { text-align: right; padding: 9px 5px; border-bottom: 1px solid #f0f2f6; white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 12px; white-space: normal; }
.tbl th:last-child, .tbl td:last-child { padding-right: 12px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .nm { font-weight: 700; }
.tbl .how { font-size: 11px; color: var(--muted); font-weight: 400; }
.tbl b { font-weight: 800; }
.tbl tr.q td:first-child { box-shadow: inset 3px 0 0 var(--green); }
.tcell { display: flex; align-items: center; gap: 8px; }
.tablecard { padding: 0; overflow: hidden; }
.tablecard h3 { margin: 0; padding: 12px 12px 8px; font-size: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.tablecard .tot { display: flex; justify-content: space-between; padding: 9px 12px; font-size: 12.5px; border-top: 1px solid var(--line); }
.tablecard .tot.big { font-weight: 800; background: #f6f8fc; font-size: 13.5px; }
.form-dots { display: inline-flex; gap: 3px; }
.form-dots i { width: 15px; height: 15px; border-radius: 50%; font-size: 9px; font-style: normal; font-weight: 800; color: #fff; display: grid; place-items: center; background: #94a3b8; }
.form-dots i.W { background: var(--green-2); }
.form-dots i.L { background: var(--red); }

/* ---------- match screen ---------- */
.mhead { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 6px 16px 18px; text-align: center; }
.mhead .sub { font-size: 12.5px; color: #cbd5e1; margin-bottom: 14px; }
.mhead .teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8px; }
.mhead .tm { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.mhead .tm .nm { font-weight: 700; font-size: 15px; }
.mhead .tm .sc { font-weight: 800; font-size: 24px; line-height: 1.1; }
.mhead .tm .ov { font-size: 12px; color: #cbd5e1; }
.mhead .vs { align-self: center; font-weight: 800; color: #93a4c8; }
.mhead .status { margin: 16px auto 0; background: linear-gradient(180deg, #2bd46c, var(--green-2)); border-radius: 999px; padding: 10px 18px; font-weight: 700; font-size: 13.5px; max-width: 290px; }
.mhead .status.plain { background: rgba(255, 255, 255, .1); font-weight: 600; }
.winbar { background: var(--navy); color: var(--gold); font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; border-radius: 14px; margin-bottom: 12px; font-size: 15px; text-align: center; }
.winbar svg { width: 30px; flex: none; }

.feed { padding: 0; }
.ball { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ball:last-child { border-bottom: 0; }
.ball .c { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: #eef1f6; color: #334155; flex: none; }
.ball .c.four, .ball .c.six { background: var(--green-2); color: #fff; }
.ball .c.wicket { background: var(--red); color: #fff; }
.ball .c.extra { background: #fef3c7; color: #92400e; font-size: 10.5px; }
.ball .ovn { width: 34px; font-size: 13px; color: #334155; font-variant-numeric: tabular-nums; flex: none; }
.ball .who { font-weight: 600; font-size: 13px; }
.ball .tx { font-size: 12.5px; color: #475569; }
.overline { background: #f6f8fc; padding: 7px 14px; font-size: 12px; font-weight: 700; color: #334155; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.thisover { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.thisover .c { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 11.5px; background: #eef1f6; color: #334155; }
.thisover .c.four, .thisover .c.six { background: var(--green-2); color: #fff; }
.thisover .c.wicket { background: var(--red); color: #fff; }
.thisover .c.extra { background: #fef3c7; color: #92400e; font-size: 10px; }

/* ---------- scorer ---------- */
.scorer { border: 2px solid var(--green); }
.scorer h3 { margin: 0 0 10px; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.runs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 10px 0; }
.runs button { aspect-ratio: 1; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; font-size: 16px; }
.runs button.b4, .runs button.b6 { background: var(--green-2); }
.runs button:active { transform: scale(.94); }
.toggles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.toggles button { padding: 8px 2px; border-radius: 10px; background: #eef1f6; font-weight: 700; font-size: 11.5px; color: #334155; }
.toggles button.on { background: #f59e0b; color: #fff; }
.toggles button.wk.on { background: var(--red); }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.tools button { padding: 8px 2px; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 600; font-size: 11.5px; color: #334155; background: #fff; }
.tools button.red { color: var(--red); border-color: #fecaca; }
#wk-box { display: none; margin-top: 8px; padding: 10px; background: #fef2f2; border-radius: 10px; }
#wk-box.show { display: grid; gap: 8px; }
.crease { display: grid; gap: 4px; font-size: 13px; }
.crease div { display: flex; justify-content: space-between; }
.crease .on-strike { font-weight: 800; }

/* ---------- forms & sheets ---------- */
label.f { display: block; font-size: 12px; font-weight: 600; color: #475569; margin-bottom: 10px; }
label.f.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.inp { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 14.5px; outline: none; }
.inp:focus { border-color: var(--green); }
input[type=color].inp { padding: 3px; height: 42px; }
label.f.check input { width: 18px; height: 18px; accent-color: var(--green-2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#sheet:empty { display: none; }
#sheet { position: absolute; inset: 0; background: rgba(7, 18, 38, .55); z-index: 50; display: flex; align-items: flex-end; }
.sheet { background: #fff; width: 100%; max-height: 88%; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }
.sheet h2 { margin: 0 0 14px; font-size: 17px; display: flex; justify-content: space-between; align-items: center; }
.sheet h2 button { color: var(--muted); }
#toasts { position: absolute; left: 0; right: 0; bottom: 78px; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 60; pointer-events: none; padding: 0 16px; }
.toast { background: #0f172a; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); animation: up .2s ease-out; text-align: center; }
.toast.err { background: #b91c1c; }
.toast.ok { background: #15803d; }

/* ---------- splash & auth ---------- */
.splash {
  min-height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 56px 28px 34px;
  background:
    radial-gradient(circle at 0% 34%, rgba(200, 222, 255, .5), transparent 13%),
    radial-gradient(circle at 100% 34%, rgba(200, 222, 255, .5), transparent 13%),
    radial-gradient(ellipse 130% 30% at 50% 78%, #23a455 0%, #136b37 50%, transparent 72%),
    linear-gradient(180deg, #081632 0%, #12306b 55%, #081632 100%);
}
.splash .mark { width: 84px; height: 84px; }
.splash .logo { font-size: 38px; margin-top: 8px; }
.splash .tag { font-size: 16px; margin-top: 12px; color: #e2e8f0; max-width: 220px; }
.splash .trophy { width: 120px; margin: auto 0; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .6)); padding: 20px 0; }
.splash .btn { max-width: 260px; padding: 14px; font-size: 16px; }
.splash .alt { margin-top: 16px; font-weight: 600; font-size: 15px; color: #fff; }
.auth { min-height: 100%; background: linear-gradient(180deg, #081632 0%, #12306b 100%); color: #fff; padding: 20px 24px 30px; }
.auth .head { text-align: center; padding: 26px 0 22px; }
.auth .head .logo { font-size: 30px; }
.auth h1 { font-size: 20px; margin: 14px 0 4px; }
.auth label.f { color: #cbd5e1; }
.auth .inp { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.auth .hint { margin-top: 18px; background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 12px; font-size: 12.5px; color: #cbd5e1; }
.auth .hint b { color: #fff; }
.auth .switch { text-align: center; margin-top: 16px; font-size: 13.5px; color: #cbd5e1; }
.auth .switch a { color: var(--green); font-weight: 700; }

.profile { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 14px; padding: 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.profile .avatar { background: var(--green-2); width: 48px; height: 48px; font-size: 17px; }
.statrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.statrow div { background: #fff; border-radius: 12px; padding: 10px 4px; text-align: center; box-shadow: 0 1px 3px rgba(15, 23, 42, .07); }
.statrow b { display: block; font-size: 18px; }
.statrow span { font-size: 11px; color: var(--muted); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.duo .card { margin: 0; }
.duo .k { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.duo .v { font-size: 22px; font-weight: 800; color: var(--green-2); }
.notif.unread { background: #f0fdf4; }
.team-hero { padding: 18px 16px; display: flex; align-items: center; gap: 14px; }
.team-hero h1 { margin: 0; font-size: 20px; }

/* ---------- v1.1: logos, facts, player page ---------- */
img.crest.logo { border-radius: 50%; object-fit: cover; height: 44px; background: #fff; border: 2px solid rgba(255, 255, 255, .8); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
img.crest.logo.sm { width: 30px; height: 30px; }
img.crest.logo.lg { width: 64px; height: 64px; }
.hero img.tlogo { border-radius: 50%; object-fit: cover; aspect-ratio: 1; background: #fff; border: 3px solid var(--gold); }
.tcard .hero img.tlogo { bottom: 12px; }
.banner img.tlogo { bottom: 20px; right: 16px; width: 84px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 14px; }
.facts span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.facts b { font-size: 13.5px; }
.imgf { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.imgf img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--line); flex: none; }
.imgf .inp { margin: 0; padding: 8px; font-size: 12.5px; min-width: 0; }
.imgf .link { color: var(--red); flex: none; }
.avatar.big { width: 64px; height: 64px; font-size: 22px; border: 2px solid rgba(255, 255, 255, .7); }
.badge.cap + .badge.cap { margin-left: 4px; }

/* ---------- v1.2: artwork from the design mockup ---------- */
.markimg { width: 30px; height: 33px; }
.topbar { background: #10244a; }
.seg.dark, .mhead { background: #10244a; }
.mhead { background: linear-gradient(180deg, #10244a 0%, #0f2552 100%); }
.splash { padding: 44px 0 30px; background: linear-gradient(180deg, #10244a 0%, #0f2a5c 38%, #081a3c 100%); }
.splash .markimg { width: 110px; height: 124px; }
.splash .logo { font-size: 40px; margin-top: 0; }
.splash .tag { font-size: 17px; margin-top: 10px; }
.splash-art { width: 100%; flex: 1; min-height: 240px; margin: 6px 0 22px; background: url(art/splash.svg) center bottom / cover no-repeat; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 100%); mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 100%); }
.auth .head .markimg { width: 70px; height: 80px; }
.auth { background: linear-gradient(180deg, #10244a 0%, #12306b 100%); }
.hero.art-hero { background: linear-gradient(180deg, rgba(10, 26, 58, 0) 56%, rgba(10, 26, 58, .96) 70%), url(art/hero.svg) center top / 106% auto no-repeat, #0a1a3a; padding-top: 196px; }
.hero.art-banner { background: linear-gradient(90deg, #0b1d42 0%, #0b1d42 24%, rgba(11, 29, 66, .55) 50%, rgba(11, 29, 66, 0) 72%), url(art/hero.svg) right center / auto 100% no-repeat, #0b1d42; padding-right: 140px; min-height: 136px; }
.hero.art-stadium { background: url(art/stadium.svg) center / cover no-repeat; }
.hero.art-trophy { background: url(art/trophy.svg) center / cover no-repeat; }
.tcard { border-radius: 14px; }
.tcard .hero { height: 104px; margin: 10px 10px 0; border-radius: 10px; }
.quick .tile .ic { fill: currentColor; fill-opacity: .9; stroke-width: 1.6; }
.tabbar a .ic { fill: currentColor; fill-opacity: .16; }
.tabbar a.on .ic { fill: currentColor; fill-opacity: .9; stroke-width: 1.5; }
.about { margin: 0; color: #334155; }
.about.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ball .who { font-weight: 600; }
.winbar.pinned { position: sticky; bottom: 0; margin: 0; border-radius: 0; padding: 14px; font-size: 16px; background: linear-gradient(90deg, #0a1a3a, #10244a); box-shadow: 0 -4px 14px rgba(0, 0, 0, .25); }
.badge.solid { background: #2563eb; }

/* ---------- v1.3: photographic artwork ---------- */
.hero.art-hero { background: linear-gradient(180deg, rgba(10, 26, 58, 0) 120px, rgba(10, 26, 58, .75) 190px, #0a1a3a 226px), url(art/hero.jpg) center top / 100% auto no-repeat, #0a1a3a; padding-top: 186px; }
.hero.art-banner { background: linear-gradient(90deg, #0b1d42 0%, #0b1d42 36%, rgba(11, 29, 66, .7) 48%, rgba(11, 29, 66, 0) 70%), url(art/hero.jpg) right center / auto 100% no-repeat, #0b1d42; }
.hero.art-stadium { background: url(art/hero.jpg) center 74% / cover no-repeat; }
.hero.art-trophy { background: url(art/trophy.jpg) center / cover no-repeat; }
.splash { background: linear-gradient(180deg, rgba(6, 18, 42, .55) 0%, rgba(6, 18, 42, 0) 34%, rgba(6, 18, 42, 0) 68%, rgba(6, 18, 42, .82) 86%, rgba(6, 18, 42, .95) 100%), url(art/splash.jpg) center top / auto 116% no-repeat, #081a3c; padding-top: 30px; }
.splash .markimg { width: 84px; height: 92px; }
.splash .logo { font-size: 36px; }
.splash .tag { font-size: 15.5px; margin-top: 6px; }
.splash-art { background: none; -webkit-mask-image: none; mask-image: none; }
.splash .logo, .splash .tag { text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.auth { background: linear-gradient(180deg, rgba(8, 22, 50, .9) 0%, rgba(8, 22, 50, .96) 100%), url(art/splash.jpg) center / cover no-repeat; }

/* ---------- v1.4: desktop showcase around the phone (as in the design mockup) ---------- */
.promo-top, .promo-bottom { display: none; }
@media (min-width: 1000px) and (min-height: 700px) {
  .stage { flex-direction: column; justify-content: space-between; padding: 18px 36px 16px; gap: 12px; }
  .phone { height: min(780px, calc(100dvh - 215px)); flex: none; }
  .promo-top, .promo-bottom { display: flex; align-items: center; width: 100%; max-width: 1400px; color: #fff; }
  .promo-top { justify-content: space-between; }
  .promo-brand { display: flex; align-items: center; gap: 12px; }
  .promo-brand img { width: 50px; height: 55px; }
  .promo-logo { font-weight: 800; font-style: italic; font-size: 38px; letter-spacing: -.6px; }
  .promo-logo b { color: var(--green); }
  .promo-tag { border-left: 1.5px solid rgba(255, 255, 255, .45); margin-left: 14px; padding-left: 22px; font-size: 16px; color: #e2e8f0; line-height: 1.3; }
  .promo-tag strong { display: block; font-size: 23px; font-weight: 500; color: #fff; }
  .promo-stores { display: flex; gap: 10px; }
  .promo-stores button { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 16px; font-weight: 500; padding: 9px 20px 9px 16px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .07); }
  .promo-stores button:hover { background: rgba(255, 255, 255, .16); }
  .promo-stores svg { width: 28px; height: 28px; }
  .promo-bottom { justify-content: center; gap: 0; }
  .promo-feat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 14px; font-weight: 500; line-height: 1.25; padding: 0 30px; border-right: 1px solid rgba(255, 255, 255, .3); }
  .promo-feat svg { width: 30px; height: 30px; color: var(--gold); }
  .promo-feat:nth-last-child(2) { border-right: 0; }
  .promo-sign { margin-left: 34px; text-align: center; }
  .promo-sign .promo-logo { font-size: 32px; display: block; }
  .promo-sign em { display: block; font-size: 16px; font-weight: 600; border-bottom: 3px solid var(--green); border-radius: 2px; padding-bottom: 3px; }
}
@media (min-width: 1000px) and (min-height: 700px) and (max-width: 1250px) {
  .promo-tag { display: none; }
  .promo-feat { padding: 0 16px; font-size: 12.5px; }
}

/* v1.5 extras picker */
.xpick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.xpick button { padding: 14px 4px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; font-size: 14px; }
.xpick button:active { transform: scale(.96); }
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.chips button { padding: 12px 0; border-radius: 12px; background: #eef1f6; color: #334155; font-weight: 800; font-size: 15px; border: 2px solid transparent; }
.chips button.on { background: var(--green-2); color: #fff; border-color: var(--green); }
.chips button:disabled { opacity: .35; }

/* ---------- v1.4: custom tournament cover image ---------- */
.hero.has-cover { background-color: #0a1a3a; background-position: center; background-size: cover; background-repeat: no-repeat; }
.hero.has-cover::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 26, 58, .15) 0%, rgba(10, 26, 58, .35) 45%, rgba(10, 26, 58, .9) 100%); pointer-events: none; }
.hero.has-cover > * { position: relative; }
.hero.has-cover > .trophy, .hero.has-cover > .chev { position: absolute; }
.t-hero.has-cover { padding-top: 120px; }
.imgf.wide img { width: 84px; height: 46px; border-radius: 8px; }
.sheet-err { margin: -4px 0 14px; padding: 10px 12px; border-radius: 10px; background: #fef2f2; color: #b91c1c; font-size: 13px; font-weight: 600; }
/* Home banner: darken the left side so the title stays readable over a photo */
.banner.has-cover::before { background: linear-gradient(90deg, rgba(10, 26, 58, .85) 0%, rgba(10, 26, 58, .55) 45%, rgba(10, 26, 58, .1) 100%); }
[hidden] { display: none !important; }
