:root {
  color-scheme: dark;
  --bg: #110d0b;
  --bg-soft: #19120f;
  --panel: #241a14;
  --panel-light: #30241d;
  --line: rgba(232, 186, 101, 0.2);
  --gold: #efb54e;
  --gold-bright: #ffd47a;
  --orange: #c65b2b;
  --cream: #f6ead2;
  --muted: #b8a997;
  --shell: 1160px;
  --radius: 18px;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 20% 5%, rgba(132, 58, 30, 0.18), transparent 27rem),
    var(--bg);
  color: var(--cream);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

h1,
h2,
h3 {
  font-family: Georgia, "STKaiti", "KaiTi", serif;
  line-height: 1.15;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 7vw, 3.8rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.shell {
  width: min(calc(100% - 32px), var(--shell));
  margin-inline: auto;
}

.section {
  padding-block: 82px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--cream);
  color: #16100d;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 13, 11, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 44px;
  place-items: center;
  border: 1px solid #a87833;
  background: linear-gradient(145deg, #493019, #21150f);
  color: var(--gold-bright);
  font: 700 1.5rem/1 Georgia, serif;
  clip-path: polygon(8% 0, 92% 0, 100% 78%, 50% 100%, 0 78%);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  color: var(--gold-bright);
  font: 700 0.82rem/1 Georgia, serif;
  letter-spacing: 0.09em;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.nav {
  display: flex;
  gap: 5px;
  margin-left: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  flex: 0 0 auto;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(239, 181, 78, 0.1);
  color: var(--cream);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 68px));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero-art,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-art {
  z-index: -3;
  background: #150d10 url("./res/login_back.jpg") center 18% / cover no-repeat;
  transform: scale(1.015);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(10, 7, 7, 0.18) 10%, rgba(14, 9, 8, 0.7) 68%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11, 7, 7, 0.87) 0%, rgba(11, 7, 7, 0.28) 70%);
}

.hero-content {
  display: flex;
  min-height: inherit;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-block: 220px 68px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: #fff4de;
  font-size: clamp(2.8rem, 12vw, 6.8rem);
  letter-spacing: -0.06em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
  color: #e3d5c5;
  font-size: clamp(1rem, 3vw, 1.18rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 800;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  border-color: #f3c167;
  background: linear-gradient(180deg, #efb54e, #bd7326);
  box-shadow: 0 8px 30px rgba(196, 107, 31, 0.28), inset 0 1px rgba(255, 255, 255, 0.35);
  color: #24140c;
}

.button-store {
  gap: 9px;
  border-color: rgba(245, 226, 194, 0.24);
  background: rgba(20, 13, 10, 0.64);
  color: #c6b9a9;
  cursor: not-allowed;
  backdrop-filter: blur(6px);
}

.button-store > span {
  color: var(--gold);
  font-size: 0.78rem;
}

.button-store:disabled {
  opacity: 0.76;
}

.button-store:disabled:hover {
  transform: none;
}

.section-heading {
  max-width: 710px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.trials-inner p {
  color: var(--muted);
}

.section-heading-wide {
  max-width: 880px;
}

.section-heading-center {
  margin-inline: auto;
  text-align: center;
}

.loop {
  display: grid;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(37, 26, 20, 0.62);
  box-shadow: var(--shadow);
  list-style: none;
  overflow: hidden;
}

.loop li {
  position: relative;
  display: grid;
  min-height: 130px;
  grid-template-columns: 46px 1fr;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 12px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.loop li:last-child {
  border-bottom: 0;
}

.loop li > span {
  grid-row: 1 / 3;
  color: rgba(239, 181, 78, 0.48);
  font: 700 1rem/1 Georgia, serif;
}

.loop strong {
  color: var(--cream);
  font-family: Georgia, "STKaiti", serif;
  font-size: 1.2rem;
}

.loop small {
  color: var(--muted);
  font-size: 0.83rem;
}

.feature-section {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(38, 25, 18, 0.72), rgba(20, 14, 12, 0.68));
}

.feature-grid {
  display: grid;
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 45%),
    var(--panel);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.feature-card::after {
  position: absolute;
  right: -45px;
  bottom: -65px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(239, 181, 78, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(239, 181, 78, 0.025), 0 0 0 44px rgba(239, 181, 78, 0.018);
  content: "";
}

.feature-number {
  margin-bottom: 42px;
  color: var(--gold);
  font: 700 0.86rem/1 Georgia, serif;
  letter-spacing: 0.1em;
}

.feature-card p {
  max-width: 42ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-battle {
  background:
    radial-gradient(circle at 80% 15%, rgba(198, 91, 43, 0.3), transparent 48%),
    linear-gradient(145deg, #302017, #211711);
}

.feature-equipment {
  background:
    radial-gradient(circle at 80% 15%, rgba(102, 173, 212, 0.18), transparent 48%),
    linear-gradient(145deg, #242321, #171718);
}

.feature-image-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 0;
}

.feature-image-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--line);
  object-fit: cover;
}

.feature-card-body {
  padding: 24px 26px 28px;
}

.feature-card-body .feature-number {
  margin-bottom: 18px;
}

.classes-section {
  overflow: hidden;
}

.class-grid {
  display: grid;
  gap: 16px;
}

.class-card {
  position: relative;
  display: grid;
  min-height: 430px;
  grid-template-rows: 265px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.class-art {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 55%, rgba(255, 197, 92, 0.28), transparent 55%);
}

.class-art::before {
  position: absolute;
  inset: 18% 18%;
  border: 1px solid rgba(255, 224, 168, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(255, 224, 168, 0.025), 0 0 0 40px rgba(255, 224, 168, 0.02);
  content: "";
}

.class-art img {
  position: absolute;
  inset: auto 50% 0;
  width: min(310px, 86%);
  max-height: 98%;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.45));
}

.warrior .class-art {
  background-color: #43251c;
}

.hunter .class-art {
  background-color: #283827;
}

.mage .class-art {
  background-color: #2a243f;
}

.class-info {
  position: relative;
  z-index: 2;
  padding: 22px 24px 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(45, 32, 24, 0.98), var(--panel));
}

.class-info span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.class-info h3 {
  margin: 5px 0 8px;
  font-size: 1.85rem;
}

.class-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.trials {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #19100d;
  isolation: isolate;
}

.trials-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("./res/login_GB.jpg") center / cover no-repeat;
  opacity: 0.38;
  filter: saturate(0.75);
}

.trials::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #120c0be8 0%, #120c0bc9 55%, #120c0b9c 100%);
  content: "";
}

