/* =========================================================================
   Huyền Thoại Arena – Phiên bản Trống Đồng — Design System v2
   Sister site of Huyền Thoại Arena: Be Vietnam Pro + Playfair Display,
   warm black + amber gold, with the night-blue atmosphere of the MU art.
   ========================================================================= */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #0b0907;
  --bg-2: #0f0d0b;
  --surface: #16130f;
  --surface-2: #1e1a14;
  --night: #0a1030;

  /* Gold family (shared with the main site) */
  --gold: #ffb82e;
  --gold-hi: #ffd95d;
  --gold-2: #c9a94e;
  --gold-3: #b08d3c;
  --gold-dark: #6b5a2c;
  --cream: #fffbe8;
  --cream-2: #ffe7a0;

  /* Text */
  --text: #f3eee4;
  --muted: #b4ab9b;
  --subtle: #8a8274;

  /* Accents */
  --blue: #0a8bf2;
  --blue-soft: #5cb2ff;
  --crimson: #d43b42;
  --green: #3fbf7f;

  /* Lines */
  --line: rgba(201, 169, 78, 0.2);
  --line-strong: rgba(255, 184, 46, 0.5);

  /* Type */
  --font-sans: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", "Times New Roman", Georgia, serif;

  /* Shape & depth */
  --radius: 6px;
  --radius-lg: 12px;
  --cut: 10px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  --glow: 0 0 0 1px rgba(255, 184, 46, 0.35), 0 10px 30px rgba(255, 184, 46, 0.18);

  /* Layout */
  --header-h: 64px;
  --dock-h: 64px;
  --container: 1200px;
  --gutter: 16px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 160ms;
  --t: 240ms;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --header-h: 72px; }
}
/* Large and very large screens: let content breathe instead of a narrow centred column */
@media (min-width: 1600px) {
  :root { --container: 1440px; --gutter: 40px; }
  body { font-size: 17px; }
}
@media (min-width: 2200px) {
  :root { --container: 1760px; --gutter: 56px; --header-h: 84px; }
  body { font-size: 18px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold); color: #1a1205; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: #1a1205; padding: 10px 16px; font-weight: 700; border-radius: var(--radius);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 22px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.02em; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: filter var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), background-color var(--t-fast);
  cursor: pointer; white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--cream); outline-offset: -5px; }
