/* Nox & Vire — Tavern assistant widget styles.
 * Dark-tavern theme, bottom-left so it never collides with the feedback
 * widget (bottom-right). Hidden entirely in fullscreen (:fullscreen rule +
 * fullscreenchange JS in nox-vire.js). */
:fullscreen .nxv-root { display: none !important; }
:-webkit-full-screen .nxv-root { display: none !important; }

.nxv-root { position: fixed; left: 16px; bottom: 16px; z-index: 99990;
  font-family: Georgia, "Times New Roman", serif; }
.nxv-root.gone { display: none; }
/* Stack coordination (Dec 3, 2026): the badge's bottom-left perch
   predates the full-width radio bar and overlapped the bar's left
   controls. With the bar on the page the badge and its panel ride
   above it; while the consent banner is open (site.js publishes
   --consent-h) they park above the banner instead. */
body.has-radio .nxv-root { bottom: 77px; }
body.has-radio .nxv-panel { bottom: 158px; }
body.consent-open .nxv-root { bottom: calc(var(--consent-h, 0px) + 16px); }
body.consent-open .nxv-panel { bottom: calc(var(--consent-h, 0px) + 96px); }

/* Launcher: stacked raven + dove avatars */
.nxv-launcher { position: relative; width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid #c9a227; background: #14100a; cursor: pointer; padding: 0;
  box-shadow: 0 4px 18px rgba(0,0,0,.6); transition: transform .15s; }
.nxv-launcher:hover { transform: scale(1.08); }
.nxv-launcher img { position: absolute; top: 2px; left: 2px; width: 56px; height: 56px;
  border-radius: 50%; object-fit: cover; }
.nxv-launcher .nxv-vire { left: auto; right: 2px; width: 34px; height: 34px;
  top: auto; bottom: 0; border: 2px solid #14100a; }

/* Panel */
.nxv-panel { display: none; position: fixed; left: 16px; bottom: 96px; z-index: 99991;
  width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 130px);
  background: #14100a; border: 1px solid #c9a227; border-radius: 12px; color: #cbbd97;
  box-shadow: 0 10px 34px rgba(0,0,0,.75); flex-direction: column; overflow: hidden; }
.nxv-panel.open { display: flex; }

.nxv-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px;
  border-bottom: 1px solid #4a3a1c; background: #1e1608; }
