/* 365 GYM · Platinum — onyx a platina, karmín z loga ako jediný akcent. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/manrope-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(../fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(../fonts/cormorant-garamond-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(../fonts/cormorant-garamond-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-display: swap;
  font-weight: 300 700;
  src: url(../fonts/cormorant-garamond-latin-ext-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-display: swap;
  font-weight: 300 700;
  src: url(../fonts/cormorant-garamond-latin-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #070708;
  --bg-1: #0d0d0f;
  --bg-2: #131316;
  --bg-3: #1b1b1f;
  --line: rgba(236, 234, 228, .075);
  --line-2: rgba(236, 234, 228, .13);
  --line-3: rgba(236, 234, 228, .22);
  --pt: #ecebe6;
  --pt-2: #bebcb6;
  --pt-3: #8b8984;
  --pt-4: #5d5c58;
  --red: #a81313;
  --red-2: #cf3029;
  --red-3: #e55a50;
  --metal: linear-gradient(118deg, #fbfaf7 0%, #d8d7d2 20%, #a3a29d 42%, #f1f0ec 60%, #b5b4ae 80%, #e6e5e0 100%);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  /* číslice: Cormorant má 0/1 podobné písmenám O/I, preto čísla v tenkom Manrope */
  --num: 'Manrope', system-ui, sans-serif;
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --gutter: 20px;
  --ease: cubic-bezier(.22, .8, .16, 1);
  --tab-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font: 400 15px/1.5 var(--sans);
  color: var(--pt-2);
  background:
    radial-gradient(110% 55% at 50% -12%, rgba(236, 234, 228, .075), transparent 62%),
    radial-gradient(70% 40% at 100% 18%, rgba(168, 19, 19, .10), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  font-feature-settings: 'lnum';
}

/* jemné zrno matného povrchu */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: .055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

body.has-screen { overflow: hidden; }

button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
img { display: block; }
dl, dd { margin: 0; }

.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- typografia ---------- */

.eyebrow {
  font: 650 10.5px/1.4 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--pt-3);
  margin: 0;
}

.display {
  font: 500 46px/1.02 var(--serif);
  letter-spacing: -.012em;
  color: var(--pt);
  margin: 8px 0 0;
  text-wrap: balance;
}
.display.xl { font-size: 58px; }
.display em, .metal-text {
  font-style: italic;
  font-weight: 400;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
}
.display .dot { color: var(--red-2); }
.center { text-align: center; }

.prose {
  margin: 0;
  font-size: 15px;
  line-height: 1.68;
  color: var(--pt-2);
  -webkit-user-select: text;
  user-select: text;
}

/* ---------- tlačidlá ---------- */

.btn {
  appearance: none;
  border: 0;
  height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 750 12px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .2s var(--ease), filter .2s, background .3s;
}
.btn:active { transform: scale(.975); }
.btn .ic { width: 16px; height: 16px; }
.btn-lg { width: 100%; height: 58px; font-size: 12.5px; }
.btn-metal {
  color: #0b0b0c;
  background: var(--metal);
  background-size: 220% 100%;
  box-shadow: 0 14px 34px -16px rgba(236, 234, 228, .5), inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 0 rgba(0, 0, 0, .22);
  animation: metal-shift 9s ease-in-out infinite;
}
.btn-metal .ic { stroke-width: 2; }
.btn-ghost {
  color: var(--pt);
  background: rgba(236, 234, 228, .04);
  border: 1px solid var(--line-2);
}
.btn-danger {
  color: var(--red-3);
  background: rgba(168, 19, 19, .08);
  border: 1px solid rgba(207, 48, 41, .32);
}
.btn-sub { opacity: .55; margin-left: 2px; letter-spacing: .12em; }
.btn-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }

@keyframes metal-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.chip-btn {
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(236, 234, 228, .035);
  color: var(--pt-2);
  font: 650 11.5px var(--sans);
  letter-spacing: .08em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: transform .2s var(--ease), background .2s;
}
.chip-btn:active { transform: scale(.96); background: rgba(236, 234, 228, .08); }
.chip-btn .ic { width: 15px; height: 15px; }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(236, 234, 228, .03);
  color: var(--pt-2);
  display: grid;
  place-items: center;
  padding: 0;
  transition: transform .2s var(--ease);
}
.icon-btn:active { transform: scale(.92); }

.link-btn {
  background: none;
  border: 0;
  color: var(--pt-3);
  font: 700 10.5px var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 2px;
}
.link-btn .ic { width: 15px; height: 15px; }

/* ---------- shell ---------- */