.btn:active { transform: translateY(1px); }
.btn--gold {
  --btn-fg: #1f1503;
  --btn-bg: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 52%, var(--gold-3) 100%);
  text-shadow: 0 1px 0 rgba(255, 245, 200, 0.5);
}
.btn--gold:hover { filter: brightness(1.08) saturate(1.05); }
.btn--ghost {
  --btn-fg: var(--cream-2);
  --btn-bg: rgba(11, 9, 7, 0.55);
  clip-path: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.btn--ghost:focus-visible { outline-offset: 3px; outline-color: var(--gold-hi); }
.btn--ghost:hover { --btn-bg: rgba(255, 184, 46, 0.14); border-color: var(--gold); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; --cut: 8px; }
.btn--lg { min-height: 52px; padding: 12px 28px; font-size: 16px; }

/* ---------- Ornaments ---------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gold); }
.ornament::before, .ornament::after { content: ""; height: 1px; width: min(120px, 22vw); background: linear-gradient(90deg, transparent, var(--gold-2)); }
.ornament::after { transform: scaleX(-1); }
.ornament i { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--gold); box-shadow: 0 0 10px rgba(255, 184, 46, 0.6); }

.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold);
}
.sec-head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head .eyebrow { margin-bottom: 10px; }
.sec-title {
  font-family: var(--font-serif); font-weight: 700; line-height: 1.15;
  font-size: clamp(28px, 4.2vw, 46px);
  background: linear-gradient(180deg, var(--cream) 20%, var(--cream-2) 60%, var(--gold-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance;
}
.sec-head .ornament { margin-top: 14px; }

.section { position: relative; padding-block: clamp(64px, 9vw, 112px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color var(--t), box-shadow var(--t), backdrop-filter var(--t);
}
.site-header::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  opacity: 0; transition: opacity var(--t);
}
.site-header.is-solid, .page-inner .site-header {
  background: rgba(11, 9, 7, 0.86);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.site-header.is-solid::after, .page-inner .site-header::after { opacity: 1; }
.site-header:not(.is-solid) { background: linear-gradient(180deg, rgba(5, 4, 3, 0.75), transparent); }
.page-inner .site-header { background: rgba(11, 9, 7, 0.9); }

.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: calc(var(--header-h) - 10px); width: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6)); }

.main-nav { display: none; margin-inline: auto; }
.main-nav ul { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.main-nav a {
  position: relative; display: flex; align-items: center; height: 44px; padding: 0 14px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text);
  transition: color var(--t-fast);
}
.main-nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0); transition: transform var(--t) var(--ease);
}
.main-nav a:hover { color: var(--gold-hi); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--gold); }

.header-actions { display: none; gap: 10px; align-items: center; }
.burger {
  margin-left: auto; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--gold);
  background: rgba(11, 9, 7, 0.6);
}
.burger .icon { width: 22px; height: 22px; }

@media (min-width: 1080px) {
  .main-nav, .header-actions { display: flex; }
  .burger { display: none; }
  .brand img { height: 92px; margin-top: 22px; }
}

/* ---------- Mobile drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.6);
  opacity: 0; pointer-events: none; transition: opacity var(--t);
}
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 90; width: min(360px, 88vw);
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(10, 16, 48, 0.9), transparent 60%),
    var(--bg-2);
  border-left: 1px solid var(--line-strong);
  transform: translateX(100%); visibility: hidden;
  transition: transform var(--t) var(--ease), visibility 0s linear var(--t);
  overflow-y: auto; overscroll-behavior: contain;
}
body.drawer-open { overflow: hidden; }
body.drawer-open .drawer { transform: none; visibility: visible; transition: transform var(--t) var(--ease); }
body.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); border-bottom: 1px solid var(--line); }
.drawer-head img { height: 64px; width: auto; }
.drawer-close { width: 44px; height: 44px; display: grid; place-items: center; color: var(--gold); border-radius: var(--radius); }
.drawer-close .icon { width: 24px; height: 24px; }
.drawer nav ul { list-style: none; margin: 0; padding: 8px 0; }
.drawer nav a {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 var(--gutter);
  font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; font-size: 15px;
  border-bottom: 1px solid rgba(201, 169, 78, 0.1);
}
.drawer nav a .icon { color: var(--gold-3); width: 18px; height: 18px; }
.drawer nav a[aria-current="page"] { color: var(--gold); }
.drawer-cta { display: grid; gap: 10px; padding: 20px var(--gutter); }
.drawer-social { display: flex; gap: 10px; padding: 0 var(--gutter) 24px; }
.drawer-social a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--cream-2);
}

/* ---------- Mobile dock ---------- */
.dock {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--dock-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(11, 9, 7, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-strong);
}
.dock a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em;
}
.dock a .icon { width: 22px; height: 22px; color: var(--cream-2); }
.dock a.dock-primary { color: #1f1503; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-3)); }
.dock a.dock-primary .icon { color: #1f1503; }
body { padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); }
@media (min-width: 1080px) {
  .dock { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; isolation: isolate;
  /* fills the first screen on every device */
  min-height: max(620px, 100vh);
  min-height: max(620px, 100svh);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 32px) 0 clamp(96px, 12vw, 140px);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 9, 7, 0) 40%, rgba(11, 9, 7, 0.75) 78%, var(--bg) 100%),
    radial-gradient(90% 70% at 50% 100%, rgba(11, 9, 7, 0.7), transparent 70%);
}
.hero-content { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.hero .eyebrow { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.9); }
.hero-logo { width: clamp(220px, 24vw, 360px); margin-bottom: -14px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.75)); }
.hero-title {
  font-family: var(--font-serif); font-weight: 700; line-height: 1.1;
  font-size: clamp(30px, 5.2vw, 60px);
  color: var(--cream); text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
  text-wrap: balance;
}
.hero-title span { color: var(--gold); }
/* Mobile: show the whole key art uncropped, then a clean action block below it */
@media (max-width: 767px) {
  .hero { display: block; min-height: 0; padding: 0 0 20px; }
  .hero::before { display: none; }
  .hero-media { position: relative; inset: auto; z-index: 0; display: block; aspect-ratio: 1920 / 1030; }
  .hero-media img { object-fit: cover; object-position: 50% 50%; }
  .hero-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11, 9, 7, 0.55) 0%, transparent 22%, transparent 62%, var(--bg) 100%);
  }
  .hero-content { position: relative; z-index: 1; gap: 10px; margin-top: -34px; }
  .hero-logo { width: 168px; margin: 0 0 -6px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: 0.18em; }
  .hero-title { font-size: 26px; }
  .quick { margin-top: 8px; }
}

