/* ============================================================
   电影感层：开场动画 / 登录注册 / 页面转场 / 等级标识
   与 app.css 分开，方便单独关闭或替换视觉方案。
   ============================================================ */

/* ---------------- 等级颜色与徽标（三档） ---------------- */
:root {
  --lv1: #63a9e8;
  --lv2: #9b7bff;
  --lv3: #e8b13c;
  --lv4: #9b7bff;
  --lv5: #e8b13c;
}

.lv-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: 1px;
  background: var(--lv1);
}
.lv-dot.lv-1 { background: var(--lv1); }
.lv-dot.lv-2 { background: var(--lv2); }
.lv-dot.lv-3 { background: var(--lv3); }
.lv-dot.lv-4 { background: var(--lv2); }
.lv-dot.lv-5 { background: var(--lv3); }

.lv-1 { --lv: var(--lv1); }
.lv-2 { --lv: var(--lv2); }
.lv-3 { --lv: var(--lv3); }
.lv-4 { --lv: var(--lv2); }
.lv-5 { --lv: var(--lv3); }

.acc-lv-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: var(--lv, var(--lv1));
  border: 1px solid color-mix(in srgb, var(--lv, var(--lv1)) 42%, transparent);
  background: color-mix(in srgb, var(--lv, var(--lv1)) 12%, transparent);
  white-space: nowrap;
}

/* ============================================================
   一、开场动画
   ============================================================ */
.cine {
  position: fixed; inset: 0; z-index: 10000;
  background: #03060b;
  overflow: hidden;
  color: #eaf3ff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  animation: cineIn .5s ease both;
}
body.cine-on { overflow: hidden; }

.cine-sky { position: absolute; inset: 0; }
.cine-canvas { width: 100%; height: 100%; display: block; }

.cine-atmo {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 108%, rgba(48, 118, 196, .38), transparent 70%),
    radial-gradient(38% 34% at 50% 96%, rgba(126, 200, 255, .20), transparent 72%),
    radial-gradient(80% 60% at 50% -10%, rgba(30, 60, 110, .18), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: cineFadeIn 2.2s .1s ease both;
}

.cine-grain {
  position: absolute; inset: -50%;
  opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  animation: cineGrain 9s steps(6) infinite;
}

.cine-planet {
  position: absolute; left: 50%; bottom: -92vh;
  width: 190vw; height: 108vh;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 8%, #1b3c5c 0%, #0e2138 34%, #07101d 62%, #03070d 86%);
  box-shadow:
    0 -30px 90px rgba(92, 176, 255, .22),
    0 -6px 22px rgba(160, 214, 255, .30),
    inset 0 50px 120px rgba(0, 0, 0, .75);
  opacity: 0;
  animation: cinePlanetIn 3s .2s cubic-bezier(.16, .8, .22, 1) both;
}
.cine-planet-rim {
  position: absolute; left: 0; right: 0; top: -1px; height: 2px;
  background: linear-gradient(90deg, transparent 6%, rgba(150, 208, 255, .7) 32%, rgba(224, 244, 255, .95) 50%, rgba(150, 208, 255, .7) 68%, transparent 94%);
  filter: blur(.4px);
}

.cine-beams {
  position: absolute; left: 0; right: 0; bottom: 6vh; height: 46vh;
  pointer-events: none;
}
.cine-beams i {
  position: absolute; bottom: 0;
  width: 1.5px;
  background: linear-gradient(to top, rgba(168, 220, 255, .85), rgba(110, 180, 255, .18) 55%, transparent);
  filter: blur(.6px);
  transform-origin: bottom;
  opacity: 0;
  animation: cineBeam 3.4s ease-out both;
}
.cine-beams i:nth-child(1) { left: 16%; height: 30vh; animation-delay: 1.15s; }
.cine-beams i:nth-child(2) { left: 27%; height: 38vh; animation-delay: 1.45s; width: 2px; }
.cine-beams i:nth-child(3) { left: 39%; height: 26vh; animation-delay: .95s; }
.cine-beams i:nth-child(4) { left: 50%; height: 44vh; animation-delay: .8s; width: 2.5px; }
.cine-beams i:nth-child(5) { left: 61%; height: 27vh; animation-delay: 1.05s; }
.cine-beams i:nth-child(6) { left: 73%; height: 36vh; animation-delay: 1.55s; width: 2px; }
.cine-beams i:nth-child(7) { left: 84%; height: 24vh; animation-delay: 1.7s; }

