/* Sport module */
.mod-sheet {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(4, 0, 8, 0.72);
  display: flex; align-items: stretch; justify-content: stretch;
  padding: 0;
}
.mod-sheet[hidden] { display: none !important; }
.mod-card {
  width: 100vw;
  height: 100dvh;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  overflow: auto;
  background: linear-gradient(180deg, #24101c 0%, #14080f 100%);
  color: #ffe8f3;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  padding: max(10px, env(safe-area-inset-top, 0px)) 16px calc(20px + env(safe-area-inset-bottom, 0px));
}
.mod-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  position: sticky; top: 0; z-index: 2;
  background: #24101c; padding: 4px 0 10px;
}
.mod-head h2 { flex: 1; margin: 0; font-size: 1.15rem; }
.mod-x {
  border: 0; background: rgba(255,255,255,0.08); color: #fff;
  width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer;
}
.mod-tabs { display: flex; gap: 6px; margin: 10px 0 12px; }
.mod-tabs button {
  flex: 1; border: 0; cursor: pointer; border-radius: 999px;
  padding: 8px 6px; font-weight: 700; color: #ffd6ea;
  background: rgba(255,255,255,0.06);
}
.mod-tabs button.on { background: linear-gradient(180deg, #ff7ab8, #e11d74); color: #fff; }
.sport-progress { margin: 6px 0 4px; }
.sp-bar, .cat-bar i {
  height: 8px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; display: block;
}
.sp-bar i, .cat-bar i { height: 8px; background: linear-gradient(90deg, #ff7ad1, #ff2d92); width: 0; }
.sp-meta, .tb-stats { display: flex; justify-content: space-between; font-size: 0.8rem; opacity: 0.85; margin-top: 6px; gap: 8px; }
.day-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.day-cell {
  border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04);
  color: #ffe8f3; border-radius: 12px; padding: 8px 2px; cursor: pointer;
}
.day-cell b { display: block; font-size: 0.95rem; }
.day-cell span { font-size: 0.65rem; opacity: 0.8; }
.day-cell.is-today { outline: 2px solid #ff4fa0; background: rgba(255, 60, 140, 0.2); }
.day-cell.is-done { background: rgba(60, 200, 130, 0.22); border-color: rgba(90, 230, 160, 0.4); }
.sport-go { width: 100%; margin-top: 12px; }
.workout-player { text-align: center; }
.wo-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; margin-bottom: 6px; }
.ex-frame {
  width: min(280px, 80vw); margin: 0 auto; aspect-ratio: 18/13;
  background: radial-gradient(circle at 50% 30%, #3a1730, #12080f 70%);
  border-radius: 18px; border: 1px solid rgba(255,120,180,0.2);
  display: flex; align-items: center; justify-content: center;
}
.ex-svg { width: 90%; height: 90%; }
.ex-svg .floor { fill: rgba(255,180,220,0.2); }
.ex-svg .head { fill: #ffd0ea; }
.ex-svg .torso, .ex-svg .arm, .ex-svg .leg {
  fill: none; stroke: #ff8cc8; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
}
.fig.pushup { animation: pu 1.1s ease-in-out infinite; transform-origin: 110px 86px; }
@keyframes pu { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(10px) rotate(6deg); } }
.fig.squat { animation: sq 1.15s ease-in-out infinite; transform-origin: 90px 70px; }
@keyframes sq { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(14px) scaleY(0.86); } }
.fig.plank { animation: pl 1.6s ease-in-out infinite; }
@keyframes pl { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.fig.press { animation: pr 1.2s ease-in-out infinite; transform-origin: 80px 90px; }
@keyframes pr { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-28deg) translateY(-8px); } }
.fig.burpee { animation: bu 1.05s ease-in-out infinite; transform-origin: 90px 108px; }
@keyframes bu { 0%,100% { transform: translateY(0) scaleY(1); } 40% { transform: translateY(16px) scaleY(0.7); } 70% { transform: translateY(-10px) scaleY(1.05); } }
.fig.jog { animation: jg 0.5s linear infinite; transform-origin: 90px 70px; }
@keyframes jg { 0%,100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-6px); } }
.fig.stretch { animation: st 2s ease-in-out infinite; transform-origin: 90px 78px; }
@keyframes st { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.08) translateY(-4px); } }
.fig.lunge { animation: lg 1.2s ease-in-out infinite; }
@keyframes lg { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px) translateY(4px); } }
.fig.jack { animation: jk 0.7s ease-in-out infinite; transform-origin: 90px 70px; }
@keyframes jk { 0%,100% { transform: scaleX(0.8) scaleY(1); } 50% { transform: scaleX(1.15) scaleY(0.95) translateY(-4px); } }
.wo-count { font-size: 2.2rem; font-weight: 800; margin: 6px 0; color: #fff; }
.wo-hint { opacity: 0.85; font-size: 0.9rem; }
.wo-acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.sport-form, .money-form, .name-form { display: grid; gap: 8px; }
.sport-form label, .daily-checks label { display: flex; flex-direction: column; font-size: 0.82rem; gap: 4px; }
.sport-form input, .sport-form select, .money-form input, .money-form select, .name-form input, .daily-checks input, .add-task input {
  border: 1px solid rgba(255,255,255,0.12); background: rgba(0,0,0,0.28); color: #fff;
  border-radius: 10px; padding: 8px 10px; font: inherit;
}
.calc-cards, .money-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.calc-card {
  background: rgba(255,255,255,0.05); border-radius: 14px; padding: 10px;
  border: 1px solid rgba(255,255,255,0.06);
}
.calc-card h4 { margin: 0 0 4px; font-size: 0.75rem; opacity: 0.7; font-weight: 600; }
.calc-card strong { font-size: 1.15rem; }
.calc-card p { margin: 4px 0 0; font-size: 0.78rem; opacity: 0.8; }
.speak-calc, .water-btns { margin-top: 8px; }
.water-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.daily-checks { display: grid; gap: 10px; margin-top: 14px; }
.wo-done h3 { margin: 10px 0 4px; }

/* Static exercise illustrations — no movement */
.ex-svg .fig, .fig.pushup, .fig.squat, .fig.plank, .fig.press, .fig.burpee, .fig.jog, .fig.stretch, .fig.lunge, .fig.jack {
  animation: none !important;
  transform: none !important;
}

.ex-frame { overflow: hidden; }
.ex-photo { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; }
