/* Banana Pump – jen tři barvy (+ tmavá dráha progress baru). */
:root {
  --yellow: #FFE135;
  --black: #111111;
  --paper: #F6F1E3;
  --track: #3A3A36;
  --stencil: 'Big Shoulders Stencil Display', 'Big Shoulders Stencil', Impact, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--black); font-family: var(--mono); font-size: 14px; line-height: 1.5; }
a { color: var(--black); }
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }

.st { font-family: var(--stencil); font-weight: 900; letter-spacing: -0.01em; }
.mo { font-family: var(--mono); }
.b { font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1184px; margin: 0 auto; padding: 22px 20px 0; }
.kicker { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; }
.loading, .empty { padding: 40px 0; }

/* ---------- hlavička ---------- */
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.logo { display: flex; flex-direction: column; gap: 6px; font-size: 46px; line-height: 0.86; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 12px; font-weight: 600; min-height: 44px; }
.nav__link { display: none; text-decoration: none; }
.nav__ig { text-decoration: none; padding: 12px 0; }

/* ---------- štítky ---------- */
.tag { display: inline-block; border-radius: 6px; padding: 6px 12px; transform: rotate(-5deg); white-space: nowrap; }
.tag--black { background: var(--black); color: var(--yellow); }
.tag--pr { background: var(--yellow); color: var(--black); border: 3px solid var(--black); font-weight: 600; font-size: 13px; transform: rotate(-4deg); }
.tag--small { font-size: 13px; font-weight: 600; padding: 7px 11px; }
.tag--tiny { font-size: 10px; font-weight: 600; padding: 1px 6px; border-width: 2px; border-radius: 4px; margin-left: 8px; transform: rotate(-4deg); }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; line-height: 1.3; }
.badge--black { background: var(--black); color: var(--yellow); }
.badge--line { border: 2px solid var(--black); padding: 1px 7px; }

/* ---------- hero ---------- */
.hero { display: flex; flex-direction: column; gap: 22px; margin-top: 34px; }
.hero__main { position: relative; }
.hero__weight { display: flex; align-items: flex-end; gap: 8px; margin-top: clamp(16px, 4.5vw, 34px); position: relative; }
.hero__num { font-size: clamp(170px, 52vw, 300px); line-height: 0.8; }
.hero__kg { font-size: clamp(54px, 16vw, 88px); line-height: 1; padding-bottom: 6px; }
.hero__start { position: absolute; right: 0; top: 18px; }
.hero__weight--pr { align-items: center; gap: 22px; flex-wrap: wrap; padding: 10px 0; }
.hero__old { font-size: clamp(72px, 22vw, 130px); line-height: 0.85; text-decoration: line-through; text-decoration-thickness: 8px; }
.hero__new { font-size: clamp(84px, 26vw, 170px); line-height: 0.9; padding: 10px 18px 6px; border-radius: 10px; }
.hero__pr { margin-top: 10px; }
.hero__goal { margin: 14px 0 0; font-size: 13px; }
.hero__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { border: 3px solid var(--black); border-radius: 16px; padding: 14px; }
.card--yellow { background: var(--yellow); }
.card__kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.count__num { font-size: 76px; line-height: 0.85; }
.count__lbl { font-size: 11px; font-weight: 600; margin-top: 8px; letter-spacing: 0.04em; }
.count__sub { font-size: 11px; }
.next__sets { font-size: 38px; line-height: 0.92; margin-top: 10px; }
.next__when { font-size: 11px; margin-top: 8px; }

/* ---------- progress bar ---------- */
.bar { margin: 18px -4px 0; background: var(--black); color: var(--paper); border-radius: 22px; padding: 18px 18px 16px; }
.bar__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.bar__title { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; padding-bottom: 6px; }
.bar__kg { font-size: 44px; line-height: 0.9; color: var(--yellow); white-space: nowrap; }
.bar__track-wrap { position: relative; height: 64px; margin-top: 6px; }
.bar__banana { position: absolute; top: 0; width: 52px; height: 35px; }
.bar__track { position: absolute; left: 0; right: 0; bottom: 4px; height: 16px; background: var(--track); border-radius: 8px; overflow: hidden; }
.bar__fill { height: 100%; min-width: 16px; background: var(--yellow); border-radius: 8px; }
.bar__scale { display: flex; justify-content: space-between; font-size: 11px; margin-top: 6px; }
.bar__pct { margin: 12px 0 0; font-size: 11px; font-weight: 600; color: var(--yellow); letter-spacing: 0.04em; }

