/* BetaSafe content pages (/guide, /releases, site nav), editor learn links, and the first-run tour.
   Everything is prefixed bs- so nothing collides with the editor. Light by default; dark via the OS setting
   or the nav toggle (html[data-site-theme]). The editor itself stays light; only these surfaces theme. */

:root {
    --bs-bg: #fff6fb;
    --bs-surface: #ffffff;
    --bs-surface-2: #fff0f7;
    --bs-text: #2b1f2a;
    --bs-muted: #6b5568;
    --bs-accent: #c2106b;
    --bs-accent-strong: #ff1493;
    --bs-accent-soft: #ffd6ec;
    --bs-border: #f3c6de;
    --bs-shadow: 0 6px 24px rgba(194, 16, 107, 0.10);
    --bs-pill-new-bg: #ff1493;
    --bs-pill-new-fg: #ffffff;
    --bs-pill-free-bg: #e6f7ec;
    --bs-pill-free-fg: #146c35;
    --bs-focus: #8a2be2;
    --bs-radius: 18px;
}

:root[data-site-theme="dark"] {
    --bs-bg: #17101b;
    --bs-surface: #241829;
    --bs-surface-2: #2e1f35;
    --bs-text: #f7eaf2;
    --bs-muted: #cdb6c8;
    --bs-accent: #ff8cc6;
    --bs-accent-strong: #ff4fa8;
    --bs-accent-soft: #4a2440;
    --bs-border: #4a3350;
    --bs-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
    --bs-pill-new-bg: #ff4fa8;
    --bs-pill-new-fg: #1a0d14;
    --bs-pill-free-bg: #183a26;
    --bs-pill-free-fg: #9be7b5;
    --bs-focus: #d6a8ff;
}
/* Dark form controls only on the content pages; the editor keeps its pink theme. */
:root[data-site-theme="dark"] body:has(.bs-site-page) { color-scheme: dark; }

@media (prefers-color-scheme: dark) {
    :root:not([data-site-theme="light"]) {
        --bs-bg: #17101b;
        --bs-surface: #241829;
        --bs-surface-2: #2e1f35;
        --bs-text: #f7eaf2;
        --bs-muted: #cdb6c8;
        --bs-accent: #ff8cc6;
        --bs-accent-strong: #ff4fa8;
        --bs-accent-soft: #4a2440;
        --bs-border: #4a3350;
        --bs-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
        --bs-pill-new-bg: #ff4fa8;
        --bs-pill-new-fg: #1a0d14;
        --bs-pill-free-bg: #183a26;
        --bs-pill-free-fg: #9be7b5;
        --bs-focus: #d6a8ff;
    }
    :root:not([data-site-theme="light"]) body:has(.bs-site-page) { color-scheme: dark; }
}

/* Dark page background only on the content pages (editor untouched). */
:root[data-site-theme="dark"] body:has(.bs-site-page) { background: var(--bs-bg); }
@media (prefers-color-scheme: dark) {
    :root:not([data-site-theme="light"]) body:has(.bs-site-page) { background: var(--bs-bg); }
}

.bs-themed { color: var(--bs-text); }
.bs-themed a { color: var(--bs-accent); }
.bs-themed :focus-visible,
.bs-tour :focus-visible,
.bs-learn-links :focus-visible,
.bs-learn-chip:focus-visible,
.bs-help-learn :focus-visible {
    outline: 3px solid var(--bs-focus);
    outline-offset: 2px;
    border-radius: 10px;
}

/* ---------- Site header / nav ---------- */
.bs-site-header {
    position: relative;
    z-index: 5;
    max-width: 1180px;
    margin: 0.75rem auto 0;
    padding: 0 1rem;
}
.bs-skip-link {
    position: absolute;
    left: 1rem;
    top: 0.25rem;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.6rem 1rem;
    background: var(--bs-surface);
    border-radius: 10px;
    z-index: 10;
    /* Hidden until keyboard focus (clip, not an off-screen offset: the header can sit below an ad banner). */
    clip-path: inset(50%);
    opacity: 0;
    pointer-events: none;
}
.bs-skip-link:focus, .bs-skip-link:focus-visible { clip-path: none; opacity: 1; pointer-events: auto; }
/* Blazor focuses the page h1 after navigation for screen readers; no ring on that non-interactive heading. */
.bs-site-page h1:focus { outline: none; }
.bs-site-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: 999px;
    padding: 0.25rem 0.5rem 0.25rem 0.75rem;
    box-shadow: var(--bs-shadow);
}
.bs-site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    font-weight: 800;
    text-decoration: none;
    color: var(--bs-text) !important;
    margin-right: auto;
}
.bs-site-brand img { border-radius: 8px; }
.bs-site-nav-list {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.bs-site-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    color: var(--bs-text) !important;
}
.bs-site-nav-link:hover { background: var(--bs-surface-2); }
.bs-site-nav-link[aria-current="page"] {
    background: var(--bs-accent-soft);
    color: var(--bs-accent) !important;
}
.bs-theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--bs-border);
    background: var(--bs-surface-2);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}
