/* ============================================================
   Vox Mana - Archscry shell modernization
   Shared route styling for /archscry/.
   Keeps runtime markup intact while moving the route into the
   newer vm-bg / glass / chamber presentation system.
   VM-147B note: comments below mark route ownership zones only.
   Do not reorder scoped and legacy blocks without a verified cascade reason.
   ============================================================ */

/* Archscry route shell / rich atmosphere */

body.vm-archscry-route {
  --vm-archscry-bg-image: url("../img/backgrounds/background-vox-gateway-clean-09.webp");
  background:
    radial-gradient(circle at 20% 10%, rgba(88, 184, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 80% 0%, rgba(164, 107, 234, 0.10), transparent 24rem),
    linear-gradient(180deg, #080812, #000);
  color: var(--text);
  font-family: var(--font-text);
}

body.vm-archscry-route::before {
  content: "";
  display: none;
  position: fixed;
  inset: 0;
  z-index: -11;
  pointer-events: none;
  background-image: var(--vm-archscry-bg-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  filter: saturate(1.04) contrast(1.08) brightness(0.72);
}

body.vm-archscry-route::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.93), rgba(0, 0, 0, 0.18) 22%, rgba(0, 0, 0, 0.14) 76%, rgba(0, 0, 0, 0.92)),
    radial-gradient(circle at var(--mx, 50%) var(--my, 40%), rgba(88, 186, 255, 0.28), transparent 28rem),
    radial-gradient(ellipse at 50% 100%, rgba(215, 162, 60, 0.14), transparent 44rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.72));
  mix-blend-mode: normal;
}

body.vm-archscry-route .vm-bg {
  z-index: -10;
  background: transparent;
  overflow: visible;
}

body.vm-archscry-route .vm-bg::before,
body.vm-archscry-route .vm-bg::after {
  content: none;
}

body.vm-archscry-route .vm-bg__picture {
  display: block;
  width: 100%;
  height: 100%;
}

body.vm-archscry-route .vm-bg__picture img {
  position: static;
  inset: auto;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  animation: none;
  transform: none;
  opacity: 1;
  -webkit-mask-image: none;
          mask-image: none;
  filter: none;
}

body.vm-archscry-route .vm-bg__nebula {
  display: none !important;
}

body.vm-archscry-route .vm-bg__stars {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: 1;
  pointer-events: none;
}

body.vm-archscry-route .app {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

body.vm-archscry-route .section {
  min-height: calc(100vh - var(--vm-topbar-h));
  padding-inline: clamp(1rem, 3vw, 2rem);
}

body.vm-archscry-route :is(#landing, #quick, #interview) {
  justify-content: flex-start;
  padding-top: calc(var(--vm-topbar-h) + clamp(2rem, 4vw, 4rem));
  padding-bottom: clamp(3rem, 5vw, 5rem);
}

body.vm-archscry-route #result {
  justify-content: flex-start;
  padding: clamp(1rem, 2vw, 1.5rem) 0 4rem;
}

/* Landing, quick reading, and archived terminal shells */

body.vm-archscry-route .landing-wrap,
body.vm-archscry-route .quick-shell,
body.vm-archscry-route .interview-shell {
  width: min(1120px, 100%);
}

body.vm-archscry-route .landing-wrap {
  display: grid;
  gap: 1.25rem;
}

body.vm-archscry-route .hero-band,
body.vm-archscry-route .question-card,
body.vm-archscry-route .interview-shell,
body.vm-archscry-route #decree-container,
body.vm-archscry-route .result-status,
body.vm-archscry-route .precons-section,
body.vm-archscry-route .scores-section,
body.vm-archscry-route .archetypes-section,
body.vm-archscry-route .starter-section,
body.vm-archscry-route .adjacent-section,
body.vm-archscry-route .staples-section,
body.vm-archscry-route .lands-section,
body.vm-archscry-route .decks-section,
body.vm-archscry-route .footer-actions {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(184, 149, 74, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(184, 149, 74, 0.1), transparent 17rem),
    linear-gradient(180deg, rgba(11, 10, 13, 0.84), rgba(8, 8, 10, 0.72)),
    var(--asset-texture-panel);
  background-size: auto, auto, 420px 420px;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px) saturate(112%);
}

body.vm-archscry-route .hero-band {
  max-width: 980px;
  padding: clamp(2rem, 5vw, 3rem);
}

body.vm-archscry-route .hero-band::after,
body.vm-archscry-route .question-card::after,
body.vm-archscry-route .interview-shell::after,
body.vm-archscry-route .guild-banner::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

body.vm-archscry-route .eyebrow,
body.vm-archscry-route .question-eyebrow,
body.vm-archscry-route .progress-copy,
body.vm-archscry-route .guild-eyebrow,
body.vm-archscry-route .section-label,
body.vm-archscry-route .deck-format,
body.vm-archscry-route .adjacent-label,
body.vm-archscry-route .service-name,
body.vm-archscry-route .omen-index,
body.vm-archscry-route .commander-preview-label,
body.vm-archscry-route .starter-note-label,
body.vm-archscry-route .tag-interpretation-name,
body.vm-archscry-route .flavor-echo-kicker,
body.vm-archscry-route .land-tier-label,
body.vm-archscry-route .guide-tier,
body.vm-archscry-route .staple-cat-label {
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
}

body.vm-archscry-route .landing-title,
body.vm-archscry-route .quick-title,
body.vm-archscry-route .interview-title,
body.vm-archscry-route .decree-title,
body.vm-archscry-route .guild-name,
body.vm-archscry-route .empty-state h2 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40, "wght" 620, "SOFT" 55;
}

body.vm-archscry-route .landing-title {
  max-width: 14ch;
  font-size: clamp(2.7rem, 5.8vw, 4.9rem);
  margin-bottom: 1.15rem;
  color: #f0deab;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.46);
}

body.vm-archscry-route .landing-sub {
  max-width: 56ch;
  font-size: clamp(1.12rem, 2vw, 1.26rem);
  color: rgba(244, 239, 228, 0.92);
}

body.vm-archscry-route .landing-note,
body.vm-archscry-route .quick-sub,
body.vm-archscry-route .interview-copy,
body.vm-archscry-route .decree-runner,
body.vm-archscry-route .guild-lore-summary {
  color: rgba(212, 201, 184, 0.8);
}

body.vm-archscry-route .landing-actions,
body.vm-archscry-route .quick-footer,
body.vm-archscry-route .decree-actions,
body.vm-archscry-route .footer-button-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

body.vm-archscry-route :is(.btn-primary, .btn-secondary, .tb-btn, #terminal-submit, .adjacent-btn) {
  min-height: 40px;
  border-radius: 999px;
  clip-path: none;
  padding-inline: 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body.vm-archscry-route .btn-primary {
  color: var(--bg);
  background: linear-gradient(180deg, #ead184, var(--gold-l) 48%, var(--gold));
  box-shadow: 0 14px 32px rgba(184, 149, 74, 0.28);
}

body.vm-archscry-route .btn-primary:hover {
  background: linear-gradient(180deg, #f2df9d, #e0c06c 48%, var(--gold-l));
  box-shadow: 0 18px 38px rgba(184, 149, 74, 0.34);
}

body.vm-archscry-route :is(.btn-secondary, .tb-btn, .adjacent-btn, #terminal-submit) {
  color: var(--gold-l);
  border: 1px solid rgba(184, 149, 74, 0.28);
  background: rgba(10, 10, 12, 0.62);
}

body.vm-archscry-route :is(.btn-secondary:hover, .tb-btn:hover, .adjacent-btn:hover, #terminal-submit:hover) {
  background: rgba(184, 149, 74, 0.12);
  border-color: var(--gold);
  color: #f4dd9c;
}

body.vm-archscry-route .tb-identity {
  padding: 0.28rem 0.45rem;
  border: 1px solid rgba(184, 149, 74, 0.12);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.4);
  backdrop-filter: blur(8px);
}

body.vm-archscry-route .tb-avatar {
  width: 34px;
  height: 34px;
  border-color: rgba(184, 149, 74, 0.28);
  background: rgba(184, 149, 74, 0.12);
}

body.vm-archscry-route .progress-row {
  gap: 1rem;
  margin-bottom: 1.15rem;
}

body.vm-archscry-route .progress-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(184, 149, 74, 0.12);
}

body.vm-archscry-route .progress-fill {
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #f0d583);
}

body.vm-archscry-route .question-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

body.vm-archscry-route .question-title {
  max-width: 28ch;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  line-height: 1.28;
}

body.vm-archscry-route .answer-grid {
  gap: 14px;
}

body.vm-archscry-route .answer-card {
  min-height: 100%;
  border: 1px solid rgba(184, 149, 74, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(26, 170, 150, 0.08), transparent 10rem),
    linear-gradient(180deg, rgba(19, 18, 22, 0.94), rgba(12, 12, 14, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

body.vm-archscry-route .answer-card:hover {
  border-color: rgba(212, 180, 97, 0.34);
  background:
    radial-gradient(circle at top right, rgba(26, 170, 150, 0.11), transparent 10rem),
    linear-gradient(180deg, rgba(24, 22, 27, 0.97), rgba(12, 12, 14, 0.86));
  transform: translateY(-2px);
}

body.vm-archscry-route .answer-card button {
  height: 100%;
  padding: 0;
}

body.vm-archscry-route .quick-footer {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(184, 149, 74, 0.12);
}

body.vm-archscry-route .interview-shell {
  padding: clamp(1.15rem, 2.8vw, 1.6rem);
}

body.vm-archscry-route .interview-header {
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

body.vm-archscry-route #terminal-output,
body.vm-archscry-route #terminal-input,
body.vm-archscry-route #terminal-status,
body.vm-archscry-route #terminal-error,
body.vm-archscry-route #terminal-submit {
  position: relative;
  z-index: 1;
}

body.vm-archscry-route #terminal-output {
  height: 400px;
  border: 1px solid rgba(184, 149, 74, 0.16);
  border-radius: 22px;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(9, 11, 15, 0.94), rgba(5, 6, 8, 0.88));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

body.vm-archscry-route #terminal-input-row {
  gap: 0.75rem;
  margin-top: 1rem;
}

body.vm-archscry-route #terminal-input {
  min-height: 46px;
  border: 1px solid rgba(184, 149, 74, 0.16);
  border-radius: 18px;
  background: rgba(6, 7, 10, 0.9);
}

body.vm-archscry-route #terminal-input:focus {
  border-color: rgba(26, 170, 150, 0.44);
  box-shadow: 0 0 0 3px rgba(26, 170, 150, 0.08);
}