@keyframes cineBeam {
  0% { opacity: 0; transform: scaleY(.02); }
  18% { opacity: .95; }
  60% { opacity: .35; }
  100% { opacity: 0; transform: scaleY(1); }
}

.cine-hud {
  position: absolute; top: 34px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  opacity: 0;
  animation: cineHudIn 1s 1.15s ease both;
  z-index: 3;
}
.cine-hud-tl { left: 40px; }
.cine-hud-tr { right: 40px; text-align: right; }
.cine-hud-k { font-size: 11px; letter-spacing: .32em; color: rgba(210, 232, 255, .82); }
.cine-hud-l {
  margin-top: 7px; display: flex; align-items: center; gap: 8px;
  font-size: 10px; letter-spacing: .18em; color: rgba(150, 190, 230, .55);
}
.cine-hud-tr .cine-hud-l { justify-content: flex-end; }
.cine-hud-l i { width: 22px; height: 1px; background: rgba(120, 186, 255, .55); display: inline-block; }

.cine-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 0 24px;
  z-index: 4;
}

.cine-kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: 10.5px; letter-spacing: .38em;
  color: rgba(168, 206, 246, .62);
  opacity: 0;
  animation: cineFadeUp 1s 1.45s ease both;
  text-transform: uppercase;
}
.cine-kicker span { width: 42px; height: 1px; background: rgba(120, 186, 255, .5); }

.cine-title {
  margin: 22px 0 0;
  font-size: clamp(44px, 7.2vw, 108px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: .4em;
  color: #ffffff;
  text-shadow: 0 0 44px rgba(110, 182, 255, .38), 0 0 130px rgba(74, 144, 217, .22);
  animation: cineTitle 1.8s 1.85s cubic-bezier(.16, .84, .24, 1) both;
  white-space: nowrap;
}
.cine-ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(26px);
  animation: cineChar .8s ease both;
  animation-delay: calc(1.98s + var(--i) * .065s);
}
.cine-ch.accent {
  background: linear-gradient(180deg, #f2f9ff 0%, #b8dcff 54%, #74b4ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.cine-rule {
  width: 0; height: 1px;
  margin-top: 30px;
  background: linear-gradient(90deg, transparent, rgba(150, 208, 255, .9), transparent);
  animation: cineRule 1.2s 3.05s ease both;
}
.cine-sub {
  margin-top: 20px;
  font-size: 14px; letter-spacing: .34em;
  color: rgba(214, 234, 252, .78);
  opacity: 0;
  animation: cineFadeUp 1s 3.15s ease both;
}

/* 三段能力词：比单纯标题更容易看清"这软件是干什么的" */
.cine-chapters {
  display: flex; align-items: stretch; gap: 30px;
  margin-top: 32px;
  opacity: 0;
  animation: cineFadeIn .7s 3.32s ease both;
}
.cine-chap {
  display: flex; align-items: baseline; gap: 9px;
  padding-left: 14px;
  border-left: 1px solid rgba(130, 180, 230, .26);
  opacity: 0;
  animation: cineChapIn .8s ease both;
  animation-delay: calc(3.4s + var(--d) * .26s);
}
.cine-chap b {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 10px; font-weight: 600; letter-spacing: .14em;
  color: #7fc4ff;
}
.cine-chap span {
  font-size: 12.5px; letter-spacing: .16em;
  color: rgba(214, 234, 252, .82);
}

/* 扩散光环 */
.cine-ring {
  position: absolute; left: 50%; top: 47%;
  width: 560px; height: 560px; margin: -280px 0 0 -280px;
  border-radius: 50%;
  border: 1px solid rgba(120, 190, 255, .18);
  box-shadow: inset 0 0 70px rgba(80, 150, 230, .10);
  opacity: 0;
  animation: cineRing 2.8s 2.9s ease-out both;
  pointer-events: none;
}
.cine-ring::before {
  content: '';
  position: absolute; inset: -120px;
  border-radius: 50%;
  border: 1px solid rgba(120, 190, 255, .07);
}

/* 结尾白闪 */
.cine-flash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 46%, rgba(226, 244, 255, .92), rgba(120, 190, 255, .28) 30%, transparent 64%);
  opacity: 0;
  animation: cineFlash .62s 5.02s ease-out both;
  mix-blend-mode: screen;
  pointer-events: none;
}