.trials-inner {
  display: grid;
  gap: 32px;
  padding-block: 78px;
}

.trials-inner > div {
  max-width: 620px;
}

.trials-inner h2 {
  margin-bottom: 16px;
}

.trial-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trial-list li {
  padding: 14px;
  border: 1px solid rgba(239, 181, 78, 0.2);
  border-radius: 9px;
  background: rgba(25, 16, 13, 0.68);
  color: #ead9c0;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(6px);
}

.media-grid {
  display: grid;
  gap: 16px;
}

.media-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.media-card img,
.media-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090706;
  object-fit: cover;
}

.media-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 19px;
}

.media-card figcaption span {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.site-footer {
  padding-block: 34px 96px;
  border-top: 1px solid var(--line);
  background: #0c0908;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner strong {
  color: var(--gold);
  font: 700 0.95rem/1 Georgia, serif;
  letter-spacing: 0.12em;
}

.footer-inner p {
  max-width: 520px;
  margin: 9px 0 0;
  color: #8f8174;
  font-size: 0.78rem;
}

.footer-inner a {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

.audio-toggle {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(239, 181, 78, 0.4);
  border-radius: 999px;
  background: rgba(30, 20, 15, 0.92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.38);
  color: var(--cream);
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.audio-toggle > span:first-child {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(239, 181, 78, 0.13);
  color: var(--gold);
}

.audio-toggle[aria-pressed="true"] > span:first-child {
  animation: pulse 1.3s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 5px rgba(239, 181, 78, 0.09);
  }
}

@media (min-width: 640px) {
  .shell {
    width: min(calc(100% - 48px), var(--shell));
  }

  .site-header {
    padding-inline: 24px;
  }

  .nav a {
    padding-inline: 14px;
    font-size: 0.88rem;
  }

  .loop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loop li:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .loop li:nth-child(3) {
    border-bottom: 0;
  }

  .feature-grid,
  .class-grid,
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-image-card {
    min-height: 100%;
  }

  .media-wide {
    grid-column: 1 / -1;
  }

  .media-wide img,
  .media-wide video {
    aspect-ratio: 16 / 8;
  }
}

@media (min-width: 900px) {
  .section {
    padding-block: 112px;
  }

  .site-header {
    min-height: 76px;
    padding-inline: max(32px, calc((100vw - var(--shell)) / 2));
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand small {
    font-size: 0.75rem;
  }

  .hero {
    min-height: min(850px, calc(100svh - 76px));
  }

  .hero-content {
    justify-content: center;
    padding-block: 190px 80px;
  }

  .hero-copy {
    font-size: 1.12rem;
  }

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

  .loop li,
  .loop li:nth-child(3) {
    min-height: 168px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .loop li:last-child {
    border-right: 0;
  }

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

  .feature-card {
    min-height: 300px;
    padding: 34px;
  }

  .feature-image-card {
    min-height: 520px;
    padding: 0;
  }

  .feature-image-card img {
    aspect-ratio: 16 / 8.7;
  }

  .feature-card-body {
    padding: 30px 34px 34px;
  }

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

  .class-card {
    min-height: 540px;
    grid-template-rows: 350px 1fr;
  }

  .trials-inner {
    grid-template-columns: 1.25fr 1fr;
    align-items: center;
    gap: 80px;
    padding-block: 110px;
  }

  .site-footer {
    padding-bottom: 42px;
  }
}

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

  .brand-mark {
    width: 36px;
    height: 39px;
  }

  .site-header {
    gap: 6px;
  }

  .nav {
    gap: 0;
    margin-left: 4px;
  }

  .nav a {
    padding-inline: 8px;
    font-size: 0.74rem;
  }

  .nav a:nth-child(3) {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero-art {
    background-position: 58% 10%;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(10, 7, 7, 0.06) 0%, rgba(14, 9, 8, 0.74) 54%, var(--bg) 100%),
      linear-gradient(90deg, rgba(11, 7, 7, 0.68) 0%, transparent 90%);
  }

  .hero-content {
    padding-block: 250px 52px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .media-card figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .media-card figcaption span {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
