:root {
  --bg: #0d0d0c;
  --bg-soft: #141413;
  --panel: #191816;
  --panel-2: #22201d;
  --panel-3: #2a2621;
  --text: #ece5d7;
  --muted: #b7aa96;
  --faint: #7d7366;
  --gold: #c7a66a;
  --gold-soft: rgba(199, 166, 106, 0.18);
  --gold-line: rgba(199, 166, 106, 0.32);
  --line: rgba(209, 184, 136, 0.16);
  --red: #6f2b26;
  --paper: #d8c7ad;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(56, 46, 35, 0.22), transparent 26%),
    linear-gradient(180deg, #100f0e 0%, #0c0c0b 42%, #0d0d0c 100%);
  font-family: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
}

body.lightbox-open,
body.profile-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

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

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

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(6, 6, 6, 0.92) 0%, rgba(8, 8, 8, 0.68) 32%, rgba(8, 8, 8, 0.2) 58%, rgba(8, 8, 8, 0.46) 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.18) 0%, rgba(10, 10, 10, 0.78) 100%),
    url("assets/images/1.hero.png");
  background-size: cover;
  background-position: center center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 68%, rgba(13, 13, 12, 0.96) 100%),
    linear-gradient(90deg, rgba(105, 46, 39, 0.08), transparent 45%);
}

.site-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(22px, 5vw, 72px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  letter-spacing: 0.18em;
}

.brand span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--gold-line);
  background: rgba(10, 10, 10, 0.42);
  color: var(--gold);
  font-size: 11px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(16px, 2vw, 28px);
  row-gap: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(199, 166, 106, 0.12);
  background: rgba(12, 12, 11, 0.26);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  position: relative;
  transition: color 180ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0.4);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

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

.hero-content {
  position: relative;
  z-index: 2;
  width: min(700px, calc(100% - 44px));
  padding: 24vh 0 12vh clamp(22px, 6vw, 72px);
}

.eyebrow,
.section-kicker,
.role-label,
.status-label,
.project-label {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 10px 0 16px;
  max-width: 9.5em;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.15;
  font-weight: 500;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  margin-bottom: 14px;
  color: rgba(236, 229, 215, 0.84);
  font-size: clamp(16px, 1.8vw, 21px);
  letter-spacing: 0.06em;
}

.hero-copy {
  max-width: 470px;
  margin-bottom: 28px;
  color: rgba(236, 229, 215, 0.78);
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  min-width: 144px;
  min-height: 46px;
  border: 1px solid var(--line);
  padding: 11px 22px;
  color: var(--text);
  background: rgba(20, 18, 17, 0.78);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(199, 166, 106, 0.68);
  outline: none;
}

.btn-primary {
  background: linear-gradient(180deg, #8c3a32, var(--red));
  box-shadow: 0 14px 30px rgba(75, 27, 22, 0.3);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(35, 30, 28, 0.88);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-tags li,
.character-tags-inline li,
.character-modal-tags span {
  border: 1px solid rgba(199, 166, 106, 0.24);
  padding: 8px 12px;
  background: rgba(12, 11, 10, 0.42);
  color: var(--gold);
  font-size: 13px;
}

.section {
  width: min(1200px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(60px, 7vw, 92px) 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 520px;
  margin-bottom: 3px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 500;
  line-height: 1.14;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 500;
}

p {
  color: var(--muted);
  line-height: 1.9;
}

.video-shell,
.project-panel,
.character-card,
.feature-card,
.timeline-item,
.lore-card,
.lore-item,
.fact-card,
.concept-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(34, 31, 27, 0.92), rgba(18, 17, 15, 0.98));
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 12px;
}

.video-shell::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(236, 229, 215, 0.05);
  pointer-events: none;
}

.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 10px;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.video-meta span:last-child {
  color: var(--gold);
}

.video-stage {
  position: relative;
  overflow: hidden;
  background: #050505;
}

.main-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--text);
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.08), rgba(5, 5, 5, 0.46));
  cursor: pointer;
  transition: opacity 180ms ease, background 180ms ease;
}