.cine-bottom {
  position: absolute; left: 40px; right: 40px; bottom: 32px;
  display: flex; align-items: center; gap: 22px;
  z-index: 5;
  opacity: 0;
  animation: cineFadeIn 1s 1.2s ease both;
}
.cine-status {
  display: flex; align-items: center; gap: 9px;
  font-size: 11px; letter-spacing: .12em;
  color: rgba(160, 196, 232, .62);
  min-width: 190px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.cine-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #7fc4ff;
  box-shadow: 0 0 10px rgba(127, 196, 255, .9);
  animation: cinePulse 1.4s ease-in-out infinite;
}
.cine-track {
  flex: 1; height: 1px;
  background: rgba(130, 170, 214, .18);
  overflow: hidden;
}
.cine-track i {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, rgba(126, 192, 255, .2), #9fd6ff);
  transition: transform 3.1s cubic-bezier(.3, .1, .2, 1);
  box-shadow: 0 0 8px rgba(159, 214, 255, .7);
}
.cine-skip {
  border: 1px solid rgba(160, 200, 240, .22);
  background: transparent;
  color: rgba(200, 222, 246, .62);
  font: inherit; font-size: 11px; letter-spacing: .16em;
  padding: 7px 14px; border-radius: 999px;
  cursor: pointer;
  transition: all .25s ease;
  white-space: nowrap;
}
.cine-skip span { font-size: 9px; opacity: .55; margin-left: 4px; letter-spacing: .2em; }
.cine-skip:hover { color: #fff; border-color: rgba(160, 210, 255, .6); background: rgba(90, 150, 220, .12); }

.cine.is-out { animation: cineOut .78s cubic-bezier(.5, 0, .75, 0) both; }
.cine.is-skip { animation: cineOut .36s ease both; }
.cine.is-out .cine-planet { transform: translateX(-50%) scale(1.14); transition: transform .9s ease; }
.cine.is-out .cine-center { animation: cineCenterOut .7s ease both; }

@keyframes cineIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cineOut {
  0% { opacity: 1; filter: blur(0); }
  60% { opacity: .55; }
  100% { opacity: 0; filter: blur(12px); transform: scale(1.04); }
}
@keyframes cineCenterOut {
  0% { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.12); filter: blur(10px); }
}
@keyframes cineFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes cineHudIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}
@keyframes cineFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes cineTitle {
  0% { letter-spacing: .62em; opacity: 0; filter: blur(14px); }
  55% { opacity: 1; }
  100% { letter-spacing: .06em; opacity: 1; filter: blur(0); }
}
@keyframes cineChar {
  0% { opacity: 0; transform: translateY(26px); }
  100% { opacity: 1; transform: none; }
}
@keyframes cineRule { from { width: 0; opacity: 0; } to { width: 132px; opacity: 1; } }
@keyframes cinePlanetIn {
  0% { opacity: 0; transform: translateX(-50%) translateY(90px) scale(.97); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes cineGrain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
  100% { transform: translate(0, 0); }
}
@keyframes cinePulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes cineChapIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes cineRing {
  0% { opacity: 0; transform: scale(.72); }
  30% { opacity: .85; }
  100% { opacity: 0; transform: scale(1.24); }
}
@keyframes cineFlash {
  0% { opacity: 0; }
  28% { opacity: .9; }
  100% { opacity: 0; }
}

/* 静态版：系统关闭动效 / 用户关闭动画时，仍然给一张完整的标题卡 */
.cine-static { animation: cineIn .3s ease both; }
.cine-static .cine-planet,
.cine-static .cine-atmo,
.cine-static .cine-hud,
.cine-static .cine-kicker,
.cine-static .cine-title,
.cine-static .cine-ch,
.cine-static .cine-rule,
.cine-static .cine-sub,
.cine-static .cine-chapters,
.cine-static .cine-chap,
.cine-static .cine-bottom {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}
.cine-static .cine-title { letter-spacing: .06em; }
.cine-static .cine-rule { width: 132px; }
.cine-static .cine-beams,
.cine-static .cine-ring,
.cine-static .cine-flash,
.cine-static .cine-grain,
.cine-static .cine-track { display: none; }


/* ============================================================
   二、登录 / 注册
   ============================================================ */
.lg-root {
  position: fixed; inset: 0; z-index: 9000;
  background: #04070d;
  color: #e9f2ff;
  overflow: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  animation: lgRootIn .45s ease both;
}
.lg-root.is-out { animation: lgRootOut .42s cubic-bezier(.5, 0, .75, 0) both; }
.lg-root.is-out-soft { animation: lgRootOutSoft .32s ease both; }
body.lg-open { overflow: hidden; }

@keyframes lgRootIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lgRootOut {
  0% { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.05); filter: blur(10px); }
}
@keyframes lgRootOutSoft { from { opacity: 1; } to { opacity: 0; } }

