/* ============================================================
   ОСФ — Financial Vault Navigator
   Premium private-banking + futuristic financial OS.
   Зависит от токенов osf.css. Чистый CSS, без библиотек.
   ============================================================ */

.vault {
  position: relative; overflow: hidden;
  min-height: 100vh;
  padding-top: 92px; padding-bottom: clamp(40px, 5vw, 72px);
  display: flex; align-items: center;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(201,162,90,.10), transparent 55%),
    radial-gradient(90% 70% at 50% 116%, rgba(34,52,72,.34), transparent 60%),
    linear-gradient(180deg, #090d11, var(--bg) 40%, #080b0f);
}
.vault-inner { position: relative; z-index: 3; width: 100%; }

/* faint full-crest watermark (premium brand presence) */
.vault-crest {
  position: absolute; right: -7%; top: 50%; transform: translateY(-50%);
  height: 122%; width: auto; max-width: none; opacity: .07; z-index: 2;
  pointer-events: none; user-select: none;
  -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000 30%, transparent 80%);
          mask-image: radial-gradient(60% 60% at 50% 50%, #000 30%, transparent 80%);
}
@media (max-width: 1140px) { .vault-crest { opacity: .05; right: -16%; } }
@media (max-width: 920px) { .vault-crest { display: none; } }

/* ============================================================
   ATMOSPHERE — god-ray, data grid, dots, light paths, vignette
   ============================================================ */
