/* X MOVERO X — мини-приложение. Цвета и шрифты сайта xmoverox.ru, один розовый акцент, градиент только в прогрессе. */
:root {
  --bg: #0b0a0d; --s1: #16141a; --s2: #1e1b22; --s3: #26232b;
  --ink: #f5f2f5; --soft: #c9c3cd; --dim: #9c95a3; --mute: #5a5462;
  --pink: #ff2d95; --pink-t: #ff4fa6;
  --grad: linear-gradient(100deg, #ff2d95, #9b5cff 55%, #2be1ff);
  --disp: 'Unbounded', 'Arial Black', sans-serif;
  --body: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --line: rgba(255,255,255,.06); --line-2: rgba(255,255,255,.1);
  --glass: rgba(24,21,29,.62);
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; overscroll-behavior-y: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--pink-t); text-decoration: none; }
.grain { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay; }
#app { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; }

.page { padding: 20px 20px 32px; display: flex; flex-direction: column; gap: 16px; min-height: 100vh; }
.page.has-tabs { padding-bottom: calc(110px + var(--safe-b)); }
.page.has-bar { padding-bottom: calc(150px + var(--safe-b)); }
.loading { padding: 40vh 0 0; text-align: center; color: var(--dim); }

.logo { display: flex; align-items: baseline; gap: 6px; font-family: var(--disp); font-weight: 900; font-size: 19px; letter-spacing: .02em; }
.logo.sm { font-size: 15px; }
.logo .x { color: var(--pink); }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.grow { flex-grow: 1; min-width: 0; }
.eyebrow { font-size: 13px; color: var(--pink-t); }
.muted { font-size: 13px; color: var(--dim); }
.small { font-size: 12px; color: var(--dim); }
.h1 { font-family: var(--disp); font-weight: 900; font-size: 30px; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.h2 { font-family: var(--disp); font-weight: 900; font-size: 24px; line-height: 1.02; letter-spacing: -.01em; text-transform: uppercase; }
.h3 { font-family: var(--disp); font-weight: 900; font-size: 14px; text-transform: uppercase; }
.num { font-family: var(--disp); font-weight: 800; }
.outline { font-family: var(--disp); font-weight: 900; line-height: .82; color: transparent; -webkit-text-stroke: 1.5px var(--pink); }
.outline.w { -webkit-text-stroke-color: var(--ink); }
.outline.g { -webkit-text-stroke: 1.2px var(--dim); }
.chip { font-size: 12px; font-weight: 500; padding: 8px 12px; background: var(--s1); border: 1px solid var(--line); border-radius: 100px; white-space: nowrap; }
/* Тонкая светлая рамка + блик сверху: блоки отделяются друг от друга без тяжёлой заливки */
.card, .list, .stat { border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.card { background: var(--s1); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card.big { border-radius: 24px; padding: 0; overflow: hidden; gap: 0; }
.list { background: var(--s1); border-radius: 20px; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.dashed { border: 1px dashed rgba(255,255,255,.16); border-radius: 20px; padding: 14px 16px; }
.lines > * + * { border-top: 1px solid var(--line); }
.stat { padding: 12px; border-radius: 16px; background: var(--s1); }
.stat .num { font-size: 17px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.grid5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.grid7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }

.btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border-radius: 100px; background: var(--pink); color: var(--bg); font-family: var(--disp); font-weight: 700; font-size: 13px; text-transform: uppercase; width: 100%; }
.btn.light { background: var(--ink); }
.btn.dark { background: var(--s1); color: var(--ink); font-family: var(--body); font-weight: 700; font-size: 14px; text-transform: none; height: 48px; }
.btn:disabled { opacity: .4; }
.link { text-align: center; font-size: 14px; color: var(--dim); padding: 4px; }
.icon-btn { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--s1); color: var(--ink); }
.pill-btn { height: 40px; padding: 0 16px; border-radius: 100px; background: var(--s3); font-weight: 700; font-size: 14px; }
.seg { display: grid; gap: 4px; padding: 4px; border-radius: 100px; background: var(--s1); }
.seg button { height: 40px; border-radius: 100px; font-weight: 700; font-size: 13px; color: var(--dim); }
.seg button.on { background: var(--pink); color: var(--bg); }
.seg.soft button.on { background: var(--s3); color: var(--ink); }
.choice { border-radius: 14px; background: var(--s1); border: 1.5px solid var(--line); font-weight: 700; font-size: 13px; color: var(--dim); min-height: 46px; padding: 8px 10px; text-align: center; }
.choice.on { border-color: var(--pink); color: var(--ink); }
.choice small { display: block; font-weight: 500; font-size: 11px; color: var(--dim); margin-top: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--dim); }
.input { height: 48px; min-width: 0; width: 100%; border-radius: 14px; border: none; background: var(--s1); color: var(--ink); font-family: var(--disp); font-weight: 700; font-size: 16px; text-align: center; outline: none; }
.input:focus { box-shadow: 0 0 0 1.5px var(--pink); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--s3); font-size: 20px; }
.stepper .val { flex-grow: 1; text-align: center; font-family: var(--disp); font-weight: 800; font-size: 18px; }
.note { padding: 12px 14px; border-radius: 14px; background: rgba(255,45,149,.1); border: 1px solid rgba(255,45,149,.35); font-size: 13px; color: #ffd1e6; }
.error { color: #ff8fbf; font-size: 13px; text-align: center; }

.bar-track { height: 6px; border-radius: 6px; background: var(--s3); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: var(--grad); }
.segbar { height: 4px; border-radius: 4px; background: var(--s3); }
.segbar.on { background: var(--pink); }

/* Стекло: плавающее меню, нижняя панель действий и шапка. Под ними при прокрутке виден размытый контент. */
.glass { background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); border: 1px solid var(--line-2); box-shadow: 0 18px 40px -18px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06); }
.tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--safe-b)); width: calc(100% - 24px); max-width: 496px; z-index: 5; padding: 8px 6px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: 26px; }
.tabs button { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--dim); font-size: 11px; font-weight: 500; padding: 6px 0; border-radius: 18px; transition: color .2s, background .2s; }
.tabs button.on { color: var(--ink); font-weight: 700; background: rgba(255,45,149,.16); }
.tabs button.on svg { color: var(--pink-t); }
.bottom { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + var(--safe-b)); width: calc(100% - 24px); max-width: 496px; z-index: 5; padding: 10px 10px 8px; border-radius: 30px; display: flex; flex-direction: column; gap: 6px; }
.bottom .link, .bottom .small { padding: 2px 8px 4px; }
.topbar { position: sticky; top: 0; z-index: 4; margin: -20px -20px 0; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.topbar.scrolled { background: var(--glass); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); border-bottom-color: var(--line); }