.lg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; opacity: .9; }
.lg-atmo {
  position: fixed; inset: 0; pointer-events: none;
  background:
    radial-gradient(68% 52% at 50% 112%, rgba(44, 106, 178, .40), transparent 68%),
    radial-gradient(34% 30% at 18% 8%, rgba(58, 104, 168, .16), transparent 70%),
    radial-gradient(30% 26% at 84% 24%, rgba(120, 86, 210, .12), transparent 70%);
}
.lg-horizon {
  position: fixed; left: 50%; bottom: -64vh;
  width: 170vw; height: 80vh;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 10%, #14304c 0%, #0a1626 46%, #04080f 78%);
  box-shadow: 0 -24px 80px rgba(92, 176, 255, .18), inset 0 30px 80px rgba(0, 0, 0, .7);
  pointer-events: none;
}
.lg-horizon-line {
  position: absolute; left: 0; right: 0; top: -1px; height: 1.5px;
  background: linear-gradient(90deg, transparent 8%, rgba(140, 202, 255, .55) 34%, rgba(226, 244, 255, .85) 50%, rgba(140, 202, 255, .55) 66%, transparent 92%);
}
.lg-beams { position: fixed; left: 0; right: 0; bottom: 22vh; height: 26vh; pointer-events: none; opacity: .5; }
.lg-beams i {
  position: absolute; bottom: 0; width: 1px;
  background: linear-gradient(to top, rgba(160, 214, 255, .5), transparent);
  animation: lgBeam 5.5s ease-in-out infinite;
}
.lg-beams i:nth-child(1) { left: 12%; height: 60%; animation-delay: 0s; }
.lg-beams i:nth-child(2) { left: 24%; height: 90%; animation-delay: 1.1s; }
.lg-beams i:nth-child(3) { left: 47%; height: 74%; animation-delay: 2.2s; }
.lg-beams i:nth-child(4) { left: 69%; height: 96%; animation-delay: .6s; }
.lg-beams i:nth-child(5) { left: 88%; height: 58%; animation-delay: 1.7s; }
@keyframes lgBeam { 0%, 100% { opacity: .15; transform: scaleY(.8); } 50% { opacity: .65; transform: scaleY(1); } }

.lg-shell {
  position: relative; z-index: 2;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 26px 44px 20px;
  max-width: 1560px;
  margin: 0 auto;
}

/* 覆盖 app.css 里旧的 .lg-* 登录门样式（那套已经停用，类名撞了） */
.lg-root .lg-brand { text-align: left; margin: 0; font-size: 13px; font-weight: 400; }
.lg-root .lg-sub { text-align: left; margin: 14px 0 0; }
.lg-root .lg-note { background: none; border-radius: 0; padding: 14px 0 0; margin: 0; }
.lg-root .lg-btn { padding: 0 16px; margin: 10px 0 0; }
.lg-root .lg-tip { text-align: left; }