#app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  opacity: 0;
  transition: opacity .6s ease;
}
body.ready #app { opacity: 1; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--st) + 14px) var(--gutter) 14px;
  background: linear-gradient(var(--bg) 55%, rgba(7, 7, 8, 0));
}
.topbar .logo { height: 21px; width: auto; }
.topbar-r { display: flex; align-items: center; gap: 10px; }
/* platinový odznak členstva */
.plat {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 15px 0 11px;
  border-radius: 999px;
  color: #0b0b0c;
  background: var(--metal);
  background-size: 260% 100%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(0, 0, 0, .3),
    0 0 0 1px rgba(255, 255, 255, .18),
    0 6px 22px -6px rgba(236, 234, 228, .6),
    0 0 34px rgba(236, 234, 228, .22);
  animation: metal-shift 7s ease-in-out infinite, plat-glow 3.5s ease-in-out infinite;
  white-space: nowrap;
}
.plat::after {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .95) 48%, rgba(255, 255, 255, .2) 54%, transparent 66%);
  transform: translateX(-130%);
  animation: plat-sweep 4.2s cubic-bezier(.4, 0, .2, 1) infinite;
}
.plat-gem { width: 15px; height: 15px; flex: none; }
.plat-gem path { fill: #0b0b0c; }
.plat-gem .plat-facet { fill: none; stroke: rgba(236, 234, 228, .6); stroke-width: .9; stroke-linejoin: round; }
.plat-txt { font: 800 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; margin-right: -.3em; }
@keyframes plat-sweep {
  0%, 55% { transform: translateX(-130%); }
  85%, 100% { transform: translateX(130%); }
}
@keyframes plat-glow {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 255, 255, .18), 0 6px 22px -6px rgba(236, 234, 228, .6), 0 0 26px rgba(236, 234, 228, .16); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(0, 0, 0, .3), 0 0 0 1px rgba(255, 255, 255, .28), 0 6px 26px -6px rgba(236, 234, 228, .75), 0 0 44px rgba(236, 234, 228, .32); }
}

.view { padding: 4px var(--gutter) calc(var(--tab-h) + var(--sb) + 30px); }

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  max-width: 520px;
  margin: 0 auto;
  height: calc(var(--tab-h) + var(--sb));
  padding-bottom: var(--sb);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(9, 9, 11, .8);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  border-top: 1px solid var(--line);
}
.tab {
  position: relative;
  border: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--pt-4);
  font: 700 9.5px var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: color .3s;
}
.tab .ic { width: 22px; height: 22px; }
.tab.is-active { color: var(--pt); }
.tab.is-active::before {
  content: '';
  position: absolute;
  top: -1px;
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--red-2);
  box-shadow: 0 0 14px 1px rgba(207, 48, 41, .8);
}

/* nástup obsahu */
.enter > * { animation: rise .7s var(--ease) both; }
.enter > *:nth-child(2) { animation-delay: .05s; }
.enter > *:nth-child(3) { animation-delay: .1s; }
.enter > *:nth-child(4) { animation-delay: .15s; }
.enter > *:nth-child(5) { animation-delay: .2s; }
.enter > *:nth-child(6) { animation-delay: .25s; }
.enter > *:nth-child(n+7) { animation-delay: .3s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Dnes ---------- */

.hello { padding: 10px 0 2px; }
.restday { margin: 12px 0 0; font: italic 400 19px/1.4 var(--serif); color: var(--pt-3); }

.done-card {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: linear-gradient(120deg, rgba(236, 234, 228, .06), rgba(236, 234, 228, .015));
}
.done-card > .ic {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--metal);
  color: #0b0b0c;
  stroke-width: 2.2;
}
.done-card b { display: block; color: var(--pt); font-weight: 650; font-size: 14px; }
.done-card span { display: block; font-size: 13px; color: var(--pt-3); margin-top: 2px; }

.install-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line-3);
  background: linear-gradient(120deg, rgba(236, 234, 228, .09), rgba(236, 234, 228, .02));
  text-align: left;
  color: var(--pt-2);
}
.install-card:active { transform: scale(.985); }
.install-card[hidden] { display: none; }
.welcome-install { margin-top: 26px; }
.install-card > .ic {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: var(--metal);
  color: #0b0b0c;
  stroke-width: 2;
}
.install-card b { display: block; font-size: 14px; font-weight: 700; color: var(--pt); }
.install-card small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--pt-3); }

.program {
  margin-top: 22px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .008));
}
.program-head { display: flex; justify-content: space-between; align-items: baseline; }
.program-val { font: 500 13px var(--sans); letter-spacing: .04em; color: var(--pt-3); }
.program-val b { font: 300 21px var(--num); color: var(--pt); }
.program-title { font: 500 30px/1.1 var(--serif); color: var(--pt); margin: 12px 0 0; }
.program-title em { font-style: italic; color: var(--pt-2); }
.program-foot { margin: 14px 0 0; font-size: 12.5px; color: var(--pt-3); letter-spacing: .02em; }
.program .btn { margin-top: 16px; }