body.vm-archscry-route #decree-container {
  margin-top: 1.2rem;
  padding: 1.25rem;
  background:
    radial-gradient(circle at top left, rgba(184, 149, 74, 0.14), transparent 18rem),
    linear-gradient(180deg, rgba(21, 16, 11, 0.86), rgba(10, 8, 8, 0.82)),
    var(--asset-texture-parchment);
  background-size: auto, auto, 420px 420px;
}

body.vm-archscry-route .decree-tagline {
  color: rgba(240, 225, 184, 0.76);
}

body.vm-archscry-route .decree-text {
  color: #f0dc95;
  font-size: 1.08rem;
}

/* Result shell and route-local dossier panels */

body.vm-archscry-route .result-inner {
  max-width: 1120px;
  padding: 0 1rem 4rem;
}

body.vm-archscry-route .guild-banner {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 2rem;
  padding: clamp(3rem, 5vw, 4.2rem) clamp(1.4rem, 4vw, 2.8rem);
  border: 1px solid rgba(184, 149, 74, 0.22);
  border-radius: 32px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  background-position: center;
  background-size: cover;
}

body.vm-archscry-route .guild-banner::before {
  background:
    linear-gradient(180deg, rgba(8, 8, 12, 0.12), rgba(8, 8, 12, 0.82)),
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.12), transparent 34rem);
}

body.vm-archscry-route .guild-banner[data-hero-background="identity-image"]::before {
  content: none;
}

body.vm-archscry-route .guild-eyebrow {
  color: rgba(244, 230, 187, 0.72);
}

body.vm-archscry-route .guild-name {
  font-size: clamp(2.8rem, 6vw, 4.9rem);
  line-height: 0.96;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.52);
}

body.vm-archscry-route .guild-tagline {
  color: rgba(249, 245, 231, 0.9);
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
}

body.vm-archscry-route .guild-philosophy {
  max-width: 52ch;
  margin-inline: auto;
}

body.vm-archscry-route .result-status {
  margin-bottom: 1.35rem;
  padding: 1rem 1.15rem;
}

body.vm-archscry-route .result-status strong {
  color: #f0dc95;
}

body.vm-archscry-route .result-context-bar {
  top: calc(var(--vm-topbar-h) + 0.75rem);
  z-index: 12;
  width: min(1120px, 100%);
  margin-inline: auto;
  margin-bottom: 1.3rem;
  border: 1px solid rgba(26, 170, 150, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(26, 170, 150, 0.16), rgba(11, 15, 18, 0.78));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

body.vm-archscry-route .context-copy {
  color: rgba(222, 231, 229, 0.88);
}

body.vm-archscry-route .section-label {
  padding-bottom: 0.7rem;
  color: #ecd999;
  border-bottom: 1px solid rgba(184, 149, 74, 0.12);
}

body.vm-archscry-route :is(.precons-section, .scores-section, .archetypes-section, .starter-section, .adjacent-section, .staples-section, .lands-section, .decks-section, .footer-actions) {
  padding: clamp(1.1rem, 2.5vw, 1.35rem);
  margin-bottom: 1.75rem;
}

body.vm-archscry-route :is(.precon-grid, .archetypes-grid, .decks-grid, .adjacent-grid, .starter-grid, .flavor-echo-grid, .lands-tiers, .commander-preview-grid) {
  gap: 12px;
  background: none;
}

body.vm-archscry-route :is(.precons-section, .archetypes-section, .decks-section, .adjacent-section, .starter-section, .lands-section) {
  container-type: inline-size;
}

body.vm-archscry-route .commander-preview-block,
body.vm-archscry-route .flavor-echo-grid {
  container-type: inline-size;
}

body.vm-archscry-route :is(.precon-card, .arch-card, .deck-card, .adjacent-card, .starter-card, .starter-note, .tag-explainer-card, .tag-interpretation, .omen-card, .commander-preview-card, .land-tier, .lands-guide, .staples-category) {
  border: 1px solid rgba(184, 149, 74, 0.14);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(17, 16, 19, 0.94), rgba(11, 11, 13, 0.82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 14px 34px rgba(0, 0, 0, 0.24);
}

body.vm-archscry-route :is(.precon-card, .arch-card, .deck-card, .adjacent-card, .starter-card) {
  padding: 1.25rem;
}

body.vm-archscry-route .adjacent-card.active {
  outline: none;
  border-color: rgba(26, 170, 150, 0.32);
  box-shadow: 0 0 0 1px rgba(26, 170, 150, 0.22), 0 18px 40px rgba(0, 0, 0, 0.28);
}

body.vm-archscry-route .tag-interpretation {
  padding: 0.95rem 1rem;
  border-left: 2px solid rgba(26, 170, 150, 0.32);
}

body.vm-archscry-route .starter-note {
  background: rgba(0, 0, 0, 0.2);
}

body.vm-archscry-route .service-chip {
  border-radius: 999px;
  clip-path: none;
  min-height: 42px;
  padding: 0.52rem 0.95rem 0.52rem 0.52rem;
  background:
    linear-gradient(135deg, rgba(184, 149, 74, 0.1), transparent 52%),
    rgba(10, 10, 12, 0.76);
}

body.vm-archscry-route .service-mark {
  border-radius: 999px;
  clip-path: none;
}

body.vm-archscry-route .commander-preview-grid {
  gap: 14px;
}

body.vm-archscry-route .commander-preview-card {
  padding: 0.95rem;
}

/* Commander and precon recommendation panels */

body.vm-archscry-route .precons-section {
  display: grid;
  gap: 0.95rem;
}

body.vm-archscry-route .precon-intro,
body.vm-archscry-route .precon-empty,
body.vm-archscry-route .precon-meta {
  color: rgba(226, 217, 193, 0.84);
  font-size: 0.94rem;
  line-height: 1.6;
}

body.vm-archscry-route .precon-meta {
  color: rgba(236, 217, 153, 0.72);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.vm-archscry-route .precon-lane {
  display: grid;
  gap: 0.75rem;
}

body.vm-archscry-route .precon-lane-label,
body.vm-archscry-route .precon-copy-label,
body.vm-archscry-route .precon-product {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.vm-archscry-route .precon-lane-label {
  color: rgba(236, 217, 153, 0.78);
}

body.vm-archscry-route .precon-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
}

body.vm-archscry-route .precon-grid.is-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0.85rem;
  background: none;
}

body.vm-archscry-route .precon-grid.is-compact[hidden] {
  display: none;
}

body.vm-archscry-route .precon-card.is-compact {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem;
  min-height: 0;
}

body.vm-archscry-route .precon-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
}

body.vm-archscry-route .precon-topline .precon-product {
  margin-top: 0;
  max-width: 58%;
  text-align: right;
}

body.vm-archscry-route .precon-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.2;
  color: rgba(249, 245, 231, 0.96);
}

body.vm-archscry-route .precon-card.is-compact .precon-title {
  font-size: 1.02rem;
}

body.vm-archscry-route .precon-product {
  margin-top: 0.45rem;
  color: rgba(236, 217, 153, 0.66);
}

body.vm-archscry-route .precon-badges,
body.vm-archscry-route .precon-theme-row,
body.vm-archscry-route .precon-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.vm-archscry-route .precon-badge,
body.vm-archscry-route .precon-chip,
body.vm-archscry-route .precon-theme {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(184, 149, 74, 0.18);
  background: rgba(184, 149, 74, 0.08);
  color: rgba(241, 237, 225, 0.92);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  line-height: 1;
}

body.vm-archscry-route .precon-badge.is-exact {
  border-color: rgba(26, 170, 150, 0.34);
  background: rgba(26, 170, 150, 0.12);
  color: var(--teal-l);
}

body.vm-archscry-route .precon-badge.is-native {
  border-color: rgba(236, 217, 153, 0.42);
  background: linear-gradient(135deg, rgba(184, 149, 74, 0.18), rgba(26, 170, 150, 0.1));
  color: rgba(249, 245, 231, 0.94);
}

body.vm-archscry-route .precon-badge.is-stretch {
  border-color: rgba(184, 149, 74, 0.34);
  background: rgba(184, 149, 74, 0.12);
  color: var(--gold-l);
}

body.vm-archscry-route .precon-theme.secondary,
body.vm-archscry-route .precon-chip {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(222, 214, 193, 0.84);
}