.bs-theme-icon-dark { display: none; }
:root[data-site-theme="dark"] .bs-theme-icon-dark { display: inline; }
:root[data-site-theme="dark"] .bs-theme-icon-light { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-site-theme="light"]) .bs-theme-icon-dark { display: inline; }
    :root:not([data-site-theme="light"]) .bs-theme-icon-light { display: none; }
}
@media (max-width: 575.98px) {
    .bs-site-nav { border-radius: 22px; padding: 0.25rem 0.4rem; gap: 0.1rem; }
    .bs-site-brand span { display: none; }
    .bs-site-brand { margin-right: 0; padding: 0 0.25rem; min-width: 44px; justify-content: center; }
    .bs-site-nav-list { flex: 1; justify-content: center; gap: 0; }
    .bs-site-nav-link { padding: 0 0.55rem; font-size: 0.95rem; }
}

/* ---------- Page shell ---------- */
.bs-site-page {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 1rem 1rem 3rem;
    overflow-wrap: anywhere;
}
.bs-site-page h1, .bs-site-page h2, .bs-site-page h3, .bs-site-page h4 { color: var(--bs-text); }
.bs-hero { text-align: center; padding: 1.75rem 0.5rem 1.25rem; }
.bs-eyebrow {
    display: inline-block;
    margin: 0 0 0.5rem;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: var(--bs-accent-soft);
    color: var(--bs-accent);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.8rem;
}
.bs-hero h1 { font-size: clamp(1.6rem, 4.2vw, 2.6rem); font-weight: 800; margin: 0 0 0.75rem; line-height: 1.15; }
.bs-free { color: var(--bs-accent-strong); }
.bs-lede { max-width: 720px; margin: 0 auto 1rem; font-size: 1.08rem; color: var(--bs-muted); }
.bs-hero-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.bs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0 1.2rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bs-btn:hover { transform: translateY(-1px); }
.bs-btn-primary { background: var(--bs-accent-strong); color: #fff !important; box-shadow: 0 4px 14px rgba(255, 20, 147, 0.3); }
.bs-btn-secondary { background: var(--bs-surface); color: var(--bs-accent) !important; border-color: var(--bs-accent-strong); }
.bs-btn-ghost { background: transparent; color: var(--bs-text) !important; border-color: var(--bs-border); }
.bs-card {
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    box-shadow: var(--bs-shadow);
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
}
.bs-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    vertical-align: middle;
    white-space: nowrap;
}
.bs-pill-new { background: var(--bs-pill-new-bg); color: var(--bs-pill-new-fg); }
.bs-pill-free { background: var(--bs-pill-free-bg); color: var(--bs-pill-free-fg); }
.bs-anchor {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    margin: -6px 0 -6px -0.4rem;
    text-decoration: none;
    opacity: 0.55;
    font-weight: 700;
}
.bs-anchor:hover, .bs-anchor:focus-visible { opacity: 1; }

/* ---------- Guide ---------- */
.bs-quickstart h2 { font-size: 1.35rem; margin: 0 0 0.75rem; }
.bs-steps {
    list-style: none;
    counter-reset: bs-step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}
.bs-steps li {
    counter-increment: bs-step;
    position: relative;
    padding: 0.9rem 0.9rem 0.9rem 3.2rem;
    border-radius: 14px;
    background: var(--bs-surface-2);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.bs-steps li::before {
    content: counter(bs-step);
    position: absolute;
    left: 0.85rem;
    top: 0.85rem;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bs-accent-strong);
    color: #fff;
    font-weight: 800;
}
.bs-steps span { color: var(--bs-muted); font-size: 0.95rem; }

