.yj-shell {
  color-scheme: dark;
  --bg: #07060c;
  --bg-elevated: #0e0b18;
  --surface: rgba(18, 14, 30, 0.78);
  --surface-strong: rgba(23, 18, 38, 0.92);
  --field: rgba(10, 8, 19, 0.88);
  --line: rgba(167, 139, 250, 0.17);
  --line-strong: rgba(167, 139, 250, 0.34);
  --ink: #f6f4ff;
  --muted: #a69ec2;
  --accent: #8b6bff;
  --accent-bright: #b49eff;
  --accent-soft: rgba(139, 107, 255, 0.16);
  --focus: #cbb9ff;
  --serif: "Noto Serif SC", "Songti SC", STSong, SimSun, Georgia, serif;
  --display-en: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  overflow-x: hidden;
  position: relative;
}

.yj-shell *, .yj-shell *::before, .yj-shell *::after { box-sizing: border-box; }
:where(.yj-shell) :is(button, input) { font: inherit; }
:where(.yj-shell) button { cursor: pointer; }
:where(.yj-shell) a { color: inherit; text-decoration: none; }
.yj-shell :is(a, button, input, summary):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Atmospheric backdrop: midnight-violet radial depth + diagonal volumetric light rays */
.yj-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 68% 58% at 74% 16%, rgba(124, 92, 255, 0.19), transparent 64%),
    radial-gradient(ellipse 56% 52% at 22% 84%, rgba(79, 128, 255, 0.12), transparent 62%),
    linear-gradient(158deg, #07060c 0%, #0b0915 52%, #07060b 100%);
}

.yj-rays {
  position: absolute;
  inset: -24% -18%;
  opacity: 0.72;
  background:
    linear-gradient(132deg, transparent 22%, rgba(167, 139, 250, 0.08) 33%, rgba(196, 181, 253, 0.15) 41%, rgba(124, 92, 255, 0.05) 52%, transparent 66%),
    linear-gradient(138deg, transparent 48%, rgba(142, 197, 252, 0.06) 57%, transparent 69%);
  transform: rotate(-6deg);
}

.yj-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(88px);
}
.yj-glow-top {
  width: 520px;
  height: 520px;
  right: -120px;
  top: -150px;
  background: rgba(139, 107, 255, 0.2);
}
.yj-glow-bottom {
  width: 440px;
  height: 440px;
  left: -130px;
  bottom: -160px;
  background: rgba(96, 145, 255, 0.12);
}

/* Sticky top navigation bar */
.yj-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(7, 6, 12, 0.72);
  border-bottom: 1px solid rgba(167, 139, 250, 0.12);
}

.yj-header-inner,
.yj-portal,
.login-stage,
.yj-footer {
  width: min(calc(100% - 72px), 1320px);
  margin-inline: auto;
}

.yj-header-inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.yj-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
}

.yj-brand-icon {
  width: 42px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(180, 158, 255, 0.34);
  background: rgba(139, 107, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 24px rgba(139, 107, 255, 0.2);
}
.brand-mobius { width: 28px; height: 18px; display: block; }

.yj-brand-copy { display: grid; gap: 2px; }
.yj-wordmark {
  font-family: var(--display-en);
  font-style: italic;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.18em;
  line-height: 1;
}
.yj-wordmark-accent {
  color: var(--accent-bright);
  text-shadow: 0 0 16px rgba(167, 139, 250, 0.75);
}
.yj-brand-copy small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.yj-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  color: var(--muted);
}
.yj-nav a {
  padding: 6px 2px;
  transition: color 0.18s ease;
}
.yj-nav a:hover { color: var(--ink); }

.yj-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.yj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.yj-btn svg { width: 16px; height: 16px; flex: none; }
.yj-btn:hover { transform: translateY(-1px); }

.yj-btn-ghost {
  color: var(--muted);
  border-color: rgba(167, 139, 250, 0.18);
  background: rgba(255, 255, 255, 0.02);
}
.yj-btn-ghost:hover {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(139, 107, 255, 0.1);
}

