/* AskRue™ login / Bar gate styles — extracted from login.html. Preserve looks + mechanics. */
/* Chat-specific error line — realm-skin has no built-in error style since
     the original login.ruezals.com form posts server-side and never shows
     a client-side error like this. */
  .rz-err { color:#e07070; font-size:.82rem; margin-top:12px; min-height:1.2em; text-align:center; }
  .rz-ok { color:#6ecf8a; font-size:.82rem; margin-top:12px; min-height:1.2em; text-align:center; }
  .rz-hint { margin-top:16px; font-size:.75rem; color:#8a9088; line-height:1.5; text-align:center; }
  .rz-hint a { color:var(--rz-gold, #C8962A); }
  .rz-reg-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--rz-gold, #C8962A);
    cursor: pointer;
    background: none;
    border: none;
    text-decoration: underline;
    font-family: inherit;
  }
  .rz-reg-link--quiet { opacity: 0.55; font-size: 0.72rem; }
  body.rz-modal-open {
    overflow: hidden !important;
  }
  .rz-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.72);
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: hidden;
  }
  .rz-modal-backdrop.open { display: flex; }
  .rz-modal {
    width: min(440px, 100%);
    max-height: min(92vh, 720px);
    overflow: auto;
    background: rgba(10, 14, 12, 0.97);
    border: 1px solid rgba(200,150,42,0.4);
    border-radius: 14px;
    padding: 22px 20px 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  }
  .rz-modal--beta,
  .rz-modal--forgot {
    width: min(380px, 100%);
    max-height: none;
    overflow: visible;
  }
  .rz-modal--forgot .rz-ok {
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.45;
    color: rgba(180, 220, 170, 0.95);
    margin: 8px 0 12px;
  }
  .rz-modal--wide {
    width: min(920px, 96vw);
    max-height: min(94vh, 820px);
    overflow-x: hidden;
    overflow-y: auto;
  }
  .rz-reg-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
  }
  .rz-reg-form-grid .rz-check,
  .rz-reg-form-grid .rz-err,
  .rz-reg-form-grid .rz-ok,
  .rz-reg-form-grid .rz-modal-actions {
    grid-column: 1 / -1;
  }
  @media (max-width: 700px) {
    .rz-reg-form-grid {
      grid-template-columns: 1fr;
    }
  }
  .rz-modal h2 {
    margin: 0 0 6px;
    font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
    font-size: 1.2rem;
    color: var(--rz-gold, #C8962A);
    text-align: center;
  }
  .rz-modal .rz-sub {
    text-align: center;
    font-size: 0.78rem;
    color: #8a9088;
    margin-bottom: 14px;
    line-height: 1.4;
  }
  .rz-modal .rz-form-group { margin-bottom: 10px; }
  .rz-modal label { display: block; font-size: 0.72rem; color: #b8b4a8; margin-bottom: 4px; }
  .rz-modal input, .rz-modal select, .rz-modal textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid rgba(200,150,42,0.3);
    background: rgba(3,6,5,0.9);
    color: #f6f4ec;
    font: inherit;
    font-size: 0.88rem;
  }
  .rz-modal textarea { min-height: 56px; resize: vertical; }
  .rz-check {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 0.75rem;
    color: #b8b4a8;
    line-height: 1.4;
    margin: 12px 0;
  }
  .rz-check input { width: auto; margin-top: 3px; }
  .rz-modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
  }
  .rz-modal-actions button { flex: 1; }
  /* Dragon mark above RUEZALS.chat long wordmark */
  /* —— AskRue™ spectacle is the main streak; logo sits in the backdrop —— */
  body.askrue-login-page {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100%;
    background-color: #050807;
  }
  /* Ethier AskRue plate — full-bleed cosmic logo field */
  .askrue-rcorp-bg,
  .askrue-ethier-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-color: #050208;
  }
  .askrue-rcorp-bg img,
  .askrue-ethier-bg img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: var(--rz-ethier-alpha, 0.72);
  }
  /*
   * Cube stack: nebula shader (rz-shader-library.js). AskRue™ dragon logo still —
   * askrue-logo.png (colored, not white-only); natural colors, no filter.
   */
  :root {
    --askrue-ref-red: #dc2626;
    --askrue-ref-red-soft: rgba(220, 38, 38, 0.25);
  }
  /* Cosmic nebula shader — inside the login cube when it settles (behind dragon heads) */
  .askrue-cube-nebula-shader {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
  }
  .askrue-cube-nebula-shader[hidden] {
    display: none !important;
  }
  .askrue-electrical-stage.is-cube-shader-active .askrue-cube-nebula-shader {
    opacity: 1;
    z-index: 0;
  }
  .askrue-electrical-stage.is-cube-shader-active {
    background: #000;
  }
  .askrue-electrical-stage.is-cube-shader-active .askrue-logo-plate {
    opacity: 0 !important;
  }
  .askrue-electrical-stage.is-cube-shader-active .askrue-bg-loop {
    display: none !important;
  }
  /* AskRue™ dragon logo on cryptology field — above © plate, natural red/blue/white */
  .askrue-electrical-stage.is-cube-shader-active .askrue-bg-still,
  .askrue-electrical-stage.is-cube-shader-active .askrue-login-mark-still {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    padding: 8%;
    box-sizing: border-box;
    /* Dragon sits BENEATH the molecule squares — Rue, 2026-08-07. Done as a
       swap with the canvas below (logo 5->4, canvas 4->5) rather than lifting
       the canvas to 6: the canvas is full-bleed inset:0, and 6-7 is where the
       sign-in line and error text live. Raising it there would put a
       click-catching surface over a public login form. */
    z-index: 4 !important;
    opacity: 1;
    mix-blend-mode: normal;
    background: transparent !important;
    pointer-events: none;
    filter: none;
  }
  .askrue-electrical-stage.is-cube-shader-active .askrue-pyramid-copy {
    z-index: 1;
  }
  /* Molecules sit ABOVE the dragon whenever the cube shader is up.
   *
   * The rule below already did this, but only with .is-brand-construct also
   * present. Without that class the canvas fell back to its base z-index: 2,
   * which is UNDER the still mark at 4 — so the dragon head sat on top of the
   * floating dots. Same intent, no longer conditional on brand-construct.
   *
   * Deliberately placed here rather than at the end of the file: the
   * .is-totp-plate-open and .is-echo-scan-target rules further down share this
   * specificity and must keep winning, so the TOTP plate is never buried. */
  .askrue-electrical-stage.is-cube-shader-active .askrue-molecules-canvas {
    z-index: 5 !important;
  }
  .askrue-electrical-stage.is-cube-shader-active.is-brand-construct .askrue-molecules-canvas {
    z-index: 5 !important;
    background: var(--askrue-ref-red-soft) !important;
    /* Decorative and aria-hidden — it has no listeners, so it must never take a
       click. Explicit now that it sits above the logo. */
    pointer-events: none !important;
  }
  /* Ethier plate already carries AskRue triangle — show chat dragon + wordmark (···) */
  body.askrue-login-page .askrue-logo-stack .askrue-logo-mark {
    opacity: 0.88;
  }
  body.askrue-login-page .askrue-logo-stack .rz-dragon-mark {
    opacity: 1;
  }
  body.askrue-login-page .askrue-logo-stack .rz-wordmark {
    opacity: 1;
  }
  /* Logo + house writing — centered backdrop (pyramid pongs in front) */
  .askrue-logo-stack {
    position: fixed;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: min(320px, 42vw);
    text-align: center;
    pointer-events: none;
  }
  .askrue-logo-stack .askrue-logo-mark {
    opacity: 0.42;
    pointer-events: none;
  }
  .askrue-logo-stack .rz-r-mark.rz-dragon-mark {
    width: min(132px, 28vw);
    margin: 0 auto 10px;
    filter: drop-shadow(0 0 28px rgba(200,150,42,0.4));
  }
  .askrue-logo-stack .rz-wordmark {
    width: min(240px, 34vw);
    margin: 0 auto;
    filter: drop-shadow(0 0 16px rgba(200,150,42,0.28));
  }
  .askrue-logo-stack .rz-header-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .askrue-honeypot-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(200, 150, 42, 0.22);
    pointer-events: auto;
    text-align: center;
    opacity: 0.88;
  }
  .askrue-honeypot-foot .askrue-highway,
  .askrue-honeypot-foot .rz-reg-link,
  .askrue-honeypot-foot .rz-hint {
    display: block;
    width: 100%;
    text-align: center;
  }
  .askrue-honeypot-foot .askrue-highway {
    font-size: 0.66rem;
    color: #9aa39c;
    line-height: 1.45;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
  }
  .askrue-honeypot-foot .rz-reg-link {
    margin-top: 0;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
  }
  .askrue-honeypot-foot .rz-hint {
    margin-top: 12px;
    font-size: 0.64rem;
    color: #7a827c;
    line-height: 1.55;
    letter-spacing: 0.01em;
  }
  @media (max-width: 720px) {
    .askrue-logo-stack {
      top: auto;
      bottom: 8px;
      transform: translateX(-50%);
      width: min(360px, 92vw);
    }
    .askrue-logo-stack .askrue-logo-mark { opacity: 0.5; }
    .askrue-honeypot-foot { opacity: 0.95; }
  }
  /* Kill realm-skin panel pong — pyramid has its own pong */
  body.askrue-login-page.rz-no-pong .rz-panel.askrue-login-chrome {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    will-change: auto;
    width: 0 !important;
    height: 0 !important;
    max-width: none;
    margin: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
    /* Above philosophy / runes / dust so pyramid scan is never covered */
    z-index: 45 !important;
    pointer-events: none;
  }
  body.askrue-login-page.rz-no-pong .rz-panel.askrue-login-chrome #login-form {
    pointer-events: none;
  }
  body.askrue-login-page.rz-no-pong .rz-panel.askrue-login-chrome .askrue-spectacle-wrap,
  body.askrue-login-page.rz-no-pong .rz-panel.askrue-login-chrome #phone-gate-panel {
    pointer-events: auto;
  }
  /* Shell is layout-only — no box, so it cannot steal hits from the pyramid */
  .askrue-login-shell {
    display: contents;
  }
  .askrue-sign-line {
    position: fixed;
    top: 64px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    width: min(520px, 92vw);
    margin: 0;
    text-align: center;
    font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1.15;
    color: var(--rz-gold, #C8962A);
    text-transform: uppercase;
    pointer-events: none;
    -webkit-text-stroke: 0.55px rgba(20, 12, 4, 0.85);
    paint-order: stroke fill;
    text-shadow:
      0 1px 0 rgba(255, 220, 140, 0.35),
      0 2px 14px rgba(0, 0, 0, 0.7);
  }
  .askrue-sign-line__awaits {
    display: block;
    margin-top: 0.12em;
    font-size: 0.88em;
    letter-spacing: 0.18em;
    font-weight: 800;
  }
  .askrue-ethier-sub {
    position: fixed;
    top: 128px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    width: min(420px, 90vw);
    margin: 0;
    text-align: center;
    font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(200, 190, 170, 0.92);
    pointer-events: none;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
  }
  .askrue-ethier-beta-link {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    letter-spacing: inherit;
    color: rgba(232, 210, 150, 0.98);
    text-decoration: underline;
    text-decoration-color: rgba(200, 150, 42, 0.55);
    text-underline-offset: 0.18em;
    cursor: pointer;
    pointer-events: auto;
    text-shadow: inherit;
  }
  .askrue-ethier-login-link {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    letter-spacing: inherit;
    color: rgba(248, 236, 200, 0.98);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(200, 150, 42, 0.72);
    text-underline-offset: 0.18em;
    cursor: pointer;
    pointer-events: auto;
    text-shadow: inherit;
  }
  .askrue-ethier-login-link:hover,
  .askrue-ethier-login-link:focus-visible {
    color: #fff4cc;
    text-decoration-color: rgba(255, 230, 160, 0.95);
    outline: none;
  }
  .askrue-ethier-beta-link:hover,
  .askrue-ethier-beta-link:focus-visible {
    color: #ffe6a0;
    text-decoration-color: rgba(255, 230, 160, 0.85);
    outline: none;
  }
  .askrue-login-page .rz-err {
    position: fixed;
    top: 178px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 7;
    width: min(350px, 90vw);
    margin: 0;
    text-align: center;
    pointer-events: none;
  }
  .rz-panel.askrue-login-chrome .rz-header-lockup,
  .rz-panel.askrue-login-chrome .rz-brand { display: none; }
  .rz-brand h1 { display: none !important; }
  /* —— Pyramid box 150–300; JS morphs on bounce; viewport may clamp —— */
  :root {
    --askrue-pyramid-max: 300px;
    --askrue-pyramid-size: 300px;
    /* Horizon sun / corona — warm white-gold */
    --askrue-corona-r: 255;
    --askrue-corona-g: 242;
    --askrue-corona-b: 196;
    --askrue-corona-glow: 0.1;
  }
  .askrue-spectacle-wrap {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 45;
    width: var(--askrue-pyramid-size);
    max-width: var(--askrue-pyramid-max);
    margin: 0;
    will-change: transform, box-shadow;
    pointer-events: auto;
    overflow: visible;
    /* Corona on the wrap — stage overflow:hidden was killing the glow. */
    border-radius: 21px;
    /* Parentheses required so --askrue-corona-glow (0.1→1) actually scales the bloom. */
    box-shadow:
      0 0 0 1px rgba(var(--askrue-corona-r), var(--askrue-corona-g), var(--askrue-corona-b), calc(0.14 + (var(--askrue-corona-glow) * 0.62))),
      0 0 14px 4px rgba(var(--askrue-corona-r), var(--askrue-corona-g), var(--askrue-corona-b), calc(0.04 + (var(--askrue-corona-glow) * 0.55))),
      0 0 36px 12px rgba(255, 236, 170, calc(0.02 + (var(--askrue-corona-glow) * 0.48))),
      0 0 70px 22px rgba(255, 220, 140, calc(0.01 + (var(--askrue-corona-glow) * 0.34))),
      0 0 110px 36px rgba(255, 200, 100, calc(0 + (var(--askrue-corona-glow) * 0.22)));
    transition: box-shadow 0.12s linear;
  }
  .askrue-spectacle-wrap.is-corona-center {
    /* Extra bloom only when intensity ≥ ~0.85 — no hard pulse keyframes. */
    box-shadow:
      0 0 0 1px rgba(var(--askrue-corona-r), var(--askrue-corona-g), var(--askrue-corona-b), 0.88),
      0 0 18px 6px rgba(var(--askrue-corona-r), var(--askrue-corona-g), var(--askrue-corona-b), 0.62),
      0 0 44px 16px rgba(255, 236, 170, 0.5),
      0 0 80px 28px rgba(255, 220, 140, 0.36),
      0 0 120px 42px rgba(255, 200, 100, 0.22);
  }
  /*
   * Pyramid layers (inside .askrue-electrical-stage):
   *   0 = electrical movie / still
   *   1 = © plate (above movie, below pixels)
   *   2 = molecule pixels
   */
  .askrue-pyramid-copy {
    position: absolute;
    right: 8px;
    bottom: 6px;
    left: auto;
    z-index: 1;
    margin: 0;
    padding: 0;
    line-height: 0;
    text-decoration: none;
    pointer-events: auto;
  }
  .askrue-pyramid-copy img {
    display: block;
    width: calc(var(--askrue-pyramid-size) * 0.627);
    height: auto;
    max-width: none;
    pointer-events: none;
    user-select: none;
  }
  .askrue-pyramid-copy:hover {
    opacity: 0.88;
  }
  .askrue-electrical-stage {
    position: relative;
    width: 100%;
    max-width: min(var(--askrue-pyramid-max), var(--askrue-pyramid-size));
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 21px;
    overflow: hidden;
    border: 2px solid rgba(var(--askrue-corona-r), var(--askrue-corona-g), var(--askrue-corona-b), 0.92);
    outline: none;
    background: #050807;
    /* Glow lives on .askrue-spectacle-wrap so overflow:hidden cannot clip it. */
    box-shadow: none;
    transition: border-color 0.2s ease-out;
  }
  /* Ethier-style backing plate behind AskRue logo mark */
  .askrue-logo-plate {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.28s ease;
    background:
      radial-gradient(circle at 50% 46%, #140818 0%, #08040c 42%, #030208 100%);
    overflow: hidden;
  }
  .askrue-logo-plate::before {
    content: "";
    position: absolute;
    inset: -45%;
    background: repeating-conic-gradient(
      from 0deg at 50% 50%,
      rgba(255, 228, 190, 0.07) 0deg 1.4deg,
      transparent 1.4deg 7deg
    );
    opacity: 0.55;
    mix-blend-mode: screen;
  }
  .askrue-logo-plate::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
      radial-gradient(circle at 50% 50%, transparent 52%, rgba(0, 0, 0, 0.55) 100%),
      linear-gradient(145deg, rgba(255, 170, 60, 0.28), rgba(255, 120, 30, 0.08) 35%, transparent 55%),
      linear-gradient(325deg, rgba(255, 150, 50, 0.22), transparent 45%);
    box-shadow:
      inset 0 0 28px 10px rgba(255, 130, 40, 0.35),
      inset 0 0 64px 22px rgba(255, 90, 20, 0.16),
      inset 0 0 0 1px rgba(255, 190, 100, 0.42);
  }
  .askrue-electrical-stage.is-password-way .askrue-logo-plate,
  .askrue-electrical-stage.is-still-fallback .askrue-logo-plate {
    opacity: 1;
  }
  /* Pulse animation retired: toggling it at ~0.9 intensity caused a hard glow jump leaving center. */
  .askrue-electrical-stage .askrue-bg-loop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
  }
  .askrue-electrical-stage .askrue-bg-loop img,
  .askrue-electrical-stage .askrue-login-mark-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
  }
  .askrue-electrical-stage .askrue-bg-still {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 0;
  }
  /* Electrical movie ALWAYS runs — never hide loop for settle */
  .askrue-electrical-stage.is-frozen .askrue-bg-loop { display: block; }
  .askrue-electrical-stage.is-frozen .askrue-bg-still { display: none; }
  .askrue-electrical-stage.is-molecules-locked .askrue-bg-loop { display: block; }
  .askrue-electrical-stage.is-molecules-locked .askrue-bg-still { display: none; }
  /* Password path: pause movie, show AskRue logo mark */
  .askrue-electrical-stage.is-password-way .askrue-bg-loop { display: none !important; }
  .askrue-electrical-stage.is-password-way .askrue-bg-still,
  .askrue-electrical-stage.is-password-way .askrue-login-mark-still {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    background: transparent;
    z-index: 3;
    padding: 8%;
    box-sizing: border-box;
    filter: none;
  }
  .askrue-electrical-stage.is-password-way .askrue-logo-plate {
    opacity: 1;
  }
  .askrue-electrical-stage.is-brand-construct .askrue-logo-plate,
  .askrue-electrical-stage.has-totp-qr .askrue-logo-plate {
    opacity: 0;
  }
  /* Brand construct — white plate + outer quiet-zone border (modules never kiss the gold glow) */
  .askrue-electrical-stage.is-brand-construct,
  .askrue-electrical-stage.is-password-way.is-brand-construct {
    background: #ffffff !important;
    border: 18px solid #ffffff !important;
    outline: 2px solid #000000;
    outline-offset: 0;
    box-sizing: border-box;
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 4px rgba(200, 150, 42, 0.85),
      0 0 28px 8px rgba(200, 150, 42, 0.3);
  }
  .askrue-electrical-stage.is-brand-construct .askrue-bg-loop,
  .askrue-electrical-stage.is-password-way.is-brand-construct .askrue-bg-loop,
  .askrue-electrical-stage.is-brand-construct .askrue-bg-still,
  .askrue-electrical-stage.is-password-way.is-brand-construct .askrue-bg-still {
    display: none !important;
    visibility: hidden !important;
  }
  .askrue-electrical-stage.is-brand-construct .askrue-pyramid-copy {
    display: none !important;
  }
  .askrue-electrical-stage.is-brand-construct .askrue-molecules-canvas {
    /* Keep black modules inside the white quiet zone */
    inset: 0;
    background: #ffffff;
  }
  /* Camera fail → still + locked dots on top */
  .askrue-electrical-stage.is-still-fallback .askrue-bg-loop { display: none !important; }
  .askrue-electrical-stage.is-still-fallback .askrue-bg-still {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    padding: 8%;
    box-sizing: border-box;
    z-index: 3;
    filter: none;
  }
  .askrue-electrical-stage.is-totp-connector:not(.has-totp-qr) .askrue-bg-loop {
    display: none !important;
  }
  .askrue-electrical-stage.is-totp-connector:not(.has-totp-qr) .askrue-bg-still,
  .askrue-electrical-stage.is-totp-connector:not(.has-totp-qr) .askrue-login-mark-still {
    display: block !important;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    padding: 8%;
    box-sizing: border-box;
    z-index: 3;
    filter: none;
  }
  .askrue-electrical-stage.is-totp-connector:not(.has-totp-qr) .askrue-logo-plate {
    opacity: 1;
  }
  .askrue-spectacle-wrap.is-ui-open:not(.is-step2) .askrue-electrical-stage:not(.has-totp-qr):not(.is-brand-construct) .askrue-bg-loop {
    display: none !important;
  }
  .askrue-spectacle-wrap.is-ui-open:not(.is-step2) .askrue-electrical-stage:not(.has-totp-qr):not(.is-brand-construct) .askrue-bg-still,
  .askrue-spectacle-wrap.is-ui-open:not(.is-step2) .askrue-electrical-stage:not(.has-totp-qr):not(.is-brand-construct) .askrue-login-mark-still {
    display: block !important;
    object-fit: contain;
    object-position: center center;
    padding: 8%;
    box-sizing: border-box;
    z-index: 3;
    filter: none;
  }
  .askrue-spectacle-wrap.is-ui-open:not(.is-step2) .askrue-electrical-stage:not(.has-totp-qr) .askrue-logo-plate {
    opacity: 1;
  }
  .askrue-blue-flash-ring {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    border: 3px solid transparent;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
  }
  .askrue-electrical-stage.is-blue-flash .askrue-blue-flash-ring {
    animation: askrueBlueFlashRing 2s ease-out forwards;
  }
  @keyframes askrueBlueFlashRing {
    0% {
      inset: 28%;
      opacity: 1;
      border-color: rgba(40, 140, 255, 0.95);
      box-shadow:
        0 0 0 6px rgba(40, 120, 255, 0.55),
        0 0 40px 16px rgba(40, 160, 255, 0.75),
        inset 0 0 30px rgba(180, 220, 255, 0.45);
    }
    100% {
      inset: -4%;
      opacity: 0;
      border-color: rgba(40, 140, 255, 0.15);
      box-shadow:
        0 0 0 2px rgba(40, 120, 255, 0.15),
        0 0 12px 4px rgba(40, 160, 255, 0.2);
    }
  }

  /* QR handshake plate — under molecules, over movie; stock cameras read it */
  .askrue-pyramid-qr {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.82;
    image-rendering: pixelated;
  }
  .askrue-electrical-stage.has-pyramid-qr .askrue-bg-loop,
  .askrue-electrical-stage.has-pyramid-qr .askrue-bg-still {
    opacity: 0.42;
  }
  /*
   * TOTP connector — authenticator hard limit:
   * opaque black modules + opaque white + quiet-zone border. No art bleed.
   */
  .askrue-electrical-stage.has-totp-qr,
  .askrue-electrical-stage.is-password-way.has-totp-qr,
  .askrue-electrical-stage.is-totp-connector.has-totp-qr {
    background: #ffffff !important;
    /* Quiet zone scales with box so ~150px plates still leave scannable modules */
    border: clamp(8px, 5.5%, 18px) solid #ffffff !important;
    outline: 2px solid #000000;
    outline-offset: 0;
    box-shadow:
      0 0 0 2px #ffffff,
      0 0 0 4px rgba(200, 150, 42, 0.85),
      0 0 28px 8px rgba(200, 150, 42, 0.3);
  }
  .askrue-electrical-stage.has-totp-qr .askrue-pyramid-qr,
  .askrue-electrical-stage.has-totp-qr .askrue-pyramid-qr-img {
    position: absolute !important;
    inset: auto !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    /* Larger plate — Android authenticator cameras need module size */
    width: min(96%, 360px) !important;
    height: min(96%, 360px) !important;
    max-width: 360px !important;
    max-height: 360px !important;
    opacity: 1 !important;
    /* Above molecules (2), copy (1), bg (0) — was 6/7 and still lost on some stacks */
    z-index: 50 !important;
    mix-blend-mode: normal !important;
    filter: none !important;
    background: #ffffff !important;
    image-rendering: pixelated;
    -webkit-backface-visibility: hidden;
    pointer-events: auto !important;
  }
  .askrue-electrical-stage.has-totp-qr .askrue-pyramid-qr-img {
    z-index: 51 !important;
    object-fit: contain;
  }
  .askrue-electrical-stage.has-totp-qr .askrue-pyramid-qr-img[hidden] {
    display: none !important;
  }
  .askrue-spectacle-wrap.is-totp-plate-open {
    --askrue-pyramid-size: min(300px, 86vw) !important;
    --askrue-pyramid-max: min(300px, 86vw) !important;
    z-index: 90 !important; /* above glass docks (8), under body overlay */
  }
  .askrue-electrical-stage.has-totp-qr .askrue-bg-loop,
  .askrue-electrical-stage.has-totp-qr .askrue-bg-still,
  .askrue-electrical-stage.is-password-way.has-totp-qr .askrue-bg-loop,
  .askrue-electrical-stage.is-password-way.has-totp-qr .askrue-bg-still,
  .askrue-electrical-stage.has-totp-qr picture,
  .askrue-electrical-stage.has-totp-qr video,
  .askrue-electrical-stage.has-totp-qr .askrue-login-mark-still {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
  /* Hard kill molecule layer — opacity:0 still painted over QR on some Linux GPUs */
  .askrue-electrical-stage.has-totp-qr .askrue-molecules-canvas,
  .askrue-electrical-stage.is-totp-connector .askrue-molecules-canvas,
  .askrue-spectacle-wrap.is-totp-plate-open .askrue-molecules-canvas {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: 0 !important;
  }
  .askrue-electrical-stage.has-totp-qr .askrue-pyramid-copy {
    display: none !important;
  }

  /* Echo scan target — particle plate + pyramid QR; © plate stays under modules */
  .askrue-electrical-stage.is-echo-scan-target .askrue-pyramid-copy {
    z-index: 0;
  }
  .askrue-electrical-stage.is-echo-scan-target .askrue-molecules-canvas {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
    z-index: 2;
  }
  .askrue-electrical-stage.is-echo-scan-target {
    border-color: rgba(220, 38, 38, 0.88);
    box-shadow:
      0 0 0 1px rgba(220, 38, 38, 0.55),
      0 0 24px 8px rgba(220, 38, 38, 0.28);
  }
  .askrue-electrical-stage.is-echo-scan-target video,
  .askrue-electrical-stage.is-echo-scan-target .askrue-bg-still {
    opacity: 0.35;
  }

  /* Fixed overlay — above coach (87) and everything else on the gate */
  .askrue-totp-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
    background: rgba(4, 8, 6, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .askrue-totp-overlay[hidden] { display: none !important; }
  .askrue-totp-overlay__card {
    width: min(340px, 94vw);
    padding: 18px 16px 14px;
    border-radius: 14px;
    background: #ffffff;
    border: 3px solid #000;
    box-shadow:
      0 0 0 3px rgba(200, 150, 42, 0.9),
      0 24px 60px rgba(0, 0, 0, 0.55);
    text-align: center;
  }
  .askrue-totp-overlay__title {
    margin: 0 0 10px;
    font: 800 0.85rem/1.2 Helvetica, Arial, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #140c04;
  }
  .askrue-totp-overlay__img {
    display: block;
    width: min(260px, 72vw);
    height: auto;
    margin: 0 auto;
    background: #fff;
    image-rendering: pixelated;
  }
  .askrue-totp-overlay__key {
    margin: 10px 0 0;
    padding: 8px;
    border-radius: 8px;
    background: #f4f0e6;
    font: 600 0.78rem/1.35 ui-monospace, Consolas, monospace;
    letter-spacing: 0.06em;
    color: #3a2a08;
    word-break: break-all;
    user-select: all;
    -webkit-user-select: all;
  }
  .askrue-totp-overlay__key[hidden] { display: none !important; }
  .askrue-totp-overlay__hint {
    margin: 10px 0 0;
    font: 500 0.78rem/1.4 Helvetica, Arial, sans-serif;
    color: #333;
  }
  .askrue-totp-overlay__close {
    margin-top: 12px;
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(20, 12, 4, 0.35);
    border-radius: 10px;
    background: #c8962a;
    color: #140c04;
    font: 700 0.85rem Helvetica, Arial, sans-serif;
    cursor: pointer;
  }
  /* Setup QR — docked beside the login cube (JS sets left/top from spectacle rect) */
  .askrue-totp-qr-pin {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 88;
    width: min(200px, 28vw);
    padding: 10px 10px 12px;
    border-radius: 12px;
    background: rgba(8, 12, 11, 0.88);
    border: 1px solid rgba(200, 150, 42, 0.55);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    text-align: center;
    pointer-events: auto;
  }
  .askrue-totp-qr-pin[hidden],
  body.askrue-totp-overlay-open .askrue-totp-qr-pin {
    display: none !important;
  }
  .askrue-totp-qr-pin__label {
    margin: 0 0 6px;
    font: 700 0.62rem/1.2 Helvetica, Arial, sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c8962a;
  }
  .askrue-totp-qr-pin__img {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    border: 2px solid #000;
    image-rendering: pixelated;
  }
  .askrue-totp-qr-pin__key {
    margin: 6px 0 0;
    font: 600 0.58rem/1.35 ui-monospace, Consolas, monospace;
    letter-spacing: 0.05em;
    color: #e8d9ba;
    word-break: break-all;
  }
  .askrue-totp-qr-pin__key[hidden] { display: none !important; }
  .askrue-totp-qr-pin__hint {
    margin: 6px 0 0;
    font: 500 0.58rem/1.35 Helvetica, Arial, sans-serif;
    color: #9ea39f;
  }
  .askrue-phone-enroll-row {
    margin: 0 0 8px;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
  }
  .askrue-phone-enroll-link {
    color: #e8b84a;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.16em;
  }
  .askrue-phone-enroll-link:hover,
  .askrue-phone-enroll-link:focus-visible {
    color: #ffe6a0;
  }
  .askrue-molecules-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    image-rendering: pixelated;
  }
  .askrue-toast-host {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
    max-width: 90%;
  }
  .askrue-wait-toast {
    background: rgba(4, 21, 12, 0.88);
    color: #e8fff0;
    border: 1px solid #32b764;
    padding: 8px 14px;
    font: 600 0.78rem/1.2 system-ui, sans-serif;
    letter-spacing: 0.04em;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.7s ease;
  }
  .askrue-wait-toast.is-fade { opacity: 0; }
  /* cancel-lock lives in glass dock actions (side-by-side with Enter) */

  /* Glass panels dock around the pyramid (edge-aware JS sets askrue-dock-*) */
  .askrue-glass-panel {
    position: absolute;
    z-index: 8;
    width: min(220px, 92%);
    padding: 10px 10px 12px;
    box-sizing: border-box;
    background: rgba(8, 14, 12, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.28);
    text-align: center;
    backdrop-filter: blur(3px);
    pointer-events: auto;
    transition: left 0.25s ease, right 0.25s ease, top 0.25s ease, bottom 0.25s ease, transform 0.25s ease;
  }
  .askrue-glass-panel.askrue-dock-bottom {
    left: 50%; right: auto; top: 100%; bottom: auto;
    transform: translate(-50%, 10px);
  }
  .askrue-glass-panel.askrue-dock-top {
    left: 50%; right: auto; top: auto; bottom: 100%;
    transform: translate(-50%, -10px);
  }
  .askrue-glass-panel.askrue-dock-left {
    left: auto; right: 100%; top: 50%; bottom: auto;
    transform: translate(-10px, -50%);
  }
  .askrue-glass-panel.askrue-dock-right {
    left: 100%; right: auto; top: 50%; bottom: auto;
    transform: translate(10px, -50%);
  }
  .askrue-login-bog {
    width: 168px;
  }
  .askrue-login-bog h1 {
    margin: 0 0 8px;
    font-family: Cinzel, Georgia, serif;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #f6f4ec;
    -webkit-text-stroke: 1.25px #000;
    paint-order: stroke fill;
    text-shadow:
      -1px -1px 0 #000,
      1px -1px 0 #000,
      -1px 1px 0 #000,
      1px 1px 0 #000,
      0 2px 10px rgba(0, 0, 0, 0.75);
  }
  .askrue-login-bog .askrue-user-square {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 0;
    padding: 3px 8px;
    background: rgba(0, 0, 0, 0.45);
    color: #f6f4ec;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    font: 600 0.72rem/1.2 Inter, system-ui, sans-serif;
    text-align: center;
  }
  .askrue-login-bog .askrue-user-square::placeholder { color: #888; }
  .askrue-bog-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: stretch;
    margin-top: 6px;
  }
  .askrue-login-bog .askrue-bog-submit,
  .askrue-login-bog .askrue-bog-cancel {
    margin-top: 0;
    flex: 1 1 0;
    min-width: 0;
    max-width: 72px;
    padding: 4px 6px;
    border-radius: 5px;
    font: 700 0.58rem/1 "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .askrue-login-bog .askrue-bog-submit {
    border: 1px solid rgba(50, 183, 100, 0.45);
    background: rgba(14, 77, 48, 0.5);
    color: rgba(246, 244, 236, 0.95);
  }
  .askrue-login-bog .askrue-bog-submit:hover {
    background: rgba(50, 183, 100, 0.55);
    border-color: rgba(50, 183, 100, 0.7);
    color: #04150c;
  }
  .askrue-login-bog .askrue-bog-cancel {
    border: 1px solid rgba(220, 60, 60, 0.55);
    background: rgba(120, 24, 24, 0.5);
    color: rgba(255, 230, 230, 0.95);
  }
  .askrue-login-bog .askrue-bog-cancel:hover {
    background: rgba(180, 40, 40, 0.6);
    border-color: rgba(255, 80, 80, 0.7);
  }

  /* Idle pong: login hidden until hover on pyramid / box */
  .askrue-spectacle-wrap:not(.is-ui-open):not(.is-step2) .askrue-login-bog {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .askrue-spectacle-wrap.is-ui-open .askrue-login-bog,
  .askrue-spectacle-wrap.is-step2 .askrue-login-bog {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  /* TOTP-only: username on bog, actions hidden. Password step: bog extends with password + NEXT */
  .askrue-spectacle-wrap.is-step2:not(.is-password-way) .askrue-login-bog .askrue-bog-actions {
    display: none;
  }
  .askrue-spectacle-wrap.is-step2 .askrue-login-bog {
    width: min(200px, 92%);
  }
  .askrue-spectacle-wrap.is-step2.is-password-way .askrue-login-bog {
    width: min(228px, 94%);
  }
  .askrue-spectacle-wrap.is-step2.is-password-way .askrue-login-bog .askrue-bog-actions {
    display: flex;
  }
  .askrue-spectacle-wrap.is-step2 .askrue-login-bog .askrue-user-square {
    border-color: rgba(233, 194, 90, 0.55);
    color: #e9c25a;
  }
  .askrue-bog-pass {
    margin-top: 8px;
    text-align: left;
  }
  .askrue-bog-pass[hidden] { display: none !important; }
  .askrue-bog-pass label {
    display: block;
    font-size: 0.62rem;
    color: #9aa39c;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .askrue-bog-pass input {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 8px;
    border-radius: 6px;
    border: 1px solid rgba(233, 194, 90, 0.45);
    background: rgba(0,0,0,0.4);
    color: #f6f4ec;
    font: 600 0.85rem/1.2 Inter, system-ui, sans-serif;
  }
  .askrue-bog-pass .askrue-pass-hint {
    margin: 6px 0 0;
    font-size: 0.58rem;
    color: #b0b8b2;
    line-height: 1.35;
  }
  .askrue-login-bog .askrue-bog-submit {
    border: 1px solid rgba(50, 183, 100, 0.45);
    background: rgba(14, 77, 48, 0.45);
    color: #f6f4ec;
  }
  .askrue-login-bog .askrue-bog-cancel {
    border: 1px solid rgba(220, 60, 60, 0.55);
    background: rgba(120, 24, 24, 0.4);
    color: rgba(255, 230, 230, 0.95);
  }
  .askrue-qualified-user {
    margin: 0 0 6px;
    font-size: 0.68rem;
    color: #e9c25a;
    letter-spacing: 0.04em;
    font-weight: 600;
  }
  .askrue-qualified-user[hidden] { display: none !important; }
  .askrue-under-login {
    display: none;
    width: min(300px, 96%);
  }
  /* Authenticator stack stays quiet until the totp step (not during password) */
  .askrue-spectacle-wrap.is-step2:not(.is-password-way) .askrue-under-login {
    display: block;
  }
  .askrue-pass-qr-link {
    display: block;
    margin: 6px 0 0;
    padding: 0;
    background: none;
    border: none;
    color: rgba(200, 150, 42, 0.75);
    font: 600 0.62rem/1.2 "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: left;
  }
  .askrue-pass-qr-link:hover {
    color: rgba(233, 194, 90, 0.95);
  }
  .askrue-under-login .askrue-under-title {
    margin: 0 0 4px;
    font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
    font-size: 0.82rem;
    color: rgba(246, 244, 236, 0.95);
    font-weight: 800;
    -webkit-text-stroke: 0.8px #000;
    paint-order: stroke fill;
  }
  .askrue-under-login .askrue-totp-help {
    margin: 0 0 8px;
    font-size: 0.58rem;
    color: #b0b8b2;
    line-height: 1.35;
    text-align: left;
  }
  /* In-panel otpauth QR — always visible if pyramid paint flakes (Win/Linux) */
  .askrue-enroll-qr-fallback {
    margin: 0 0 10px;
    padding: 8px 6px 6px;
    border-radius: 10px;
    background: #ffffff;
    border: 2px solid #000;
    box-shadow: 0 0 0 2px rgba(200, 150, 42, 0.75);
  }
  .askrue-enroll-qr-fallback[hidden] { display: none !important; }
  .askrue-enroll-qr-fallback__label {
    margin: 0 0 6px;
    font: 700 0.62rem/1.2 Helvetica, Arial, sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #140c04;
    text-align: center;
  }
  .askrue-enroll-qr-img {
    display: block;
    width: min(220px, 72vw);
    height: auto;
    margin: 0 auto;
    image-rendering: pixelated;
    background: #fff;
  }
  .askrue-enroll-qr-fallback__hint {
    margin: 6px 0 0;
    font-size: 0.58rem;
    color: #333;
    text-align: center;
    line-height: 1.35;
  }
  .askrue-enroll-qr-fallback__hint a { color: #8a5a00; font-weight: 700; }
  #askrue-enroll-pass-row[hidden] { display: none !important; }
  #askrue-enroll-pass-row input {
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.45);
    color: #f6f4ec;
    font-size: 16px;
  }
  .askrue-under-login .askrue-totp-help a {
    color: var(--rz-gold, #C8962A);
  }
  .askrue-under-login .askrue-recovery-hint {
    margin: 0 0 8px;
    font-size: 0.58rem;
    color: #8a8494;
    line-height: 1.35;
    text-align: left;
  }
  .askrue-under-login .askrue-recovery-hint a {
    color: var(--rz-gold, #C8962A);
  }
  .askrue-under-login label {
    display: block;
    font-size: 0.62rem;
    color: #9aa39c;
    margin-bottom: 3px;
    text-align: left;
  }
  .askrue-under-login input {
    width: 100%;
    box-sizing: border-box;
    padding: 7px 8px;
    border-radius: 6px;
    border: 1px solid rgba(233, 194, 90, 0.45);
    background: rgba(0,0,0,0.4);
    color: #f6f4ec;
    font: 600 0.9rem/1.2 ui-monospace, monospace;
    letter-spacing: 0.18em;
    text-align: center;
  }
  .askrue-glass-panel .askrue-bog-actions {
    margin-top: 8px;
  }
  .askrue-glass-panel .askrue-bog-submit,
  .askrue-glass-panel .askrue-bog-cancel,
  .askrue-under-login .askrue-cancel-lock {
    margin-top: 0;
    flex: 1 1 0;
    min-width: 0;
    max-width: 88px;
    padding: 5px 8px;
    border-radius: 5px;
    font: 700 0.62rem/1 "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .askrue-under-login .askrue-bog-submit {
    border: 1px solid rgba(50, 183, 100, 0.45);
    background: rgba(14, 77, 48, 0.45);
    color: #f6f4ec;
  }
  .askrue-under-login .askrue-cancel-lock {
    display: block;
    background: rgba(120, 24, 24, 0.4);
    border: 1px solid rgba(220, 60, 60, 0.5);
    color: rgba(255, 230, 230, 0.95);
  }
  /* Brand mark (3 triangles + dots) — replaces "Try another way" text */
  .askrue-way-mark {
    display: block;
    margin: 10px auto 0;
    padding: 0;
    background: rgba(8, 12, 11, 0.35);
    border: 1px solid rgba(200, 150, 42, 0.35);
    border-radius: 8px;
    cursor: pointer;
    line-height: 0;
  }
  .askrue-way-mark:hover {
    border-color: rgba(233, 194, 90, 0.7);
    box-shadow: 0 0 14px rgba(200, 150, 42, 0.25);
  }
  .askrue-way-mark-canvas {
    display: block;
    width: 84px;
    height: 84px;
    border-radius: 7px;
    image-rendering: pixelated;
  }
  .askrue-scan-totp {
    margin-top: 10px;
    text-align: center;
  }
  .askrue-scan-totp-btn {
    display: block;
    margin: 0 auto;
    padding: 0;
    background: none;
    border: none;
    color: var(--rz-gold, #C8962A);
    font: 700 0.72rem/1.2 "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .askrue-scan-totp-press {
    display: block;
    margin: 2px auto 0;
    padding: 0;
    background: none;
    border: none;
    color: rgba(200, 150, 42, 0.75);
    font-size: 0.58rem;
    text-decoration: underline;
    cursor: pointer;
    font-family: inherit;
  }
  /* Scan TOTP must stay clickable during password split — it unlocks the enroll plate */
  .askrue-spectacle-wrap.is-password-way .askrue-scan-totp {
    opacity: 1;
    pointer-events: auto;
  }

  /* Legacy password cover retired — password is under Login */
  .askrue-password-cover {
    display: none !important;
  }
  .askrue-creds { display: none; }
  .askrue-creds.is-open { display: block; }
  .askrue-highway {
    margin-top: 10px;
    font-size: 0.72rem;
    color: #8a9088;
    text-align: center;
    line-height: 1.4;
  }
  .askrue-highway button {
    background: none;
    border: none;
    color: var(--rz-gold, #C8962A);
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
  }
  .askrue-login-mark-card.is-frozen .askrue-login-mark-video { display: none; }
  .askrue-login-mark-card.is-frozen .askrue-login-mark-still { display: block !important; }
  .askrue-login-mark-video, .askrue-login-mark-still {
    width: 100%; height: 100%; max-width: var(--askrue-pyramid-max);
    object-fit: cover; background: #050807;
  }

  /* —— Dual-dragon coach: logo caption + little-dragon cue —— */
  .askrue-gold-glow {
    color: #ffe6a0 !important;
    text-shadow:
      0 0 6px rgba(255, 230, 160, 0.95),
      0 0 14px rgba(200, 150, 42, 0.75),
      0 0 28px rgba(255, 200, 100, 0.45);
    transition: color 0.25s ease, text-shadow 0.25s ease;
  }

  /* Enter — white word glow when dragon nears the coaching target */
  .askrue-bog-submit.askrue-enter-coach-glow,
  button.askrue-enter-coach-glow {
    color: #ffffff !important;
    text-shadow:
      0 0 4px rgba(255, 255, 255, 0.95),
      0 0 12px rgba(255, 255, 255, 0.7),
      0 0 22px rgba(233, 194, 90, 0.55);
    transition: color 0.25s ease, text-shadow 0.25s ease;
  }

  /* Control under the crystal dragon softens so the guide is readable */
  .askrue-coach-under {
    opacity: 0.42 !important;
    transition: opacity 0.35s ease;
  }

  .askrue-speech {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 82;
    pointer-events: none;
    will-change: transform;
  }
  .askrue-speech--logo {
    /* Stationary logo dragon caption — fixed notification size (does not morph) */
    z-index: 86;
    width: min(300px, calc(100vw - 28px));
    max-width: min(300px, calc(100vw - 28px));
  }
  .askrue-speech--cue {
    /* Little-dragon cue — fixed pill size */
    z-index: 87;
    width: max-content;
    max-width: min(200px, calc(100vw - 20px));
  }
  .askrue-speech-inner {
    position: relative;
    background: rgba(245, 240, 230, 0.96);
    color: #1a1a1a;
    border-radius: 10px;
    padding: 10px 14px 12px;
    box-shadow:
      0 2px 14px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(200, 150, 42, 0.35);
  }
  .askrue-speech--logo .askrue-speech-inner {
    width: 100%;
    box-sizing: border-box;
  }
  .askrue-speech-text {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1.4;
    letter-spacing: 0.01em;
    color: #1a1a1a;
  }
  .askrue-speech--logo .askrue-speech-text {
    /* Keep notification box height stable across captions */
    min-height: 4.2em;
  }
  .askrue-speech-text--cue {
    font-size: 0.8rem;
    text-align: center;
    text-transform: none;
    white-space: nowrap;
  }

  /* Flee to a screen quadrant — plain plate, no chat pointer */
  .askrue-speech--flee .askrue-speech-tail {
    display: none !important;
  }

  /* Chat-bubble pointer (little point) — --askrue-tail-along aims at the speaker */
  .askrue-speech-tail {
    position: absolute;
    left: var(--askrue-tail-along, 50%);
    bottom: -9px;
    width: 0;
    height: 0;
    margin-left: -8px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid rgba(245, 240, 230, 0.96);
    filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.2));
  }
  .askrue-speech-tail--down {
    bottom: -9px;
  }
  .askrue-speech--logo .askrue-speech-tail,
  .askrue-speech--logo.askrue-speech--above .askrue-speech-tail,
  .askrue-speech--cue.askrue-speech--above .askrue-speech-tail {
    /* point down toward the speaker */
    left: var(--askrue-tail-along, 50%);
    right: auto;
    top: auto;
    bottom: -9px;
    margin-left: -8px;
    margin-bottom: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid rgba(245, 240, 230, 0.96);
    border-bottom: none;
  }
  .askrue-speech--logo.askrue-speech--below .askrue-speech-tail {
    /* point up toward the speaker */
    left: var(--askrue-tail-along, 50%);
    right: auto;
    top: -9px;
    bottom: auto;
    margin-left: -8px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid rgba(245, 240, 230, 0.96);
    border-top: none;
  }
  /* Tail points toward dragon when caption sits beside snout */
  .askrue-speech--logo.askrue-speech--side-right .askrue-speech-tail,
  .askrue-speech--cue.askrue-speech--side-right .askrue-speech-tail {
    left: -2px;
    right: auto;
    top: var(--askrue-tail-along, 50%);
    bottom: auto;
    margin-left: 0;
    margin-top: -5px;
    margin-bottom: 0;
    border-left: none;
    border-right: 10px solid rgba(245, 240, 230, 0.96);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
  }
  .askrue-speech--logo.askrue-speech--side-left .askrue-speech-tail,
  .askrue-speech--cue.askrue-speech--side-left .askrue-speech-tail {
    left: auto;
    right: -2px;
    top: var(--askrue-tail-along, 50%);
    bottom: auto;
    margin-left: 0;
    margin-top: -5px;
    margin-bottom: 0;
    border-right: none;
    border-left: 10px solid rgba(245, 240, 230, 0.96);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
  }
  .askrue-speech--cue.askrue-speech--below .askrue-speech-tail {
    left: var(--askrue-tail-along, 50%);
    right: auto;
    top: -9px;
    bottom: auto;
    margin-left: -8px;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid rgba(245, 240, 230, 0.96);
    border-top: none;
  }

  /* Keep logo stack above background art so caption can sit with it */
  .askrue-logo-stack {
    z-index: 2;
  }
  body.askrue-coaching .askrue-logo-stack .askrue-logo-mark {
    opacity: 0.88;
    filter: drop-shadow(0 0 18px rgba(255, 220, 140, 0.45));
  }

  .askrue-lockout-offer {
    margin: 12px auto 0;
    width: min(340px, 92vw);
    padding: 12px 14px;
    text-align: center;
    background: rgba(20, 12, 8, 0.72);
    border: 1px solid rgba(200, 150, 42, 0.4);
    border-radius: 10px;
  }
  .askrue-lockout-offer[hidden] { display: none !important; }
  .askrue-lockout-title {
    margin: 0 0 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--rz-gold, #c8962a);
  }
  .askrue-lockout-copy {
    margin: 0 0 10px;
    font-size: 0.72rem;
    line-height: 1.4;
    color: rgba(230, 220, 200, 0.9);
  }
  .askrue-lockout-status {
    margin: 8px 0 0;
    font-size: 0.7rem;
    color: rgba(180, 200, 170, 0.95);
    min-height: 1em;
  }