@charset "UTF-8";
:root {
  color-scheme: dark;
  scrollbar-gutter: stable;
  --gold: #f0d389;
  --paper: #f2eee1;
  --muted: #c4bdab;
  --line: rgba(240, 211, 137, .42);
  scrollbar-color: #6f5638 #141819;
}
* { box-sizing: border-box; }
body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 280px;
  background: #101319;
  color: var(--paper);
  font: 14px/1.7 "Microsoft YaHei", sans-serif;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { width: min(1240px, calc(100% - 62px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 40; inset: 8px auto auto 8px; padding: 6px 12px; background: #17191c; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.wallpaper, .wash, .fog, .ambient-particles { pointer-events: none; position: fixed; }
.wallpaper {
  z-index: -4; inset: 0;
  background: linear-gradient(90deg, rgba(5,9,11,.79), rgba(9,13,15,.17) 43%, rgba(7,10,12,.62)), url("hero-night-generated.png") center / cover no-repeat;
  filter: saturate(.88) contrast(1.04);
}
.wash {
  z-index: -3; inset: 0;
  background: radial-gradient(ellipse at 47% 38%, transparent 25%, #0004 72%, #000a), linear-gradient(0deg, #030809b8, transparent 35%, #0006);
}
.fog {
  z-index: -2; inset: auto -12% 14%; height: 24%;
  opacity: .22; filter: blur(17px);
  background: linear-gradient(90deg, transparent, #efefe2a6 26%, transparent 55%, #efefe266 76%, transparent);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift { to { transform: translateX(8%) scaleY(1.15); } }
.ambient-particles { z-index: -1; inset: 0; overflow: hidden; }
.ambient-particles i {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: #edb86c; box-shadow: 0 0 11px 3px #f28e3980;
  opacity: 0; animation: lantern-rise linear infinite;
}
@keyframes lantern-rise {
  0% { transform: translate3d(0, 24vh, 0) scale(.65); opacity: 0; }
  15% { opacity: .66; }
  80% { opacity: .31; }
  100% { transform: translate3d(20px, -76vh, 0) scale(1.15); opacity: 0; }
}
.page-loader {
  pointer-events: none; position: fixed; z-index: 30; inset: 0; display: grid; place-items: center;
  background: #101313; color: #dfca91; animation: unfold .8s ease both;
}
.loader-seal {
  display: grid; place-items: center; width: 66px; height: 66px; border: 1px solid #d5b56b;
  border-radius: 50%; box-shadow: 0 0 0 5px #d5b56b1a, 0 0 30px #d5b56b38;
  font: 32px KaiTi, STKaiti, serif;
}
@keyframes unfold { 55% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

.top { border-bottom: 1px solid #fff2; background: #04070991; backdrop-filter: blur(12px); color: #c9c8bc; font-size: 11px; letter-spacing: .15em; }
.top .wrap { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top a { color: #d9c388; }
.top a:hover { color: #ffedb7; }
.visit-links, .signed-in { display: flex; align-items: center; gap: 15px; }
.signed-in { min-width: 0; gap: 6px; }
.signed-in img, .user-placeholder { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 50%; }
#siteUserLabel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; color: var(--gold); font-family: KaiTi, STKaiti, serif; text-shadow: 0 2px 9px #000; }
.mark {
  position: relative; overflow: hidden; display: grid; place-items: center;
  width: 45px; height: 45px; border: 1px solid #e3b76d; border-radius: 50%;
  background: #0005; box-shadow: 0 0 0 4px #e3b76d1f, 0 0 25px #eea64a47;
}
.mark::after { position: absolute; content: ""; inset: -35%; border-radius: 50%; background: radial-gradient(circle, #d8b96c6b, transparent 62%); opacity: 0; transform: scale(.4); transition: .45s; }
.brand:hover .mark::after { opacity: 1; transform: scale(1.1); }
.brand strong { font-size: 26px; letter-spacing: .17em; font-weight: normal; }
.brand small { display: block; margin-top: -4px; color: #b9baaf; font: 9px Arial, sans-serif; letter-spacing: .29em; }
.links { display: flex; flex-wrap: wrap; gap: 4px; }
.links a { position: relative; display: block; padding: 9px clamp(7px, 1.1vw, 16px); color: #eee9dc; font: 17px KaiTi, STKaiti, serif; }
.links a::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 3px; height: 1px; background: linear-gradient(90deg, transparent, #e9ca86, transparent); transform: scaleX(0); transition: transform .3s ease; }
.links a:hover, .links .active { color: #ffeab0; background: #0004; text-shadow: 0 0 12px #f0d3894d; }
.links a:hover::after, .links .active::after { transform: scaleX(1); }

.hero { min-height: clamp(290px, 44vh, 420px); padding: clamp(44px, 8vh, 85px) 0 44px; }
.copy { max-width: 570px; }
.copy .eyebrow { color: #e6ce91; letter-spacing: .34em; font-size: 12px; text-shadow: 0 2px 7px #000; }
.copy h1 { margin: 10px 0; color: #f4efdf; font: clamp(44px, 6vw, 76px)/1.08 KaiTi, STKaiti, serif; letter-spacing: .13em; text-shadow: 0 5px 18px #000; }
.copy p { max-width: 440px; color: #dddacf; font-size: 15px; text-shadow: 0 2px 8px #000; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 22px; }
.btn {
  position: relative; overflow: hidden; padding: 10px 24px; border: 1px solid var(--line);
  color: #fff2c4; background: #161919a8; backdrop-filter: blur(10px);
  font: 16px KaiTi, STKaiti, serif; transition: .25s;
}
.btn::after { content: ""; position: absolute; inset: 0 auto 0 -130%; width: 55%; transform: skewX(-22deg); background: linear-gradient(90deg, transparent, #fff5c761, transparent); transition: .55s; }
.btn:hover { transform: translateY(-3px); border-color: #ffe29a; box-shadow: 0 9px 26px #0005, 0 0 17px #f0d38933; }
.btn:hover::after { left: 160%; }
.btn.primary { background: linear-gradient(120deg, #8a4e2ddb, #36251cc2); }

.home-layout { display: grid; grid-template-columns: minmax(210px, 285px) minmax(0, 1fr); align-items: start; gap: 24px; }
.home-content { display: grid; gap: 16px; min-width: 0; }
.side {
  border: 1px solid #f0d3897a; background: #16110ebf;
  box-shadow: 0 15px 30px #0006, inset 0 0 0 1px #fff1c014; backdrop-filter: blur(15px);
}
.side-title {
  margin: 0; padding: 12px; text-align: center; color: #f1d894;
  background: linear-gradient(90deg, #4d2e19cc, #845726b8, #4d2e19cc);
  border-bottom: 1px solid var(--line); font: 18px KaiTi, STKaiti, serif; letter-spacing: .2em;
}
.side a {
  display: block; padding: 8px 15px; color: #d4c6a1;
  border-bottom: 1px solid #efd38f21; transition: color .2s, background-color .2s;
}
.side a::before { content: "›"; color: #bf9552; margin-right: 8px; }
.side a:hover, .side .active { color: #ffe8ad; background: linear-gradient(90deg, #b47e395c, transparent); box-shadow: inset 3px 0 #d2a45c; }
.server { margin: 12px; padding: 10px; color: #c9c8b8; border: 1px solid #eed9a35c; background: #0c181799; font-size: 12px; }
.server h3 { margin: 0 0 4px; color: #e4cd92; font: 16px KaiTi, STKaiti, serif; }
.server p { margin: 0; }

.quickbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.quick-card {
  display: grid; align-content: center; min-height: 116px; padding: 14px 8px 10px; text-align: center;
  color: #f1ead6; border: 1px solid #edd59e7a; background: #1017179e;
  backdrop-filter: blur(15px); transition: .25s;
}
.quick-card:hover { transform: translateY(-7px); background: #6b4527b3; box-shadow: 0 12px 23px #0006, 0 0 17px #f0d3892e; }
.sigil {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px;
  margin: 0 auto 8px; border: 1px solid #d1b46e; color: #f3d993; background: #030a0a91; transition: .25s;
}
.quick-card:hover .sigil { transform: rotate(-5deg) scale(1.1); background: #81543b; }
.quick-card strong { font: 17px KaiTi, STKaiti, serif; }
.quick-card small { color: #d3c8af; font-size: 11px; }
/* Original line icons for the four quick links. */
.sigil span,.sigil span:before,.sigil span:after{content:"";position:absolute;display:block;border:1px solid currentColor}
.sigil-forum span{width:17px;height:12px;border-radius:2px}
.sigil-forum span:before{width:3px;height:3px;left:3px;top:3px;border-radius:50%;box-shadow:5px 0 currentColor}
.sigil-forum span:after{width:5px;height:5px;left:5px;bottom:-6px;border-width:0 1px 1px 0;transform:skewY(-35deg)}
.sigil-event span{width:16px;height:16px;border-radius:50%}
.sigil-event span:before{width:1px;height:22px;left:7px;top:-4px;transform:rotate(45deg)}
.sigil-event span:after{width:4px;height:4px;right:-3px;top:-3px;border-radius:50%;background:currentColor}
.sigil-download span{width:16px;height:13px;border-radius:1px}
.sigil-download span:before{width:8px;height:8px;left:3px;top:-7px;border-width:1px 1px 0 0;transform:rotate(135deg)}
.sigil-download span:after{width:22px;height:1px;left:-4px;bottom:-5px;border-width:1px 0 0}
.sigil-gift span{width:18px;height:13px;top:2px}
.sigil-gift span:before{width:20px;height:4px;left:-2px;top:-5px}
.sigil-gift span:after{width:1px;height:18px;left:8px;top:-5px}

.below-content { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(230px, .85fr); gap: 16px; }
.panel { min-width: 0; border: 1px solid #edd59e61; background: #101616b8; backdrop-filter: blur(14px); box-shadow: 0 12px 24px #0004; }
.section-title {
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px; min-height: 43px;
  padding: 8px 13px; border-bottom: 1px solid #edd59e61; color: #f0d99b;
}
.section-title::before { content: ""; width: 3px; height: 20px; background: #c89558; box-shadow: 0 0 10px #cf934f73; }
.section-title h2 { margin: 0; font: 22px KaiTi, STKaiti, serif; letter-spacing: .12em; }
.section-title a { margin-left: auto; color: #e8c88b; font-size: 12px; }
.section-title a:hover, .recruit a:hover { color: #fff1bd; }
.news-filters { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 13px 2px; }
.news-filters button { padding: 3px 8px; border: 1px solid transparent; color: #c7c1b0; background: transparent; cursor: pointer; font: inherit; font-size: 12px; }
.news-filters button:hover, .news-filters button[aria-pressed="true"] { color: #f5d999; border-color: #e6c06f73; background: #94603033; }
.news-list a {
  display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 12px;
  padding: 10px 13px; border-bottom: 1px solid #ebdaaa24;
}
.news-list a:last-child { border-bottom: 0; }
.news-list a:hover { color: #ffe3a0; background: linear-gradient(90deg, #9c693a24, transparent); }
.news-list .category { color: #dfad7e; font-size: 11px; }
.news-list .title { overflow-wrap: anywhere; }
.news-list time, .news-status { display: block; color: var(--muted); font-size: 12px; }
.news-status { margin: 0; padding: 10px 13px 14px; }
.recruit { padding-bottom: 14px; }
.recruit p { margin: 14px 15px; }
.recruit > a { margin-inline: 15px; color: #e6c887; }
.mottos { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mottos > div { padding: 12px 15px; border-left: 2px solid #d39d70b8; background: #101616a8; transition: .22s; }
.mottos > div:hover { transform: translateY(-4px); background: #5e412c9e; }
.mottos b { display: block; color: #f1e5c8; font: 20px KaiTi, STKaiti, serif; }
.mottos span { color: #d5ceba; font-size: 12px; }
.forum-summary { grid-column: 1 / -1; }
.forum-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: 10px; padding: 12px; }
.forum-boards a { padding: 8px 10px; border: 1px solid #edd59e42; }
.forum-boards a:hover { color: #ffe3a0; background: #9c693a24; }
.forum-boards small { display: block; color: var(--muted); }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; padding: 16px 0 25px; color: var(--muted); border-top: 1px solid #f0d38938; font-size: 12px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.to-top { position: fixed; z-index: 8; right: 24px; bottom: 24px; width: 36px; height: 36px; border: 1px solid #f0d38980; color: #f0d28f; background: #101413cf; backdrop-filter: blur(10px); cursor: pointer; font: 20px KaiTi, STKaiti, serif; }
.to-top:hover { background: #704827df; box-shadow: 0 0 18px #e1ae5c40; }
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.visible { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.visible:hover { transition: .25s; }

@media (max-width: 940px) {
  .wrap { width: calc(100% - 30px); }
  .home-layout { grid-template-columns: minmax(185px, 225px) minmax(0, 1fr); gap: 15px; }
  .quickbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .below-content { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .nav { min-height: auto; padding-block: 16px 10px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .links { justify-content: space-between; width: 100%; gap: 2px; }
  .links a { padding-inline: 5px; }
  .hero { min-height: 285px; padding: 44px 0 28px; }
  .home-layout { grid-template-columns: minmax(0, 1fr); }
  .mottos { gap: 7px; }
  .mottos > div { padding: 9px 7px; }
  .mottos b { font-size: 16px; }
  .to-top { right: 15px; bottom: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fog, .ambient-particles, .page-loader { display: none; }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .quick-card:hover, .quick-card:hover .sigil, .mottos > div:hover { transform: none; }
}
