@font-face {
  font-family: 'FZ OptiRadiant';
  src: url('../FZ-SG OPTIRadiant.ttf') format('truetype'),
       url('assets/fonts/fz-sg-optiradiant.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --abyss: #030505;
  --ink: #060909;
  --crypt: #0b100f;
  --lacquer: #110908;
  --jade-shadow: #0d1917;
  --blood-dark: #4c0d0a;
  --blood: #961b15;
  --crimson: #c93026;
  --ember: #e0533c;
  --gold: #bd955b;
  --gold-bright: #dfc08a;
  --gold-dim: #7c613b;
  --cream: #e8dfd0;
  --bone: #cfc4b0;
  --ash: #9a9180;
  --font-display: 'FZ OptiRadiant', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Spectral', 'Cormorant Garamond', Georgia, serif;
  --font-serif-alt: 'Cormorant Garamond', Georgia, serif;
  --font-sc: 'Cormorant SC', 'Cormorant Garamond', serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  background: var(--abyss);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
  selection-background-color: var(--blood);
}

::selection {
  background: var(--blood);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* Horror atmospheric overlays */
.horror-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  background:
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(2, 4, 4, 0.72) 100%),
    linear-gradient(180deg, rgba(4, 6, 6, 0.55) 0%, transparent 14%, transparent 86%, rgba(4, 6, 6, 0.7) 100%);
}

.horror-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 39;
  opacity: 0.045;
  background-image: radial-gradient(rgba(232, 223, 208, 0.75) 1px, transparent 0);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

.cursor-orbit {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 48, 38, 0.55);
  box-shadow: 0 0 28px rgba(150, 27, 21, 0.45), inset 0 0 12px rgba(189, 149, 91, 0.25);
  border-radius: 50%;
  pointer-events: none;
  z-index: 100;
  left: -100px;
  top: -100px;
  transition: width 0.2s, height 0.2s;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blood), var(--crimson), var(--gold));
  box-shadow: 0 0 14px var(--crimson);
  z-index: 60;
}

/* Typography */
h1, h2, h3, .chapter-mark, #film-menu a, .footer-word, .relic-seal, .principles span {
  font-family: var(--font-display);
  font-weight: 400;
  font-synthesis: none;
}

blockquote {
  font-family: var(--font-serif-alt);
  font-weight: 500;
}

.eyebrow {
  font-family: var(--font-sc);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3.2px;
  color: var(--gold);
  line-height: 1.8;
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* Header & Navigation */
header {
  position: fixed;
  z-index: 50;
  top: 0;
  width: 100%;
  padding: 20px 4.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(4, 6, 6, 0.92) 0%, rgba(4, 6, 6, 0.55) 70%, transparent 100%);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(189, 149, 91, 0.16);
}

.brand {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--cream);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
}

.brand span {
  display: block;
  font-family: var(--font-sc);
  font-size: 9.5px;
  letter-spacing: 4.5px;
  color: var(--crimson);
  margin-top: 2px;
}

nav {
  display: flex;
  gap: 32px;
  font-family: var(--font-sc);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

nav a {
  position: relative;
  padding: 6px 0;
  color: var(--bone);
  transition: color 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--crimson);
  transition: width 0.3s;
}

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

nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  border: 1px solid rgba(189, 149, 91, 0.35);
  background: rgba(12, 8, 8, 0.75);
  padding: 8px 16px;
  font-family: var(--font-sc);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  display: flex;
  gap: 16px;
  align-items: center;
  z-index: 55;
  transition: 0.3s;
}

.menu-toggle:hover {
  border-color: var(--crimson);
  background: rgba(150, 27, 21, 0.35);
}

.menu-toggle span {
  font-size: 18px;
  color: var(--gold);
}

/* Fullscreen Ritual Menu */
#film-menu {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 25%, rgba(150, 27, 21, 0.32), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(189, 149, 91, 0.12), transparent 55%),
    #050707;
  z-index: 52;
  padding: 130px 9% 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#film-menu[hidden] {
  display: none;
}

.menu-backdrop-seal {
  position: absolute;
  right: 6%;
  bottom: 6%;
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 320px);
  color: rgba(150, 27, 21, 0.08);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

#film-menu .eyebrow {
  color: var(--crimson);
  margin-bottom: 24px;
}

#film-menu a {
  display: flex;
  align-items: baseline;
  gap: 28px;
  font-size: clamp(28px, 4.4vw, 58px);
  padding: 16px 0;
  border-bottom: 1px solid rgba(189, 149, 91, 0.2);
  color: var(--cream);
  transition: padding-left 0.35s, color 0.35s;
}

#film-menu a small {
  font-family: var(--font-sc);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold);
  min-width: 110px;
}

#film-menu a:hover {
  padding-left: 28px;
  color: var(--crimson);
}

/* Hero Section */
.hero {
  height: 100svh;
  min-height: 780px;
  max-height: 1300px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(150, 27, 21, 0.4);
}

.heroart, .shade, .hero-mist {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.heroart {
  object-fit: cover;
  object-position: 50% 32%;
  filter: saturate(0.72) contrast(1.12) brightness(0.62);
  animation: cinema-drift 22s ease-in-out infinite alternate;
}

.shade {
  background:
    radial-gradient(ellipse at 50% 35%, transparent 15%, rgba(4, 6, 6, 0.82) 90%),
    linear-gradient(0deg, #050707 4%, rgba(5, 7, 7, 0.72) 42%, rgba(8, 4, 4, 0.35) 75%, rgba(4, 6, 6, 0.88) 100%),
    linear-gradient(90deg, rgba(60, 10, 8, 0.45), transparent 50%, rgba(5, 16, 15, 0.45));
}

.hero-mist {
  background:
    radial-gradient(ellipse 60% 35% at 50% 85%, rgba(150, 27, 21, 0.25), transparent 70%);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 6% 96px;
  text-align: center;
}

.hero-meta {
  position: absolute;
  top: 108px;
  left: 4.5%;
  right: 4.5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 2.5px;
  line-height: 1.7;
  color: var(--bone);
}

.hero-meta strong {
  color: var(--gold-bright);
  font-weight: 600;
}

.hero-meta span:first-child {
  text-align: left;
}

.hero-meta span:last-child {
  text-align: right;
}

.hero-seal-badge {
  border: 1px solid rgba(201, 48, 38, 0.6);
  background: rgba(76, 13, 10, 0.45);
  color: #f0c9b8;
  padding: 6px 18px;
  font-size: 11px;
  letter-spacing: 3.5px;
  box-shadow: 0 0 25px rgba(150, 27, 21, 0.35);
}

.hero-kicker {
  font-family: var(--font-sc);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--gold-bright);
  margin: 0 0 18px;
  text-shadow: 0 2px 12px #000;
}

h1 {
  font-size: clamp(72px, 11.4vw, 172px);
  line-height: 1.04;
  letter-spacing: 1px;
  margin: 0;
  color: #efe4ce;
  text-shadow:
    0 6px 35px rgba(0, 0, 0, 0.95),
    0 0 75px rgba(150, 27, 21, 0.55),
    0 0 18px rgba(189, 149, 91, 0.25);
}

h1 > span {
  display: block;
}

h1 > span:last-child {
  padding-left: 26px;
  color: #e4cfa8;
}

h1 sup {
  display: inline-block;
  vertical-align: top;
  font-family: var(--font-sc);
  font-size: 15px;
  font-weight: 700;
  color: var(--crimson);
  letter-spacing: 2px;
  margin: 14px 0 0 14px;
  writing-mode: vertical-rl;
  border: 1px solid rgba(201, 48, 38, 0.6);
  padding: 8px 4px;
  background: rgba(40, 6, 5, 0.7);
}

.hero-sub {
  max-width: 690px;
  margin: 22px auto 0;
  font-family: var(--font-serif-alt);
  font-style: italic;
  font-size: clamp(16px, 1.45vw, 21px);
  line-height: 1.65;
  color: #d6cbb8;
  text-shadow: 0 2px 14px #000;
}

.round-link {
  position: absolute;
  right: 4.5%;
  bottom: 92px;
  border: 1px solid rgba(189, 149, 91, 0.55);
  background: rgba(15, 8, 8, 0.65);
  border-radius: 50%;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: var(--gold-bright);
  transition: 0.35s;
}

.round-link:hover {
  background: var(--blood);
  color: #fff;
  transform: rotate(45deg);
  border-color: var(--crimson);
  box-shadow: 0 0 30px rgba(201, 48, 38, 0.5);
}

.hero-bottom {
  position: absolute;
  bottom: 24px;
  left: 4.5%;
  right: 4.5%;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sc);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.6px;
  color: var(--ash);
}

