:root {
  --bg: #f3f6f1;
  --bg-sky: #e4f1f8;
  --card: #ffffff;
  --text: #1d2a1f;
  --muted: #566859;
  --primary: #2f7d4f;
  --primary-dark: #23613c;
  --accent: #d9a441;
  --wood: #c89b62;
  --border: #d4e0d2;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, .08);
  --font-head: 'Inter', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.is-embed { background: var(--bg); }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  font-weight: 600;
  background: var(--bg);
  color: var(--primary-dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
  white-space: nowrap;
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; margin: 0 0 12px; color: var(--text); }
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
p { margin: 0 0 16px; max-width: 68ch; text-wrap: pretty; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 800px; }

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-body); font-weight: 600; font-size: 15px; letter-spacing: 0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { flex-shrink: 0; border-radius: 8px; }
.nav-group { display: flex; align-items: center; gap: 20px; min-width: 0; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { color: var(--muted); font-size: 14px; font-weight: 600; }
.site-nav a:hover { color: var(--primary); text-decoration: none; }
.lang-dd { position: relative; flex-shrink: 0; }
.lang-dd summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd summary::after { content: "▾"; font-size: 12px; color: var(--muted); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 128px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 40;
}
.lang-menu a {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.lang-menu a:hover { background: var(--bg); color: var(--primary); text-decoration: none; }

.hero-stage { padding: 16px 0 24px; }
.hero-head { display: block; margin-bottom: 14px; }
.hero-head h1 { margin: 0; }
.hero-lead { margin: 6px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 74ch; }

.player-shell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.stage {
  position: relative;
  width: 100%;
  height: clamp(420px, calc(100vh - 265px), 540px);
  background: linear-gradient(180deg, var(--bg-sky) 0%, var(--bg) 100%);
  overflow: hidden;
}
.stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(180deg, var(--bg-sky) 0%, var(--bg) 100%);
}
.cover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 36%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .14) 100%);
  pointer-events: none;
}
.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 22%;
}
.cover-cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 20px 6px 6px;
  box-shadow: var(--shadow-md);
}
.play-btn, .primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--card);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.primary-btn { border-radius: var(--radius); }
.play-btn:hover, .primary-btn:hover { background: var(--primary-dark); text-decoration: none; }
.play-tri {
  width: 0; height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid var(--card);
}
.cover-note { font-size: 13px; color: var(--muted); font-weight: 600; }

.loader {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--bg);
  padding: 24px;
  text-align: center;
}
[data-gf-state="loading"] .loader { display: flex; }
.loader-rope {
  position: relative;
  width: 180px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.loader-rope::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 6px; margin-top: -3px;
  border-radius: 4px;
  background: var(--border);
}
.bud {
  position: relative;
  width: 24px; height: 24px;
  border-radius: 50%;
  animation: budHop 1s ease-in-out infinite;
}
.bud-1 { background: var(--primary); }
.bud-2 { background: var(--accent); animation-delay: .18s; }
.bud-3 { background: var(--primary-dark); animation-delay: .36s; }
.loader-text { margin: 0; font-size: 16px; font-weight: 600; color: var(--text); }
@keyframes budHop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.stage-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  background: var(--card);
  flex-wrap: wrap;
}
.stage-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.action-btn:hover { border-color: var(--primary); color: var(--primary); }
.like-btn[data-gf-liked], .like-btn[aria-pressed="true"] {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--primary-dark);
}
.share-msg { font-size: 14px; color: var(--primary); font-weight: 600; }
.header-inner, .site-nav { min-width: 0; }
.fullscreen-btn { margin-left: auto; }


.section { padding: 48px 0; }
.section-head { margin-bottom: 24px; }
.section-sub { color: var(--muted); font-size: 16px; margin: 0; }

.split-asymmetric {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}
.prose-col p { line-height: 1.75; }
.spec-card { position: sticky; top: 80px; align-self: start; }
.spec-card, .info-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.accent-panel { border-top: 4px solid var(--accent); }
.spec-card h3 { margin-bottom: 14px; }
.spec-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.spec-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}
.spec-row dt { color: var(--muted); font-weight: 600; font-size: 12px; line-height: 1.4; }
.spec-row dd { margin: 0; color: var(--text); font-weight: 600; font-size: 13.5px; line-height: 1.4; }

.steps-grid {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.step-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--primary-dark);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.step-card h3 { font-size: 18px; line-height: 1.3; min-height: 2.6em; margin-bottom: 8px; }
.step-card p { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0; }
.controls-strip {
  background: var(--card);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}
.controls-strip p { margin: 0; color: var(--muted); }

