/* Pusryčių Taurė — švarus, skaitomas dizainas (Figtree, FotMob-stiliaus aiškumas). */

:root {
  --bg: #f4efe4;
  --card: #ffffff;
  --ink: #1b1a16;
  --muted: #75715f;
  --faint: #a8a28c;
  --line: #e9e2d3;
  --green: #15663f;
  --green-d: #0f4c2e;
  --green-soft: #e7f0ea;
  --orange: #df611d;
  --yolk: #f7c64f;
  --yolk-soft: #fdf2d4;
  --red: #c2402a;
  --shadow: 0 1px 2px rgba(28, 27, 22, 0.06), 0 4px 14px rgba(28, 27, 22, 0.05);
  --r: 14px;
  --maxw: 480px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Figtree', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
[hidden] { display: none !important; } /* kad #topbar/#tabbar tikrai pasislėptų login lange */
.num { font-variant-numeric: tabular-nums lining-nums; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
button { font-family: inherit; }

/* ---------- topbar ---------- */
#topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: var(--maxw); margin: 0 auto; padding: 12px 16px;
  background: rgba(244, 239, 228, 0.92);
  backdrop-filter: saturate(1.1) blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-emblem {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--green); color: #fff; border-radius: 11px;
}
.brand-emblem svg { width: 23px; height: 23px; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.brand-text small { font-size: 12px; color: var(--muted); font-weight: 500; }
.icon-btn {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px;
  background: var(--card); color: var(--muted);
  border: 1px solid var(--line); border-radius: 11px; cursor: pointer;
}
.icon-btn:active { transform: scale(0.96); }

/* ---------- main ---------- */
#view {
  max-width: var(--maxw); margin: 0 auto;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 16px calc(86px + var(--safe-b));
}
.boot, .empty { text-align: center; color: var(--muted); padding: 56px 12px; font-weight: 500; }
.empty { padding: 44px 12px; }

/* day / section header */
.day-head {
  display: flex; align-items: center; gap: 10px; margin: 22px 2px 11px;
}
.day-head:first-child { margin-top: 4px; }
.day-head h2 {
  font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--green-d); white-space: nowrap;
}
.day-head .rule { flex: 1; height: 1px; background: var(--line); }
.day-head .count { font-size: 12px; color: var(--faint); font-weight: 600; }

/* ---------- match card ---------- */
.match {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 13px 14px 11px; margin-bottom: 11px;
  animation: rise 0.35s ease backwards;
}
.match.clickable { cursor: pointer; transition: transform 0.08s, box-shadow 0.15s; }
.match.clickable:active { transform: scale(0.992); }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } }

.m-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 11px; font-size: 12px;
}
.m-stage { color: var(--muted); font-weight: 600; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}
.chip svg { width: 13px; height: 13px; }
.chip.time { background: var(--bg); color: var(--muted); }
.chip.live { background: #fdecec; color: var(--red); }
.chip.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.2s infinite; }
.chip.done { background: var(--green-soft); color: var(--green-d); }
.chip.lock { background: var(--bg); color: var(--faint); }
@keyframes pulse { 50% { opacity: 0.35; } }

.teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; }
.flag {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover;
  border: 1px solid var(--line); background: #f0ece1;
}
.flag-tbd {
  display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--faint);
}
.team-name {
  font-size: 14px; font-weight: 700; text-align: center; line-height: 1.15;
  letter-spacing: -0.01em; max-width: 130px;
}