.hero-bottom a {
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(189, 149, 91, 0.45);
  padding-bottom: 2px;
}

/* Blood Ritual Ticker */
.ticker {
  background: linear-gradient(90deg, #2b0806, #4a100c 50%, #2b0806);
  color: #ead6bc;
  overflow: hidden;
  padding: 15px 0;
  font-family: var(--font-sc);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3.5px;
  border-block: 1px solid rgba(189, 149, 91, 0.32);
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.6);
}

.ticker > div {
  white-space: nowrap;
  width: max-content;
  animation: marquee 32s linear infinite;
}

/* Common Section Styles */
.section {
  padding: 120px 7%;
  position: relative;
}

h2 {
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1.28;
  margin: 14px 0 30px;
  letter-spacing: 0;
  color: var(--cream);
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.8);
}

h2 em {
  font-style: normal;
  color: var(--crimson);
  text-shadow: 0 0 35px rgba(150, 27, 21, 0.45);
}

.small {
  font-family: var(--font-sc);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.4px;
  color: var(--gold);
  line-height: 1.9;
  text-transform: uppercase;
}

/* 01. Story Section */
.story {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 8%;
  align-items: center;
  background:
    radial-gradient(ellipse at 15% 30%, rgba(120, 20, 15, 0.16), transparent 60%),
    radial-gradient(ellipse at 85% 75%, rgba(16, 40, 35, 0.3), transparent 60%),
    #070a0a;
  border-bottom: 1px solid rgba(189, 149, 91, 0.15);
}

.story-left {
  position: relative;
}

.chapter-mark {
  position: absolute;
  top: -35px;
  right: 5%;
  font-size: clamp(110px, 13vw, 180px);
  color: var(--crimson);
  opacity: 0.14;
  line-height: 1;
  pointer-events: none;
}

.story-talisman {
  margin-top: 28px;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 20px;
  border-left: 3px solid var(--crimson);
  background: rgba(76, 13, 10, 0.22);
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 2.2px;
  color: #dbbda0;
}

.prose p {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 2.05;
  color: var(--bone);
  margin: 0 0 24px;
}

.prose p strong {
  color: var(--gold-bright);
  font-weight: 600;
}

.prose p em {
  color: #e87a6c;
  font-style: italic;
}

.lead-drop::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 0.85;
  padding: 6px 14px 4px 0;
  color: var(--crimson);
  text-shadow: 0 0 20px rgba(150, 27, 21, 0.5);
}

/* Wide Feature Banner */
.wide-image {
  height: 82svh;
  min-height: 540px;
  position: relative;
  overflow: hidden;
  border-block: 1px solid rgba(189, 149, 91, 0.22);
}

.wide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.1);
}

.wide-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(5, 7, 7, 0.94) 5%, rgba(5, 7, 7, 0.35) 55%, rgba(5, 7, 7, 0.7) 100%),
    radial-gradient(circle at 75% 45%, transparent 30%, rgba(4, 6, 6, 0.75) 100%);
}

.wide-caption {
  position: absolute;
  bottom: 9%;
  left: 7%;
  z-index: 2;
  max-width: 780px;
}

/* 02. Characters Section */
.characters {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(110, 18, 14, 0.16), transparent 55%),
    linear-gradient(180deg, #090d0d, #050808);
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
}

.section-title > p {
  font-family: var(--font-serif-alt);
  font-style: italic;
  font-size: 18px;
  color: var(--ash);
  margin-bottom: 35px;
}

.character-layout {
  display: grid;
  grid-template-columns: 0.62fr 1.28fr 1.1fr;
  gap: 4.5%;
  margin-top: 40px;
  align-items: center;
  transition: grid-template-columns 0.45s cubic-bezier(0.22, 1, 0.36, 1), gap 0.45s ease;
}

.character-layout.is-wide-view {
  grid-template-columns: 0.46fr 1.72fr 0.82fr;
  gap: 3.2%;
}

.portrait-stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.char-view-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-top: 6px;
}

.char-view-btn,
.char-text-zoom {
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 4px 0;
  color: var(--ash);
  font-family: var(--font-sc);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.char-view-btn:hover,
.char-text-zoom:hover {
  color: var(--cream);
  border-bottom-color: rgba(189, 149, 91, 0.55);
}

.char-view-btn.active {
  color: var(--gold-bright);
  border-bottom-color: var(--crimson);
}

.char-text-zoom {
  color: rgba(212, 169, 98, 0.82);
}

.char-link-sep {
  color: rgba(189, 149, 91, 0.32);
  font-family: var(--font-serif-alt);
  font-size: 13px;
  user-select: none;
}

.tabs {
  display: flex;
  flex-direction: column;
}

.tabs button {
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(189, 149, 91, 0.2);
  text-align: left;
  padding: 20px 10px;
  color: var(--ash);
  font-family: var(--font-display);
  font-size: 23px;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.tabs button::after {
  content: '✦';
  font-size: 13px;
  opacity: 0;
  color: var(--crimson);
  transition: 0.3s;
}

.tabs button:hover {
  color: var(--cream);
  padding-left: 16px;
}

.tabs button[aria-selected="true"] {
  color: var(--gold-bright);
  padding-left: 22px;
  border-color: var(--crimson);
  background: linear-gradient(90deg, rgba(150, 27, 21, 0.22), transparent);
}

.tabs button[aria-selected="true"]::after {
  opacity: 1;
}

.portrait {
  height: 590px;
  position: relative;
  overflow: hidden;
  background: #0d1010;
  border: 1px solid rgba(189, 149, 91, 0.42);
  box-shadow:
    18px 18px 0 #120808,
    19px 19px 0 rgba(189, 149, 91, 0.32),
    0 25px 60px rgba(0, 0, 0, 0.85);
  cursor: zoom-in;
  transition: height 0.4s ease, background 0.4s ease;
}

.character-layout.is-wide-view .portrait {
  height: auto;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 50% 50%, #58585c 0%, #37373b 100%);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.78) contrast(1.06);
  transition: transform 0.6s, opacity 0.3s, filter 0.3s;
}

.character-layout.is-wide-view .portrait img {
  object-fit: contain;
  object-position: center center;
  filter: saturate(0.96) contrast(1.03);
}

.portrait-seal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 62px;
  background: rgba(122, 20, 15, 0.86);
  border: 1px solid #e07a68;
  color: #f6dfd6;
  font-family: var(--font-display);
  font-size: 22px;
  writing-mode: vertical-rl;
  display: grid;
  place-items: center;
  letter-spacing: 3px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  z-index: 2;
}

.character-layout article h3 {
  font-size: clamp(38px, 4vw, 56px);
  margin: 12px 0 18px;
  color: var(--cream);
}

.character-layout article p {
  font-size: 17.5px;
  line-height: 1.95;
  color: var(--bone);
}

.character-layout article blockquote {
  margin: 28px 0 0;
  color: var(--gold-bright);
  font-size: 22px;
  font-style: italic;
  line-height: 1.65;
  border-left: 2px solid var(--crimson);
  padding: 8px 0 8px 22px;
  background: linear-gradient(90deg, rgba(150, 27, 21, 0.14), transparent);
}

/* 03. World Section */
.world {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(17, 38, 34, 0.45), transparent 65%),
    #070c0b;
  border-top: 1px solid rgba(189, 149, 91, 0.16);
}

