/* ==========================================================================
   Three Banners of Han — AAA Official Game Website Stylesheet
   Imperial Obsidian · Burnished Han Bronze · Lacquer Crimson · Jade
   ========================================================================== */

:root {
  --bg-deep: #07090e;
  --bg-surface: #0f131c;
  --bg-elevated: #161b27;
  --bg-glass: rgba(10, 13, 20, 0.78);

  --gold-bright: #f4d993;
  --gold-mid: #d7ad5c;
  --gold-dim: #8f6e33;
  --gold-border: rgba(215, 173, 92, 0.28);
  --gold-border-strong: rgba(244, 217, 147, 0.55);

  --crimson: #b82525;
  --crimson-bright: #d93636;
  --crimson-glow: rgba(184, 37, 37, 0.45);

  --jade: #2e8a64;
  --sapphire: #3470b8;
  --text-main: #f2ece0;
  --text-soft: #c7bfae;
  --text-muted: #8f897e;

  --font-display: "Cinzel", "Noto Serif Thai", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", Georgia, serif;
  --font-body: "Plus Jakarta Sans", "Noto Sans Thai", "Noto Sans SC", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-w: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body.aaa-body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--gold-bright);
  text-decoration: none;
  transition: color 0.2s ease;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------- Navigation ---------- */
.aaa-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.88) 0%, rgba(7, 9, 14, 0.45) 100%);
  border-bottom: 1px solid rgba(215, 173, 92, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.aaa-nav.scrolled {
  background: rgba(7, 9, 14, 0.94);
  border-bottom-color: var(--gold-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-bright);
  flex-shrink: 0;
}

.nav-crest {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--gold-border-strong);
  box-shadow: 0 0 16px rgba(215, 173, 92, 0.25);
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}

.nav-brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  transform: scaleX(0);
  transition: transform 0.25s var(--ease-out);
}

.nav-links a:hover {
  color: var(--gold-bright);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(22, 27, 39, 0.92);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  flex-wrap: nowrap;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--gold-mid), #9b7329);
  color: #100d07;
  box-shadow: 0 2px 10px rgba(215, 173, 92, 0.35);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--crimson-bright), #8f1818);
  color: #fff !important;
  border: 1px solid rgba(255, 170, 140, 0.45);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 18px var(--crimson-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(217, 54, 54, 0.65);
}

/* ---------- Full-Viewport Cinematic Hero ---------- */
.aaa-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 112px 24px 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/hero_clean.webp") 72% 35% / cover no-repeat;
  transform: scale(1.03);
  filter: saturate(1.06) contrast(1.03);
  z-index: 0;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 14, 0.94) 0%, rgba(7, 9, 14, 0.78) 42%, rgba(7, 9, 14, 0.28) 76%, rgba(7, 9, 14, 0.45) 100%),
    linear-gradient(180deg, rgba(7, 9, 14, 0.55) 0%, rgba(7, 9, 14, 0.05) 38%, rgba(7, 9, 14, 0.55) 80%, var(--bg-deep) 100%);
  z-index: 1;
}

#ember-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.72;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.hero-left {
  max-width: 610px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(15, 19, 28, 0.8);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.hero-logo-img {
  width: min(440px, 90%);
  height: auto;
  margin: -18px 0 -10px -8px;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.85));
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  color: var(--gold-bright);
  margin: 0 0 14px;
  line-height: 1.32;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
}

.hero-desc {
  font-size: 1.04rem;
  color: #e8e1d3;
  margin: 0 0 28px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

/* Storefront Action Strip */
.store-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.store-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--gold-border);
  background: rgba(15, 19, 28, 0.84);
  backdrop-filter: blur(10px);
  transition: transform 0.22s var(--ease-out), border-color 0.22s ease, box-shadow 0.22s ease;
}

