/** 2711 Editor · View A — VN title screen / JRPG new game */



*, *::before, *::after { box-sizing: border-box; }



html {

  height: 100%;

  -webkit-tap-highlight-color: transparent;

}



body.workbench-body {

  margin: 0;

  height: 100dvh;

  overflow: hidden;

  font-family: var(--font-body);

  font-size: var(--text-sm);

  color: var(--vn-text);

  background: var(--vn-bg-deep);

  -webkit-font-smoothing: antialiased;

}



@media (prefers-reduced-motion: reduce) {

  *, *::before, *::after {

    animation-duration: 0.01ms !important;

    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;

  }

  .workbench__particles { display: none; }

  .workbench__atmosphere-img { animation: none; }

  .route-tile:hover { transform: none; }

}



.skip-link {

  position: absolute;

  left: -9999px;

  top: 12px;

  z-index: 10000;

  padding: 10px 18px;

  border-radius: var(--radius-xs);

  background: rgba(10, 14, 20, 0.92);

  border: 1px solid var(--vn-border-gold);

  color: var(--vn-ivory);

  font-weight: 600;

  text-decoration: none;

}

.skip-link:focus { left: 12px; }



/* ─── Full-bleed atmosphere ─── */

.workbench {

  position: relative;

  height: 100dvh;

  overflow: hidden;

  isolation: isolate;

}



.workbench__atmosphere {

  position: fixed;

  inset: 0;

  width: 100vw;

  height: 100dvh;

  z-index: 0;

  pointer-events: none;

  overflow: hidden;

}



.workbench__atmosphere-img {

  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  object-fit: cover;

  object-position: top center;

  filter: saturate(0.96) contrast(1.02);

  animation: workbenchKenBurns 60s ease-in-out infinite alternate;

}



/* Bottom-edge vignette only — panels rely on their own glass/parchment styles */
.workbench__atmosphere::after {

  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  background: linear-gradient(180deg, transparent 78%, rgba(10, 14, 20, 0.1) 100%);

}



.workbench__veil {

  display: none;

}



.workbench__particles {

  position: absolute;

  inset: 0;

  overflow: hidden;

}



.workbench__particle {

  position: absolute;

  border-radius: 50%;

  background: var(--vn-gold);

  opacity: 0;

  box-shadow: 0 0 8px var(--vn-glow-gold);

  animation: particleDrift var(--p-dur, 22s) ease-in-out infinite;

  animation-delay: var(--p-delay, 0s);

}



@keyframes workbenchKenBurns {

  0% { transform: scale(1) translateY(0); }

  100% { transform: scale(1.04) translateY(-1%); }

}



@keyframes particleDrift {

  0%, 100% { opacity: 0; transform: translate(0, 0); }

  15% { opacity: var(--p-opacity, 0.35); }

  85% { opacity: var(--p-opacity, 0.18); }

  100% { opacity: 0; transform: translate(var(--p-x, 12px), var(--p-y, -80px)); }

}



/* ─── VN title screen shell ─── */

.workbench__shell--view-a {

  position: relative;

  z-index: 1;

  display: flex;

  flex-direction: column;

  align-items: center;

  height: 100dvh;

  max-height: 100dvh;

  padding: clamp(12px, 2vh, 20px) clamp(16px, 3vw, 32px) clamp(14px, 2vh, 22px);

  overflow: hidden;

}



/* Corner utility nav */

.workbench__corner-nav {

  position: absolute;

  top: clamp(12px, 2vh, 18px);

  right: clamp(14px, 2.5vw, 28px);

  z-index: 30;

  display: flex;

  align-items: center;

  gap: 6px;

}



.workbench__corner-btn {

  display: inline-flex;

  align-items: center;

  gap: 5px;

  padding: 6px 12px;

  border: 1px solid rgba(255, 255, 255, 0.14);

  border-radius: var(--radius-pill);

  background: rgba(10, 14, 20, 0.35);

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

  font-family: var(--font-display-en);

  font-size: 10px;

  font-weight: 600;

  letter-spacing: 0.1em;

  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.55);

  cursor: pointer;

  transition:

    color var(--transition-fast),

    border-color var(--transition-fast),

    background var(--transition-fast),

    box-shadow var(--transition-fast);

}



.workbench__corner-btn:hover,

.workbench__corner-btn:focus-visible {

  color: var(--vn-ivory);

  border-color: var(--vn-border-gold);

  background: rgba(214, 176, 106, 0.1);

}



.workbench__corner-btn.is-active,