.atmos { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.atmos > * { position: absolute; will-change: transform; }

.atmos-ray {
  top: -16%; left: 50%; width: 130%; height: 90%;
  transform: translateX(-50%);
  background:
    conic-gradient(from 180deg at 50% 0%,
      transparent 0deg, rgba(227,196,131,.07) 12deg, transparent 26deg,
      transparent 334deg, rgba(227,196,131,.07) 348deg, transparent 360deg),
    radial-gradient(60% 50% at 50% 0%, rgba(227,196,131,.10), transparent 70%);
  filter: blur(6px);
  animation: raySway 16s ease-in-out infinite alternate;
}
@keyframes raySway { from { opacity: .7; transform: translateX(-50%) rotate(-1.4deg); } to { opacity: 1; transform: translateX(-50%) rotate(1.4deg); } }

.atmos-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 42%, #000 0%, transparent 78%);
          mask-image: radial-gradient(80% 70% at 50% 42%, #000 0%, transparent 78%);
  opacity: .5;
}

.atmos-dots {
  inset: -10%;
  background-image: radial-gradient(circle, rgba(201,162,90,.35) 1px, transparent 1.4px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 44%, #000 0%, transparent 72%);
          mask-image: radial-gradient(70% 60% at 50% 44%, #000 0%, transparent 72%);
  opacity: .22;
  animation: dotsDrift 26s linear infinite;
}
@keyframes dotsDrift { from { transform: translateY(0); } to { transform: translateY(-46px); } }

/* travelling gold light paths */
.atmos-path {
  height: 1px; left: -20%; right: -20%;
  background: linear-gradient(90deg, transparent, rgba(227,196,131,.45) 45%, rgba(227,196,131,.7) 50%, rgba(227,196,131,.45) 55%, transparent);
  opacity: .0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.atmos-path--a { top: 32%; animation: pathRun 9s ease-in-out 1.5s infinite; }
.atmos-path--b { top: 66%; animation: pathRun 11s ease-in-out 5s infinite; }
@keyframes pathRun {
  0% { opacity: 0; transform: translateX(-24%) scaleX(.6); }
  18% { opacity: .9; }
  50% { transform: translateX(0) scaleX(1); }
  82% { opacity: .9; }
  100% { opacity: 0; transform: translateX(24%) scaleX(.6); }
}

.atmos-vignette {
  inset: 0;
  background: radial-gradient(130% 95% at 50% 38%, transparent 50%, rgba(0,0,0,.5) 100%);
}

/* ---------- head / intro ---------- */
.vault-intro { text-align: left; align-self: center; min-width: 0; }
.vault-key {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 9px 16px; border: 1px solid var(--line-warm); border-radius: 100px;
  background: var(--gold-soft); font-size: 12.5px; font-weight: 600; color: var(--gold-bright);
  letter-spacing: .01em; margin-bottom: 18px;
}
.vault-key .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,90,.18); }
.vault-h1 {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -.012em;
  font-size: clamp(28px, 2.9vw, 42px); line-height: 1.1; margin: 0 0 14px;
}
.vault-h1 em { font-style: italic; color: var(--gold-bright); }
.vault-sub { font-size: clamp(14px, 1.1vw, 15.5px); color: var(--text-2); line-height: 1.55; max-width: 420px; margin: 0; }

/* status line — reacts to direction without moving H1 */
.vault-status { display: inline-flex; align-items: center; gap: 9px; margin: 16px 0 0; padding: 7px 14px; border-radius: 100px; border: 1px solid var(--gold-line); background: var(--gold-soft); font-size: 12.5px; font-weight: 600; color: var(--text-2); max-width: 100%; }
.vault-status .vs-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 3px var(--gold-soft); flex: none; }
.vault-status .vs-pick { color: var(--muted); font-weight: 600; }
.vault-status b { color: var(--gold-bright); font-weight: 700; }

/* ============================================================
   FLAGSHIP ACCESS KEYS — premium, не чипы
   ============================================================ */
.flagships { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 0; max-width: 420px; }
.flag-key {
  position: relative; overflow: hidden; width: 100%;
  display: inline-flex; align-items: center; gap: 13px; text-align: left;
  padding: 12px 18px 12px 13px; border-radius: 12px;
  border: 1px solid var(--gold-line);
  background: linear-gradient(160deg, rgba(201,162,90,.16), rgba(201,162,90,.03) 70%), rgba(16,22,28,.6);
  color: var(--text); font-family: var(--font-ui);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 30px -18px rgba(0,0,0,.8);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), border-color .3s, box-shadow .3s;
}
.flag-key::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
.flag-key:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 40px -18px rgba(201,162,90,.5); }
.flag-key:hover::after { left: 120%; }
.flag-key .fk-ico { width: 38px; height: 38px; flex: none; border-radius: 9px; display: grid; place-items: center; border: 1px solid var(--gold-line); background: rgba(201,162,90,.1); }
.flag-key .fk-ico svg { width: 20px; height: 20px; stroke: var(--gold-bright); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.flag-key .fk-txt { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.flag-key .fk-label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.flag-key .fk-fig { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.flag-key.active { border-color: var(--gold); background: linear-gradient(160deg, rgba(201,162,90,.28), rgba(201,162,90,.06) 70%), rgba(20,24,18,.7); box-shadow: 0 0 0 1px var(--gold-line), 0 18px 44px -18px rgba(201,162,90,.55); }
.flag-key.active .fk-label { color: var(--text); }

/* ============================================================
   MAIN GRID — intro + mechanism + route (3 zones, one row)
   ============================================================ */
.vault-main {
  display: grid;
  grid-template-columns: minmax(290px, 360px) minmax(340px, 1fr) minmax(360px, 440px);
  gap: clamp(20px, 2.6vw, 44px); align-items: center;
  max-width: var(--maxw); margin: 0 auto;
}
.mech-col { display: flex; flex-direction: column; align-items: center; min-width: 0; }

/* ============================================================
   VAULT MECHANISM
   ============================================================ */
.vault-mech {
  position: relative; width: min(400px, 78vw); aspect-ratio: 1 / 1;
  display: grid; place-items: center; touch-action: none;
  --ring: min(162px, 31vw);
}
.mech-glow {
  position: absolute; inset: 2%; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(201,162,90,.22), transparent 60%);
  filter: blur(16px); transition: background .4s, opacity .4s;
}
.vault-mech.pulse .mech-glow { animation: glowPulse .9s ease-out; }
@keyframes glowPulse { 0% { opacity: 1; transform: scale(.92); } 40% { opacity: 1; } 100% { opacity: .8; transform: scale(1); } }

/* fixed top index pointer */
.mech-index { position: absolute; top: -2px; left: 50%; transform: translateX(-50%); z-index: 9; width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 15px solid var(--gold-bright); filter: drop-shadow(0 0 7px rgba(227,196,131,.8)); }
.mech-index::after { content: ""; position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 2px; height: 18px; background: linear-gradient(var(--gold-bright), transparent); }

/* outer notched lock ring (rotates) */
.ring-outer {
  position: absolute; inset: 4%; border-radius: 50%;
  background:
    radial-gradient(circle at 50% 32%, #20303c, #0c1318 70%),
    conic-gradient(from 0deg, #2a3b48, #141d24 25%, #2a3b48 50%, #141d24 75%, #2a3b48);
  background-blend-mode: overlay, normal;
  border: 1px solid var(--line-2);
  box-shadow:
    inset 0 2px 30px rgba(0,0,0,.6),
    inset 0 0 0 10px rgba(255,255,255,.014),
    inset 0 0 0 11px rgba(0,0,0,.4),
    0 40px 90px -38px rgba(0,0,0,.9);
  transform: rotate(0deg);
  transition: transform 1s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}
.ring-outer svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-outer .tick { stroke: rgba(201,162,90,.28); stroke-width: 1; }
.ring-outer .tick.major { stroke: var(--gold-line); stroke-width: 1.6; }
.ring-outer .tick.cardinal { stroke: var(--gold-bright); stroke-width: 2; }

/* gold sweep impulse around outer ring on unlock */
.ring-sweep {
  position: absolute; inset: 4%; border-radius: 50%; pointer-events: none; z-index: 6;
  background: conic-gradient(from -90deg, rgba(227,196,131,.9), rgba(227,196,131,0) 40%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
  opacity: 0;
}
.vault-mech.pulse .ring-sweep { animation: sweep .9s cubic-bezier(.3,.7,.3,1); }
@keyframes sweep { 0% { opacity: 0; transform: rotate(-40deg); } 25% { opacity: 1; } 100% { opacity: 0; transform: rotate(320deg); } }

/* ring holding direction sectors (upright) */
.ring-dir { position: absolute; inset: 0; z-index: 5; }
.sector {
  position: absolute; top: 50%; left: 50%; width: 82px; height: 82px; margin: -41px 0 0 -41px;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background:
    radial-gradient(circle at 50% 26%, #38505f 0%, #15202a 92%);
  border: 1px solid rgba(201,162,90,.42);
  color: var(--text-2); cursor: pointer;
  box-shadow: 0 14px 28px -12px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.1), inset 0 -6px 14px rgba(0,0,0,.45);
  transform: rotate(var(--a, 0deg)) translateY(calc(-1 * var(--ring))) rotate(calc(-1 * var(--a, 0deg)));
  transition: scale .35s cubic-bezier(.2,.7,.3,1), border-color .35s, color .35s, box-shadow .35s, background .35s;
}
.sector .s-ico { width: 23px; height: 23px; }
.sector .s-ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.sector .s-name { font-size: 10px; font-weight: 600; line-height: 1.05; text-align: center; max-width: 82px; letter-spacing: .005em; text-wrap: balance; }
.sector .s-flag { position: absolute; top: 9px; right: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); display: none; }
.sector[data-flag="1"] .s-flag { display: block; }
.sector:hover { color: var(--text); scale: 1.08; border-color: var(--gold-line); box-shadow: 0 16px 32px -12px rgba(0,0,0,.8), 0 0 24px -6px rgba(201,162,90,.5); }
.sector:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.sector.active {
  color: var(--gold-bright); border-color: var(--gold); scale: 1.06;
  background: radial-gradient(circle at 50% 32%, rgba(201,162,90,.4), #16212b 90%);
  box-shadow: 0 0 0 1px var(--gold), 0 0 34px -2px rgba(201,162,90,.7), inset 0 1px 0 rgba(255,255,255,.12);
}

/* centre core (vault door) */
.core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 51%; height: 51%; border-radius: 50%; z-index: 7;
  background:
    radial-gradient(circle at 50% 30%, #243340, #0c1217 74%);
  border: 1px solid var(--gold-line);
  box-shadow:
    inset 0 0 36px rgba(0,0,0,.6),
    inset 0 2px 0 rgba(255,255,255,.06),
    0 0 50px -10px rgba(201,162,90,.3);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 8%; overflow: hidden;
}
/* metal door spokes */
.core::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(255,255,255,.05) 0deg 2deg, transparent 2deg 45deg);
  border: 1px dashed rgba(201,162,90,.22);
  transition: transform 1s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
.vault-mech.pulse .core::before { animation: spoke 1s cubic-bezier(.16,1,.3,1); }
@keyframes spoke { from { transform: rotate(-22deg); } to { transform: rotate(0); } }

.core-state { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.core-lock { width: 21px; height: 21px; margin-bottom: 5px; opacity: .9; }
.core-lock svg { width: 100%; height: 100%; stroke: var(--gold-bright); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.core-label { font-size: 8.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 5px; }
.core-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(14px, 1.45vw, 18px); line-height: 1.05; color: var(--text); margin-bottom: 6px; max-width: 96%; text-wrap: balance; }
.core-fig { font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 2.1vw, 27px); color: var(--gold-bright); line-height: 1; font-variant-numeric: tabular-nums; }
.core-fig small { font-size: .42em; color: var(--text-2); font-family: var(--font-ui); font-weight: 600; letter-spacing: 0; margin-left: 2px; }
.core.swap .core-state { animation: coreSwap .5s cubic-bezier(.2,.7,.3,1); }
@keyframes coreSwap { from { transform: translateY(7px) scale(.97); } to { transform: none; } }

/* hint */
.mech-hint { display: flex; align-items: center; justify-content: center; gap: 9px; margin: clamp(16px, 2vw, 26px) 0 0; color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.mech-hint .vh-ring { width: 14px; height: 14px; border-radius: 50%; border: 1.4px solid var(--gold-line); border-top-color: var(--gold-bright); animation: vhSpin 3.6s linear infinite; flex: none; }
@keyframes vhSpin { to { transform: rotate(360deg); } }

/* ============================================================
   ROUTE PANEL
   ============================================================ */
.route {
  position: relative; min-width: 0; align-self: center;
  padding: clamp(20px, 1.9vw, 28px); border-radius: var(--r-xl);
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(20,28,36,.78), rgba(12,17,22,.78));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.04);
}
.route::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 2px; border-radius: 2px; background: linear-gradient(var(--gold), transparent); }
.route-head { margin-bottom: 14px; }
.route-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 10px; }
.route-eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--gold-line); }
.route-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 2.1vw, 27px); line-height: 1.1; margin: 10px 0 0; color: var(--text); }
.route-blurb { margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.route-stat { display: inline-flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.route-stat .rs-fig { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3vw, 40px); color: var(--gold-bright); line-height: 1; font-variant-numeric: tabular-nums; }
.route-stat .rs-lab { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }

/* solutions inside the route */
.route-solutions { display: flex; flex-direction: column; gap: 8px; }
.rsol {
  position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255,255,255,.018); cursor: pointer; text-align: left;
  transition: border-color .25s, background .25s, transform .25s;
}
.route-solutions.animate .rsol { animation: rsolIn .42s cubic-bezier(.2,.7,.3,1) both; }
@keyframes rsolIn { from { transform: translateX(12px); } to { transform: none; } }
.rsol:hover { border-color: var(--gold-line); background: rgba(201,162,90,.06); transform: translateX(3px); }
.rsol .rs-ico { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--gold-line); background: var(--gold-soft); display: grid; place-items: center; flex: none; }
.rsol .rs-ico svg { width: 18px; height: 18px; stroke: var(--gold-bright); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.rsol .rs-main { min-width: 0; }
.rsol .rs-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.25; }
.rsol .rs-sub { font-size: 11.5px; color: var(--muted); line-height: 1.35; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rsol .rs-go { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; white-space: nowrap; }
.rsol .rs-go .rs-amt { font-family: var(--font-display); font-weight: 500; font-size: 14px; color: var(--gold-bright); line-height: 1; }
.rsol .rs-go .rs-arrow { font-size: 13px; font-weight: 700; color: var(--muted); transition: color .25s, transform .25s; }
.rsol:hover .rs-go .rs-arrow { color: var(--gold-bright); transform: translateX(3px); }
.rsol--flag { border-color: var(--gold-line); background: linear-gradient(120deg, rgba(201,162,90,.12), rgba(255,255,255,.02)); }
.rsol--flag::after { content: "Флагман"; position: absolute; top: -8px; right: 12px; font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #14110a; background: var(--gold); padding: 3px 9px; border-radius: 100px; }

/* mini route chain */
.route-chain { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; margin: 16px 0; padding-top: 14px; border-top: 1px solid var(--line); }
.rc-step { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.rc-step:not(.rc-step--end)::after { content: ""; position: absolute; top: 5px; left: 50%; width: 100%; height: 2px; background: var(--line-2); }
.rc-step .rc-dot { position: relative; z-index: 2; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--line-2); transition: background .3s, border-color .3s, box-shadow .3s; }
.rc-step.lit:not(.rc-step--end)::after { background: linear-gradient(90deg, var(--gold), var(--line-2)); }
.rc-step.lit .rc-dot { background: var(--gold); border-color: var(--gold-bright); box-shadow: 0 0 0 4px var(--gold-soft), 0 0 12px rgba(201,162,90,.6); }
.rc-step .rc-lab { font-size: 10px; font-weight: 600; color: var(--muted); line-height: 1.2; letter-spacing: .01em; }
.rc-step.lit .rc-lab { color: var(--text-2); }

.route-cta .btn { width: 100%; white-space: normal; text-align: center; padding-left: 20px; padding-right: 20px; font-size: 15.5px; line-height: 1.25; gap: 8px; }
.route-cta .btn .arw { flex: none; }

/* ============================================================
   SOUND TOGGLE + TOAST
   ============================================================ */
.sound-toggle {
  margin: 16px auto 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px;
  border-radius: 100px; border: 1px solid var(--line-2); background: rgba(13,18,24,.6);
  color: var(--muted); font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  transition: border-color .25s, color .25s, background .25s;
}
.sound-toggle:hover { border-color: var(--gold-line); color: var(--text-2); }
.sound-toggle .st-ico { width: 18px; height: 18px; }
.sound-toggle .st-ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sound-toggle .st-on { display: none; }
.sound-toggle .st-off { display: block; }
.sound-toggle[aria-pressed="true"] { border-color: var(--gold-line); color: var(--gold-bright); background: var(--gold-soft); }
.sound-toggle[aria-pressed="true"] .st-on { display: block; }
.sound-toggle[aria-pressed="true"] .st-off { display: none; }

.vault-toast {
  position: fixed; left: 50%; bottom: 76px; transform: translate(-50%, 14px);
  z-index: 300; padding: 13px 22px; border-radius: 100px;
  background: rgba(20,28,36,.96); border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-lg); color: var(--text); font-size: 13.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, transform .3s, visibility .3s;
}
.vault-toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 4px var(--gold-soft); }
.vault-toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- fallback (.no-js) ---------- */
.vault-fallback { display: none; }
.no-js .vault-main, .no-js .flagships, .no-js .sound-toggle { display: none; }
.no-js .vault-fallback { display: block; max-width: 760px; margin: 30px auto 0; }
.no-js .vault-fallback ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }

/* ============================================================
   MOBILE rail (level-1) — hidden on desktop
   ============================================================ */
.dir-rail-wrap { display: none; width: 100%; }
.dir-rail { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; margin: 4px 0 0; -webkit-overflow-scrolling: touch; }
.dir-rail::-webkit-scrollbar { height: 0; }
.rail-chip { scroll-snap-align: center; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 7px; width: 102px; padding: 15px 10px; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: radial-gradient(circle at 50% 28%, #1b2731, #0e151b); color: var(--text-2); position: relative; }
.rail-chip .s-ico { width: 24px; height: 24px; }
.rail-chip .s-ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.rail-chip .s-name { font-size: 11px; font-weight: 600; text-align: center; line-height: 1.15; }
.rail-chip .s-flag { position: absolute; top: 9px; right: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: none; }
.rail-chip[data-flag="1"] .s-flag { display: block; }
.rail-chip.active { border-color: var(--gold); color: var(--gold-bright); background: radial-gradient(circle at 50% 30%, rgba(201,162,90,.26), #14202a); }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .atmos-ray, .atmos-dots, .atmos-path, .mech-hint .vh-ring { animation: none; }
  .ring-outer { transition: transform .3s ease; }
  .vault-mech.pulse .mech-glow, .vault-mech.pulse .ring-sweep, .vault-mech.pulse .core::before, .core.swap .core-state, .route-solutions.animate .rsol { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1140px) {
  /* intro spans top, mechanism + route below */
  .vault-main { grid-template-columns: minmax(340px, 1fr) minmax(340px, 460px); grid-template-areas: "intro intro" "mech route"; gap: 28px 36px; }
  .vault-intro { grid-area: intro; text-align: center; }
  .vault-intro .vault-sub { max-width: 640px; margin: 0 auto; }
  .vault-intro .flagships { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: none; margin-top: 18px; }
  .vault-intro .flag-key { width: auto; flex: 0 1 auto; }
  .mech-col { grid-area: mech; }
  .route { grid-area: route; }
}
@media (max-width: 920px) {
  /* stack: mechanism, then route \u2014 circle preserved */
  .vault-main { grid-template-columns: 1fr; grid-template-areas: "intro" "mech" "route"; max-width: 600px; gap: 26px; }
  .route::before { display: none; }
  .vault-intro .flag-key { flex: 1 1 240px; }
}
@media (max-width: 680px) {
  /* phone: drop mechanism, use rail */
  .vault { min-height: 0; padding-top: 92px; }
  .vault-mech, .mech-hint { display: none; }
  .dir-rail-wrap { display: block; }
  .sound-toggle { top: 84px; }
  .vault-intro .flagships { flex-direction: column; }
  .vault-intro .flag-key { flex: 1 1 100%; width: 100%; }
  .route-chain { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .route-chain .rc-lab { font-size: 9px; }
}