/* center: steppers (predict) */
.predict { display: flex; align-items: center; gap: 8px; }
.stepper { display: flex; flex-direction: column; align-items: center; gap: 0; }
.stepper button {
  width: 40px; height: 28px; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer;
  touch-action: manipulation;
}
.stepper button:first-child { border-radius: 9px 9px 0 0; }
.stepper button:last-child { border-radius: 0 0 9px 9px; border-top: none; }
.stepper button:active { background: var(--green-soft); color: var(--green-d); }
.stepper button svg { width: 17px; height: 17px; }
.stepper .val {
  font-size: 22px; font-weight: 800; width: 40px; height: 34px;
  display: grid; place-items: center; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.predict .colon { font-size: 20px; font-weight: 800; color: var(--faint); }

/* center: final score (locked) */
.score { display: flex; align-items: center; gap: 7px; font-weight: 800; }
.score .n {
  min-width: 34px; height: 40px; display: grid; place-items: center; font-size: 26px;
  background: var(--bg); border-radius: 9px;
}
.score.win-a .n:first-child, .score.win-b .n:last-child { background: var(--green); color: #fff; }
.score .sep { color: var(--faint); font-weight: 700; }
.score.tbd .n { color: var(--faint); }
.score.nopred .n { color: var(--faint); }
.score.hit .n { background: var(--green); color: #fff; }
.score.miss .n { background: var(--red); color: #fff; }
.mypick-wrap { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.pick-cap { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--faint); }
.pick-cap.ok { color: var(--green); }
.pick-cap.bad { color: var(--red); }
.result { display: inline-flex; align-items: baseline; gap: 6px; font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.result b { font-size: 18px; color: var(--ink); font-weight: 800; text-transform: none; letter-spacing: 0; }
.result.live { color: var(--red); }

/* koeficientai (1 X 2) */
.odds { display: flex; gap: 6px; margin-top: 11px; }
.odds .o {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px;
  font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums;
}
.odds .o i { font-style: normal; color: var(--muted); font-weight: 700; font-size: 11px; }

/* per-match išsaugojimo mygtukas */
.save-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; margin-top: 11px; padding: 11px; border: none; border-radius: 11px;
  background: var(--green); color: #fff; font-weight: 800; font-size: 14px; cursor: pointer;
  transition: transform 0.06s, background 0.15s;
}
.save-btn svg { width: 17px; height: 17px; }
.save-btn:active { transform: scale(0.99); }
.save-btn.saved { background: var(--bg); color: var(--muted); cursor: default; }

/* footer */
.m-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 13px;
}
.pick { color: var(--muted); font-weight: 500; }
.pick b { font-weight: 800; color: var(--ink); }
.pick.none { color: var(--red); font-weight: 600; }
.foot-right { display: flex; align-items: center; gap: 9px; }
.pts {
  font-weight: 800; font-size: 13px; padding: 2px 9px; border-radius: 999px;
  background: var(--orange); color: #fff;
}
.pts.zero { background: var(--bg); color: var(--muted); }
.saved { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-weight: 700; opacity: 0; transition: opacity 0.2s; }
.saved.show { opacity: 1; }
.saved svg { width: 16px; height: 16px; }
.see {
  display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-weight: 700;
}
.see svg { width: 16px; height: 16px; }

/* ---------- page title ---------- */
.page-title { display: flex; align-items: center; gap: 9px; margin: 6px 2px 16px; }
.page-title .pt-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--green-soft); color: var(--green-d); }
.page-title .pt-ic svg { width: 20px; height: 20px; }
.page-title h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.subnote { text-align: center; color: var(--faint); font-size: 12px; font-weight: 500; margin: 18px 0 0; }

/* ---------- leaderboard (simple) ---------- */
.lb-row {
  display: grid; grid-template-columns: 30px 1fr auto auto 14px; align-items: center; gap: 11px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 11px 14px; margin-bottom: 8px;
}
.lb-row.clickable { cursor: pointer; transition: transform 0.07s; }
.lb-row.clickable:active { transform: scale(0.992); }
.lb-go { display: grid; place-items: center; color: var(--faint); }
.lb-go svg { width: 16px; height: 16px; }
.lb-row.me { background: var(--yolk-soft); border-color: var(--yolk); }
.lb-row.top1 .lb-rank { color: var(--orange); }
.lb-rank { font-size: 17px; font-weight: 800; color: var(--faint); text-align: center; }
.lb-name { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-name small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.lb-move { display: grid; place-items: center; width: 18px; }
.lb-move svg { width: 17px; height: 17px; }
.lb-move.u { color: var(--green); }
.lb-move.d { color: var(--red); }
.lb-move.s { color: var(--faint); }
.lb-pts { font-size: 20px; font-weight: 800; min-width: 34px; text-align: right; }

/* ---------- žaidėjų čempionų spėjimai ---------- */
.champs-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 16px;
}
.champs-card h3 {
  font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 7px; margin-bottom: 10px;
}
.champs-card h3 svg { width: 18px; height: 18px; color: var(--orange); }
.champ-row {
  display: grid; grid-template-columns: 1fr 26px auto; align-items: center; gap: 12px;
  padding: 9px 0; border-top: 1px solid var(--line);
}
.champ-row .cn { font-weight: 700; font-size: 15px; }
.champ-row .cflag { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); object-fit: cover; background: var(--bg); }
.champ-row .ct { font-weight: 700; font-size: 14px; color: var(--ink); text-align: left; min-width: 92px; }