/* Quick links strip */
.quick { position: relative; z-index: 2; margin-top: 8px; }
@media (min-width: 768px) { .quick { margin-top: -64px; } }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-card {
  display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px 16px;
  background: linear-gradient(180deg, rgba(30, 26, 20, 0.95), rgba(16, 13, 10, 0.95));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t-fast);
}
.quick-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--glow); }
.quick-card .q-icon {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 217, 93, 0.25), rgba(107, 90, 44, 0.2));
  border: 1px solid var(--line-strong); color: var(--gold);
}
.quick-card strong { display: block; font-size: 15px; line-height: 1.3; }
.quick-card small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
@media (min-width: 900px) { .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } .quick-card { padding: 18px 20px; } }

/* ---------- Atmosphere backgrounds ---------- */
.bg-night {
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(10, 16, 48, 0.85), transparent 70%),
    var(--bg);
}
.bg-warm {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255, 184, 46, 0.07), transparent 70%),
    var(--bg-2);
}

/* ---------- News block (home) ---------- */
.news-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.news-grid > * { min-width: 0; }
@media (min-width: 1000px) {
  .news-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: stretch; }
  .news-grid .banner-swiper { align-self: start; }
  .news-grid .board { align-self: stretch; }
}
/* board fills its column: rows share the height evenly, "Xem tất cả" sits at the bottom */
.board .tab-panel:not([hidden]) { flex: 1; display: flex; flex-direction: column; }
.board .post-list { flex: 1; display: flex; flex-direction: column; }
.board .post-list li { flex: 1; display: flex; }
.board .post-row { flex: 1; }

.frame {
  position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
}
.frame::before {
  content: ""; position: absolute; inset: 6px; border: 1px solid rgba(255, 184, 46, 0.14);
  border-radius: calc(var(--radius-lg) - 4px); pointer-events: none; z-index: 3;
}

.banner-swiper { aspect-ratio: 1755 / 1107; height: auto; width: 100%; margin: 0 !important; }
.banner-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-swiper .swiper-pagination { bottom: 14px !important; }
.swiper-pagination-bullet { width: 10px; height: 10px; background: var(--cream); opacity: 0.45; transition: all var(--t-fast); }
.swiper-pagination-bullet-active { opacity: 1; background: var(--gold); width: 26px; border-radius: 5px; }