body.vm-archscry-route .precon-commander {
  color: rgba(236, 217, 153, 0.84);
  font-size: 0.92rem;
}

body.vm-archscry-route .precon-theme-row,
body.vm-archscry-route .precon-chip-row,
body.vm-archscry-route .precon-links {
  margin-top: 0.85rem;
}

body.vm-archscry-route .precon-copy-label {
  margin-top: 0.9rem;
  margin-bottom: 0.4rem;
  color: rgba(236, 217, 153, 0.7);
}

body.vm-archscry-route .precon-copy {
  color: rgba(241, 237, 225, 0.9);
  font-size: 0.92rem;
  line-height: 1.58;
}

body.vm-archscry-route .precon-best-for {
  color: rgba(214, 203, 184, 0.78);
  font-size: 0.86rem;
  line-height: 1.45;
}

body.vm-archscry-route .precon-best-for span {
  color: rgba(236, 217, 153, 0.78);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

body.vm-archscry-route .precon-reveal-row {
  display: flex;
  justify-content: center;
  padding-top: 0.15rem;
}

body.vm-archscry-route .precon-reveal-btn {
  border: 1px solid rgba(236, 217, 153, 0.26);
  border-radius: 999px;
  padding: 0.58rem 0.95rem;
  background:
    linear-gradient(135deg, rgba(184, 149, 74, 0.14), rgba(26, 170, 150, 0.08)),
    rgba(12, 11, 14, 0.78);
  color: rgba(249, 245, 231, 0.92);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

body.vm-archscry-route .precon-reveal-btn:hover,
body.vm-archscry-route .precon-reveal-btn:focus-visible {
  border-color: rgba(236, 217, 153, 0.48);
  background:
    linear-gradient(135deg, rgba(184, 149, 74, 0.2), rgba(26, 170, 150, 0.12)),
    rgba(18, 16, 20, 0.9);
  transform: translateY(-1px);
}

body.vm-archscry-route .precon-copy-dim {
  color: rgba(214, 203, 184, 0.76);
}

body.vm-archscry-route :is(.commander-placeholder, .staple-placeholder, .land-placeholder) {
  background:
    linear-gradient(135deg, rgba(184, 149, 74, 0.12), rgba(18, 15, 19, 0.94));
}

body.vm-archscry-route .flavor-echo-card {
  gap: 0.95rem;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(26, 170, 150, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(17, 16, 19, 0.94), rgba(11, 11, 13, 0.82));
}

body.vm-archscry-route .flavor-echo-card img {
  border-radius: 12px;
}

body.vm-archscry-route .staples-category {
  margin-bottom: 1rem;
  padding: 1rem;
}

body.vm-archscry-route .lands-guide {
  padding: 1rem 1.2rem;
}

body.vm-archscry-route .footer-actions {
  text-align: left;
}

body.vm-archscry-route .decree-footer {
  margin-top: 0;
  max-width: none;
}

/* Dossier navigation, rail, and panel chrome */

body.vm-archscry-route .dossier-snapshot {
  display: grid;
  grid-template-columns: minmax(0, 25fr) minmax(0, 45fr) minmax(0, 30fr);
  gap: 12px;
  margin: -0.6rem 0 1.6rem;
}

body.vm-archscry-route .dossier-snapshot-card {
  min-width: 0;
  min-height: 122px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(184, 149, 74, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(26, 170, 150, 0.08), transparent 48%),
    rgba(11, 10, 13, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 14px 34px rgba(0, 0, 0, 0.24);
}

body.vm-archscry-route .dossier-snapshot-card--adjacent {
  background:
    linear-gradient(135deg, rgba(121, 214, 208, 0.11), transparent 52%),
    rgba(11, 10, 13, 0.76);
}

body.vm-archscry-route .dossier-snapshot-card--narrative {
  min-height: 134px;
}

body.vm-archscry-route .dossier-snapshot-card--play-pattern {
  background:
    linear-gradient(135deg, rgba(216, 180, 95, 0.09), transparent 50%),
    rgba(11, 10, 13, 0.76);
}

body.vm-archscry-route .dossier-snapshot-card span,
body.vm-archscry-route .dossier-rail-label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 217, 153, 0.72);
}

body.vm-archscry-route .dossier-snapshot-card strong {
  display: block;
  overflow-wrap: anywhere;
  color: rgba(249, 245, 231, 0.94);
  font-size: 1rem;
  line-height: 1.32;
}

body.vm-archscry-route .dossier-snapshot-copy {
  color: rgba(241, 237, 225, 0.9);
  font-size: 0.92rem;
  line-height: 1.55;
}

body.vm-archscry-route .dossier-snapshot-signal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.72rem 0 0.58rem;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 217, 193, 0.8);
}

body.vm-archscry-route .dossier-snapshot-signal::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(184, 149, 74, 0.7);
  box-shadow: 0 0 0 4px rgba(184, 149, 74, 0.12);
}

body.vm-archscry-route .dossier-snapshot-card[data-signal-band="strong"] .dossier-snapshot-signal::before {
  background: rgba(121, 214, 208, 0.92);
  box-shadow: 0 0 0 4px rgba(121, 214, 208, 0.16);
}

body.vm-archscry-route .dossier-snapshot-card[data-signal-band="moderate"] .dossier-snapshot-signal::before {
  background: rgba(216, 180, 95, 0.86);
}

body.vm-archscry-route .dossier-snapshot-card[data-signal-band="emerging"] .dossier-snapshot-signal::before {
  background: rgba(240, 154, 100, 0.88);
  box-shadow: 0 0 0 4px rgba(240, 154, 100, 0.14);
}

body.vm-archscry-route .dossier-snapshot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.82rem;
}

body.vm-archscry-route .dossier-snapshot-tags[hidden] {
  display: none;
}

body.vm-archscry-route .dossier-snapshot-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.18rem 0.62rem;
  border: 1px solid rgba(184, 149, 74, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(241, 237, 225, 0.88);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.vm-archscry-route .mana-pips-inline {
  justify-content: flex-start;
  gap: 7px;
  margin: 0;
}

body.vm-archscry-route .mana-pips-inline .pip {
  width: 16px;
  height: 16px;
}

body.vm-archscry-route .dossier-console {
  margin-top: 1.25rem;
}

body.vm-archscry-route .dossier-console-grid {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  gap: clamp(1rem, 2.6vw, 1.6rem);
  align-items: start;
}

body.vm-archscry-route .dossier-rail {
  position: sticky;
  top: calc(var(--vm-topbar-h) + 1rem);
  z-index: 8;
  gap: 0.95rem;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid rgba(184, 149, 74, 0.16);
  border-radius: 16px;
  background: rgba(9, 9, 12, 0.72);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px) saturate(112%);
}

body.vm-archscry-route .dossier-console[data-dossier-layout="focus"] .dossier-rail {
  max-height: calc(100vh - var(--vm-topbar-h) - 2rem);
}

body.vm-archscry-route .dossier-rail-label {
  margin-bottom: 0.15rem;
  padding-inline: 0.3rem;
  text-align: center;
}

body.vm-archscry-route .dossier-rail-tabs {
  display: grid;
  gap: 7px;
}

body.vm-archscry-route .dossier-tab,
body.vm-archscry-route .dossier-segment-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 10px;
  text-align: center;
}

body.vm-archscry-route .dossier-tab {
  width: 100%;
}

body.vm-archscry-route .dossier-tab:focus-visible,
body.vm-archscry-route .dossier-segment-tab:focus-visible,
body.vm-archscry-route .dossier-view-toggle:focus-visible {
  outline: 2px solid rgba(26, 170, 150, 0.92);
  outline-offset: 2px;
}

body.vm-archscry-route .dossier-view-toggle {
  width: 100%;
  min-height: 42px;
  justify-content: center;
}

body.vm-archscry-route .dossier-view-toggle.is-active {
  border-color: rgba(26, 170, 150, 0.36);
  color: var(--teal-l);
  background: rgba(26, 170, 150, 0.1);
}

body.vm-archscry-route .dossier-utility-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(184, 149, 74, 0.12);
}

body.vm-archscry-route .dossier-utility-actions[hidden],
body.vm-archscry-route .dossier-console[data-dossier-layout="all"] .dossier-utility-actions {
  display: none !important;
}

body.vm-archscry-route .dossier-utility-btn {
  width: 100%;
  min-height: 40px;
  justify-content: center;
  white-space: normal;
  line-height: 1.25;
}

body.vm-archscry-route .dossier-workspace {
  min-width: 0;
}

body.vm-archscry-route .dossier-panel {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  scroll-margin-top: calc(var(--vm-topbar-h) + 1rem);
}

body.vm-archscry-route .dossier-panel[hidden],
body.vm-archscry-route .dossier-segment-panel[hidden] {
  display: none !important;
}

body.vm-archscry-route .dossier-console[data-dossier-layout="all"] .dossier-panel {
  display: block;
  margin-bottom: 1.25rem;
}

body.vm-archscry-route .dossier-panel > :last-child,
body.vm-archscry-route .dossier-segment-panel > :last-child {
  margin-bottom: 0;
}

body.vm-archscry-route .dossier-mobile-nav {
  display: none;
}

body.vm-archscry-route .dossier-segment-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1rem;
}

body.vm-archscry-route .dossier-segment-tab {
  width: auto;
  min-width: 0;
  padding-inline: 1rem;
}