.bs-guide-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}
.bs-toc {
    position: sticky;
    top: 0.75rem;
    max-height: calc(100vh - 1.5rem);
    overflow: auto;
    background: var(--bs-surface);
    border: 1px solid var(--bs-border);
    border-radius: var(--bs-radius);
    padding: 0.9rem;
    box-shadow: var(--bs-shadow);
}
.bs-filter-label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.bs-filter-input {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    border: 2px solid var(--bs-border);
    background: var(--bs-surface-2);
    color: var(--bs-text);
    padding: 0 0.8rem;
    font-size: 1rem;
}
.bs-filter-input:focus { border-color: var(--bs-accent-strong); outline: none; }
.bs-filter-count { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--bs-muted); }
.bs-toc-details { margin-top: 0.75rem; }
.bs-toc-summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.bs-toc-summary::-webkit-details-marker { display: none; }
.bs-toc-summary::after { content: "▾"; margin-left: auto; color: var(--bs-muted); }
.bs-toc-details:not([open]) .bs-toc-summary::after { content: "▸"; }
.bs-toc-list, .bs-toc-list ul { list-style: none; margin: 0; padding: 0; }
.bs-toc-list ul { padding-left: 0.6rem; margin-bottom: 0.4rem; }
.bs-toc-cat, .bs-toc-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--bs-text) !important;
}
.bs-toc-cat { font-weight: 800; color: var(--bs-accent) !important; }
.bs-toc-link { font-size: 0.93rem; }
.bs-toc-cat:hover, .bs-toc-link:hover { background: var(--bs-surface-2); }

.bs-guide-cat { scroll-margin-top: 1rem; margin-bottom: 1.5rem; }
.bs-guide-cat > h2 { font-size: 1.55rem; font-weight: 800; margin: 0.5rem 0 0.35rem; }
.bs-cat-intro { color: var(--bs-muted); margin-bottom: 0.75rem; }
.bs-entry { scroll-margin-top: 1rem; }
.bs-entry:target { border-color: var(--bs-accent-strong); box-shadow: 0 0 0 3px var(--bs-accent-soft), var(--bs-shadow); }
.bs-entry-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.bs-entry-head h3 { font-size: 1.2rem; font-weight: 800; margin: 0; }
.bs-entry-summary { margin: 0.35rem 0 0.75rem; color: var(--bs-muted); }
.bs-entry-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.bs-entry-body.bs-no-image { grid-template-columns: minmax(0, 1fr); }
.bs-shot {
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--bs-border);
    background: var(--bs-surface-2);
    aspect-ratio: 16 / 10;
}
.bs-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bs-entry-text h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--bs-accent); margin: 0 0 0.35rem; font-weight: 800; }
.bs-howto, .bs-tips { margin: 0 0 0.8rem; padding-left: 1.25rem; }
.bs-howto li, .bs-tips li { margin-bottom: 0.3rem; }
.bs-try { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.bs-empty { text-align: center; }
.bs-link-btn {
    background: none;
    border: 0;
    padding: 0 0.2rem;
    min-height: 44px;
    color: var(--bs-accent);
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}
.bs-guide-end { text-align: center; }

@media (max-width: 991.98px) {
    .bs-guide-layout { grid-template-columns: minmax(0, 1fr); }
    .bs-toc { position: static; max-height: none; }
    .bs-entry-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
    .bs-site-page { padding: 0.5rem 0.65rem 2.5rem; }
    .bs-card { padding: 1rem; border-radius: 16px; }
    .bs-hero { padding: 1.1rem 0.25rem 0.9rem; }
    .bs-hero-actions .bs-btn { flex: 1 1 100%; }
    .bs-toc-link, .bs-toc-cat { min-height: 44px; }
}

/* ---------- Releases ---------- */
.bs-free-summary { text-align: center; background: linear-gradient(120deg, var(--bs-surface) 0%, var(--bs-surface-2) 100%); }
.bs-free-summary h2 { font-size: 1.4rem; font-weight: 800; margin: 0 0 0.4rem; }
.bs-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; list-style: none; padding: 0; margin: 0.75rem 0 1rem; }
.bs-stats li { padding: 0.5rem 1rem; border-radius: 14px; background: var(--bs-surface); border: 1px solid var(--bs-border); color: var(--bs-muted); }
.bs-stats strong { color: var(--bs-accent-strong); font-size: 1.25rem; margin-right: 0.25rem; }
.bs-release-list { list-style: none; margin: 1rem auto 0; padding: 0; max-width: 860px; }
.bs-release { scroll-margin-top: 1rem; }
.bs-release:target { border-color: var(--bs-accent-strong); }
.bs-release-head h2 { font-size: 1.3rem; font-weight: 800; margin: 0; }
.bs-release-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; color: var(--bs-muted); margin: 0.2rem 0 0.6rem; font-size: 0.92rem; }
.bs-release-group h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 800; margin: 0.6rem 0 0.3rem; }
.bs-group-new h3 { color: var(--bs-accent-strong); }
.bs-group-improved h3 { color: var(--bs-focus); }
.bs-group-fixed h3 { color: var(--bs-muted); }
.bs-release-group ul { list-style: none; margin: 0; padding: 0; }
.bs-release-group li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; padding: 0.35rem 0; border-top: 1px dashed var(--bs-border); }
.bs-release-group li:first-child { border-top: 0; }
.bs-release-group li > span:not(.bs-pill) { flex: 1 1 14rem; }
.bs-howto-link { display: inline-flex; align-items: center; min-height: 44px; margin: -0.6rem 0; font-weight: 700; white-space: nowrap; }