.places {
  display: flex;
  gap: 16px;
  margin-top: 46px;
}

.place {
  flex: 1;
  padding: 0;
  border: 1px solid rgba(189, 149, 91, 0.25);
  background: #050808;
  text-align: left;
  transition: flex 0.65s ease, border-color 0.35s;
  overflow: hidden;
  position: relative;
}

.place:hover, .place:focus, .place.active {
  flex: 1.65;
  border-color: var(--crimson);
}

.place img {
  width: 100%;
  height: 410px;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.8);
  transition: 0.6s;
}

.place:hover img, .place.active img {
  filter: saturate(0.95) brightness(1);
  transform: scale(1.03);
}

.place span {
  display: block;
  padding: 20px 18px;
  font-family: var(--font-sc);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--gold-bright);
  background: linear-gradient(90deg, rgba(76, 13, 10, 0.45), transparent);
}

.world-detail {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  border-top: 1px solid rgba(189, 149, 91, 0.28);
  margin-top: 28px;
  padding-top: 28px;
  gap: 40px;
  align-items: baseline;
}

.world-detail h3 {
  font-size: 34px;
  margin: 0;
  color: var(--gold-bright);
}

.world-detail p {
  font-size: 18px;
  line-height: 1.95;
  color: var(--bone);
  margin: 0;
}

/* ==========================================================================
   04. TỨ ĐẠI PHÁP KHÍ (#relics) — BESPOKE HORROR ALTAR & SACRED SHOWCASE
   ========================================================================== */
.relics {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 35% at 50% 8%, rgba(150, 27, 21, 0.26), transparent 65%),
    radial-gradient(ellipse 60% 45% at 50% 55%, rgba(189, 149, 91, 0.08), transparent 70%),
    linear-gradient(180deg, #050707 0%, #090606 48%, #050707 100%);
  padding: 140px 6%;
  border-block: 1px solid rgba(189, 149, 91, 0.28);
}

.relic-ambient-bg {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, 92vw);
  height: min(760px, 92vw);
  color: rgba(189, 149, 91, 0.09);
  pointer-events: none;
  z-index: 0;
}

.bagua-watermark {
  width: 100%;
  height: 100%;
  animation: slow-spin 90s linear infinite;
}

@keyframes slow-spin {
  to { transform: rotate(360deg); }
}

.relic-heading {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto 75px;
}

.talisman-crest {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 22px;
  border: 1px solid rgba(201, 48, 38, 0.55);
  background: linear-gradient(90deg, rgba(76, 13, 10, 0.6), rgba(30, 8, 7, 0.85), rgba(76, 13, 10, 0.6));
  box-shadow: 0 0 35px rgba(150, 27, 21, 0.4);
  margin-bottom: 24px;
}

.talisman-crest span {
  font-family: var(--font-display);
  color: var(--crimson);
  font-size: 16px;
  letter-spacing: 2px;
}

.talisman-crest strong {
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold-bright);
}

.talisman-crest i {
  width: 28px;
  height: 1px;
  background: rgba(189, 149, 91, 0.5);
}

.relic-intro {
  font-size: 18px;
  color: var(--bone);
  max-width: 720px;
  margin: 0 auto 36px;
}

.relic-intro strong {
  color: var(--gold-bright);
  font-weight: 500;
}

.relic-filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.relic-filter {
  background: rgba(12, 10, 10, 0.8);
  border: 1px solid rgba(189, 149, 91, 0.3);
  padding: 10px 18px;
  font-family: var(--font-sc);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--ash);
  transition: 0.3s;
}

.relic-filter:hover, .relic-filter.active {
  background: linear-gradient(135deg, rgba(150, 27, 21, 0.65), rgba(65, 12, 10, 0.85));
  border-color: var(--gold-bright);
  color: var(--cream);
  box-shadow: 0 0 22px rgba(150, 27, 21, 0.45);
}

.relic-shrine-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 54px;
  max-width: 1360px;
  margin: 0 auto;
}

.relic-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 490px;
  background: #040505;
  border: 1px solid rgba(189, 149, 91, 0.35);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.92),
    inset 0 0 60px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  isolation: isolate;
  --mx: 50%;
  --my: 50%;
  transition: border-color 0.45s, transform 0.45s, box-shadow 0.45s;
}

.relic-card[hidden] {
  display: none;
}

.relic-card:hover {
  border-color: rgba(224, 83, 60, 0.75);
  box-shadow:
    0 35px 95px rgba(0, 0, 0, 0.95),
    0 0 45px rgba(150, 27, 21, 0.3),
    inset 0 0 40px rgba(150, 27, 21, 0.15);
}

/* Full-bleed artwork background inside each shrine card */
.relic-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.relic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s;
  filter: brightness(0.96) contrast(1.06);
}

/* Align artwork so the physical relic is always framed in the open side */
.relic-card.relic-left .relic-media img {
  object-position: left center;
}

.relic-card.relic-right .relic-media img {
  object-position: right center;
}

.relic-card:hover .relic-media img {
  transform: scale(1.045);
  filter: brightness(1.12) contrast(1.1);
}

/* Interactive cursor torchlight that illuminates the dark bronze Cửu Đỉnh carvings */
.relic-torch {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    rgba(223, 192, 138, 0.22),
    rgba(201, 48, 38, 0.12) 45%,
    transparent 75%
  );
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s;
}

.relic-card:hover .relic-torch {
  opacity: 1;
}

