@font-face {
  font-family: "DM Sans";
  src: url("/assets/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 750;
  font-style: normal;
  font-display: swap;
}
:root { --bg:#f9f8f1; --panel:#fffefa; --border:#cbd8cc; --muted:#4c655e; --accent:#176157; --text:#183c34; }
body { font-family: "DM Sans","PingFang SC","Microsoft YaHei",system-ui,sans-serif; }
.announcement { background:#e8efe2; border-color:var(--border); color:#435e50; }
.header { background:#f9f8f1ee; }
.brand-mark { background:#cee3d1; color:#17594c; box-shadow:0 2px 13px #274c3a16; }
.button { background:#ffcf82; color:#352c1c; }
.button.secondary { background:#fffef7; color:var(--text); border-color:#adbfaf; }
.button.secondary:hover:not(:disabled) { background:#f5f8ed; }
a:focus-visible,button:focus-visible { outline-color:var(--accent); }
.eyebrow,.text-link:hover { color:var(--accent); }
.text-link { color:var(--text); }
.skip { color:white; }
[hidden] { display: none !important; }
.games-header { gap: 36px; }
.games-nav { display:flex; gap:30px; align-items:center; margin-inline:auto; height:100%; }
.games-nav a { display:inline-flex; align-items:center; gap:4px; height:100%; position:relative; font-size:14px; color:var(--muted); }
.games-nav [aria-current] { color:var(--text); }
.games-nav [aria-current]::after { content:""; height:3px; background:var(--accent); border-radius:3px; position:absolute; left:0; right:0; bottom:18px; }
.languages,.controls-switch { display:inline-flex; align-items:center; }
.languages { gap:2px; padding:3px; border:1px solid var(--border); border-radius:10px; }
.languages button,.controls-switch button { padding:6px 10px; font-family:inherit; font-size:13px; font-weight:600; line-height:1.4; border:0; border-radius:7px; color:var(--muted); background:transparent; }
.languages button[aria-pressed="true"] { background:#dbeadd; color:var(--accent); }
.feature { display:grid; grid-template-columns:.9fr 1.1fr; align-items:center; gap:44px; padding:clamp(32px,4.8vw,64px); margin-top:32px; border:1px solid #cbdcca; border-radius:28px; background:radial-gradient(ellipse at 90% 60%,#c1dfce,transparent 67%),linear-gradient(110deg,#fff6df 0%,#eff3dd 54%,#d8ede0 100%); }
.feature-copy { min-width:0; }
.feature .eyebrow { margin-bottom:18px; font-size:12px; }
.feature h1 { font-size:clamp(42px,4.7vw,68px); font-weight:650; line-height:1.03; letter-spacing:-.055em; }
.feature h1 span,.feature h1 strong { display:block; }
.feature h1 strong { margin-top:3px; color:var(--accent); font-weight:inherit; }
.feature .intro { margin-top:20px; max-width:420px; color:var(--text); font-size:17px; line-height:1.65; }
.game-facts { list-style:none; margin:20px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:6px 0; color:var(--muted); font-size:13px; font-weight:600; }
.game-facts li+li::before { content:"·"; margin:0 9px; color:#748778; }
.cover { display:block; overflow:hidden; border-radius:20px; box-shadow:0 15px 36px #264c3524; background:#d2e9d9; }
.cover img { width:100%; height:auto; }
.cover:hover { box-shadow:0 16px 40px #264c353d; }
.guide { display:grid; grid-template-columns:.9fr 1.1fr; gap:44px; margin:48px 0 50px; padding:0 clamp(16px,4.8vw,64px); align-items:start; scroll-margin-top:15px; }
.guide h2 { font-size:clamp(25px,2.5vw,34px); }
.guide-copy { padding-top:10px; }
.guide-copy p { font-size:16px; line-height:1.65; margin:14px 0 0; max-width:420px; }
.controls { background:var(--panel); border:1px solid var(--border); border-radius:18px; padding:17px 22px 13px; }
.controls-switch { gap:3px; padding:3px; background:var(--bg); border-radius:9px; max-width:100%; }
.controls-switch button { padding:7px 12px; }
.controls-switch button[aria-pressed="true"] { background:#dbeadd; color:var(--accent); }
.instructions dl { margin:10px 0 0; font-size:14px; }
.instructions dl>div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 0; min-height:39px; }
.instructions dl>div+div { border-top:1px solid #e4e9df; }
.instructions dt { color:var(--muted); }
.instructions dd { margin:0; display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:6px; text-align:right; font-weight:550; }
.instructions dd span { font-size:12px; color:var(--muted); }
kbd { padding:1px 6px; border-radius:5px; border:1px solid #cbd8cc; background:#f5f8f0; font-family:inherit; font-weight:600; font-size:12px; line-height:1.65; }
.games-footer { border-top:1px solid var(--border); }
.games-footer>.wrap { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:24px 0; color:var(--muted); font-size:13px; }
:lang(zh) h1,:lang(zh) h2 { letter-spacing:-.025em; line-height:1.18; }
@media (max-width:900px) {
  .feature,.guide { gap:28px; }
  .feature { padding:34px; }
  .guide { padding:0 10px; }
}
@media (max-width:700px) {
  .games-header { height:66px; gap:12px; }
  .games-nav { gap:16px; }
  .games-nav [aria-current]::after { bottom:8px; }
  .feature { margin-top:20px; grid-template-columns:1fr; gap:24px; padding:26px; border-radius:22px; }
  .feature h1 { font-size:42px; }
  .feature h1 span,.feature h1 strong { display:inline; }
  .feature h1 strong::before { content:" "; }
  :lang(zh) .feature h1 strong { display:block; }
  :lang(zh) .feature h1 strong::before { content:none; }
  .feature .intro { margin-top:14px; font-size:16px; }
  .feature .eyebrow { margin-bottom:12px; }
  .game-facts { margin-top:15px; }
  .feature .button-row { margin-top:18px; }
  .cover { border-radius:14px; }
  .guide { margin:32px 0; grid-template-columns:1fr; gap:18px; padding:0 4px; }
  .guide-copy { padding:0 4px; }
  .controls { padding:15px 16px 10px; }
}
@media (max-width:500px) {
  .games-nav .main-link { display:none; }
  .games-nav { margin-right:auto; margin-left:0; }
  .games-header .brand { font-size:19px; gap:7px; }
  .games-header .brand-mark { width:30px;height:30px; }
  .feature { padding:21px; }
  .feature h1 { font-size:clamp(33px,8.4vw,42px); }
  .languages button { padding:6px 7px; }
}