.workbench__corner-btn[aria-expanded="true"] {

  color: var(--vn-gold);

  border-color: var(--vn-border-gold);

  box-shadow: 0 0 16px var(--vn-glow-gold);

}



.workbench__corner-icon {

  font-size: 11px;

  line-height: 1;

  opacity: 0.7;

}



/* Title screen brand — focal point */

.workbench__title-screen {

  flex-shrink: 0;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 6px;

  padding-top: clamp(8px, 1.5vh, 16px);

  text-align: center;

}



.workbench__brand {

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 4px;

  text-decoration: none;

  color: inherit;

  transition: opacity var(--transition-fast);

}



.workbench__brand:hover { opacity: 0.9; }



.workbench__brand-en {

  font-family: var(--font-display-en);

  font-size: clamp(11px, 1.4vw, 13px);

  font-weight: 500;

  letter-spacing: 0.22em;

  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.5);

}



.workbench__brand-zh {

  font-family: var(--font-display-cn);

  font-size: clamp(2rem, 5.5vw, 3.25rem);

  font-weight: 700;

  line-height: 1.15;

  color: var(--vn-ivory);

  letter-spacing: 0.12em;

  text-shadow:

    0 0 40px rgba(214, 176, 106, 0.35),

    0 2px 24px rgba(0, 0, 0, 0.45);

}



.workbench__travel-notes {

  margin: 0;

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;

  gap: 6px 10px;

  font-family: var(--font-display-en);

  font-size: clamp(9px, 1vw, 10px);

  font-style: italic;

  font-weight: 400;

  letter-spacing: 0.08em;

  color: rgba(255, 255, 255, 0.32);

}



.workbench__travel-notes-sep {

  opacity: 0.4;

}



/* Main content stack */

.workbench__main {

  flex: 1;

  min-height: 0;

  width: min(100%, var(--content-max));

  display: flex;

  flex-direction: column;

  align-items: stretch;

  gap: clamp(8px, 1.2vh, 12px);

  position: relative;

}



/* ─── Open book manuscript ─── */

.workbench__manuscript {

  flex: 1;

  min-height: 0;

  display: flex;

  justify-content: center;

}



.workbench__book {

  position: relative;

  flex: 1;

  min-height: 0;

  width: 100%;

  max-width: 720px;

  display: flex;

  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.35));

}



.workbench__book-spine {

  flex-shrink: 0;

  width: 14px;

  border-radius: 4px 0 0 4px;

  background:

    linear-gradient(90deg, rgba(60, 45, 30, 0.7) 0%, rgba(90, 68, 45, 0.5) 40%, rgba(120, 90, 58, 0.35) 100%);

  box-shadow: inset -3px 0 8px rgba(0, 0, 0, 0.25);

}



.workbench__book-page {

  flex: 1;

  min-height: 0;

  display: flex;

  flex-direction: column;

  padding: clamp(12px, 1.8vh, 18px) clamp(16px, 2.5vw, 24px) clamp(10px, 1.4vh, 14px);

  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;

  background:

    repeating-linear-gradient(

      0deg,

      transparent,

      transparent 27px,

      rgba(180, 150, 110, 0.08) 27px,

      rgba(180, 150, 110, 0.08) 28px

    ),

    linear-gradient(

      168deg,

      var(--manuscript-paper) 0%,

      var(--manuscript-paper-warm) 48%,

      var(--manuscript-paper-edge) 100%

    );

  box-shadow:

    inset 0 0 0 1px rgba(180, 150, 110, 0.25),

    inset 8px 0 24px rgba(120, 90, 58, 0.08),

    inset 0 1px 0 rgba(255, 255, 255, 0.5);

}



.workbench__dropzone {

  flex-shrink: 0;

  padding: 6px 0 4px;

  border: none;

  border-bottom: 1px dashed rgba(120, 90, 58, 0.28);

  border-radius: 0;

  background: transparent;

  text-align: left;

  cursor: pointer;

  transition: border-color var(--transition-base);

}



.workbench__dropzone:hover,

.workbench__dropzone.is-dragover {

  border-bottom-color: rgba(184, 149, 90, 0.55);

  background: transparent;

  box-shadow: none;

}



.workbench__dropzone.is-dragover {

  background: rgba(214, 176, 106, 0.06);

}



.workbench__dropzone.is-busy {

  opacity: 0.55;

  pointer-events: none;

}



.workbench__dropzone-label {

  display: inline-flex;

  align-items: center;

  gap: 8px;

  cursor: pointer;

  font-family: var(--font-display-cn);

  font-size: 12px;

  font-weight: 500;

  letter-spacing: 0.04em;

  color: var(--manuscript-ink-muted);

}