.board { display: flex; flex-direction: column; padding: 8px 18px 18px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; min-height: 48px; padding: 0 14px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted);
  transition: color var(--t-fast);
}
.tab::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--gold);
  transform: scaleX(0); transition: transform var(--t) var(--ease);
}
.tab:hover { color: var(--cream-2); }
.tab[aria-selected="true"] { color: var(--gold); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab-panel[hidden] { display: none; }
.tab-panel:focus-visible { outline-offset: -2px; }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li + li { border-top: 1px dashed rgba(201, 169, 78, 0.16); }
.post-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  min-height: 56px; padding: 10px 4px;
  transition: background-color var(--t-fast);
}
.post-row:hover { background: rgba(255, 184, 46, 0.05); }
.post-row:hover .post-title { color: var(--gold-hi); }
.post-title { font-weight: 500; font-size: 15px; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; transition: color var(--t-fast); }
.post-date { font-size: 13px; color: var(--subtle); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chip {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  color: var(--gold); background: rgba(255, 184, 46, 0.1); border: 1px solid rgba(255, 184, 46, 0.3);
}
.chip--event { color: #ff8a8f; background: rgba(212, 59, 66, 0.12); border-color: rgba(212, 59, 66, 0.4); }
.chip--guide { color: var(--blue-soft); background: rgba(10, 139, 242, 0.12); border-color: rgba(10, 139, 242, 0.4); }
.chip--feature { color: #7fe0b0; background: rgba(63, 191, 127, 0.12); border-color: rgba(63, 191, 127, 0.4); }
.board-more {
  margin-top: auto; padding-top: 14px; display: inline-flex; align-self: flex-end; align-items: center; gap: 6px;
  min-height: 44px; font-weight: 600; font-size: 14px; color: var(--gold);
}
.board-more:hover { color: var(--gold-hi); }
@media (max-width: 479px) { .post-row { grid-template-columns: 1fr auto; } .post-row .chip { display: none; } }

/* Keep the single event and its link together below the tabs. */
.news-grid .board:has(#np-1:not([hidden])) {
  align-self: start;
}
.board #np-1 .post-list {
  flex: 0 0 auto;
  margin-top: 12px;
}
.board #np-1 .post-row {
  min-height: 60px;
  padding-inline: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.board #np-1 .post-row:hover {
  border-color: var(--line-strong);
}
.board #np-1 .board-more {
  margin-top: 4px;
  padding-top: 0;
}