/* ---------- grupių turnyro lentelė ---------- */
.grp-note { color: var(--muted); font-size: 12px; font-weight: 600; margin: 0 2px 12px; }
.grp {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px;
}
.grp-h { font-weight: 800; font-size: 14px; padding: 10px 14px; background: var(--green); color: #fff; }
.gr-row {
  display: grid; grid-template-columns: 24px 1fr 26px 40px 28px; align-items: center; gap: 8px;
  padding: 9px 14px; border-top: 1px solid var(--line); font-size: 14px;
}
.gr-row.gr-head {
  font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.03em; border-top: none; background: var(--bg); padding: 7px 14px;
}
.gr-pos { font-weight: 800; color: var(--faint); text-align: center; font-variant-numeric: tabular-nums; }
.gr-row.qual { box-shadow: inset 3px 0 0 var(--green); }
.gr-row.qual .gr-pos { color: var(--green); }
.gr-team { display: flex; align-items: center; gap: 8px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gr-team img, .gr-tbd { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.gr-team img { border: 1px solid var(--line); object-fit: cover; }
.gr-tbd { background: var(--bg); border: 1px solid var(--line); }
.gr-n { text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.gr-pts { text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- bonus ---------- */
.bonus-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px;
}
.bonus-card .badge {
  float: right; background: var(--green); color: #fff; font-weight: 800; font-size: 12px;
  padding: 3px 10px; border-radius: 999px;
}
.bonus-card h3 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.bonus-card h3 svg { width: 19px; height: 19px; color: var(--orange); }
.bonus-card p { margin: 7px 0 15px; color: var(--muted); font-size: 14px; }
.field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 7px; }
select, input[type='text'], input[type='password'] {
  width: 100%; font-family: inherit; font-weight: 600; font-size: 16px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 13px;
  appearance: none;
}
select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2375715f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
select:focus, input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

/* day filter bar */
.filter-bar { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; }
.filter-bar .fb-ic { display: grid; place-items: center; width: 38px; height: 44px; flex: none; color: var(--muted); }
.filter-bar .fb-ic svg { width: 19px; height: 19px; }
.filter-bar select { flex: 1; font-weight: 700; }

/* ---------- taisyklės (rules) ---------- */
.rules .r-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px;
}
.rules h3 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.rules h3 svg { width: 19px; height: 19px; color: var(--green); flex: none; }
.rules p { color: var(--muted); font-size: 14px; margin: 7px 0 0; }
.rules p b { color: var(--ink); font-weight: 700; }
.rules p.step { margin-top: 9px; }
.rules p.step svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--green); }
.pt-table { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.pt-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px;
  padding: 10px 12px; background: var(--bg); border-radius: 11px;
}
.pt-ex { display: flex; align-items: center; gap: 6px; }
.pt-ex .mini {
  font-weight: 800; font-size: 14px; padding: 3px 8px; border-radius: 7px;
  background: var(--card); border: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.pt-ex .mini.res { background: var(--ink); color: var(--card); border-color: var(--ink); }
.pt-ex .ar { color: var(--faint); font-weight: 700; }
.pt-meta b { display: block; font-size: 14px; font-weight: 800; }
.pt-meta small { color: var(--muted); font-size: 12px; }
.pt-badge {
  font-weight: 800; font-size: 15px; padding: 4px 12px; border-radius: 999px;
  background: var(--green); color: #fff; font-variant-numeric: tabular-nums;
}
.pt-badge.z { background: var(--card); color: var(--muted); border: 1px solid var(--line); }
.rule-note { display: flex; gap: 9px; color: var(--muted); font-size: 13px; margin-top: 11px; }
.rule-note svg { width: 17px; height: 17px; flex: none; color: var(--faint); margin-top: 1px; }
.lock-note {
  display: flex; align-items: center; gap: 9px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px;
  color: var(--muted); font-size: 13px; font-weight: 500; margin-bottom: 14px;
}
.lock-note svg { width: 18px; height: 18px; flex: none; color: var(--faint); }

/* čempiono pasirinkimas — kortelės pagal koeficientą */
.bonus-intro {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px;
}
.bonus-intro .badge {
  float: right; background: var(--green); color: #fff; font-weight: 800; font-size: 12px;
  padding: 3px 10px; border-radius: 999px;
}
.bonus-intro h3 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.bonus-intro h3 svg { width: 19px; height: 19px; color: var(--orange); }
.bonus-intro p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.champ-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.champ-pick {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; cursor: pointer; box-shadow: var(--shadow);
  transition: border-color 0.12s, background 0.12s;
}
.champ-pick img, .cp-tbd { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.champ-pick img { border: 1px solid var(--line); object-fit: cover; }
.cp-tbd { background: var(--bg); border: 1px solid var(--line); }
.cp-name { flex: 1; font-weight: 700; font-size: 15px; color: var(--ink); }
.cp-odd { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink); min-width: 36px; text-align: right; }
.cp-odd.none { color: var(--faint); }
.champ-pick.selected { border-color: var(--green); background: var(--green-soft); }
.champ-pick.selected .cp-name { color: var(--green-d); }
.champ-pick:disabled { cursor: default; }
.champ-save { position: sticky; bottom: calc(78px + var(--safe-b)); z-index: 6; box-shadow: 0 6px 18px rgba(21, 102, 63, 0.32); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; font-weight: 800; font-size: 16px;
  background: var(--green); color: #fff; border: none; border-radius: 12px;
  padding: 14px; cursor: pointer; transition: transform 0.06s, background 0.15s;
}
.btn svg { width: 19px; height: 19px; }
.btn:active { transform: scale(0.985); background: var(--green-d); }
.btn[disabled] { opacity: 0.5; cursor: default; }
.btn.ghost { background: var(--card); color: var(--red); border: 1px solid var(--line); }
.btn.ghost:active { background: var(--bg); }
.r-card.acct { text-align: center; }
.r-card.acct p { margin: 2px 0 12px; }

/* ---------- login ---------- */
.login-wrap { max-width: 380px; margin: 7vh auto 0; animation: rise 0.45s ease backwards; }
.login-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 26px 22px; text-align: center;
}
.login-emblem {
  width: 64px; height: 64px; margin: 0 auto 14px; display: grid; place-items: center;
  background: var(--green); color: #fff; border-radius: 18px;
}
.login-emblem svg { width: 36px; height: 36px; }
.login-card .kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); }
.login-card h1 { font-size: 27px; font-weight: 800; margin: 4px 0 6px; letter-spacing: -0.02em; }
.login-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.seg { display: flex; gap: 4px; background: var(--bg); border-radius: 11px; padding: 4px; margin-bottom: 16px; }
.seg button { flex: 1; font-weight: 700; font-size: 14px; padding: 9px; border: none; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.field { text-align: left; }
.field + .field { margin-top: 12px; }
.err { color: var(--red); font-weight: 600; font-size: 13px; margin: 12px 0 0; min-height: 17px; }
.login-go { margin-top: 16px; }
.foot-note { text-align: center; color: var(--faint); font-size: 12px; font-weight: 500; margin: 16px 0 0; }

/* ---------- bottom nav ---------- */
#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; max-width: var(--maxw); margin: 0 auto;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding-bottom: var(--safe-b);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: none; border: none; padding: 8px 0 7px; cursor: pointer;
  color: var(--faint); font-weight: 600; font-size: 10.5px; letter-spacing: -0.01em;
}
.tab-ico { display: grid; place-items: center; }
.tab-ico svg { width: 21px; height: 21px; }
.tab.on { color: var(--green); }