.countdown { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.cd-num {
  font: 200 68px/0.9 var(--num);
  letter-spacing: -.03em;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cd-unit { font: 650 10.5px/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--pt-3); }

.weekbar { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-top: 16px; padding-bottom: 8px; }
.weekbar i { position: relative; height: 5px; border-radius: 3px; background: rgba(236, 234, 228, .08); }
.weekbar i.is-past { background: linear-gradient(90deg, #7f7e7a, #bcbbb6); }
.weekbar i.is-cur { background: var(--metal); box-shadow: 0 0 14px rgba(236, 234, 228, .45); }
.weekbar i.is-deload::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 10px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--red-2);
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 14px;
  padding: 20px 20px 20px;
  border-radius: 28px;
  background:
    radial-gradient(120% 85% at 105% -5%, rgba(168, 19, 19, .38), transparent 55%),
    radial-gradient(90% 70% at -10% 110%, rgba(236, 234, 228, .07), transparent 60%),
    linear-gradient(160deg, #19191c, #0b0b0d 72%);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .07);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .05) 32%, rgba(255, 255, 255, .02) 62%, rgba(207, 48, 41, .55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-sheen {
  position: absolute;
  inset: -60% -40%;
  z-index: -1;
  background: linear-gradient(112deg, transparent 44%, rgba(255, 255, 255, .075) 50%, transparent 56%);
  animation: sheen 10s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sheen {
  0%, 55% { transform: translateX(-55%); }
  100% { transform: translateX(55%); }
}
.hero-top { display: flex; justify-content: space-between; align-items: center; }
.hero-week { font: 650 10.5px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--pt-3); }
.hero-title {
  font: 500 64px/0.92 var(--serif);
  letter-spacing: -.015em;
  color: var(--pt);
  margin: 26px 0 0;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .08em;
}
.hero-sub { margin: 10px 0 0; font-size: 13px; color: var(--pt-3); letter-spacing: .02em; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 22px 0 20px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line-2);
}
.hero-stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hero-stats dt { font: 650 9.5px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--pt-3); }
.hero-stats dd { margin-top: 8px; font: 250 28px/1 var(--num); letter-spacing: -.01em; color: var(--pt); }
.hero-stats dd small { font: 650 10px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pt-3); margin-left: 4px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(236, 234, 228, .06);
  font: 750 9.5px var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pt);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--red-2); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(207, 48, 41, .7); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(207, 48, 41, 0); }
}

.alt { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 0 4px; }
.alt .eyebrow { margin-right: auto; }

.notice {
  display: flex;
  gap: 13px;
  margin-top: 16px;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(207, 48, 41, .24);
  background: linear-gradient(120deg, rgba(168, 19, 19, .12), rgba(168, 19, 19, .03));
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--pt-2);
}
.notice > .ic { color: var(--red-3); margin-top: 1px; }
.notice b { display: block; font-weight: 700; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--pt); margin-bottom: 4px; }
.notice span { display: block; }
.notice-ss { border-color: var(--line-2); background: linear-gradient(120deg, rgba(236, 234, 228, .06), rgba(236, 234, 228, .015)); }
.notice-ss > .ic { color: var(--pt); }

.week { margin-top: 30px; }
.week-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.wd > button, .wd > div {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 11px 0 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: none;
}
.wd-d { font: 700 9.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--pt-4); }
.wd-n { font: 300 19px/1 var(--num); color: var(--pt-3); }
.wd-w {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 750 10px var(--sans);
  color: var(--pt);
}
.wd-w .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.wd.is-train .wd-w { border: 1px solid rgba(207, 48, 41, .6); background: rgba(168, 19, 19, .14); }
.wd.is-train .wd-n { color: var(--pt); }
.wd.is-done .wd-w { background: var(--metal); color: #0b0b0c; border-color: transparent; }
.wd.is-past:not(.is-train) .wd-n { color: var(--pt-4); }
.wd.is-today > * { border-color: var(--line-3); background: rgba(236, 234, 228, .05); }
.wd.is-today .wd-d { color: var(--pt-2); }

.tip {
  margin-top: 30px;
  padding: 22px 20px 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent);
}
.tip p { margin: 12px 0 0; font: italic 400 22px/1.36 var(--serif); color: var(--pt); }

/* ---------- sekcie a zoznamy ---------- */

.page-head { padding: 10px 0 0; }
.lead { margin: 12px 0 0; font-size: 14px; color: var(--pt-3); }

.sec { margin-top: 32px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.sec-title { margin: 0; font: 500 26px/1.1 var(--serif); color: var(--pt); }
.sec-meta { font: 650 10px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--pt-3); text-align: right; }
.view > .btn-lg { margin-top: 26px; }

.seg {
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  gap: 4px;
  margin-top: 24px;
  padding: 4px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(236, 234, 228, .03);
}
.seg button {
  height: 54px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--pt-3);
  font: 500 19px/1 var(--serif);
  transition: background .3s, color .3s;
}
.seg button small { display: block; margin-top: 5px; font: 700 9px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--pt-4); }
.seg button.is-active {
  color: var(--pt);
  background: linear-gradient(180deg, #202024, #151518);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 18px rgba(0, 0, 0, .45);
}
.seg button.is-active small { color: var(--red-3); }

.weekchips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 0 calc(-1 * var(--gutter));
  padding: 16px var(--gutter) 4px;
  scrollbar-width: none;
}
.weekchips::-webkit-scrollbar { display: none; }
.wc {
  position: relative;
  flex: none;
  width: 48px;
  height: 60px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--pt-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font: 300 18px/1 var(--num);
  transition: background .25s, border-color .25s, color .25s;
}
.wc small { font: 700 7.5px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pt-4); }
.wc.is-deload small { color: var(--red-3); }
.wc.is-active { color: var(--pt); border-color: var(--line-3); background: rgba(236, 234, 228, .07); }
.wc.is-cur::after {
  content: '';
  position: absolute;
  top: 6px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-2);
  box-shadow: 0 0 8px var(--red-2);
}
.week-caption { margin: 12px 0 0; font-size: 13px; color: var(--pt-3); }
.week-caption b { color: var(--pt); font-weight: 650; }