.lg-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lg-brand { display: flex; align-items: center; gap: 12px; }
.lg-brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  color: #06101c;
  background: linear-gradient(135deg, #d7ecff, #7fbfff);
  box-shadow: 0 0 26px rgba(127, 191, 255, .35);
}
.lg-brand-txt { font-size: 10.5px; letter-spacing: .3em; color: rgba(198, 224, 250, .68); line-height: 1.5; }
.lg-brand-txt em { display: block; font-style: normal; font-size: 12px; letter-spacing: .18em; color: rgba(232, 244, 255, .9); }
.lg-top-right { display: flex; align-items: center; gap: 18px; }
.lg-mode {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .06em;
  color: rgba(176, 202, 228, .55);
}
.lg-mode-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #7fc4ff; box-shadow: 0 0 8px rgba(127, 196, 255, .8);
}
.lg-skip {
  border: 1px solid rgba(160, 200, 240, .22);
  background: rgba(12, 22, 36, .4);
  color: rgba(214, 234, 255, .78);
  font: inherit; font-size: 12px;
  padding: 8px 16px; border-radius: 999px;
  cursor: pointer; transition: all .25s ease;
  backdrop-filter: blur(8px);
}
.lg-skip span { transition: transform .25s ease; display: inline-block; }
.lg-skip:hover { border-color: rgba(150, 210, 255, .65); color: #fff; background: rgba(90, 150, 220, .14); }
.lg-skip:hover span { transform: translateX(3px); }

.lg-main {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 440px);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: 40px 0 20px;
}