/* ---------- PWA install bar ---------- */
.install-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(74px + var(--safe-b)); z-index: 40;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff; border: none; border-radius: 999px;
  padding: 11px 18px; font-weight: 700; font-size: 14px; cursor: pointer;
  box-shadow: 0 6px 18px rgba(21, 102, 63, 0.4);
  animation: rise 0.4s ease backwards;
}
.install-bar svg { width: 18px; height: 18px; }

/* ---------- modal sheet ---------- */
.modal-bg {
  position: fixed; inset: 0; z-index: 50; background: rgba(20, 20, 16, 0.45);
  display: flex; align-items: flex-end; justify-content: center; animation: fade 0.2s;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%; max-width: var(--maxw); max-height: 84dvh; overflow: auto;
  background: var(--bg); border-radius: 20px 20px 0 0;
  padding: 14px 16px calc(22px + var(--safe-b)); animation: slideup 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes slideup { from { transform: translateY(100%); } }
.grip { width: 42px; height: 5px; background: var(--line); border-radius: 3px; margin: 0 auto 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-head h3 { font-size: 18px; font-weight: 800; }
.sheet-sub { color: var(--muted); font-size: 13px; margin-bottom: 13px; font-weight: 500; }
.sheet-score {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-weight: 800;
}
.sheet-score .t { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.sheet-score .t img { width: 26px; height: 26px; border-radius: 50%; }
.sheet-score .sc { font-size: 22px; }
.pred-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px;
  padding: 11px 13px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; margin-bottom: 7px;
}
.pred-row.best { border-color: var(--yolk); background: var(--yolk-soft); }
.pred-row .pn { font-weight: 700; }
.pred-row .ps { font-weight: 800; font-size: 17px; }
.pred-row .pp { font-weight: 800; font-size: 13px; padding: 2px 9px; border-radius: 999px; background: var(--orange); color: #fff; }
.pred-row .pp.zero { background: var(--bg); color: var(--muted); }

/* žaidėjo statistikos langas */
.ps-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ps-rank { font-weight: 700; color: var(--muted); font-size: 14px; }
.ps-total { font-weight: 800; font-size: 22px; color: var(--green-d); }
.ps-champ {
  display: flex; align-items: center; gap: 8px; background: var(--green-soft); color: var(--green-d);
  border-radius: 11px; padding: 10px 13px; font-size: 14px; font-weight: 600; margin-bottom: 12px;
}
.ps-champ svg { width: 17px; height: 17px; }
.ps-champ b { font-weight: 800; }
.ps-grid { display: grid; gap: 8px; margin-bottom: 10px; }
.ps-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.ps-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.ps-cell {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 11px 6px;
}
.ps-v { font-weight: 800; font-size: 19px; }
.ps-l { font-size: 11px; color: var(--muted); font-weight: 600; text-align: center; }
.ps-sub { font-weight: 800; font-size: 14px; margin: 14px 0 9px; }
.ps-sub small { font-weight: 500; color: var(--faint); }
.ps-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-bottom: 7px;
}
.ps-match { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-match b { font-weight: 800; }
.ps-res { font-size: 13px; font-weight: 700; color: var(--muted); }