.store-card-live {
  background: linear-gradient(135deg, #c62a2a 0%, #8e1717 65%, #6b1111 100%);
  border: 1px solid rgba(255, 206, 145, 0.65);
  box-shadow: 0 10px 30px rgba(184, 37, 37, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.store-card-live:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  box-shadow: 0 14px 36px rgba(217, 54, 54, 0.65);
}

.store-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 232, 185, 0.9);
  margin-bottom: 3px;
}

.store-name {
  font-size: 0.98rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.store-price {
  font-size: 0.78rem;
  color: #ffdf9a;
  margin-top: 2px;
  font-weight: 600;
}

.store-card-soon {
  cursor: default;
  border-color: rgba(215, 173, 92, 0.2);
}

.store-card-soon .store-kicker {
  color: var(--text-muted);
}

.store-card-soon .store-name {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.store-card-soon .store-price {
  color: var(--gold-mid);
  font-size: 0.74rem;
}

/* Hero Trust Metrics */
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(215, 173, 92, 0.22);
}

.metric-item {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.metric-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-bright);
}

.metric-label {
  font-size: 0.84rem;
  color: var(--text-soft);
}

/* ---------- Shared Section Styling ---------- */
.aaa-section {
  position: relative;
  padding: 88px 24px;
}

.aaa-section-alt {
  background: radial-gradient(ellipse at 50% 0%, rgba(215, 173, 92, 0.07) 0%, transparent 60%), var(--bg-surface);
  border-top: 1px solid rgba(215, 173, 92, 0.14);
  border-bottom: 1px solid rgba(215, 173, 92, 0.14);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 10px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.3vw, 2.5rem);
  font-weight: 700;
  color: var(--gold-bright);
  margin: 0 0 12px;
  line-height: 1.24;
}

.section-lead {
  color: var(--text-soft);
  font-size: 1rem;
  margin: 0;
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.ornament-divider span {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-mid), transparent);
}

.ornament-diamond {
  width: 8px;
  height: 8px;
  background: var(--gold-mid);
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(215, 173, 92, 0.6);
}

/* ---------- Story Chronicle Showcase ---------- */
.chronicle-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gold-border);
  background: #0b0e15;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}

.chronicle-stage {
  position: relative;
  aspect-ratio: 16 / 8.2;
  min-height: 360px;
  overflow: hidden;
}

.chronicle-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.65s var(--ease-out), transform 0.9s var(--ease-out);
}

.chronicle-img.active {
  opacity: 1;
  transform: scale(1);
}

.chronicle-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 9, 14, 0.95) 0%, rgba(7, 9, 14, 0.45) 45%, rgba(7, 9, 14, 0.12) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 40px;
}

.chronicle-era {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: rgba(184, 37, 37, 0.85);
  border: 1px solid rgba(255, 200, 140, 0.45);
  color: #fff5e1;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.chronicle-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 2.05rem);
  color: var(--gold-bright);
  margin: 0 0 8px;
}

.chronicle-text {
  max-width: 720px;
  color: #eae3d4;
  font-size: 0.98rem;
  margin: 0;
}

.chronicle-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--gold-border);
  background: rgba(10, 13, 20, 0.96);
}

.chronicle-tab {
  border: none;
  border-right: 1px solid rgba(215, 173, 92, 0.14);
  background: transparent;
  color: var(--text-muted);
  padding: 18px 20px;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
  position: relative;
}

.chronicle-tab:last-child {
  border-right: none;
}

.chronicle-tab::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--crimson-bright), var(--gold-bright));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.chronicle-tab:hover {
  background: rgba(215, 173, 92, 0.06);
  color: var(--text-main);
}

.chronicle-tab.active {
  background: rgba(215, 173, 92, 0.1);
  color: var(--gold-bright);
}

.chronicle-tab.active::before {
  opacity: 1;
}

.tab-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold-mid);
  margin-bottom: 3px;
}

.tab-name {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---------- 4 Tactical Pillars Interactive Showcase ---------- */
.pillars-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}