/* Subtle glowing embers overlay */
.relic-embers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 18% 72%, rgba(224, 83, 60, 0.85), transparent),
    radial-gradient(2.5px 2.5px at 36% 28%, rgba(223, 192, 138, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 64% 82%, rgba(224, 83, 60, 0.75), transparent),
    radial-gradient(2px 2px at 82% 24%, rgba(223, 192, 138, 0.65), transparent);
  opacity: 0.65;
  animation: ember-float 7s ease-in-out infinite alternate;
}

@keyframes ember-float {
  from { transform: translateY(4px); opacity: 0.45; }
  to { transform: translateY(-8px); opacity: 0.9; }
}

/* Ornate Vietnamese lacquer & bronze corner brackets */
.relic-frame-ornament {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(189, 149, 91, 0.22);
  pointer-events: none;
  z-index: 4;
}

.relic-frame-ornament .corner {
  position: absolute;
  width: 26px;
  height: 26px;
  border-color: var(--gold-bright);
  border-style: solid;
  transition: width 0.35s, height 0.35s, border-color 0.35s;
}

.relic-card:hover .relic-frame-ornament .corner {
  width: 36px;
  height: 36px;
  border-color: var(--crimson);
}

.corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

/* Dossier overlay positioned on the opposite side of the relic object */
.relic-dossier {
  position: relative;
  z-index: 3;
  padding: 52px 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.relic-card.relic-left .relic-dossier {
  grid-column: 2;
  background: linear-gradient(270deg, rgba(5, 7, 7, 0.95) 0%, rgba(7, 9, 9, 0.84) 68%, transparent 100%);
}

.relic-card.relic-right {
  grid-template-columns: 1fr 1.2fr;
}

.relic-card.relic-right .relic-dossier {
  grid-column: 1;
  background: linear-gradient(90deg, rgba(5, 7, 7, 0.95) 0%, rgba(7, 9, 9, 0.84) 68%, transparent 100%);
}

.relic-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.relic-number {
  font-family: var(--font-sc);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--crimson);
  border: 1px solid rgba(201, 48, 38, 0.5);
  padding: 4px 12px;
  background: rgba(76, 13, 10, 0.35);
}

.relic-seal {
  display: grid;
  place-items: center;
  width: 52px;
  height: 64px;
  border: 1.5px solid #c93d2b;
  color: #f4d7c8;
  background:
    radial-gradient(circle at 30% 30%, rgba(180, 32, 24, 0.9), rgba(75, 12, 10, 0.92));
  font-size: 24px;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
  transform: rotate(3deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 18px rgba(201, 48, 38, 0.35);
}

.relic-dossier h3 {
  font-size: clamp(34px, 3.6vw, 54px);
  margin: 4px 0 6px;
  color: #f1e6d2;
  line-height: 1.15;
}

.relic-subtitle {
  font-family: var(--font-serif-alt);
  font-style: italic;
  font-size: 18px;
  color: var(--gold-bright);
  margin: 0 0 18px;
}

.relic-lore {
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--bone);
  margin: 0 0 24px;
}

.relic-lore strong {
  color: var(--cream);
}

.relic-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 26px;
  padding: 14px 0;
  border-block: 1px solid rgba(189, 149, 91, 0.24);
}

.relic-specs dt {
  font-family: var(--font-sc);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ash);
  margin-bottom: 4px;
}

.relic-specs dd {
  margin: 0;
  font-family: var(--font-serif-alt);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--gold-bright);
}

.relic-inspect-btn {
  align-self: flex-start;
  background: rgba(76, 13, 10, 0.45);
  border: 1px solid rgba(189, 149, 91, 0.5);
  padding: 12px 22px;
  font-family: var(--font-sc);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--cream);
  transition: 0.3s;
}

.relic-inspect-btn:hover {
  background: var(--blood);
  border-color: var(--gold-bright);
  box-shadow: 0 0 25px rgba(201, 48, 38, 0.5);
}

/* Quote & Four Principles Section */
.quote {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(120, 20, 15, 0.45), transparent 72%),
    #0c0707;
  border-bottom: 1px solid rgba(189, 149, 91, 0.25);
  padding-top: 135px;
  padding-bottom: 135px;
}

.quote blockquote {
  font-size: clamp(28px, 3.8vw, 56px);
  line-height: 1.5;
  margin: 32px auto;
  max-width: 980px;
  color: var(--cream);
}

.quote em {
  color: var(--gold-bright);
}

.principles {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 55px;
  margin-top: 56px;
}

.principle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 170px;
}

.principles span {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 48, 38, 0.65);
  background: linear-gradient(145deg, rgba(95, 16, 12, 0.55), rgba(20, 8, 8, 0.85));
  color: var(--gold-bright);
  font-size: 26px;
  transform: rotate(-3deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), inset 0 0 18px rgba(201, 48, 38, 0.25);
  transition: transform 0.3s, border-color 0.3s;
}

.principle-item:hover span {
  transform: rotate(0deg) scale(1.07);
  border-color: var(--gold-bright);
}

.principle-item small {
  font-family: var(--font-serif-alt);
  font-style: italic;
  font-size: 15px;
  color: var(--bone);
  line-height: 1.4;
}

/* ==========================================================================
   05. STILL FRAME GALLERY (#gallery)
   ========================================================================== */
#gallery {
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(16, 32, 29, 0.35), transparent 65%),
    #050808;
}

.gallery-header, #gallery > .caption {
  margin-left: 7%;
  margin-right: 7%;
}

.gallery-sub {
  font-family: var(--font-serif-alt);
  font-size: 18px;
  color: var(--bone);
  margin: -12px 0 28px;
}

.gallery-sub code {
  font-family: var(--font-sc);
  color: var(--gold-bright);
  background: rgba(189, 149, 91, 0.14);
  padding: 2px 8px;
  border: 1px solid rgba(189, 149, 91, 0.3);
}

.gallery-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.layout-toggle, .slideshow {
  background: rgba(18, 12, 12, 0.8);
  border: 1px solid rgba(189, 149, 91, 0.45);
  padding: 13px 22px;
  font-family: var(--font-sc);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--cream);
  transition: 0.3s;
}

.slideshow {
  background: rgba(150, 27, 21, 0.45);
  border-color: var(--crimson);
}

.layout-toggle:hover, .slideshow:hover {
  background: var(--blood);
  border-color: var(--gold-bright);
  box-shadow: 0 0 22px rgba(201, 48, 38, 0.45);
}

.gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 28px;
  padding: 20px 7% 40px;
  scrollbar-color: var(--crimson) #0e1413;
}

.gallery.grid-mode {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow-x: visible;
  gap: 26px;
}

.gallery button {
  flex: 0 0 62vw;
  max-width: 920px;
  scroll-snap-align: center;
  padding: 0;
  border: 1px solid rgba(189, 149, 91, 0.28);
  background: #080b0b;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
}

.gallery.grid-mode button {
  flex: initial;
  max-width: none;
}

.gallery button:hover {
  border-color: var(--crimson);
  transform: translateY(-4px);
}

.frame-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020404;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.5s;
}

.gallery button:hover img {
  transform: scale(1.04);
}