.lg-hero { max-width: 660px; }
.lg-kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 10.5px; letter-spacing: .32em;
  color: rgba(150, 190, 230, .62);
  animation: lgUp .9s .15s ease both;
}
.lg-kicker-line { width: 34px; height: 1px; background: rgba(120, 186, 255, .55); }
.lg-title {
  margin: 16px 0 0;
  font-size: clamp(40px, 4.7vw, 70px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.01em;
  animation: lgUp 1s .25s cubic-bezier(.16, .84, .24, 1) both;
}
.lg-title-line { display: block; }
.lg-title-line.accent {
  background: linear-gradient(105deg, #ffffff 4%, #b9ddff 44%, #6fb2ff 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lg-sub {
  margin: 20px 0 0;
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: .12em;
  color: rgba(219, 235, 252, .88);
  animation: lgUp .9s .4s ease both;
}
.lg-lede {
  margin: 10px 0 0;
  font-size: 12.5px; line-height: 1.8; letter-spacing: .04em;
  color: rgba(155, 182, 210, .62);
  animation: lgUp .9s .5s ease both;
}

.lg-ladder { margin-top: 22px; animation: lgUp 1s .6s ease both; }
.lg-lv { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.lg-lv-rail { display: flex; flex-direction: column; align-items: center; }
.lg-lv-node {
  width: 7px; height: 7px; border-radius: 50%;
  margin-top: 6px;
  border: 1px solid rgba(150, 196, 240, .45);
  background: rgba(10, 18, 30, .8);
  transition: all .3s ease;
}
.lg-lv-line { flex: 1; width: 1px; background: rgba(130, 174, 220, .18); margin: 3px 0; }
.lg-lv-body { padding: 0 0 9px; min-width: 0; }
.lg-lv-head { display: flex; align-items: baseline; gap: 9px; }
.lg-lv-idx {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 10px; color: rgba(140, 180, 220, .42); letter-spacing: .1em;
}
.lg-lv-name { font-size: 13.5px; font-weight: 600; color: rgba(226, 240, 255, .82); letter-spacing: .06em; }
.lg-lv-now {
  font-size: 9.5px; letter-spacing: .1em;
  color: #7fc4ff; border: 1px solid rgba(127, 196, 255, .4);
  padding: 0 6px; border-radius: 999px;
}
.lg-lv-desc {
  margin-top: 2px;
  font-size: 10.8px; line-height: 1.55; color: rgba(148, 176, 206, .5);
  max-width: 480px;
}
.lg-lv:hover .lg-lv-node,
.lg-lv.is-current .lg-lv-node {
  background: #8fd0ff;
  border-color: #b9e2ff;
  box-shadow: 0 0 12px rgba(127, 196, 255, .85);
}
.lg-lv.is-current .lg-lv-name { color: #fff; }
.lg-lv.is-current .lg-lv-desc { color: rgba(196, 222, 248, .72); }

.lg-panel {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 26, 41, .82), rgba(8, 14, 24, .88));
  border: 1px solid rgba(140, 190, 240, .16);
  border-radius: 20px;
  padding: 30px 30px 24px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(190, 224, 255, .08);
  backdrop-filter: blur(26px) saturate(120%);
  animation: lgPanelIn .95s .35s cubic-bezier(.16, .84, .24, 1) both;
  transition: opacity .18s ease, transform .18s ease;
}
.lg-panel::before {
  content: '';
  position: absolute; left: 18%; right: 18%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(150, 214, 255, .7), transparent);
}
.lg-panel.is-swapping { opacity: .25; transform: translateY(6px); }
.lg-panel.is-shake { animation: lgShake .38s ease; }

.lg-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.lg-panel-head h2 {
  margin: 0; font-size: 21px; font-weight: 700; letter-spacing: .02em; color: #f2f8ff;
}
.lg-panel-sub { font-size: 11px; letter-spacing: .08em; color: rgba(150, 182, 214, .58); }

.lg-field { display: block; margin-bottom: 14px; }
.lg-label {
  display: block; margin-bottom: 7px;
  font-size: 11px; letter-spacing: .14em;
  color: rgba(160, 192, 226, .6);
}
.lg-input {
  width: 100%; height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(140, 186, 236, .18);
  background: rgba(6, 12, 21, .62);
  color: #eef6ff;
  font: inherit; font-size: 14px;
  outline: none;
  transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.lg-input::placeholder { color: rgba(140, 170, 204, .34); }
.lg-input:focus {
  border-color: rgba(126, 192, 255, .66);
  box-shadow: 0 0 0 4px rgba(90, 158, 240, .13), 0 0 26px rgba(90, 158, 240, .12);
  background: rgba(8, 16, 28, .86);
}
.lg-input:-webkit-autofill {
  -webkit-text-fill-color: #eef6ff;
  -webkit-box-shadow: 0 0 0 1000px rgba(10, 20, 34, .95) inset;
}
.lg-code {
  text-align: center;
  font-size: 26px; font-weight: 700;
  letter-spacing: .52em;
  padding-left: .52em;
  height: 60px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.lg-btn {
  position: relative;
  width: 100%; height: 50px;
  margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  border: 0; border-radius: 12px;
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .1em;
  color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #2c7de0, #5cb6ff);
  box-shadow: 0 10px 30px rgba(44, 125, 224, .28), inset 0 1px 0 rgba(255, 255, 255, .22);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.lg-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .34) 48%, transparent 72%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.lg-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(44, 125, 224, .38); }
.lg-btn:hover::after { transform: translateX(120%); }
.lg-btn:active { transform: translateY(0) scale(.995); }
.lg-btn:disabled { filter: grayscale(.3) brightness(.85); cursor: progress; }
.lg-btn-arrow { font-style: normal; transition: transform .25s ease; }
.lg-btn:hover .lg-btn-arrow { transform: translateX(4px); }
.lg-btn.is-busy .lg-btn-arrow { display: none; }

.lg-panel-links {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
}
.lg-link {
  border: 0; background: transparent; padding: 0;
  color: rgba(150, 200, 245, .82);
  font: inherit; cursor: pointer;
  transition: color .2s ease;
}
.lg-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lg-dot { color: rgba(140, 170, 200, .35); }

.lg-alert {
  margin-bottom: 14px;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 12.5px; line-height: 1.6;
  border: 1px solid rgba(224, 103, 74, .32);
  background: rgba(224, 103, 74, .10);
  color: #ffb9a8;
  animation: lgUp .3s ease both;
}
.lg-alert[data-type="info"] {
  border-color: rgba(126, 192, 255, .3);
  background: rgba(74, 144, 217, .12);
  color: #b9ddff;
}

.lg-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(140, 180, 220, .1);
  font-size: 11px; line-height: 1.75;
  color: rgba(148, 176, 205, .55);
}
.lg-note code {
  font-size: 10.5px; padding: 1px 4px; border-radius: 4px;
  background: rgba(140, 180, 220, .12);
}
.lg-note-dot {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(232, 177, 60, .9); margin-right: 6px; vertical-align: 1px;
}
.lg-note-dot.ok { background: #3fb08b; }

.lg-devc {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed rgba(232, 177, 60, .4);
  background: rgba(232, 177, 60, .06);
  cursor: pointer;
  animation: lgUp .4s ease both;
}
.lg-devc-top {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 10.5px; letter-spacing: .1em; color: rgba(232, 193, 120, .8);
}
.lg-devc-tag {
  font-size: 9.5px; color: rgba(232, 193, 120, .55);
  border: 1px solid rgba(232, 177, 60, .28);
  padding: 0 6px; border-radius: 999px;
}
.lg-devc-code {
  margin: 8px 0 6px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 30px; font-weight: 700; letter-spacing: .34em;
  color: #ffd68a;
}
.lg-devc-hint { font-size: 10.5px; line-height: 1.6; color: rgba(210, 190, 160, .55); }

.lg-code-target {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 14px;
  font-size: 11.5px; color: rgba(150, 182, 214, .55);
}
.lg-code-target b { font-weight: 600; color: rgba(214, 234, 255, .9); }

.lg-invite {
  margin: 2px 0 8px;
  font-size: 11.5px;
  color: rgba(150, 182, 214, .6);
}
.lg-invite summary { cursor: pointer; list-style: none; user-select: none; }
.lg-invite summary::-webkit-details-marker { display: none; }
.lg-invite summary::before { content: '＋ '; color: rgba(126, 192, 255, .8); }
.lg-invite[open] summary::before { content: '－ '; }
.lg-invite .lg-input { margin-top: 9px; height: 40px; }
.lg-hint { margin-top: 7px; font-size: 10.5px; line-height: 1.65; color: rgba(148, 176, 205, .5); }
.lg-hint b { color: rgba(200, 224, 250, .82); font-weight: 600; }

.lg-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(140, 180, 220, .08);
  font-size: 10.5px; letter-spacing: .04em;
  color: rgba(140, 170, 200, .4);
}
.lg-foot kbd {
  font-family: inherit; font-size: 10px;
  border: 1px solid rgba(150, 190, 230, .22);
  border-radius: 4px; padding: 0 5px;
}

@keyframes lgUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes lgPanelIn {
  0% { opacity: 0; transform: translateY(34px) scale(.97); filter: blur(8px); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes lgShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

/* ============================================================
   三、页面转场
   ============================================================ */
#view.pt-out {
  opacity: 0;
  transform: translateY(-10px) scale(.996);
  filter: blur(7px);
  transition: opacity .19s ease, transform .19s ease, filter .19s ease;
  will-change: opacity, transform, filter;
}
#view.pt-in { animation: ptViewIn .52s cubic-bezier(.16, .84, .24, 1) both; }
#page-head.pt-out {
  opacity: 0;
  transform: translateY(-7px);
  filter: blur(4px);
  transition: all .17s ease;
}
#page-head.pt-in { animation: ptHeadIn .5s cubic-bezier(.16, .84, .24, 1) both; }
#crumb.pt-out { opacity: 0; transition: opacity .15s ease; }

body.pt-busy { cursor: progress; }

.pt-wipe {
  position: fixed; inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(126, 192, 255, .015) 38%,
      rgba(126, 192, 255, .10) 50%,
      rgba(126, 192, 255, .015) 62%,
      transparent 100%);
  transform: translateY(-18%);
}
.pt-wipe.is-run { animation: ptSweep .95s cubic-bezier(.3, .1, .2, 1) both; }
.pt-wipe.is-instant { display: none; }