.yj-shell .yj-btn-light {
  background: #f6f4ff;
  color: #120d22;
}
.yj-btn-light:hover { background: #ffffff; box-shadow: 0 8px 24px rgba(246, 244, 255, 0.22); }

.yj-btn-primary {
  background: linear-gradient(115deg, #8f70ff, #6b4bff);
  color: #ffffff;
  border-color: rgba(203, 185, 255, 0.42);
  box-shadow: 0 10px 30px rgba(116, 84, 255, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.yj-btn-primary:hover {
  box-shadow: 0 14px 36px rgba(139, 107, 255, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.yj-btn-glass {
  background: rgba(20, 16, 36, 0.72);
  color: var(--ink);
  border-color: var(--line-strong);
}
.yj-btn-glass:hover { background: rgba(34, 26, 58, 0.85); }

/* Eyebrow & Typography */
.yj-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

/* Portal Homepage (/) */
.yj-portal {
  padding-block: clamp(28px, 4.5vh, 56px) clamp(48px, 7vh, 84px);
  display: grid;
  gap: clamp(56px, 9vh, 104px);
}

.yj-hero { display: grid; gap: 26px; }
.yj-hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.yj-pill-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(139, 107, 255, 0.08);
  color: var(--accent-bright);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.yj-micro-line {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #8178a0;
}

.yj-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
}

.yj-display-en {
  font-family: var(--display-en);
  font-style: italic;
  font-size: clamp(46px, 6.2vw, 88px);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 0.95;
  color: rgba(246, 244, 255, 0.92);
  margin-bottom: 14px;
}
.yj-display-en span {
  color: var(--accent-bright);
  text-shadow: 0 0 36px rgba(139, 107, 255, 0.72);
}

.yj-hero-copy h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 62px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.yj-hero-copy h1 span {
  background: linear-gradient(100deg, #f3ecff 0%, #b79eff 55%, #84d2ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.yj-hero-lead {
  margin: 0 0 24px;
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.yj-hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 28px;
}
.yj-hero-pillars span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.18);
  background: rgba(19, 15, 33, 0.66);
  font-size: 12px;
  color: #dad3f2;
}
.yj-hero-pillars b {
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 700;
}

.yj-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.yj-hero-cta .yj-btn { min-height: 46px; padding-inline: 24px; font-size: 14px; }

/* Interactive 3D Möbius Stage */
.yj-mobius-showcase {
  display: flex;
  justify-content: center;
}

.mobius-stage {
  position: relative;
  width: min(100%, 490px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
  user-select: none;
  touch-action: manipulation;
}

.mobius-orbit {
  position: absolute;
  inset: 7%;
  border-radius: 50%;
  border: 1px dashed rgba(180, 158, 255, 0.25);
  box-shadow: inset 0 0 70px rgba(139, 107, 255, 0.12), 0 0 90px rgba(124, 92, 255, 0.14);
  pointer-events: none;
}
.mobius-orbit::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px solid rgba(142, 197, 252, 0.14);
}

.mobius-canvas {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.optic-sculpture-wrap {
  position: absolute;
  inset: 8%;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  will-change: transform;
  pointer-events: none;
  filter: drop-shadow(0 0 38px rgba(139, 107, 255, var(--optic-glow, 0.28)));
}

.optic-sculpture-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle, #000 54%, rgba(0, 0, 0, 0.72) 69%, transparent 88%);
  mask-image: radial-gradient(circle, #000 54%, rgba(0, 0, 0, 0.72) 69%, transparent 88%);
}

.mobius-hint {
  position: absolute;
  z-index: 3;
  bottom: 4%;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 16px);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(180, 158, 255, 0.26);
  background: rgba(12, 9, 22, 0.84);
  backdrop-filter: blur(12px);
  color: #d8cef8;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0.06em;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.mobius-hint:hover {
  border-color: var(--accent-bright);
  transform: translateX(-50%) translateY(-1px);
}

/* Dual Engines Matrix */
.yj-section { display: grid; gap: 28px; }
.yj-section-head h2 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.24;
  font-weight: 700;
}

.yj-engine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.yj-engine-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(26px, 3vw, 38px);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(24, 18, 42, 0.86), rgba(11, 9, 20, 0.92));
  box-shadow: 0 24px 60px rgba(3, 2, 8, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.yj-engine-card.is-featured {
  border-color: rgba(167, 139, 250, 0.36);
  background: linear-gradient(148deg, rgba(40, 27, 72, 0.62), rgba(13, 10, 24, 0.94));
}

.yj-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.yj-card-num {
  font-family: var(--display-en);
  font-style: italic;
  font-size: 22px;
  color: var(--accent-bright);
}
.yj-card-code {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #9389b8;
}
.yj-engine-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
}
.yj-engine-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  flex: 1;
}
.yj-engine-card .yj-btn { align-self: flex-start; min-height: 44px; padding-inline: 22px; }

/* Closing CTA */
.yj-closing {
  text-align: center;
  padding: clamp(36px, 5vw, 60px) clamp(20px, 4vw, 48px);
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 65% 80% at 50% 0%, rgba(139, 107, 255, 0.2), transparent 68%),
    rgba(13, 10, 24, 0.84);
}
.yj-closing h2 {
  margin: 14px 0 12px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.25;
}
.yj-closing p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
}
.yj-closing-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.yj-closing-actions .yj-btn { min-height: 44px; padding-inline: 22px; }