/* ---------- sekce ---------- */
.sec { margin-top: 56px; }
.sec__h { margin: 0.3em 0 0; font-size: 44px; line-height: 0.92; }
.sec__sub { margin: 8px 0 0; font-size: 12px; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.stat { border: 2.5px solid var(--black); border-radius: 12px; padding: 8px 10px; }
.stat--yellow { background: var(--yellow); }
.stat__v { font-size: 32px; line-height: 0.9; }
.stat__l { font-size: 10px; font-weight: 600; margin-top: 4px; }

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 18px 0 0; font-size: 11px; }
.legend li { display: flex; align-items: center; gap: 6px; }
.chart { margin-top: 12px; width: 100%; }
.chart__svg { display: block; }
.chart__hit { cursor: pointer; }

.detail { margin-top: 10px; background: var(--black); color: var(--paper); border-radius: 16px; padding: 14px 16px 16px; }
.detail__kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.detail__plan { font-size: 12px; margin-top: 4px; }
.detail__ai { font-size: 12px; margin-top: 8px; }
.detail__ai .tag { margin-left: 0; }
.detail__row { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--track); display: flex; flex-direction: column; gap: 4px; }
.detail__type { font-size: 11px; font-weight: 600; }
.detail__sets { font-size: 38px; line-height: 0.95; color: var(--yellow); }
.detail__meta, .detail__note { font-size: 12px; }
.detail__empty { font-size: 12px; margin-top: 12px; }
.detail__nav { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.detail__hint { font-size: 11px; line-height: 1.4; }
.detail .reel__thumb { border: 2px solid var(--yellow); }

.btn { border: 3px solid var(--black); background: var(--paper); border-radius: 12px; font-weight: 600; min-height: 48px; }
.btn--sq { width: 48px; height: 48px; font-size: 18px; flex-shrink: 0; }
.btn--wide { width: 100%; margin-top: 16px; font-size: 13px; padding: 0 22px; }
.linkbtn { border: 0; background: none; padding: 10px 0; font-weight: 600; text-decoration: underline; min-height: 44px; }


/* ---------- deník ---------- */
.diary__head { display: flex; flex-direction: column; gap: 14px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { min-height: 44px; min-width: 44px; padding: 0 14px; border: 2.5px solid var(--black); background: var(--paper); border-radius: 22px; font-size: 12px; font-weight: 600; }
.pill[aria-pressed="true"] { background: var(--black); color: var(--yellow); }
.month { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; }
.month::after { content: ''; flex: 1; height: 2px; background: var(--black); }

.entry { position: relative; margin-top: 18px; border: 3px solid var(--black); border-radius: 16px; padding: 14px 16px 16px; }
.entry--deload { border-style: dashed; }
.entry__pr { position: absolute; right: 12px; top: -16px; }
.entry__head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.entry__date { font-size: 12px; font-weight: 600; }
.entry__sets { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 46px; line-height: 0.95; }
.entry__sets .tag { padding: 4px 10px 2px; border-radius: 8px; }
.entry__meta { margin: 8px 0 0; font-size: 12px; }

.row { border-bottom: 2px solid var(--black); }
.row__sum { list-style: none; display: grid; grid-template-columns: 66px 84px 1fr 16px; align-items: center; gap: 8px; padding: 12px 0; min-height: 44px; cursor: pointer; }
.row__sum::-webkit-details-marker { display: none; }
.row__date { font-size: 11px; }
.row .badge { text-align: center; padding-left: 0; padding-right: 0; }
.row__main { display: flex; align-items: center; flex-wrap: wrap; }
.row__sets { font-size: 26px; line-height: 1; }
.row__reel { font-size: 10px; font-weight: 600; text-decoration: underline; margin-left: 8px; }
.row__chev { font-size: 16px; font-weight: 600; transition: transform 0.15s; }
.row[open] .row__chev { transform: rotate(90deg); }
.row__body { padding: 0 0 14px 74px; font-size: 12px; line-height: 1.6; }
.row__body .reel { margin-left: -74px; }

.hint-box { margin: 14px 0 0; border: 2px dashed var(--black); border-radius: 16px; padding: 14px 16px; font-size: 12px; }

.diary__desk { display: none; }
.log { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; margin-top: 18px; }
.log th { padding: 10px; font-weight: 600; border-bottom: 3px solid var(--black); }
.log th:first-child, .log td:first-child { padding-left: 0; }
.log td { padding: 12px 10px; border-bottom: 1.5px solid var(--black); vertical-align: middle; }
.log .td--date { font-weight: 600; white-space: nowrap; }
.td__sets { display: flex; align-items: center; gap: 8px; }
.td__sets .st { font-size: 26px; line-height: 1; white-space: nowrap; }
.tr--month td { border-bottom: 0; padding: 18px 0 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; }
.tr--pr td { background: var(--yellow); }
.tr--pr td:first-child { padding-left: 8px; }

/* ---------- reels ---------- */
.reel { margin-top: 14px; }
.reel__thumb { position: relative; width: 100%; height: 190px; border: 0; padding: 0; border-radius: 12px; background: var(--black); color: var(--paper); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.reel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__play { position: relative; }
.reel__label { position: absolute; left: 12px; bottom: 10px; font-size: 10px; font-weight: 600; color: var(--yellow); background: var(--black); padding: 2px 6px; border-radius: 4px; }
.reel__hint { font-size: 11px; margin: 8px 0 0; }
.reel__open { display: inline-block; font-size: 12px; font-weight: 600; margin-top: 10px; padding: 10px 0; }
.detail .reel__open { color: var(--yellow); }

.reel-dialog { border: 3px solid var(--black); border-radius: 18px; padding: 0; background: var(--paper); width: min(440px, 94vw); max-height: 92vh; }
.reel-dialog::backdrop { background: rgba(17, 17, 17, 0.8); }
.reel-dialog__in { padding: 14px 16px 18px; }
.reel-dialog__close { display: block; margin-left: auto; border: 0; background: none; font-weight: 600; font-size: 12px; min-height: 44px; }

/* ---------- patička ---------- */
.foot { margin-top: 72px; background: var(--black); color: var(--paper); }
.foot__in { max-width: 1184px; margin: 0 auto; padding: 28px 20px 32px; display: flex; flex-direction: column; gap: 16px; }
.foot__brand { display: flex; flex-direction: column; gap: 14px; }
.foot__title { margin: 0; font-size: 52px; line-height: 0.9; color: var(--yellow); }
.foot__cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--yellow); color: var(--black); font-size: 14px; font-weight: 600; text-decoration: none; padding: 14px 16px; border-radius: 12px; min-height: 48px; }
.foot__note { margin: 0; font-size: 11px; line-height: 1.6; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  .wrap { padding: 36px 48px 0; }
  .logo { font-size: 64px; gap: 8px; }
  .nav { gap: 24px; font-size: 13px; }
  .nav__link { display: inline-block; padding: 12px 0; }
  .nav__ig { background: var(--black); color: var(--yellow); padding: 10px 14px; border-radius: 10px; }

  .hero { flex-direction: row; align-items: stretch; gap: 32px; margin-top: 40px; }
  .hero__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
  .hero__num { font-size: clamp(300px, 31vw, 420px); }
  .hero__kg { font-size: 120px; padding-bottom: 10px; }
  .hero__start { position: static; align-self: flex-start; margin: 34px 0 0 10px; font-size: 15px; }
  .hero__goal { font-size: 14px; margin-top: auto; padding-top: 18px; }
  .hero__side { flex: 0 0 340px; grid-template-columns: 1fr; gap: 16px; }
  .card { border-radius: 18px; padding: 18px 20px; }
  .count__num { font-size: 110px; }
  .next__sets { font-size: 52px; }

  .bar { margin: 36px 0 0; border-radius: 26px; padding: 24px 28px 22px; }
  .bar__title { font-size: 13px; padding-bottom: 8px; }
  .bar__kg { font-size: 72px; }
  .bar__track-wrap { height: 72px; }
  .bar__banana { width: 60px; height: 40px; }
  .bar__track { height: 20px; border-radius: 10px; }
  .bar__fill { min-width: 20px; border-radius: 10px; }
  .bar__scale { font-size: 12px; }
  .bar__pct { font-size: 12px; }

  .sec { margin-top: 72px; }
  .sec__h { font-size: 64px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .stat { border-width: 3px; border-radius: 14px; padding: 12px 14px; }
  .stat__v { font-size: 46px; }
  .stat__l { font-size: 11px; margin-top: 6px; }
  .legend { font-size: 12px; gap: 8px 22px; }

  .chart-grid { display: flex; gap: 40px; align-items: flex-start; margin-top: 4px; }
  .chart-col { flex: 1 1 auto; min-width: 0; }

  .diary__head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .diary__mobile { display: none; }
  .diary__desk { display: block; overflow-x: auto; }
  .btn--wide { width: auto; }

  .foot__in { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 36px 48px 40px; }
  .foot__brand { flex-direction: row; align-items: center; gap: 20px; }
  .foot__title { font-size: 56px; }
  .foot__note { flex-basis: 100%; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .row__chev { transition: none; }
}

/* ---------- rozpis tréninku (/trenink) ---------- */
.tr { max-width: 560px; padding-bottom: 48px; }
.tr__back { text-decoration: none; padding: 12px 0; }
.tr__head { margin-top: 28px; }
.tr__title { margin: 10px 0 0; font-size: 64px; line-height: 0.9; }
.tr__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tr__progress { margin-top: 22px; background: var(--black); color: var(--paper); border-radius: 18px; padding: 14px 16px 18px; }
.tr__progress-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--yellow); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; }
.tr__progress-head .st { font-size: 30px; letter-spacing: 0; }
.tr__track { position: relative; height: 12px; margin-top: 10px; }
.tr__sec { margin-top: 30px; }
.tr__sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tr__sec-head h2, .tr__h2 { margin: 0 0 10px; font-size: 32px; line-height: 1; }
.tr__sec-head .mo { font-size: 11px; text-align: right; }
.tr__list { list-style: none; margin: 0; padding: 0; }
.tr__row { display: flex; align-items: center; gap: 12px; border-top: 2px solid var(--black); padding: 10px 0; }
.tr__box { width: 44px; height: 44px; flex: none; border: 3px solid var(--black); border-radius: 10px; background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 0; }
.tr__box[aria-pressed="true"] { background: var(--yellow); }
.tr__txt { flex: 1; min-width: 0; }
.tr__dose { font-size: 12px; }
.tr__cue { font-size: 11px; margin-top: 2px; }
.tr__video { flex: none; display: flex; align-items: center; min-height: 44px; padding: 0 8px; border: 2px solid var(--black); border-radius: 6px; font-size: 11px; font-weight: 600; text-decoration: none; }
.tr__video--wide { align-self: flex-start; padding: 0 10px; }
.tr__squat { display: flex; flex-direction: column; gap: 14px; padding: 16px; }
.tr__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tr__chips .badge { font-size: 13px; }
.tr__big { font-size: 50px; line-height: 0.95; margin-top: 2px; }
.tr__sets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tr__set { min-height: 64px; border: 3px solid var(--black); border-radius: 12px; background: var(--paper); font-weight: 600; font-size: 13px; }
.tr__set[aria-pressed="true"] { background: var(--black); color: var(--yellow); }
.tr__rule { display: flex; gap: 10px; margin: 0; padding-top: 12px; border-top: 2px solid var(--black); font-size: 12px; }
.tr__rule > span:first-child { font-weight: 600; }
.tr__note { margin-top: 24px; font-size: 12px; }
.tr__report { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.tr__report-text { background: var(--black); color: var(--yellow); border-radius: 10px; padding: 12px; font-weight: 600; }
.tr__copy { background: var(--yellow); }
.next__link { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; min-height: 44px; padding: 8px 12px; background: var(--black); color: var(--yellow); border-radius: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.25; text-decoration: none; transition: transform 0.15s ease; }
.next__link:hover, .next__link:focus-visible { color: var(--yellow); transform: rotate(-2deg) scale(1.03); }
.next__arrow { display: inline-block; font-size: 14px; animation: next-nudge 1.4s ease-in-out infinite; }
@keyframes next-nudge { 0%, 55%, 100% { transform: translateX(0); } 25% { transform: translateX(5px); } }
@media (min-width: 900px) { .next__link { font-size: 13px; padding: 0 16px; min-height: 48px; } }
@media (prefers-reduced-motion: reduce) { .next__arrow { animation: none; } .next__link { transition: none; } }
.tr__track .bar__fill { min-width: 0; }
.tr__sec-head { flex-wrap: wrap; }
.tr__sec-head h2 { white-space: nowrap; }
.tr__big { font-size: clamp(38px, 12vw, 50px); }
.tr__tip { margin-top: 4px; }

/* ---------- mobil jako aplikace: spodní lišta a jedna obrazovka ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--black); padding-bottom: env(safe-area-inset-bottom); border-top: 3px solid var(--black); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 62px; color: var(--paper); text-decoration: none; font-size: 10px; font-weight: 600; letter-spacing: 0.06em; }
.tabbar a[aria-current="page"] { color: var(--yellow); }
.tabbar a[aria-current="page"]::before { content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 4px; background: var(--yellow); border-radius: 0 0 4px 4px; }
.tabbar a:focus-visible { outline-color: var(--yellow); outline-offset: -4px; }

@media (max-width: 899px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .panel { display: none; }
  .panel.is-active { display: block; }
  .sec.panel { margin-top: 28px; }
  body[data-panel]:not([data-panel="progres"]) .foot { display: none; }
  .tr__back { display: none; }
}
@media (min-width: 900px) {
  .tabbar { display: none; }
}
