:root {
  --night: #07151d;
  --night-soft: #0d2530;
  --ink: #10242b;
  --paper: #f1e6c8;
  --paper-deep: #d9c28e;
  --gold: #e3b85b;
  --gold-bright: #ffe2a0;
  --cinnabar: #9d2f22;
  --muted: #aebcc0;
}

[v-clock] {
  visibility: hidden;
}

* {
  box-sizing: border-box;
}
html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 4.25rem;
}
body {
  margin: 0;
  background: var(--night);
  color: #f8f1de;
  font-family: 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
img {
  display: block;
  max-width: 100%;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-action {
  display: flex;
  align-items: center;
  gap: 0.63rem;
  margin-right: 1.25rem;
}
.login-action .icon {
  width: 2rem;
  height: 2rem;
  background: url('https://img.fhyx.com/fxegames/yywz/face.png') center/contain
    no-repeat;
}
.login-action .btn {
  cursor: pointer;
  user-select: none;
  text-decoration: underline;
}

@media (max-width: 620px) {
  .login-action {
    position: absolute;
    right: 0.75rem;
    top: 4.69rem;
  }
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3vw;
  background: linear-gradient(
    180deg,
    rgba(5, 15, 20, 0.94),
    rgba(5, 15, 20, 0.58),
    transparent
  );
}
.brand img {
  width: clamp(9rem, 15vw, 14rem);
  height: auto;
}
.top-actions {
  display: flex;
  gap: 0.65rem;
}
.button {
  min-height: 2.75rem;
  padding: 0.58rem 1.25rem;
  border: 1px solid rgba(244, 214, 147, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff6df;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.button:hover {
  transform: translateY(-2px);
}
.button-ghost {
  background: rgba(6, 26, 34, 0.48);
  backdrop-filter: blur(10px);
}
.button-gold {
  color: #2d1d08;
  background: linear-gradient(135deg, #ffe6a5, #cb8c2e);
  box-shadow: 0 8px 28px rgba(220, 157, 53, 0.25);
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  display: grid;
  align-items: end;
  background: url('https://img.fhyx.com/fxegames/sgm/gyysh/hero-kv-midautumn-desktop-v4.png') center / cover
    no-repeat;
}
.hero-effects {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.hero-title-art {
  position: absolute;
  inset: 0 auto auto 50%;
  z-index: 1;
  width: min(70%, 1264px);
  height: 581px;
  transform: translateX(-50%);
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  background: url('https://img.fhyx.com/fxegames/sgm/gyysh/hero-title-midautumn.png') center/contain no-repeat;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(3, 13, 20, 0.28),
      transparent 24%,
      transparent 76%,
      rgba(3, 13, 20, 0.2)
    ),
    linear-gradient(0deg, var(--night) 0%, transparent 24%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(90vw, 78rem);
  margin: 0 auto;
  padding: 0 0 9vh;
  display: grid;
  place-items: center;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold-bright);
  font-size: 0.9rem;
  letter-spacing: 0.28em;
}
.hero h1 {
  width: min-content;
  margin: 0;
  color: #fff6df;
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: clamp(3.3rem, 7.5vw, 7.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.08em;
  text-shadow:
    0 0 14px rgba(245, 188, 72, 0.7),
    0 6px 0 rgba(91, 41, 20, 0.5),
    0 15px 42px #000;
}
.hero h1 span {
  display: block;
  white-space: nowrap;
}
.hero h1 span + span {
  margin: 0.18em 0 0 0.55em;
  color: #f5c866;
}
.hero-lead {
  max-width: 35rem;
  margin: 2rem 0;
  color: #e9dfc7;
  font-family: 'SimSun', serif;
  font-size: 1.1rem;
}
.enter-button {
  width: 12.5rem;
  height: 4.25rem;
  display: grid;
  place-content: center;
  text-align: center;
  border: 1px solid #f7d88f;
  background: linear-gradient(
    135deg,
    rgba(143, 42, 29, 0.92),
    rgba(89, 21, 18, 0.86)
  );
  box-shadow:
    inset 0 0 0 4px rgba(255, 221, 145, 0.08),
    0 14px 34px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.18em;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  backdrop-filter: blur(4px);
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.hero-reserve-button {
  color: #2d1d08;
  background: linear-gradient(135deg, #ffe6a5, #cb8c2e);
}
.enter-button.hero-reserve-button small {
  color: #5a3813;
}
.enter-button:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 4px rgba(255, 221, 145, 0.12),
    0 18px 40px rgba(0, 0, 0, 0.45);
}
.enter-button small {
  color: #d6bd83;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #d3c18c;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-align: center;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 2.4rem;
  margin: 0 auto 0.5rem;
  background: linear-gradient(transparent, #d7b764);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  50% {
    transform: scaleY(0.45);
    opacity: 0.4;
  }
}

.festival-nav {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(6, minmax(9rem, 1fr));
  overflow-x: auto;
  border-block: 1px solid rgba(233, 195, 108, 0.22);
  background: rgba(5, 23, 30, 0.96);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
  scrollbar-width: none;
}
.festival-nav::-webkit-scrollbar {
  display: none;
}
.festival-nav a {
  min-width: 9rem;
  padding: 0.75rem 0.7rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  border-right: 1px solid rgba(233, 195, 108, 0.12);
  color: #c7d0cc;
  transition:
    background 0.2s,
    color 0.2s;
}
.festival-nav a:hover,
.festival-nav a.active {
  color: #fff1c8;
  background: linear-gradient(
    180deg,
    rgba(173, 100, 34, 0.32),
    rgba(130, 45, 30, 0.2)
  );
}
.festival-nav a.active {
  box-shadow: inset 0 -3px var(--gold);
}
.festival-nav em {
  color: var(--gold);
  font-family: 'STKaiti', serif;
  font-size: 1.35rem;
  font-style: normal;
}
.festival-nav span {
  font-size: 0.9rem;
  line-height: 1.2;
}
.festival-nav small {
  display: block;
  margin-top: 0.2rem;
  color: #8fa5a8;
  font-size: 0.75rem;
}

.event-sections {
  background:
    radial-gradient(
      circle at 80% 0%,
      rgba(35, 89, 92, 0.35),
      transparent 32rem
    ),
    linear-gradient(90deg, rgba(227, 184, 91, 0.04) 1px, transparent 1px),
    linear-gradient(var(--night), #091c24 45%, #071319);
  background-size:
    auto,
    80px 100%,
    auto;
}
.event-section {
  min-height: 46rem;
  padding: clamp(5rem, 9vw, 8rem) max(5vw, calc((100vw - 78rem) / 2));
  position: relative;
  scroll-margin-top: 4.25rem;
  content-visibility: auto;
  contain-intrinsic-size: auto 760px;
}
.section-heading {
  max-width: 44rem;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-heading > span,
.event-copy > span {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
}
.section-heading h2,
.event-copy h2 {
  margin: 0.35rem 0 0.45rem;
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 1.1;
  letter-spacing: 0.08em;
}
.event-copy h2 {
  font-size: clamp(2.4rem, 4.2vw, 4.1rem);
  letter-spacing: 0.04em;
}
.section-heading p {
  margin: 0;
  color: #aebfc1;
}
.section-heading::after {
  content: '';
  display: block;
  width: 8rem;
  height: 1px;
  margin: 1.5rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.server-section {
  overflow: hidden;
}
.server-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    radial-gradient(
      circle at 50% 30%,
      rgba(155, 88, 35, 0.26),
      transparent 45%
    ),
    linear-gradient(180deg, transparent, rgba(3, 13, 18, 0.42));
}
.reservation-cta {
  position: relative;
  max-width: 68rem;
  margin: 1.25rem auto 0;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  border-top: 1px solid rgba(226, 181, 78, 0.32);
  border-bottom: 1px solid rgba(226, 181, 78, 0.22);
  background: rgba(7, 24, 30, 0.72);
}
.reservation-cta p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #b8c7c7;
}
.reservation-cta span {
  color: var(--gold);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
}
.reservation-cta strong {
  color: #f4ead1;
  font-family: 'SimSun', serif;
  font-size: 1rem;
}
.reserve-button {
  min-width: 13rem;
  border-radius: 0;
}
.fine-print {
  position: relative;
  max-width: 68rem;
  margin: 1rem auto 0;
  color: #83999d;
  font-size: 0.82rem;
}

.milestone-panel {
  position: relative;
  max-width: 68rem;
  margin: 1.75rem auto 0;
  padding: clamp(1.7rem, 3.5vw, 2.8rem) clamp(1rem, 3vw, 2.3rem) 2.6rem;
  overflow: hidden;
  border: 1px solid rgba(226, 181, 78, 0.48);
  background:
    radial-gradient(
      circle at 50% -15%,
      rgba(192, 70, 30, 0.42),
      transparent 42%
    ),
    linear-gradient(125deg, rgba(58, 17, 17, 0.97), rgba(6, 25, 32, 0.98) 76%);
  box-shadow:
    inset 0 1px rgba(255, 225, 153, 0.14),
    0 22px 48px rgba(0, 0, 0, 0.3);
}
.milestone-panel::before {
  content: '';
  position: absolute;
  inset: 0 10% auto;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #c84627 15%,
    #ffd77d 50%,
    #c84627 85%,
    transparent
  );
  box-shadow: 0 0 20px rgba(244, 170, 67, 0.48);
}
.milestone-heading {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0.22rem;
  text-align: center;
}
.milestone-heading::after {
  content: '';
  width: min(24rem, 70%);
  height: 1px;
  margin-top: 0.75rem;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(239, 197, 103, 0.55),
    transparent
  );
}
.milestone-heading small {
  color: #d9ad58;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
}
.milestone-heading h3 {
  margin: 0.22rem 0 0;
  color: #fff2d5;
  font-family: 'STKaiti', serif;
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}
.milestone-heading p {
  margin: 0.3rem 0 0;
  color: #c7d0ce;
  font-size: 0.95rem;
}
.milestone-live strong {
  display: inline-block;
  margin: 0 0.28rem;
  padding: 0 0.12rem;
  color: #ffe099;
  background: transparent;
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(255, 186, 69, 0.48);
}
.milestone-scroll {
  padding: 0.9rem 0.2rem 0.1rem;
  outline: none;
  scrollbar-color: #bd7b34 rgba(255, 255, 255, 0.08);
}
.milestone-scroll:focus-visible {
  box-shadow: 0 0 0 2px rgba(242, 201, 111, 0.55);
}
.milestone-rail {
  min-width: 0;
}
.milestone-upgrade-note {
  position: relative;
  margin: 1.15rem auto -0.4rem;
  color: #d8c89f;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  line-height: 1.65;
  text-align: center;
}
.milestone-upgrade-note::before,
.milestone-upgrade-note::after {
  content: '';
  display: inline-block;
  width: clamp(1.8rem, 5vw, 4.5rem);
  height: 1px;
  margin: 0 0.8rem 0.25em;
  background: linear-gradient(90deg, transparent, rgba(228, 188, 94, 0.55));
}
.milestone-upgrade-note::after {
  background: linear-gradient(90deg, rgba(228, 188, 94, 0.55), transparent);
}
.milestone-progress {
  width: 80%;
  height: 0.32rem;
  display: block;
  overflow: hidden;
  margin: 1.95rem 10% 0;
  border: 0;
  border-radius: 1rem;
  background: rgba(115, 139, 136, 0.44);
  box-shadow: 0 0 0 1px rgba(255, 211, 111, 0.18);
}
.milestone-progress::-webkit-progress-bar {
  background: rgba(115, 139, 136, 0.44);
}
.milestone-progress::-webkit-progress-value {
  border-radius: 1rem;
  background: linear-gradient(90deg, #9e3325, #ed762f 48%, #ffd36f);
  box-shadow: 0 0 14px rgba(242, 201, 111, 0.72);
}
.milestone-progress::-moz-progress-bar {
  background: linear-gradient(90deg, #9e3325, #ed762f 48%, #ffd36f);
}
.milestone-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: -2.2rem;
}
.milestone-card {
  position: relative;
  min-width: 0;
  padding: 0 0.42rem;
  text-align: center;
}
.milestone-target {
  position: relative;
  z-index: 2;
  display: block;
  width: fit-content;
  min-width: 7.25rem;
  margin: 0 auto 0.25rem;
  padding: 0.27rem 0.7rem 0.31rem;
  border: 1px solid rgba(237, 196, 104, 0.58);
  color: #ffe09a;
  background: linear-gradient(180deg, #324c4e, #173338);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.12),
    0 4px 10px rgba(0, 0, 0, 0.28);
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.milestone-target::before,
.milestone-target::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0.38rem;
  height: 0.38rem;
  border: 1px solid #d9b667;
  background: #263f42;
  transform: translateY(-50%) rotate(45deg);
}
.milestone-target::before {
  left: -0.25rem;
}
.milestone-target::after {
  right: -0.25rem;
}
.milestone-dot {
  position: relative;
  z-index: 2;
  display: block;
  width: 0.74rem;
  height: 0.74rem;
  margin: 0 auto 0.75rem;
  border: 2px solid #c78c42;
  background: #10242a;
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(2, 12, 16, 0.62);
}
.milestone-card.reached .milestone-dot {
  border-color: #ffe09a;
  background: linear-gradient(135deg, #fff5bd, #e89232 58%, #a83521);
  box-shadow:
    0 0 0 3px rgba(87, 39, 23, 0.62),
    0 0 14px rgba(255, 186, 69, 0.78);
}
.milestone-banner {
  position: relative;
  min-height: 13.2rem;
  padding: 1.55rem 0.75rem 1.9rem;
  border-inline: 1px solid rgba(225, 185, 91, 0.46);
  background: linear-gradient(
    180deg,
    rgba(231, 206, 151, 0.16),
    rgba(37, 61, 61, 0.76) 55%,
    rgba(19, 42, 46, 0.92)
  );
  clip-path: polygon(0 0, 100% 0, 100% 88%, 76% 96%, 50% 100%, 24% 96%, 0 88%);
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.28));
}
.milestone-banner::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 0.42rem;
  border-top: 2px solid #f0c969;
  border-bottom: 1px solid #9f642d;
  background: linear-gradient(90deg, #7f291e, #e2a541 50%, #7f291e);
}
.milestone-banner::after {
  content: '';
  position: absolute;
  inset: 0.8rem 0.5rem 1.05rem;
  border: 1px solid rgba(236, 201, 116, 0.16);
  pointer-events: none;
}
.reward-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 4.75rem;
  height: 4.75rem;
  margin: 0 auto 0.85rem;
  border: 2px solid rgba(236, 199, 109, 0.78);
  border-radius: 50%;
  background-color: #0a1a1d;
  background-image: url('https://img.fhyx.com/fxegames/sgm/gyysh/reservation-rewards-reference.png');
  background-repeat: no-repeat;
  background-size: 876px 207px;
  box-shadow:
    0 0 0 6px rgba(10, 31, 35, 0.72),
    0 9px 20px rgba(0, 0, 0, 0.42);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}
.milestone-card:hover .reward-icon {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 6px rgba(10, 31, 35, 0.72),
    0 12px 24px rgba(0, 0, 0, 0.48),
    0 0 18px rgba(232, 166, 61, 0.24);
}
.reward-icon-1 {
  background-position: -71px -76px;
}
.reward-icon-2 {
  background-position: -237px -76px;
}
.reward-icon-3 {
  background-position: -406px -76px;
}
.reward-icon-4 {
  background-position: -574px -76px;
}
.reward-icon-5 {
  background-position: -743px -76px;
}
.milestone-banner b,
.milestone-banner em {
  position: relative;
  z-index: 1;
  display: block;
}
.milestone-banner b {
  min-height: 3.2em;
  color: #f8db8b;
  font-size: 0.84rem;
  line-height: 1.55;
}
.milestone-status {
  width: fit-content;
  margin: 0.55rem auto 0;
  padding: 0.2rem 0.62rem;
  border-top: 1px solid rgba(239, 196, 97, 0.28);
  border-bottom: 1px solid rgba(239, 196, 97, 0.28);
  color: #859a9c;
  font-size: 0.7rem;
  font-style: normal;
  letter-spacing: 0.12em;
}
.milestone-card.reached .milestone-status {
  color: #ffe098;
}

.image-event {
  min-height: min(54rem, 82vw);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.event-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#boss .event-art {
  inset: 0 auto 0 -8%;
  width: 108%;
  max-width: none;
  transform: none;
  object-position: center;
}
.event-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(4, 15, 20, 0.94) 0%,
      rgba(5, 18, 24, 0.78) 37%,
      rgba(5, 18, 24, 0.18) 72%
    ),
    linear-gradient(
      0deg,
      #07151d 0%,
      transparent 20%,
      transparent 80%,
      #07151d 100%
    );
}
.image-event.reverse {
  justify-content: flex-end;
}
.image-event.reverse .event-overlay {
  background:
    linear-gradient(
      270deg,
      rgba(4, 15, 20, 0.93) 0%,
      rgba(5, 18, 24, 0.74) 42%,
      rgba(5, 18, 24, 0.1) 72%
    ),
    linear-gradient(
      0deg,
      #07151d 0%,
      transparent 20%,
      transparent 80%,
      #07151d 100%
    );
}
.event-copy {
  width: min(38rem, 48%);
  padding: clamp(1.5rem, 4vw, 3rem);
  border-left: 1px solid rgba(231, 192, 100, 0.48);
  background: rgba(5, 20, 26, 0.86);
}
.event-copy p {
  color: #d4dcda;
}
.event-meta {
  margin: 1.6rem 0;
}
.event-meta div {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(219, 184, 101, 0.22);
}
.event-meta dt {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 0.18em;
}
.event-meta dd {
  margin: 0.15rem 0 0;
  color: #f2ead5;
}
.pending {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(229, 183, 82, 0.35);
  color: #d8bd7f !important;
  font-size: 0.82rem;
}

.letter-section {
  background: radial-gradient(
    circle at 50% 10%,
    rgba(226, 178, 76, 0.13),
    transparent 26rem
  );
  padding-bottom: 0!important;
}
.letter-intro {
  max-width: 66rem;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  border-top: 1px solid rgba(222, 186, 101, 0.35);
  border-bottom: 1px solid rgba(222, 186, 101, 0.35);
}
.letter-intro > * {
  margin: 0;
  padding: 1.4rem 1.6rem;
}
.letter-intro div {
  border-right: 1px solid rgba(222, 186, 101, 0.25);
}
.letter-intro small {
  display: block;
  color: var(--gold);
}
.letter-intro strong {
  font-family: 'SimSun', serif;
}
.reward-block {
  max-width: 66rem;
  margin: 2rem auto;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  border: 1px solid rgba(217, 184, 108, 0.28);
  background: rgba(10, 31, 38, 0.72);
}
.reward-block h3 {
  margin: 0 0 1rem;
  color: var(--gold-bright);
  font-family: 'STKaiti', serif;
  font-size: 1.65rem;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
}
th,
td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(214, 186, 119, 0.16);
}
th {
  color: #f2d58d;
  background: rgba(190, 127, 39, 0.12);
  font-weight: 500;
}
td {
  color: #cbd6d3;
}
tbody tr:hover td {
  background: rgba(229, 184, 86, 0.06);
}
.dungeon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.dungeon-grid article {
  padding: 1.2rem;
  border: 1px solid rgba(221, 185, 98, 0.2);
  background: rgba(2, 14, 19, 0.3);
}
.dungeon-grid b {
  color: #f2d183;
  font-size: 1.12rem;
}
.dungeon-grid p {
  margin: 0.45rem 0;
  color: #bdcac8;
}
.dungeon-grid strong {
  color: #fff0be;
}

.season-section {
  min-height: 42rem;
}
.season-list {
  max-width: 60rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.season-list article {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1.4rem;
  padding: 1.5rem;
  border: 1px solid rgba(219, 184, 99, 0.3);
  background: linear-gradient(
    120deg,
    rgba(158, 51, 31, 0.18),
    rgba(10, 35, 42, 0.8)
  );
}
.season-list article > b {
  color: rgba(244, 206, 120, 0.5);
  font-family: Georgia, serif;
  font-size: 3.4rem;
  line-height: 1;
}
.season-list h3 {
  margin: 0 0 0.55rem;
  color: #f1d696;
  font-family: 'STKaiti', serif;
  font-size: 1.7rem;
}
.season-list p {
  margin: 0.2rem 0;
  color: #becac8;
}

.reservation-dialog {
  width: min(94vw, 41rem);
  max-height: 94vh;
  padding: 0;
  overflow: visible;
  border: 0;
  color: #4a3b32;
  background: transparent;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}
.reservation-dialog::backdrop {
  background: rgba(18, 20, 20, 0.66);
  backdrop-filter: blur(5px);
}
.reservation-dialog-card {
  position: relative;
  min-height: 24rem;
  padding: clamp(2.5rem, 6vw, 3.8rem) clamp(1.5rem, 6vw, 4.6rem) 2.6rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 82% 8%,
      rgba(184, 145, 83, 0.13),
      transparent 25%
    ),
    radial-gradient(circle at 8% 90%, rgba(89, 99, 91, 0.12), transparent 30%),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.98),
      rgba(239, 237, 230, 0.98)
    );
  text-align: center;
}
.reservation-dialog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      118deg,
      transparent 0 28%,
      rgba(115, 103, 86, 0.045) 28.2% 28.5%,
      transparent 28.7% 55%,
      rgba(180, 144, 85, 0.05) 55.2% 55.5%,
      transparent 55.7%
    ),
    radial-gradient(
      ellipse at 50% 115%,
      rgba(60, 72, 68, 0.09),
      transparent 52%
    );
  pointer-events: none;
}
.reservation-dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  z-index: 3;
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  color: #76675b;
  background: rgba(255, 255, 255, 0.36);
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
}
.reservation-dialog-state {
  position: relative;
  z-index: 1;
  width: 100%;
}
.reservation-dialog-state[hidden],
.login-form-panel[hidden] {
  display: none;
}
.reservation-dialog-state small {
  display: block;
  margin-bottom: 0.55rem;
  color: #a57a3d;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
}
.reservation-dialog-state h2 {
  margin: 0;
  color: #5b3217;
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: clamp(2rem, 7vw, 3rem);
  letter-spacing: 0.12em;
}
.reservation-dialog-state > p {
  margin: 0.7rem 0 1.65rem;
  color: #6d645d;
}
.reservation-dialog-action {
  min-width: 12rem;
}
.reservation-check-spinner {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
  display: block;
  border: 2px solid rgba(155, 111, 55, 0.18);
  border-top-color: #a77a3c;
  border-radius: 50%;
  animation: reservation-spin 0.8s linear infinite;
}
.reservation-success-mark {
  width: 3.6rem;
  height: 3.6rem;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border: 1px solid #ad7e3e;
  border-radius: 50%;
  color: #85521e;
  background: rgba(207, 171, 106, 0.18);
  box-shadow: 0 0 24px rgba(151, 107, 45, 0.16);
  font-size: 2rem;
}
.reservation-login-panel {
  max-width: 33.5rem;
}
.login-title-ornament {
  width: min(100%, 29rem);
  height: 1.4rem;
  margin: 0 auto -0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-title-ornament::before,
.login-title-ornament::after {
  content: '';
  width: 7.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, #bc8d49);
}
.login-title-ornament::after {
  transform: scaleX(-1);
}
.login-title-ornament span {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0 0.7rem;
  border: 1px solid rgba(166, 117, 55, 0.55);
  transform: rotate(45deg);
}
.login-tabs {
  margin: 1.55rem 0 1.4rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}
.login-tab {
  border: 0;
  padding: 0.2rem 0;
  color: #322b27;
  background: transparent;
  cursor: pointer;
  font-size: 1.05rem;
}
.login-tab i {
  width: 0.82rem;
  height: 0.82rem;
  margin-right: 0.45rem;
  display: inline-block;
  border: 3px solid #75675e;
  border-radius: 50%;
  vertical-align: -0.05rem;
}
.login-tab.active i {
  border-color: #554237;
  background: #554237;
  box-shadow: inset 0 0 0 2px #eeeae1;
}
.login-form {
  display: grid;
  gap: 0.8rem;
}
.login-form-panel {
  display: grid;
  gap: 0.8rem;
}
.login-form input {
  width: 100%;
  height: 3.35rem;
  border: 1px solid transparent;
  padding: 0 1.2rem;
  color: #3f3732;
  background: rgba(117, 115, 109, 0.11);
  outline: none;
  font-size: 1.05rem;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.login-form input:focus {
  border-color: rgba(157, 111, 52, 0.55);
  background: rgba(255, 255, 255, 0.62);
}
.login-captcha-row,
.login-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 8rem 2.35rem;
  gap: 0.55rem;
  align-items: center;
}
.login-code-row {
  grid-template-columns: minmax(0, 1fr) 9.2rem;
}
.captcha-code {
  height: 3.35rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(92, 79, 67, 0.28);
  color: #30251e;
  background:
    repeating-linear-gradient(
      -12deg,
      rgba(54, 68, 92, 0.1) 0 2px,
      transparent 2px 12px
    ),
    #ddd8cb;
  font-family: Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.12em;
  text-decoration: line-through rgba(115, 45, 35, 0.5);
}
.captcha-refresh,
.login-code-row button {
  height: 3.35rem;
  border: 0;
  color: #5a3d28;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}
.captcha-refresh {
  font-size: 1.6rem;
}
.login-code-row button {
  padding: 0 0.8rem;
  border-left: 1px solid rgba(108, 86, 66, 0.32);
  font-size: 0.95rem;
}
.login-code-row button:disabled {
  color: #998f86;
  cursor: default;
}
.login-error {
  min-height: 1.2rem;
  margin: -0.15rem 0 0;
  color: #a6402a;
  font-size: 0.82rem;
  text-align: left;
}
.login-submit {
  width: min(16rem, 100%);
  min-height: 3.5rem;
  margin: -0.1rem auto 0;
  border: 1px solid rgba(129, 82, 31, 0.38);
  color: #fffdf7;
  background: linear-gradient(135deg, #b18a4d, #997036 55%, #c6a267);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.09),
    0 10px 22px rgba(116, 78, 35, 0.2);
  cursor: pointer;
  font-family: 'STKaiti', 'KaiTi', serif;
  font-size: 1.35rem;
  letter-spacing: 0.15em;
}
.login-agreement {
  margin: 0.55rem 0 0;
  color: #4f4741;
  font-size: 0.88rem;
}
.login-agreement a {
  color: #b3482e;
}
@keyframes reservation-spin {
  to {
    transform: rotate(360deg);
  }
}

.site-footer {
  padding: 3rem 1rem 5rem;
  text-align: center;
  border-top: 1px solid rgba(218, 179, 87, 0.2);
  background: #040e13;
}
.site-footer p {
  margin: 0;
  color: #e7c46f;
  font-family: 'STKaiti', serif;
  font-size: 1.45rem;
  letter-spacing: 0.14em;
}
.site-footer small {
  color: #74898e;
}
.event-home {
  position: fixed;
  right: 1rem;
  bottom: 7.3rem;
  z-index: 40;
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(246, 211, 126, 0.55);
  border-radius: 50%;
  background: rgba(83, 27, 22, 0.9);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}
.event-home span {
  width: 2em;
  color: #f5d993;
  font-size: 0.78rem;
  line-height: 1.05;
  text-align: center;
}
.to-top {
  position: fixed;
  right: 1rem;
  bottom: 2.7rem;
  z-index: 40;
  width: 3.6rem;
  height: 3.6rem;
  border: 1px solid rgba(246, 211, 126, 0.35);
  border-radius: 50%;
  color: #e7c776;
  background: rgba(6, 27, 34, 0.9);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

@media (max-width: 900px) {
  .festival-nav {
    grid-template-columns: repeat(6, 9.4rem);
  }
  .image-event {
    min-height: 48rem;
    align-items: flex-end;
  }
  .event-copy {
    width: min(100%, 42rem);
    margin: 0 auto;
    border-left: 0;
    border-top: 1px solid rgba(231, 192, 100, 0.48);
  }
  .image-event.reverse {
    justify-content: center;
  }
  #boss .event-art {
    inset: 0;
    width: 100%;
    max-width: 100%;
    object-position: 42% center;
  }
  .letter-intro {
    grid-template-columns: 1fr;
  }
  .letter-intro div {
    border-right: 0;
    border-bottom: 1px solid rgba(222, 186, 101, 0.25);
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 3.8rem;
  }
  body {
    font-size: 15px;
  }
  .topbar {
    height: 4rem;
    padding: 0 0.8rem;
    background: rgba(5, 15, 20, 0.88);
  }
  .brand img {
    width: 8rem;
  }
  .top-actions {
    gap: 0.35rem;
  }
  .top-actions .button {
    min-height: 2.35rem;
    padding: 0.4rem 0.72rem;
    font-size: 0.78rem;
  }
  .hero {
    min-height: 48rem;
    background-image: url('https://img.fhyx.com/fxegames/sgm/gyysh/hero-kv-midautumn-mobile-v3.png');
    background-position: center top;
  }
  .hero-effects {
    display: none;
  }
  .hero-shade {
    background:
      linear-gradient(
        0deg,
        var(--night),
        rgba(3, 13, 20, 0.18) 40%,
        rgba(3, 13, 20, 0.35)
      ),
      linear-gradient(90deg, rgba(3, 13, 20, 0.72), transparent 80%);
  }
  .hero-content {
    align-self: end;
    padding: 0 0 6.8rem;
  }
  .hero-title-art {
    inset: 17% auto auto 50%;
    width: 23rem;
    height: 19rem;
    background-image: url('https://img.fhyx.com/fxegames/sgm/gyysh/m_text.png');
    transform: translateX(-50%);
    object-fit: contain;
    object-position: center;
  }
  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }
  .hero h1 {
    font-size: clamp(2.75rem, 14vw, 4.3rem);
  }
  .hero h1 span + span {
    margin-left: 0.22em;
  }
  .hero-lead {
    margin: 1.35rem 0;
    font-size: 1rem;
  }
  .hero-actions {
    width: 100%;
    gap: 0.55rem;
  }
  .hero-actions .enter-button {
    width: 9.4rem;
    height: 3.65rem;
    padding-inline: 0.55rem;
  }
  .reservation-dialog {
    width: min(94vw, 32rem);
  }
  .reservation-dialog-card {
    min-height: 20rem;
    padding: 2.65rem 1rem 1.65rem;
  }
  .login-tabs {
    margin: 1.2rem 0 1rem;
    gap: 1.3rem;
  }
  .login-form input,
  .captcha-code,
  .captcha-refresh,
  .login-code-row button {
    height: 3rem;
  }
  .login-captcha-row {
    grid-template-columns: minmax(0, 1fr) 6.5rem 2.2rem;
    gap: 0.35rem;
  }
  .login-code-row {
    grid-template-columns: minmax(0, 1fr) 7.6rem;
  }
  .login-code-row button {
    padding: 0 0.35rem;
    font-size: 0.84rem;
  }
  .festival-nav {
    top: 0;
    grid-template-columns: repeat(6, 8.2rem);
  }
  .festival-nav a {
    min-width: 8.2rem;
    padding: 0.6rem 0.4rem;
  }
  .event-section {
    min-height: 0;
    padding: 5.2rem 5vw;
  }
  .section-heading {
    margin-bottom: 2rem;
  }
  .section-heading h2,
  .event-copy h2 {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }
  .reservation-cta {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  .reservation-cta p {
    flex-direction: column;
    gap: 0.2rem;
  }
  .reserve-button {
    width: min(100%, 18rem);
  }
  .milestone-heading {
    align-items: center;
    flex-direction: column;
    gap: 0.35rem;
    text-align: center;
  }
  .milestone-scroll {
    overflow-x: auto;
    padding-bottom: 0.7rem;
  }
  .milestone-rail {
    min-width: 46rem;
  }
  .milestone-upgrade-note {
    /* max-width: 20rem; */
    margin-top: 0.85rem;
    /* padding-inline: 0.4rem; */
    font-size: 0.55rem;
  }
  .milestone-upgrade-note::before,
  .milestone-upgrade-note::after {
    width: 1.25rem;
    margin-inline: 0.38rem;
  }
  .milestone-scroll,
  .table-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .milestone-scroll::-webkit-scrollbar,
  .table-scroll::-webkit-scrollbar {
    display: none;
  }
  .image-event {
    min-height: 44rem;
    padding: 0 5vw 3.5rem;
  }
  .event-art {
    height: 64%;
    top: 0;
    object-position: 62% center;
  }
  .image-event.reverse .event-art {
    object-position: 65% center;
  }
  #boss .event-art {
    inset: 0;
    width: 100%;
    max-width: 100%;
    object-position: 43% center;
  }
  .event-overlay,
  .image-event.reverse .event-overlay {
    background: linear-gradient(
      0deg,
      #07151d 0%,
      rgba(7, 21, 29, 0.94) 42%,
      rgba(7, 21, 29, 0.08) 80%,
      rgba(7, 21, 29, 0.15)
    );
  }
  .event-copy {
    padding: 1.3rem;
    background: rgba(5, 20, 26, 0.84);
  }
  .dungeon-grid {
    grid-template-columns: 1fr;
  }
  .reward-block {
    padding: 1rem;
  }
  .season-list article {
    grid-template-columns: 3.3rem 1fr;
    gap: 0.8rem;
    padding: 1.1rem;
  }
  .season-list article > b {
    font-size: 2.5rem;
  }
  .event-home,
  .to-top {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