.ex-list, .ex-list ol, .wu-list { list-style: none; margin: 0; padding: 0; }
.ex-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 46px 1fr 16px;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
  transition: background .2s;
}
.ex-btn:active { background: rgba(236, 234, 228, .03); }
.ex-num { font: 250 19px/1 var(--num); letter-spacing: -.01em; color: var(--pt-3); }
.ex-name { display: block; font: 600 15px/1.3 var(--sans); color: var(--pt); }
.ex-line { display: block; margin-top: 5px; font-size: 12.5px; color: var(--pt-3); }
.ex-chev { width: 16px; height: 16px; color: var(--pt-4); }

.superset { position: relative; }
.superset > ol {
  margin-left: 2px;
  padding-left: 14px;
  border-left: 1px solid rgba(207, 48, 41, .55);
}
.ss-head { display: flex; align-items: baseline; gap: 10px; padding: 16px 0 2px; }
.ss-label { font: 750 9.5px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--red-3); }
.ss-note { font-size: 12px; color: var(--pt-4); }
.superset .ex-btn { grid-template-columns: 44px 1fr 16px; }

.wu-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  text-align: left;
}
.wu-dot { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--pt-3); }
.wu-name { font-size: 14.5px; color: var(--pt); font-weight: 550; }
.wu-dose { font-size: 12.5px; color: var(--pt-3); text-align: right; }

/* ---------- Zásady ---------- */

.rules { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.rule {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px;
  padding: 20px 18px 20px 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .006));
}
.rule-n { font: italic 500 22px/1.15 var(--serif); color: var(--red-3); }
.ex-line .is-changed { color: var(--red-3); font-weight: 650; }
.rule h3 { margin: 0 0 6px; font: 500 25px/1.1 var(--serif); color: var(--pt); }
.rule p { margin: 0; font-size: 14px; line-height: 1.62; color: var(--pt-2); }

.prog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.prog {
  padding: 18px 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: radial-gradient(100% 80% at 100% 0%, rgba(168, 19, 19, .14), transparent 60%), var(--bg-1);
}
.prog b {
  display: inline-block;
  margin-top: 10px;
  font: 200 38px/1 var(--num);
  letter-spacing: -.02em;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.prog small { margin-left: 6px; font: 650 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--pt-3); }
.prog-note { margin: 14px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--pt-3); }

.glossary { margin-top: 8px; }
.glossary > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.glossary dt { font: 500 19px/1.3 var(--serif); color: var(--pt); }
.glossary dd { font-size: 13.5px; line-height: 1.6; color: var(--pt-2); }

/* ---------- celoobrazovkové okná ---------- */

#screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  max-width: 520px;
  margin: 0 auto;
  background:
    radial-gradient(110% 50% at 50% -10%, rgba(236, 234, 228, .07), transparent 60%),
    var(--bg);
  transform: translateX(104%);
  visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s .5s;
}
#screen.open { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
#screen[data-mode=session] { transform: translateY(6%); opacity: 0; transition: transform .5s var(--ease), opacity .4s, visibility 0s .5s; }
#screen[data-mode=session].open { transform: none; opacity: 1; transition: transform .5s var(--ease), opacity .4s, visibility 0s; }

.scr, .player { height: 100%; display: flex; flex-direction: column; }
.scr-bar, .pl-bar {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 10px;
  padding: calc(var(--st) + 12px) var(--gutter) 12px;
}
.scr-title { display: flex; justify-content: center; text-align: center; font: 700 10.5px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--pt-3); }
.scr-body, .pl-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 2px var(--gutter) 28px;
}
.scr-cta, .pl-cta {
  padding: 12px var(--gutter) calc(var(--sb) + 16px);
  border-top: 1px solid var(--line);
  background: rgba(9, 9, 11, .86);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.ov-hero { padding: 8px 0 4px; }
.ov-hero .hero-stats { margin-bottom: 4px; }

/* ---------- sprievodca ---------- */

.pl-title { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pl-title > span:last-child { font: 700 9.5px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--pt-3); }
.pl-title time { font: 400 12px var(--sans); font-variant-numeric: tabular-nums; letter-spacing: .06em; color: var(--pt); }
.pl-progress { height: 2px; margin: 0 var(--gutter); background: var(--line); border-radius: 2px; overflow: hidden; }
.pl-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-3) 70%, #f0c2bd);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .6s var(--ease);
  box-shadow: 0 0 12px rgba(207, 48, 41, .8);
}
.pl-nav { display: flex; justify-content: space-between; align-items: center; margin: -6px 0 6px; }
.pl-body.enter > .step > * { animation: rise .6s var(--ease) both; }
.pl-body.enter > .step > *:nth-child(2) { animation-delay: .04s; }
.pl-body.enter > .step > *:nth-child(3) { animation-delay: .08s; }
.pl-body.enter > .step > *:nth-child(4) { animation-delay: .12s; }
.pl-body.enter > .step > *:nth-child(n+5) { animation-delay: .16s; }

.step { padding-top: 14px; }
.step-kicker { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; min-height: 30px; }
.step-kicker-r { font: 650 10.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--pt-3); }
.step-num {
  font: 200 64px/0.85 var(--num);
  letter-spacing: -.04em;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font: 750 9px var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pt-2);
  white-space: nowrap;
}
.tag .ic { width: 12px; height: 12px; }
.tag-soft { border-color: rgba(207, 48, 41, .38); color: var(--red-3); }
.step-name {
  margin: 16px 0 0;
  font: 500 40px/1.04 var(--serif);
  letter-spacing: -.01em;
  color: var(--pt);
  text-wrap: balance;
}
.step-en { margin: 10px 0 0; font: 650 10.5px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--pt-3); }

