/* horizontal.one — the portal. System fonts only (Google Fonts doesn't load in mainland China). */
:root {
  --bg: #0d1016;
  --bg-2: #141923;
  --card: #171d29;
  --line: #273042;
  --text: #e9edf4;
  --muted: #9aa6b8;
  --accent: #f2b45a;
  --accent-2: #7cc4ff;
  --ok: #6fd39a;
  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* one language at a time: <html data-lang="zh|en">, text pairs in [lang] */
html[data-lang="zh"] [lang="en"]:not(html), html[data-lang="en"] [lang="zh"]:not(html) { display: none !important; }

/* ---------------------------------------------------------------- header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.lang { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.lang:hover { color: var(--text); border-color: var(--muted); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 88px; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(120% 60% at 50% 100%, rgba(242, 180, 90, .22), transparent 60%),
  linear-gradient(180deg, #0b0e14 0%, #121827 55%, #1b2233 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 28px; height: 1px; background: linear-gradient(90deg, transparent, rgba(242, 180, 90, .75), transparent); }
.hero .wrap { position: relative; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.01em; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); color: #c9d2e0; max-width: 640px; margin: 0 0 32px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #1b1305; }
.btn.primary:hover { background: #ffc677; }
.btn.ghost { border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--muted); }
.btn[aria-disabled="true"] { background: var(--bg-2); color: var(--muted); border-color: var(--line); pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------------------------------------------------------------- sections */
section { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
h2 { font-size: clamp(26px, 3.6vw, 34px); margin: 0; }
.section-head a { color: var(--accent-2); text-decoration: none; font-size: 15px; }
.section-head a:hover { text-decoration: underline; }
.muted { color: var(--muted); }

/* ---------------------------------------------------------------- game cards */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.game { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.game .shot { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.game .shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.game:hover .shot img { transform: scale(1.03); }
.badge { position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; background: rgba(13, 16, 22, .78); border: 1px solid var(--line); }
.badge.live { color: var(--ok); border-color: rgba(111, 211, 154, .45); }
.badge.soon { color: var(--accent); border-color: rgba(242, 180, 90, .45); }
.game .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.game h3 { margin: 0; font-size: 22px; }
.game h3 small { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.game p { margin: 0; color: #c3ccda; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tags li { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.game .actions { margin-top: auto; padding-top: 6px; }

/* ---------------------------------------------------------------- about / footer */
.about { background: var(--bg-2); border-block: 1px solid var(--line); }
.about .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; }
.about h3 { margin: 0 0 6px; font-size: 18px; }
.about p { margin: 0; color: var(--muted); }
footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer a { color: var(--muted); }

@media (max-width: 560px) {
  .top .wrap { gap: 12px; }
  .nav { gap: 14px; }
  .brand span { display: none; }
  .hero { padding: 64px 0 60px; }
  section { padding: 52px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