body.vm-archscry-route .dossier-segment-tab.is-active,
body.vm-archscry-route .dossier-segment-tab[aria-pressed="true"] {
  color: var(--gold-l);
  border-color: rgba(184, 149, 74, 0.44);
  background: rgba(184, 149, 74, 0.12);
}

body.vm-archscry-route .dossier-segment-panel {
  min-width: 0;
}

body.vm-archscry-route .lands-tiers .dossier-segment-panel {
  display: block;
}

body.vm-archscry-route .lands-tiers .dossier-segment-panel[hidden] {
  display: none !important;
}

/* Responsive behavior for the modern route-scoped shell */

@media (max-width: 940px) {
  body.vm-archscry-route .hero-band {
    max-width: none;
  }

  body.vm-archscry-route .result-context-bar {
    top: calc(var(--vm-topbar-h-mobile) + 0.65rem);
  }

  body.vm-archscry-route .dossier-snapshot {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  }

  body.vm-archscry-route .dossier-console-grid {
    display: block;
  }

  body.vm-archscry-route .dossier-rail {
    display: none;
  }

  body.vm-archscry-route .dossier-mobile-nav {
    position: sticky;
    top: calc(var(--vm-topbar-h-mobile) + 0.5rem);
    z-index: 9;
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid rgba(184, 149, 74, 0.16);
    border-radius: 16px;
    background: rgba(9, 9, 12, 0.84);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(12px) saturate(112%);
  }

  body.vm-archscry-route .dossier-mobile-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 0.25rem;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  body.vm-archscry-route .dossier-mobile-tabs::-webkit-scrollbar {
    display: none;
  }

  body.vm-archscry-route .dossier-mobile-tabs .dossier-tab {
    width: auto;
    min-width: max-content;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  body.vm-archscry-route .dossier-mobile-nav .dossier-view-toggle {
    width: auto;
    justify-self: start;
  }

  body.vm-archscry-route .dossier-mobile-nav .dossier-utility-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
    padding-top: 0.75rem;
  }

  body.vm-archscry-route .dossier-mobile-nav .dossier-utility-btn {
    width: auto;
    flex: 1 1 190px;
  }
}

@media (max-width: 700px) {
  body.vm-archscry-route .section {
    padding-inline: 0.75rem;
  }

  body.vm-archscry-route .hero-band,
  body.vm-archscry-route .question-card,
  body.vm-archscry-route .interview-shell,
  body.vm-archscry-route #decree-container,
  body.vm-archscry-route .result-status,
  body.vm-archscry-route .scores-section,
  body.vm-archscry-route .archetypes-section,
  body.vm-archscry-route .starter-section,
  body.vm-archscry-route .adjacent-section,
  body.vm-archscry-route .staples-section,
  body.vm-archscry-route .lands-section,
  body.vm-archscry-route .decks-section,
  body.vm-archscry-route .footer-actions {
    border-radius: 22px;
  }

  body.vm-archscry-route .guild-banner {
    border-radius: 24px;
    padding-inline: 1rem;
  }

  body.vm-archscry-route .result-inner {
    padding-inline: 0.75rem;
  }

  body.vm-archscry-route .result-context-bar {
    border-radius: 18px;
  }

  body.vm-archscry-route .dossier-snapshot {
    grid-template-columns: 1fr;
    margin-top: -0.8rem;
  }

  body.vm-archscry-route .dossier-tab,
  body.vm-archscry-route .dossier-segment-tab {
    min-height: 44px;
  }
}

/* ============================================================
   Legacy compatibility layer from VM-127 extraction
   Literal lift from archscry/index.html. Keep unlayered and route-local.
   These selectors intentionally remain in their original cascade position.
   ============================================================ */
/* Page-local aliases. Values aligned with /assets/css/tokens.css (Batch 1 locked).
   Variable names kept legacy (--bg2 not --bg-2) so the inline CSS below still resolves.
   Future cleanup: rename to canonical token names and delete this block. */
:root{
  --bg:#0c0b0a;
  --bg2:#11100e;
  --bg3:#15120c;
  --gold:#b8954a;
  --gold-l:#d4b461;
  --gold-d:#7a5c14;
  --text:#d4c9b8;
  --text-dim:#8a7c68;
  --text-muted:#5a5042;
  --border:rgba(184,149,74,0.10);
  --border-s:rgba(184,149,74,0.22);
  --danger:#b03030;
  --success:#2a8a50;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);
  color:var(--text);
  font-family:"Crimson Pro",Georgia,serif;
  min-height:100vh;
  overflow-x:hidden;
  line-height:1.6;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.018'/%3E%3C/svg%3E");
  pointer-events:none;
  z-index:0;
}
.app{position:relative;z-index:1}
.app-main{position:relative;z-index:1}
.app-footer{
  position:relative;
  z-index:1;
  padding:1.25rem 1.5rem 2rem;
  border-top:1px solid var(--border);
  color:var(--text-muted);
  font-family:"IBM Plex Mono","Courier New",monospace;
  font-size:0.76rem;
  letter-spacing:0.04em;
  text-align:center;
}
.hidden{display:none!important}
.section{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:2rem 1.5rem;
}
.btn-primary,.btn-secondary,.tb-btn,.answer-card button{
  font-family:"Cinzel",serif;
  letter-spacing:0.12em;
  text-transform:uppercase;
  cursor:pointer;
}
.btn-primary{
  font-size:0.76rem;
  color:var(--bg);
  background:var(--gold);
  border:none;
  padding:0.95rem 1.6rem;
  clip-path:polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%);
  transition:transform 0.15s,background 0.15s;
}
.btn-primary:hover{background:var(--gold-l);transform:translateY(-1px)}
.btn-primary:disabled{background:var(--gold-d);transform:none;cursor:not-allowed}
.btn-secondary{
  font-size:0.7rem;
  color:var(--text-dim);
  background:transparent;
  border:1px solid var(--border);
  padding:0.8rem 1.25rem;
  transition:color 0.15s,border-color 0.15s,background 0.15s;
}
.btn-secondary:hover{color:var(--text);border-color:var(--border-s);background:rgba(184,149,74,0.04)}
.btn-secondary:disabled{opacity:0.5;cursor:not-allowed}
.btn-primary:focus-visible,.btn-secondary:focus-visible,.tb-btn:focus-visible,.answer-card button:focus-visible,.adjacent-btn:focus-visible,#terminal-submit:focus-visible,#terminal-input:focus-visible{
  outline:2px solid color-mix(in srgb, var(--gold-l) 68%, white 32%);
  outline-offset:2px;
  box-shadow:0 0 0 3px rgba(12,11,10,0.92),0 0 0 5px rgba(26,170,150,0.28);
}

@media (prefers-reduced-motion: reduce){
  .btn-primary,.btn-secondary,.answer-card,.adjacent-btn,.progress-fill{
    transition:none !important;
  }
  .btn-primary:hover,.answer-card:hover{
    transform:none !important;
  }
}

/* Auth identity elements — shown by index.js after sign-in */
.tb-identity{display:flex;align-items:center;gap:12px;min-width:0}
.tb-avatar{
  width:32px;
  height:32px;
  border-radius:50%;
  background:rgba(184,149,74,0.15);
  border:1px solid var(--border-s);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  flex-shrink:0;
}
.tb-avatar img{width:100%;height:100%;object-fit:cover}
.tb-avatar-fallback{
  font-family:"Cinzel",serif;
  font-size:0.7rem;
  color:var(--gold);
}
.tb-copy{min-width:0}
.tb-name{
  font-family:"Cinzel",serif;
  font-size:0.74rem;
  letter-spacing:0.12em;
  color:var(--text);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tb-placement{
  font-size:0.76rem;
  color:var(--text-dim);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tb-btn{
  font-size:0.6rem;
  color:var(--text-dim);
  background:transparent;
  border:1px solid var(--border);
  padding:0.4rem 0.85rem;
  transition:color 0.15s,border-color 0.15s;
  white-space:nowrap;
}
.tb-btn:hover{color:var(--text);border-color:var(--border-s)}

/* Landing */
#landing{justify-content:flex-start;padding-top:6rem;padding-bottom:4rem}
.landing-wrap{width:min(760px,100%);display:block}
.hero-band{padding:1rem 0}
.eyebrow{
  font-family:"Cinzel",serif;
  font-size:0.65rem;
  letter-spacing:0.35em;
  text-transform:uppercase;
  color:var(--text-dim);
  margin-bottom:1rem;
}
.landing-title{
  font-family:"Cinzel Decorative",serif;
  font-size:clamp(2.4rem,5vw,4.4rem);
  line-height:1.02;
  color:var(--gold);
  margin-bottom:1rem;
}
.landing-sub{
  font-size:1.15rem;
  color:var(--text);
  max-width:680px;
  margin-bottom:1.2rem;
}
.landing-note{
  font-size:0.95rem;
  color:var(--text-dim);
  max-width:660px;
}
.landing-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:2rem}

/* Quick path */
#quick{justify-content:flex-start;padding-top:6rem;padding-bottom:4rem}
.quick-shell,.interview-shell{width:min(920px,100%)}
.quick-header{margin-bottom:1.4rem}
.quick-title{
  font-family:"Cinzel Decorative",serif;
  font-size:clamp(1.8rem,4vw,2.8rem);
  color:var(--gold);
  margin-bottom:0.4rem;
}
.quick-sub{color:var(--text-dim);max-width:560px}
.progress-row{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:1rem;
}
.progress-copy{
  font-family:"Cinzel",serif;
  font-size:0.62rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--text-muted);
  white-space:nowrap;
}
.progress-track{
  flex:1;
  height:4px;
  background:rgba(184,149,74,0.08);
  overflow:hidden;
}
.progress-fill{
  height:100%;
  background:var(--gold);
  width:0;
  transition:width 0.3s ease;
}
.question-card{
  background:rgba(12,11,10,0.9);
  border:1px solid var(--border-s);
  box-shadow:0 18px 60px rgba(0,0,0,0.34);
  padding:1.6rem;
}
.question-eyebrow{
  font-family:"Cinzel",serif;
  font-size:0.6rem;
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:var(--text-dim);
  margin-bottom:0.7rem;
}
.question-title{
  font-family:"Cinzel",serif;
  font-size:1.35rem;
  color:var(--text);
  line-height:1.35;
  margin-bottom:1.25rem;
}
.answer-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.answer-card{
  background:var(--bg3);
  border:1px solid rgba(184,149,74,0.07);
  padding:1rem;
  transition:border-color 0.15s,transform 0.15s,background 0.15s;
}
.answer-card:hover{
  border-color:var(--border-s);
  transform:translateY(-1px);
  background:rgba(184,149,74,0.04);
}
.answer-card button{
  display:block;
  width:100%;
  text-align:left;
  background:none;
  border:none;
  color:inherit;
}
.answer-title{
  font-family:"Cinzel",serif;
  font-size:0.88rem;
  color:var(--text);
  margin-bottom:0.3rem;
}
.answer-copy{
  font-size:0.9rem;
  color:var(--text-dim);
  line-height:1.5;
}
.quick-footer{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:1rem;
}