.day { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 0; border-radius: 14px; border: 1.5px solid transparent; }
.day.done { background: var(--s1); }
.day.today { background: var(--s1); border-color: var(--pink); }
.day .wd { font-size: 11px; color: var(--dim); }
.day.today .wd { color: var(--pink-t); }
.day .tag { font-size: 10px; color: var(--dim); white-space: nowrap; }
.day.done .tag { color: var(--pink-t); }

.wrow { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 14px; }
.dot { width: 32px; height: 32px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--disp); font-weight: 800; font-size: 12px; background: var(--s3); color: var(--dim); }
.dot.done { background: var(--pink); color: var(--bg); }
.dot.today { background: transparent; border: 2px solid var(--pink); color: var(--pink-t); }

.media { position: relative; background: var(--s2); display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-align: center; overflow: hidden; }
.media video, .media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media .ov { position: absolute; text-transform: none; letter-spacing: normal; color: var(--ink); }
.thumb { width: 56px; height: 56px; flex: none; border-radius: 12px; background: var(--s3); position: relative; display: flex; align-items: center; justify-content: center; }
.star { position: absolute; right: 4px; top: 2px; color: var(--pink); font-size: 12px; }

.ex-row { display: flex; align-items: center; gap: 12px; padding: 8px; }
.timer-box { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 20px; border-radius: 20px; background: var(--s1); border: 1.5px solid transparent; }
.timer-box.run { border-color: var(--pink); }
.ring-wrap { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.ring-wrap .in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.status-btn { height: 34px; min-width: 104px; padding: 0 12px; border-radius: 100px; font-weight: 700; font-size: 12px; }
.st-done { background: var(--pink); color: var(--bg); }
.st-easier { background: var(--s3); color: var(--ink); }
.st-skip { background: transparent; color: var(--dim); border: 1px solid var(--s3); }
.photo-slot { height: 150px; border-radius: 16px; background: var(--s3); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--dim); overflow: hidden; }
.photo-slot.empty { background: transparent; border: 1px dashed rgba(255,255,255,.22); }
.photo-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-slot input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
/* Движение: экран мягко появляется, кнопки проседают при нажатии */
@keyframes mv-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes mv-up { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
/* только при смене экрана, не при каждом нажатии */
.page.enter > * { animation: mv-in .38s cubic-bezier(.2,.8,.2,1) both; }
.page.enter > *:nth-child(2) { animation-delay: .03s; } .page.enter > *:nth-child(3) { animation-delay: .06s; } .page.enter > *:nth-child(4) { animation-delay: .09s; }
.page.enter > *:nth-child(5) { animation-delay: .12s; } .page.enter > *:nth-child(n+6) { animation-delay: .15s; }
.page.enter > .topbar { animation: none; }
.page.enter ~ .tabs, .page.enter ~ .bottom { animation: mv-up .4s cubic-bezier(.2,.8,.2,1) both; }
button, .btn, a { transition: transform .14s cubic-bezier(.2,.8,.2,1), background .2s, color .2s, border-color .2s, opacity .2s; }
button:active, .btn:active { transform: scale(.97); }
.card:is(button):active, .wrow:active, .day:is(button):active { transform: scale(.985); }
.tabs button:active { transform: scale(.92); }
button:focus-visible, a:focus-visible, .input:focus-visible { outline: 2px solid var(--pink-t); outline-offset: 2px; }
.reveal { animation: mv-in .28s cubic-bezier(.2,.8,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  .page.enter > *, .page.enter ~ .tabs, .page.enter ~ .bottom, .reveal { animation: none; }
  button, .btn, a { transition: none; }
}
/* Пульс потока: живая точка */
.live { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255,45,149,.6); animation: mv-live 1.8s ease-out infinite; }
@keyframes mv-live { 0% { box-shadow: 0 0 0 0 rgba(255,45,149,.55); } 70% { box-shadow: 0 0 0 10px rgba(255,45,149,0); } 100% { box-shadow: 0 0 0 0 rgba(255,45,149,0); } }

/* Финал: контурная цифра прорисовывается линией */
.draw text { fill: transparent; stroke: var(--pink); stroke-width: 2; stroke-dasharray: 900; stroke-dashoffset: 900; animation: mv-draw 1.4s cubic-bezier(.6,0,.2,1) .15s forwards; }
@keyframes mv-draw { to { stroke-dashoffset: 0; } }
.fill-anim { animation: mv-fill 1.2s cubic-bezier(.2,.8,.2,1) .4s both; transform-origin: left; }
@keyframes mv-fill { from { transform: scaleX(var(--from, 0)); } to { transform: scaleX(1); } }

/* Загрузка-скелет: силуэты карточек с бегущим бликом */
.skel { background: linear-gradient(100deg, var(--s1) 30%, var(--s2) 50%, var(--s1) 70%); background-size: 300% 100%; animation: mv-shimmer 1.4s linear infinite; border-radius: 20px; border: 1px solid var(--line); }
@keyframes mv-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Свайп между упражнениями */
.swipe-l { animation: mv-swl .3s cubic-bezier(.2,.8,.2,1) both; }
.swipe-r { animation: mv-swr .3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes mv-swl { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes mv-swr { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .live, .skel, .swipe-l, .swipe-r, .fill-anim { animation: none; }
  .draw text { animation: none; stroke-dashoffset: 0; }
}
.toast { position: fixed; left: 50%; transform: translateX(-50%); top: 16px; z-index: 20; background: var(--s3); color: var(--ink); padding: 10px 16px; border-radius: 100px; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }

/* Фото-акцент вверху главной: цветное, логотип в правом верхнем углу (там тёмный фон), приветствие лежит на фото */
.banner { position: relative; height: 190px; border-radius: 24px; overflow: hidden; background: var(--s1); isolation: isolate; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; z-index: -2; }
.banner::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11,10,13,.88) 0, rgba(11,10,13,.3) 46%, rgba(11,10,13,0) 72%), linear-gradient(225deg, rgba(11,10,13,.5) 0, rgba(11,10,13,0) 38%); }
.banner-logo { position: absolute; top: 14px; right: 16px; }
.banner-txt { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.banner-date { font-size: 13px; color: rgba(247,242,247,.88); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.banner-txt .h1 { text-shadow: 0 2px 14px rgba(0,0,0,.55); }

/* Сворачиваемые блоки: заголовок со стрелкой, стрелка поворачивается при открытии */
details > summary.sum { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
details > summary.sum::-webkit-details-marker { display: none; }
details > summary.sum svg { color: var(--dim); transition: transform .2s; flex: none; }
details[open] > summary.sum svg { transform: rotate(90deg); }
