:root {
  --bg-primary: #0b0d16;
  --bg-secondary: rgb(24 28 45 / 85%);
  --bg-panel: rgb(27 32 54 / 88%);
  --bg-panel-solid: #1f2338;
  --bg-glow: radial-gradient(circle, rgb(99 157 255 / 25%), transparent 65%);
  --accent-gold: #e6c88b;
  --accent-azure: #87a8ff;
  --accent-pink: #d68cdc;
  --text-primary: #f5f2ff;
  --text-secondary: rgb(232 229 255 / 72%);
  --border-glass: rgb(135 168 255 / 45%);
  --shadow-deep: 0 30px 90px rgb(6 0 45 / 45%);
  --global-nav-height: 74px;
  --global-nav-mobile-warning-height: 40px;
  --global-nav-bg: rgb(12 16 28 / 88%);
  --global-nav-border: rgb(135 168 255 / 38%);
  --global-nav-shadow: 0 20px 40px rgb(4 6 20 / 45%);
  --global-nav-blur: 26px;
  --transition-standard: .35s ease;

  color-scheme: dark;
  font-family: "Noto Serif SC", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: var(--accent-azure);
  transition: color var(--transition-standard);
  text-decoration: none;
}

a:hover,
.a:focus-visible {
  color: var(--accent-gold);
}

html,
body {
  min-height: 100vh;
}

body {
  position: relative;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--global-nav-height);
}

.global-nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--global-nav-height);
  background: var(--global-nav-bg);
  backdrop-filter: blur(var(--global-nav-blur));
  border-bottom: 1px solid var(--global-nav-border);
  box-shadow: var(--global-nav-shadow);
  padding-inline: clamp(1.8rem, 5vw, 3.2rem);
}

.global-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 96vw);
  gap: clamp(1rem, 2vw, 2rem);
}

.global-nav__brand {
  display: flex;
  flex-direction: column;
  transition: opacity  .3s ease, transform  .3s ease;
  gap: .25rem;
}

.global-nav__brand:hover {
  opacity: .8;
  transform: translateY(-1px);
}

.global-nav__brand-title {
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  font-family: Cinzel, serif;
  letter-spacing: .34rem;
  text-transform: uppercase;
}

.global-nav__brand-subtitle {
  color: var(--text-secondary);
  font-size: .85rem;
  letter-spacing: .28rem;
  text-transform: uppercase;
}

.global-nav__actions {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
}

.global-nav__button {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.4rem;
  border: 1px solid rgb(135 168 255 / 40%);
  border-radius: 999px;
  background: rgb(15 18 32 / 65%);
  color: inherit;
  transition: transform var(--transition-standard),
    border-color var(--transition-standard),
    box-shadow var(--transition-standard);
  font-family: Cinzel, serif;
  gap: .6rem;
  letter-spacing: .18rem;
  text-transform: uppercase;
}

.global-nav__button:hover,
.global-nav__button:focus-visible {
  border-color: rgb(230 200 139 / 65%);
  box-shadow: 0 14px 36px rgb(6 8 24 / 45%);
  transform: translateY(-2px);
}

.global-nav__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(135 168 255 / 45%);
  border-radius: 50%;
  background: rgb(20 24 38 / 90%);
  font-size: .85rem;
  box-shadow: inset 0 0 12px rgb(135 168 255 / 25%);
  letter-spacing: .12rem;
  overflow: hidden;
}

.global-nav__account {
  display: inline-flex;
  align-items: center;
  padding: .6rem 1.2rem;
  border: 1px solid rgb(135 168 255 / 28%);
  border-radius: 16px;
  background: rgb(12 16 28 / 65%);
  gap: .75rem;
}