.workbench__dropzone-icon {

  font-size: 10px;

  color: var(--gold-deep);

  opacity: 0.75;

}



.workbench__formats {

  margin: 4px 0 0;

  padding-left: 18px;

  font-family: var(--font-mono);

  font-size: 9px;

  letter-spacing: 0.06em;

  color: var(--manuscript-ink-faint);

}



.workbench__manuscript-meta {

  flex-shrink: 0;

  display: flex;

  align-items: baseline;

  justify-content: space-between;

  gap: 12px;

  margin-top: 8px;

}



.workbench__hint {

  margin: 0;

  font-family: var(--font-display-cn);

  font-size: 11px;

  font-weight: 600;

  color: var(--manuscript-ink-muted);

}



.workbench__hint.is-warn { color: #a07030; }

.workbench__hint.is-over { color: var(--danger); }



.workbench__onboard {

  margin: 0;

  font-size: 10px;

  color: var(--manuscript-ink-faint);

  text-align: right;

}



.workbench__textarea {

  flex: 1;

  min-height: 100px;

  margin-top: 6px;

  padding: 8px 4px 4px;

  border: none;

  border-radius: 0;

  background: transparent;

  resize: none;

  font-family: var(--font-display-cn);

  font-size: clamp(14px, 1.5vw, 16px);

  line-height: 1.85;

  color: var(--manuscript-ink);

  overflow-y: auto;

  scrollbar-width: thin;

  scrollbar-color: rgba(120, 90, 58, 0.3) transparent;

}



.workbench__textarea::placeholder {

  color: var(--manuscript-ink-faint);

  font-style: italic;

}



.workbench__textarea:focus {

  outline: none;

  box-shadow: none;

}



.workbench__book-page .workshop__upload-status,

.workbench__book-page .upload-progress {

  margin-top: 6px;

  flex-shrink: 0;

}



.workbench-body .workbench__book-page .workshop__upload-status {

  border-color: rgba(120, 90, 58, 0.25);

  background: rgba(255, 255, 255, 0.45);

  color: var(--manuscript-ink-muted);

}



.workbench-body .workbench__book-page .upload-progress {

  background: rgba(120, 90, 58, 0.12);

}



.workbench__preview-hooks {

  position: absolute;

  width: 1px;

  height: 1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);

  white-space: nowrap;

}



/* ─── Route selection (JRPG menu tiles) ─── */

.workbench__routes {

  flex-shrink: 0;

}



.workbench__routes-prompt {

  margin: 0 0 8px;

  text-align: center;

  font-family: var(--font-display-cn);

  font-size: 12px;

  font-weight: 500;

  letter-spacing: 0.16em;

  color: rgba(255, 255, 255, 0.45);

}



.workbench__worlds {

  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 8px;

}



.route-tile {

  position: relative;

  display: flex;

  flex-direction: column;

  align-items: stretch;

  width: clamp(108px, 12vw, 140px);

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: var(--radius-xs);

  overflow: hidden;

  background: rgba(10, 14, 20, 0.42);

  backdrop-filter: blur(6px);

  -webkit-backdrop-filter: blur(6px);

  cursor: pointer;

  text-align: center;

  transition:

    transform var(--transition-base),

    border-color var(--transition-base),

    box-shadow var(--transition-base),

    background var(--transition-base);

}



.route-tile__img {

  width: 100%;

  aspect-ratio: 16 / 9;

  object-fit: cover;

  object-position: center;

  opacity: 0.78;

  filter: brightness(0.85) saturate(0.9);

  transition: opacity var(--transition-base), filter var(--transition-base);

}



.route-tile__label {

  padding: 6px 8px 8px;

}



.route-tile__en {

  display: block;

  font-family: var(--font-display-en);

  font-size: 7px;

  font-weight: 600;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.42);

  line-height: 1.2;

}



.route-tile__zh {

  display: block;

  margin-top: 2px;

  font-family: var(--font-display-cn);

  font-size: 11px;

  font-weight: 600;

  color: rgba(255, 255, 255, 0.82);

}



.route-tile:hover {

  transform: translateY(-2px);

  border-color: var(--vn-border-gold);

  background: rgba(214, 176, 106, 0.08);

  box-shadow: 0 0 20px var(--vn-glow-gold);

}



.route-tile:hover .route-tile__img {

  opacity: 0.95;

  filter: brightness(1) saturate(1);

}