.video-play span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid rgba(199, 166, 106, 0.58);
  background: rgba(12, 11, 10, 0.76);
}

.video-play span::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--gold);
}

.video-shell.is-playing .video-play {
  opacity: 0;
  pointer-events: none;
}

.lore-cards,
.concept-grid {
  display: grid;
  gap: 16px;
}

.fact-card,
.concept-card,
.lore-card {
  min-height: 100%;
  padding: 24px;
}

.fact-card span,
.timeline-item span,
.feature-card-copy span {
  display: block;
  margin-bottom: 26px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.character-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
}

.character-card {
  overflow: hidden;
}

.character-card-large {
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(39, 35, 31, 0.96), rgba(19, 18, 16, 0.99));
}

.character-card-large .character-main-media img {
  aspect-ratio: 5 / 6;
  object-position: center top;
}

.character-card-large .character-copy {
  padding: clamp(26px, 3.2vw, 38px);
}

.character-card-large h3 {
  font-size: clamp(28px, 2.8vw, 38px);
}

.character-card-large p {
  font-size: 16px;
}

.character-card-support {
  align-self: start;
  background:
    linear-gradient(180deg, rgba(31, 28, 25, 0.92), rgba(17, 16, 15, 0.98));
}

.character-card-support .character-main-media img {
  aspect-ratio: 16 / 8;
  object-position: center 18%;
}

.character-card-support .character-copy {
  padding: 22px 24px 24px;
}

.character-card-support h3 {
  font-size: clamp(21px, 2vw, 26px);
}

.character-card-support p {
  font-size: 15px;
  line-height: 1.8;
}

.character-main-media {
  border-bottom: 1px solid rgba(199, 166, 106, 0.12);
  background:
    radial-gradient(circle at top, rgba(199, 166, 106, 0.06), transparent 42%),
    #090909;
}

.character-main-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center top;
}

.character-copy {
  padding: clamp(24px, 3vw, 34px);
}

.character-copy p {
  margin-bottom: 20px;
}

.character-tags-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}

.character-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.character-action {
  min-width: 126px;
  min-height: 42px;
  border: 1px solid rgba(199, 166, 106, 0.34);
  padding: 10px 18px;
  color: var(--text);
  background: rgba(16, 15, 14, 0.72);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.character-action:hover,
.character-action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(199, 166, 106, 0.7);
  color: var(--gold);
  background: rgba(31, 27, 24, 0.92);
  outline: none;
}

.character-video-inline,
.character-reveal {
  display: grid;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  border-top: 0 solid rgba(199, 166, 106, 0);
  transform: translateY(-8px);
  transition: max-height 360ms ease, opacity 240ms ease, transform 280ms ease, border-color 280ms ease;
}

.character-video-inline video,
.reveal-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-video-inline {
  background: #070606;
}

.character-video-inline.is-open,
.character-card.is-revealed .character-reveal {
  max-height: 520px;
  opacity: 1;
  border-top-width: 1px;
  border-top-color: rgba(199, 166, 106, 0.18);
  transform: translateY(0);
}

.character-video-inline video {
  aspect-ratio: 16 / 9;
}

.reveal-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px 12px;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.reveal-copy strong {
  color: var(--gold);
  font-size: 14px;
  font-weight: 400;
}

.reveal-media {
  margin: 0 24px 24px;
  border: 1px solid rgba(199, 166, 106, 0.16);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #070606;
}

.map-section,
.archive-section,
.lore-section,
.gameplay-section,
.project-section {
  border-top: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover,
.feature-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(199, 166, 106, 0.58);
  outline: none;
}

.feature-card-image {
  border-bottom: 1px solid rgba(199, 166, 106, 0.12);
  background: #060606;
}

.feature-card-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-card-copy {
  padding: 24px;
}