.frame-meta {
  padding: 18px 22px 20px;
  background: linear-gradient(180deg, #090d0d, #050707);
  border-top: 1px solid rgba(189, 149, 91, 0.18);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.frame-meta span {
  font-family: var(--font-sc);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.4px;
  color: var(--crimson);
}

.frame-meta strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--cream);
}

.frame-meta small {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ash);
}

.caption {
  margin-top: 22px;
}

/* Project Outro & Footer */
.project {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(150, 27, 21, 0.25), transparent 70%),
    #060909;
  border-top: 1px solid rgba(189, 149, 91, 0.22);
}

.facts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 70px;
  margin: 42px 0;
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--ash);
}

.facts-logos {
  align-items: center;
  gap: 88px;
  margin: 48px auto 36px;
  padding-bottom: 36px;
  max-width: 860px;
  border-bottom: 1px solid rgba(189, 149, 91, 0.2);
}

.fact-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fact-logo {
  height: 36px;
  width: auto;
  display: block;
  margin-top: 14px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.fact-logo:hover {
  transform: translateY(-2px);
}

.facts strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--gold-bright);
  margin-top: 12px;
  font-size: 22px;
  letter-spacing: 1px;
}

.button {
  border: 1px solid var(--gold);
  background: rgba(76, 13, 10, 0.35);
  display: inline-flex;
  gap: 24px;
  align-items: center;
  padding: 16px 30px;
  font-family: var(--font-sc);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  transition: 0.3s;
}

.button:hover {
  background: var(--blood);
  border-color: var(--gold-bright);
  color: #fff;
  box-shadow: 0 0 28px rgba(201, 48, 38, 0.5);
}

footer {
  background: #040606;
  border-top: 1px solid rgba(189, 149, 91, 0.24);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 40px 5% 0;
}

footer p, footer > span {
  font-family: var(--font-sc);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--ash);
}

.footer-word {
  color: rgba(189, 149, 91, 0.22);
  font-size: clamp(42px, 11vw, 175px);
  line-height: 1.12;
  width: 100%;
  text-align: center;
  margin-top: 28px;
  border-top: 1px solid rgba(189, 149, 91, 0.16);
  padding: 24px 0 18px;
  text-shadow: 0 0 50px rgba(150, 27, 21, 0.25);
}

/* ==========================================================================
   LIGHTBOX DIALOG (STILL FRAMES & PHÁP KHÍ INSPECTION)
   ========================================================================== */
dialog#lightbox {
  border: 1px solid rgba(189, 149, 91, 0.55);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(90, 15, 12, 0.28), transparent 70%),
    #040606;
  color: var(--cream);
  padding: 20px 28px 24px;
  width: min(95vw, 1500px);
  max-height: 95vh;
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.95);
}

dialog::backdrop {
  background: rgba(2, 4, 4, 0.92);
  backdrop-filter: blur(12px);
}

.lightbox-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(189, 149, 91, 0.22);
}

.lightbox-tag {
  font-family: var(--font-sc);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--crimson);
}

.close {
  background: rgba(76, 13, 10, 0.45);
  border: 1px solid rgba(189, 149, 91, 0.4);
  padding: 7px 16px;
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 2px;
}

.close:hover {
  background: var(--blood);
}

.lightbox-stage {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0 12px;
}

.nav-arrow {
  background: rgba(14, 18, 18, 0.85);
  border: 1px solid rgba(189, 149, 91, 0.4);
  width: 48px;
  height: 48px;
  font-size: 20px;
  transition: 0.25s;
}

.nav-arrow:hover {
  background: var(--blood);
  border-color: var(--gold-bright);
}

.lightbox-figure {
  margin: 0;
  text-align: center;
}

.lightbox-figure img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 64vh;
  object-fit: contain;
  border: 1px solid rgba(189, 149, 91, 0.3);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.85);
}

.lightbox-figure figcaption {
  margin-top: 14px;
}

.lightbox-figure figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  color: var(--gold-bright);
}

.lightbox-figure figcaption p {
  margin: 4px auto 0;
  font-size: 15.5px;
  color: var(--bone);
  max-width: 780px;
}

.slide-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(189, 149, 91, 0.2);
  flex-wrap: wrap;
}

.slide-count {
  font-family: var(--font-sc);
  font-size: 12px;
  letter-spacing: 2.5px;
  color: var(--gold-bright);
}

.play-toggle {
  background: rgba(76, 13, 10, 0.4);
  border: 1px solid rgba(189, 149, 91, 0.4);
  padding: 6px 14px;
  font-family: var(--font-sc);
  font-size: 10.5px;
  letter-spacing: 2px;
}

.thumb-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 4px;
}

.thumb-strip button {
  padding: 0;
  border: 1px solid rgba(189, 149, 91, 0.25);
  background: #000;
  width: 62px;
  height: 36px;
  flex: 0 0 auto;
  opacity: 0.5;
  transition: 0.25s;
}

.thumb-strip button.active, .thumb-strip button:hover {
  opacity: 1;
  border-color: var(--crimson);
  transform: scale(1.06);
}