.global-nav__account-info {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.global-nav__account-name {
  font-weight: 600;
  letter-spacing: .04rem;
}

.global-nav__account-meta {
  color: rgb(232 229 255 / 55%);
  font-size: .7rem;
  letter-spacing: .1rem;
  text-transform: uppercase;
}

.global-nav__account-menu {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.global-nav__divider {
  width: 1px;
  height: 32px;
  background: rgb(135 168 255 / 25%);
}

.global-nav__mobile-tip {
  display: none;
  color: rgb(232 229 255 / 78%);
  font-size: .85rem;
  font-family: Cinzel, serif;
  letter-spacing: .12rem;
  text-transform: uppercase;
}

@media (width <= 1024px) {
  .global-nav {
    height: 68px;
    padding-inline: clamp(1.2rem, 4vw, 2rem);
  }

  .global-nav__inner {
    width: min(1000px, 96vw);
  }
}

@media (width <= 760px) {
  .global-nav__actions > *:not(.global-nav__mobile-tip) {
    display: none;
  }

  .global-nav__mobile-tip {
    display: block;
  }
}

@media (width <= 520px) {
  .global-nav {
    height: 60px;
  }

  .global-nav__inner {
    gap: .6rem;
  }

  .global-nav__brand-title {
    letter-spacing: .2rem;
  }

  .global-nav__brand-subtitle {
    display: none;
  }
}

@media (height <= 520px) {
  .global-nav {
    backdrop-filter: blur(18px);
  }
}

.global-nav__button--primary {
  border-color: rgb(135 168 255 / 60%);
  background: rgb(46 65 142 / 65%);
  box-shadow: 0 12px 30px rgb(8 12 32 / 45%);
}

.global-nav__button--primary:hover,
.global-nav__button--primary:focus-visible {
  border-color: rgb(230 200 139 / 80%);
  box-shadow: 0 16px 42px rgb(6 8 24 / 55%);
}

.global-nav__menu-button {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1rem;
  border: 1px solid rgb(135 168 255 / 28%);
  border-radius: 999px;
  background: rgb(12 16 28 / 55%);
  gap: .45rem;
}

.global-nav__menu-button::after {
  color: rgb(232 229 255 / 75%);
  font-size: .76rem;
  content: "▾";
}

.global-nav__menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  display: grid;
  min-width: 220px;
  padding: .75rem;
  border: 1px solid rgb(135 168 255 / 30%);
  border-radius: 16px;
  background: rgb(12 16 28 / 92%);
  animation: nav-menu-in  .2s ease forwards;
  box-shadow: 0 18px 50px rgb(4 6 20 / 45%);
  gap: .4rem;
  transform-origin: top right;
}

.global-nav__menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem  .8rem;
  border-radius: 12px;
  transition: background var(--transition-standard),
    color var(--transition-standard);
}

.global-nav__menu-item:hover,
.global-nav__menu-item:focus-visible {
  background: rgb(46 65 142 / 45%);
  color: var(--accent-gold);
}

@keyframes nav-menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.global-nav--is-hidden {
  transition: transform  .45s ease;
  transform: translateY(-120%);
}

.global-nav--is-visible {
  transition: transform  .45s ease;
  transform: translateY(0);
}

.global-nav__alert {
  position: fixed;
  top: calc(var(--global-nav-height) + 1rem);
  left: 50%;
  z-index: 1050;
  padding: .75rem 1.4rem;
  border: 1px solid rgb(135 168 255 / 45%);
  border-radius: 14px;
  background: rgb(46 65 142 / 85%);
  box-shadow: 0 12px 30px rgb(4 6 20 / 45%);
  transform: translateX(-50%);
}

.global-nav__alert p {
  font-size: .85rem;
  letter-spacing: .08rem;
}

.global-nav__alert button {
  border: none;
  background: none;
  color: var(--accent-gold);
  cursor: pointer;
  margin-left: 1.2rem;
}

.global-nav__spacer {
  width: 100%;
  height: var(--global-nav-height);
}





.global-nav__account-cta {
  display: inline-flex;
  align-items: center;
  color: rgb(232 229 255 / 85%);
  font-size: .82rem;
  gap: .45rem;
  letter-spacing: .08rem;
}

.global-nav__account-cta::after {
  color: rgb(135 168 255 / 80%);
  font-size: .95rem;
  content: "→";
}

.global-nav__role-badge {
  display: inline-flex;
  align-items: center;
  padding: .3rem  .6rem;
  border: 1px solid rgb(230 200 139 / 55%);
  border-radius: 8px;
  background: rgb(46 65 142 / 35%);
  font-size: .68rem;
  gap: .35rem;
  letter-spacing: .18rem;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .global-nav,
  .global-nav__menu {
    transition: none;
    animation: none;
  }
}

.global-nav__menu-trigger {
  position: relative;
}

.global-nav--with-alert {
  padding-top: calc(var(--global-nav-height) + 56px);
}

@supports not (backdrop-filter: blur(10px)) {
  .global-nav {
    background: rgb(12 16 28 / 95%);
  }
}

.global-nav__actions > .global-nav__button:last-child {
  margin-left: .35rem;
}

.global-nav__actions > .global-nav__button:first-child {
  margin-right: .35rem;
}

.global-nav__action-divider {
  width: 1px;
  height: 38px;
  background: rgb(135 168 255 / 28%);
}

@media (width <= 1180px) {
  .global-nav__brand-title {
    letter-spacing: .24rem;
  }
}

