/* Wizbang Sites: Wizzer, the AI guide (guide.js). Uses the homepage's tokens (home.css): navy, orange, sun. */
html[data-guide="on"] .wf-hi { display: none; }   /* Wizzer's hello takes the quiz card's place */
.wg-lock, .wg-lock body { overflow: hidden; }

/* ---------- the button */
.wg-btn { position: fixed; right: 20px; bottom: 20px; z-index: 62; display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .14); background: var(--navy, #0E1430); color: #fff; cursor: pointer; font: 600 15px var(--body);
  box-shadow: 0 18px 40px -16px rgba(14, 20, 48, .7), 0 2px 6px rgba(14, 20, 48, .2); transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s; }
.wg-btn:hover { transform: translateY(-2px); box-shadow: 0 22px 48px -16px rgba(14, 20, 48, .8); }
.wg-btn .wg-face { width: 52px; height: 52px; }
.wg-btn-l { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.wg-btn-l b { font: 700 16px var(--display); letter-spacing: -0.01em; }
.wg-btn-l small { font: 500 12.5px var(--body); color: rgba(255, 255, 255, .62); }
.wg-btn.open { opacity: 0; pointer-events: none; transform: scale(.9); }
.wg-face { display: block; flex: none; filter: drop-shadow(0 0 0 #fff); }
.wg-face.bob { animation: wg-bob 4.5s ease-in-out infinite; transform-origin: 50% 60%; }
.wg-face.tiny { width: 30px; height: 30px; }
@keyframes wg-bob { 0%, 100% { transform: rotate(0) translateY(0); } 45% { transform: rotate(10deg) translateY(-2px); } 55% { transform: rotate(10deg) translateY(-2px); } }

/* ---------- hello bubble */
.wg-peek { position: fixed; right: 20px; bottom: 96px; z-index: 61; width: min(320px, calc(100% - 40px)); padding: 16px 18px 14px; border-radius: 20px 20px 6px 20px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(14px) scale(.97); transform-origin: 100% 100%; opacity: 0;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .25s ease; }
.wg-peek.on { transform: none; opacity: 1; }
.wg-peek p { font-size: 16px; line-height: 1.45; padding-right: 22px; }
.wg-peek-x { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--paper-2); color: var(--ink-2); cursor: pointer; }
.wg-peek .wg-chips { margin: 12px 0 0; }

/* ---------- the panel */
.wg-panel { position: fixed; right: 20px; bottom: 20px; z-index: 63; width: min(400px, calc(100% - 40px)); height: min(640px, calc(100dvh - 40px)); display: flex; flex-direction: column;
  border-radius: 24px; overflow: hidden; background: var(--paper, #FBF8F3); color: var(--ink); border: 1px solid rgba(14, 20, 48, .1);
  box-shadow: 0 40px 90px -30px rgba(14, 20, 48, .6), 0 4px 14px rgba(14, 20, 48, .12); animation: wg-up .32s cubic-bezier(.2, .8, .2, 1) both; transform-origin: 100% 100%; }
.wg-panel[hidden] { display: none; }
@keyframes wg-up { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.wg-head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: linear-gradient(160deg, #1A2456, #0E1430); color: #fff; }
.wg-head .wg-face { width: 46px; height: 46px; }
.wg-who { flex: 1; display: flex; flex-direction: column; line-height: 1.2; }
.wg-who b { font: 700 18px var(--display); letter-spacing: -0.01em; }
.wg-who span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.wg-dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 3px rgba(61, 220, 151, .2); }
.wg-x { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.wg-x:hover { background: rgba(255, 255, 255, .16); }
.wg-list { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.wg-msg { display: flex; gap: 8px; align-items: flex-end; max-width: 92%; }
.wg-msg.me { align-self: flex-end; }
.wg-msg.new { animation: wg-pop .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes wg-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wg-bub { padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: #fff; border: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; display: flex; flex-direction: column; gap: 8px; }
.wg-msg.me .wg-bub { border-radius: 18px 18px 6px 18px; background: var(--navy, #0E1430); border-color: transparent; color: #fff; }
.wg-typing .wg-bub { flex-direction: row; gap: 5px; padding: 14px 16px; }
.wg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: wg-dot 1.1s infinite ease-in-out; }
.wg-typing i:nth-child(2) { animation-delay: .15s; } .wg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes wg-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.wg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 4px 38px; }
.wg-chip { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); font: 600 14px var(--body); cursor: pointer; transition: border-color .15s, background .15s; }
.wg-chip:hover { border-color: var(--go); background: #FFF4EE; }
.wg-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px 6px; border-top: 1px solid var(--line); background: #fff; }
.wg-in { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 11px 14px; border-radius: 22px; border: 1.5px solid var(--line-2); font: 16px/1.4 var(--body); color: var(--ink); background: var(--paper); }
.wg-in:focus { outline: none; border-color: var(--go); }
.wg-send { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--go); color: #fff; cursor: pointer; }
.wg-send:disabled { opacity: .5; cursor: default; }
.wg-fine { padding: 0 14px 10px; background: #fff; font-size: 12px; color: var(--ink-3); text-align: center; }

/* cards in the chat */
.wg-card { margin-left: 38px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.wg-kind { overflow: hidden; animation: wg-pop .35s .05s cubic-bezier(.2, .8, .2, 1) both; }
.wg-shot { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--paper-2); overflow: hidden; }
.wg-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.wg-shot:hover img { transform: scale(1.03); }
.wg-shot span { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(14, 20, 48, .82); color: #fff; font: 600 13px var(--body); }
.wg-kind-c { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.wg-kind-c b { font: 700 17px var(--display); letter-spacing: -0.01em; }
.wg-kind-c p { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.wg-kind-c small { font: 600 13.5px var(--body); color: var(--ink); }
.wg-kind-a { display: flex; gap: 8px; margin-top: 8px; }
.wg-kind-a .btn { flex: 1; min-height: 40px; padding: 8px 12px; font-size: 14.5px; }
.wg-quiz { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line-2); cursor: pointer; text-align: left; font: inherit; }
.wg-quiz:hover { border-color: var(--go); }
.wg-quiz > svg:first-child { color: var(--go); }
.wg-quiz span { flex: 1; display: flex; flex-direction: column; }
.wg-quiz b { font: 700 15.5px var(--display); }
.wg-quiz small { font-size: 13px; color: var(--ink-3); }
.wg-mail { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.wg-mail b { font: 700 15.5px var(--display); }
.wg-mail-row { display: flex; gap: 8px; }
.wg-mail input[type=email], .wg-mail select { flex: 1; min-width: 0; min-height: 42px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid var(--line-2); font: 15px var(--body); color: var(--ink); background: #fff; }
.wg-mail .btn { min-height: 42px; padding: 8px 14px; font-size: 14.5px; }
.wg-check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.wg-err { font-size: 14px; color: var(--taken, #A4321B); }
.wg-err:empty { display: none; }
.wg-sent { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; color: var(--open, #157A4E); }

/* ---------- the exit offer */
.wg-exit { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 20px 0; border: 0; background: transparent; overflow-y: auto; display: flex; }
.wg-exit:not([open]) { display: none; }
.wg-exit::backdrop { background: rgba(8, 11, 28, .72); backdrop-filter: blur(4px); }
.wg-exit[open] .wg-ex-card { animation: wg-up .4s cubic-bezier(.2, .8, .2, 1) both; }
.wg-ex-card { position: relative; width: min(640px, 100% - 24px); margin: auto; display: grid; grid-template-columns: 200px 1fr; gap: 10px 24px; align-items: center;
  padding: 26px 30px 26px 18px; border-radius: 28px; background: linear-gradient(160deg, #1A2456 0%, #111841 60%, #0C1233 100%); color: #fff;
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .7); }
.wg-ex-pose { width: 100%; height: auto; filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 18px 30px rgba(255, 90, 31, .35)); }
.wg-ex-copy { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.wg-ex-k { display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px var(--body); color: rgba(255, 255, 255, .65); }
.wg-ex-copy h2 { font: 700 clamp(24px, 4vw, 30px)/1.15 var(--display); letter-spacing: -0.02em; color: #fff; }
.wg-ex-p { font-size: 16.5px; line-height: 1.5; color: rgba(255, 255, 255, .8); }
.wg-ex-body { display: contents; }
.wg-ex-copy .btn-big { min-height: 54px; padding: 14px 26px; font-size: 17px; }
.wg-no { border: 0; background: none; color: rgba(255, 255, 255, .6); font: 500 14.5px var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px 0; }
.wg-no:hover { color: #fff; }
.wg-code { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px; border-radius: 18px; border: 2px dashed rgba(255, 201, 60, .6); background: rgba(255, 201, 60, .08); }
.wg-code small { font-size: 13.5px; color: rgba(255, 255, 255, .75); }
.wg-code b { font: 800 30px var(--display); letter-spacing: .06em; color: var(--sun); user-select: all; }
.wg-code .wg-left { font: 600 14px var(--body); color: #fff; font-variant-numeric: tabular-nums; }
.wg-ex-fine { font-size: 13px; color: rgba(255, 255, 255, .55); }
.wg-exit .wg-mail { margin: 0; width: 100%; }
.wg-exit .wg-err { color: #FFB49A; }
.wg-codebar { position: fixed; left: 20px; bottom: 24px; z-index: 59; padding: 8px 16px; border-radius: 999px; background: var(--navy, #0E1430); color: #fff;
  font: 500 14px var(--body); box-shadow: var(--shadow); white-space: nowrap; }
.wg-codebar b { color: var(--sun); letter-spacing: .04em; }
.wg-codebar .wg-left { font-variant-numeric: tabular-nums; }

@media (max-width: 600px) {
  .wg-btn { right: 14px; bottom: 14px; padding: 4px; }
  .wg-btn .wg-face { width: 54px; height: 54px; }
  .wg-btn-l { display: none; }
  .wg-peek { right: 14px; bottom: 84px; width: calc(100% - 28px); }
  .wg-panel { inset: 0; width: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .wg-ex-card { grid-template-columns: 1fr; padding: 22px 20px 24px; text-align: left; }
  .wg-ex-pose { width: 130px; margin: -6px auto 0; }
  .wg-codebar { left: 14px; bottom: 24px; max-width: calc(100% - 100px); white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .wg-panel, .wg-msg.new, .wg-kind, .wg-exit[open] .wg-ex-card { animation: none; }
  .wg-peek, .wg-btn { transition: none; }
}
.wg-fine a { color: inherit; }
