:root {
  color-scheme: light;
  --bg: #fbf7ef;
  --panel: #ffffff;
  --text: #2f241b;
  --muted: #76685d;
  --brand: #5c7a3b;
  --brand-dark: #405b28;
  --border: #eadfce;
  --soft: #eef3e7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.wrap {
  width: min(100%, 48rem);
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.15rem;
  max-width: 60%;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem;
  background: var(--panel);
}

.lang-switch a {
  border: 0;
  background: transparent;
  padding: 0.35rem 0.55rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 999px;
}

.lang-switch a.is-active {
  background: var(--brand);
  color: #fff;
}

.hero {
  margin-top: 1rem;
  background:
    radial-gradient(circle at 85% 12%, rgba(159, 189, 114, 0.35), transparent 38%),
    linear-gradient(135deg, #fffaf1, var(--soft));
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 12px 34px rgba(61, 45, 29, 0.08);
}

.hero-emoji {
  font-size: 2.6rem;
  line-height: 1;
}

.hero h1 {
  margin: 0.6rem 0 0.3rem;
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  line-height: 1.08;
}

.hero p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  max-width: 34rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.toc {
  margin-top: 1.25rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1rem 1.1rem;
}

.toc h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand-dark);
}

.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  display: grid;
  gap: 0.15rem;
}

.toc li {
  counter-increment: toc;
}

.toc a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.5rem;
  border-radius: 0.7rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.toc a:hover {
  background: var(--soft);
}

.toc a::before {
  content: counter(toc);
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 900;
}

section.step {
  margin-top: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.15rem 1.15rem 1.25rem;
  scroll-margin-top: 4.5rem;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.step-head .ico {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
}

.step-head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.step p {
  color: var(--text);
}

.step .muted {
  color: var(--muted);
}

ol.howto,
ul.howto {
  padding-left: 1.2rem;
  margin: 0.8rem 0 0;
}

ol.howto li,
ul.howto li {
  margin: 0.4rem 0;
}

.note {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  background: var(--soft);
  border: 1px solid #d8e6c6;
  font-size: 0.92rem;
}

.note.warn {
  background: #fff0ed;
  border-color: #e6c3bb;
}

.note .n-ico {
  font-size: 1.1rem;
  line-height: 1.4;
}

kbd {
  display: inline-block;
  padding: 0.05rem 0.4rem;
  border-radius: 0.4rem;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
  font-size: 0.85em;
  font-weight: 700;
}

.tag {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 0.8rem;
}

.platforms {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
}

@media (min-width: 34rem) {
  .platforms {
    grid-template-columns: 1fr 1fr;
  }
}

.platform {
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.85rem;
  background: #fffdf8;
}

.platform h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

footer.guide-foot {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.foot-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}