/* Split Login / Register Stage (/sign-in, /register, /admin/sign-in) */
.login-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) clamp(370px, 38%, 468px);
  align-self: center;
  margin-block: clamp(20px, 4vh, 42px);
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(12, 10, 22, 0.78);
  backdrop-filter: blur(22px);
  box-shadow: 0 32px 90px rgba(2, 1, 8, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 3.6vw, 46px);
  min-width: 0;
  background:
    radial-gradient(ellipse 75% 65% at 52% 48%, rgba(139, 107, 255, 0.16), transparent 68%),
    linear-gradient(135deg, rgba(22, 16, 40, 0.88), rgba(9, 8, 17, 0.96));
}

.login-hero-top h1 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.18;
  font-weight: 700;
}
.login-hero-top h1 span {
  background: linear-gradient(100deg, #f3ecff 0%, #b79eff 55%, #84d2ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-artwork {
  display: grid;
  place-items: center;
  margin-block: 10px;
}
.login-artwork .mobius-stage { width: min(100%, 380px); }

.login-hero-copy p {
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid rgba(167, 139, 250, 0.56);
  color: #cbc3e6;
  font-size: 13.5px;
  line-height: 1.7;
}

.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 3.4vw, 46px);
  border-left: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(24, 18, 40, 0.92), rgba(14, 11, 24, 0.98));
}

.auth-card-head h2 {
  margin: 8px 0 6px;
  font-family: var(--serif);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
}
.auth-card-sub {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin-bottom: 22px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 6, 15, 0.72);
}
.auth-tabs a {
  text-align: center;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.auth-tabs a[aria-current="page"] {
  background: linear-gradient(115deg, rgba(139, 107, 255, 0.32), rgba(107, 75, 255, 0.28));
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.auth-tabs a:hover:not([aria-current="page"]) { color: var(--ink); }

.login-form { position: relative; display: grid; gap: 16px; }
.login-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 13px;
  color: #dfd8f7;
}
.login-field label span { font-size: 11px; color: var(--muted); }

.login-input {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(167, 139, 250, 0.24);
  border-radius: 11px;
  background: var(--field);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.login-input:focus-within {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(139, 107, 255, 0.18);
}
.login-input input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 0;
  background: transparent;
  padding: 0 14px;
  color: var(--ink);
  font-size: 15px;
}
.login-input input::placeholder { color: #70678e; font-size: 13px; }
.login-input input:focus-visible { outline: none; }
.login-input input::-ms-reveal { display: none; }

.login-password-toggle {
  flex: none;
  min-width: 50px;
  min-height: 40px;
  margin-right: 4px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--accent-bright);
  font-size: 12px;
}
.login-password-toggle:hover { background: var(--accent-soft); }

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  margin-top: 4px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(203, 185, 255, 0.45);
  background: linear-gradient(115deg, #8f70ff, #6b4bff);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(116, 84, 255, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.18s ease, filter 0.18s ease;
}
.login-submit svg { width: 18px; height: 18px; }
.login-submit:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.07); }
.login-submit:disabled { cursor: wait; opacity: 0.7; }

