:root {
  color-scheme: dark;
  --background: #111414;
  --surface: #191d1c;
  --ink: #ecebe3;
  --muted: #b0b6b0;
  --gold: #c9ac77;
  --line: #39403b;
  --red: #94352d;
  --serif: "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
}

* { box-sizing: border-box; letter-spacing: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--background); color: var(--ink); font: 14px/1.8 "Microsoft YaHei", "PingFang SC", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
a:focus-visible { outline: 2px solid #e6ce99; outline-offset: 5px; }
a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 10; padding: 10px 18px; background: var(--ink); color: var(--background); }
.skip-link:focus { top: 12px; }
.site-header { border-top: 2px solid var(--gold); border-bottom: 1px solid #494438; background: #111414; }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 19px; flex-shrink: 0; }
.brand img { width: 253px; height: auto; }
.brand > span { padding-left: 19px; border-left: 1px solid #595140; color: var(--gold); font: 700 20px var(--serif); }
.main-nav { display: flex; align-items: center; gap: 32px; font-size: 13px; }
.main-nav a { padding-block: 14px; color: #c5c6bc; }
.main-nav a:hover, .main-nav [aria-current] { color: #e9c790; }
.main-nav .nav-register { border-left: 1px solid #494438; padding-left: 28px; color: #e9c790; }
.nav-register span { margin-left: 10px; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #141615; }
.hero-art { position: absolute; z-index: -2; inset: 0 0 0 31%; background: url("./mir-gate.webp") center/cover no-repeat; opacity: .53; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: #14161533; box-shadow: inset 90px 0 100px #141615, inset 0 -55px 65px #141615; }
.hero-inner { position: relative; min-height: min(660px, calc(100svh - 174px)); display: flex; align-items: center; padding-block: 64px 96px; }
.hero-copy { position: relative; z-index: 2; width: 52%; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--gold); font: 11px/1.6 Georgia, serif; }
.small-rule { width: 28px; height: 1px; background: var(--gold); }
.server-name { margin-top: 25px; color: #c8b999; font: 16px/1.5 var(--serif); }
h1 { margin-top: 10px; font: 700 64px/1.18 var(--serif); text-shadow: 0 3px 20px #0009; }
h1 > span { display: block; color: #debd7b; font-size: 92px; margin-top: 3px; }
.hero-tagline { margin-top: 24px; color: #e2d7bc; font: 22px/1.5 var(--serif); }
.hero-description { margin-top: 14px; color: #b9bcb2; font-size: 13px; line-height: 2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.button { min-height: 52px; min-width: 160px; display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 12px 24px; border: 1px solid #96764a; border-radius: 2px; color: #f9ead1; font-size: 15px; transition: background-color .18s, border-color .18s; }
.button-red { background: var(--red); box-shadow: inset 0 0 0 3px #441d183d; }
.button-red:hover { background: #ac4036; border-color: #dcbd80; }
.button-outline { background: #171b19d9; border-color: #857457; }
.button-outline:hover { background: #303a32; border-color: #dcbd80; }
.button > span { font-size: 20px; line-height: 1; }
.hero-note { margin-top: 18px; font-size: 11px; color: #aaa999; }
.hero-note span { padding-inline: 10px; color: #756b55; }
.hero-characters { position: absolute; inset: 0 0 0 45%; pointer-events: none; }
.hero-characters img { position: absolute; object-fit: contain; object-position: bottom; filter: drop-shadow(0 12px 10px #0009); }
.hero-warrior { width: 310px; height: 478px; bottom: 66px; left: 20%; z-index: 2; }
.hero-taoist { width: 226px; height: 402px; bottom: 87px; left: -2%; }
.hero-sorcerer { width: 215px; height: 510px; bottom: 73px; right: -3%; }
.hero-scroll { position: absolute; bottom: 25px; left: 0; display: flex; align-items: center; gap: 18px; font-size: 11px; color: #c5b698; }
.hero-scroll > span:last-child { font-size: 21px; }
.hero-caption { position: absolute; right: 0; bottom: 33px; color: #aca18b; font: 12px var(--serif); }
.entry-band { border-block: 1px solid #4a473b; background: #1b201d; }
.entry-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; min-height: 112px; }
.entry-intro { display: flex; align-items: center; gap: 20px; padding: 20px 26px 20px 0; }
.entry-seal { width: 48px; height: 52px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid #8f6d42; outline: 1px solid #5c4c33; outline-offset: -5px; background: #582822; color: #d7b77c; font: 700 26px var(--serif); }
.entry-intro strong { font: 700 18px/1.5 var(--serif); color: #ddd4bd; }
.entry-intro p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.entry-link { display: flex; align-items: center; justify-content: space-between; padding: 24px 32px; border-left: 1px solid #3c423a; }
.entry-link small { display: block; color: #b2a181; font: 10px/1.5 Georgia, serif; }
.entry-link strong { display: block; font: 700 20px/1.5 var(--serif); margin-top: 6px; }
.entry-arrow { color: var(--gold); font: 26px Georgia, serif; }
.entry-link:hover { background: #252e27; }
.section { padding-block: 66px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
h2 { font: 700 30px/1.5 var(--serif); margin-top: 9px; }
.section-heading > p { color: var(--muted); font-size: 12px; padding-bottom: 5px; }
.class-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.class-item { min-width: 0; padding: 17px 18px 24px; border-left: 1px solid var(--line); background: #171b1a; }
.class-item:last-child { border-right: 1px solid var(--line); }
.class-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #bab7a5; font-size: 10px; }
.class-top > span:first-child { color: #8e9d92; font: italic 16px Georgia, serif; }
.class-portrait { height: 243px; margin-block: 12px 20px; display: flex; align-items: flex-end; justify-content: center; border-bottom: 1px solid #3a443c; }
.class-portrait img { height: 228px; width: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 8px 5px #0006); transition: transform .2s; }
.class-item:hover .class-portrait img { transform: translateY(-4px); }
.class-item h3 { font: 700 23px/1.3 var(--serif); color: #dfcfaa; }
.class-item h3 small { display: block; margin-top: 9px; font: 10px Georgia, serif; color: #a4b3a7; }
.class-item > p { font-size: 11px; line-height: 2; color: #b9beb6; margin-top: 14px; }
.sorcerer { background: #1c1c21; }
.sorcerer .class-portrait { border-color: #464150; }
.taoist { background: #19211e; }
.assassin { background: #211b1c; }
.assassin .class-portrait { border-color: #4c373b; }
.archer { background: #1a2024; }
.archer .class-portrait { border-color: #3a4754; }
.benefits-band { border-block: 1px solid #3c463e; background: #1b2420; }
.benefits-inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 76px; }
.benefits-copy h2 { font-size: 29px; }
.benefits-copy > p:not(.eyebrow) { margin-top: 18px; color: #b6c0b7; font-size: 13px; line-height: 2; }
.benefits-copy .button { margin-top: 26px; min-width: 210px; }
.benefit-row { display: flex; align-items: flex-start; gap: 24px; padding-block: 20px; border-bottom: 1px solid #465044; }
.benefit-row:first-child { padding-top: 0; }
.benefit-row:last-child { border: 0; padding-bottom: 0; }
.benefit-number { color: #bea578; font: italic 27px/1.3 Georgia, serif; flex-shrink: 0; }
.benefit-row h3 { color: #e3dac6; font: 700 18px/1.6 var(--serif); }
.benefit-row p { color: #b9c2b8; font-size: 12px; margin-top: 5px; }
.site-footer { padding-block: 34px 24px; background: #101312; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 24px; }
.footer-brand strong { font: 700 18px var(--serif); color: #c9bb99; }
.footer-brand span { font-size: 11px; color: #939e93; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 28px; color: #b7b9ac; font-size: 12px; }
.site-footer nav a:hover { color: #edce90; }
.health-note { margin-top: 25px; padding-top: 18px; border-top: 1px solid #2e362f; color: #969e93; font-size: 10px; }

@media (min-width: 1600px) {
  .hero-art { left: calc(50% - 270px); right: calc(50% - 850px); }
}

@media (max-width: 1100px) {
  .brand img { width: 210px; }
  .main-nav { gap: 20px; }
  .brand { gap: 12px; }
  .brand > span { padding-left: 12px; }
  .hero-copy { width: 54%; }
  h1 { font-size: 54px; }
  h1 > span { font-size: 78px; }
  .hero-characters { left: 47%; }
  .hero-warrior { width: 260px; height: 403px; left: 7%; }
  .hero-taoist { width: 175px; height: 311px; left: -8%; }
  .hero-sorcerer { width: 170px; height: 403px; right: -4%; }
  .entry-link { padding-inline: 22px; }
  .entry-intro { gap: 13px; }
  .entry-intro strong { font-size: 16px; }
  .class-item { padding-inline: 12px; }
  .class-portrait { height: 206px; }
  .class-portrait img { height: 194px; }
  .class-item p br { display: none; }
  .benefits-inner { gap: 40px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { display: block; padding-top: 18px; }
  .brand { justify-content: center; }
  .brand img { width: 221px; }
  .main-nav { justify-content: space-between; gap: 10px; font-size: 12px; margin-top: 10px; }
  .main-nav .nav-register { padding-left: 16px; }
  .hero-inner { min-height: 570px; padding-block: 44px 80px; }
  .hero-copy { width: 65%; }
  .hero-art { inset: 0 -50% 0 10%; opacity: .38; }
  .hero-art::after { box-shadow: inset 45px 0 75px #141615, inset 0 -45px 65px #141615; }
  .hero-characters { left: 53%; opacity: .9; }
  .hero-warrior { width: 230px; max-width: none; height: 354px; bottom: 119px; left: 0; }
  .hero-taoist, .hero-sorcerer { display: none; }
  .hero-copy .eyebrow { font-size: 9px; gap: 8px; }
  .small-rule { width: 16px; }
  .server-name { margin-top: 23px; font-size: 14px; }
  h1 { font-size: 42px; }
  h1 > span { font-size: 68px; }
  .hero-tagline { font-size: 19px; margin-top: 23px; }
  .hero-description { max-width: 200px; font-size: 12px; }
  .hero-description br { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 24px; }
  .button { min-width: 173px; min-height: 48px; padding: 10px 20px; font-size: 14px; }
  .hero-note { font-size: 10px; white-space: nowrap; }
  .hero-note span { padding-inline: 4px; }
  .hero-caption { right: 0; bottom: 34px; font-size: 10px; }
  .entry-inner { grid-template-columns: 1fr 1fr; }
  .entry-intro { grid-column: 1 / -1; padding-block: 22px; border-bottom: 1px solid #3c423a; justify-content: center; }
  .entry-link { border-left: 0; padding: 20px 14px 20px 0; gap: 10px; }
  .entry-link:last-child { border-left: 1px solid #3c423a; padding-left: 20px; padding-right: 0; }
  .entry-link strong { font-size: 17px; }
  .section { padding-block: 44px; }
  .section-heading { display: block; margin-bottom: 24px; }
  h2, .benefits-copy h2 { font-size: 25px; }
  .section-heading > p { margin-top: 12px; }
  .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 0; }
  .class-item { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-inline: 16px; }
  .class-item:nth-child(even) { border-left: 0; }
  .class-item:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; padding-top: 20px; }
  .class-item:last-child .class-top { grid-column: 1 / -1; }
  .class-item:last-child .class-portrait { grid-column: 1; grid-row: 2 / 4; margin-bottom: 0; border: 0; }
  .class-item:last-child h3 { grid-column: 2; align-self: end; }
  .class-item:last-child > p { grid-column: 2; }
  .class-portrait { height: 215px; }
  .class-portrait img { height: 205px; }
  .class-item h3 { font-size: 23px; }
  .benefits-inner { grid-template-columns: 1fr; gap: 36px; }
  .benefits-copy > p br { display: none; }
  .benefits-copy .button { margin-top: 22px; }
  .footer-inner, .footer-brand { flex-direction: column; align-items: flex-start; gap: 15px; }
  .site-footer nav { gap: 25px; }
  .health-note { font-size: 10px; line-height: 2; }
}

@media (max-width: 359px) {
  .wrap { width: calc(100% - 28px); }
  .brand img { width: 200px; }
  .brand > span { font-size: 17px; }
  .main-nav { font-size: 11px; gap: 7px; }
  .main-nav .nav-register { padding-left: 10px; }
  h1 { font-size: 38px; }
  h1 > span { font-size: 62px; }
  .hero-tagline { font-size: 17px; }
  .entry-link strong { font-size: 15px; }
  .class-item { padding-inline: 12px; }
  .class-portrait { height: 190px; }
  .class-portrait img { height: 180px; }
  .class-top { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
