:root {
  color-scheme: dark;
  --ink: #f7efe3;
  --muted: #b9ad9a;
  --deep: #090b0d;
  --panel: #141619;
  --panel-soft: #1c2021;
  --line: rgba(247, 239, 227, 0.16);
  --red: #a82f35;
  --red-hot: #e05234;
  --gold: #d8b86d;
  --jade: #2f7770;
  --paper: #ead9b7;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(9, 11, 13, 0.76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.header-action,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  white-space: nowrap;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--red);
  border: 1px solid rgba(216, 184, 109, 0.7);
  color: var(--ink);
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.header-action,
.primary-action,
.secondary-action {
  border: 1px solid var(--line);
  padding: 0 18px;
  font-weight: 700;
}

.header-action,
.primary-action {
  background: var(--red);
  border-color: rgba(216, 184, 109, 0.38);
}

.secondary-action {
  background: rgba(247, 239, 227, 0.08);
}

.hero {
  min-height: 88svh;
  display: flex;
  align-items: center;
  padding: 112px clamp(20px, 5vw, 72px) 68px;
  background-image:
    linear-gradient(90deg, rgba(5, 6, 8, 0.94), rgba(5, 6, 8, 0.58) 42%, rgba(5, 6, 8, 0.1)),
    url("assets/hero-redcliff.jpg");
  background-size: cover;
  background-position: center top;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  width: min(680px, 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(64px, 14vw, 148px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.25;
}

.hero-text {
  width: min(560px, 100%);
  color: #dccfc0;
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.primary-action,
.secondary-action {
  min-width: 132px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-action:hover,
.secondary-action:hover,
.primary-action:focus-visible,
.secondary-action:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.hero-stats span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  background: rgba(10, 13, 15, 0.7);
  border: 1px solid var(--line);
}

.hero-stats strong {
  color: var(--gold);
  font-size: 22px;
}

.ticker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.ticker span {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 12px;
  background: #101315;
  color: var(--paper);
  text-align: center;
  font-weight: 700;
}

.section {
  padding: clamp(72px, 9vw, 122px) clamp(20px, 5vw, 72px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
  background: #101315;
}

.split-section.reverse {
  grid-template-columns: minmax(320px, 1.05fr) minmax(0, 0.95fr);
  background: #171817;
}

.section-copy p,
.reserve-copy p {
  color: var(--muted);
  font-size: 17px;
}

.image-panel {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
}

.schedule {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.schedule article,
.news-grid article {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.schedule span,
.news-grid time,
#faction-label {
  color: var(--gold);
  font-weight: 800;
}

.schedule p,
.news-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.faction-section,
.media-section {
  background: #0c0f10;
}

.section-heading {
  width: min(720px, 100%);
  margin-bottom: 30px;
}

.faction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.faction-card,
.weapon-tabs button,
.media-thumbs button {
  cursor: pointer;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--panel);
}

.faction-card {
  min-height: 132px;
  padding: 22px;
  text-align: left;
}

.faction-card span {
  color: var(--gold);
  font-size: 14px;
  font-weight: 800;
}

.faction-card strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.05;
}

.faction-card.is-active,
.weapon-tabs button.is-active,
.media-thumbs button.is-active {
  border-color: var(--gold);
  background: color-mix(in srgb, var(--red) 42%, var(--panel));
}

.faction-detail {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(260px, 1fr) minmax(260px, 0.68fr);
  align-items: start;
  gap: 26px;
  margin-top: 18px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.faction-detail p {
  margin: 0;
  color: var(--muted);
}

.faction-detail dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.faction-detail dt {
  color: var(--muted);
  font-size: 13px;
}

.faction-detail dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.weapon-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 18px;
}

.weapon-tabs button,
.media-thumbs button {
  min-width: 54px;
  min-height: 42px;
  padding: 8px 16px;
  font-weight: 800;
}

.weapon-detail {
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.weapon-detail p {
  color: var(--muted);
}

.meters {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.meters span {
  position: relative;
  min-height: 34px;
  display: flex;
  align-items: center;
  padding-left: 12px;
  overflow: hidden;
  background: rgba(247, 239, 227, 0.07);
  border: 1px solid var(--line);
  font-weight: 800;
}

.meters span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  background: linear-gradient(90deg, rgba(47, 119, 112, 0.64), rgba(216, 184, 109, 0.5));
}

.meters span {
  isolation: isolate;
}

.meters span::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: stretch;
}

.media-stage {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
}

.media-stage img {
  width: 100%;
  height: clamp(340px, 52vw, 640px);
  object-fit: cover;
}

.media-stage figcaption {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.media-thumbs {
  display: grid;
  gap: 10px;
  align-content: start;
}

.media-thumbs button {
  min-height: 64px;
  text-align: left;
}

.news-section {
  background: #151716;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.news-grid article {
  min-height: 218px;
}

.news-grid h3 {
  margin-top: 16px;
}

.reserve-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  background:
    linear-gradient(rgba(9, 11, 13, 0.82), rgba(9, 11, 13, 0.92)),
    url("assets/promo.jpg");
  background-size: cover;
  background-position: center;
}

.reserve-form {
  display: grid;
  gap: 14px;
  padding: clamp(20px, 4vw, 32px);
  background: rgba(12, 15, 16, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.reserve-form label {
  display: grid;
  gap: 8px;
  color: var(--gold);
  font-weight: 800;
}

.reserve-form input,
.reserve-form select {
  width: 100%;
  min-height: 46px;
  color: var(--ink);
  background: #0b0e10;
  border: 1px solid var(--line);
  padding: 10px 12px;
}

.form-status {
  min-height: 26px;
  margin: 0;
  color: var(--paper);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: #080a0b;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

@media (max-width: 880px) {
  .site-header {
    min-height: 64px;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 86svh;
    padding-top: 96px;
    background-position: 58% top;
  }

  .ticker,
  .faction-grid,
  .news-grid,
  .split-section,
  .split-section.reverse,
  .faction-detail,
  .media-layout,
  .reserve-section {
    grid-template-columns: 1fr;
  }

  .ticker span {
    min-height: 48px;
  }

  .media-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .media-thumbs button {
    min-width: 0;
    min-height: 48px;
    text-align: center;
    padding: 8px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    display: none;
  }

  .header-action {
    min-height: 40px;
    padding: 0 14px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions a {
    width: 100%;
  }

  .faction-card {
    min-height: 96px;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }
}