.two-col-equal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.panel-intro { color: var(--muted); font-size: 16px; line-height: 1.7; margin-bottom: 20px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.feature-list li { position: relative; padding-left: 22px; line-height: 1.7; color: var(--muted); min-width: 0; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.obstacle-list li.obstacle-item { display: flex; align-items: flex-start; gap: 14px; padding-left: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.obstacle-list li.obstacle-item::before { display: none; }
.ob-icon { flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; }
.browser-vs-app-sec .feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-list li strong { display: block; color: var(--text); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.feature-list li:last-child { margin-bottom: 0; }

.mechanic-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 28px;
}
.m-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.m-chip svg { flex-shrink: 0; }

.tips-list { display: flex; flex-direction: column; gap: 16px; }
.tip-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.tip-index {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--primary);
  color: var(--card);
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tip-body h3 { margin-bottom: 8px; }
.tip-body p { margin: 0; color: var(--muted); }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease;
}
.faq-item:hover { border-color: var(--primary); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary:hover { color: var(--primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
  background: var(--primary);
  color: var(--card);
}
.faq-item p { margin: 12px 0 0; color: var(--muted); }

.comments-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.comment-total { font-size: 14px; color: var(--muted); }
.comment-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.comment-form:not([data-gf-replying]) .reply-banner { display: none; }
.reply-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  color: var(--primary-dark);
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
}
.reply-cancel { background: transparent; border: 0; color: var(--primary); font-weight: 600; cursor: pointer; }
.form-row { margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--card);
}
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-msg { font-size: 14px; color: var(--primary); font-weight: 600; }
.comments-list { display: flex; flex-direction: column; gap: 12px; }
.comments-list:not([data-gf-empty]) .comments-empty { display: none; }
.comments-empty { color: var(--muted); font-size: 14px; background: var(--card); border: 1px dashed var(--border); border-radius: var(--radius); padding: 24px; }
.comment-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.comment-card[data-gf-owner] { border-left: 4px solid var(--primary); background: var(--bg); }
.comment-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; color: var(--muted); }
.comment-meta strong { color: var(--text); }
.owner-tag { background: var(--primary); color: var(--card); font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.comment-text { margin: 0 0 8px; }
.reply-to-tag { color: var(--primary); font-weight: 600; }
.reply-btn { background: transparent; border: 0; padding: 4px 0; color: var(--primary); font-size: 14px; font-weight: 600; cursor: pointer; }
.comment-replies { margin-top: 12px; padding-left: 16px; border-left: 2px solid var(--border); display: flex; flex-direction: column; gap: 8px; }

.page-article, .not-found { padding: 40px 0 48px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.page-lead, .legal-date { color: var(--muted); margin-bottom: 24px; }
.prose h2 { margin-top: 32px; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 80px; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }

.level-toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 24px;
  box-shadow: var(--shadow-sm);
}
.toc-head {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.toc-rows { display: flex; flex-direction: column; gap: 8px; }
.toc-row { display: grid; grid-template-columns: 108px 1fr; gap: 12px; align-items: center; }
.toc-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.toc-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.toc-pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.toc-pills a:hover { background: var(--primary); border-color: var(--primary); color: var(--card); text-decoration: none; }

.site-footer { background: var(--card); border-top: 1px solid var(--border); padding: 28px 0; margin-top: 16px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand p, .footer-copy { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.footer-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }

@media (max-width: 900px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .split-asymmetric, .two-col-equal, .browser-vs-app-sec .feature-list { grid-template-columns: 1fr; }
  .mechanic-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  .container { padding: 0 16px; }
  .header-inner { position: relative; flex-direction: column; align-items: stretch; justify-content: center; padding: 10px 16px; gap: 8px; min-height: auto; }
  .nav-group { width: 100%; }
  .lang-dd { position: absolute; top: 10px; right: 16px; }
  .site-nav { width: 100%; display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 4px; font-size: 12px; }
  .site-nav a { white-space: nowrap; text-align: center; padding: 6px 8px; border-radius: 999px; background: var(--bg); color: var(--text); font-size: 12px; }
  .hero-stage { padding: 14px 0 20px; }
  .stage { height: auto; aspect-ratio: 10 / 9; }
  .stage[data-gf-state="loading"], .stage[data-gf-state="playing"], .stage:has(iframe) { aspect-ratio: auto; height: min(74svh, 520px); min-height: 440px; }
  .player-shell { position: relative; }
  .brand-name { font-size: 15px; white-space: nowrap; }
  .brand { flex: 0 0 auto; }
  .cover { padding: 10px 12px; }
  .cover::after { height: 28%; }
  .cover img { top: 8px; bottom: auto; height: calc(100% - 88px); object-position: center center; }
  .cover-cta { width: 100%; max-width: 320px; flex-direction: column; border-radius: 14px; padding: 8px 12px; gap: 4px; }
  .cover-note { font-size: 12px; }
  .play-btn { min-height: 42px; padding: 9px 18px; font-size: 14px; width: 100%; }
  .primary-btn { width: 100%; }
  .stage-bar { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px; }
  .stage-actions { justify-content: flex-start; gap: 6px; flex: 1 1 auto; }
  .action-btn { min-height: 36px; padding: 6px 9px; font-size: 12px; gap: 4px; }
  .fullscreen-btn { margin-left: auto; }
  .steps-grid, .spec-list { grid-template-columns: 1fr; gap: 12px; }
  .toc-row { grid-template-columns: 1fr; gap: 6px; }
  .tip-row { grid-template-columns: 1fr; }
  .spec-card { position: static; }
  .section { padding: 36px 0; }
}


.inline-cta { margin: 16px 0 0; font-weight: 600; font-size: 16px; }
.section-cta { margin-top: 24px; }
.guide-figure { margin: 24px 0 32px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.guide-figure img { width: 100%; height: auto; display: block; }
.guide-figure figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--border); }
.inner-faq { margin-top: 48px; }
.footer-cols { display: flex; flex-direction: column; gap: 12px; }
.footer-label { font-size: 14px; font-weight: 600; color: var(--muted); }