.thumb-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scroll Reveal & Keyframes */
.reveal {
  opacity: 1;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.js .reveal:not(.shown) {
  opacity: 0;
  transform: translateY(28px);
}

@keyframes cinema-drift {
  from { transform: scale(1); }
  to { transform: scale(1.08) translateY(1%); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 960px) {
  nav {
    display: none;
  }
  .story, .character-layout, .character-layout.is-wide-view, .world-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .relic-card, .relic-card.relic-right {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .relic-media {
    position: relative;
    aspect-ratio: 16 / 10;
  }
  .relic-card.relic-left .relic-dossier,
  .relic-card.relic-right .relic-dossier {
    grid-column: 1;
    background: #080b0b;
    padding: 32px 26px;
  }
  .gallery.grid-mode {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .hero-meta {
    top: 88px;
    font-size: 9px;
  }
  .hero-seal-badge {
    display: none;
  }
  h1 {
    font-size: 18.5vw;
  }
  h1 > span:last-child {
    padding-left: 0;
  }
  .hero-sub {
    font-size: 15px;
  }
  .round-link {
    display: none;
  }
  .section {
    padding: 80px 6%;
  }
  .places {
    flex-direction: column;
  }
  .place img {
    height: 250px;
  }
  .relic-specs {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .gallery button {
    flex-basis: 86vw;
  }
  .gallery.grid-mode {
    grid-template-columns: 1fr;
  }
  .cursor-orbit {
    display: none;
  }
  .lightbox-stage {
    grid-template-columns: 1fr;
  }
  .nav-arrow {
    display: none;
  }
}

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


/* ==========================================================================
   HEADER DROPDOWN & HỒ SƠ KỊCH BẢN / SƠ ĐỒ QUAN HỆ / TIMELINE (#script)
   ========================================================================== */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-drop-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-drop-trigger span {
  font-size: 10px;
  color: var(--crimson);
  transition: transform 0.25s;
}

.nav-dropdown:hover .nav-drop-trigger span,
.nav-dropdown.open .nav-drop-trigger span {
  transform: rotate(180deg);
}

.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 320px;
  padding: 12px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(150, 27, 21, 0.35), transparent 65%),
    rgba(6, 9, 9, 0.98);
  border: 1px solid rgba(189, 149, 91, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(150, 27, 21, 0.3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 90;
}

.nav-dropdown:hover .nav-drop-menu,
.nav-dropdown:focus-within .nav-drop-menu,
.nav-dropdown.open .nav-drop-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-menu button {
  background: rgba(16, 12, 12, 0.7);
  border: 1px solid rgba(189, 149, 91, 0.18);
  padding: 10px 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: 0.25s;
}

.nav-drop-menu button:hover {
  background: linear-gradient(90deg, rgba(150, 27, 21, 0.55), rgba(35, 10, 10, 0.8));
  border-color: var(--crimson);
  padding-left: 18px;
}

.nav-drop-menu small {
  font-family: var(--font-sc);
  font-size: 9.5px;
  letter-spacing: 2px;
  color: var(--crimson);
}

.nav-drop-menu strong {
  font-family: var(--font-serif-alt);
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  text-transform: none;
  letter-spacing: 0.3px;
}

/* Script Hub Section */
.script-hub {
  background:
    radial-gradient(ellipse 65% 40% at 50% 0%, rgba(150, 27, 21, 0.22), transparent 65%),
    radial-gradient(ellipse 50% 50% at 15% 80%, rgba(189, 149, 91, 0.08), transparent 70%),
    linear-gradient(180deg, #060909 0%, #090606 50%, #060909 100%);
  border-bottom: 1px solid rgba(189, 149, 91, 0.22);
}

.script-hub-header {
  text-align: center;
  max-width: 960px;
  margin: 0 auto 48px;
}

.script-hub-sub {
  font-size: 18px;
  color: var(--bone);
  max-width: 760px;
  margin: -10px auto 34px;
}

.script-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.script-tab {
  background: rgba(12, 10, 10, 0.85);
  border: 1px solid rgba(189, 149, 91, 0.28);
  padding: 14px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: 0.3s;
}

.script-tab small {
  font-family: var(--font-sc);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--crimson);
}

.script-tab strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 19px;
  color: var(--bone);
  line-height: 1.25;
}

.script-tab:hover,
.script-tab.active {
  background: linear-gradient(135deg, rgba(150, 27, 21, 0.55), rgba(32, 9, 8, 0.92));
  border-color: var(--gold-bright);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 22px rgba(150, 27, 21, 0.38);
}

.script-tab.active strong {
  color: var(--cream);
}

.script-panel {
  max-width: 1320px;
  margin: 0 auto;
  animation: fade-panel 0.4s ease;
}

.script-panel[hidden] {
  display: none;
}

@keyframes fade-panel {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tab 01: Opening Video & Long Tho Origins */
.opening-render-showcase {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  gap: 36px;
  align-items: center;
  background: rgba(8, 11, 11, 0.9);
  border: 1px solid rgba(189, 149, 91, 0.32);
  padding: 28px;
  margin-bottom: 34px;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.85);
}

.opening-video-box {
  position: relative;
  border: 1px solid rgba(201, 48, 38, 0.5);
  background: #000;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.opening-video-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(76, 13, 10, 0.88);
  border: 1px solid var(--gold);
  padding: 4px 12px;
  font-family: var(--font-sc);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--cream);
  pointer-events: none;
}

.opening-narrative h3 {
  font-size: clamp(26px, 2.8vw, 38px);
  margin: 6px 0 14px;
  color: var(--gold-bright);
}

.opening-narrative p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--bone);
  margin: 0 0 14px;
}

.opening-beats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
}

.opening-beats span {
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--cream);
  background: rgba(76, 13, 10, 0.32);
  border-left: 2px solid var(--crimson);
  padding: 7px 10px;
}

.origin-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.origin-card {
  background: linear-gradient(180deg, rgba(16, 12, 12, 0.92), rgba(7, 10, 10, 0.95));
  border: 1px solid rgba(189, 149, 91, 0.26);
  padding: 22px 20px;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}

.origin-card:hover {
  border-color: var(--crimson);
  transform: translateY(-3px);
}

.origin-tag {
  display: inline-block;
  font-family: var(--font-sc);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--crimson);
  margin-bottom: 8px;
}

.origin-card h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--gold-bright);
  margin: 0 0 10px;
  line-height: 1.25;
}

.origin-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--bone);
  margin: 0;
}

/* Act I Accordions */
.act1-breakdown {
  background: rgba(7, 10, 10, 0.85);
  border: 1px solid rgba(189, 149, 91, 0.25);
  padding: 28px;
}

.act1-header p {
  margin: 4px 0 18px;
  color: var(--ash);
  font-style: italic;
}

.act-accordions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.act-item {
  border: 1px solid rgba(189, 149, 91, 0.22);
  background: rgba(12, 15, 15, 0.85);
}

.act-item[open] {
  border-color: var(--crimson);
  background: linear-gradient(90deg, rgba(76, 13, 10, 0.24), rgba(10, 13, 13, 0.95));
}

.act-item summary {
  padding: 15px 20px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 165px 1fr auto;
  align-items: center;
  gap: 16px;
  list-style: none;
}

.act-item summary::-webkit-details-marker {
  display: none;
}

.act-code {
  font-family: var(--font-sc);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--crimson);
}

.act-item summary strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  color: var(--cream);
}

.act-place {
  font-family: var(--font-sc);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
}

.act-body {
  padding: 0 20px 18px 185px;
  color: var(--bone);
  font-size: 16px;
  line-height: 1.85;
}

.act-body p {
  margin: 0;
}

/* Tab 02: Interactive Character Relationship Diagram */
.relation-map-container {
  background:
    radial-gradient(circle at 50% 45%, rgba(150, 27, 21, 0.22), transparent 62%),
    rgba(7, 10, 10, 0.92);
  border: 1px solid rgba(189, 149, 91, 0.32);
  padding: 34px;
  margin-bottom: 30px;
}

.relation-header {
  text-align: center;
  margin-bottom: 28px;
}

.relation-header h3 {
  font-size: 34px;
  margin: 6px 0 0;
  color: var(--gold-bright);
}

.relation-diagram {
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: relative;
}

.rel-tier {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.rel-node {
  background: rgba(14, 18, 18, 0.92);
  border: 1px solid rgba(189, 149, 91, 0.32);
  padding: 18px 20px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: 0.3s;
}

.rel-node:hover,
.rel-node.active {
  border-color: var(--gold-bright);
  background: linear-gradient(135deg, rgba(150, 27, 21, 0.55), rgba(20, 12, 12, 0.95));
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.8), 0 0 24px rgba(201, 48, 38, 0.35);
}

.rel-node-core {
  border: 1.5px solid var(--crimson);
  background: linear-gradient(135deg, rgba(110, 18, 14, 0.6), rgba(15, 10, 10, 0.96));
}

.rel-seal {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 16px;
  color: #f3d2c4;
  border: 1px solid var(--crimson);
  background: rgba(120, 18, 14, 0.75);
  padding: 2px 6px;
}

.rel-role {
  font-family: var(--font-sc);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--crimson);
}

.rel-node strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 23px;
  color: var(--cream);
}

.rel-node small {
  font-size: 14px;
  color: var(--bone);
  line-height: 1.45;
}