/* ---------- Editor learn links (inside the light editor) ---------- */
.bs-learn-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.bs-learn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 44px;
    padding: 0 1rem;
    border-radius: 999px;
    border: 2px solid #ff1493;
    background: #fff;
    color: #c2106b !important;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95rem;
}
.bs-learn-link:hover { background: #fff0f7; }
.bs-learn-links-about { justify-content: flex-start; margin: 1.5rem 0 0.5rem; }
.bs-learn-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    min-height: 44px;
    min-width: 44px;
    padding: 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #c2106b !important;
    text-decoration: none;
    white-space: nowrap;
}
.bs-learn-chip:hover { text-decoration: underline; }
.bs-help-learn { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1rem; margin-top: 0.5rem; }
.bs-help-learn-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.5rem;
    background: none;
    border: 0;
    color: #c2106b !important;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* ---------- First-run tour ---------- */
.bs-tour { position: fixed; inset: 0; z-index: 1060; pointer-events: none; }
.bs-tour-spot {
    position: fixed;
    border-radius: 16px;
    box-shadow: 0 0 0 4px rgba(255, 20, 147, 0.85), 0 0 0 9999px rgba(30, 8, 28, 0.55);
    transition: top 0.35s ease, left 0.35s ease, width 0.35s ease, height 0.35s ease;
    pointer-events: none;
}
.bs-tour-spot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 3px solid #ff8cc6;
    animation: bs-tour-ring 1.6s ease-out infinite;
}
.bs-tour-spot.bs-tour-spot-none { box-shadow: 0 0 0 9999px rgba(30, 8, 28, 0.55); width: 0 !important; height: 0 !important; }
.bs-tour-spot.bs-tour-spot-none::after { display: none; }
@keyframes bs-tour-ring {
    0% { opacity: 0.9; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.06); }
}
.bs-tour-pointer {
    position: fixed;
    width: 34px;
    height: 34px;
    margin: -6px 0 0 -6px;
    pointer-events: none;
    transition: top 0.6s cubic-bezier(.3,1.4,.5,1), left 0.6s cubic-bezier(.3,1.4,.5,1);
    filter: drop-shadow(0 3px 6px rgba(0,0,0,.35));
    z-index: 2;
}
.bs-tour-pointer svg { width: 100%; height: 100%; animation: bs-tour-tap 1.2s ease-in-out infinite; }
.bs-tour-pointer.bs-tour-dragging { transition: none; }
.bs-tour-pointer.bs-tour-dragging svg { animation: none; transform: scale(0.88); }
@keyframes bs-tour-tap {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-3px, -3px) scale(0.9); }
}
.bs-tour-card {
    position: fixed;
    width: min(360px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow: auto;
    pointer-events: auto;
    background: var(--bs-surface);
    color: var(--bs-text);
    border: 2px solid var(--bs-accent-strong);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(60, 0, 40, 0.35);
    padding: 1rem 1.1rem 0.9rem;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    animation: bs-tour-pop 0.32s cubic-bezier(.2,1.3,.4,1);
    transition: top 0.3s ease, left 0.3s ease;
    z-index: 3;
}
@keyframes bs-tour-pop {
    from { opacity: 0; transform: translateY(10px) scale(0.96); }
    to { opacity: 1; transform: none; }
}
.bs-tour-card h2 { font-size: 1.12rem; font-weight: 800; margin: 0 2.25rem 0.35rem 0; color: var(--bs-text); }
.bs-tour-card p { margin: 0 0 0.6rem; font-size: 0.97rem; color: var(--bs-muted); line-height: 1.45; }
.bs-tour-kicker { display: block; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bs-accent-strong); margin-bottom: 0.15rem; }
.bs-tour-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: transparent;
    color: var(--bs-muted);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.bs-tour-close:hover { background: var(--bs-surface-2); color: var(--bs-text); }