.pillar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pillar-btn {
  width: 100%;
  text-align: left;
  background: rgba(15, 19, 28, 0.85);
  border: 1px solid rgba(215, 173, 92, 0.16);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  color: var(--text-soft);
  transition: all 0.25s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.pillar-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold-bright), var(--crimson-bright));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pillar-btn:hover {
  border-color: var(--gold-border);
  background: rgba(24, 30, 44, 0.95);
}

.pillar-btn.active {
  background: linear-gradient(135deg, rgba(31, 38, 56, 0.98), rgba(20, 24, 36, 0.98));
  border-color: var(--gold-border-strong);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.pillar-btn.active::before {
  opacity: 1;
}

.pillar-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 4px;
}

.pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 6px;
}

.pillar-btn.active .pillar-title {
  color: var(--gold-bright);
}

.pillar-summary {
  font-size: 0.87rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.pillar-btn.active .pillar-summary {
  color: var(--text-soft);
}

.pillar-stage {
  background: var(--bg-elevated);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.55);
}

.pillar-screen-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #06080c;
  overflow: hidden;
}

.pillar-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
}

.pillar-caption-bar {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(215, 173, 92, 0.16);
}

.pillar-caption-text {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-soft);
  max-width: 560px;
}

.pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(215, 173, 92, 0.12);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ---------- Legendary Generals Roster ---------- */
.generals-showcase {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: center;
  background:
    radial-gradient(circle at 26% 52%, rgba(215, 173, 92, 0.16) 0%, transparent 55%),
    linear-gradient(145deg, #111622 0%, #0b0e16 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.general-pedestal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.pedestal-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 2px solid rgba(215, 173, 92, 0.25);
  box-shadow: inset 0 0 60px rgba(215, 173, 92, 0.14), 0 0 60px rgba(215, 173, 92, 0.12);
  background: radial-gradient(circle, rgba(215, 173, 92, 0.14) 0%, rgba(12, 16, 24, 0.2) 68%, transparent 100%);
}

.general-portrait-main {
  position: relative;
  z-index: 2;
  max-height: 340px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.8));
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}

.general-info {
  position: relative;
  z-index: 2;
}

.general-faction-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(46, 138, 100, 0.22);
  border: 1px solid rgba(74, 222, 128, 0.4);
  color: #a7f3d0;
  margin-bottom: 10px;
}

.general-name {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  color: var(--gold-bright);
  margin: 0 0 4px;
}

.general-epithet {
  font-size: 1rem;
  color: var(--gold-mid);
  font-weight: 600;
  margin: 0 0 14px;
}

.general-quote {
  font-style: italic;
  color: #ece4d4;
  border-left: 3px solid var(--crimson-bright);
  padding-left: 14px;
  margin: 0 0 16px;
  font-size: 0.96rem;
}

.general-bio {
  color: var(--text-soft);
  font-size: 0.93rem;
  margin: 0 0 22px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 22px;
  margin-bottom: 24px;
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-soft);
}

.stat-meta strong {
  color: var(--gold-bright);
}

.stat-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--crimson-bright), var(--gold-bright));
  transition: width 0.55s var(--ease-out);
}

/* Medallion Selector */
.medallion-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
  justify-content: center;
}

.medallion-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 4px;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.medallion-btn:hover {
  transform: translateY(-3px);
  color: var(--text-main);
}

.medallion-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(145deg, #4b3e24, #1e2432);
  border: 2px solid rgba(215, 173, 92, 0.32);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.medallion-btn.active .medallion-ring {
  border-color: var(--gold-bright);
  background: radial-gradient(circle, rgba(215, 173, 92, 0.35), #1a1f2d);
  box-shadow: 0 0 22px rgba(244, 217, 147, 0.42);
  transform: scale(1.08);
}

.medallion-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
}

.medallion-label {
  font-size: 0.82rem;
  font-weight: 700;
}

.medallion-btn.active .medallion-label {
  color: var(--gold-bright);
}

/* ---------- Screenshot Gallery & Lightbox ---------- */
.aaa-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-card {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid rgba(215, 173, 92, 0.2);
  cursor: pointer;
  transition: transform 0.28s var(--ease-out), border-color 0.28s ease, box-shadow 0.28s ease;
  position: relative;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-border-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.gallery-thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #06080c;
}

.gallery-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease-out);
}