@media (width <= 980px) {
  .global-nav__brand-title {
    letter-spacing: .18rem;
  }
}

@media (width <= 900px) {
  .global-nav__brand-subtitle {
    letter-spacing: .18rem;
  }
}

.global-nav__badge-dot {
  display: inline-flex;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgb(230 200 139 / 90%);
  box-shadow: 0 0 12px rgb(230 200 139 / 65%);
}

.global-nav__account-meta strong {
  color: rgb(230 200 139 / 85%);
}

.global-nav__button svg {
  width: 18px;
  height: 18px;
}

.global-nav__account-actions {
  display: inline-flex;
  gap: .75rem;
}

.global-nav__account-button {
  padding: .45rem 1rem;
  border: 1px solid rgb(135 168 255 / 25%);
  border-radius: 999px;
  background: rgb(12 16 28 / 65%);
  transition: border-color var(--transition-standard), color var(--transition-standard);
  letter-spacing: .14rem;
  text-transform: uppercase;
}

.global-nav__account-button:hover,
.global-nav__account-button:focus-visible {
  border-color: rgb(230 200 139 / 75%);
  color: var(--accent-gold);
}

.global-nav__admin-link {
  color: rgb(230 200 139 / 95%);
  font-size: .72rem;
  letter-spacing: .24rem;
  text-transform: uppercase;
}

body::before {
  position: fixed;
  z-index: -2;
  background: linear-gradient(
      130deg,
      rgb(16 52 92 / 55%),
      transparent 40%
    ),
    radial-gradient(circle at 15% 20%, rgb(224 157 255 / 25%), transparent 60%),
    radial-gradient(circle at 80% 10%, rgb(135 168 255 / 20%), transparent 65%),
    radial-gradient(circle at 90% 80%, rgb(230 200 139 / 25%), transparent 60%);
  content: "";
  inset: 0;
  pointer-events: none;
}

body::after {
  position: fixed;
  z-index: -1;
  background: url("https://www.transparenttextures.com/patterns/gplay.png") repeat;
  content: "";
  inset: 0;
  opacity: .08;
  pointer-events: none;
}

.background-canvas {
  position: fixed;
  z-index: -3;
  background: url("https://images.unsplash.com/photo-1526404428533-8574861d80cc?auto=format&fit=crop&w=1600&q=80")
      center/cover no-repeat;
  inset: 0;
  mix-blend-mode: screen;
  opacity: .25;
  pointer-events: none;
}

.landing-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--global-nav-height) + clamp(3.6rem, 7vw, 5.2rem)) 1.6rem 6rem;
}

.landing-main {
  position: relative;
  display: grid;
  width: min(1100px, 90vw);
  margin: 0 auto;
  gap: 3rem;
}

.landing-hero {
  position: relative;
  display: grid;
  padding: clamp(2.6rem, 5vw, 4.2rem);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  background: rgb(14 18 35 / 78%);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-deep);
  gap: 1.4rem;
}

.landing-hero > * {
  position: relative;
  z-index: 1;
}

.hero-shell,
.hero-wordmark,
.hero-title-cn,
.hero-divider,
.hero-title-en,
.hero-description {
  display: none;
}

.landing-eyebrow {
  color: var(--accent-gold);
  font-size: .82rem;
  font-family: Cinzel, serif;
  letter-spacing: .35rem;
  text-transform: uppercase;
}

.landing-hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.15;
  font-family: Cinzel, serif;
  text-shadow: 0 12px 40px rgb(10 0 35 / 45%);
}

.landing-hero-intro,
.landing-hero p {
  max-width: 600px;
  color: var(--text-secondary);
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.6rem, 3vw, 2.4rem);
}

.landing-card {
  position: relative;
  display: grid;
  padding: 2.2rem 2rem;
  border: 1px solid rgb(135 168 255 / 30%);
  border-radius: 22px;
  background: rgb(27 32 54 / 88%);
  color: var(--text-primary);
  transition: transform var(--transition-standard),
    border-color var(--transition-standard);
  gap: .8rem;
  isolation: isolate;
  overflow: hidden;
  text-decoration: none;
}

.landing-card::before {
  position: absolute;
  z-index: -1;
  background: radial-gradient(circle at 25% 35%, rgb(135 168 255 / 35%), transparent 65%),
    radial-gradient(circle at 75% 70%, rgb(214 140 220 / 28%), transparent 70%);
  transition: opacity var(--transition-standard);
  content: "";
  inset: -40% -20%;
  opacity: 0;
}

.landing-card:hover,
.landing-card:focus-visible {
  border-color: rgb(230 200 139 / 65%);
  transform: translateY(-6px);
}