/* Interview */
#interview{justify-content:flex-start;padding-top:6rem;padding-bottom:4rem}
.interview-shell{
  border:1px solid var(--border-s);
  background:rgba(12,11,10,0.92);
  box-shadow:0 24px 80px rgba(0,0,0,0.42);
  padding:1rem;
}
.interview-header{display:flex;justify-content:space-between;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:0.9rem}
.interview-title{
  font-family:"Cinzel Decorative",serif;
  font-size:1.8rem;
  color:var(--gold);
}
.interview-copy{font-size:0.92rem;color:var(--text-dim);max-width:520px}
#terminal-output{
  height:380px;
  overflow-y:auto;
  border:1px solid var(--border);
  padding:0.9rem;
  background:rgba(0,0,0,0.2);
  font-family:"IBM Plex Mono","Courier New",monospace;
}
.terminal-message{
  margin:0 0 0.7rem;
  font-size:0.92rem;
  line-height:1.55;
  white-space:pre-wrap;
}
.terminal-message.recruiter{color:var(--gold)}
.terminal-message.user{color:#d4c9b8}
.terminal-message.loading::after{content:" |";animation:pulse 0.8s ease-in-out infinite}
#terminal-input-row{display:flex;gap:0.6rem;margin-top:0.8rem}
#terminal-input{
  flex:1;
  border:1px solid var(--border);
  background:#0c0b0a;
  color:#d4c9b8;
  padding:0.75rem;
  font-family:"IBM Plex Mono","Courier New",monospace;
  font-size:0.92rem;
  outline:none;
}
#terminal-submit{
  border:1px solid var(--gold-d);
  background:transparent;
  color:var(--gold);
  padding:0.7rem 1rem;
  font-family:"Cinzel",serif;
  letter-spacing:0.08em;
  cursor:pointer;
}
#terminal-submit:disabled,#terminal-input:disabled{opacity:0.45;cursor:not-allowed}
#terminal-status{
  font-family:"IBM Plex Mono","Courier New",monospace;
  font-size:0.78rem;
  color:var(--text-dim);
  min-height:1.1rem;
  margin-top:0.6rem;
}
#terminal-error{font-size:0.85rem;color:var(--danger);margin-top:0.35rem}
#decree-container{
  display:none;
  opacity:0;
  transition:opacity 0.5s ease;
  border:1px solid var(--border-s);
  padding:1.1rem;
  background:rgba(184,149,74,0.04);
  margin-top:1rem;
}
#decree-container.visible{display:block;opacity:1}
.decree-title{font-family:"Cinzel Decorative",serif;font-size:1.8rem;color:var(--gold);margin-bottom:0.4rem}
.decree-tagline{color:var(--text-dim);font-style:italic;margin-bottom:0.8rem}
.decree-rule{border:none;height:1px;background:var(--gold-d);margin:0.7rem 0 0.9rem}
.decree-text{font-style:italic;color:var(--gold-l);font-size:1.05rem}
.decree-runner{color:var(--text-dim);margin-top:0.7rem;font-size:0.9rem}
.decree-actions{display:flex;gap:0.6rem;flex-wrap:wrap;margin-top:1rem}