.relation-detail-box {
  margin-top: 28px;
  padding: 24px 28px;
  border: 1px solid rgba(201, 48, 38, 0.5);
  background: linear-gradient(90deg, rgba(76, 13, 10, 0.32), rgba(8, 12, 12, 0.95));
}

.relation-detail-box h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  color: var(--gold-bright);
  margin: 4px 0 10px;
}

.relation-detail-box p {
  margin: 0 0 14px;
  color: var(--cream);
  font-size: 16px;
}

.rel-links-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  border-top: 1px solid rgba(189, 149, 91, 0.22);
  padding-top: 14px;
  font-size: 15px;
  color: var(--bone);
}

.rel-links-list strong {
  color: var(--gold-bright);
}

.factions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.faction-card {
  background: rgba(10, 14, 14, 0.9);
  border: 1px solid rgba(189, 149, 91, 0.25);
  padding: 20px;
}

.faction-card span {
  font-family: var(--font-sc);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--crimson);
}

.faction-card h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--gold-bright);
  margin: 6px 0 8px;
}

.faction-card p {
  margin: 0;
  font-size: 15px;
  color: var(--bone);
  line-height: 1.7;
}

/* Tab 03: Timeline Track */
.timeline-track {
  position: relative;
  padding-left: 36px;
  border-left: 2px solid rgba(201, 48, 38, 0.55);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-node {
  position: relative;
  background: rgba(10, 13, 13, 0.9);
  border: 1px solid rgba(189, 149, 91, 0.28);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.timeline-node::before {
  content: '✦';
  position: absolute;
  left: -47px;
  top: 24px;
  width: 20px;
  height: 20px;
  background: var(--blood);
  border: 1px solid var(--gold-bright);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--cream);
}

.tl-year {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold-bright);
  border-right: 1px solid rgba(189, 149, 91, 0.22);
  padding-right: 16px;
}

.tl-content h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--cream);
  margin: 4px 0 8px;
}

.tl-content p {
  margin: 0;
  font-size: 16px;
  color: var(--bone);
  line-height: 1.8;
}

/* Tab 04: Next Acts Grid */
.next-acts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.next-act-card {
  background: rgba(9, 12, 12, 0.92);
  border: 1px solid rgba(189, 149, 91, 0.3);
  padding: 28px;
}

.next-act-meta {
  border-bottom: 1px solid rgba(189, 149, 91, 0.22);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.next-act-meta span {
  display: block;
  font-family: var(--font-sc);
  font-size: 10.5px;
  letter-spacing: 2.2px;
  color: var(--crimson);
}

.next-act-meta strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  color: var(--gold-bright);
}

.next-act-card p {
  font-size: 16px;
  color: var(--cream);
  margin: 0 0 14px;
}

.next-act-card ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--bone);
  font-size: 15.5px;
  line-height: 1.75;
}

.next-act-card li strong {
  color: var(--gold-bright);
}

@media (max-width: 1024px) {
  .script-tabs,
  .origin-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .opening-render-showcase,
  .next-acts-grid {
    grid-template-columns: 1fr;
  }
  .rel-tier,
  .factions-grid {
    grid-template-columns: 1fr;
  }
  .timeline-node {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .tl-year {
    border-right: 0;
    border-bottom: 1px solid rgba(189, 149, 91, 0.2);
    padding-bottom: 6px;
  }
}

@media (max-width: 760px) {
  .script-tabs,
  .origin-cards-grid,
  .opening-beats,
  .rel-links-list {
    grid-template-columns: 1fr;
  }
  .act-item summary {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .act-body {
    padding: 0 16px 16px;
  }
}


/* ==========================================================================
   VISUAL RELATIONSHIP BOARD WITH SVG CONNECTING WIRES & LABELS
   ========================================================================== */
.rel-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
  font-family: var(--font-sc);
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--bone);
}

.leg-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.leg-item i {
  display: inline-block;
  width: 28px;
  height: 2px;
}

.leg-kin i {
  background: #dfc08a;
  box-shadow: 0 0 8px #dfc08a;
}

.leg-bond i {
  background: #ef8e7d;
  box-shadow: 0 0 8px #ef8e7d;
}

.leg-feud i {
  border-top: 2px dashed #d93829;
  background: none;
}

.rel-board-scroll {
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-color: var(--crimson) #0a0e0e;
}

.rel-board {
  position: relative;
  width: 1240px;
  height: 770px;
  margin: 0 auto;
  background:
    radial-gradient(circle at 50% 58%, rgba(150, 27, 21, 0.22), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(189, 149, 91, 0.06), transparent 70%),
    #060909;
  border: 1px solid rgba(189, 149, 91, 0.28);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.9);
}

.rel-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.wire-group {
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.wire-group path {
  fill: none;
  stroke-width: 2;
  transition: stroke-width 0.35s ease, opacity 0.35s ease;
}

.wire-kin path {
  stroke: #dfc08a;
}

.wire-bond path {
  stroke: #ef8e7d;
  stroke-width: 2.3;
}

.wire-feud path {
  stroke: #d93829;
  stroke-dasharray: 7 5;
}

.wire-group rect {
  fill: rgba(7, 10, 10, 0.94);
  stroke: rgba(189, 149, 91, 0.45);
  stroke-width: 1;
  transition: opacity 0.28s ease, stroke 0.28s ease, fill 0.28s ease;
}

.wire-feud rect {
  stroke: rgba(217, 56, 41, 0.65);
  fill: rgba(28, 7, 7, 0.94);
}

.wire-bond rect {
  stroke: rgba(239, 142, 125, 0.6);
  fill: rgba(24, 10, 10, 0.94);
}

.wire-group text {
  font-family: var(--font-body);
  font-size: 11.5px;
  fill: #ece2d0;
  text-anchor: middle;
  transition: opacity 0.28s ease, fill 0.28s ease;
}

/* Focus Bar above Relationship Board */
.rel-focus-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  padding: 10px 18px;
  background: rgba(12, 16, 16, 0.88);
  border: 1px solid rgba(189, 149, 91, 0.28);
}

.rel-focus-status {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--bone);
}

.rel-focus-status strong {
  color: var(--gold-bright);
  font-weight: 600;
}

.rel-reset-btn {
  padding: 7px 16px;
  background: rgba(150, 27, 21, 0.22);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  font-family: var(--font-sc);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.rel-reset-btn:hover,
.rel-reset-btn.is-showing-all {
  background: var(--crimson);
  border-color: var(--gold-bright);
  color: #fff;
  box-shadow: 0 0 18px rgba(201, 48, 38, 0.55);
}

/* DIM UNRELATED WIRES & HIDE UNRELATED LABELS WHEN A CHARACTER IS PICKED */
.rel-board.has-focus .wire-group:not(.wire-active) {
  opacity: 1;
}

.rel-board.has-focus .wire-group:not(.wire-active) path {
  opacity: 0.05;
}

.rel-board.has-focus .wire-group:not(.wire-active) rect,
.rel-board.has-focus .wire-group:not(.wire-active) text {
  opacity: 0;
}

/* GLOW RELATED WIRES & LABELS WHEN A CHARACTER IS PICKED */
.rel-board.has-focus .wire-group.wire-active {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(235, 196, 132, 0.78));
}