/* ---------- Classes (9 class showcase, mirrors the main site) ---------- */
.classes { position: relative; padding-bottom: clamp(48px, 6vw, 80px); background: var(--bg); overflow: hidden; }
.classes .sec-head { position: relative; z-index: 3; }
.cls-stage { position: relative; isolation: isolate; min-height: clamp(560px, 78vh, 860px); margin-top: calc(-1 * clamp(120px, 14vw, 190px)); }
.cls-panel { position: absolute; inset: 0; display: flex; align-items: center; }
.cls-panel[hidden] { display: none; }
.cls-bg { position: absolute; inset: 0; z-index: -2; }
.cls-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 25%; animation: cls-fade 700ms var(--ease) both; }
@keyframes cls-fade { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.cls-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(11, 9, 7, 0.15) 22%, rgba(11, 9, 7, 0.1) 60%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11, 9, 7, 0.92) 0%, rgba(11, 9, 7, 0.55) 38%, transparent 62%);
}
.cls-info { position: relative; max-width: 520px; padding-top: 60px; animation: cls-info 600ms 120ms var(--ease) both; }
@keyframes cls-info { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
.cls-role { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; font-size: 13px; }
.cls-role::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.cls-name {
  font-family: var(--font-serif); font-weight: 700; line-height: 1.02; margin: 10px 0 16px;
  font-size: clamp(40px, 6vw, 80px); text-transform: uppercase; letter-spacing: 0.01em;
  background: linear-gradient(180deg, var(--cream) 30%, var(--cream-2) 65%, var(--gold-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.7));
}
.cls-desc { color: #e8e0d0; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.75; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85); }

.cls-rail { position: relative; z-index: 3; margin-top: -110px; }
.cls-swiper { padding: 12px 4px 8px !important; }
.cls-slide { width: clamp(132px, 14vw, 208px) !important; }
.cls-card { display: block; width: 100%; text-align: center; color: var(--text); }
.cls-card-art { position: relative; display: block; aspect-ratio: 440 / 783; transition: transform var(--t) var(--ease), filter var(--t); filter: brightness(0.82) saturate(0.9); }
.cls-card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity var(--t); }
.cls-card-art img.on { opacity: 0; }
.cls-card:hover .cls-card-art, .cls-card[aria-selected="true"] .cls-card-art { transform: translateY(-8px); filter: none; }
.cls-card:hover .cls-card-art img.on, .cls-card[aria-selected="true"] .cls-card-art img.on { opacity: 1; }
.cls-card[aria-selected="true"] .cls-card-art { filter: drop-shadow(0 0 18px rgba(255, 184, 46, 0.45)); }
.cls-card-name { display: block; margin-top: 10px; font-weight: 700; font-size: clamp(13px, 1.2vw, 17px); letter-spacing: 0.02em; text-transform: uppercase; color: #d9d2c4; line-height: 1.3; }
.cls-card-role { display: block; margin-top: 2px; font-size: clamp(12px, 1vw, 14px); font-weight: 600; color: var(--gold-2); }
.cls-card[aria-selected="true"] .cls-card-name { color: var(--cream-2); }
.cls-card[aria-selected="true"] .cls-card-role { color: var(--gold); }
.cls-card:focus-visible { outline-offset: 4px; border-radius: 6px; }
.cls-nav { position: absolute; top: 38%; z-index: 4; transform: translateY(-50%); }
.cls-nav--prev { left: 0; }
.cls-nav--next { right: 0; }
.cls-nav.swiper-button-disabled { opacity: 0.3; cursor: default; }
@media (min-width: 1080px) { .cls-rail { padding-inline: 56px; } .cls-nav--prev { left: 0; } .cls-nav--next { right: 0; } }
@media (max-width: 767px) {
  .cls-stage { min-height: 640px; margin-top: -90px; }
  .cls-panel { align-items: flex-end; padding-bottom: 150px; }
  .cls-bg img { object-position: 50% 15%; }
  .cls-panel::before {
    background: linear-gradient(180deg, var(--bg) 0%, transparent 22%, rgba(11, 9, 7, 0.35) 48%, rgba(11, 9, 7, 0.95) 78%, var(--bg) 100%);
  }
  .cls-info { text-align: center; margin-inline: auto; padding-top: 0; }
  .cls-role::before { display: none; }
  .cls-rail { margin-top: -120px; }
  .cls-rail .cls-nav { display: none; }
}

/* ---------- Cards (features / news grid) ---------- */
.card-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--t) var(--ease), border-color var(--t), box-shadow var(--t);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow), var(--glow); }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #0d0b08; }
.card-bg {
  position: absolute; inset: -24px;
  background: center / cover no-repeat;
  filter: blur(18px) brightness(0.5) saturate(1.2);
}
.card-media img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: transform 600ms var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(22, 19, 15, 0.85)); }
.card-media .chip { position: absolute; top: 12px; left: 12px; z-index: 1; backdrop-filter: blur(4px); background-color: rgba(11, 9, 7, 0.65); }
.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--subtle); }
.card-meta .icon { width: 15px; height: 15px; }
.card-title { font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--cream); transition: color var(--t-fast); }
.card:hover .card-title { color: var(--gold-hi); }
.card-text { font-size: 14px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-link { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gold); }
.card > a.card-cover { position: absolute; inset: 0; z-index: 2; }
.card > a.card-cover:focus-visible { outline-offset: -3px; border-radius: var(--radius-lg); }

/* ---------- Activities slider ---------- */
.acts-swiper { padding: 8px var(--gutter) 56px !important; }
.act-slide { width: min(86vw, 720px) !important; }
.act-card { display: block; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); transition: transform var(--t) var(--ease), opacity var(--t); }
.act-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.act-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.act-caption strong { font-family: var(--font-serif); font-size: 20px; color: var(--cream); }
.act-caption span { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--gold); white-space: nowrap; }
.acts-swiper .swiper-slide:not(.swiper-slide-active) .act-card { opacity: 0.55; transform: scale(0.94); }
.slider-nav { display: flex; justify-content: center; gap: 12px; margin-top: -36px; position: relative; z-index: 2; }
.slider-btn {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--gold); background: rgba(11, 9, 7, 0.7);
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.slider-btn:hover { background: rgba(255, 184, 46, 0.14); border-color: var(--gold); }
.slider-btn.swiper-button-disabled { opacity: 0.35; cursor: default; }
.slider-btn--prev .icon { transform: rotate(180deg); }