.login-status, .login-error, .auth-note { margin: 0; font-size: 13px; line-height: 1.55; }
.login-status { color: var(--accent-bright); min-height: 18px; }
.login-status:empty { display: none; }
.login-error {
  padding: 10px 13px;
  border: 1px solid rgba(255, 134, 154, 0.42);
  border-radius: 10px;
  background: rgba(92, 31, 48, 0.56);
  color: #ffd3da;
  margin-bottom: 14px;
}
.auth-note {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(139, 107, 255, 0.1);
  color: #ddd4f8;
  margin-bottom: 14px;
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.login-options p { margin: 0; display: flex; align-items: center; gap: 8px; }
.yj-pill-inline {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(139, 107, 255, 0.12);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}
.yj-pill-inline:hover { background: rgba(139, 107, 255, 0.24); }
.login-qr {
  border: 0;
  background: transparent;
  color: var(--accent-bright);
  font-size: 13px;
  padding: 6px 2px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.login-qr:hover { color: var(--ink); }

.auth-enterprise-note {
  margin: 14px 0 0;
  color: #8279a1;
  font-size: 12px;
  line-height: 1.6;
}

/* Registration verification fields */
.registration-method { border: 0; margin: 0; padding: 0; min-width: 0; }
.registration-method legend { font-size: 13px; color: #dfd8f7; margin-bottom: 8px; }
.registration-method > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.registration-method label { margin: 0; position: relative; cursor: pointer; }
.registration-method input { position: absolute; opacity: 0; }
.registration-method span, .registration-send {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid rgba(167, 139, 250, 0.24);
  border-radius: 10px;
  background: var(--field);
  color: var(--muted);
  font-size: 13px;
}
.registration-method input:checked + span, .registration-send {
  border-color: var(--accent-bright);
  background: rgba(139, 107, 255, 0.18);
  color: var(--ink);
}
.registration-method input:disabled + span, .registration-send:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}
.registration-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.registration-send { white-space: nowrap; }
.registration-feedback { margin: 8px 0 0; font-size: 12px; color: var(--accent-bright); }
.registration-feedback:empty { display: none; }

/* Admin token fallback */
.token-fallback { margin-top: 18px; font-size: 12px; color: var(--muted); }
.token-fallback summary { cursor: pointer; }
.token-fallback form { margin-top: 12px; display: grid; gap: 10px; }
.token-fallback input {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  background: var(--field);
  color: var(--ink);
}
.token-fallback button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(139, 107, 255, 0.28);
  color: var(--ink);
  font-weight: 600;
}

/* Footer */
.yj-footer {
  padding-block: 18px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: #847ba3;
  font-size: 12px;
}
.yj-footer-links { display: flex; gap: 18px; }
.yj-footer a:hover { color: var(--ink); text-decoration: underline; }

/* QR Dialog */
.qr-dialog {
  width: min(100% - 32px, 370px);
  padding: 30px 24px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #141023;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.78);
}
.qr-dialog::backdrop { background: rgba(5, 4, 10, 0.8); backdrop-filter: blur(8px); }
.qr-dialog h2 { margin: 8px 0; font-family: var(--serif); font-size: 24px; }
.qr-dialog p { margin: 6px 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
}
.dialog-close:hover { background: var(--accent-soft); color: var(--ink); }
.qr-image {
  display: inline-flex;
  padding: 10px;
  margin: 16px 0 8px;
  border-radius: 14px;
  background: #ffffff;
}
.qr-image img { display: block; max-width: 100%; height: auto; }
.qr-direct {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--accent-bright);
  font-size: 13px;
}
.qr-direct svg { width: 16px; height: 16px; }

/* Responsive */
@media (max-width: 980px) {
  .yj-header-inner, .yj-portal, .login-stage, .yj-footer {
    width: calc(100% - 36px);
  }
  .yj-nav { display: none; }
  .yj-hero-grid, .yj-engine-grid, .login-stage {
    grid-template-columns: minmax(0, 1fr);
  }
  .yj-mobius-showcase { order: -1; }
  .mobius-stage { width: min(100%, 340px); }
  .login-panel { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 600px) {
  .yj-header-inner, .yj-portal, .login-stage, .yj-footer {
    width: calc(100% - 24px);
  }
  .yj-brand-copy small { display: none; }
  .yj-hero-cta .yj-btn, .yj-closing-actions .yj-btn { width: 100%; }
  .login-hero { padding: 22px 20px; }
  .login-artwork .mobius-stage { width: min(100%, 240px); }
  .login-panel { padding: 24px 20px; }
  .mobius-hint { font-size: 10px; padding: 5px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .yj-shell *, .yj-shell *::before, .yj-shell *::after {
    transition: none !important;
    animation: none !important;
  }
}