.route-tile.preset-btn--active {

  border-color: var(--vn-gold);

  background: rgba(214, 176, 106, 0.14);

  box-shadow:

    0 0 0 1px rgba(214, 176, 106, 0.4),

    0 0 28px var(--vn-glow-gold),

    inset 0 0 20px rgba(214, 176, 106, 0.06);

}



.route-tile.preset-btn--active .route-tile__img {

  opacity: 1;

  filter: brightness(1.05) saturate(1.05);

}



.route-tile.preset-btn--active::before {

  content: "◆";

  position: absolute;

  top: 5px;

  left: 7px;

  font-size: 9px;

  color: var(--vn-gold);

  text-shadow: 0 0 8px var(--vn-glow-gold);

  z-index: 1;

}



.route-tile[data-style="xianxia"].preset-btn--active { border-color: var(--world-fantasy); box-shadow: 0 0 28px var(--world-fantasy-soft), inset 0 0 20px var(--world-fantasy-soft); }

.route-tile[data-style="urban_romance"].preset-btn--active { border-color: var(--world-urban); box-shadow: 0 0 28px var(--world-urban-soft), inset 0 0 20px var(--world-urban-soft); }

.route-tile[data-style="mystery"].preset-btn--active { border-color: var(--world-mystery); box-shadow: 0 0 28px var(--world-mystery-soft), inset 0 0 20px var(--world-mystery-soft); }

.route-tile[data-style="campus"].preset-btn--active { border-color: var(--world-campus); box-shadow: 0 0 28px var(--world-campus-soft), inset 0 0 20px var(--world-campus-soft); }



/* ─── VN menu command CTA ─── */

.workbench__cta {

  flex-shrink: 0;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 8px;

  padding-top: 2px;

}



.workbench__menu-cmd {

  min-width: min(100%, 320px);

  min-height: auto;

  padding: 12px 28px;

  border: none;

  border-radius: 0;

  background: transparent;

  font-family: var(--font-display-en);

  font-size: clamp(15px, 2vw, 18px);

  font-weight: 600;

  letter-spacing: 0.14em;

  text-transform: none;

  color: var(--vn-gold);

  cursor: pointer;

  box-shadow: none;

  text-shadow: 0 0 24px var(--vn-glow-gold);

  transition:

    color var(--transition-base),

    text-shadow var(--transition-base),

    transform var(--transition-base),

    opacity var(--transition-base);

}



.workbench__menu-cmd:hover:not(:disabled) {

  color: var(--vn-ivory);

  text-shadow:

    0 0 32px rgba(214, 176, 106, 0.55),

    0 0 8px rgba(244, 239, 230, 0.3);

  transform: translateY(-1px);

  box-shadow: none;

  filter: none;

}



.workbench__menu-cmd:disabled {

  opacity: 0.38;

  cursor: not-allowed;

}



.workbench__menu-cmd.is-loading {

  opacity: 0.6;

}



/* Override app.css primary blob for VN menu command */

.workbench-body .workbench__menu-cmd.workshop-btn--primary {

  border: none;

  background: transparent;

  color: var(--vn-gold);

  box-shadow: none;

}



.workbench-body .workbench__menu-cmd.workshop-btn--primary:hover:not(:disabled) {

  background: transparent;

  box-shadow: none;

  transform: translateY(-1px);

}



.workbench__error {

  margin: 0;

  padding: 8px 12px;

  border-radius: var(--radius-xs);

  font-size: 11px;

  background: rgba(224, 138, 138, 0.12);

  border: 1px solid rgba(224, 138, 138, 0.28);

  color: var(--danger);

  flex-shrink: 0;

  max-width: min(100%, 480px);

  text-align: center;

}



/* Pipeline overlay */

.workbench__main .pipeline {

  position: absolute;

  inset: 0;

  z-index: 20;

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  padding: 28px;

  border-radius: var(--radius-md);

  background: rgba(10, 14, 20, 0.82);

  backdrop-filter: blur(var(--blur-heavy));

  -webkit-backdrop-filter: blur(var(--blur-heavy));

  border: 1px solid var(--vn-border-gold);

  box-shadow: 0 0 48px rgba(214, 176, 106, 0.12);

  text-align: center;

}



/* ─── History slide-over drawer ─── */

.workbench__drawer-backdrop {

  position: fixed;

  inset: 0;

  z-index: 40;

  background: rgba(10, 14, 20, 0.45);

  backdrop-filter: blur(2px);

  -webkit-backdrop-filter: blur(2px);

  opacity: 0;

  transition: opacity var(--transition-base);

  pointer-events: none;

}