.gallery-card:hover .gallery-thumb-wrap img {
  transform: scale(1.05);
}

.gallery-zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(7, 9, 14, 0.82);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-card:hover .gallery-zoom-hint {
  opacity: 1;
}

.gallery-card figcaption {
  padding: 13px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(5, 7, 11, 0.94);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 1120px;
  width: 100%;
  position: relative;
  text-align: center;
}

.lightbox-img {
  max-height: 78vh;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--gold-border-strong);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.85);
}

.lightbox-cap {
  color: var(--gold-bright);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 14px;
}

.lightbox-btn {
  position: fixed;
  background: rgba(15, 19, 28, 0.9);
  border: 1px solid var(--gold-border-strong);
  color: var(--gold-bright);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-btn:hover {
  background: var(--crimson);
  color: #fff;
}

.lightbox-close { top: 20px; right: 24px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ---------- Value Promise + PC Specs Grid ---------- */
.info-split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
}

.promise-card,
.specs-card {
  background: var(--bg-elevated);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
}

.card-heading {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-bright);
  margin: 0 0 18px;
}

.promise-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.promise-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.promise-check {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(46, 138, 100, 0.25);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #86efac;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 2px;
}

.mini-specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.mini-specs th,
.mini-specs td {
  padding: 10px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(215, 173, 92, 0.14);
}

.mini-specs th {
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mini-specs td {
  color: var(--text-soft);
}

.mini-specs tr:last-child td {
  border-bottom: none;
}

/* ---------- Final Cinematic CTA Banner ---------- */
.final-cta {
  position: relative;
  padding: 96px 24px;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--gold-border);
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  background: url("assets/story_guandu.webp") center 35% / cover no-repeat;
  opacity: 0.28;
  filter: saturate(1.1);
}

.final-cta-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(18, 12, 10, 0.52) 0%, rgba(7, 9, 14, 0.96) 78%);
}

.final-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.cta-btn-big {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-btn-primary {
  background: linear-gradient(135deg, var(--crimson-bright), #8b1616);
  color: #fff !important;
  border: 1px solid rgba(255, 212, 148, 0.65);
  box-shadow: 0 12px 32px rgba(184, 37, 37, 0.55);
}

.cta-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(217, 54, 54, 0.72);
}

.cta-btn-share {
  background: rgba(15, 19, 28, 0.88);
  color: var(--gold-bright);
  border: 1px solid var(--gold-border-strong);
}

.cta-btn-share:hover {
  transform: translateY(-2px);
  background: rgba(28, 34, 48, 0.95);
}

/* Toast Notification */
.share-toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #1b2232, #10141e);
  border: 1px solid var(--gold-bright);
  color: var(--gold-bright);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  z-index: 400;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out);
}