.nxv-headface { width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 1px solid #c9a227; }
.nxv-headface + .nxv-headface { margin-left: -12px; }
.nxv-headtxt { flex: 1; margin-left: 6px; line-height: 1.25; }
.nxv-headtxt strong { color: #e8c96a; font-size: .95rem; letter-spacing: .02em; }
.nxv-disc { display: block; font-size: .72rem; color: #8d7a52; font-style: italic; }
.nxv-x { background: none; border: none; color: #8d7a52; font-size: 1.3rem;
  cursor: pointer; line-height: 1; padding: 2px 6px; }
.nxv-x:hover { color: #e8c96a; }

.nxv-msgs { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex;
  flex-direction: column; gap: 10px; }
.nxv-msg { display: flex; gap: 8px; align-items: flex-start; }
.nxv-msg.nxv-user { justify-content: flex-end; }
.nxv-face { width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  border: 1px solid #4a3a1c; flex-shrink: 0; }
.nxv-bubble { background: #1e1608; border: 1px solid #4a3a1c; border-radius: 10px;
  padding: 8px 10px; font-size: .88rem; line-height: 1.45; max-width: 85%; color: #e8ddc0; }
.nxv-msg.nxv-user .nxv-bubble { background: #2a1f0c; border-color: #c9a227; }
.nxv-links { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.nxv-links a { color: #e8c96a; font-size: .8rem; text-decoration: none;
  border-bottom: 1px dotted #c9a227; }
.nxv-links a:hover { color: #fff; }

.nxv-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px;
  border-top: 1px solid #2a2010; }
.nxv-chip { flex-shrink: 0; background: #0d0a06; border: 1px solid #4a3a1c; color: #b09a6a;
  border-radius: 14px; padding: 5px 10px; font-size: .76rem; cursor: pointer;
  font-family: inherit; white-space: nowrap; }
.nxv-chip:hover { border-color: #c9a227; color: #e8c96a; }

.nxv-form { display: flex; gap: 8px; padding: 8px 12px 4px; }
.nxv-input { flex: 1; background: #0d0a06; border: 1px solid #4a3a1c; border-radius: 8px;
  color: #e8ddc0; padding: 9px 10px; font-size: .9rem; font-family: inherit; }
.nxv-input:focus { outline: none; border-color: #c9a227; }
.nxv-send { background: #c9a227; border: none; border-radius: 8px; color: #14100a;
  font-weight: bold; padding: 0 14px; font-size: .9rem; cursor: pointer; font-family: inherit; }
.nxv-send:hover { background: #e8b040; }

.nxv-foot { font-size: .68rem; color: #8d7a52; padding: 6px 12px 10px; text-align: center; }
.nxv-goodbye { background: none; border: none; color: #8d7a52; font-size: .68rem;
  cursor: pointer; text-decoration: underline; font-family: inherit; padding: 0; }
.nxv-goodbye:hover { color: #b09a6a; }

@media (max-width: 480px) {
  .nxv-launcher { width: 56px; height: 56px; }
  .nxv-launcher img { width: 48px; height: 48px; }
  .nxv-panel { bottom: 88px; height: 420px; }
}

/* thinking beat (Oct 17 2026) */
.nxv-typing .nxv-bubble { opacity: .65; letter-spacing: .25em; animation: nxvPulse 1s ease-in-out infinite; }
@keyframes nxvPulse { 0%, 100% { opacity: .4; } 50% { opacity: .8; } }
@media (prefers-reduced-motion: reduce) { .nxv-typing .nxv-bubble { animation: none; } }

/* ═══ OVERHAUL (Oct 17 2026): Nox-Vire ═══ */
@keyframes nxv-ring { 0%,100% { box-shadow: 0 6px 22px rgba(0,0,0,.6), 0 0 0 2px rgba(201,162,39,.55), 0 0 14px rgba(201,162,39,.3); } 50% { box-shadow: 0 6px 22px rgba(0,0,0,.6), 0 0 0 3px rgba(255,215,106,.85), 0 0 26px rgba(255,215,106,.5); } }
.nxv-launcher { animation: nxv-ring 3.2s ease-in-out infinite; transition: transform .18s ease; background: linear-gradient(160deg, #2b2140, #120c22); }
.nxv-panel { background: linear-gradient(168deg, rgba(34,25,56,.97), rgba(10,7,20,.98)); border: 1px solid rgba(201,162,39,.6); box-shadow: 0 26px 64px rgba(0,0,0,.75), 0 0 30px rgba(122,92,255,.14), inset 0 1px 0 rgba(255,230,170,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nxv-panel.open { animation: nxv-pop .38s cubic-bezier(.22,1,.36,1) both; }
@keyframes nxv-pop { 0% { opacity: 0; transform: translateY(14px) scale(.97); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
.nxv-head { background: linear-gradient(180deg, rgba(201,162,39,.16), rgba(201,162,39,.03)); border-bottom: 1px solid rgba(201,162,39,.35); }
.nxv-headface { box-shadow: 0 0 0 2px rgba(201,162,39,.55), 0 3px 8px rgba(0,0,0,.5); }
.nxv-msg { animation: nxv-msg-in .35s cubic-bezier(.22,1,.36,1) both; }
@keyframes nxv-msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.nxv-bubble { background: linear-gradient(165deg, #241a3e, #17102a); border-color: rgba(201,162,39,.4); box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.nxv-msg.nxv-user .nxv-bubble { background: linear-gradient(165deg, #3a2a10, #241a08); }
.nxv-typing .nxv-bubble { animation: nxv-typing-pulse 0.9s ease-in-out infinite; }
@keyframes nxv-typing-pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.nxv-chip { transition: transform .15s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease; background: linear-gradient(165deg, rgba(40,30,62,.9), rgba(16,11,28,.95)); }
.nxv-chip:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.45), 0 0 10px rgba(201,162,39,.25); }
.nxv-input { transition: border-color .2s ease, box-shadow .2s ease; }
.nxv-input:focus { border-color: #ffd76a; box-shadow: 0 0 0 2px rgba(255,215,106,.3); outline: none; }
.nxv-face { box-shadow: 0 0 0 1px rgba(201,162,39,.5); }
@media (prefers-reduced-motion: reduce) { .nxv-launcher, .nxv-panel.open, .nxv-msg, .nxv-typing .nxv-bubble { animation: none; } }
