/* Huper public introduction pages (Claude, Leo 2026-12-04 SEO/GEO). Colours come from assets/vis/huper-tokens.css. */
:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans Khmer", "Khmer OS", sans-serif;
}
a { color: var(--accent-text); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 20px; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 8px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 22px; }
nav.lang a, nav.games a { color: var(--text-muted); text-decoration: none; margin-right: 14px; white-space: nowrap; }
nav.lang a:last-child { margin-right: 0; }
nav.lang a[aria-current="page"], nav.games a[aria-current="page"] { color: var(--accent-text); font-weight: 700; }
nav.games { padding: 6px 0 4px; border-bottom: 1px solid var(--border); }
.hero { padding: 28px 0 12px; }
.hero h1 { font-size: clamp(28px, 5.4vw, 46px); line-height: 1.2; margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--text-muted); margin: 0 0 8px; max-width: 46em; }
.hero img { display: block; width: 100%; border-radius: 16px; border: 1px solid var(--border); margin-top: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.secondary { border: 1px solid var(--border-strong); color: var(--text); }
section { padding: 26px 0; border-top: 1px solid var(--border); }
.hero { border-top: 0; }
h2 { font-size: 24px; line-height: 1.3; margin: 0 0 14px; }
h3 { font-size: 19px; margin: 12px 0 6px; }
h3 a { color: var(--text); text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px 6px; }
.card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.card p { margin: 6px 0 10px; color: var(--text-muted); }
ol.steps, ul.facts { padding-left: 1.3em; margin: 0; }
ol.steps li, ul.facts li { margin: 8px 0; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 2px; color: var(--text-muted); }
.note { color: var(--text-subtle); font-size: 14px; }
footer { padding: 26px 0 40px; color: var(--text-subtle); font-size: 14px; border-top: 1px solid var(--border); }
footer a { color: var(--text-muted); }

huper-header-menu:empty {display:none}
@media (orientation:landscape) {
  [data-telegram-overlay] header.site {padding-inline:var(--huper-tg-left) var(--huper-tg-right)}
  huper-header-menu details {position:relative;margin:0;padding:5px 12px}
  huper-header-menu details[open] nav {position:absolute;top:100%;right:0;display:grid;z-index:1;background:var(--surface);border-radius:10px;padding:8px 16px}
  huper-header-menu summary {list-style:none}
}
@media (orientation:portrait) {
  [data-telegram-overlay] body {position:fixed;inset:var(--huper-tg-top) 0 0;overflow:auto}
}