.setdots { display: flex; align-items: center; gap: 6px; margin: 20px 0 4px; }
.setdots i { width: 28px; height: 4px; border-radius: 2px; background: rgba(236, 234, 228, .1); }
.setdots i.is-done { background: var(--pt-3); }
.setdots i.is-cur { background: var(--metal); box-shadow: 0 0 10px rgba(236, 234, 228, .4); }
.setdots span { margin-left: 10px; font: 650 10.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--pt-3); }
.setdots b { color: var(--pt); font-weight: 750; }

.rx-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 16px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}
.rx-grid.rx-1 { grid-template-columns: 1fr; }
.rx-grid.rx-3 { grid-template-columns: repeat(3, 1fr); }
.rx-grid.rx-5 { grid-template-columns: repeat(6, 1fr); }
.rx-grid.rx-5 .rx { grid-column: span 2; }
.rx-grid.rx-5 .rx:nth-child(-n+2) { grid-column: span 3; }
.rx { padding: 14px 16px 15px; background: var(--bg-1); min-width: 0; }
.rx dt { font: 650 9.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--pt-3); }
.rx dd { margin-top: 8px; font: 300 23px/1.05 var(--num); letter-spacing: -.01em; color: var(--pt); }
.rx dd small { font: 650 9.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--pt-3); margin-left: 3px; }

.tempo {
  --travel: 52px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 16px;
  margin-top: 12px;
  padding: 16px 18px 16px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-1);
}
.tempo-track { position: relative; width: 2px; height: 64px; margin: auto; border-radius: 2px; background: linear-gradient(var(--line-3), var(--line)); }
.tempo-track i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--metal);
  box-shadow: 0 0 14px rgba(236, 234, 228, .6);
  animation-duration: var(--dur);
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}
.tempo-body { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; }
.tempo-phases { display: flex; gap: 12px; }
.tp { min-width: 0; animation-duration: var(--dur); animation-iteration-count: infinite; animation-timing-function: linear; }
.tp b { display: block; font: 300 21px/1 var(--num); color: var(--pt); }
.tp span { display: block; margin-top: 6px; font: 700 9px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--pt-2); white-space: nowrap; }
.tp em { display: block; margin-top: 2px; font: italic 400 14.5px var(--serif); color: var(--pt-3); }
.tempo-bar { height: 2px; border-radius: 2px; overflow: hidden; background: var(--line); }
.tempo-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-3));
  transform-origin: left;
  animation-duration: var(--dur);
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