.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Footer */
.aaa-footer {
  background: #05070b;
  border-top: 1px solid rgba(215, 173, 92, 0.16);
  padding: 36px 24px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.aaa-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.aaa-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Scroll Reveal */
.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.js-ready .reveal:not(.in-view) {
  opacity: 0;
  transform: translateY(22px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }
  .pillars-layout {
    grid-template-columns: 1fr;
  }
  .generals-showcase {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
  .info-split {
    grid-template-columns: 1fr;
  }
  .aaa-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 780px) {
  .nav-inner {
    flex-wrap: wrap;
    padding: 10px 14px;
    gap: 8px;
  }
  .nav-brand-title {
    font-size: 0.86rem;
  }
  .nav-brand-sub {
    display: none;
  }
  .nav-actions {
    width: 100%;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 8px;
  }
  .lang-toggle {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
    padding: 3px;
    gap: 2px;
  }
  .lang-btn {
    padding: 5px 2px;
    font-size: 0.72rem;
    text-align: center;
  }
  .nav-cta {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .aaa-hero {
    min-height: auto;
    padding: 152px 18px 54px;
  }
  .hero-bg {
    background-position: 82% center;
  }
  .hero-vignette {
    background: linear-gradient(180deg, rgba(7, 9, 14, 0.72) 0%, rgba(7, 9, 14, 0.88) 65%, var(--bg-deep) 100%);
  }
  .store-grid {
    grid-template-columns: 1fr;
  }
  .chronicle-stage {
    aspect-ratio: 4 / 3;
  }
  .chronicle-overlay {
    padding: 22px 20px;
  }
  .chronicle-tabs {
    grid-template-columns: 1fr;
  }
  .chronicle-tab {
    border-right: none;
    border-bottom: 1px solid rgba(215, 173, 92, 0.14);
  }
  .aaa-gallery {
    grid-template-columns: 1fr;
  }
  .aaa-section {
    padding: 60px 18px;
  }
}

/* ---------- Gameplay Trailer Showcase ---------- */
.hero-trailer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(15, 19, 28, 0.86);
  border: 1px solid var(--gold-border-strong);
  color: var(--gold-bright);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-trailer-link:hover {
  transform: translateY(-1px);
  background: rgba(28, 34, 48, 0.95);
  border-color: var(--gold-bright);
  color: #fff;
}

.hero-trailer-link .play-tri {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson-bright), #8b1616);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  padding-left: 2px;
  box-shadow: 0 0 12px var(--crimson-glow);
}

.trailer-frame {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gold-border-strong);
  background: #0a0d14;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.72), 0 0 42px rgba(215, 173, 92, 0.08);
}

.trailer-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #05070b;
  overflow: hidden;
}

.trailer-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #05070b;
}

.trailer-play-overlay {
  position: absolute;
  inset: 0;
  border: none;
  background: radial-gradient(circle at center, rgba(7, 9, 14, 0.34) 0%, rgba(7, 9, 14, 0.65) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--gold-bright);
  transition: opacity 0.3s ease, background 0.3s ease;
  z-index: 4;
}

.trailer-stage.playing .trailer-play-overlay {
  opacity: 0;
  pointer-events: none;
}

.trailer-play-overlay:hover {
  background: radial-gradient(circle at center, rgba(7, 9, 14, 0.18) 0%, rgba(7, 9, 14, 0.52) 100%);
}

.trailer-play-circle {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--crimson-bright), #7d1212);
  border: 2px solid rgba(244, 217, 147, 0.85);
  color: #fff;
  font-size: 1.85rem;
  padding-left: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 36px rgba(184, 37, 37, 0.7), 0 0 0 8px rgba(244, 217, 147, 0.14);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.trailer-play-overlay:hover .trailer-play-circle {
  transform: scale(1.08);
  box-shadow: 0 16px 44px rgba(217, 54, 54, 0.85), 0 0 0 12px rgba(244, 217, 147, 0.22);
}

.trailer-play-badge {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(10, 13, 20, 0.88);
  border: 1px solid var(--gold-border-strong);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
}

.trailer-chapters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(12, 15, 23, 0.96);
  border-top: 1px solid var(--gold-border);
  justify-content: center;
}

.trailer-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(22, 27, 39, 0.92);
  border: 1px solid rgba(215, 173, 92, 0.22);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.trailer-chip:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  transform: translateY(-1px);
}

.trailer-chip.active {
  background: linear-gradient(135deg, rgba(184, 37, 37, 0.85), rgba(125, 20, 20, 0.92));
  border-color: var(--gold-bright);
  color: #fff;
  box-shadow: 0 4px 14px var(--crimson-glow);
}

.trailer-chip-time {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--gold-bright);
}

@media (max-width: 780px) {
  .trailer-play-circle {
    width: 64px;
    height: 64px;
    font-size: 1.4rem;
  }
  .trailer-chapters {
    padding: 12px;
    gap: 8px;
  }
  .trailer-chip {
    padding: 6px 11px;
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