@keyframes ptViewIn {
  0% { opacity: 0; transform: translateY(16px) scale(.994); filter: blur(8px); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes ptHeadIn {
  0% { opacity: 0; transform: translateY(10px); clip-path: inset(0 0 100% 0); }
  100% { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
}
@keyframes ptSweep {
  0% { opacity: 0; transform: translateY(-18%); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: translateY(18%); }
}

/* ============================================================
   四、账号与等级页
   ============================================================ */
.acc-mode { font-size: 11.5px; color: var(--muted); }
.acc-me { display: flex; align-items: center; gap: 16px; padding: 6px 0 4px; flex-wrap: wrap; }
.acc-avatar {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  font-size: 20px; font-weight: 700;
  color: var(--brand);
  background: rgba(74, 144, 217, .12);
  border: 1px solid rgba(74, 144, 217, .22);
}
[data-theme="dark"] .acc-avatar { background: rgba(90, 162, 232, .16); }
.acc-me-body { flex: 1; min-width: 220px; }
.acc-me-name { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; flex-wrap: wrap; }
.acc-me-row { margin-top: 5px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
.acc-ok { color: var(--ok); font-size: 11.5px; }
.acc-warn { color: var(--warn); font-size: 11.5px; }
.acc-me-act { display: flex; gap: 8px; }

.acc-ladder { display: grid; gap: 10px; }
.acc-lv {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  opacity: .62;
  transition: all .25s ease;
}
.acc-lv.is-owned { opacity: 1; }
.acc-lv.is-current {
  opacity: 1;
  border-color: rgba(74, 144, 217, .5);
  box-shadow: 0 0 0 3px rgba(74, 144, 217, .08);
  background: rgba(74, 144, 217, .045);
}
[data-theme="dark"] .acc-lv.is-current { background: rgba(90, 162, 232, .10); }
.acc-lv-top { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.acc-lv-desc { margin-top: 4px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.acc-lv-now {
  font-size: 10px; color: var(--brand);
  border: 1px solid rgba(74, 144, 217, .4);
  padding: 0 6px; border-radius: 999px;
}
.acc-me select,
[data-user] { min-width: 132px; }
.acc-new {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.3fr auto auto;
  gap: 8px;
  align-items: center;
  margin: 14px 0 6px;
}
.acc-new .input { height: 36px; }
@media (max-width: 900px) {
  .acc-new { grid-template-columns: 1fr 1fr; }
}

/* 工具栏身份区在窄屏收敛 */
@media (max-width: 1240px) {
  .tb-who .tb-role { display: none; }
}

/* ============================================================
   五、响应式
   ============================================================ */
@media (max-width: 1080px) {
  .lg-shell { padding: 22px 26px 18px; }
  .lg-main { grid-template-columns: 1fr; gap: 34px; padding: 26px 0 10px; }
  .lg-hero { max-width: none; }
  .lg-ladder { display: none; }
  .lg-panel { max-width: 500px; width: 100%; justify-self: stretch; }
  .lg-title { font-size: clamp(38px, 8.4vw, 60px); }
  .lg-beams { display: none; }
}

@media (max-width: 640px) {
  .lg-shell { padding: 18px 18px 14px; }
  .lg-mode { display: none; }
  .lg-brand-txt { font-size: 9.5px; letter-spacing: .2em; }
  .lg-panel { padding: 22px 20px 18px; border-radius: 16px; }
  .lg-lede { display: none; }
  .lg-sub { font-size: 14px; }
  .lg-foot { font-size: 9.5px; }
  .lg-foot-right { display: none; }
  .lg-devc-code { font-size: 26px; }
  .cine-hud { display: none; }
  .cine-bottom { left: 20px; right: 20px; bottom: 22px; gap: 12px; }
  .cine-status { min-width: 0; flex: 1; font-size: 9.5px; letter-spacing: .04em; }
  .cine-track { display: none; }
  .cine-title { letter-spacing: .12em; font-size: clamp(34px, 10vw, 52px); }
  .cine-sub { font-size: 12px; letter-spacing: .2em; }
}

/* 减弱动态效果：只保留淡入淡出 */
@media (prefers-reduced-motion: reduce) {
  .cine, .cine-planet, .cine-title, .cine-ch, .cine-rule, .cine-sub,
  .cine-atmo, .cine-hud, .cine-bottom, .cine-beams i,
  .cine-chapters, .cine-chap, .cine-ring, .cine-flash,
  .lg-title, .lg-sub, .lg-lede, .lg-ladder, .lg-kicker, .lg-panel,
  .lg-root, #view.pt-in, #page-head.pt-in, .pt-wipe.is-run,
  .acc-lv { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .cine-rule { width: 132px; }
  .cine-ring, .cine-flash { display: none; }
}