.rel-board.has-focus .wire-feud.wire-active {
  filter: drop-shadow(0 0 12px rgba(229, 57, 45, 0.88));
}

.rel-board.has-focus .wire-bond.wire-active {
  filter: drop-shadow(0 0 11px rgba(239, 142, 125, 0.85));
}

.rel-board.has-focus .wire-group.wire-active path {
  stroke-width: 3.5;
  opacity: 1;
}

.rel-board.has-focus .wire-group.wire-active rect {
  stroke-width: 1.5;
  fill: rgba(8, 11, 11, 0.98);
}

.rel-board.has-focus .wire-group.wire-active text {
  fill: #fffdf8;
  font-weight: 500;
}

/* Positioned Character Boxes on the 1280x780 Board */
.rel-board .rel-node {
  position: absolute;
  z-index: 2;
  width: 235px;
  padding: 12px 15px;
  transform: translate(-50%, -50%);
  background: rgba(11, 15, 15, 0.96);
  border: 1px solid rgba(189, 149, 91, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85);
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.rel-conn-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  padding: 2px 8px;
  font-family: var(--font-sc);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.rel-board .rel-node strong {
  font-size: 20px;
  line-height: 1.15;
}

.rel-board .rel-node small {
  font-size: 12.5px;
  line-height: 1.35;
}

.rel-pos-ongan     { left: 16.5%; top: 11.5%; border-color: #7ea898; }
.rel-pos-chame1818 { left: 50%;   top: 10.5%; width: 255px; border-color: #c9985b; }
.rel-pos-hoitruong { left: 83.5%; top: 11.5%; border-color: #c93026; }

.rel-pos-huong     { left: 13%;   top: 35.5%; border-color: #7ea898; }
.rel-pos-daison    { left: 33.5%; top: 35.5%; border-color: #c9985b; }
.rel-pos-linh      { left: 66.5%; top: 35.5%; border-color: #c93026; }
.rel-pos-khanhvu   { left: 87%;   top: 35.5%; border-color: #d97538; }

.rel-pos-mot {
  left: 50%;
  top: 59.5%;
  width: 280px;
  padding: 16px 20px;
  border: 2px solid var(--gold-bright);
  background: linear-gradient(135deg, rgba(110, 20, 15, 0.72), rgba(14, 10, 10, 0.96));
  box-shadow: 0 0 28px rgba(201, 48, 38, 0.35), 0 15px 40px rgba(0, 0, 0, 0.92);
}

.rel-pos-kimlan    { left: 20.5%; top: 88%; border-color: #8ab09a; }
.rel-pos-laophu    { left: 50%;   top: 88%; width: 255px; border-color: #b85a3a; }
.rel-pos-maho      { left: 79.5%; top: 88%; border-color: #c93026; }

/* STATES WHEN A CHARACTER IS PICKED (.has-focus) */
.rel-board.has-focus .rel-node.is-dimmed {
  opacity: 0.14;
  filter: grayscale(0.92) brightness(0.45);
  border-color: rgba(189, 149, 91, 0.14);
  box-shadow: none;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 2;
}

.rel-board.has-focus .rel-node.is-dimmed:hover {
  opacity: 0.65;
  filter: grayscale(0.2) brightness(0.9);
  transform: translate(-50%, -52%) scale(1);
}

.rel-board.has-focus .rel-node.is-connected {
  opacity: 1;
  filter: none;
  z-index: 6;
  border-color: var(--gold-bright);
  background: rgba(15, 20, 20, 0.98);
  box-shadow: 0 0 26px rgba(223, 192, 138, 0.42), 0 14px 32px rgba(0, 0, 0, 0.92);
  transform: translate(-50%, -52%) scale(1.02);
}

.rel-board.has-focus .rel-node.is-connected .rel-conn-badge {
  opacity: 1;
  transform: translateY(0);
  background: rgba(18, 24, 24, 0.96);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
}

.rel-board .rel-node.is-selected,
.rel-board.has-focus .rel-node.is-selected {
  opacity: 1;
  filter: none;
  z-index: 9;
  transform: translate(-50%, -54%) scale(1.06);
  border: 2px solid #ffe2a8;
  background: linear-gradient(135deg, rgba(155, 24, 18, 0.92), rgba(14, 10, 10, 0.98));
  box-shadow: 0 0 42px rgba(235, 196, 132, 0.72), 0 0 80px rgba(201, 48, 38, 0.62), 0 18px 40px rgba(0, 0, 0, 0.96);
}

.rel-board.has-focus .rel-node.is-selected .rel-conn-badge {
  opacity: 1;
  transform: translateY(0);
  background: var(--crimson);
  border: 1px solid #ffe2a8;
  color: #fffdf7;
  box-shadow: 0 0 14px rgba(201, 48, 38, 0.8);
}

/* Connected Faction Web Box */
.faction-web-box {
  background: rgba(7, 10, 10, 0.92);
  border: 1px solid rgba(189, 149, 91, 0.32);
  padding: 32px;
}

.factions-connected-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: stretch;
}

.faction-middle-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  color: var(--gold-bright);
  font-family: var(--font-sc);
  font-size: 10px;
  letter-spacing: 2px;
}

.faction-middle-connector strong {
  border: 1px solid var(--crimson);
  background: rgba(120, 18, 14, 0.55);
  padding: 6px 14px;
  color: var(--cream);
}

.faction-middle-connector i {
  width: 100%;
  min-width: 140px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--crimson));
}

.fc-badge {
  font-family: var(--font-sc);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--crimson);
  margin-bottom: 6px;
}

.fc-wire-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(189, 149, 91, 0.3);
  font-size: 13.5px;
  color: var(--gold-bright);
}

@media (max-width: 1024px) {
  .factions-connected-grid {
    grid-template-columns: 1fr;
  }
  .faction-middle-connector {
    display: none;
  }
}

/* Kho Tàng Dị Vật & Các Pháp Khí Tiếp Theo */
.relic-more-vault {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 56px auto 0;
  padding: 34px 36px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(150, 27, 21, 0.18), transparent 70%),
    rgba(10, 13, 13, 0.88);
  border: 1px solid rgba(189, 149, 91, 0.28);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.72);
}

.relic-more-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 26px;
}

.relic-more-head .eyebrow {
  color: var(--gold-bright);
  margin-bottom: 8px;
  display: block;
}

.relic-more-head p {
  margin: 0;
  font-size: 16.5px;
  color: var(--muted);
}

.relic-more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.relic-more-chip {
  padding: 18px 20px;
  background: rgba(6, 8, 8, 0.85);
  border: 1px solid rgba(189, 149, 91, 0.2);
  border-left: 3px solid var(--crimson);
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.relic-more-chip:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.relic-more-chip small {
  font-family: var(--font-sc);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
}

.relic-more-chip strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--cream);
}

.relic-more-chip span {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 960px) {
  .relic-more-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .relic-more-vault {
    padding: 24px 18px;
  }
  .relic-more-grid {
    grid-template-columns: 1fr;
  }
}


/* GOSU logo */
.brand-logo{display:block;height:30px;width:auto;margin-bottom:4px}
footer .brand-logo{height:34px}