.feature-card-copy p {
  margin-bottom: 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline-item {
  padding: 22px;
}

.timeline-item h3 {
  font-size: 22px;
}

.lore-cards,
.concept-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.lore-accordion {
  display: grid;
  gap: 12px;
}

.lore-item {
  overflow: hidden;
}

.lore-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  border: 0;
  padding: 0 22px;
  color: var(--text);
  background: rgba(21, 19, 18, 0.44);
  cursor: pointer;
  text-align: left;
}

.lore-toggle span {
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: 0.08em;
}

.lore-toggle::after {
  content: "+";
  color: var(--gold);
  font-size: 24px;
}

.lore-toggle[aria-expanded="true"] {
  color: var(--gold);
  background: rgba(34, 29, 24, 0.84);
}

.lore-toggle[aria-expanded="true"]::after {
  content: "−";
}

.lore-toggle:hover,
.lore-toggle:focus-visible {
  color: var(--gold);
  outline: none;
}

.lore-body {
  display: none;
  padding: 0 22px 22px;
}

.lore-item.is-open .lore-body {
  display: block;
}

.project-panel {
  padding: 28px;
}

.project-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  border: 1px solid rgba(199, 166, 106, 0.12);
  background: rgba(199, 166, 106, 0.06);
}

.project-meta-item {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  background:
    linear-gradient(180deg, rgba(21, 20, 18, 0.98), rgba(14, 13, 12, 0.98));
}

.project-meta-item strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-grid > div {
  padding: 18px;
  border: 1px solid rgba(199, 166, 106, 0.14);
  background: rgba(11, 11, 10, 0.22);
}

.project-grid p,
.project-note p {
  margin-bottom: 0;
}

.project-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(199, 166, 106, 0.12);
}

.project-note strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  letter-spacing: 0.08em;
}

.placeholder-page {
  min-height: 100vh;
}

.subpage-hero {
  min-height: 68vh;
  background-position: center 22%;
}

.subpage-hero .hero-content {
  padding-top: 23vh;
  padding-bottom: 10vh;
}

.mobile-quick-links {
  display: none;
}

.subpage-section {
  padding-top: clamp(52px, 6vw, 78px);
}

.info-banner {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(199, 166, 106, 0.22);
  background:
    linear-gradient(180deg, rgba(34, 28, 24, 0.9), rgba(17, 15, 13, 0.96));
  box-shadow: var(--shadow);
}

.info-banner strong {
  color: var(--gold);
  letter-spacing: 0.14em;
  font-size: 12px;
  text-transform: uppercase;
}

.info-banner p {
  margin-bottom: 0;
}

.subpage-grid,
.news-list,
.login-capability-grid {
  display: grid;
  gap: 18px;
}

.news-layout,
.reserve-layout,
.login-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.9fr);
  align-items: start;
}

.news-card,
.reserve-form-shell,
.subpage-aside-card,
.login-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(33, 30, 26, 0.94), rgba(17, 16, 14, 0.98));
  box-shadow: var(--shadow);
}

.news-card,
.subpage-aside-card,
.login-card {
  padding: 24px;
}

.news-card h3,
.subpage-aside-card h3,
.login-card h3 {
  margin-bottom: 12px;
}

.news-card p,
.subpage-aside-card p,
.login-card p {
  margin-bottom: 0;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 14px;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.news-category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(199, 166, 106, 0.2);
  background: rgba(199, 166, 106, 0.08);
  color: var(--gold);
}

.subpage-aside {
  display: grid;
  gap: 18px;
}

.subpage-note-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.reserve-form-shell {
  padding: clamp(22px, 3vw, 30px);
}

.reserve-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 1px solid rgba(199, 166, 106, 0.12);
  padding: 16px;
  background: rgba(10, 10, 9, 0.32);
}

.form-field span,
.form-field legend {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-field legend {
  padding: 0;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(199, 166, 106, 0.18);
  padding: 12px 14px;
  color: var(--text);
  background: rgba(17, 16, 14, 0.92);
  font: inherit;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--faint);
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: rgba(199, 166, 106, 0.54);
  outline: none;
}

.form-field-static {
  position: relative;
  align-content: start;
  background:
    linear-gradient(180deg, rgba(24, 21, 18, 0.76), rgba(10, 10, 9, 0.46));
}