.bs-tour-dots { display: flex; gap: 6px; align-items: center; margin: 0.25rem 0 0.7rem; padding: 0; list-style: none; }
.bs-tour-dots li { width: 8px; height: 8px; border-radius: 50%; background: var(--bs-border); transition: width 0.25s ease, background 0.25s ease; }
.bs-tour-dots li.bs-on { width: 22px; border-radius: 8px; background: var(--bs-accent-strong); }
.bs-tour-dots li.bs-done { background: var(--bs-accent); }
.bs-tour-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; }
.bs-tour-actions .bs-tour-spacer { flex: 1; }
.bs-tour-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0 1rem;
    border-radius: 999px;
    border: 2px solid var(--bs-border);
    background: var(--bs-surface);
    color: var(--bs-text);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
}
.bs-tour-btn:hover { border-color: var(--bs-accent-strong); }
.bs-tour-btn-primary { background: var(--bs-accent-strong); border-color: var(--bs-accent-strong); color: #fff !important; }
.bs-tour-btn-primary:hover { filter: brightness(1.05); }
.bs-tour-btn-action { border-color: var(--bs-accent-strong); color: var(--bs-accent) !important; }
.bs-tour-btn-link { border-color: transparent; background: transparent; color: var(--bs-muted); padding: 0 0.6rem; }
.bs-tour-keys { font-size: 0.78rem; color: var(--bs-muted); margin: 0.55rem 0 0; }
.bs-tour-invite { bottom: 18px; left: 18px; }
.bs-tour-invite .bs-tour-sparkle { font-size: 1.6rem; float: left; margin: 0.1rem 0.6rem 0 0; }
.bs-tour-finish, .bs-tour-beer { text-align: center; }
.bs-tour-finish h2, .bs-tour-beer h2 { margin-right: 0; margin-left: 0; }
.bs-tour-finish .bs-tour-actions, .bs-tour-beer .bs-tour-actions { justify-content: center; }
.bs-tour-beer p strong { color: var(--bs-text); }
.bs-tour-beer-art { width: 120px; height: 120px; margin: 0.1rem auto 0.4rem; display: block; }
.bs-tour-beer-art .bs-mug { transform-origin: 60px 104px; animation: bs-mug-clink 3.2s ease-in-out infinite; }
.bs-tour-beer-art .bs-bubble { animation: bs-bubble-rise 2.4s ease-in infinite; opacity: 0; }
.bs-tour-beer-art .bs-bubble:nth-of-type(2) { animation-delay: 0.6s; }
.bs-tour-beer-art .bs-bubble:nth-of-type(3) { animation-delay: 1.2s; }
.bs-tour-beer-art .bs-bubble:nth-of-type(4) { animation-delay: 1.8s; }
.bs-tour-beer-art .bs-foam { animation: bs-foam 2.4s ease-in-out infinite; transform-origin: 50px 40px; }
.bs-tour-beer-art .bs-heart { animation: bs-heart 2.4s ease-in-out infinite; transform-origin: 98px 26px; }
@keyframes bs-mug-clink {
    0%, 70%, 100% { transform: rotate(0deg); }
    78% { transform: rotate(-9deg); }
    86% { transform: rotate(4deg); }
    93% { transform: rotate(-2deg); }
}
@keyframes bs-bubble-rise {
    0% { opacity: 0; transform: translateY(0); }
    20% { opacity: 0.9; }
    100% { opacity: 0; transform: translateY(-34px); }
}
@keyframes bs-foam {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.08); }
}
@keyframes bs-heart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.18); }
}
.bs-tour-beer-free { display: inline-block; margin-bottom: 0.4rem; }
.bs-tour-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.bs-tour-confetti i {
    position: absolute;
    top: -14px;
    width: 9px;
    height: 14px;
    border-radius: 2px;
    animation: bs-confetti-fall linear forwards;
}
@keyframes bs-confetti-fall {
    to { transform: translate3d(var(--dx, 0), 105vh, 0) rotate(var(--rot, 540deg)); opacity: 0.9; }
}
.bs-tour-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (max-width: 575.98px) {
    .bs-tour-card { width: calc(100vw - 20px); left: 10px !important; padding: 0.9rem 0.9rem 0.8rem; }
    .bs-tour-invite { bottom: 10px; }
    .bs-tour-actions .bs-tour-btn { flex: 1 1 auto; }
    .bs-tour-actions .bs-tour-spacer { display: none; }
    .bs-tour-keys { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .bs-btn, .bs-tour-spot, .bs-tour-pointer, .bs-tour-card { transition: none !important; }
    .bs-tour-card, .bs-tour-spot::after, .bs-tour-pointer svg,
    .bs-tour-beer-art .bs-mug, .bs-tour-beer-art .bs-bubble, .bs-tour-beer-art .bs-foam, .bs-tour-beer-art .bs-heart { animation: none !important; }
    .bs-tour-beer-art .bs-bubble { opacity: 0.7; }
    .bs-tour-confetti { display: none; }
}
