/* The guided walkthrough's overlay. Everything is prefixed wt- and hangs off <html>. */
html.wt-leave body { opacity: .25; transition: opacity .14s; }

.wt-start {
  position: fixed; left: 16px; bottom: 16px; z-index: 2147483000; min-height: 44px;
  font: 600 13px/1 var(--display, system-ui, sans-serif); letter-spacing: .02em;
  padding: 0 14px; border: 2px solid var(--lamp, #d9a648); cursor: pointer;
  background: var(--sign, #15181a); color: var(--sign-ink, #eff1ec);
}
.wt-start:hover { background: var(--lamp, #d9a648); color: #16191b; }
.wt-start:focus-visible { outline: 3px solid var(--lamp, #d9a648); outline-offset: 2px; }
html.wt-on .wt-start { display: none; }
@media (max-width: 640px) {
  /* a 44px play button, label kept for screen readers; pages scroll clear of it */
  .wt-start { left: auto; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; padding: 0; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; }
  .wt-start .wt-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body:has(> .wt-start) { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* the spotlight: a lamp-coloured frame, and the dark around it as one very wide outline */
.wt-spot {
  position: fixed; z-index: 2147483001; pointer-events: none; box-sizing: border-box;
  border: 3px solid var(--lamp, #d9a648); outline: 200vmax solid rgba(8, 10, 11, .62);
}
.wt-spot.wt-none { left: 50% !important; top: 50% !important; width: 0 !important; height: 0 !important; border-width: 0; }

.wt-cursor { position: fixed; left: 0; top: 0; z-index: 2147483003; pointer-events: none; width: 36px; height: 36px; }
.wt-cursor svg { display: block; width: 100%; height: 100%; transform-origin: 0 0; transition: transform .12s; }
.wt-cursor.wt-press svg { transform: scale(.82); }

.wt-ripple {
  position: fixed; z-index: 2147483002; pointer-events: none; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border: 3px solid var(--lamp, #d9a648); border-radius: 50%; animation: wt-ripple .45s ease-out forwards;
}
@keyframes wt-ripple { to { transform: scale(4); opacity: 0; } }

.wt-card {
  position: fixed; left: 50%; bottom: 20px; z-index: 2147483004; transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px)); box-sizing: border-box; padding: 16px 18px 14px;
  background: var(--sign, #15181a); color: var(--sign-ink, #eff1ec);
  border: 1px solid var(--sign-dim, #9aa29c); border-top: 4px solid var(--lamp, #d9a648);
  font: 15px/1.5 var(--display, system-ui, sans-serif);
}
.wt-meta { font: 12px/1.2 var(--mono, ui-monospace, monospace); color: var(--sign-dim, #9aa29c); text-transform: uppercase; letter-spacing: .06em; }
.wt-title { margin: 6px 0 4px; font: 700 20px/1.2 var(--display, system-ui, sans-serif); color: var(--sign-ink, #eff1ec); }
.wt-text { margin: 0 0 12px; }
.wt-bar { height: 3px; background: rgba(255, 255, 255, .12); margin-bottom: 12px; }
.wt-bar i { display: block; height: 100%; background: var(--lamp, #d9a648); }
.wt-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.wt-buttons button {
  font: 600 13px/1 var(--display, system-ui, sans-serif); min-height: 44px; padding: 0 14px; cursor: pointer;
  background: transparent; color: var(--sign-ink, #eff1ec); border: 1px solid var(--sign-dim, #9aa29c);
}
.wt-buttons button:hover { border-color: var(--lamp, #d9a648); }
.wt-buttons button:focus-visible { outline: 2px solid var(--lamp, #d9a648); outline-offset: 2px; }
.wt-buttons .wt-next { margin-left: auto; background: var(--lamp, #d9a648); color: #16191b; border-color: var(--lamp, #d9a648); }

@media (prefers-reduced-motion: reduce) {
  html.wt-leave body, .wt-cursor svg { transition: none; }
  .wt-ripple { animation: none; display: none; }
}