.workbench__drawer-backdrop.is-visible {

  opacity: 1;

  pointer-events: auto;

}



.workbench__drawer {

  position: fixed;

  top: 0;

  right: 0;

  z-index: 50;

  width: min(100vw, 300px);

  height: 100dvh;

  display: flex;

  flex-direction: column;

  padding: 18px 16px 16px;

  border: none;

  border-left: 1px solid var(--vn-border-gold);

  border-radius: 0;

  background: rgba(10, 14, 20, 0.78);

  backdrop-filter: blur(var(--blur-glass)) saturate(1.1);

  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(1.1);

  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.35);

  transform: translateX(100%);

  transition: transform var(--transition-slow);

  overflow: hidden;

}



.workbench__drawer.is-open {

  transform: translateX(0);

}



.workbench__drawer.is-highlight {

  border-left-color: var(--vn-gold);

  box-shadow:

    -8px 0 40px rgba(0, 0, 0, 0.35),

    -4px 0 32px var(--vn-glow-gold);

}



.workbench__drawer-head {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 8px;

  flex-shrink: 0;

}



.workbench__drawer-title {

  margin: 0;

  font-family: var(--font-display-en);

  font-size: 14px;

  font-weight: 600;

  letter-spacing: 0.1em;

  color: var(--vn-ivory);

}



.workbench__drawer-close {

  flex-shrink: 0;

  width: 28px;

  height: 28px;

  padding: 0;

  border: 1px solid var(--vn-border);

  border-radius: var(--radius-xs);

  background: transparent;

  font-size: 16px;

  line-height: 1;

  color: var(--vn-text-muted);

  cursor: pointer;

  transition: color var(--transition-fast), border-color var(--transition-fast);

}



.workbench__drawer-close:hover,

.workbench__drawer-close:focus-visible {

  color: var(--vn-gold);

  border-color: var(--vn-border-gold);

}



.workbench__drawer-sub {

  margin: 4px 0 12px;

  font-size: 10px;

  color: var(--vn-text-muted);

  flex-shrink: 0;

}



.workbench__drawer .history-list {

  flex: 1;

  min-height: 0;

  overflow-y: auto;

  margin: 0;

  padding: 0;

  list-style: none;

  scrollbar-width: thin;

  scrollbar-color: rgba(184, 149, 90, 0.45) rgba(248, 244, 236, 0.5);

}



.workbench__drawer .history-list::-webkit-scrollbar {

  width: 8px;

}



.workbench__drawer .history-list::-webkit-scrollbar-track {

  background: rgba(248, 244, 236, 0.55);

  border-radius: 4px;

}



.workbench__drawer .history-list::-webkit-scrollbar-thumb {

  background: rgba(184, 149, 90, 0.42);

  border: 1px solid rgba(214, 176, 106, 0.22);

  border-radius: 4px;

}



.workbench__drawer .history-list::-webkit-scrollbar-thumb:hover {

  background: rgba(184, 149, 90, 0.58);

}



.workbench__drawer .history-item {

  margin-bottom: 6px;

  border-radius: var(--radius-xs);

  border: 1px solid var(--vn-border);

  background: rgba(0, 0, 0, 0.18);

}



.workbench__drawer .history-empty {

  margin: auto 0;

  padding: 16px 8px;

  text-align: center;

  font-size: 11px;

  color: var(--vn-text-muted);

}



.workbench__drawer .history-loading {

  font-size: 11px;

  color: var(--vn-text-muted);

}



/* World tint on book page edge */

.workbench__shell[data-style="xianxia"] .workbench__book-page {

  box-shadow: inset 0 0 0 1px rgba(155, 122, 212, 0.2), inset 8px 0 24px rgba(155, 122, 212, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);

}



.workbench__shell[data-style="urban_romance"] .workbench__book-page {

  box-shadow: inset 0 0 0 1px rgba(216, 154, 165, 0.2), inset 8px 0 24px rgba(216, 154, 165, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);

}



.workbench__shell[data-style="mystery"] .workbench__book-page {

  box-shadow: inset 0 0 0 1px rgba(143, 164, 200, 0.2), inset 8px 0 24px rgba(143, 164, 200, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);

}



.workbench__shell[data-style="campus"] .workbench__book-page {

  box-shadow: inset 0 0 0 1px rgba(155, 196, 157, 0.2), inset 8px 0 24px rgba(155, 196, 157, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.5);

}



body.game-active .workbench {

  visibility: hidden;

  pointer-events: none;

}