/* ---------- Footer (mirrors the main site) ---------- */
.site-footer {
  position: relative; background: #1c1c1c; color: var(--text);
  border-top: 1px solid rgba(201, 169, 78, 0.35);
  padding: clamp(40px, 6vw, 64px) 0 24px;
}
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.footer-brands { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-brands .f-logo { height: 112px; width: auto; margin: -10px 0; }
.footer-brands .f-fungames { height: 34px; width: auto; }
.footer-company { margin-top: 22px; font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; }
.footer-company span { color: var(--blue); }
.footer-contact { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; font-size: 16px; font-weight: 500; }
.footer-contact a:hover { color: var(--blue-soft); }
.footer-contact .icon { width: 22px; height: 22px; color: var(--blue); }
.footer-badges { display: flex; align-items: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.age-badge {
  display: inline-flex; align-items: stretch; height: 48px; border-radius: 7px; overflow: hidden;
  border: 1.5px solid #fff; background: #2a39c8; color: #fff;
}
.age-badge b { display: flex; align-items: center; justify-content: center; padding: 0 10px; font-size: 22px; font-weight: 700; border-right: 1.5px solid #fff; line-height: 1; white-space: nowrap; }
.age-badge b sup { font-size: 13px; margin-left: 1px; align-self: flex-start; margin-top: 9px; }
.age-badge span { display: grid; place-items: center; width: 104px; padding: 0 6px; font-size: 9px; line-height: 1.25; text-align: center; font-weight: 500; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 40px; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.01em; }
.footer-nav a:hover { color: var(--gold-hi); }
.footer-legal { margin-top: 18px; color: #c9c9c9; font-size: 14px; line-height: 1.65; max-width: 560px; }
.footer-product { margin-top: 14px; color: #a9a9a9; font-size: 13px; line-height: 1.7; }
.footer-bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13px; color: #9a9a9a; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 16px; bottom: calc(var(--dock-h) + env(safe-area-inset-bottom) + 16px); z-index: 30;
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(11, 9, 7, 0.85); border: 1px solid var(--line-strong); color: var(--gold);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity var(--t), transform var(--t) var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 1080px) { .to-top { bottom: 24px; right: 24px; } }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 72px)) 0 clamp(36px, 5vw, 56px);
  text-align: center;
}
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11, 9, 7, 0.55), rgba(11, 9, 7, 0.8) 70%, var(--bg));
}
.page-title { font-family: var(--font-serif); font-weight: 700; font-size: clamp(28px, 4.6vw, 50px); line-height: 1.15; color: var(--cream); text-wrap: balance; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7); }
.page-hero .ornament { margin-top: 14px; }
.breadcrumb { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--cream-2); }
.breadcrumb a:hover { color: var(--gold-hi); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--subtle); }
.page-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.page-meta span { display: inline-flex; align-items: center; gap: 6px; }
.page-meta .icon { width: 16px; height: 16px; }

/* Listing tabs (links) */
.seg { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.seg a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line); background: rgba(22, 19, 15, 0.8);
  font-weight: 600; font-size: 14px; color: var(--muted);
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
}
.seg a:hover { color: var(--cream-2); border-color: var(--line-strong); }
.seg a[aria-current="page"] { color: #1f1503; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-3)); border-color: transparent; }
.seg a .count { font-size: 12px; opacity: 0.75; }

/* ---------- Article ---------- */
.article-layout { display: grid; gap: 28px; }
@media (min-width: 1100px) { .article-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; } }
.article-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  background: #f7f4ee;
}
.article-card::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--gold-3), var(--gold-hi), var(--gold-3)); }

