:root {
  --bg: #0e1013;
  --surface: #16191e;
  --surface-2: #1d222a;
  --border: #2a3038;
  --border-soft: #222831;
  --text: #eef1f5;
  --muted: #98a2b0;
  --accent: #f5a524;
  --accent-ink: #1a1206;
  --radius: 8px;
  --wrap: 1100px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #ffc65c; }
a:hover { color: #ffd685; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 16, 19, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 58px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand img {
  height: 26px;
  width: auto;
  border-radius: 4px;
  display: block;
}

.site-nav {
  display: flex;
  gap: 4px;
  font-size: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-left: auto;
}

.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.site-nav a:hover { color: #fff; background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--accent); background: rgba(245, 165, 36, 0.1); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background: #0a0c0e;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,16,19,0.15) 0%, rgba(14,16,19,0.55) 55%, rgba(14,16,19,0.96) 100%),
    linear-gradient(90deg, rgba(14,16,19,0.78) 0%, rgba(14,16,19,0.2) 60%, rgba(14,16,19,0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 20px 34px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: 54px;
  line-height: 1.02;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
}

.hero-sub {
  font-size: 17px;
  color: #d5dbe3;
  max-width: 620px;
  margin: 0 0 22px;
}

.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffb843; color: var(--accent-ink); }
.btn-ghost { border-color: rgba(255,255,255,0.28); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ---------- stat strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.stats div { background: rgba(22, 25, 30, 0.92); padding: 14px 16px; }
.stats .k {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 5px;
  font-weight: 700;
}
.stats .v {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* ---------- page title band (sub pages) ---------- */

.page-head {
  border-bottom: 1px solid var(--border-soft);
  background:
    radial-gradient(900px 220px at 12% -40%, rgba(245,165,36,0.13), transparent 70%),
    var(--surface);
  padding: 34px 0 26px;
}

.page-head h1 { font-size: 34px; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.01em; }
.page-head .lede { font-size: 17px; color: var(--muted); max-width: 720px; margin: 0; }

/* ---------- live panel ---------- */

.live {
  margin: 22px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.live .num {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.live .lbl { font-size: 13px; color: var(--muted); margin-top: 4px; }
.live .meta { margin-left: auto; font-size: 13px; color: var(--muted); text-align: right; }

.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
  margin-right: 7px;
  vertical-align: middle;
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 8px;
}

.gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  background: var(--surface-2);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.gallery img:hover { transform: translateY(-2px); border-color: var(--accent); }

/* ---------- content ---------- */

main { padding-bottom: 56px; }
.content { padding-top: 8px; }

h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 40px 0 12px;
  letter-spacing: -0.005em;
  color: #fff;
}

h3 { font-size: 16px; margin: 22px 0 8px; color: #fff; }
p { margin: 0 0 14px; }

.prose { max-width: 820px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }

.answer {
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 14px 18px;
  margin: 24px 0 4px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 20px;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; width: 34%; }

code {
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 13px;
  color: #ffc65c;
}

/* ---------- faq ---------- */

.faq {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.faq details { border-bottom: 1px solid var(--border-soft); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  padding: 14px 16px;
  color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { background: var(--surface-2); }
.faq p { margin: 0; padding: 0 16px 16px; color: var(--muted); }

/* ---------- related cards ---------- */

.related { margin-top: 46px; padding-top: 28px; border-top: 1px solid var(--border-soft); }

.related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.related a {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.related a:hover { border-color: var(--accent); background: var(--surface-2); color: #fff; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 28px 0 44px;
  font-size: 13px;
  color: var(--muted);
  background: #0b0d0f;
}

.site-footer p { margin: 0 0 6px; }

/* ---------- patch notes ---------- */

.news { margin: 20px 0 8px; display: grid; gap: 12px; }

.news-item {
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
  padding: 18px 20px;
}

.news-head { margin-bottom: 10px; }

.news-head time {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}

.news-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: #fff;
}

.news-body { color: var(--text); font-size: 15px; }
.news-body p { margin: 0 0 10px; }
.news-body p:last-child { margin-bottom: 0; }
.news-body ul { margin: 0 0 10px; padding-left: 20px; }
.news-body li { margin-bottom: 4px; }

.news-src {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- cookie notice ---------- */

[hidden] { display: none !important; }

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: #0b0d0f;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
}

.consent p {
  margin: 0;
  flex: 1 1 320px;
  font-size: 14px;
  color: var(--muted);
}

.consent .btn {
  height: 38px;
  width: auto;
  padding: 0 20px;
  flex: 0 0 auto;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero { min-height: 380px; }
  .hero h1 { font-size: 38px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head h1 { font-size: 27px; }
}

@media (max-width: 720px) {
  .site-header .wrap { flex-direction: column; align-items: stretch; gap: 4px; padding: 9px 20px; }
  .site-nav { margin-left: 0; padding-bottom: 2px; }
  .brand { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .hero { min-height: 340px; }
  .hero h1 { font-size: 31px; }
  .hero-sub { font-size: 15px; }
  .hero-inner { padding: 34px 20px 26px; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .live { padding: 16px; gap: 12px; }
  .live .num { font-size: 32px; }
  .live .meta { margin-left: 0; text-align: left; }
  table { font-size: 14px; }
  th, td { padding: 9px 11px; }
  th { width: 40%; }
  .related ul { grid-template-columns: 1fr; }
}