.workbench__shell.is-generating .style-hub,

.workbench__shell.is-generating .workbench__input-panel,

.workbench__shell.is-generating .workbench__load-rail {

  opacity: 0.3;

  pointer-events: none;

}



/* ─── Desktop 1440×900: no page scroll ─── */

@media (min-width: 961px) {

  .workbench__shell--view-a {

    max-height: 100dvh;

  }

}



/* ─── Mobile: vertical stack, VN mood ─── */

@media (max-width: 960px) {

  body.workbench-body {

    overflow-x: hidden;

    overflow-y: auto;

  }



  .workbench {

    overflow-x: hidden;

  }



  .workbench__shell--view-a {

    overflow-y: visible;

    -webkit-overflow-scrolling: touch;

  }



  .workbench__brand-zh {

    font-size: clamp(1.75rem, 8vw, 2.5rem);

  }



  .workbench__book {

    min-height: 240px;

  }



  .workbench__textarea {

    min-height: 140px;

  }



  .workbench__worlds {

    gap: 6px;

  }



  .route-tile {

    width: calc(50% - 4px);

    max-width: 160px;

  }



  .workbench__corner-nav {

    top: 10px;

    right: 10px;

  }



  .workbench__corner-label {

    display: none;

  }



  .workbench__corner-btn {

    padding: 8px 10px;

  }



  .workbench__drawer {

    width: min(100vw, 280px);

  }

}



@media (max-width: 520px) {

  .workbench__travel-notes {

    flex-direction: column;

    gap: 2px;

  }



  .workbench__travel-notes-sep { display: none; }

}



@media (prefers-reduced-motion: reduce) {

  .workbench__drawer,

  .workbench__drawer-backdrop {

    transition: none;

  }

}



/* ─── View A redesign: stage-first + RPG class list ─── */

.workbench__tagline-main {

  margin: 4px 0 0;

  font-family: var(--font-display-cn);

  font-size: clamp(14px, 2vh, 17px);

  font-weight: 500;

  letter-spacing: 0.28em;

  color: rgba(255, 255, 255, 0.72);

  text-align: center;

}



.workbench__hero-grid {

  flex: 1;

  min-height: 0;

  display: grid;

  grid-template-columns: minmax(200px, 240px) 1fr;

  gap: clamp(12px, 2vw, 20px);

  align-items: stretch;

}



.workbench__class-list {

  display: flex;

  flex-direction: column;

  min-height: 0;

}



.class-rpg-list {

  display: flex;

  flex-direction: column;

  gap: 6px;

  flex: 1;

  min-height: 0;

  overflow-y: auto;

}



.class-rpg {

  display: flex;

  align-items: flex-start;

  gap: 10px;

  width: 100%;

  padding: 10px 12px;

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: var(--radius-xs);

  background: rgba(10, 14, 20, 0.45);

  backdrop-filter: blur(8px);

  cursor: pointer;

  text-align: left;

  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);

}



.class-rpg:hover,

.class-rpg:focus-visible {

  border-color: rgba(214, 176, 106, 0.45);

  background: rgba(214, 176, 106, 0.08);

}



.class-rpg.preset-btn--active {

  border-color: var(--vn-border-gold);

  box-shadow: 0 0 20px var(--vn-glow-gold), inset 0 0 16px rgba(214, 176, 106, 0.08);

  background: rgba(214, 176, 106, 0.1);

}



.class-rpg__radio {

  flex-shrink: 0;

  width: 14px;

  height: 14px;

  margin-top: 3px;

  border: 2px solid rgba(255, 255, 255, 0.35);

  border-radius: 50%;

  position: relative;

}



.class-rpg.preset-btn--active .class-rpg__radio {

  border-color: var(--vn-gold);

}



.class-rpg.preset-btn--active .class-rpg__radio::after {

  content: "";

  position: absolute;

  inset: 2px;

  border-radius: 50%;

  background: var(--vn-gold);

  box-shadow: 0 0 8px var(--vn-glow-gold);

}



.class-rpg__body {

  display: flex;

  flex-direction: column;

  gap: 2px;

  min-width: 0;

}



.class-rpg__name {

  font-family: var(--font-display-cn);

  font-size: 14px;

  font-weight: 600;

  color: var(--vn-ivory);

}



.class-rpg__tagline {

  font-size: 11px;

  color: rgba(255, 255, 255, 0.48);

  letter-spacing: 0.06em;

}



.workbench__scene-stage {

  display: flex;

  flex-direction: column;

  min-height: 0;

  gap: 6px;

}