.form-field-static::after {
  content: "STATIC";
  position: absolute;
  top: 14px;
  right: 16px;
  color: rgba(199, 166, 106, 0.42);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.field-display {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(199, 166, 106, 0.22);
  padding: 12px 14px 12px 16px;
  color: rgba(236, 229, 215, 0.76);
  line-height: 1.8;
  background:
    linear-gradient(180deg, rgba(22, 20, 18, 0.96), rgba(14, 13, 12, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    inset 0 0 0 1px rgba(8, 8, 8, 0.16);
}

.field-display::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(199, 166, 106, 0.42), transparent);
}

.field-display-area {
  align-items: flex-start;
  min-height: 132px;
  padding-top: 14px;
  padding-bottom: 14px;
  line-height: 1.9;
}

.form-field-wide {
  width: 100%;
}

.option-field {
  min-width: 0;
}

.option-grid,
.placeholder-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(199, 166, 106, 0.18);
  background: rgba(18, 16, 14, 0.82);
  color: var(--muted);
}

.choice-chip-static {
  justify-content: center;
  color: var(--text);
}

.reserve-actions {
  display: grid;
  gap: 12px;
}

.btn-static {
  cursor: not-allowed;
  opacity: 0.72;
}

.reserve-form-note {
  margin-bottom: 0;
  color: var(--gold);
}

.login-capability-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.login-card {
  min-height: 100%;
}

.login-placeholder-panel {
  display: grid;
  gap: 16px;
}

.placeholder-badge-list span {
  border: 1px solid rgba(199, 166, 106, 0.18);
  padding: 8px 12px;
  background: rgba(10, 10, 9, 0.42);
  color: var(--gold);
  font-size: 13px;
}

.site-footer {
  padding: 40px 22px 50px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: #0a0a09;
}

.site-footer p {
  margin: 0;
}

.footer-brand,
.footer-note {
  color: var(--text);
}

.footer-utility {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.footer-utility a {
  transition: color 180ms ease;
}

.footer-utility a:hover,
.footer-utility a:focus-visible {
  color: var(--gold);
  outline: none;
}

.footer-download-placeholder {
  margin-top: 12px;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.footer-brand {
  letter-spacing: 0.18em;
}

.footer-note {
  margin-top: 8px;
  color: var(--gold);
}

.lightbox,
.character-modal {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(6, 5, 5, 0.9);
}

.lightbox.is-open,
.character-modal.is-open {
  display: flex;
}

.lightbox-panel,
.character-modal-panel {
  position: relative;
  width: min(1120px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  overflow: hidden;
  border: 1px solid rgba(199, 166, 106, 0.28);
  background:
    linear-gradient(180deg, rgba(34, 31, 27, 0.94), rgba(12, 12, 11, 0.98));
  box-shadow: var(--shadow);
}

.lightbox-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 14px;
}

.character-modal-panel {
  overflow-y: auto;
  padding: clamp(26px, 4vw, 42px);
}

.lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 42px;
  padding: 0 8px 12px;
}

.lightbox-title {
  font-size: clamp(22px, 3vw, 34px);
}

.lightbox-counter {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050505;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 340px);
  object-fit: contain;
  border: 1px solid rgba(199, 166, 106, 0.32);
}

.lightbox-copy {
  min-height: 120px;
  max-height: 180px;
  overflow-y: auto;
  padding: 18px 12px 8px;
  border-top: 1px solid rgba(199, 166, 106, 0.14);
}

.lightbox-copy-title {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 0.08em;
}

.lightbox-copy-body p:last-child,
.character-modal-body p:last-child {
  margin-bottom: 0;
}