.landing-card:hover::before,
.landing-card:focus-visible::before {
  opacity: 1;
}

.landing-card-english {
  color: var(--accent-azure);
  font-size: .95rem;
  font-family: Cinzel, serif;
  letter-spacing: .24rem;
  text-transform: uppercase;
}

.landing-card h2 {
  color: var(--accent-gold);
  font-size: 1.5rem;
  letter-spacing: .06rem;
}

.landing-card p {
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.6;
}

.landing-card-cta {
  display: inline-flex;
  align-items: center;
  color: var(--accent-azure);
  font-size: .85rem;
  gap: .4rem;
  letter-spacing: .1rem;
  margin-top: .6rem;
  text-transform: uppercase;
}

.page-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: calc(var(--global-nav-height) + clamp(2.6rem, 5vw, 4.6rem)) 1.8rem 6.5rem;
  gap: clamp(3rem, 5vw, 5rem);
}

.page-shell main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1200px, 92vw);
  gap: clamp(3.2rem, 5vw, 4.8rem);
}

.surface-panel {
  padding: clamp(2.6rem, 5vw, 3.8rem);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  background: var(--bg-secondary);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 60px rgb(7 5 35 / 45%);
}

.subpage-header {
  display: grid;
  gap: 1.4rem;
}

.subpage-header p {
  color: var(--text-secondary);
}

.back-link {
  display: inline-flex;
  align-items: center;
  padding: .6rem 1.4rem;
  border: 1px solid rgb(135 168 255 / 35%);
  border-radius: 999px;
  background: rgb(18 23 40 / 65%);
  color: rgb(232 229 255 / 72%);
  font-size: .85rem;
  transition: transform var(--transition-standard),
    border-color var(--transition-standard),
    color var(--transition-standard);
  gap: .6rem;
  justify-self: flex-start;
  letter-spacing: .12rem;
  text-transform: uppercase;
}

.back-link::before {
  color: var(--accent-azure);
  font-size: 1rem;
  content: "\2190";
}

.back-link:hover,
.back-link:focus-visible {
  border-color: rgb(230 200 139 / 55%);
  color: var(--accent-gold);
  transform: translateY(-2px);
}

.subpage-title {
  color: var(--accent-gold);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-family: Cinzel, serif;
  letter-spacing: .28rem;
  text-transform: uppercase;
}

.subpage-intro {
  max-width: 70ch;
}

.button-tonal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.6rem;
  border: 1px solid rgb(135 168 255 / 35%);
  border-radius: 16px;
  background: rgb(18 23 40 / 55%);
  color: var(--text-primary);
  transition: transform var(--transition-standard),
    border-color var(--transition-standard),
    box-shadow var(--transition-standard);
  cursor: pointer;
  gap: .6rem;
  letter-spacing: .08rem;
  text-transform: uppercase;
}

.button-tonal:hover,
.button-tonal:focus-visible {
  border-color: rgb(230 200 139 / 60%);
  box-shadow: 0 12px 32px rgb(7 5 35 / 45%);
  transform: translateY(-2px);
}

fieldset {
  border: none;
}

input,
button,
select,
textarea {
  color: inherit;
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip-path: inset(0);
  overflow: hidden;
  white-space: nowrap;
}

.spectral-orb {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgb(214 140 220 / 48%), rgb(135 168 255 / 15%) 65%, rgb(27 32 54 / 0%) 75%);
  box-shadow: 0 0 120px rgb(135 168 255 / 32%),
    0 0 200px rgb(214 140 220 / 28%);
  inset: 18% 0 18% 24%;
}

.orb-gradient {
  position: absolute;
  z-index: 0;
  background: conic-gradient(
    from 220deg,
    rgb(135 168 255 / 28%),
    rgb(230 200 139 / 25%),
    rgb(214 140 220 / 30%),
    rgb(135 168 255 / 28%)
  );
  filter: blur(65px);
  inset: 0;
  opacity: .7;
}

.orb-constellation {
  position: relative;
  width: min(360px, 42vw);
  margin: 0 auto;
  mix-blend-mode: screen;
}

@media (width <= 820px) {
  .landing-hero {
    text-align: center;
  }

  .landing-hero p {
    margin-inline: auto;
  }

  .landing-card {
    min-height: 200px;
  }

  .page-shell {
    padding-inline: 1.4rem;
  }
}

@media (width <= 520px) {
  .landing-card {
    padding: 2rem 1.6rem;
  }

  .back-link {
    justify-self: center;
  }

  .subpage-header {
    align-items: center;
    text-align: center;
  }

}