/* Legacy article content (kept as-authored, with its own scoped <style>) */
.article-card .news_detail_content { position: relative; }
.article-card .news_detail_body {
  color: #1d2433; font-size: 16px; line-height: 1.75;
  padding: clamp(18px, 3.5vw, 40px);
  overflow-wrap: break-word;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
/* Per-article stylesheets give .news_detail_body its own frame; the card is the frame now. */
.article-card .news_detail_body {
  width: auto !important; margin: 0 !important; max-width: none !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: transparent !important;
  padding: clamp(18px, 3.5vw, 40px) !important;
}
.article-card .new-detail-header { display: none; }
.article-card .news_detail_body img { max-width: 100% !important; height: auto !important; }
.article-card .news_detail_body p { margin: 0 0 0.6em; }
.article-card .news_detail_body ul, .article-card .news_detail_body ol { padding-left: 1.4em; margin: 0 0 1em; }
.article-card .news_detail_body a { color: #0a6fc2; text-decoration: underline; text-underline-offset: 2px; }
.article-card .table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-card .text-center { text-align: center; }
.article-card .center { justify-content: center; align-items: center; }
.article-card .image_resized { max-width: 100%; }

.aside { display: grid; gap: 20px; }
@media (min-width: 1100px) { .aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.aside-box { border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface-2), var(--surface)); padding: 20px; }
.aside-title { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--cream); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.aside-title::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 8px rgba(255, 184, 46, 0.6); }
.aside-cta { text-align: center; position: relative; overflow: hidden; }
.aside-cta img.aside-logo { width: 190px; margin: 0 auto 6px; }
.aside-cta p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.aside-cta .btn { width: 100%; }
.aside-cta .btn + .btn { margin-top: 10px; }
.related { list-style: none; margin: 0; padding: 0; }
.related li + li { border-top: 1px dashed rgba(201, 169, 78, 0.16); }
.related a { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; padding: 10px 0; }
.related img { width: 76px; height: 48px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.related strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; transition: color var(--t-fast); }
.related small { color: var(--subtle); font-size: 12px; }
.related a:hover strong { color: var(--gold-hi); }
.article-foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 20px; }

/* ---------- Download pages ---------- */
.dl-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 560px; margin: 0 auto 28px; }
.dl-switch a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 76px; padding: 10px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  font-weight: 700; font-size: 14px; color: var(--muted);
  transition: border-color var(--t-fast), color var(--t-fast), background-color var(--t-fast);
}
.dl-switch a .icon { width: 26px; height: 26px; }
.dl-switch a:hover { border-color: var(--line-strong); color: var(--cream-2); }
.dl-switch a[aria-current="page"] { border-color: var(--gold); color: var(--gold); background: rgba(255, 184, 46, 0.08); box-shadow: var(--glow); }
.dl-card { max-width: 860px; margin: 0 auto; display: grid; gap: 20px; }
.dl-main {
  display: grid; gap: 18px; align-items: center; padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(255, 184, 46, 0.1), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}
