/* ---------- спорт ---------- */

.act-tabs .person-tog {
  padding: 0 14px 0 8px;
}

.act-tabs .person-tog:not(.off) {
  background: var(--ac, var(--ink));
  color: #fff;
}

.act-e {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.hero.act {
  --ac: #e0653c;
  background: linear-gradient(140deg, var(--ac) 0%, color-mix(in srgb, var(--ac) 68%, #1b1010) 100%);
  color: #fff;
}

.hero.act .eyebrow,
.hero.act .muted {
  color: rgba(255, 255, 255, 0.8);
}

.hero.act .btn {
  background: rgba(255, 255, 255, 0.96);
  color: #1b1c1e;
}

.hero.act .btn.soft {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.hero.act .chips .chip {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.deco-emoji {
  position: absolute;
  right: -6px;
  top: -14px;
  font-size: 110px;
  opacity: 0.22;
  transform: rotate(-12deg);
  pointer-events: none;
  filter: saturate(0.6);
}

.hero-quote {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 8px 0 4px;
  max-width: 85%;
}

.hero-prog {
  margin-top: 10px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 14px;
}

.act-btn {
  background: var(--ac, var(--gym));
  color: #fff;
}

.gym-pick .date {
  background: color-mix(in srgb, var(--ac, var(--gym)) 16%, var(--surface));
  color: color-mix(in srgb, var(--ac, var(--gym)) 75%, var(--ink));
}

.gym-pick.done .date {
  background: var(--ac, var(--gym));
  color: #fff;
}

.act-chip {
  background: color-mix(in srgb, var(--gym) 16%, var(--surface));
  color: var(--gym-ink);
}

.bar i {
  background: var(--ac, var(--free));
}

.bar i.no {
  background: var(--line);
  opacity: 1;
}

.stat3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.stat {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px 12px 10px;
}

.stat b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.stat b small {
  font-size: 15px;
  color: var(--muted);
}

.stat span {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tool {
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px 10px 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 86px;
  transition: transform 0.12s;
}

.tool:active {
  transform: scale(0.96);
}

.tool .te {
  font-size: 26px;
  line-height: 1;
}

.tool b {
  font-size: 13.5px;
  line-height: 1.2;
}

.tool span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.crown {
  position: absolute;
  top: -12px;
  left: -6px;
  font-size: 18px;
  transform: rotate(-20deg);
}

.icon-btn.poke {
  font-size: 19px;
  box-shadow: none;
  background: var(--surface-3);
}

.achs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ach {
  background: var(--surface);
  border-radius: 16px;
  padding: 10px 4px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: var(--shadow);
}

.ach span {
  font-size: 26px;
  filter: grayscale(1);
  opacity: 0.35;
}

.ach b {
  font-size: 11px;
  line-height: 1.15;
  color: var(--muted);
}

.ach.on span {
  filter: none;
  opacity: 1;
}

.ach.on b {
  color: var(--ink);
}

.moods {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.moods button {
  border-radius: 14px;
  background: var(--surface);
  padding: 8px 2px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.moods button span {
  font-size: 26px;
}

.moods button.on {
  background: var(--ink);
  color: var(--bg);
}

.pose {
  background: linear-gradient(160deg, color-mix(in srgb, #8e6cc8 12%, var(--surface)), var(--surface));
}

/* полноэкранная страница */
.page {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: calc(var(--safe-t) + 12px) 18px calc(var(--safe-b) + 20px);
  animation: up 0.3s cubic-bezier(0.2, 0.9, 0.25, 1);
}

.page > * {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.page.out {
  animation: down 0.22s ease-in forwards;
}

.wo-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wo-clock {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.wo-stats {
  display: flex;
  justify-content: space-around;
  gap: 8px;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px 8px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.wo-stats b {
  display: block;
  font-size: 19px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.wo-ex {
  padding: 0;
  overflow: hidden;
}

.wo-ex.open {
  box-shadow: 0 0 0 2px var(--gym), var(--shadow);
}

.wo-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
}

.wo-n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
  flex: none;
}

.wo-ex.open .wo-n {
  background: var(--gym);
  color: #fff;
}

.wo-body {
  padding: 0 16px 16px;
}

.wo-set {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 2px;
  border-top: 1px solid var(--line);
}

.wo-set b {
  flex: 1;
  font-size: 16px;
}

.wo-input {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.wo-num {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border-radius: 16px;
  padding: 4px;
}

.wo-num button {
  width: 38px;
  height: 46px;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 700;
  flex: none;
}

.wo-num button:active {
  background: var(--surface-3);
}

.wo-num label {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.wo-num input {
  width: 100%;
  border: 0;
  background: none;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  outline: none;
  padding: 0;
  font-variant-numeric: tabular-nums;
}

.wo-num label span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-top: -2px;
}

/* таймер отдыха */
.rest {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--tab-h) + var(--safe-b) + 20px);
  z-index: 35;
  width: min(420px, calc(100% - 28px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-lg);
}

.rest .chip {
  background: color-mix(in srgb, var(--bg) 16%, transparent);
  color: var(--bg);
}

.rest .small {
  opacity: 0.7;
}

.rest-ring {
  --p: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--gym) calc(var(--p) * 360deg), color-mix(in srgb, var(--bg) 18%, transparent) 0);
}

.rest-ring b {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  font-size: 13.5px;
}

/* блины */
.barbell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  margin: 16px 0 10px;
}

.bb-bar {
  width: 120px;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(#bdbdbd, #8a8a8a);
}

.bb-side {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
  min-width: 20px;
}

.bb-side.l {
  flex-direction: row-reverse;
}

.bb-side i {
  width: var(--w);
  height: var(--h);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

/* дыхание */
.breath {
  position: relative;
  height: 340px;
  display: grid;
  place-items: center;
  margin: 20px 0;
}

.breath-c {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, color-mix(in srgb, #8e6cc8 55%, #fff), #8e6cc8 70%);
  transform: scale(0.55);
  box-shadow: 0 30px 80px -20px #8e6cc8;
  transition: transform 0.1s linear;
}

.breath-t {
  position: absolute;
  text-align: center;
  color: #fff;
}

.breath-t b {
  display: block;
  font-size: 24px;
  font-weight: 800;
}

.breath-t span {
  font-size: 40px;
  font-weight: 800;
}

.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 70;
}