/* Result */
#result{justify-content:flex-start;padding:0 0 4rem}
.result-inner{max-width:960px;width:100%;margin:0 auto;padding:0 1.5rem 4rem}
.guild-banner{
  padding:3.5rem 2rem;
  text-align:center;
  margin-bottom:3rem;
  border-bottom:1px solid var(--border-s);
  box-shadow:0 24px 90px rgba(0,0,0,0.48);
  position:relative;
}
.guild-banner::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(12,11,10,0.18),rgba(12,11,10,0.72));
  pointer-events:none;
}
.guild-banner>*{position:relative}
.guild-eyebrow{
  font-family:"Cinzel",serif;
  font-size:0.65rem;
  letter-spacing:0.35em;
  text-transform:uppercase;
  color:var(--text-dim);
  margin-bottom:0.75rem;
}
.guild-name{
  font-family:"Cinzel Decorative",serif;
  font-size:clamp(2.2rem,6vw,4rem);
  letter-spacing:0.04em;
  line-height:1.1;
  margin-bottom:0.6rem;
}
.guild-tagline{
  font-size:1.1rem;
  font-style:italic;
  color:var(--text-dim);
  margin-bottom:1.5rem;
  max-width:560px;
  margin-left:auto;
  margin-right:auto;
}
.mana-pips{display:flex;gap:10px;justify-content:center;margin-bottom:1.75rem}
.pip{width:26px;height:26px;border-radius:50%;border:1.5px solid rgba(255,255,255,0.15);box-shadow:0 0 10px rgba(0,0,0,0.4)}
.pip-W{background:#ede8d4}
.pip-U{background:#1a5b9b}
.pip-B{
  background:linear-gradient(135deg,#050407 0%,#1d1328 45%,#09070a 100%);
  border-color:rgba(238,226,197,0.5);
  box-shadow:0 0 14px rgba(130,92,180,0.42),inset 0 0 0 1px rgba(255,255,255,0.08);
}
.pip-R{background:#be2a1f}
.pip-G{background:#1b5c28}
.guild-philosophy{
  font-size:1.05rem;
  color:var(--text);
  font-weight:300;
  max-width:680px;
  margin:0 auto;
  line-height:1.8;
}
.guild-lore-summary{
  font-size:0.92rem;
  color:var(--text-dim);
  font-weight:300;
  max-width:640px;
  margin:1.15rem auto 0;
  line-height:1.75;
  padding-top:1rem;
  border-top:1px solid var(--border);
  font-style:italic;
}
.result-status{
  width:min(860px,100%);
  margin:0 auto 1.25rem;
  background:rgba(12,11,10,0.88);
  border:1px solid var(--border-s);
  box-shadow:0 18px 60px rgba(0,0,0,0.35);
  padding:0.9rem 1rem;
}
.result-status strong{color:var(--gold)}
.result-context-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  border:1px solid var(--border-t);
  background:rgba(26,170,150,0.14);
  color:var(--text-dim);
  margin-bottom:1.1rem;
  padding:0.8rem 0.95rem;
  position:sticky;
  top:0;
  z-index:11;
  backdrop-filter:blur(6px);
}
.context-copy{font-size:0.9rem;line-height:1.45}
.context-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.section-label{
  font-family:"Cinzel",serif;
  font-size:0.65rem;
  letter-spacing:0.25em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:1.25rem;
  padding-bottom:0.5rem;
  border-bottom:1px solid var(--border);
}
.precons-section,.scores-section,.archetypes-section,.starter-section,.adjacent-section,.staples-section,.lands-section,.decks-section,.footer-actions{
  margin-bottom:3rem;
}
.score-bars{display:flex;flex-direction:column;gap:8px;max-width:420px}
.score-row{display:flex;align-items:center;gap:10px}
.score-label{font-family:"Cinzel",serif;font-size:0.7rem;letter-spacing:0.1em;width:48px;color:var(--text-dim)}
.score-track{flex:1;height:4px;background:rgba(184,149,74,0.06);border-radius:2px;overflow:hidden}
.score-fill{height:100%;border-radius:2px;transition:width 1s ease}
.score-row-B .score-track{
  height:6px;
  background:rgba(128,96,166,0.14);
  box-shadow:inset 0 0 0 1px rgba(238,226,197,0.16);
}
.score-fill-B{
  border:1px solid rgba(238,226,197,0.58);
  box-shadow:0 0 12px rgba(150,105,205,0.42),0 0 2px rgba(248,241,220,0.45);
  box-sizing:border-box;
}
.score-val{font-size:0.8rem;color:var(--text-muted);width:20px;text-align:right}

/* Identity matrix and radar */

.vm-dossier-matrix-section{
  --line:var(--border-s);
  --muted:var(--text-dim);
  --accent:var(--gold);
  --panel:rgba(184,149,74,0.04);
  --panel-strong:rgba(184,149,74,0.08);
}
.vm-dossier-matrix-section .vm-lab-panel{
  padding:clamp(1rem,3vw,1.5rem);
  border-radius:22px;
}
.vm-dossier-matrix-section .vm-lab-layout{
  display:grid;
  grid-template-columns:minmax(300px,0.9fr) minmax(360px,1.1fr);
  gap:1.25rem;
  align-items:stretch;
}
.vm-dossier-matrix-section .vm-selector-panel{
  display:flex;
  flex-direction:column;
  gap:1rem;
}
.vm-dossier-matrix-section .vm-selector-title{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:1rem;
  border-bottom:1px solid var(--line);
  padding-bottom:0.8rem;
}
.vm-dossier-matrix-section .vm-selector-title h3{
  margin:0;
  font-size:1.2rem;
}
.vm-dossier-matrix-section .vm-selector-title span{
  color:var(--muted);
  font-size:0.78rem;
}
.vm-dossier-matrix-section .vm-selected-card{
  position:relative;
  border:1px solid var(--line);
  border-radius:22px;
  padding:1rem;
  background:
    radial-gradient(circle at top right,rgba(216,194,122,0.12),transparent 12rem),
    rgba(255,255,255,0.045);
  overflow:hidden;
}
.vm-dossier-matrix-section .vm-selected-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:var(--selected-glow,transparent);
  opacity:0.2;
  filter:blur(18px);
  pointer-events:none;
}
.vm-dossier-matrix-section .vm-selected-card > *{
  position:relative;
  z-index:1;
}
.vm-dossier-matrix-section .vm-selected-kicker{
  color:var(--accent);
  font-size:0.75rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  margin-bottom:0.4rem;
}
.vm-dossier-matrix-section .vm-selected-card h3{
  margin:0 0 0.5rem;
  font-size:clamp(1.35rem,3vw,1.95rem);
}
.vm-dossier-matrix-section .vm-selected-card p{
  margin:0.35rem 0;
  color:var(--muted);
  line-height:1.6;
}
.vm-dossier-matrix-section .vm-overlay-line{
  display:inline-flex;
  flex-wrap:wrap;
  gap:0.35rem;
  align-items:center;
  margin-top:0.65rem;
  color:var(--muted);
  font-size:0.82rem;
}
.vm-dossier-matrix-section .vm-overlay-arrow{
  color:var(--accent);
  opacity:0.9;
}
.vm-dossier-matrix-section .vm-overlay-dot{
  display:inline-flex;
  align-items:center;
  gap:0.25rem;
  border:1px solid var(--line);
  border-radius:999px;
  padding:0.3rem 0.5rem;
  background:rgba(0,0,0,0.18);
}
.vm-dossier-matrix-section .vm-overlay-dot-final{
  color:var(--accent);
}
.vm-dossier-matrix-section .vm-axis-list{
  display:grid;
  gap:0.55rem;
  margin-top:1rem;
}
.vm-dossier-matrix-section .vm-axis{
  display:grid;
  grid-template-columns:92px 1fr 42px;
  gap:0.65rem;
  align-items:center;
  font-size:0.82rem;
  color:var(--muted);
}
.vm-dossier-matrix-section .vm-axis-bar{
  height:8px;
  border-radius:999px;
  background:rgba(255,255,255,0.10);
  overflow:hidden;
}
.vm-dossier-matrix-section .vm-axis-fill{
  display:block;
  height:100%;
  width:0;
  border-radius:inherit;
  background:var(--accent);
  transition:width 0.45s ease,background 0.25s ease;
}
.vm-dossier-matrix-section .vm-axis span:last-child{
  text-align:right;
  font-size:0.78rem;
}
.vm-dossier-matrix-section .vm-placeholder-note{
  margin-top:1rem;
  padding:0.85rem;
  border:1px dashed rgba(255,255,255,0.22);
  border-radius:16px;
  color:var(--muted);
}
.vm-dossier-matrix-section .vm-radar-card{
  position:relative;
  min-height:640px;
  border:1px solid var(--line);
  border-radius:22px;
  background:
    radial-gradient(circle at 50% 48%,rgba(255,255,255,0.07),rgba(255,255,255,0.025) 60%,rgba(0,0,0,0.08)),
    rgba(0,0,0,0.18);
  overflow:hidden;
  padding:1.1rem 1.1rem 1.2rem;
}
.vm-dossier-matrix-section .vm-controls{
  display:flex;
  gap:0.6rem;
  flex-wrap:wrap;
  margin:0.8rem 0;
}
.vm-dossier-matrix-section .vm-toggle{
  display:flex;
  align-items:center;
  gap:0.45rem;
  color:var(--muted);
  font-size:0.86rem;
}
.vm-dossier-matrix-section .vm-chart-wrap{
  position:relative;
  min-height:570px;
  overflow:hidden;
  border-radius:28px;
}
.vm-dossier-matrix-section .vm-radar-glow{
  position:absolute;
  inset:0;
  opacity:0.34;
  filter:blur(28px);
  pointer-events:none;
  transition:0.35s ease;
  border-radius:28px;
}
.vm-dossier-matrix-section .vm-radar-wrap{
  position:relative;
  z-index:2;
  height:420px;
}
#dossierManaRadar{
  width:100% !important;
  height:100% !important;
}
.vm-dossier-matrix-section .vm-radar-fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  height:100%;
  padding:1rem;
  border:1px dashed rgba(255,255,255,0.2);
  border-radius:22px;
  background:rgba(255,255,255,0.04);
  color:var(--muted);
  font-size:0.88rem;
  line-height:1.5;
  text-align:center;
}
.vm-dossier-matrix-section .vm-radar-fallback[hidden]{
  display:none !important;
}
.vm-card-voice-panel{
  position:relative;
  z-index:3;
  display:grid;
  gap:0.9rem;
  margin-top:0.85rem;
  padding:1rem;
  border:1px solid rgba(230,208,139,0.2);
  border-radius:14px;
  background:
    linear-gradient(135deg,rgba(230,208,139,0.1),rgba(120,160,255,0.06)),
    rgba(5,5,7,0.54);
}
.vm-card-voice-heading{
  display:grid;
  gap:0.32rem;
}
.vm-card-voice-heading span{
  color:var(--text);
  font-size:1rem;
  font-family:"Cinzel",serif;
  font-weight:800;
  line-height:1.2;
}
.vm-card-voice-heading p{
  margin:0;
  color:rgba(226,217,193,0.78);
  font-size:0.86rem;
  line-height:1.45;
}
.vm-card-voice-list{
  display:grid;
  gap:0.65rem;
}
.vm-card-voice{
  display:grid;
  gap:0.28rem;
  padding:0.72rem 0.78rem;
  border:1px solid rgba(255,255,255,0.1);
  border-radius:10px;
  background:rgba(255,255,255,0.045);
  color:inherit;
  text-decoration:none;
}
.vm-card-voice:hover,
.vm-card-voice:focus-visible{
  border-color:rgba(230,208,139,0.34);
  background:rgba(230,208,139,0.07);
}
.vm-card-voice-name{
  color:rgba(230,208,139,0.94);
  font-family:"IBM Plex Mono",monospace;
  font-size:0.74rem;
  letter-spacing:0.04em;
  text-transform:uppercase;
}
.vm-card-voice-text{
  color:rgba(249,244,225,0.92);
  font-family:"Cinzel",serif;
  font-size:0.92rem;
  line-height:1.48;
}

@media (prefers-reduced-motion: reduce){
  .card-preview-overlay{
    animation:none !important;
    transition:none !important;
  }
  .card-preview-overlay{
    display:none !important;
  }
}

/* Legacy recommendation cards and card preview surfaces */

.precon-grid,.archetypes-grid,.decks-grid,.adjacent-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1px;background:rgba(184,149,74,0.06)}
.precon-card,.arch-card,.deck-card,.adjacent-card,.starter-card{background:rgba(12,11,10,0.9);border:1px solid rgba(184,149,74,0.08);padding:1.4rem}
.arch-name,.starter-title{font-family:"Cinzel",serif;font-size:0.9rem;color:var(--gold);margin-bottom:0.4rem}
.arch-desc,.starter-copy{font-size:0.9rem;color:var(--text-dim);line-height:1.55}
.signal-strength-card{
  display:flex;
  flex-direction:column;
  gap:0.8rem;
  background:
    linear-gradient(135deg,rgba(26,170,150,0.08),transparent 48%),
    rgba(12,11,10,0.92);
}
.signal-strength-readout{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:0.75rem;
}
.signal-strength-readout strong{
  color:var(--text);
  font-size:1.05rem;
  line-height:1.2;
}
.signal-strength-readout span{
  color:var(--gold-l);
  font-family:"IBM Plex Mono",monospace;
  font-size:0.82rem;
}
.signal-strength-meter{
  height:11px;
  border-radius:999px;
  background:rgba(255,255,255,0.08);
  overflow:hidden;
}
.signal-strength-meter span{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,rgba(88,184,255,0.55),rgba(184,149,74,0.78),rgba(26,170,150,0.86));
  box-shadow:0 0 18px rgba(26,170,150,0.28);
}
.signal-strength-scale{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0.5rem;
  color:var(--text-muted);
  font-family:"IBM Plex Mono",monospace;
  font-size:0.68rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
}
.signal-strength-scale span{
  padding-top:0.1rem;
  border-top:1px solid rgba(255,255,255,0.12);
}
.signal-strength-scale .is-active{
  color:var(--text);
  border-top-color:rgba(26,170,150,0.78);
}
.vm-tag-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:0.8rem}
.vm-tag-chip{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0.22rem 0.52rem;
  border:1px solid rgba(26,170,150,0.22);
  background:rgba(26,170,150,0.07);
  color:var(--teal-l);
  font-family:"IBM Plex Mono",monospace;
  font-size:0.66rem;
  line-height:1;
}
.tag-interpretation-list{display:flex;flex-direction:column;gap:0.65rem;margin-top:1rem}
.tag-interpretation{
  border-left:2px solid rgba(26,170,150,0.25);
  padding-left:0.75rem;
}
.tag-interpretation-name{
  font-family:"Cinzel",serif;
  font-size:0.58rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--teal-l);
  margin-bottom:0.2rem;
}
.tag-meaning{
  color:#9fe8df;
  font-size:0.94rem;
  line-height:1.5;
  margin-bottom:0.6rem;
}
.tag-helper{
  margin-top:0.72rem;
  color:rgba(226,233,229,0.9);
  font-size:0.84rem;
  line-height:1.5;
  border-left:2px solid rgba(26,170,150,0.28);
  padding-left:0.72rem;
}
.tag-explainer-card{
  min-height:200px;
  background:
    linear-gradient(135deg,rgba(26,170,150,0.09),transparent 44%),
    rgba(12,11,10,0.92);
}
.identity-story-grid{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) repeat(2,minmax(220px,0.8fr));
  gap:1rem;
  align-items:stretch;
}
.identity-story-card{
  display:flex;
  flex-direction:column;
  gap:0.72rem;
  min-height:0;
}
.identity-story-card--belief{
  background:
    linear-gradient(135deg,rgba(230,208,139,0.12),rgba(26,170,150,0.06) 52%,transparent),
    rgba(12,11,10,0.94);
}
.identity-story-card--belief .starter-copy{
  color:rgba(249,244,225,0.93);
  font-size:1rem;
}
.identity-story-card--support .starter-copy{
  font-size:0.92rem;
}
.identity-story-headline{
  color:var(--text);
  font-family:"Cinzel",serif;
  font-size:1.06rem;
  line-height:1.28;
}
.identity-story-card--belief .identity-story-headline{
  font-size:1.34rem;
}
.identity-story-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:0.45rem;
  margin-top:auto;
  color:rgba(226,217,193,0.82);
  font-family:"IBM Plex Mono",monospace;
  font-size:0.74rem;
  line-height:1.45;
}
@media (max-width: 980px){
  .identity-story-grid{
    grid-template-columns:1fr;
  }
}
.how-this-plays-card{
  display:flex;
  flex-direction:column;
  gap:0.75rem;
}
.how-this-plays-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0.9rem;
}
.how-this-plays-block{
  display:grid;
  gap:0.35rem;
  padding:0.9rem 1rem;
  border:1px solid rgba(184,149,74,0.09);
  background:rgba(8,8,10,0.32);
}
.how-this-plays-grid > .how-this-plays-block:first-of-type > .table-identity-list{
  margin-top:-4.44rem;
}
.how-this-plays-label{
  color:var(--gold-l);
  font-family:"IBM Plex Mono",monospace;
  font-size:0.74rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
}
.how-this-plays-label + .table-identity-list{margin-top:0}
.table-identity-list{display:flex;flex-direction:column;gap:0.42rem}
.table-identity-list div{color:rgba(236,233,225,0.93);font-size:1rem;line-height:1.48}
.table-identity-list span{
  display:block;
  margin-bottom:0.04rem;
  font-family:"Cinzel",serif;
  font-size:0.64rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--teal-l);
}
.signals-intro{
  margin:-0.15rem 0 0.9rem;
  max-width:72ch;
  color:rgba(236,233,225,0.86);
  font-size:0.95rem;
  line-height:1.55;
}
.omen-index,.commander-preview-label,.starter-note-label{
  font-family:"Cinzel",serif;
  font-size:0.58rem;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:var(--gold-d);
}
.omen-card{
  background:
    radial-gradient(circle at top left,rgba(184,149,74,0.1),transparent 38%),
    rgba(12,11,10,0.9);
}
.starter-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1px;
  background:rgba(184,149,74,0.06);
  margin-bottom:1rem;
}
.starter-grid-start{grid-template-columns:1fr}
.starter-card-wide{
  background:
    linear-gradient(135deg,rgba(184,149,74,0.1),transparent 34%),
    rgba(12,11,10,0.92);
}
.starter-notes{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:10px;
  margin-top:1rem;
}
.starter-note{
  border:1px solid rgba(184,149,74,0.09);
  background:rgba(0,0,0,0.16);
  padding:0.85rem;
}
.starter-note-label{margin-bottom:0.35rem}
.starter-links{display:flex;gap:8px;flex-wrap:wrap;margin-top:1rem}
.deck-format,.adjacent-label{font-family:"Cinzel",serif;font-size:0.6rem;letter-spacing:0.2em;text-transform:uppercase;color:var(--gold-d);margin-bottom:0.4rem}
.deck-name,.adjacent-name{font-size:1.05rem;color:var(--text);margin-bottom:0.35rem}
.deck-desc,.adjacent-copy{font-size:0.88rem;color:var(--text-dim);line-height:1.5;flex:1;margin-bottom:1rem}
.deck-links,.adjacent-actions{display:flex;gap:6px;flex-wrap:wrap}
.adjacent-btn{
  font-family:"Cinzel",serif;
  font-size:0.62rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--gold);
  text-decoration:none;
  border:1px solid var(--border);
  padding:0.4rem 0.85rem;
  transition:background 0.15s,color 0.15s,border-color 0.15s;
  background:transparent;
}
.adjacent-btn:hover{background:rgba(184,149,74,0.1);color:var(--gold-l);border-color:var(--border-s)}
.service-chip{
  --service-color:var(--gold);
  --service-glow:rgba(184,149,74,0.3);
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:0.55rem;
  min-height:38px;
  padding:0.45rem 0.8rem 0.45rem 0.48rem;
  color:var(--text);
  text-decoration:none;
  border:1px solid color-mix(in srgb,var(--service-color) 46%,transparent);
  background:
    linear-gradient(135deg,color-mix(in srgb,var(--service-color) 16%,transparent),transparent 58%),
    rgba(12,11,10,0.72);
  clip-path:polygon(9px 0,100% 0,calc(100% - 9px) 100%,0 100%);
  transition:transform 0.18s ease,border-color 0.18s ease,box-shadow 0.18s ease,background 0.18s ease;
}
.service-chip:hover{
  transform:translateY(-1px);
  border-color:var(--service-color);
  box-shadow:0 0 22px var(--service-glow),0 10px 28px rgba(0,0,0,0.38);
  background:
    linear-gradient(135deg,color-mix(in srgb,var(--service-color) 24%,transparent),transparent 62%),
    rgba(16,13,12,0.88);
}
.service-mark{
  display:grid;
  place-items:center;
  width:24px;
  height:24px;
  flex:0 0 auto;
  font-family:"Cinzel",serif;
  font-size:0.7rem;
  color:#0c0b0a;
  background:var(--service-color);
  clip-path:polygon(24% 0,100% 0,76% 100%,0 100%);
  box-shadow:0 0 12px var(--service-glow);
}
.service-copy{display:flex;flex-direction:column;line-height:1.05}
.service-name{
  font-family:"Cinzel",serif;
  font-size:0.54rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--service-color);
}
.service-label{
  font-size:0.68rem;
  color:var(--text-dim);
}
.commander-preview-block{
  margin-top:1.25rem;
  padding-top:1rem;
  border-top:1px solid rgba(184,149,74,0.12);
}
.commander-preview-label{margin-bottom:0.8rem}
.commander-preview-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:12px;
}
.commander-preview-card{
  position:relative;
  z-index:1;
  display:none;
  background:rgba(0,0,0,0.18);
  border:1px solid rgba(184,149,74,0.1);
  padding:0.8rem;
}
.commander-preview-card.is-verified{display:block}
.commander-preview-card:hover{z-index:220}
.commander-art-shell{max-width:150px;margin:0 auto 0.7rem}
.commander-placeholder{
  width:100%;
  aspect-ratio:63/88;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0.7rem;
  border-radius:4.5%;
  border:1px solid rgba(184,149,74,0.08);
  background:linear-gradient(135deg,rgba(184,149,74,0.12),rgba(20,15,20,0.9));
  color:var(--text-muted);
  font-size:0.72rem;
  text-align:center;
}
.commander-img{
  width:100%;
  display:block;
  border-radius:4.5%;
  border:1px solid var(--border-s);
  transition:transform 0.28s cubic-bezier(0.34,1.4,0.64,1),box-shadow 0.28s ease,border-color 0.15s;
  transform-origin:center 24%;
}
.commander-img:hover{
  transform:scale(2.1);
  border-color:var(--gold);
  box-shadow:0 24px 64px rgba(0,0,0,0.92),0 0 0 2px rgba(184,149,74,0.4);
}
.commander-name{
  color:var(--text);
  font-size:0.95rem;
  margin-bottom:0.35rem;
}
.commander-meta{
  font-family:"IBM Plex Mono",monospace;
  font-size:0.62rem;
  color:var(--teal);
  line-height:1.35;
  margin-bottom:0.4rem;
  display:flex;
  flex-direction:column;
  gap:0.14rem;
}
.commander-desc{
  color:var(--text-dim);
  font-size:0.78rem;
  line-height:1.45;
}
.commander-tags .vm-tag-chip{font-size:0.58rem;min-height:20px;padding:0.18rem 0.42rem}
.flavor-echo-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:1px;
  background:rgba(184,149,74,0.06);
}
.flavor-echo-card{
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  gap:1rem;
  min-height:138px;
  padding:1rem;
  color:inherit;
  text-decoration:none;
  border:1px solid rgba(184,149,74,0.08);
  background:
    linear-gradient(135deg,rgba(26,170,150,0.08),transparent 42%),
    rgba(12,11,10,0.9);
  transition:border-color 0.15s,background 0.15s;
}
.flavor-echo-card:hover{border-color:rgba(26,170,150,0.28);background:rgba(12,11,10,0.96)}
.flavor-echo-card img{
  width:96px;
  height:120px;
  object-fit:cover;
  border:1px solid rgba(184,149,74,0.12);
}
.flavor-echo-body{display:flex;flex-direction:column;gap:0.45rem;min-width:0}
.flavor-echo-name{font-family:"Cinzel",serif;font-size:0.86rem;color:var(--gold);line-height:1.25}
.flavor-echo-kicker{
  font-family:"Cinzel",serif;
  font-size:0.52rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--teal);
}
.flavor-echo-intro{
  margin:-0.2rem 0 0.9rem;
  color:rgba(236,233,225,0.84);
  font-size:0.9rem;
  line-height:1.55;
}
.flavor-echo-text{font-size:0.84rem;color:var(--text-dim);font-style:italic;line-height:1.45}
.flavor-echo-why{font-size:0.86rem;color:rgba(231,238,234,0.88);line-height:1.55}
.commander-preview-fallback{display:none;gap:8px;flex-wrap:wrap}
.commander-preview-fallback.is-visible{display:flex}
.adjacent-card.active{outline:1px solid var(--border-s)}
.staples-category{margin-bottom:1.5rem}
.staple-cat-label{font-family:"Cinzel",serif;font-size:0.6rem;letter-spacing:0.2em;text-transform:uppercase;color:var(--text-muted);margin-bottom:0.75rem}
.staple-row{display:flex;gap:10px;flex-wrap:wrap}
.staple-wrap{flex:0 0 auto;width:110px;position:relative;z-index:1}
.staple-wrap:hover{z-index:200}
.staple-img{width:100%;border-radius:4.5%;border:1px solid var(--border-s);display:block;transition:box-shadow 0.2s ease,border-color 0.15s,filter 0.2s ease;transform-origin:center 30%}
.staple-img:hover{border-color:var(--gold);filter:brightness(1.08);box-shadow:0 12px 28px rgba(0,0,0,0.45),0 0 0 1px rgba(184,149,74,0.35)}
.staple-placeholder,.land-placeholder{
  width:100%;
  aspect-ratio:63/88;
  background:var(--bg3);
  border:1px solid rgba(184,149,74,0.06);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:0.7rem;
  color:var(--text-muted);
  border-radius:4.5%;
  text-align:center;
  padding:0.6rem;
  line-height:1.3;
}
.staple-name,.land-name{font-size:0.7rem;color:var(--text-muted);text-align:center;margin-top:5px;line-height:1.3}
.lands-tiers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:rgba(184,149,74,0.06);margin-bottom:1.5rem}
.land-tier{background:rgba(12,11,10,0.9);padding:1.1rem}
.land-tier-label{font-family:"Cinzel",serif;font-size:0.6rem;letter-spacing:0.18em;text-transform:uppercase;margin-bottom:0.85rem}
.tier-basics{grid-column:1/-1}
.tier-basics .land-tier-label{color:var(--text-muted)}
.tier-basics .land-tier-copy{min-height:0;margin-bottom:0}
.tier-premium .land-tier-label{color:#e8c84a}
.tier-midrange .land-tier-label{color:#7ab0d0}
.tier-budget .land-tier-label{color:#8aaa6a}
.land-tier-copy{
  min-height:3.4em;
  color:var(--text-muted);
  font-size:0.8rem;
  line-height:1.42;
  margin-bottom:0.85rem;
}
.land-cards-row{display:flex;gap:8px;flex-wrap:wrap}
.land-wrap{flex:0 0 auto;width:90px;position:relative;z-index:1}
.land-wrap:hover{z-index:200}
.land-img{
  width:100%;
  border-radius:4.5%;
  border:1px solid var(--border-s);
  display:block;
  transition:box-shadow 0.2s ease,border-color 0.15s,filter 0.2s ease;
  transform-origin:center 30%;
}
.land-img:hover{
  border-color:var(--gold);
  filter:brightness(1.08);
  box-shadow:0 12px 28px rgba(0,0,0,0.45),0 0 0 1px rgba(184,149,74,0.35);
}
.card-preview-overlay{
  position:fixed;
  z-index:3000;
  display:grid;
  gap:0.45rem;
  pointer-events:none;
  opacity:0;
  transform:translateY(8px) scale(0.96);
  transition:opacity 0.14s ease,transform 0.14s ease;
}
.card-preview-overlay.is-visible{
  opacity:1;
  transform:translateY(0) scale(1);
}
.card-preview-overlay img{
  width:100%;
  border:1px solid rgba(216,194,122,0.58);
  border-radius:4.5%;
  box-shadow:0 26px 76px rgba(0,0,0,0.92),0 0 0 1px rgba(184,149,74,0.3);
}
.card-preview-overlay span{
  justify-self:center;
  max-width:100%;
  padding:0.28rem 0.58rem;
  border:1px solid rgba(184,149,74,0.2);
  border-radius:999px;
  background:rgba(8,8,10,0.9);
  color:var(--text);
  font-family:"IBM Plex Mono",monospace;
  font-size:0.68rem;
  line-height:1.2;
  text-align:center;
}
.lands-guide{background:rgba(12,11,10,0.9);border:1px solid var(--border-s);padding:1.1rem 1.25rem}
.guide-row{display:flex;gap:1rem;padding:0.45rem 0;border-bottom:1px solid rgba(184,149,74,0.05);font-size:0.88rem;align-items:baseline}
.guide-row:last-child{border-bottom:none}
.guide-tier{font-family:"Cinzel",serif;font-size:0.6rem;letter-spacing:0.12em;text-transform:uppercase;width:68px;flex-shrink:0}
.guide-tier-p{color:#e8c84a}
.guide-tier-m{color:#7ab0d0}
.guide-tier-b{color:#8aaa6a}
.guide-tier-u{color:var(--text-muted)}
.guide-text{color:var(--text-dim);line-height:1.5;flex:1}
.footer-actions{
  text-align:center;
  padding-top:2rem;
  border-top:1px solid var(--border);
}
.decree-footer{
  margin-top:3rem;
  padding-top:1.5rem;
  border-top:1px solid var(--border);
  font-family:var(--font-text);
  font-size:0.9375rem;
  line-height:1.6;
  color:var(--text-dim);
  max-width:64ch;
}
.footer-note{font-size:0.8rem;color:var(--text-muted);font-style:italic;margin-bottom:1rem}
.footer-button-row{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.empty-state{
  text-align:center;
  color:var(--text-dim);
  max-width:460px;
}
.empty-state h2{
  font-family:"Cinzel Decorative",serif;
  font-size:2rem;
  color:var(--gold);
  margin-bottom:0.8rem;
}

/* Legacy animation and responsive behavior */

@keyframes pulse{0%,100%{opacity:0.4}50%{opacity:1}}

@media(max-width:900px){
  .landing-wrap{width:100%}
}
@media(max-width:700px){
  #landing,#quick,#interview{padding-top:5rem}
  .answer-grid{grid-template-columns:1fr}
  .result-context-bar{align-items:flex-start;flex-direction:column}
  .context-actions{justify-content:flex-start}
  .land-wrap{width:80px}
  .staple-wrap{width:92px}
  .commander-img:hover{transform:scale(1.7)}
  .service-chip{width:100%;justify-content:flex-start}
  .tb-placement{display:none}
  #terminal-input-row{flex-direction:column}
  #terminal-submit{width:100%}
  .vm-dossier-matrix-section .vm-axis{
    grid-template-columns:1fr;
    gap:0.35rem;
  }
  .vm-dossier-matrix-section .vm-axis span:last-child{
    text-align:left;
  }
}
@media(max-width:940px){
  .vm-dossier-matrix-section .vm-lab-layout{
    grid-template-columns:1fr;
  }
  .vm-dossier-matrix-section .vm-radar-card{
    min-height:480px;
  }
  .vm-dossier-matrix-section .vm-radar-wrap{
    height:390px;
  }
}

@container (max-width:34rem){
  .lands-tiers{grid-template-columns:1fr}
}

@container (max-width:30rem){
  .commander-preview-grid{grid-template-columns:1fr}
}

@container (max-width:38rem){
  .how-this-plays-grid{grid-template-columns:1fr}
}

@container (max-width:36rem){
  .flavor-echo-card{
    grid-template-columns:1fr;
    min-height:0;
  }

  .flavor-echo-card img{
    width:min(120px,100%);
    height:auto;
    justify-self:start;
  }
}
