/* rsmgame.com — colours follow the game's Colors:: palette (src/ui/UITypes.h):
   deep railway green panels, cream text, soft gold accent, signal orange for the main action. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-regular.d7474b8c67.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/inter-bold.a31c3c4132.woff2") format("woff2"); }

:root {
  --green-950: #101b1a;
  --green-900: #142220;
  --green-800: #1e302f;
  --green-700: #2a403f;
  --green-600: #36524e;
  --cream: #f5e9d8;
  --cream-dim: #b5aa9d;
  --gold: #f4d9a0;
  --brass: #e0c088;
  --orange: #f4a300;
  --orange-deep: #d98c00;
  --paper: #f3eadb;
  --paper-edge: #e4d6bf;
  --ink: #1e302f;
  --ink-soft: #4a5a57;
  --line: rgba(245, 233, 216, 0.16);
  --radius: 14px;
  --wrap: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-zh: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--green-900); color: var(--cream); font: 400 1.0625rem/1.65 var(--font); }
body.lang-zh { font-family: var(--font-zh); line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #fff3d6; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--cream-dim); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--orange); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20, 34, 32, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 700; letter-spacing: 0.01em; }
.brand img { border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--cream); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 0.95rem; }
.site-nav a:hover { background: rgba(245, 233, 216, 0.08); color: var(--cream); }
.lang-switch { border: 1px solid var(--line); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent; transition: transform 0.15s ease, background-color 0.15s ease; }
.btn-primary { background: var(--orange); color: var(--ink); border-color: #ffd27a; box-shadow: 0 6px 0 var(--orange-deep), 0 10px 24px rgba(0, 0, 0, 0.35); }
.btn-primary:hover { background: #ffb31f; color: var(--ink); transform: translateY(-1px); }
.btn-ghost { color: var(--cream); border-color: rgba(245, 233, 216, 0.55); background: rgba(16, 27, 26, 0.35); }
.btn-ghost:hover { background: rgba(245, 233, 216, 0.12); color: var(--cream); }
.btn-soon { cursor: default; }
.btn-soon:hover { transform: none; background: var(--orange); }
.btn svg { width: 22px; height: 22px; flex: none; }

/* Hero */
.hero { position: relative; isolation: isolate; min-height: min(88vh, 860px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 50% 40%; }
.hero-art { z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(16, 27, 26, 0.92) 0%, rgba(16, 27, 26, 0.72) 34%, rgba(16, 27, 26, 0.08) 68%),
  linear-gradient(0deg, var(--green-900) 0%, rgba(20, 34, 32, 0) 32%); }
.hero-content { padding: 120px 0 72px; max-width: var(--wrap); }
.hero-content > * { max-width: 600px; }
.hero-logo { width: min(420px, 78vw); margin: 0 0 22px -6px; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45)); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem; font-weight: 700; color: var(--gold); margin-bottom: 0.6em; }
body.lang-zh .eyebrow { letter-spacing: 0.08em; font-size: 0.95rem; }
.lede { font-size: 1.18rem; color: #ece0cd; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 26px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.facts li { font-size: 0.9rem; padding: 6px 14px; border-radius: 999px; background: rgba(16, 27, 26, 0.6); border: 1px solid var(--line); }

/* Sections */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-intro { color: var(--cream-dim); max-width: 720px; font-size: 1.1rem; margin-bottom: 2.2em; }
.section-features { background: var(--green-900); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature { background: linear-gradient(180deg, var(--green-700), var(--green-800)); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: inset 0 1px 0 rgba(245, 233, 216, 0.08); }
.feature h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; }
.feature-icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(244, 217, 160, 0.12); border: 1px solid rgba(244, 217, 160, 0.35); color: var(--gold); }
.feature-icon svg { width: 26px; height: 26px; }
.feature p { color: #e6dac6; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 26px; margin: 0.45em 0; color: var(--cream-dim); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 12px; height: 6px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }

.section-shots { background: var(--green-950); border-block: 1px solid var(--line); }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--green-800); }
.gallery img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.25s ease; }
.gallery a:hover img { transform: scale(1.02); }
.gallery figcaption { padding: 10px 14px; font-size: 0.92rem; color: var(--cream-dim); }

.section-faq { background: var(--paper); color: var(--ink); }
.section-faq h2 { color: var(--ink); }
.section-faq .section-intro { color: var(--ink-soft); }
.faq details { background: #fffaf1; border: 1px solid var(--paper-edge); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--orange-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--ink-soft); }
.faq a { color: #8a5a00; }

.section-cta { background: radial-gradient(ellipse at 50% 0%, var(--green-700), var(--green-900) 70%); }

/* Inner pages */
.page-head { padding: clamp(48px, 7vw, 88px) 0 32px; background: linear-gradient(180deg, var(--green-800), var(--green-900)); border-bottom: 1px solid var(--line); }
.not-found { min-height: 60vh; display: flex; align-items: center; }
.breadcrumb { font-size: 0.9rem; color: var(--cream-dim); margin-bottom: 18px; }
.prose { padding: 40px 0 88px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; color: var(--gold); }
.prose p, .prose li { color: #e6dac6; }
.legal ol { padding-left: 1.4em; }
.press-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; padding: 48px 0 72px; align-items: start; }
.press-copy h2 { font-size: 1.3rem; color: var(--gold); }
.panel { background: var(--green-800); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel h2 { font-size: 1.3rem; }
.factsheet { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; }
.factsheet dt { color: var(--cream-dim); font-size: 0.92rem; }
.factsheet dd { margin: 0; overflow-wrap: anywhere; }
.downloads { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.downloads a { display: block; text-decoration: none; color: var(--cream); background: var(--green-800); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.downloads img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #0c1514; }
.downloads span { display: block; padding: 10px 14px; font-size: 0.92rem; }
.downloads small { color: var(--cream-dim); }
.muted-light { color: var(--cream-dim); max-width: 760px; }

/* Footer */
.site-footer { background: var(--green-950); border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 0.92rem; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 9px; }
.footer-brand p { margin: 0; font-weight: 700; }
.footer-brand small { font-weight: 400; color: var(--cream-dim); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 0; }
.footer-links a { color: var(--cream-dim); text-decoration: none; }
.footer-links .lang-switch { border: 0; padding: 0; }
.footer-links a:hover { color: var(--cream); text-decoration: underline; }

@media (max-width: 860px) {
  .site-nav a:not(.lang-switch) { display: none; }
  .hero { min-height: 0; display: block; }
  .hero-art { position: relative; display: block; aspect-ratio: 3 / 2; }
  .hero-art img { position: absolute; }
  .hero-shade { background: linear-gradient(0deg, var(--green-900) 0%, rgba(20, 34, 32, 0) 30%); height: auto; aspect-ratio: 3 / 2; bottom: auto; }
  .hero-content { padding: 0 0 56px; margin-top: -72px; position: relative; }
  .hero-logo { width: min(320px, 80vw); }
  .gallery { grid-template-columns: 1fr; }
  .press-layout { grid-template-columns: 1fr; }
  .brand span { font-size: 0.95rem; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
  .btn { width: 100%; }
  .factsheet { grid-template-columns: 1fr; gap: 2px; }
  .factsheet dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