@media (min-width: 700px) { .dl-main { grid-template-columns: auto 1fr auto; } }
.dl-main img.dl-icon { width: 88px; height: 88px; border-radius: 20px; border: 1px solid var(--line-strong); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.dl-main h2 { font-family: var(--font-serif); font-size: clamp(22px, 3vw, 28px); color: var(--cream); line-height: 1.2; }
.dl-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.dl-facts span { display: inline-flex; align-items: center; gap: 6px; }
.dl-facts .icon { width: 16px; height: 16px; color: var(--gold-3); }
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li {
  counter-increment: step; position: relative; padding: 16px 18px 16px 64px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  color: #e6dfd1;
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 50%;
  font-family: var(--font-serif); font-weight: 700; color: #1f1503;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-3));
}
.steps li strong { color: var(--cream); }
.steps a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.note {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius-lg);
  border: 1px solid rgba(10, 139, 242, 0.35); background: rgba(10, 139, 242, 0.08); color: #d6e9fb; font-size: 15px;
}
.note .icon { color: var(--blue-soft); margin-top: 2px; }
.note a { color: var(--blue-soft); font-weight: 600; text-decoration: underline; }
.dl-sub { font-family: var(--font-serif); font-size: 22px; color: var(--cream); margin: 12px 0 2px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Download cluster (original site's button art) ---------- */
.dl-box {
  display: grid; grid-template-columns: 177fr 185fr 185fr 185fr; align-items: center;
  gap: clamp(6px, 1.2vw, 14px);
  width: min(780px, 100%); margin: 10px auto 0; padding: clamp(8px, 1.4vw, 16px);
  background: rgba(8, 6, 10, 0.8); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: clamp(10px, 1.6vw, 18px);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.dl-box a { display: block; border-radius: 8px; transition: transform var(--t-fast) var(--ease), filter var(--t-fast); }
.dl-box a:hover { transform: translateY(-2px); filter: brightness(1.12) saturate(1.05); }
.dl-box a:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.dl-box img { width: 100%; height: auto; }
.dl-logo img { border-radius: 18%; border: 2px solid #c9d2e0; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 6px 18px rgba(0, 0, 0, 0.5); }
.dl-stack { display: grid; gap: clamp(4px, 0.8vw, 10px); }

/* Hero title: the em dash only belongs on one-line (desktop) layouts */
.hero-title .hero-dash { color: inherit; }
@media (max-width: 767px) {
  .hero-title .hero-dash { display: none; }
  .hero-title .hero-name { display: block; }
}

/* ---------- Desktop right rail (original site's art) ---------- */
.rightnav { display: none; }
@media (min-width: 1080px) {
  .rightnav {
    position: fixed; right: 0; top: 55%; z-index: 45;
    width: 200px; height: 435px; padding-top: 262px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    background: url("../resources/images/bg_rightnav.png") no-repeat 0 0 / 200px 435px;
    transform: translate(0, -50%);
    transition: transform 400ms var(--ease);
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
  }
  .rightnav.is-collapsed { transform: translate(180px, -50%); }
  .rn-btn {
    display: block; width: 173px; height: 41px; flex: none;
    background: url("../resources/images/btn_rightnav.png") no-repeat 0 0 / 173px 145px;
  }
  .rn-btn:hover { background-image: url("../resources/images/btn_rightnav_2.png"); }
  .rn-pay { background-position: 0 -49px; }
  .rn-fb { background-position: 0 -98px; }
  .rn-btn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
  .rn-toggle {
    position: absolute; left: -24px; top: 235px; width: 29px; height: 62px;
    background: url("../resources/images/sticky_on.png") no-repeat center / 100% 100%;
  }
  .rightnav.is-collapsed .rn-toggle { background-image: url("../resources/images/sticky_off.png"); }
  .rn-toggle:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
}
@media (min-width: 1080px) and (max-height: 640px) { .rightnav { top: auto; bottom: 0; transform: none; } .rightnav.is-collapsed { transform: translateX(180px); } }

/* Desktop hero: logo carries the brand, title kept for SEO/screen readers only */
@media (min-width: 768px) {
  .hero-title {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .hero-logo { width: clamp(280px, 27vw, 420px); margin-bottom: 6px; }
}

/* Desktop: one big brand mark in the header corner, no duplicate logo in the hero */
@media (min-width: 768px) {
  .page-home .hero-logo { display: none; }
}
@media (min-width: 1080px) {
  .brand img {
    height: 150px; margin-top: 78px;
    transition: height var(--t) var(--ease), margin-top var(--t) var(--ease);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.7));
  }
  .site-header.is-solid .brand img { height: 66px; margin-top: 0; }
}
@media (min-width: 2200px) {
  .brand img { height: 190px; margin-top: 100px; }
}

/* ---------- Mobile hero v3: image + download cluster only ---------- */
.hero-title {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (max-width: 767px) {
  .hero-logo { display: none; }
  .hero-media { aspect-ratio: 1340 / 1030; }
  .hero-media img { object-position: 50% 30%; }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(11, 9, 7, 0.6) 0%, transparent 20%, transparent 70%, var(--bg) 100%);
  }
  .hero-content { margin-top: -44px; }
  /* bigger corner logo, overhanging the art; shrinks once the header turns solid */
  .brand img {
    height: 96px; margin-top: 34px;
    transition: height var(--t) var(--ease), margin-top var(--t) var(--ease);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75));
  }
  .site-header.is-solid .brand img, .page-inner .site-header .brand img { height: 54px; margin-top: 0; }
}

/* Blue spirit-fire canvas (sized/placed by mtd.js to match .hero-media) */
.hero-fire { position: absolute; pointer-events: none; }