.scene-stage__frame {

  position: relative;

  flex: 1;

  min-height: 0;

  border-radius: var(--radius-sm);

  overflow: hidden;

  border: 1px solid rgba(214, 176, 106, 0.28);

  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4), 0 0 32px rgba(214, 176, 106, 0.08);

}



.scene-stage__img {

  width: 100%;

  height: 100%;

  min-height: clamp(140px, 28vh, 280px);

  object-fit: cover;

  object-position: center;

  transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out);

}



.scene-stage__veil {

  position: absolute;

  inset: 0;

  background: linear-gradient(180deg, transparent 40%, rgba(10, 14, 20, 0.75) 100%);

  pointer-events: none;

}



.scene-stage__meta {

  position: absolute;

  left: 16px;

  right: 16px;

  bottom: 14px;

  z-index: 2;

}



.scene-stage__style {

  margin: 0;

  font-family: var(--font-display-en);

  font-size: 10px;

  font-weight: 600;

  letter-spacing: 0.14em;

  text-transform: uppercase;

  color: rgba(255, 255, 255, 0.55);

}



.scene-stage__tagline {

  margin: 4px 0 0;

  font-family: var(--font-display-cn);

  font-size: clamp(16px, 2.2vh, 20px);

  font-weight: 600;

  color: var(--vn-ivory);

  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);

}



.scene-stage__hint {

  margin: 0;

  font-size: 11px;

  line-height: 1.45;

  color: rgba(255, 255, 255, 0.42);

  text-align: center;

}



.workbench__manuscript-compact {

  flex-shrink: 0;

  padding: 10px 14px;

  border: 1px dashed rgba(255, 255, 255, 0.14);

  border-radius: var(--radius-xs);

  background: rgba(10, 14, 20, 0.35);

  backdrop-filter: blur(6px);

}



.workbench__manuscript-compact .workbench__dropzone {

  padding: 4px 0 6px;

  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);

}



.workbench__manuscript-inline {

  display: grid;

  grid-template-columns: 1fr auto;

  gap: 8px 12px;

  align-items: end;

}



.workbench__manuscript-compact .workbench__textarea {

  min-height: 52px;

  max-height: 72px;

  resize: none;

  font-size: 13px;

  background: rgba(0, 0, 0, 0.2);

  border: 1px solid rgba(255, 255, 255, 0.1);

  color: var(--vn-ivory);

}



.workbench__manuscript-compact .workbench__manuscript-meta {

  flex-direction: column;

  align-items: flex-end;

  gap: 2px;

}



.workbench__new-game {

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 2px;

  min-width: min(100%, 280px);

}



.new-game__en {

  font-family: var(--font-display-en);

  font-size: 9px;

  font-weight: 600;

  letter-spacing: 0.32em;

  text-transform: uppercase;

  color: rgba(214, 176, 106, 0.68);

}



.new-game__zh {

  font-family: "ZCOOL XiaoWei", var(--font-display-cn), serif;

  font-size: clamp(18px, 2.4vh, 22px);

  font-weight: 400;

  letter-spacing: 0.2em;

  color: var(--vn-ivory);

}



.pipeline__sub {

  margin: 4px 0 0;

  font-size: 11px;

  color: rgba(255, 255, 255, 0.45);

  text-align: center;

}



.pipeline__steps {

  list-style: none;

  margin: 10px 0 0;

  padding: 0;

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 4px 12px;

}



.pipeline__step {

  font-size: 11px;

  color: rgba(255, 255, 255, 0.35);

  padding-left: 14px;

  position: relative;

}



.pipeline__step::before {

  content: "○";

  position: absolute;

  left: 0;

  font-size: 9px;

}



.pipeline__step.is-active {

  color: var(--vn-gold);

}



.pipeline__step.is-done {

  color: rgba(155, 196, 157, 0.85);

}



.pipeline__step.is-done::before {

  content: "✓";

}



.pipeline__achievement {

  margin-top: 12px;

  padding: 14px;

  border: 1px solid var(--vn-border-gold);

  border-radius: var(--radius-xs);

  background: rgba(214, 176, 106, 0.08);

  text-align: center;

}



.pipeline__achievement-title {

  margin: 0 0 6px;

  font-family: var(--font-display-cn);

  font-size: 14px;

  color: var(--vn-gold);

}



.pipeline__achievement-stats {

  margin: 0 0 10px;

  font-size: 12px;

  color: var(--vn-ivory);

  line-height: 1.5;

}



