/* Small, script-free language menu shared by all languages. */
.nav-tools { display:flex; align-items:center; gap:22px; }
.nav-tools .nav-links { align-items:center; }
.language-switch { position:relative; flex:none; border:0; padding:0; }
.language-switch > summary {
  display:flex; align-items:center; justify-content:center;
  width:36px; height:36px; padding:0; border:1px solid rgba(255,255,255,.26);
  border-radius:50%; color:#fff; cursor:pointer; list-style:none;
}
.language-switch > summary::-webkit-details-marker { display:none; }
.language-switch > summary::after { content:none; }
.language-switch > summary svg { width:18px; height:18px; }
.language-options {
  position:absolute; top:calc(100% + 10px); right:0; z-index:40;
  display:grid; min-width:158px; padding:6px;
  border:1px solid rgba(255,255,255,.2); border-radius:14px;
  background:#0d2b22; color:#fff; box-shadow:0 12px 28px rgba(0,0,0,.18);
  font-size:14px; font-family:-apple-system,BlinkMacSystemFont,"PingFang TC",sans-serif;
}
.language-options a { display:block; padding:12px; border-radius:9px; white-space:nowrap; }
.language-options a[aria-current="true"] { background:rgba(255,255,255,.1); }
.language-options a:hover { background:rgba(255,255,255,.18); }
.language-switch summary:focus-visible,
.language-options a:focus-visible { outline:2px solid #e4c18b; outline-offset:3px; }
@media(max-width:620px) {
  .nav-tools { gap:12px; }
  .nav-inner { gap:12px; }
}
@media(max-width:380px) {
  .nav-tools { gap:8px; }
  .nav-tools .nav-links { gap:10px; font-size:13px; }
  .nav-inner { gap:8px; }
  .language-switch > summary { width:32px; height:36px; }
}

/* Traditional Chinese keeps the original serif/sans-serif hierarchy. */
html:lang(zh-TW) body {
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Helvetica Neue","PingFang TC","Noto Sans TC","Microsoft JhengHei",Arial,sans-serif;
}
html:lang(zh-TW) img { height:auto; }
html:lang(zh-TW) h1,
html:lang(zh-TW) h2,
html:lang(zh-TW) .principles h3,
html:lang(zh-TW) blockquote {
  font-family:Georgia,"Times New Roman","Songti TC","Noto Serif TC",serif;
  line-height:1.25; letter-spacing:.01em;
}
html:lang(zh-TW) h1:not(.brand-title) { font-size:clamp(52px,6.5vw,86px); }
html:lang(zh-TW) h1.brand-title { line-height:.9; letter-spacing:-.045em; }
html:lang(zh-TW) .tagline { line-height:1.4; }
html:lang(zh-TW) .hero-copy { line-height:1.55; }
html:lang(zh-TW) .section-label,
html:lang(zh-TW) .section-kicker,
html:lang(zh-TW) .eyebrow,
html:lang(zh-TW) .scroll { letter-spacing:.12em; }
html:lang(zh-TW) .card h3,
html:lang(zh-TW) .step h3,
html:lang(zh-TW) .control h3,
html:lang(zh-TW) .game-card h3 { line-height:1.4; }

/* Keep the complete global navigation visible after adding Original Games.
   On narrow screens it uses a second row, retaining the existing language menu. */
.nav-links a[aria-current="page"] { color:#fff; text-decoration:underline; text-underline-offset:6px; }
.nav-links a:focus-visible { outline:2px solid #e4c18b; outline-offset:4px; }
@media(max-width:620px) {
  .nav { height:auto; }
  .nav .nav-inner { display:grid; grid-template-columns:1fr auto; width:calc(100% - 36px); height:auto; min-height:96px; gap:4px 12px; padding:8px 0 10px; }
  .nav .brand { grid-column:1; grid-row:1; }
  .nav .nav-tools { display:contents; }
  .nav .language-switch { grid-column:2; grid-row:1; justify-self:end; }
  .nav .nav-links { grid-column:1 / -1; grid-row:2; display:flex; width:100%; justify-content:space-between; gap:14px; font-size:13px; }
  .nav .nav-links a:nth-child(n) { display:inline-flex; align-items:center; min-height:32px; }
  .nav .language-options { top:calc(100% + 6px); }
}
