/* Foundry guided tour (tour.js): terms acceptance, then a spotlight walk through the interface. */
.bft-backdrop { position: fixed; inset: 0; z-index: 2000; background: rgba(6, 9, 18, 0.72); }
.bft-backdrop.is-spot { background: transparent; }
.bft-spot {
  position: absolute; z-index: 2001; border-radius: 10px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(6, 9, 18, 0.72), 0 0 0 2px var(--coral), 0 0 24px rgba(240, 153, 123, 0.35);
  transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
}
.bft-card {
  position: fixed; z-index: 2002; width: min(440px, calc(100vw - 32px));
  background: #121A2B; color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(240, 153, 123, 0.45); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 22px 22px 18px; font-family: 'Ubuntu', -apple-system, 'Segoe UI', sans-serif;
  display: grid; gap: 12px;
}
.bft-card.is-center { top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; }
.bft-card:focus { outline: none; }
/* The tour lives on <body>, outside the views, so it brings its own box model */
.bft-backdrop, .bft-spot, .bft-card, .bft-card * { box-sizing: border-box; }
.bft-step { font-family: 'Ubuntu Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--coral); }
.bft-card h2 { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.3; color: #FFFFFF; }
.bft-card p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }
.bft-card a { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }
.bft-terms { border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; padding: 12px 14px; background: rgba(255, 255, 255, 0.04); }
.bft-terms p { font-size: 13px; }
.bft-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-top: 4px; }
.bft-actions .bft-group { display: flex; flex-wrap: wrap; gap: 8px; }
.bft-btn {
  font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; border-radius: 8px; padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22); background: transparent; color: #FFFFFF;
}
.bft-btn:hover { border-color: rgba(255, 255, 255, 0.5); }
.bft-btn.primary { background: var(--coral); border-color: var(--coral); color: #2A1208; }
.bft-btn.primary:hover { background: #F4AE95; border-color: #F4AE95; }
.bft-btn:focus-visible, .bft-card a:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.bft-link { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.bft-dots { display: flex; gap: 5px; }
.bft-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.bft-dots i.on { background: var(--coral); }
.tour-btn {
  font: inherit; font-size: 12px; cursor: pointer; border-radius: 6px; padding: 6px 10px;
  border: 1px solid rgba(240, 153, 123, 0.5); background: transparent; color: var(--coral);
}
.tour-btn:hover { background: rgba(240, 153, 123, 0.1); }
.tour-btn:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; }
.pilot-link { font-size: 12px; color: var(--coral); white-space: nowrap; }
@media (max-width: 640px) {
  .bft-card:not(.is-center) { left: 16px !important; right: 16px; top: auto !important; bottom: 16px; width: auto; }
}
@media (prefers-reduced-motion: reduce) { .bft-spot { transition: none; } }
