:root {
  --bg: #eef2ea; --card: #f9fbf6; --text: #24301f; --muted: #66755e; --accent: #4f7a52;
  --line: #06c755; --edge: rgba(36, 48, 31, .1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "IBM Plex Sans Thai", system-ui, sans-serif;
  font-size: 16px; line-height: 1.7;
}
main { position: relative; max-width: 440px; margin: 0 auto; padding: 44px 20px 110px; }
.lang {
  position: absolute; top: 10px; right: 20px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  padding: 2px 12px; border-radius: 999px; background: var(--card); color: var(--muted); border: 1px solid var(--edge);
}

.who { display: flex; align-items: center; justify-content: center; gap: 14px; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--card); border: 1px solid var(--edge);
}
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1 { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.3; }

.chips { list-style: none; margin: 12px 0 20px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.chips li { padding: 3px 12px; border-radius: 999px; font-size: 13px; background: var(--card); color: var(--muted); border: 1px solid var(--edge); }

h2 { margin: 0 0 12px; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .04em; }

.links { display: grid; gap: 12px; margin-bottom: 12px; }
.btn {
  display: block; text-align: center; text-decoration: none;
  padding: 15px 20px; border-radius: 999px; font-weight: 600; font-size: 17px;
  background: var(--line); color: #fff; border: 1.5px solid var(--line);
  transition: transform .12s;
}
.btn.ghost { background: transparent; color: var(--text); border-color: rgba(36, 48, 31, .25); }
.btn:active { transform: scale(.98); }
.note { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 36px; }
.note a { color: var(--accent); }
.gap { margin-bottom: 36px; }

.sets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.sets figure { margin: 0; background: var(--card); border-radius: 16px; overflow: hidden; border: 1px solid var(--edge); }
.sets figure:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 6px); justify-self: center; }
.sets video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #14161a; }
.sets figcaption { padding: 8px 12px 10px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; font-size: 14px; font-weight: 600; }
.sets figcaption a { font-size: 12px; font-weight: 500; color: var(--accent); white-space: nowrap; }

.cards { list-style: none; margin: 0 0 36px; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.cards li { background: var(--card); border-radius: 16px; padding: 16px 20px; border: 1px solid var(--edge); }
.cards b { display: block; font-weight: 600; font-size: 17px; }
.cards span { color: var(--muted); font-size: 15px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 32px 1fr; align-items: center; column-gap: 14px; }
.steps li::before {
  content: counter(step); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 600;
}

footer { text-align: center; color: var(--muted); font-size: 13px; }

.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: center; gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(238, 242, 234, .92); backdrop-filter: blur(8px); border-top: 1px solid var(--edge);
  transform: translateY(110%); transition: transform .25s;
}
.bar.show { transform: none; }
.bar .btn { flex: 1; max-width: 140px; padding: 11px 8px; font-size: 15px; }
