/* Тёмная тема, крупные кнопки: телефон лежит на полу, нажимать нужно не глядя. */
:root {
  --bg: #101214;
  --card: #1b1f23;
  --text: #f3f4f6;
  --muted: #9aa3ad;
  --accent: #34c759;
  --accent-text: #06210f;
  --warn: #ff9f0a;
  --danger: #ff453a;
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

.screen {
  padding: calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 24px);
  max-width: 560px;
  margin: 0 auto;
}

h1 { font-size: 28px; margin: 8px 0 16px; }
h2 { font-size: 24px; margin: 4px 0 8px; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.error { color: var(--danger); }
.hint {
  background: #2a2410;
  color: #ffd98a;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 15px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.card-title { font-size: 20px; font-weight: 600; margin-bottom: 4px; }

ol.plain, ul.plain { padding-left: 22px; margin: 10px 0 14px; }
ol.plain li, ul.plain li { margin: 4px 0; }

input {
  width: 100%;
  font-size: 22px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #333a42;
  background: #0b0d0f;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.btn {
  display: block;
  width: 100%;
  min-height: 52px;
  margin: 10px 0 0;
  border: 0;
  border-radius: 14px;
  background: #2c3238;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  line-height: 52px;
  padding: 0 12px;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); opacity: 0.85; }
.btn:disabled { opacity: 0.4; }
.btn.primary { background: var(--accent); color: var(--accent-text); }
.btn.big { min-height: 76px; line-height: 76px; font-size: 24px; }
.btn.ghost { background: transparent; width: auto; min-height: 36px; line-height: 36px; margin: 0; }
.row { display: flex; gap: 10px; }
.row .btn { flex: 1; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; }

.banner {
  background: var(--warn);
  color: #1d1300;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  border-radius: var(--radius);
  padding: 14px;
  margin: 8px 0;
  animation: pulse 1s ease-in-out 3;
}
@keyframes pulse { 50% { opacity: 0.55; } }

.exercise { font-size: 28px; font-weight: 700; margin: 10px 0 4px; }
.progress { color: var(--muted); font-size: 18px; }
.goal { font-size: 26px; font-weight: 700; margin: 12px 0; color: var(--accent); }
.cues li { margin: 6px 0; }
.next { color: var(--muted); font-style: italic; margin: 8px 0; }

.timer {
  font-size: min(30vw, 160px);
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  margin: 12px 0;
  line-height: 1;
}
.timer.hold { color: var(--accent); }

.video { margin: 12px 0; }
.video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
  background: #000;
}
.links { display: flex; gap: 8px; flex-wrap: wrap; }
.links .btn { flex: 1 1 auto; width: auto; min-height: 44px; line-height: 44px; font-size: 16px; margin-top: 8px; }