.lightbox-nav,
.lightbox-close,
.character-modal-close {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(24, 20, 19, 0.88);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.lightbox-nav:hover,
.lightbox-close:hover,
.character-modal-close:hover,
.lightbox-nav:focus-visible,
.lightbox-close:focus-visible,
.character-modal-close:focus-visible {
  border-color: rgba(199, 166, 106, 0.72);
  color: var(--gold);
  background: rgba(37, 31, 27, 0.96);
  outline: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 54px;
  transform: translateY(-50%);
  font-size: 38px;
}

.lightbox-prev {
  left: 12px;
}

.lightbox-next {
  right: 12px;
}

.lightbox-close,
.character-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  font-size: 28px;
  line-height: 1;
}

.character-modal-meta {
  padding-right: 36px;
}

.character-modal-summary {
  max-width: 620px;
  margin-bottom: 22px;
  color: rgba(236, 229, 215, 0.82);
  font-size: clamp(16px, 1.8vw, 19px);
}

.character-modal-body p {
  margin-bottom: 14px;
}

.character-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 1100px) {
  .timeline,
  .project-meta-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .hero {
    background-position: 64% center;
  }

  .hero-content {
    width: min(560px, calc(100% - 36px));
    padding: 24vh 0 10vh 18px;
  }

  .subpage-hero .hero-content {
    padding-top: 22vh;
  }

  .site-nav {
    padding: 20px 18px;
  }

  .section {
    width: min(100% - 36px, 1200px);
  }

  .section-heading,
  .temple-layout,
  .character-board,
  .feature-grid,
  .lore-cards,
  .concept-grid,
  .project-grid,
  .news-layout,
  .reserve-layout,
  .login-layout,
  .login-capability-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

  .character-card-large .character-main-media img {
    aspect-ratio: 16 / 11;
  }

  .character-card-support .character-main-media img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .mobile-quick-links {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: min(100% - 32px, 500px);
    margin: 78px auto 0;
  }

  .mobile-quick-links a {
    display: grid;
    place-items: center;
    min-height: 38px;
    border: 1px solid rgba(199, 166, 106, 0.14);
    background: rgba(12, 12, 11, 0.5);
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.1em;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
  }

  .mobile-quick-links a:hover,
  .mobile-quick-links a:focus-visible {
    color: var(--gold);
    border-color: rgba(199, 166, 106, 0.42);
    background: rgba(26, 22, 19, 0.8);
    outline: none;
  }

  .brand {
    font-size: 15px;
  }

  .brand span {
    width: 32px;
    height: 32px;
  }

  .hero {
    min-height: 92vh;
    background-position: 72% center;
  }

  .hero-content {
    width: min(100% - 32px, 500px);
    padding-top: 29vh;
    padding-left: 0;
    margin: 0 auto;
  }

  .subpage-hero .hero-content {
    padding-top: 18vh;
  }

  .hero h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .btn {
    flex: 1 1 160px;
  }

  .timeline,
  .project-meta-strip {
    grid-template-columns: 1fr;
  }

  .section {
    width: min(100% - 28px, 1200px);
    padding: 52px 0;
  }

  .fact-card,
  .concept-card,
  .lore-card,
  .feature-card-copy,
  .timeline-item,
  .project-panel,
  .character-copy,
  .news-card,
  .subpage-aside-card,
  .login-card,
  .reserve-form-shell {
    padding: 20px;
  }

  .character-actions-row {
    width: 100%;
  }

  .character-action {
    width: 100%;
  }

  .reveal-copy {
    flex-direction: column;
    align-items: flex-start;
  }

  .reveal-media {
    margin: 0 20px 20px;
  }

  .form-field {
    padding: 14px;
  }

  .choice-chip,
  .placeholder-badge-list span {
    width: 100%;
  }

  .lightbox,
  .character-modal {
    padding: 16px;
  }

  .lightbox-panel,
  .character-modal-panel {
    width: 100%;
    max-height: calc(100vh - 32px);
  }

  .character-modal-panel {
    padding: 24px 18px 20px;
  }

  .lightbox img {
    max-height: calc(100vh - 300px);
  }

  .lightbox-copy {
    min-height: 104px;
    max-height: 160px;
    padding: 14px 8px 4px;
  }

  .lightbox-nav {
    width: 38px;
    height: 48px;
    font-size: 32px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }
}