.pipeline__cover img {

  width: min(100%, 240px);

  border-radius: 8px;

  border: 1px solid var(--vn-border-gold);

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);

}



.pipeline__cover-label {

  margin: 6px 0 0;

  font-size: 11px;

  color: var(--vn-text-muted);

}



.load-game-card__inner {

  flex: 1;

  min-width: 0;

}



.load-game-card__title {

  margin: 0 0 4px;

  font-family: var(--font-display-cn);

  font-size: 14px;

  font-weight: 600;

  color: var(--vn-ivory);

}



.load-game-card__style {

  margin: 0 0 4px;

  font-size: 11px;

  color: var(--vn-gold);

  letter-spacing: 0.08em;

}



.load-game-card__progress {

  margin: 0;

  font-size: 11px;

  color: rgba(155, 196, 157, 0.9);

}



.load-game-card__meta {

  margin: 0;

  font-size: 10px;

  color: var(--vn-text-muted);

}



.load-game-card__cta {

  display: inline-block;

  margin-top: 8px;

  font-size: 11px;

  font-weight: 600;

  letter-spacing: 0.1em;

  color: var(--vn-gold);

}



.load-game-card__cta--muted {

  color: var(--vn-text-muted);

}



.protagonist-gate {

  position: fixed;

  inset: 0;

  z-index: 9500;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 20px;

}



.protagonist-gate[hidden] { display: none; }



.protagonist-gate__veil {

  position: absolute;

  inset: 0;

  background: rgba(10, 14, 20, 0.72);

  backdrop-filter: blur(10px);

}



.protagonist-gate__panel {

  position: relative;

  width: min(100%, 420px);

  padding: 24px;

  border-radius: var(--radius-sm);

  border: 1px solid var(--vn-border-gold);

  background: rgba(18, 22, 30, 0.94);

  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);

}



.protagonist-gate__eyebrow {

  margin: 0 0 6px;

  font-size: 10px;

  letter-spacing: 0.16em;

  color: var(--vn-gold);

  text-transform: uppercase;

}



.protagonist-gate__title {

  margin: 0 0 8px;

  font-family: var(--font-display-cn);

  font-size: 18px;

  color: var(--vn-ivory);

}



.protagonist-gate__hint {

  margin: 0 0 12px;

  font-size: 13px;

  color: var(--vn-text-muted);

  line-height: 1.5;

}



.protagonist-candidate {

  display: flex;

  align-items: center;

  gap: 10px;

  width: 100%;

  padding: 10px 12px;

  margin-bottom: 6px;

  border: 1px solid var(--vn-border);

  border-radius: var(--radius-xs);

  background: rgba(0, 0, 0, 0.2);

  color: var(--vn-ivory);

  cursor: pointer;

  text-align: left;

}



.protagonist-candidate.is-selected {

  border-color: var(--vn-border-gold);

  background: rgba(214, 176, 106, 0.1);

}



.protagonist-gate__custom {

  display: flex;

  flex-direction: column;

  gap: 6px;

  margin: 12px 0;

  font-size: 12px;

  color: var(--vn-text-muted);

}



.protagonist-gate__custom input {

  padding: 10px 12px;

  border: 1px solid var(--vn-border);

  border-radius: var(--radius-xs);

  background: rgba(0, 0, 0, 0.25);

  color: var(--vn-ivory);

  font-size: 14px;

}



.protagonist-gate__custom.is-prominent {

  padding: 12px;

  margin: 8px 0 14px;

  border: 1px solid var(--vn-border-gold);

  border-radius: var(--radius-xs);

  background: rgba(214, 176, 106, 0.08);

}



.protagonist-gate__custom.is-prominent input {

  border-color: var(--vn-border-gold);

  font-size: 15px;

}



.protagonist-gate.is-low-confidence .protagonist-gate__title {

  color: var(--vn-gold);

}



.protagonist-candidate__conf {

  margin-left: auto;

  font-size: 11px;

  color: var(--vn-text-muted);

  opacity: 0.85;

}



.protagonist-gate__actions {

  display: flex;

  gap: 10px;

  justify-content: flex-end;

  margin-top: 8px;

}



@media (max-width: 767.98px) {

  .workbench__hero-grid {

    grid-template-columns: 1fr;

    grid-template-rows: auto 1fr;

  }

  .class-rpg-list {

    flex-direction: row;

    flex-wrap: wrap;

    overflow: visible;

  }

  .class-rpg {

    width: calc(50% - 4px);

  }

  .workbench__manuscript-inline {

    grid-template-columns: 1fr;

  }

}

