:root {
  --bg: #f4f8f5;
  --ink: #123027;
  --muted: #60766e;
  --card: #ffffff;
  --line: #dce8e2;
  --green: #0f9c7b;
  --green-soft: #e8f7f1;
  --green-dark: #0a6b55;
  --coral: #ff6a4d;
  --coral-soft: #fff0eb;
  --coral-dark: #b8402a;
  --muscle: #dfe8e3;
  --muscle-line: #c5d4cd;
  --shadow: 0 18px 50px rgba(19, 66, 51, .10);
  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol { margin: 0; }

button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.page {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 850;
  letter-spacing: -.02em;
  text-decoration: none;
}

.logo::before {
  content: "";
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--green), #34c9a7);
  box-shadow: inset 0 0 0 5px var(--bg);
}

.top-note {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}

.intro {
  padding: 64px 0 42px;
  text-align: center;
}

.kicker {
  display: inline-block;
  color: var(--green-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.intro h1 {
  margin-top: 12px;
  font-size: clamp(2.3rem, 6vw, 4rem);
  font-weight: 850;
  letter-spacing: -.055em;
  line-height: 1.05;
}

.intro p {
  max-width: 540px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.section-head span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

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

.exercise-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 24px rgba(19, 66, 51, .04);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.exercise-card:hover {
  transform: translateY(-3px);
  border-color: #b8d8cc;
  box-shadow: 0 14px 30px rgba(19, 66, 51, .09);
}

.exercise-card.is-active {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 14px 32px rgba(15, 156, 123, .16);
}

.card-number {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #9bb2a9;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.card-dot {
  width: 14px;
  height: 14px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: #d6e2dc;
}

.exercise-card.is-active .card-dot {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(15, 156, 123, .16);
}

.exercise-card strong {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.exercise-card small {
  color: var(--muted);
  font-size: .85rem;
}

.detail {
  margin: 44px 0 64px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.detail-head h2 {
  margin-top: 6px;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 850;
  letter-spacing: -.045em;
  line-height: 1.1;
}

.level-pill {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 24px;
}

.body-card, .info-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f9fbf9;
}

.body-card h3, .info-card h3 {
  font-size: 1rem;
  font-weight: 820;
  letter-spacing: -.01em;
}

.target-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.target-chip {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-dark);
  font-size: .78rem;
  font-weight: 800;
}

.body-map {
  display: block;
  width: min(100%, 370px);
  margin: 10px auto 0;
}

.body-map .map-label {
  fill: #8ba199;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.body-map .bone {
  fill: #e7eeea;
  stroke: #cbd9d2;
  stroke-width: 1.5;
}

.body-map .bone-limb {
  fill: none;
  stroke: #e7eeea;
  stroke-width: 15;
  stroke-linecap: round;
}

.body-map .muscle {
  fill: var(--muscle);
  stroke: var(--muscle-line);
  stroke-width: 1.5;
  transition: fill .2s ease, stroke .2s ease;
}

.body-map [data-muscle="arms"] {
  fill: none;
  stroke: var(--muscle);
  stroke-width: 13;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.body-map [data-muscle].active {
  fill: var(--coral);
  stroke: var(--coral-dark);
}

.body-map [data-muscle="arms"].active { stroke: var(--coral); }

.body-hint {
  margin-top: 4px;
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #27473c;
  font-size: .96rem;
  font-weight: 600;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: .8rem;
  font-weight: 850;
}

.counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.counts div {
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  text-align: center;
}

.counts span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.counts strong {
  display: block;
  margin-top: 4px;
  color: var(--green-dark);
  font-size: 1rem;
  font-weight: 850;
}

.tip {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--coral-soft);
  color: var(--coral-dark);
  font-size: .86rem;
  font-weight: 650;
}

footer {
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
  text-align: center;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .page { width: min(100% - 28px, 1120px); }
  .topbar { padding: 18px 0; }
  .intro { padding: 48px 0 32px; }
  .intro p { font-size: .96rem; }
  .card-grid { grid-template-columns: 1fr; }
  .exercise-card { min-height: 122px; }
  .detail { margin-top: 32px; padding: 20px; border-radius: 22px; }
  .detail-head { flex-direction: column; gap: 12px; }
  .body-card, .info-card { padding: 18px; }
  .counts { gap: 6px; }
  .counts strong { font-size: .88rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}
