/* Fishertop (Žvejybos turnyrai) – stiliai.
   Projektuota lauko sąlygoms: dideli paspaudimo plotai, aukštas kontrastas, veiksmai nykščio zonoje. */

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A1822;
  --surface: #102433;
  --surface-2: #15304A;
  --line: #1E3A50;
  --line-2: #2A5170;
  --text: #EEF4F7;
  --soft: #C9D7E0;
  --muted: #A3B8C6;
  --accent: #FFA62B;
  --accent-ink: #FFA62B;
  --on-accent: #1A1206;
  --ok-bg: #123A2E; --ok: #5BE3A6;
  --wait-bg: #3A2E10; --wait: #FFC861;
  --bad-bg: #3D1C1C; --bad: #FF9A8A;
  --queue-bg: #1E3142; --queue: #B8C9D4;
  --nav: #0D1E2B;
  --fish-bg: #1B3A33; --fish: #8DB07A;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #F3F6F8;
  --surface: #FFFFFF;
  --surface-2: #E8F0F6;
  --line: #CAD7E0;
  --line-2: #9DB3C4;
  --text: #0A1822;
  --soft: #233848;
  --muted: #43586A;
  --accent: #FF9A1F;
  --accent-ink: #934600;
  --on-accent: #1A1206;
  --ok-bg: #D9F3E6; --ok: #0A6640;
  --wait-bg: #FFEFC7; --wait: #6E4A00;
  --bad-bg: #FCE0DB; --bad: #9E2316;
  --queue-bg: #E3EBF1; --queue: #2E4556;
  --nav: #FFFFFF;
  --fish-bg: #DCEBDD; --fish: #3F6B2E;
  --shadow: 0 8px 24px rgba(10, 24, 34, 0.15);
}