.demo {
  margin: 12px 0 0;
  padding: 14px 12px 12px;
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: radial-gradient(80% 70% at 55% 40%, rgba(236, 234, 228, .055), transparent 70%), var(--bg-1);
}
.demo + .tempo { margin-top: 0; border-radius: 0 0 20px 20px; }
.demo:not(:has(+ .tempo)) { border-radius: 20px; border-bottom: 1px solid var(--line); }
.dm-torso-f { fill: url(#dm-metal); }
.dm-rope { stroke: #d8d6cf; stroke-width: 3.5; stroke-linecap: round; }
.dm-grip { fill: #1d1d21; stroke: url(#dm-metal); stroke-width: 2.2; }
.dm-mat { stroke: #2b2b30; stroke-width: 5; stroke-linecap: round; }
.dm-band { stroke: #ecebe6; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 3 2; }
.dm-far { opacity: .42; }
.dm-spine { fill: none; stroke-linejoin: round; }
.dm-spine-m { fill: none; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.dm-wall { stroke: rgba(236, 234, 228, .2); stroke-width: 6; stroke-linecap: round; }
.dm-bikeframe { stroke-width: 4; stroke: rgba(236, 234, 228, .24); }
.demo-svg { display: block; width: 100%; height: auto; max-height: 250px; margin: 0 auto; }
.demo figcaption { margin: 6px 6px 0; font-size: 12.5px; line-height: 1.5; text-align: center; color: var(--pt-3); }
.dm-frame { stroke: rgba(236, 234, 228, .15); stroke-width: 2; stroke-linecap: round; }
.dm-rail { stroke: rgba(236, 234, 228, .3); stroke-width: 3; stroke-linecap: round; }
.dm-rail-2 { stroke: rgba(236, 234, 228, .13); stroke-width: 1; }
.dm-pad { stroke: #2b2b30; stroke-width: 9; stroke-linecap: round; }
.dm-sled { fill: rgba(236, 234, 228, .07); stroke: rgba(236, 234, 228, .26); stroke-width: 1.2; stroke-linejoin: round; }
.dm-plate { fill: rgba(236, 234, 228, .045); stroke: rgba(236, 234, 228, .36); stroke-width: 1.4; }
.dm-hub { fill: rgba(236, 234, 228, .5); }
.dm-footplate { stroke: rgba(236, 234, 228, .6); stroke-width: 4.5; stroke-linecap: round; }
.dm-body { stroke: url(#dm-metal); stroke-linecap: round; }
.dm-torso { stroke-width: 24; }
.dm-gap { stroke: var(--bg-1); stroke-linecap: round; }
.dm-gap.dm-upperarm { stroke-width: 15; }
.dm-gap.dm-forearm { stroke-width: 13; }
.dm-arm { opacity: .82; }
.dm-neck { stroke-width: 9; }
.dm-thigh { stroke-width: 17; }
.dm-shin { stroke-width: 12; }
.dm-foot { stroke-width: 7; }
.dm-body.dm-upperarm { stroke-width: 11; }
.dm-body.dm-forearm { stroke-width: 9; }
.dm-head { fill: url(#dm-metal); }
.dm-handle { stroke: rgba(236, 234, 228, .5); stroke-width: 4; stroke-linecap: round; }
.dm-muscle { stroke: url(#dm-red); fill: url(#dm-red); filter: drop-shadow(0 0 4px rgba(207, 48, 41, .85)); }
.dm-glute { r: 7px; }
.dm-quad { stroke-width: 7; stroke-linecap: round; fill: none; }
.dm-glute { stroke: none; }
.dm-db { fill: #1d1d21; stroke: url(#dm-metal); stroke-width: 2.4; }
.dm-db-in { fill: url(#dm-metal); }
.dm-stackplate { fill: rgba(236, 234, 228, .07); stroke: rgba(236, 234, 228, .32); stroke-width: 1; }
.dm-rod { stroke: rgba(236, 234, 228, .45); stroke-width: 2; }
.dm-strut { stroke: rgba(236, 234, 228, .26); stroke-width: 3; stroke-linecap: round; }
.dm-cable { stroke: rgba(236, 234, 228, .42); stroke-width: 1.3; }
.dm-lever { stroke: rgba(236, 234, 228, .4); stroke-width: 4; stroke-linecap: round; }
.dm-roller { fill: #2b2b30; stroke: rgba(236, 234, 228, .5); stroke-width: 1.5; }
.dm-bar { stroke: url(#dm-metal); stroke-width: 4.5; stroke-linecap: round; }
.dm-chest, .dm-back { stroke-width: 9; stroke-linecap: round; fill: none; }
.dm-ham { stroke-width: 7; stroke-linecap: round; fill: none; }
.dm-calf { stroke-width: 6; stroke-linecap: round; fill: none; }
.dm-bic { stroke-width: 5; stroke-linecap: round; fill: none; }
.dm-arrow { fill: none; stroke: var(--red-3); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity .3s; }
.dm-angle { transition: opacity .2s; }
.dm-angle path { fill: none; stroke: var(--pt); stroke-width: 1.2; stroke-dasharray: 2 2; }
.dm-angle text { font: 700 9px var(--sans); fill: var(--pt); text-anchor: middle; letter-spacing: .04em; }
.dm-shadow { fill: rgba(0, 0, 0, .55); }

.block { margin-top: 28px; }
.block > .eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.block > .eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.mm-wrap {
  padding: 18px 14px 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: radial-gradient(70% 60% at 50% 35%, rgba(236, 234, 228, .045), transparent 70%), var(--bg-1);
}
.musclemap { display: block; width: 100%; max-width: 320px; height: auto; margin: 0 auto; }
.mm-n { fill: rgba(236, 234, 228, .065); }
.mm-o { fill: rgba(236, 234, 228, .12); }
.mm-s { fill: rgba(207, 48, 41, .38); }
.mm-p { filter: drop-shadow(0 0 5px rgba(207, 48, 41, .6)); }
.mm-cap { display: grid; grid-template-columns: 1fr 1fr; max-width: 320px; margin: 8px auto 0; text-align: center; font: 700 8.5px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--pt-4); }
.mm-legend { display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.mm-legend p { display: grid; grid-template-columns: 8px 64px 1fr; align-items: baseline; gap: 10px; margin: 0; font-size: 13px; color: var(--pt-2); }
.mm-legend b { font: 700 9px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--pt-3); }
.lg { width: 8px; height: 8px; border-radius: 50%; transform: translateY(-1px); }
.lg-p { background: var(--red-2); box-shadow: 0 0 8px var(--red-2); }
.lg-s { background: rgba(207, 48, 41, .4); }

.dose {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg-1);
}
.dose-v { font: 300 26px/1.2 var(--num); color: var(--pt); }

/* pauza */
.step-rest { display: flex; flex-direction: column; align-items: center; padding-top: 2vh; }
.ring-wrap { position: relative; width: min(74vw, 300px); aspect-ratio: 1; margin: 16px auto 0; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-bg { fill: none; stroke: rgba(236, 234, 228, .07); stroke-width: 3; }
.ring-fg {
  fill: none;
  stroke: url(#ring-g);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dashoffset .25s linear;
  filter: drop-shadow(0 0 6px rgba(236, 234, 228, .4));
}
.ring-min { fill: none; stroke: var(--red-2); stroke-width: 10; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dial-brand {
  margin-bottom: 10px;
  font: 800 11px/1 var(--sans);
  letter-spacing: .42em;
  margin-right: -.42em;
  text-transform: uppercase;
  background: var(--metal);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: metal-shift 7s ease-in-out infinite;
}
.ring-time { font: 200 80px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.03em; color: var(--pt); }
.ring-sub { margin-top: 12px; font: 650 10px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--pt-3); }
.rest-adjust { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.next-card {
  width: 100%;
  margin-top: 28px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, var(--bg-2), var(--bg-1));
}
.next-main { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; margin-top: 10px; }
.next-num {
  font: 200 38px/1 var(--num);
  letter-spacing: -.03em;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.next-main h3 { margin: 0; font: 500 23px/1.12 var(--serif); color: var(--pt); }
.next-main p { margin: 5px 0 0; font-size: 12.5px; color: var(--pt-3); }
.rest-tip { width: 100%; margin: 22px 0 0; font: italic 400 18px/1.45 var(--serif); color: var(--pt-3); }
.rest-tip .eyebrow { display: block; margin-bottom: 6px; font-style: normal; }

/* sekvenčný časovač */
.seq {
  margin-top: 18px;
  padding: 22px 18px 16px;
  border-radius: 24px;
  border: 1px solid var(--line-2);
  text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, rgba(236, 234, 228, .07), transparent 65%), var(--bg-1);
  transition: border-color .5s, background .5s;
}
.seq[data-kind=work] {
  border-color: rgba(207, 48, 41, .55);
  background: radial-gradient(120% 90% at 50% 0%, rgba(168, 19, 19, .42), transparent 68%), var(--bg-1);
}
.seq[data-kind=switch] { border-color: var(--line-3); }
.seq-head { display: flex; flex-direction: column; gap: 6px; }
.seq-label { font: 500 32px/1.05 var(--serif); color: var(--pt); }
.seq-note { font: 650 10px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--pt-3); min-height: 14px; }
.seq-time { margin: 14px 0 6px; font: 200 86px/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.03em; color: var(--pt); }
.seq.is-paused .seq-time { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.seq-sub { min-height: 15px; font: 650 10.5px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--pt-2); }
.seq-strip { display: flex; gap: 2px; height: 8px; margin: 18px 0 12px; border-radius: 4px; overflow: hidden; }
.seq-strip i { position: relative; overflow: hidden; background: rgba(236, 234, 228, .08); }
.seq-strip i b { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--pt-3); }
.seq-strip i.sq-work { background: rgba(207, 48, 41, .22); }
.seq-strip i.sq-work b { background: var(--red-2); }
.seq-bar { position: relative; height: 4px; margin: 20px 0 12px; border-radius: 2px; background: rgba(236, 234, 228, .08); }
.seq-bar b { position: absolute; inset: 0; border-radius: 2px; transform-origin: left; transform: scaleX(0); background: var(--metal); }
.seq-bar em { position: absolute; top: -5px; width: 2px; height: 14px; margin-left: -1px; border-radius: 1px; background: var(--red-2); box-shadow: 0 0 8px var(--red-2); }
.seq-meta { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: .03em; color: var(--pt-3); }
.seq-ctrl { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }

.iv-preview { margin-top: 12px; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-1); }
.iv-strip { display: flex; align-items: flex-end; gap: 2px; height: 28px; }
.iv-strip i { display: block; border-radius: 2px; }
.iv-strip .iv-work { height: 100%; background: linear-gradient(var(--red-3), var(--red)); }
.iv-strip .iv-recover { height: 42%; background: rgba(236, 234, 228, .2); }
.iv-strip .iv-easy { height: 26%; background: rgba(236, 234, 228, .1); }
.iv-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; font-size: 11.5px; color: var(--pt-3); }
.iv-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; }
.iv-legend .iv-work { background: var(--red-2); }
.iv-legend .iv-recover { background: rgba(236, 234, 228, .3); }
.iv-legend .iv-easy { background: rgba(236, 234, 228, .14); }
.iv-total { margin-left: auto; color: var(--pt-2); font-variant-numeric: tabular-nums; }

/* koniec */
.step-finish { position: relative; padding-top: 7vh; }
.step-finish::before {
  content: '';
  position: absolute;
  left: 50%;
  top: calc(7vh + 52px);
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(168, 19, 19, .5), rgba(168, 19, 19, .14) 55%, transparent);
  pointer-events: none;
}
.seal {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 32% 26%, #ffffff, #d8d7d2 32%, #8e8d88 68%, #dcdbd6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 0 0 10px rgba(236, 234, 228, .04), 0 0 40px rgba(236, 234, 228, .18);
  animation: seal-in 1.1s var(--ease) both;
}
.seal .ic { width: 42px; height: 42px; color: #0b0b0c; stroke-width: 1.8; }
@keyframes seal-in { from { transform: scale(.6) rotate(-20deg); opacity: 0; } }
.step-finish .display { font-size: 52px; margin-top: 12px; }
.finish-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.finish-stats > div { padding: 18px 0; }
.finish-stats > div + div { border-left: 1px solid var(--line); }
.finish-stats dt { font: 650 9.5px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--pt-3); }
.finish-stats dd { margin-top: 8px; font: 250 26px/1 var(--num); color: var(--pt); font-variant-numeric: tabular-nums; }
.finish-next { margin: 28px 0 0; text-align: center; font-size: 14px; color: var(--pt-2); }
.finish-next .eyebrow { display: block; margin-bottom: 8px; }

/* ---------- detail cviku ---------- */

.detail { padding-top: 6px; }
.detail-head { display: flex; align-items: flex-end; gap: 8px; min-height: 30px; padding-right: 48px; }
.detail-num {
  margin-right: auto;
  font: 200 54px/0.85 var(--num);
  letter-spacing: -.04em;
  background: var(--metal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.detail-name { margin: 16px 0 0; font: 500 36px/1.05 var(--serif); color: var(--pt); text-wrap: balance; }
.detail-en { margin: 10px 0 0; font: 650 10.5px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--pt-3); }
.detail-note { display: flex; gap: 10px; align-items: center; margin: 12px 0 0; font-size: 13px; color: var(--pt-3); }
.detail-note .ic { width: 16px; height: 16px; }

/* ---------- spodné panely ---------- */

.sheet-wrap { position: fixed; inset: 0; z-index: 80; }
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .4s;
}
.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 520px;
  max-height: calc(100dvh - var(--st) - 20px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border-radius: 30px 30px 0 0;
  border: 1px solid var(--line-2);
  border-bottom: 0;
  background:
    radial-gradient(90% 40% at 100% 0%, rgba(168, 19, 19, .16), transparent 70%),
    linear-gradient(180deg, #161619, #0b0b0d 45%);
  box-shadow: 0 -30px 80px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .07);
  transform: translateY(102%);
  transition: transform .5s var(--ease);
}
.sheet-wrap.open .sheet { transform: none; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet-grab { flex: none; width: 40px; height: 4px; margin: 10px auto 0; border-radius: 2px; background: var(--line-3); }
.sheet-x { position: absolute; top: 16px; right: 16px; z-index: 2; }
.sheet-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 12px var(--gutter) calc(var(--sb) + 30px); }
.sheet-title { margin: 8px 0 6px; font: 500 38px/1.05 var(--serif); color: var(--pt); }
.sheet-title em { font-style: italic; font-weight: 400; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }

.settings { padding-top: 10px; }
.settings > .btn { margin-top: 22px; }
.field { display: grid; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.field input {
  height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--bg-1);
  color: var(--pt);
  font: 500 16px var(--sans);
  color-scheme: dark;
  -webkit-user-select: text;
  user-select: text;
}
.field small { font-size: 12.5px; line-height: 1.5; color: var(--pt-3); }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--pt); font-size: 15px; }
.toggle-row > span { display: flex; align-items: center; gap: 12px; }
.toggle-row .ic { color: var(--pt-3); }
.switch {
  position: relative;
  width: 52px;
  height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(236, 234, 228, .08);
  transition: background .3s, border-color .3s;
}
.switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pt-3);
  transition: transform .35s var(--ease), background .3s;
}
.switch[aria-checked=true] { background: rgba(168, 19, 19, .45); border-color: rgba(207, 48, 41, .7); }
.switch[aria-checked=true]::after { transform: translateX(22px); background: var(--metal); }
.about { padding: 34px 0 4px; text-align: center; }
.about img { height: 24px; width: auto; margin: 0 auto; opacity: .9; }
.about p { margin: 16px 0 4px; font-size: 13px; color: var(--pt-3); }
.about small { font: 650 9.5px var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--pt-4); }

/* ---------- uvítanie ---------- */

.welcome {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow-y: auto;
  background:
    radial-gradient(110% 60% at 50% -10%, rgba(236, 234, 228, .1), transparent 60%),
    radial-gradient(80% 50% at 100% 100%, rgba(168, 19, 19, .24), transparent 70%),
    var(--bg);
  opacity: 0;
  transition: opacity .7s ease;
}
.welcome.open { opacity: 1; }
.welcome-inner {
  max-width: 440px;
  min-height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--st) + 11vh) 28px calc(var(--sb) + 32px);
}
.welcome-logo { height: 30px; width: auto; }
.welcome .plat { margin-top: 24px; }
.welcome .display { margin-top: 36px; font-size: 50px; }
.welcome .lead { max-width: 300px; margin-top: 16px; line-height: 1.6; color: var(--pt-2); }
.welcome-form { width: 100%; display: grid; gap: 22px; margin-top: 34px; }
.welcome-form input {
  width: 100%;
  height: 64px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line-3);
  border-radius: 0;
  background: transparent;
  color: var(--pt);
  font: 500 32px var(--serif);
  text-align: center;
  outline: none;
  -webkit-user-select: text;
  user-select: text;
  transition: border-color .3s;
}
.welcome-form input::placeholder { color: var(--pt-4); font-style: italic; }
.welcome-form input:focus { border-bottom-color: var(--red-2); }
.btn:disabled { opacity: .3; animation: none; box-shadow: none; }

/* ---------- dialóg ---------- */

.dialog-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; }
.dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .3s;
}
.dialog {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 28px 22px 20px;
  border-radius: 28px;
  border: 1px solid var(--line-2);
  background: radial-gradient(100% 60% at 100% 0%, rgba(168, 19, 19, .18), transparent 70%), linear-gradient(180deg, #19191c, #0d0d0f);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .8);
  opacity: 0;
  transform: scale(.94) translateY(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.dialog-wrap.open .dialog { opacity: 1; transform: none; }
.dialog-wrap.open .dialog-backdrop { opacity: 1; }
.dialog h2 { margin: 0; font: 500 32px/1.1 var(--serif); color: var(--pt); }
.dialog p { margin: 12px 0 24px; font-size: 14px; line-height: 1.6; color: var(--pt-2); }
.dialog-actions { display: grid; gap: 10px; }
.dialog-actions .btn { width: 100%; }

/* ---------- chyba načítania ---------- */

.boot-error { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 20px; padding: 24px; text-align: center; }
.boot-error img { height: 26px; }
#app:has(.boot-error) { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (min-width: 560px) {
  body { padding: 0; }
  .tabbar { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