@media (prefers-color-scheme: light) {
  [data-theme="auto"] {
    color-scheme: light;
    --bg: #F3F6F8;
    --surface: #FFFFFF;
    --surface-2: #E8F0F6;
    --line: #CAD7E0;
    --line-2: #9DB3C4;
    --text: #0A1822;
    --soft: #233848;
    --muted: #43586A;
    --accent: #FF9A1F;
    --accent-ink: #934600;
    --on-accent: #1A1206;
    --ok-bg: #D9F3E6; --ok: #0A6640;
    --wait-bg: #FFEFC7; --wait: #6E4A00;
    --bad-bg: #FCE0DB; --bad: #9E2316;
    --queue-bg: #E3EBF1; --queue: #2E4556;
    --nav: #FFFFFF;
    --fish-bg: #DCEBDD; --fish: #3F6B2E;
    --shadow: 0 8px 24px rgba(10, 24, 34, 0.15);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.45 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
body.dark-screen { background: #06121B; }
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1:focus { outline: none; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

#app { max-width: 520px; margin: 0 auto; min-height: 100dvh; position: relative; }
#view { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
body.no-nav #view { padding-bottom: 0; }

/* ---------- Tipografija ---------- */
.display-lg, .display-md, .num-md, .num-sm, .rank, .rank-big, .rank-huge, .stat-value, .len-readout {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.display-lg { margin: 0; font-size: 40px; line-height: 1; }
.display-md { margin: 0; font-size: 30px; line-height: 1.05; }
.h2 { margin: 0; font-size: 18px; font-weight: 800; }
.num-md { font-size: 24px; line-height: 1; }
.num-sm { font-size: 21px; line-height: 1; }
.small { font-size: 13px; }
.strong { font-weight: 700; }
.muted { color: var(--muted); }
.accent { color: var(--accent-ink); }
.warn { color: var(--wait); font-weight: 700; }
.bad { color: var(--bad); font-weight: 700; }
.cap { text-transform: capitalize; margin: 0; }
.right { text-align: right; }
.left { text-align: left; }
.center { text-align: center; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
p { margin: 0; }

/* ---------- Išdėstymas ---------- */
.screen { padding: 20px 16px 28px; display: flex; flex-direction: column; gap: 18px; }
.screen.has-cta { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
.screen.has-sticky { padding-bottom: 96px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack-lg { display: flex; flex-direction: column; gap: 20px; }
.stack-6 { display: flex; flex-direction: column; gap: 6px; }
.stack-2 { display: flex; flex-direction: column; gap: 6px; }
.stack-1 { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.row.tight { gap: 12px; padding: 10px 12px 10px 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.baseline { align-items: baseline; }
.grow { flex: 1; min-width: 0; }
.pad-x { padding: 0 4px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
ol.plain { list-style: none; margin: 0; padding: 0; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 4px; }
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; }

/* ---------- Kortelės ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
.card-link { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 10px; }
.card-link.row { flex-direction: row; }
.card-link:active { transform: scale(0.99); }
.hero { background: var(--surface-2); border-color: var(--line-2); border-radius: 22px; gap: 14px; }
.t-title { font-size: 18px; font-weight: 700; line-height: 1.25; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--soft); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { color: var(--muted); }

.stat-box { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--surface); min-width: 0; }
.hero .stat-box { background: var(--bg); }
.hero .stat-value { font-size: 24px; }
.stat-box.center { align-items: center; border: 1px solid var(--line); }
.stat-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.stat-value { font-size: 28px; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.progress { height: 8px; border-radius: 4px; background: var(--bg); overflow: hidden; }
.hero .progress { background: var(--bg); }
.progress > div { height: 100%; border-radius: 4px; background: var(--accent); }

.demo-note {
  display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--wait);
  background: var(--wait-bg); padding: 10px 12px; border-radius: 12px;
}
.demo-note svg { flex: none; margin-top: 1px; }

/* ---------- Žymos ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 13px; font-size: 13px; font-weight: 700; white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; border-radius: 4px; background: currentColor; }
.badge-live { background: var(--ok-bg); color: var(--ok); }
.badge-soon { background: var(--wait-bg); color: var(--wait); }
.badge-done { background: var(--queue-bg); color: var(--queue); }
.badge-mine { background: var(--surface-2); color: var(--accent-ink); border: 1px solid var(--line-2); }
.badge-role { background: var(--surface-2); color: var(--soft); border: 1px solid var(--line-2); }
.team-card .role-row { min-height: 44px; }
.team-card a.link-plain { min-height: 44px; display: flex; align-items: center; }
.role-desc { align-items: flex-start; text-align: left; }
.role-desc dt, .role-desc dd { text-align: left; width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px;
  border-radius: 14px; font-size: 13px; font-weight: 700; white-space: nowrap; flex: none;
}
.chip-ok { background: var(--ok-bg); color: var(--ok); }
.chip-wait { background: var(--wait-bg); color: var(--wait); }
.chip-bad { background: var(--bad-bg); color: var(--bad); }
.chip-queue { background: var(--queue-bg); color: var(--queue); }

/* ---------- Mygtukai ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font-size: 16px; font-weight: 700; text-decoration: none;
}
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 800; }
.btn-outline { background: transparent; border: 1.5px solid var(--line-2); }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-bg); }
.btn-dashed { background: transparent; border: 1.5px dashed var(--line-2); min-height: 56px; }
.btn-lg { min-height: 60px; font-size: 18px; border-radius: 18px; width: 100%; }
.row .btn-lg { width: auto; }
.btn-text { background: none; border: 0; color: var(--accent-ink); font-weight: 700; padding: 8px 0; min-height: 44px; }
.link { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; text-decoration: none; min-height: 44px; }

.icon-btn {
  flex: none; width: 48px; height: 48px; padding: 0; border-radius: 24px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.icon-btn-accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); border-radius: 16px; }
.sq-btn {
  width: 56px; height: 56px; border-radius: 18px; border: 1px solid var(--line-2);
  background: var(--surface); display: inline-flex; align-items: center; justify-content: center;
}
.pill-btn {
  height: 44px; padding: 0 16px; border-radius: 22px; border: 0;
  background: rgba(6, 18, 27, 0.82); color: #EEF4F7; font-size: 14px; font-weight: 700;
}

.seg {
  display: flex; gap: 4px; padding: 4px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.seg button {
  flex: 1; min-height: 44px; border: 0; border-radius: 12px; background: transparent;
  color: var(--muted); font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 6px;
}
.seg button span { font-size: 12px; opacity: 0.8; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chip {
  min-height: 48px; padding: 0 16px; border-radius: 24px; border: 1.5px solid var(--line-2);
  background: var(--surface); font-size: 15px; font-weight: 700;
}
.sp-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ---------- Sąrašai ---------- */
.list { margin: 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.list-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 56px;
  border: 0; border-bottom: 1px solid var(--line); width: 100%; background: transparent;
  color: var(--text); text-decoration: none; font-size: 15px;
}
.list-row:last-child { border-bottom: 0; }
.list-row dd { margin: 0; }
.list-row select { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px; min-height: 40px; }

.rank { width: 30px; text-align: center; font-size: 22px; color: var(--muted); flex: none; }
.rank.r1 { color: var(--accent-ink); }
.rank.r2 { color: var(--soft); }
.rank.r3 { color: #C98B5E; }
[data-theme="light"] .rank.r3 { color: #8A5530; }
.rank-big { font-size: 30px; line-height: 1; flex: none; min-width: 44px; }
.rank-huge { font-size: 64px; line-height: 0.9; }

.board-row { border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); padding: 10px 14px 10px 10px; }
.board-row.mine { border-color: var(--accent); background: var(--surface-2); }
.board-row .rank { color: var(--muted); }
.board-row.mine .rank { color: var(--accent-ink); }

.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 20px; background: var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
}
.avatar-xl { width: 72px; height: 72px; border-radius: 36px; font-size: 32px; border: 3px solid var(--accent); background: var(--surface-2); font-family: 'Barlow Condensed', sans-serif; }
.ring-1 { box-shadow: 0 0 0 2px var(--accent); }
.ring-2 { box-shadow: 0 0 0 2px var(--soft); }
.ring-3 { box-shadow: 0 0 0 2px #C98B5E; }

/* Podiumas „laiptais“: 2 – 1 – 3, pirmos vietos laiptelis aukščiausias ir oranžinis */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 6px; align-items: end; margin-top: 6px; }
.podium-col { display: flex; flex-direction: column; align-items: center; min-width: 0; color: var(--text); text-decoration: none; text-align: center; }
.podium-col .who { display: flex; flex-direction: column; align-items: center; gap: 1px; padding-bottom: 5px; min-width: 0; max-width: 100%; }
.podium-col .who > span { max-width: 100%; }
.podium-col .avatar { width: 34px; height: 34px; border-radius: 17px; font-size: 14px; background: var(--surface-2); }
.podium-col .num-md { line-height: 1; font-size: 18px; }
.podium-col .blk { width: 100%; border-radius: 12px 12px 4px 4px; display: flex; flex-direction: column; align-items: center; gap: 0; padding-top: 4px; }
.podium-col .blk .rank { width: auto; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; line-height: 1; }
.podium-col.p1 .blk { height: 62px; background-color: var(--accent); background-image: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--surface))); }
.podium-col.p1 .blk .rank, .podium-col.p1 .blk .prize-amt { color: var(--on-accent); }
.podium-col.p1 .blk .rank { font-size: 30px; }
.podium-col.p1 .blk .prize-amt { font-size: 13px; }
.podium-col.p1 .avatar { width: 42px; height: 42px; border-radius: 21px; font-size: 16px; }
.podium-col.p1 .num-md { font-size: 22px; }
.podium-col.p2 .blk { height: 52px; background-color: var(--surface); background-image: linear-gradient(180deg, color-mix(in srgb, var(--soft) 45%, var(--surface)), var(--surface)); border: 1px solid var(--line-2); }
.podium-col.p2 .blk .rank { font-size: 22px; }
.podium-col.p3 .blk { height: 42px; background-color: var(--surface); background-image: linear-gradient(180deg, color-mix(in srgb, #C98B5E 30%, var(--surface)), var(--surface)); border: 1px solid var(--line); }
.podium-col.p3 .blk .rank { font-size: 18px; }
.podium-col.p3 .avatar { width: 30px; height: 30px; border-radius: 15px; font-size: 12px; }
.podium-col.p3 .num-md { font-size: 16px; }
.podium-col .lead-ic { color: var(--accent-ink); margin-bottom: -4px; }
.podium-col .blk .prize-amt { font-size: 11.5px; }
/* Prizinės vietos (4+) ir prizų riba */
.board-row.prize { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: inset 3px 0 0 var(--accent); }
.board-row.prize .rank { color: var(--accent-ink); }
.prize-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin: 6px 0; list-style: none; }
.prize-line::before, .prize-line::after { content: ''; flex: 1; border-top: 1.5px dashed var(--line-2); }
.fund-note { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 0; }
.fund-note b { color: var(--text); }
.my-sticky .meter { display: block; height: 4px; border-radius: 2px; background: var(--line); margin-top: 4px; width: 100%; overflow: hidden; }
.my-sticky .meter i { display: block; height: 100%; border-radius: 2px; background: var(--accent); }

.my-sticky {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(88px + env(safe-area-inset-bottom)); width: calc(min(520px, 100%) - 24px);
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px;
  background: var(--surface-2); border: 1.5px solid var(--accent); box-shadow: var(--shadow); z-index: 20;
}

/* ---------- Nuotraukos ---------- */
.thumb {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 12px; background: var(--fish-bg); color: var(--fish); overflow: hidden;
}
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.2s; }
.thumb img.loaded { opacity: 1; }
.thumb:has(img.loaded) > svg { visibility: hidden; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.gallery .thumb { width: 100% !important; height: auto !important; aspect-ratio: 1; }
.mod-photo .thumb { width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; border-radius: 18px; }
.mod-photo .thumb img { object-fit: contain; background: #000; }

.warn-box { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--wait-bg); color: var(--wait); font-weight: 700; font-size: 14px; }

/* ---------- Tuščios būsenos ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 12px; }
.empty-icon { width: 64px; height: 64px; border-radius: 32px; background: var(--surface); color: var(--muted); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.empty-title { font-weight: 800; font-size: 17px; }
.empty .btn { margin-top: 8px; }

/* ---------- Formos ---------- */
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field legend { padding: 0; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px;
  border: 1.5px solid var(--line-2); background: var(--surface); font-size: 16px;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.login { padding-top: 12px; }
.field input.code-input { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 34px; letter-spacing: 8px; text-align: center; min-height: 64px; }
.profile-head { display: flex; align-items: center; gap: 14px; }

/* ---------- Grafikas ---------- */
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; align-items: end; min-height: 132px; }
.bar-col { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.bar { width: 100%; max-width: 22px; border-radius: 5px 5px 2px 2px; background: #4A7FA6; }
.bar-n { font-size: 12px; font-weight: 700; min-height: 16px; }
.bar-label { font-size: 11px; color: var(--muted); letter-spacing: -0.2px; }
.bar-col.future .bar { background: var(--line); }
.bar.now { background: var(--accent); }

/* ---------- Apatinė navigacija ---------- */
#nav {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 30;
  width: min(520px, 100%); height: calc(80px + env(safe-area-inset-bottom));
  padding: 0 8px env(safe-area-inset-bottom); background: var(--nav); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
}
.nav-item {
  min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  text-decoration: none; color: var(--muted); font-size: 11.5px; font-weight: 700;
}
.nav-item.active { color: var(--accent-ink); }
.fab {
  justify-self: center; width: 64px; height: 64px; margin-top: -30px; border-radius: 32px;
  border: 4px solid var(--bg); background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(255, 166, 43, 0.35);
}

.cta-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 30;
  width: min(520px, 100%); padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--nav); border-top: 1px solid var(--line);
}

.check-banner { border: 1.5px solid var(--bad); gap: 12px; }
.check-banner .strong { color: var(--text); }
.check-strip { align-items: center; }
[data-check-request] > summary, details.card > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
a.badge.club-badge { min-height: 32px; padding: 6px 12px; }
.check-task { padding: 12px 16px; }
.capture .check-task { color: #fff; }
.check-pair figure { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.map-box { height: 62vh; min-height: 320px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); display: flex; align-items: center; justify-content: center; }
.map-box .leaflet-container, .map-box.leaflet-container { width: 100%; height: 100%; }
.leaflet-popup-content a { color: #0A5F8A; font-weight: 600; }
.sp-chip .dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.social-links { gap: 10px; }
.social-links .card { padding: 12px 14px; min-height: 52px; align-items: center; }
.follow-block { align-items: center; margin-top: 6px; }
.captcha:empty { display: none; }
.captcha { min-height: 65px; display: flex; justify-content: center; }

.reg-closed {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); color: var(--soft);
}

/* ---------- Būsena ir pranešimai ---------- */
#status { position: sticky; top: var(--top-offset, 0px); z-index: 25; padding: 8px 12px 0; }
.status-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--soft);
  font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow);
}
.status-bar.status-bad { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-bg); }
#toast {
  position: fixed; left: 50%; top: calc(12px + max(var(--top-offset, 0px), env(safe-area-inset-top))); z-index: 50;
  transform: translate(-50%, -20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 14px;
  font-weight: 700; font-size: 15px; max-width: calc(100% - 32px); transition: opacity 0.2s, transform 0.2s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Laimikio registracija ---------- */
.capture { min-height: 100dvh; background: #06121B; color: #EEF4F7; display: flex; flex-direction: column; }
.capture .icon-btn { background: #102433; border-color: #1E3A50; color: #EEF4F7; }
.cap-top { display: flex; align-items: center; gap: 10px; padding: 8px 16px; min-height: 64px; }
.cap-title { flex: 1; margin: 0; font-size: 17px; font-weight: 800; }
.cam-step { flex: 1; display: flex; flex-direction: column; }
.cam-wrap { position: relative; background: #000; aspect-ratio: 3 / 4; overflow: hidden; }
.cam-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-guide { position: absolute; left: 6%; right: 6%; top: 32%; bottom: 32%; border: 2px dashed rgba(255, 255, 255, 0.55); border-radius: 14px; pointer-events: none; }
.cam-hint { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(6, 18, 27, 0.78); font-size: 14px; font-weight: 600; text-align: center; }
.cam-error { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 20px 24px; color: #EEF4F7; }
.cam-error .muted { color: #A3B8C6; }
.cam-bar { flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px 0 calc(24px + env(safe-area-inset-bottom)); }
.shutter { width: 84px; height: 84px; border-radius: 42px; border: 4px solid #EEF4F7; background: transparent; padding: 5px; }
.shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #FFA62B; }
.shutter:disabled { opacity: 0.4; }
.shutter:active span { transform: scale(0.92); }

.details { display: flex; flex-direction: column; }
.photo-wrap { position: relative; background: #000; }
.photo-wrap img { width: 100%; max-height: 300px; object-fit: cover; }
.photo-wrap .pill-btn { position: absolute; top: 10px; right: 12px; }
.sheet {
  position: relative; margin-top: -14px; padding: 18px 16px calc(120px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; background: var(--bg); color: var(--text);
}
.len-readout { font-size: 64px; line-height: 0.95; }
.len-readout .unit { font-size: 32px; color: var(--muted); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.info { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.dot-icon { flex: none; width: 28px; height: 28px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; }
.dot-icon.ok { background: var(--ok-bg); color: var(--ok); }
.dot-icon.off { background: var(--queue-bg); color: var(--queue); }

/* Liniuotė */
.ruler {
  position: relative; height: 78px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line-2); overflow: hidden; touch-action: none; cursor: ew-resize; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.ruler-strip { position: absolute; top: 10px; left: 0; display: flex; align-items: flex-start; will-change: transform; }
.tick { flex: none; width: 14px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.tick::before { content: ''; width: 2px; height: 14px; border-radius: 1px; background: var(--line-2); }
.tick.t5::before { height: 24px; background: var(--muted); }
.tick.t10::before { height: 34px; background: var(--text); }
.tick span { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ruler-pointer { position: absolute; top: 0; left: 50%; width: 4px; margin-left: -2px; height: 52px; border-radius: 0 0 2px 2px; background: var(--accent); }

.form-error { padding: 10px 12px; border-radius: 12px; background: var(--bad-bg); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* --- Turnyrų ir profilio papildiniai --- */
.seg a {
  flex: 1; min-height: 44px; border-radius: 12px; color: var(--muted); font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.seg a[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.wrap { flex-wrap: wrap; }
.prewrap { white-space: pre-line; overflow-wrap: anywhere; }
.ok { color: var(--ok); }
.btn.bad, .list-row.bad { color: var(--bad); }
.check-row {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.check-row input, .list-row input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--accent); flex: none; margin: 0; }
.winners { border: 1.5px solid var(--accent); }
.winners li { min-height: 40px; }
.medal { font-size: 26px; line-height: 1; width: 32px; text-align: center; }
.quote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 12px 12px 0; overflow-wrap: anywhere; }
.danger-box { border: 1.5px solid var(--bad); }
details.more { border: 1px solid var(--line); border-radius: 16px; padding: 0 14px; background: var(--surface); }
details.more summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; }
details.more[open] { padding-bottom: 14px; }

.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.badge-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 12px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--muted);
}
.badge-tile.earned { color: var(--text); border-color: var(--accent); }
.badge-ico { width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; background: var(--surface-2); }
.badge-tile.earned .badge-ico { background: var(--accent); color: var(--on-accent); }
.mini-progress { width: 100%; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.mini-progress span { display: block; height: 100%; background: var(--line-2); }

.prose ul { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.prose p, .prose li { line-height: 1.5; }
.prose .h2 { margin-top: 12px; }

/* Didelio ekrano režimas */
.tv { min-height: 100vh; padding: clamp(16px, 4vw, 48px); display: flex; flex-direction: column; gap: clamp(16px, 3vw, 32px); }
.tv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.tv-title { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-size: clamp(32px, 6vw, 72px); line-height: 1; margin: 0; overflow-wrap: anywhere; }
.tv-list { display: flex; flex-direction: column; gap: clamp(6px, 1vw, 12px); }
.tv-row {
  display: grid; grid-template-columns: 2.2em minmax(0, 1fr) auto auto; gap: 0.6em; align-items: center;
  font-size: clamp(18px, min(3.4vw, 4.4vh), 44px); padding: 0.3em 0.6em; border-radius: 16px; background: var(--surface);
}
.tv-row.r1 { background: var(--accent); color: var(--on-accent); }
/* Didysis ekranas – per visą televizoriaus plotį (ne 520 px telefono stulpelis) */
#app:has(.tv) { max-width: none; }
/* Televizorius neslenka: lentelė užima likusią vietą, rėmėjai visada matomi apačioje */
.tv { height: 100vh; min-height: 0; overflow: hidden; }
.tv-list { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.tv-sponsors, .tv-foot { flex: none; }
.tv-name { min-width: 0; font-weight: 700; }
.tv-rank, .tv-score { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 800; }
.tv-meta { font-size: 0.55em; opacity: 0.8; }
.tv-empty { font-size: clamp(22px, 4vw, 40px); text-align: center; margin: auto; display: flex; gap: 12px; align-items: center; }
.tv-foot { margin-top: auto; text-align: center; }
@media (max-width: 480px) { .tv-meta { display: none; } .tv-row { grid-template-columns: 2em 1fr auto; } }
h1.empty-title { margin: 0; }

.winners a { min-height: 44px; display: flex; align-items: center; }
@media (prefers-color-scheme: light) { [data-theme="auto"] .rank.r3 { color: #8A5530; } }

/* Laimikio peržiūra */
.plain { list-style: none; margin: 0; padding: 0; }
.photo-big {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; padding: 0;
  border: 0; border-radius: 20px; overflow: hidden; background: var(--fish-bg); color: var(--fish); cursor: zoom-in;
}
.photo-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.2s; }
.photo-big img.loaded { opacity: 1; }
.photo-big:has(img.loaded) > svg { visibility: hidden; }
.photo-hint {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: 999px; background: rgba(6, 18, 27, 0.75); color: #fff; font-size: 13px; font-weight: 700;
}
.photo-big:not(:has(img.loaded)) .photo-hint { display: none; }
a.catch-link { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.gallery a { color: inherit; text-decoration: none; }
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.94); display: grid; place-items: center;
  touch-action: pinch-zoom;
}
.lightbox img { max-width: 100vw; max-height: 100vh; object-fit: contain; }
.lightbox-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; background: rgba(255, 255, 255, 0.15); color: #fff; }
button.mod-photo { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.bar.zero { background: var(--line); }

/* Veiksmo juosta virš apatinio meniu (meniu matomas visur, išskyrus kamerą ir TV režimą).
   Apačioje paliekama vietos išsikišusiam „+“ mygtukui. */
body:not(.no-nav) .cta-bar {
  bottom: calc(80px + env(safe-area-inset-bottom));
  padding: 10px 16px 40px;
  background: linear-gradient(to bottom, transparent, var(--bg) 14px);
  border-top: 0;
}
body:not(.no-nav) .screen.has-cta { padding-bottom: 130px; }

/* Prizinis fondas */
.split-row { gap: 8px; }
.split-row .place { min-width: 58px; }
.field .split-row input.pct { width: 64px; min-height: 44px; padding: 8px; text-align: center; flex: none; }
.small-btn { width: 44px; height: 44px; min-height: 44px; flex: none; }
.prize-card .list-row { gap: 10px; }
.prize-col { min-width: 76px; }
.prize-amt { display: inline-block; font-size: 13px; font-weight: 800; color: var(--accent-ink); }
.medal-sm { display: inline-block; width: 24px; }
.sponsor-row input { width: 100%; }

/* Naujas rekordas */
.celebrate {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px;
  background: rgba(6, 18, 27, 0.82); animation: fade-in 0.2s ease-out;
}
.celebrate-card {
  position: relative; z-index: 1; width: min(340px, 100%); padding: 28px 22px 22px; border-radius: 24px;
  background: var(--surface); border: 2px solid var(--accent); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: var(--shadow);
  animation: pop-in 0.35s cubic-bezier(.2, 1.4, .4, 1);
}
.celebrate-ico { width: 76px; height: 76px; border-radius: 38px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.celebrate-title { margin: 0; font-size: 20px; font-weight: 800; }
.celebrate-big { margin: 0; font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 800; font-size: 44px; line-height: 1; color: var(--accent-ink); }
.celebrate-text { margin: 0; color: var(--muted); font-size: 14px; }
.celebrate .btn { width: 100%; margin-top: 6px; }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i {
  position: absolute; top: -12px; left: var(--x); width: 9px; height: 14px; border-radius: 2px;
  background: var(--accent); transform: rotate(var(--r)); animation: fall 2.6s linear var(--d) forwards;
}
.confetti i:nth-child(3n) { background: var(--ok); }
.confetti i:nth-child(4n) { background: #4A7FA6; }
@keyframes fall { to { transform: translateY(105vh) rotate(calc(var(--r) + 540deg)); } }
@keyframes pop-in { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } .celebrate, .celebrate-card { animation: none; } }
.record-chip {
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 2px 8px; border-radius: 999px;
  background: var(--wait-bg); color: var(--wait); font-size: 12px; font-weight: 800;
}
.trip-ico { color: var(--muted); background: var(--surface-2); }

/* Organizatoriaus pranešimai ir pranešimai apie laimikius */
.ann { border-left: 3px solid var(--line-2); }
.ann.ann-new { border-left-color: var(--accent); }
.ann p { margin: 4px 0 0; }
.ann-banner { border: 1.5px solid var(--accent); gap: 12px; color: var(--accent-ink); }
.ann-banner .strong { color: var(--text); }
.ann-chip { align-self: flex-start; }
.thumb-btn { padding: 0; border: 0; background: none; cursor: zoom-in; flex: none; }
.card > input[data-reject-reason] {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line-2);
  background: var(--surface); font-size: 16px; color: var(--text);
}
.seg a { font-size: 13px; padding: 0 4px; }
.blank-open { align-self: stretch; }

/* Prisijungimas su Google */
.btn-google { background: #fff; color: #1f1f1f; border: 1.5px solid #747775; }
.btn-google:active { background: #f2f2f2; }
.or-line { display: flex; align-items: center; gap: 10px; margin: 0; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.nick-card { border: 1.5px solid var(--accent); }
.ban-card { border: 1.5px solid var(--bad); background: var(--bad-bg); }
.ban-card .strong { color: var(--bad); }
.mod-card { border: 1.5px dashed var(--line-2); }
.ban-row { gap: 12px; }
.link-plain { color: inherit; text-decoration: none; }

/* --- Formatai, dvikovos, lygos (0020) --- */
.span-2 { grid-column: 1 / -1; }
.seg.seg-grid { display: grid; grid-template-columns: 1fr 1fr; }
.seg.seg-tabs { overflow-x: auto; scrollbar-width: none; }
.seg.seg-tabs a { flex: 1 0 auto; padding: 0 12px; white-space: nowrap; }
.duel-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.duel-side { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.duel-side:last-child { text-align: right; }
.duel-side.win { outline: 2px solid var(--accent); }
.duel-side.mine .strong { color: var(--accent-ink); }
.card.duel-mine { border-color: var(--accent); }
.league-row .points { font-weight: 800; }

/* --- Statistika (0024) --- */
.stats-chart { width: 100%; height: auto; display: block; }
.stats-chart .col { fill: var(--accent); opacity: 0.55; }
.stats-chart .col.today { opacity: 1; }
.stats-chart .axis { stroke: var(--line-2); stroke-width: 1; }
.stats-chart .lbl { fill: var(--muted); font-size: 10px; }
.stat-bar { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.stat-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.stat-row { align-items: center; }

/* Administratoriaus redagavimas (0026): užrakintos taisyklės */
fieldset[disabled], input:disabled, select:disabled { opacity: .55; }
fieldset[disabled] button { cursor: not-allowed; }
.admin-note { border-left: 4px solid var(--wait); }
.log-change { align-items: flex-start; text-align: left; }

/* Rėmėjai (0027): logotipai ant balto pagrindo – kad tamsūs logotipai matytųsi ir tamsioje temoje */
.sponsor-logo { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 12px;
  padding: 8px 12px; height: 64px; min-width: 96px; max-width: 100%; box-sizing: border-box; color: #0f2430; border: 1px solid var(--line); }
.sponsor-logo img { max-height: 100%; max-width: 100%; object-fit: contain; display: block; }
.sponsor-logo-text { font-weight: 700; font-size: .95rem; text-align: center; line-height: 1.2; overflow: hidden; }
.sponsor-logo.logo-lg { height: 120px; width: 100%; padding: 14px 20px; }
.sponsor-logo.logo-md { height: 48px; min-width: 88px; padding: 6px 10px; }
.sponsor-logo.logo-sm { height: 36px; min-width: 64px; padding: 4px 8px; border-radius: 8px; font-size: .8rem; }
.sponsor-logo.logo-xs { height: 26px; min-width: 40px; max-width: 84px; padding: 3px 6px; border-radius: 6px; }
.sponsor-logo.logo-preview { height: 72px; width: 132px; flex: none; }
.sponsor-logo.logo-empty { background: var(--card-2, rgba(255,255,255,.06)); color: var(--muted); border: 1px dashed var(--line, rgba(255,255,255,.2)); }
.sponsor-main { align-items: center; text-align: center; border: 1px solid var(--wait); }
.sponsor-tile-link { display: block; text-decoration: none; }
.sponsor-tile-link:focus-visible .sponsor-logo { outline: 3px solid var(--wait); outline-offset: 2px; }
.sponsor-blurb { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--wait); margin: 0; }
.sponsor-blurb-sm { color: var(--muted); }
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.sponsor-grid .sponsor-logo { width: 100%; }
.sponsor-strip { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; }
.sponsor-strip .sponsor-tile-link { flex: none; }
.t-sponsors { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.chip-main { background: var(--wait-bg); color: var(--wait); }
.file-btn { cursor: pointer; }
.file-btn.busy { opacity: .6; pointer-events: none; }
.rot-up { display: inline-flex; transform: rotate(-90deg); }
.logo-row { align-items: center; }
.tv-sponsors { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 12px 0 4px; }
.tv-sponsors-label { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.sponsor-logo.logo-tv { height: 72px; min-width: 120px; }
.sponsor-logo.logo-tv-main { height: 104px; min-width: 200px; padding: 12px 22px; }

/* Organizatoriai (0028) */
.public-hint { margin: 4px 0 0; color: var(--muted); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.org-req { border-left: 4px solid var(--wait); }
.org-req a.link-plain { min-height: 44px; display: inline-flex; align-items: center; }
.private-note { border-left: 4px solid var(--wait); }

/* Turnyro puslapis: santrauka + skiltys (mažiau slinkimo) */
.t-screen .t-head { gap: 6px; }
.t-title-lg { line-height: 1.1; }
.t-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.t-stat { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2, rgba(255,255,255,.05));
  border: 1px solid var(--line); min-width: 0; }
.t-stat-l { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.2; }
.t-stat-v { font-size: 18px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.t-stat[data-stat="rank"] .t-stat-v, .t-stat[data-stat="fund"] .t-stat-v { color: var(--accent-ink, var(--accent)); }
.sponsor-main-row { align-items: center; padding: 10px 12px; border-color: var(--wait); }
.sponsor-main-row .sponsor-logo.logo-md { height: 56px; min-width: 108px; max-width: 132px; }
.min0 { min-width: 0; }
.clamp-2, .clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { -webkit-line-clamp: 2; }
.clamp-3 { -webkit-line-clamp: 3; }
.t-actions .btn { min-height: 44px; padding: 0 14px; font-size: 15px; }
.t-tabs { position: sticky; top: var(--top-offset, 0px); z-index: 5; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 4px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 14px -10px rgba(0,0,0,.6); }
.t-tabs button { position: relative; min-width: 0; min-height: 54px; padding: 6px 2px; border: 0; border-radius: 12px; background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; cursor: pointer; }
.t-tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.t-tab-l { font-size: clamp(10.5px, 3.1vw, 13px); font-weight: 700; line-height: 1.1; white-space: nowrap; letter-spacing: -0.01em; }
@media (max-width: 359px) { .t-tabs { padding: 3px; gap: 1px; } .t-tab-l { font-size: 10px; letter-spacing: -0.03em; } }
.t-tab-ic { position: relative; display: inline-flex; }
.t-tab-ic .tab-badge { position: absolute; top: -6px; left: 13px; }
.t-tabs button[aria-selected="true"] .tab-badge { background: var(--on-accent); color: var(--accent); }
/* Moderavimo skiltys: tas pats meniu kaip turnyre, tik nuorodos ir iki dviejų eilučių. */
.mod-tabs { grid-auto-flow: row; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-bottom: 4px; }
.mod-tabs a { position: relative; min-width: 0; min-height: 54px; padding: 6px 2px; border-radius: 12px; color: var(--muted); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.mod-tabs a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.mod-tabs a[aria-current="page"] .tab-badge { background: var(--on-accent); color: var(--accent); }
.mod-tabs .mt-s3 { grid-column: span 3; } .mod-tabs .mt-s4 { grid-column: span 4; } .mod-tabs .mt-s6 { grid-column: span 6; } .mod-tabs .mt-s12 { grid-column: span 12; }
.mod-tabs .t-tab-ic .tab-badge { left: 14px; }

/* Administravimo panelė: funkcijų jungikliai */
.af-group { display: flex; flex-direction: column; }
.af-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); cursor: pointer; }
.af-h + .af-row { border-top: 0; }
.af-row .grow { min-width: 0; }
.af-off { color: var(--bad); font-weight: 700; }
.af-h { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin: 0 0 2px; }
.af-sum { display: flex; align-items: center; gap: 14px; }
.af-big { font-family: 'Barlow Condensed', sans-serif; font-size: 34px; font-weight: 700; color: var(--accent-ink); line-height: 1; flex: none; }
.af-log li { padding: 8px 0; border-top: 1px solid var(--line); }
.af-log li:first-child { border-top: 0; }
[data-banner-card] textarea { width: 100%; resize: vertical; }

/* Skelbimas visiems (juosta virš turinio) */
#app-banner { padding: 10px 16px 0; max-width: 640px; margin: 0 auto; }
#app-banner[hidden] { display: none; }
.app-banner { display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 14px; border-radius: 14px; font-weight: 600; line-height: 1.35;
  background: var(--surface); border: 1px solid var(--accent); color: var(--text); overflow-wrap: anywhere; }
.app-banner > svg { flex: none; color: var(--accent); }
.app-banner-warn { background: var(--bad-bg); border-color: var(--bad); }
.app-banner-warn > svg { color: var(--bad); }
.app-banner-preview { padding-right: 14px; }
.app-banner-x { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 12px;
  background: transparent; color: var(--muted); cursor: pointer; }
.sponsor-logos-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.sponsor-logos-row .sponsor-logo { width: 100%; min-width: 0; height: 44px; }
.tab-badge { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--on-accent);
  font-size: 11px; font-weight: 800; align-items: center; justify-content: center; opacity: 1 !important; box-shadow: 0 0 0 2px var(--bg, #000); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; min-height: 44px; }
.ann-teaser.ann-fresh { border-color: var(--accent); }
.t-panel[hidden] { display: none; }
.desc-text { white-space: pre-wrap; }

/* Turnyrų pradžios ekranas: skyriai „Tavo turnyrai“, „Artėja“, „Vyksta“ + filtras be slinkimo į šoną */
.l-head { align-items: center; }
.l-new { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font-weight: 700; font-size: 15px; text-decoration: none; flex: none; }
.l-seg { position: sticky; top: var(--top-offset, 0px); z-index: 5; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 4px;
  border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 14px -10px rgba(0,0,0,.6); }
.l-seg button { min-width: 0; min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font-weight: 700;
  font-size: clamp(12px, 3.6vw, 15px); white-space: nowrap; padding: 0 2px; cursor: pointer; }
.l-seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.l-sec { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.l-list { display: flex; flex-direction: column; gap: 10px; }
.l-mine, .l-row { flex-direction: row; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); }
.l-place { font-family: 'Barlow Condensed', system-ui, sans-serif; font-size: 30px; font-weight: 700; line-height: 1; color: var(--accent-ink, var(--accent));
  min-width: 46px; text-align: center; flex: none; }
.l-title { line-height: 1.25; }
.l-line { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; font-size: 14px; color: var(--soft); }
.l-line > span { display: inline-flex; align-items: center; gap: 4px; }
.l-phase { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.l-phase i { width: 7px; height: 7px; border-radius: 4px; background: currentColor; display: inline-block; }
.l-live { color: var(--ok); }
.l-soon { color: var(--wait); font-weight: 700; font-size: 14px; }
.l-done { color: var(--muted); }
.l-rank { color: var(--accent-ink, var(--accent)); font-weight: 800; }
.l-bell { position: relative; display: inline-flex; color: var(--accent); flex: none; }
.l-bell::after { content: ""; position: absolute; top: -1px; right: -2px; width: 8px; height: 8px; border-radius: 4px; background: var(--accent);
  box-shadow: 0 0 0 2px var(--surface); }
.l-chev { color: var(--muted); flex: none; display: inline-flex; }
.l-logos { gap: 6px; flex-wrap: nowrap; }
.l-logos .sponsor-logo.logo-xs { height: 28px; width: 64px; min-width: 0; max-width: none; padding: 2px 5px; }
.l-promo { gap: 12px; padding: 16px; border-radius: 20px; border: 1.5px solid var(--wait); background: var(--surface); }
.l-top { align-items: flex-start; }
.l-date { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 56px; height: 60px; border-radius: 14px;
  background: var(--wait-bg); color: var(--wait); font-weight: 800; line-height: 1; flex: none; }
.l-date b { font-family: 'Barlow Condensed', system-ui, sans-serif; font-size: 28px; }
.l-date span { font-size: 12px; text-transform: uppercase; margin-top: 3px; }
.l-title-lg { font-size: 18px; font-weight: 800; line-height: 1.25; }
.l-remia { display: flex; align-items: center; gap: 10px; }
.l-remia .sponsor-logo.logo-sm { height: 34px; width: 92px; min-width: 0; padding: 4px 8px; }
.l-cta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px; background: var(--accent);
  color: var(--on-accent); font-weight: 800; font-size: 16px; }
.l-cta-done { background: transparent; border: 1px solid var(--line-2); color: var(--accent-ink, var(--accent)); }
.l-more { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0 16px; border-radius: 16px;
  border: 1px dashed var(--line-2); background: transparent; color: var(--soft); font: inherit; font-weight: 700; cursor: pointer; text-align: left; }

/* Dienoraštis: santrauka, mėnesių grupės, glaustos eilutės */
.d-head { align-items: center; }
.d-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; flex: none; }
.d-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent-ink, var(--accent)); }
.d-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.d-stat { padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.d-stat b { font-family: 'Barlow Condensed', system-ui, sans-serif; font-size: 26px; line-height: 1; white-space: nowrap; }
.d-stat span { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.25; }
.d-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.d-sel { position: relative; display: block; }
.d-sel select { width: 100%; min-height: 44px; padding: 0 34px 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); font: inherit; font-weight: 700; font-size: 14px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.d-sel::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.d-month { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 2px 0; font-size: 14px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em; }
.d-year { font-size: 20px; font-weight: 800; margin: 8px 2px 0; }
.d-list { display: flex; flex-direction: column; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.d-item + .d-item { border-top: 1px solid var(--line); }
.d-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 72px; color: var(--text); text-decoration: none; }
a.d-row:active { background: var(--surface-2); }
.d-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.d-len { font-family: 'Barlow Condensed', system-ui, sans-serif; font-size: 24px; font-weight: 700; line-height: 1; white-space: nowrap; }
.d-sp { font-weight: 700; font-size: 16px; }
.d-meta { font-size: 13px; color: var(--muted); }
.d-rec { color: var(--wait); display: inline-flex; align-self: center; }
.d-chev { color: var(--muted); display: inline-flex; flex: none; }
.d-row .chip { flex: none; }
.d-sub { padding: 0 12px 12px 76px; display: flex; flex-direction: column; gap: 8px; }
.d-sub .btn-sm { align-self: flex-start; min-height: 44px; padding: 0 14px; font-size: 14px; }
.d-trip { width: 52px; height: 52px; border-radius: 12px; background: var(--queue-bg); color: var(--queue); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.d-fold { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.d-more { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; border-radius: 14px; border: 1px dashed var(--line-2);
  background: transparent; color: var(--soft); font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 359px) { .d-sub { padding-left: 12px; } }
@media (max-width: 359px) { .d-head .display-lg { font-size: 34px; } .d-btn { padding: 0 12px; } }

/* Profilis: skirtukai Žvejyba / Nustatymai */
.p-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.p-tabs button { min-width: 0; min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.p-tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
[data-ppanel][hidden] { display: none; }
.p-mod { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2);
  color: var(--text); text-decoration: none; }
.p-mod.busy { background: var(--wait-bg); border-color: var(--wait); }
.p-mod-ic { color: var(--wait); display: inline-flex; flex: none; }
.p-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.p-q { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; color: var(--text); text-decoration: none; min-width: 0; }
.p-q span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-q svg { color: var(--accent); flex: none; }
.p-sec { font-size: 14px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 4px 2px 0; }
.p-badges { display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.p-bdg { width: 44px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--accent); flex: none; }
.p-next { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.p-bar { display: block; height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.p-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.p-chev { color: var(--muted); display: inline-flex; flex: none; }
.p-select { max-width: 52%; min-height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; padding: 0 8px; }
.list-row input.switch, input.switch { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; min-width: 50px; border-radius: 15px; background: var(--line-2); position: relative; flex: none; cursor: pointer; margin: 0;
  transition: background .15s; }
input.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 12px; background: #fff; transition: left .15s; }
input.switch:checked { background: var(--accent); }
input.switch:checked::after { left: 23px; }
input.switch:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Be ryšio */
.status-bar.off-bar { background: var(--surface-2); color: var(--text); align-items: center; }
.status-bar.off-bar svg { color: var(--wait); flex: none; }
.status-bar.off-bar .small { color: var(--muted); font-weight: 600; }
.off-note { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 0; }

/* Naujas žemėlapis */
.mp-wrap { position: relative; height: 72vh; min-height: 460px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); }
/* .mp-wrap prieš – kad MapLibre/Leaflet stiliai (position: relative) nenustatytų aukščio į 0. */
.mp-wrap > .mp-canvas { position: absolute; inset: 0; z-index: 0; isolation: isolate; }
.mp-canvas .leaflet-container, .mp-canvas.leaflet-container { width: 100%; height: 100%; }
.mp-msg { position: absolute; top: 50%; left: 0; right: 0; }
.mp-top { position: absolute; left: 10px; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; z-index: 4; pointer-events: none; }
.mp-top > * { pointer-events: auto; }
.mp-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mp-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 18px; background: rgba(10,24,34,.82);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line-2); color: #EEF4F7; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
:root[data-theme="light"] .mp-chip { background: rgba(255,255,255,.9); color: #0f2430; }
.mp-chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.mp-chip i { width: 9px; height: 9px; border-radius: 5px; display: inline-block; }
.mp-select { padding-right: 6px; }
.mp-select select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: inherit; font: inherit; font-weight: 700; padding: 0 16px 0 0; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 6px center, right 2px center; background-size: 4px 4px; background-repeat: no-repeat; min-height: 34px; }
.mp-select select option { color: #0f2430; }
.mp-seg { display: inline-flex; padding: 3px; border-radius: 18px; background: rgba(10,24,34,.82); border: 1px solid var(--line-2); }
.mp-seg[hidden] { display: none; }
.mp-seg button { min-height: 30px; padding: 0 12px; border: 0; border-radius: 14px; background: transparent; color: #9fb4c2; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.mp-seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.mp-fab { position: absolute; right: 12px; z-index: 4; width: 48px; height: 48px; border-radius: 24px; background: rgba(10,24,34,.88); border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center; color: #EEF4F7; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.35); transition: transform .15s; }
.mp-fab:active { transform: scale(.94); }
.mp-fab.busy { animation: mp-spin 1s linear infinite; }
.mp-fab-play { color: var(--accent); bottom: calc(min(46%, 300px) + 12px); }
.mp-fab-locate { bottom: calc(min(46%, 300px) + 68px); }
@keyframes mp-spin { to { transform: rotate(360deg); } }
.mp-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; max-height: min(46%, 300px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); border-top: 1px solid var(--line-2); border-radius: 20px 20px 0 0; padding: 8px 14px 14px; box-shadow: 0 -10px 30px rgba(0,0,0,.35);
  animation: mp-up .28s ease-out; }
.mp-sheet[hidden] { display: none; }
@keyframes mp-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.mp-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 8px; }
.mp-h { font-size: 16px; font-weight: 800; margin: 0; }
.mp-spots { display: flex; flex-direction: column; margin-top: 6px; }
.mp-spot { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 0; border: 0; border-top: 1px solid var(--line); background: transparent;
  color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.mp-spot b { font-family: 'Barlow Condensed', system-ui, sans-serif; font-size: 22px; color: var(--accent-ink, var(--accent)); min-width: 22px; }
.mp-mini { width: 36px; height: 36px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer; flex: none; }
.mp-cards { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-top: 8px; }
.mp-cards::-webkit-scrollbar { display: none; }
.mp-card { scroll-snap-align: start; display: flex; gap: 12px; align-items: flex-start; }
.mp-card .thumb { border-radius: 14px; }
.mp-card-top { align-items: baseline; }
.mp-len { font-family: 'Barlow Condensed', system-ui, sans-serif; font-size: 28px; font-weight: 700; line-height: 1; }
.mp-open { text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.mp-dots { display: flex; gap: 5px; justify-content: center; margin-top: 8px; }
.mp-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line-2); display: inline-block; transition: width .2s; }
.mp-dots i.on { background: var(--accent); width: 18px; }
.mp-replay { position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 16px;
  background: rgba(10,24,34,.9); border: 1px solid var(--line-2); color: #EEF4F7; }
.mp-replay[hidden] { display: none; }
.mp-track { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.15); position: relative; overflow: hidden; }
.mp-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); border-radius: 3px; }
.mp-pulse { width: 22px; height: 22px; border-radius: 11px; border: 3px solid var(--accent); box-shadow: 0 0 0 0 rgba(255,166,43,.6); animation: mp-pulse 1.4s ease-out infinite; }
@keyframes mp-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,166,43,.6); } 100% { box-shadow: 0 0 0 22px rgba(255,166,43,0); } }
.mp-me { width: 16px; height: 16px; border-radius: 8px; background: #4FC3F7; border: 3px solid #fff; box-shadow: 0 0 0 10px rgba(79,195,247,.22); }
.maplibregl-ctrl-attrib { font-size: 10px; }
@media (prefers-reduced-motion: reduce) { .mp-sheet, .mp-pulse, .mp-fab.busy { animation: none; } }

/* Klubai+ */
.cl-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; background: #fff; overflow: hidden; color: #0f2430; font-weight: 800; }
.cl-logo img { width: 100%; height: 100%; object-fit: contain; }
.cl-logo-sm { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
.cl-logo-md { width: 56px; height: 56px; border-radius: 14px; font-size: 24px; }
.cl-logo-lg { width: 76px; height: 76px; border-radius: 20px; font-size: 32px; border: 3px solid var(--bg); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.cl-logo-empty { background: var(--surface-2); color: var(--accent-ink, var(--accent)); font-family: 'Barlow Condensed', system-ui, sans-serif; }
.cl-ver { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: #4FC3F7; }
:root[data-theme="light"] .cl-ver { color: #0b6fa4; }
.cl-cover { height: 120px; border-radius: 20px; overflow: hidden; position: relative; background: linear-gradient(135deg, #1d4b66 0%, #0c2533 65%); }
.cl-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 30%, rgba(255,166,43,.28), transparent 55%); }
.cl-cover.has-img::after { background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.35)); }
.cl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-head { display: flex; gap: 12px; align-items: flex-end; margin-top: -48px; padding: 0 12px; position: relative; z-index: 1; }
.cl-name { margin: 0; overflow-wrap: anywhere; }
.cl-tabs { position: sticky; top: var(--top-offset, 0px); z-index: 5; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 4px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 14px -10px rgba(0,0,0,.6); }
.cl-tabs button { min-width: 0; min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-weight: 700;
  font-size: clamp(12.5px, 3.5vw, 14px); white-space: nowrap; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 2px; }
.cl-tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.cl-tabs button[aria-selected="true"] .tab-badge { background: var(--on-accent); color: var(--accent); }
[data-cpanel][hidden] { display: none; }
.cl-card { padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cl-card.hot { border-color: var(--accent); }
.cl-k { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: center; gap: 6px; }
.cl-trip-when { font-size: 18px; }
.cl-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cl-b { min-height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 800; border: 1px solid var(--line-2);
  background: transparent; color: var(--text); cursor: pointer; transition: transform .12s; }
.cl-b:active { transform: scale(.97); }
.cl-b.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.cl-av { display: flex; }
.cl-av span { width: 28px; height: 28px; border-radius: 14px; background: var(--surface-2); border: 2px solid var(--surface); margin-left: -6px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }
.cl-av span:first-child { margin-left: 0; }
.cl-rank { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-radius: 10px; }
.cl-rank.me { background: rgba(255,166,43,.1); }
.cl-rank b { width: 24px; font-family: 'Barlow Condensed', system-ui, sans-serif; font-size: 20px; color: var(--accent-ink, var(--accent)); }
.cl-len { font-family: 'Barlow Condensed', system-ui, sans-serif; font-size: 24px; font-weight: 700; white-space: nowrap; }
.cl-photo { display: block; border-radius: 14px; overflow: hidden; }
.cl-photo .thumb { width: 100% !important; height: 200px !important; border-radius: 14px; }
.cl-react { display: flex; gap: 6px; flex-wrap: wrap; }
.cl-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line-2);
  color: var(--text); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.cl-chip.on { border-color: var(--accent); color: var(--accent-ink, var(--accent)); background: rgba(255,166,43,.1); }
.cl-chip.pop { animation: cl-pop .35s ease-out; }
@keyframes cl-pop { 0% { transform: scale(1); } 40% { transform: scale(1.2); } 100% { transform: scale(1); } }
.cl-comments { display: flex; flex-direction: column; gap: 8px; }
.cl-comments li { display: flex; flex-direction: column; gap: 2px; }
.cl-cmt { font-size: 14px; }
.cl-perk { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 1.5px dashed var(--accent); background: rgba(255,166,43,.06); }
.cl-perk-ico { color: var(--accent); display: inline-flex; flex: none; }
.cl-code { font-family: ui-monospace, monospace; font-weight: 800; font-size: 16px; letter-spacing: .1em; padding: 6px 10px; min-height: 40px; border-radius: 10px;
  background: var(--bg); color: var(--text); border: 1px solid var(--line-2); cursor: pointer; flex: none; }
.cl-rec { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); min-height: 52px; }
.cl-rec:first-of-type { border-top: 0; }
.cl-league { padding: 0; overflow: hidden; }
.cl-lg-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; min-height: 64px; }
.cl-league li:first-child .cl-lg-row { border-top: 0; }
.cl-lg-row.me { background: rgba(255,166,43,.08); }
.cl-pos { width: 26px; font-family: 'Barlow Condensed', system-ui, sans-serif; font-size: 24px; }
.cl-league-ico { color: var(--accent); display: inline-flex; }
.btn-text.small, .link-btn.small { font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .cl-chip.pop { animation: none; } }
[data-join-request] > summary, [data-post-new] > summary, [data-trip-new] > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }

.mp-lf-bubble { background: none; border: 0; }
.mp-lf-bubble span { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 16px; border: 2.5px solid #0A1822;
  color: #0A1822; font-weight: 800; font-size: 14px; box-shadow: 0 0 0 4px rgba(255,255,255,.35), 0 3px 8px rgba(0,0,0,.4); }

/* Savos taškų taisyklės: kūrėjas virš ekrano */
body.rb-open { overflow: hidden; }
.rb-overlay { position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.rb-screen { max-width: 640px; margin: 0 auto; padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.rb-num { display: inline-flex; width: 26px; height: 26px; border-radius: 13px; background: var(--accent); color: var(--on-accent); font-weight: 800;
  align-items: center; justify-content: center; font-size: 14px; flex: none; }
.rb-t { display: grid; grid-template-columns: minmax(0, 1fr) 56px 60px 52px 32px; gap: 6px; align-items: center; font-size: 14px; }
.rb-t .hd { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.rb-in { width: 100%; min-width: 0; min-height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text);
  text-align: center; font: inherit; font-weight: 700; padding: 0 4px; }
.rb-in-sm { display: inline-block; width: 50px; min-height: 40px; margin: 0 2px; }
.rb-lbl { white-space: nowrap; min-width: 0; }
.rb-tie { min-height: 48px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--text); font: inherit; }
.rb-val { width: 64px; flex: none; }
.rb-x-lbl { color: var(--muted); font-weight: 700; }
.rb-x { width: 32px; height: 44px; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.rb-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.rb-row:first-child { border-top: 0; }
.rb-add-row { display: flex; align-items: center; gap: 8px; color: var(--accent-ink); font-weight: 800; }
.rb-add-row select { flex: 1; min-height: 44px; border-radius: 12px; border: 1px dashed var(--line-2); background: transparent; color: var(--accent-ink); font: inherit; font-weight: 800; padding: 0 10px; }
.rb-pre { background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px dashed var(--accent); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.rb-card { display: flex; align-items: center; gap: 12px; }
.rb-sel { border: 2px solid var(--accent); }
.rb-pick { flex: none; min-height: 44px; padding: 0 14px; }
.rb-tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.rb-desc li { padding: 2px 0; }
.rb-desc li::before { content: "• "; color: var(--accent-ink); }
dd .rb-desc { font-weight: 600; }

/* Dienoraštis: prognozė, sezonas, skiltys, kolekcija, įžvalgos, tikslai, išvykos */
.nowrap { white-space: nowrap; }
.accent-ink { color: var(--accent-ink); }
.row.wrap { flex-wrap: wrap; }
.fc { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, var(--surface)), var(--surface) 62%); border: 1px solid var(--line-2);
  border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.fc-empty { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.fc-kicker { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.fc-top { display: flex; align-items: center; gap: 14px; }
.fc-ring { --p: 50%; width: 74px; height: 74px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--accent) 0 var(--p), var(--line) var(--p) 100%); }
.fc-ring b { width: 58px; height: 58px; border-radius: 50%; background: var(--surface); display: grid; place-items: center;
  font-family: 'Barlow Condensed', sans-serif; font-size: 28px; color: var(--accent-ink); }
.fc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.fc-grid > span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); text-align: center; min-width: 0; }
.fc-grid b { color: var(--text); font-size: 15px; white-space: nowrap; }
.fc-moon { font-size: 18px; line-height: 1; }
.d-tabs { margin-top: 2px; }
.d-tabs button { min-height: 54px; }
.pbar { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s; }
.alb { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.alb-t { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; display: flex; flex-direction: column;
  align-items: center; gap: 4px; text-align: center; color: var(--text); text-decoration: none; min-width: 0; }
.alb-t b { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alb-t small { font-size: 12px; color: var(--muted); }
.alb-ic { width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; background: var(--line); color: var(--muted); }
.alb-lk { border-style: dashed; opacity: .55; }
.chip-off { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding-top: 6px; }
.bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.bars i { width: 100%; border-radius: 8px 8px 3px 3px; background: var(--accent); display: block; }
.bars i.lo { background: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.bars b { color: var(--text); font-size: 13px; }
.hm { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.hm i { aspect-ratio: 1; border-radius: 4px; background: var(--line); display: block; }
.hm .hm-catch { background: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.hm .hm-catch.hm-many { background: var(--accent); }
.hm .hm-blank { background: color-mix(in srgb, var(--muted) 45%, transparent); }
.hm .hm-future { background: transparent; border: 1px dashed var(--line); }
.hm-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: -1px; margin-left: 2px; }
.hm-key.hm-catch { background: var(--accent); }
.hm-key.hm-blank { background: color-mix(in srgb, var(--muted) 45%, transparent); }
.goal { display: flex; flex-direction: column; gap: 8px; }
.goal-done { border-color: color-mix(in srgb, var(--ok) 60%, transparent); }
.chipx { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px dashed var(--line-2); background: transparent;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--accent-ink); cursor: pointer; }
.chipx.on { border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.trip-ok .d-trip { color: var(--accent-ink); }

.fc-foot { margin-top: -6px; }

/* Laimikio registracija: „Ką tai reiškia“, didelis ilgis, rūšių tinklelis, išsaugota */
.imp { border: 2px solid var(--accent); border-radius: 18px; padding: 12px 14px; background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  display: flex; flex-direction: column; gap: 8px; }
.imp-k { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); font-weight: 800; }
.imp-row { display: flex; align-items: center; gap: 10px; }
.imp .rk { font-family: 'Barlow Condensed', sans-serif; font-size: 30px; line-height: 1; color: var(--accent-ink); min-width: 48px; text-align: center; }
.imp .arrow { color: var(--ok); font-weight: 800; }
.lenbox { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px; }
.lenbox .len-readout { flex: 1; text-align: center; }
.sq-btn.sq-big { width: 64px; height: 64px; border-radius: 16px; }
.spg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.spg .sp-chip { min-height: 54px; border-radius: 14px; justify-content: center; gap: 6px; padding: 0 6px; font-size: 15px; display: flex; align-items: center; }
.spg .dot { width: 10px; height: 10px; border-radius: 5px; display: inline-block; flex: none; }
.photo-check { position: absolute; left: 10px; bottom: 10px; margin: 0; display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,.6); color: #fff;
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.done-step { flex: 1; padding: 8px 16px calc(28px + env(safe-area-inset-bottom)); width: 100%; max-width: 640px; margin: 0 auto; background: var(--bg); color: var(--text); border-radius: 22px 22px 0 0; }
.succ { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.burst { width: 110px; height: 110px; border-radius: 55px; display: grid; place-items: center; font-size: 52px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 45%, transparent), transparent 70%); animation: pop .5s ease-out; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .burst { animation: none; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; min-width: 0; }
.tile-big { font-family: 'Barlow Condensed', sans-serif; font-size: 30px; line-height: 1; }

/* Laimikio puslapis */
.c-hero { position: relative; background: #06121B; border-radius: 18px; }
.c-hero .photo-big { width: 100%; }
.c-ov { position: absolute; left: 16px; bottom: 14px; color: #fff; pointer-events: none; text-shadow: 0 2px 12px rgba(0,0,0,.55); display: flex; flex-direction: column; }
.c-len { font-family: 'Barlow Condensed', sans-serif; font-size: 58px; line-height: .95; margin: 0; color: #fff; }
.c-sp { font-size: 20px; font-weight: 800; }
.c-tag { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--on-accent); font-weight: 800; padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.c-hero .photo-hint { top: 12px; bottom: auto; right: 12px; left: auto; }
.c-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 0; }
.c-facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.c-facts dt { font-size: 12px; color: var(--muted); }
.c-facts dd { margin: 0; font-weight: 800; font-size: 15px; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.c-facts dd small { font-weight: 500; font-size: 12px; color: var(--muted); }
.cmpbar { height: 10px; border-radius: 5px; background: var(--line); position: relative; }
.cmpbar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: var(--accent); }
.cmpbar u { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; background: var(--text); border-radius: 2px; }
.c-rank { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; color: var(--accent-ink); }

/* Prisijungimas ir pirmas įspūdis */
.lg-hero { border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 8px; color: #fff;
  background: radial-gradient(circle at 85% 10%, color-mix(in srgb, var(--accent) 40%, transparent), transparent 55%), linear-gradient(170deg, #17405a, #0a1822 80%); }
.lg-emoji { font-size: 44px; line-height: 1; }
.lg-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 38px; line-height: 1; margin: 0; color: #fff; }
.lg-sub { margin: 0; color: #cfe3ee; }
.feat { display: flex; gap: 12px; align-items: flex-start; }
.feat .ic { width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.start-card .check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 0; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.start-card .check:first-of-type { border-top: 0; }
.start-card .c { width: 26px; height: 26px; border-radius: 13px; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; }
.start-card .check.d .c { background: var(--ok); border-color: var(--ok); color: #0a1822; }
.start-card .check.d .t { color: var(--muted); text-decoration: line-through; }
.intro { min-height: 100dvh; }
.intro-illu { height: 230px; border-radius: 24px; background: linear-gradient(160deg, #1d4a63, #0d2231); display: grid; place-items: center; position: relative; overflow: hidden; }
.intro-emoji { font-size: 84px; transform: translateY(-14px); animation: pop .4s ease-out; }
.intro-ruler { position: absolute; bottom: 44px; left: 30px; right: 30px; height: 24px; border-radius: 4px; background-color: #f2d27a;
  background-image: repeating-linear-gradient(90deg, #6b5410 0 2px, transparent 2px 14px); }
.intro-pod { position: absolute; bottom: 30px; display: flex; align-items: flex-end; gap: 8px; }
.intro-pod i { width: 56px; border-radius: 8px 8px 2px 2px; background: var(--accent); display: block; opacity: .85; }
.step-dots { display: flex; gap: 6px; justify-content: center; }
.step-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line-2); transition: width .2s; }
.step-dots i.on { width: 22px; background: var(--accent); }
.intro-next { flex: 2; }

/* ---------- Turnyro nustatymai (0035) ---------- */
.h3 { margin: 6px 0 0; font-size: 15px; font-weight: 800; color: var(--soft); }
.set-cover { position: relative; height: 150px; border-radius: 20px; overflow: hidden; background-color: #0F2433;
  background-image: radial-gradient(circle at 75% 15%, rgba(255, 166, 43, .32), transparent 50%), linear-gradient(160deg, #2C5B77, #0F2433 70%); }
.set-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.set-cover.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(6, 18, 27, .75)); }
.set-cover.busy { opacity: .6; }
.set-cover .cv-t { position: absolute; left: 14px; right: 150px; bottom: 12px; z-index: 1; color: #fff; font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px; font-weight: 700; line-height: 1.05; text-shadow: 0 2px 10px rgba(0, 0, 0, .55); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.set-cover .cv-acts { position: absolute; right: 10px; bottom: 10px; z-index: 1; display: flex; gap: 6px; }
.cv-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 14px; border-radius: 999px;
  background: rgba(6, 18, 27, .82); color: #fff; font: inherit; font-weight: 700; font-size: 14px; border: 0; cursor: pointer; }
.owner-note { display: flex; gap: 10px; border: 1.5px solid var(--accent); border-radius: 18px; padding: 12px 14px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.stabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 6px 16px; position: sticky; top: var(--top-offset, 0px); z-index: 4; background: var(--bg); }
.stabs::-webkit-scrollbar { display: none; }
.stabs button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.stabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.set-sec { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: calc(64px + var(--top-offset, 0px)); }
.lockchip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; vertical-align: middle;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); }
.lockchip.muted-chip { background: var(--surface-2); color: var(--soft); }
.set-list { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.set-row + .set-row { border-top: 1px solid var(--line); }
.set-row[hidden] { display: none; }
.set-row > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; cursor: pointer; }
.set-row > summary::-webkit-details-marker { display: none; }
.set-row > summary .strong { flex: none; }
.set-v { flex: 1; min-width: 0; text-align: right; color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.set-chev { color: var(--muted); display: inline-flex; transition: transform .15s; }
.set-row[open] .set-chev { transform: rotate(90deg); }
.set-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.set-body > .card { background: var(--surface-2); }
.search-box input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: 16px; }
.set-people { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.p-row + .p-row { border-top: 1px solid var(--line); }
.p-row[hidden] { display: none; }
.p-main { display: flex; align-items: center; gap: 10px; padding: 8px 6px 8px 12px; min-width: 0; }
.p-main .avatar { width: 36px; height: 36px; font-size: 14px; }
.p-more { font-size: 20px; letter-spacing: 1px; color: var(--muted); background: transparent; border-color: transparent; }
.p-menu { display: flex; flex-direction: column; gap: 8px; padding: 4px 12px 12px 58px; }
.dchip { flex: none; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--soft); max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-box { display: block; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--line-2); font-size: 13px; color: var(--soft);
  overflow-wrap: anywhere; user-select: all; }
.sheet-wrap { position: fixed; inset: 0; z-index: 60; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.sheetx { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; background: var(--bg); color: var(--text); border-radius: 24px 24px 0 0;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); max-width: 640px; margin: 0 auto; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); align-self: center; }
.chg-list { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.chg { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; }
.chg + .chg { border-top: 1px solid var(--line); }
.warnbox { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--wait-bg); color: var(--text); font-size: 14px;
  border: 1px solid color-mix(in srgb, var(--wait) 45%, transparent); }
.warnbox svg { flex: none; color: var(--wait); margin-top: 2px; }
/* Viršelis turnyro puslapyje ir artėjančio turnyro kortelėje */
.t-cover { height: 160px; border-radius: 20px; overflow: hidden; background: var(--surface); }
.t-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.l-cover { display: block; height: 110px; margin: -16px -16px 0; border-radius: 19px 19px 0 0; overflow: hidden; background: var(--surface-2); }
.l-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Žinutės (0036) ---------- */
.ic-badge { position: relative; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-2); display: inline-grid; place-items: center; color: var(--text); flex: none; }
.ic-badge b { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: var(--on-accent);
  font-size: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.ic-badge b[hidden] { display: none; }
.inbox { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.inbox li + li { border-top: 1px solid var(--line); }
.th { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; color: var(--text); text-decoration: none; min-height: 72px; }
.th .avatar { width: 44px; height: 44px; border-radius: 22px; background: var(--surface-2); }
.th-sys { background: var(--accent) !important; color: var(--on-accent); }
.th-nm { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.th-t { font-size: 12.5px; color: var(--accent-ink); font-weight: 700; }
.th-p { font-size: 14px; color: var(--muted); }
.th.unread .th-p { color: var(--text); font-weight: 600; }
.th-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12px; color: var(--muted); }
.dotn { min-width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.chat-screen { padding-bottom: 110px; }
.chat-top .chat-name { margin: 0; font-size: 17px; font-weight: 800; }
.link-plain { color: var(--muted); text-decoration: none; }
.chat-menu { position: relative; }
.chat-ctx { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.btn-sm { min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 12px; }
.btn-ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.chat .day { align-self: center; font-size: 12px; color: var(--muted); font-weight: 700; margin-top: 6px; }
.msg-li { display: flex; flex-direction: column; }
.b { max-width: 82%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.38; white-space: pre-wrap; overflow-wrap: anywhere; }
.b small { display: block; font-size: 11px; opacity: .75; margin-top: 4px; }
.b.them { align-self: flex-start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: 6px; }
.b.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.b-auto { opacity: .9; font-size: 14px; }
.b-actions { align-self: flex-start; padding: 0 6px; }
.b-actions[hidden] { display: none; }
.b-event { align-self: center; margin: 0; font-size: 13px; color: var(--ok); font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.who { font-size: 12px; color: var(--muted); font-weight: 700; margin: 4px 0 2px 6px; }
.sysmsg { border: 1.5px solid var(--line-2); border-radius: 20px; padding: 14px 16px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; }
.sysmsg.prize { border-color: var(--accent); background-color: var(--surface);
  background-image: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 70%); }
.sys-pl { font-family: 'Barlow Condensed', sans-serif; font-size: 44px; font-weight: 800; line-height: .9; color: var(--accent-ink); }
.sys-title { font-size: 17px; }
.big-chip { align-self: flex-start; font-size: 14px; padding: 6px 12px; }
.sys-note { display: flex; gap: 8px; margin: 0; font-size: 14px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.sys-note svg { flex: none; margin-top: 2px; }
.chat-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--bg); border-top: 1px solid var(--line);
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
.chat-bar > * { max-width: 616px; margin: 0 auto; }
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; min-height: 48px; max-height: 140px; resize: none; border-radius: 24px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); padding: 12px 16px; font-size: 16px; line-height: 1.3; }
.send-btn { width: 48px; height: 48px; border-radius: 24px; border: 0; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; cursor: pointer; }
.send-btn svg { transform: rotate(0deg); }
.send-btn:disabled { opacity: .5; }
.chat-foot { text-align: center; }
.dl-note { display: flex; gap: 10px; margin: 0; border-radius: 16px; padding: 12px 14px; border: 1.5px solid var(--wait); background: var(--wait-bg); color: var(--text); font-size: 14px; }
.dl-note.late { border-color: var(--bad); background: var(--bad-bg); }
.dl-note svg { flex: none; margin-top: 2px; }
.prz { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.pr-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-width: 0; }
.pr-row + .pr-row { border-top: 1px solid var(--line); }
.pr-r { width: 32px; flex: none; text-align: center; font-family: 'Barlow Condensed', sans-serif; font-size: 26px; font-weight: 800; color: var(--accent-ink); }
.st-chip { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.st-chip.ok { background: var(--ok-bg); color: var(--ok); }
.b-quote { margin: 0; padding: 10px 12px; border-left: 3px solid var(--line-2); background: var(--surface-2); border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- Viršutinė juosta (logotipas, pagalba, žinutės) ---------- */
body.has-appbar { --top-offset: calc(60px + env(safe-area-inset-top)); }
#appbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 12px 0 14px;
  padding-top: env(safe-area-inset-top); box-sizing: content-box;
  background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
#appbar[hidden] { display: none; }
.ab-logo { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; color: var(--text); text-decoration: none; min-height: 44px; }
.ab-logo img { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.ab-logo b { font-family: 'Barlow Condensed', sans-serif; font-size: 21px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-logo b span { color: var(--accent-ink); }
.ab-btn { position: relative; width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; flex: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-2); text-decoration: none; }
.ab-btn b { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent);
  color: var(--on-accent); font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.ab-btn b[hidden] { display: none; }
.th-team { padding: 0; overflow: hidden; background: transparent !important; }
.th-team img { width: 100%; height: 100%; display: block; }
/* Pagalba */
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 12px 14px; cursor: pointer; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .set-chev { margin-left: auto; }
.faq details[open] .set-chev { transform: rotate(90deg); }
.faq .ans { padding: 0 14px 14px; color: var(--soft); display: flex; flex-direction: column; gap: 8px; }
.faq .ans p { margin: 0; }
.help-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.help-links a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 72px; padding: 10px 6px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; text-align: center; }
.help-links a svg { color: var(--accent-ink); }
.team-card { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; border: 1.5px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.team-card img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
/* Žinutės: skiltys „Svarbu“, „Žmonės“, „Klubai“ */
.seg3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 4px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.seg3 a { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; font-weight: 700; color: var(--muted); font-size: 15px; text-decoration: none; }
.seg3 a.on { background: var(--accent); color: var(--on-accent); }
.seg3 .cnt { min-width: 20px; height: 20px; border-radius: 10px; font-size: 11.5px; font-weight: 800; display: inline-grid; place-items: center; padding: 0 5px; background: var(--accent); color: var(--on-accent); }
.seg3 a.on .cnt { background: var(--on-accent); color: var(--accent); }
.sec-k { margin: 4px 0 -4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.imp-card { border: 1.5px solid var(--accent); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px;
  background-color: var(--surface); background-image: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 70%); }
.imp-top { display: flex; gap: 12px; align-items: center; }
.imp-top .pl { font-family: 'Barlow Condensed', sans-serif; font-size: 40px; font-weight: 800; color: var(--accent-ink); line-height: 1; }
.pinlbl { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); display: flex; gap: 5px; align-items: center; }
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.steps3 li { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.steps3 i { height: 5px; border-radius: 3px; background: var(--line-2); }
.steps3 .ok i { background: var(--ok); } .steps3 .ok { color: var(--text); }
.steps3 .now i { background: var(--accent); } .steps3 .now { color: var(--accent-ink); font-weight: 700; }
.dotn.inv { background: var(--on-accent); color: var(--accent); }
.ibx { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.sys-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; color: var(--text); text-decoration: none; }
.ibx li + li .sys-row { border-top: 1px solid var(--line); }
.sys-row .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--soft); }
.sys-row .ic.o { background: color-mix(in srgb, var(--accent) 20%, var(--surface)); color: var(--accent-ink); }
.sys-row .tx { display: flex; flex-direction: column; min-width: 0; font-size: 14px; gap: 2px; }
.sys-row .tx span { color: var(--muted); font-size: 13px; }
.dot-new { width: 10px; height: 10px; border-radius: 5px; background: var(--accent); display: inline-block; }
.chip-pz { font-size: 11.5px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-ink); }
.th-club { background: color-mix(in srgb, var(--accent) 22%, var(--surface)) !important; color: var(--accent-ink); font-weight: 800; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Klubo pokalbis */
.cm-list { gap: 4px; }
.cm-li { display: flex; gap: 8px; align-items: flex-start; }
.cm-li.me { justify-content: flex-end; }
.cm-av { width: 34px; height: 34px; font-size: 13px; flex: none; margin-top: 4px; }
.cm-av-sp { width: 34px; flex: none; }
.cm-col { display: flex; flex-direction: column; min-width: 0; max-width: 84%; }
.cm-li.me .cm-col { align-items: flex-end; }
.cm-b { max-width: 100%; text-align: left; border: 0; font: inherit; cursor: pointer; white-space: normal; display: flex; flex-direction: column; gap: 4px; }
.cm-b small { margin-top: 0; }
.cm-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-name { font-size: 12.5px; font-weight: 800; color: var(--accent-ink); display: flex; gap: 6px; align-items: center; }
.cm-role { font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--surface); color: var(--soft); border: 1px solid var(--line-2); }
.cm-del { opacity: .7; }
.cm-reacts { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.cm-reacts span { font-size: 12.5px; padding: 2px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); }
.cm-reacts span.mine { border-color: var(--accent); }
.cm-acts { display: flex; flex-direction: column; gap: 6px; padding: 8px 4px 4px; }
.cm-acts[hidden] { display: none; }
.cm-tools { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 0; align-items: center; }
.cm-tools .btn-text { min-height: 40px; padding: 6px 0; }
.cm-tools .btn-text.bad { color: var(--bad); }
.cm-emoji { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line-2); background: var(--surface); font-size: 20px; cursor: pointer; }
.cm-emoji.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.cm-pin { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2);
  color: var(--text); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.cm-pin svg { flex: none; color: var(--accent-ink); }
.cm-fish { width: 48px; height: 48px; border-radius: 24px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); display: grid; place-items: center; flex: none; cursor: pointer; }
.cc-card { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--bg); color: var(--text); }
.b.me .cc-card { background: rgba(255, 255, 255, .35); color: var(--on-accent); }
.b.me .cc-card .muted { color: var(--on-accent); opacity: .8; }
.cc-card svg { flex: none; color: var(--accent-ink); }
.cc-pick { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 10px 14px; background: transparent; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ibx li + li .cc-pick { border-top: 1px solid var(--line); }
.cm-empty { padding: 30px 0; }

/* Vietos skaitiklis (admin → Funkcijos) */
.st-card { display: flex; flex-direction: column; gap: 12px; }
.st-top { display: flex; align-items: baseline; gap: 8px; }
.st-big { font-size: 34px; font-weight: 800; letter-spacing: -.5px; line-height: 1; }
.st-of { color: var(--muted); font-weight: 700; }
.st-pct { margin-left: auto; font-weight: 800; font-size: 14px; }
.st-bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.st-bar i { display: block; height: 100%; border-radius: 5px; background: var(--ok); }
.st-warn .st-bar i { background: var(--wait); } .st-warn .st-pct { color: var(--wait); }
.st-bad .st-bar i { background: var(--bad); } .st-bad .st-pct { color: var(--bad); }
.st-rows { display: flex; flex-direction: column; }
.st-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.st-row:first-child { border-top: 0; }
.st-row .muted { white-space: nowrap; }
.st-sub { padding-left: 14px; font-size: 14px; color: var(--muted); }
.st-note { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--wait-bg); color: var(--text); font-size: 14px; }
.st-bad .st-note { background: var(--bad-bg); }
.st-em { color: var(--text); font-weight: 800; }

/* Dalyvis turnyre (#/t/:id/dalyvis/:uid) */
.pt-hero { display: flex; flex-direction: column; gap: 12px; }
.pt-hero.pt-prize { border: 1.5px solid var(--accent); }
.pt-hero .avatar-lg { width: 56px; height: 56px; border-radius: 28px; font-size: 22px; }
.pt-hero .gap-12 { gap: 12px; }
.pt-rank { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.pt-rank b { font-family: 'Barlow Condensed', sans-serif; font-size: 40px; font-weight: 700; color: var(--accent-ink); }
.pt-score { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pt-score .num-lg { font-family: 'Barlow Condensed', sans-serif; font-size: 34px; font-weight: 700; line-height: 1; }
.pt-prize-tag { display: flex; align-items: center; flex-wrap: wrap; column-gap: 8px; row-gap: 2px; margin: 0; font-weight: 800; color: var(--accent-ink); }
.pt-prize-tag .muted { font-weight: 600; }
.pt-hero .display-md { font-size: 26px; }
.card-link.pt-in { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }

/* Žvejo profilis (#/zvejys/:id) */
.ap-hero { display: flex; flex-direction: column; gap: 12px; }
.ap-top { display: flex; align-items: center; gap: 14px; }
.ap-follow { margin: 0; }
.ap-follow b { color: var(--text); }
.ap-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.ap-actions .btn { min-height: 48px; }
.ap-medals { display: flex; gap: 8px; flex-wrap: wrap; }
.ap-medal { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: 18px; }
.ap-medal b { font-size: 16px; }
.ap-medal.none { opacity: .45; }
.ap-medal.prize { color: var(--accent-ink); }
.ap-medal.prize .small { color: var(--soft); font-weight: 600; }
.ap-best { margin: 0; color: var(--soft); }
.ap-best b { color: var(--text); }
.ap-place { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: var(--soft); }
.ap-place.medal { font-size: 22px; background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); }
.chip-prize { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-ink); }
.ap-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.ap-chips::-webkit-scrollbar { display: none; }
.ap-chip { flex: none; min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; }
.ap-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ap-chip[aria-pressed="true"] .muted { color: inherit; opacity: .75; }
.ap-ph { position: relative; display: block; }
.ap-tag { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 12px; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; }

/* Kvietimas tapti rėmėju (turnyro prizų skiltyje) */
.sponsor-invite { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--muted); text-decoration: none; font-size: 14px; }
.sponsor-invite b { color: var(--accent-ink); }

/* Pradinis puslapis svečiams (#/sveiki) */
.lp { padding: 0 16px calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px;
  background: radial-gradient(700px 520px at 85% 0%, rgba(255,166,43,.12), transparent 60%); }
.lp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 0 4px; }
.lp-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 23px; white-space: nowrap; }
.lp-brand img { border-radius: 9px; }
.lp-brand b { color: var(--accent-ink); }
.lp-login { min-height: 44px; padding: 0 16px; }
.lp-hero { display: flex; flex-direction: column; gap: 14px; padding: 18px 0 8px; }
.lp-kicker { font-size: 13px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-ink); }
.lp-h1 { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 800; font-size: clamp(50px, 14vw, 72px); line-height: .92; }
.lp-h1 b, .lp-h2 b { color: var(--accent-ink); }
.lp-lead { margin: 0; font-size: 17px; color: var(--soft); }
.lp-btns { display: flex; flex-direction: column; gap: 10px; }
.lp-note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.lp-phone { width: min(280px, 74vw); margin: 10px auto 0; border-radius: 40px; padding: 10px; background: #02060A; box-shadow: 0 0 0 2px var(--line), 0 30px 80px rgba(0,0,0,.5), 0 0 100px rgba(255,166,43,.10); }
.lp-phone video { display: block; width: 100%; aspect-ratio: 9 / 16; border-radius: 31px; object-fit: cover; background: #0A1822; }
.lp-sec { display: flex; flex-direction: column; gap: 14px; padding: 26px 0 6px; }
.lp-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lp-h2 { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 36px; line-height: 1; }
.lp-steps { display: flex; flex-direction: column; gap: 10px; }
.lp-step { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.lp-step-n { flex: none; width: 38px; height: 38px; border-radius: 19px; background: var(--accent); color: var(--on-accent); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.lp-step-h { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; }
.lp-step-h svg { color: var(--accent-ink); }
.lp-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lp-feat { display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.lp-ic { width: 42px; height: 42px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; }
.lp-duo { gap: 10px; }
.lp-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.lp-card > svg:first-child { color: var(--accent-ink); flex: none; }
.lp-final { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-top: 22px; padding: 28px 18px; border-radius: 24px;
  border: 1.5px solid color-mix(in srgb, var(--accent) 50%, transparent); background: radial-gradient(420px 220px at 50% 0%, rgba(255,166,43,.16), transparent 70%), var(--surface); }
.lp-final p { margin: 0; }
.lp-final .btn { align-self: stretch; }
.lp-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; padding: 22px 0 6px; font-size: 14px; }
.lp-foot a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }

/* Matavimas: liniuotė ar svarstyklės */
.cam-mode { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(6,18,27,.82); }
.cam-mode button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: #C9D7E0; font-weight: 800; font-size: 15px; }
.cam-mode button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.wreadout { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.wreadout input { width: 4.2ch; min-width: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: right; padding: 0; outline: none; }
.wreadout input::placeholder { color: var(--muted); opacity: .6; }

/* Viešas žvejo ID */
.id-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin-top: 2px; padding: 4px 6px 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.id-pill b { color: var(--text); letter-spacing: .5px; }
.id-copy { padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); font-size: 13px; }
.id-find input { min-width: 0; }
.id-staff { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--muted); padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--line); }

/* Laimikis be GPS: vietos ieškoma toliau */
.gps-late { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--queue-bg); color: var(--text); font-size: 14px; line-height: 1.45; }
.gps-late svg { flex: none; margin-top: 1px; color: var(--queue); }

/* Svetainės statistika (0045) */
.stats-chart .col.back { fill: #2E6E9E; opacity: 1; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); opacity: 0.55; }
.legend-dot.back { background: #2E6E9E; opacity: 1; margin-left: 8px; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ok, #4ADE80); animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: 0.35; } }
.center-x { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
