/* Warstwa wersji demonstracyjnej: pasek, powitanie, wycieczka, okno potwierdzenia. */
:root {
    --rodm-demo-surface: #ffffff;
    --rodm-demo-text: #1c1917;
    --rodm-demo-muted: #57534e;
    --rodm-demo-border: #e7e5e4;
    --rodm-demo-accent: #3f6212;
    --rodm-demo-accent-text: #ffffff;
    --rodm-demo-accent-soft: #ecfccb;
    --rodm-demo-backdrop: rgb(28 25 23 / 0.5);
}

.dark {
    --rodm-demo-surface: #292524;
    --rodm-demo-text: #fafaf9;
    --rodm-demo-muted: #d6d3d1;
    --rodm-demo-border: #44403c;
    --rodm-demo-accent: #a3e635;
    --rodm-demo-accent-text: #1a2e05;
    --rodm-demo-accent-soft: #365314;
}

.rodm-demo-bar {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 4px;
    max-width: calc(100vw - 32px);
    padding: 6px 6px 6px 16px;
    border: 1px solid var(--rodm-demo-border);
    border-radius: 999px;
    background: var(--rodm-demo-surface);
    color: var(--rodm-demo-text);
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
    font-size: 13px;
    line-height: 1.3;
}

.rodm-demo-bar-label {
    margin-right: 8px;
    color: var(--rodm-demo-muted);
}

.rodm-demo-bar-label strong {
    margin-right: 4px;
    color: var(--rodm-demo-text);
}

.rodm-demo-bar button {
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 999px;
    color: var(--rodm-demo-text);
    font-weight: 600;
    white-space: nowrap;
}

.rodm-demo-bar button:hover {
    background: var(--rodm-demo-accent-soft);
}

@media (max-width: 640px) {
    .rodm-demo-bar-label {
        display: none;
    }

    .rodm-demo-bar {
        padding-left: 6px;
    }
}

.rodm-demo-dialog {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 16px;
    background: var(--rodm-demo-backdrop);
}

.rodm-demo-dialog-card,
.rodm-tour-card {
    width: min(420px, calc(100vw - 32px));
    padding: 20px;
    border-radius: 12px;
    background: var(--rodm-demo-surface);
    color: var(--rodm-demo-text);
    box-shadow: 0 20px 48px rgb(0 0 0 / 0.25);
}

.rodm-demo-dialog-card h2,
.rodm-tour-card h2 {
    margin-bottom: 6px;
    font-size: 17px;
    font-weight: 600;
}

.rodm-demo-dialog-card p,
.rodm-tour-card p {
    color: var(--rodm-demo-muted);
    font-size: 14px;
    line-height: 1.5;
}

.rodm-demo-welcome {
    width: min(480px, calc(100vw - 32px));
    padding: 24px;
}

.rodm-demo-welcome h2 {
    font-size: 20px;
}

.rodm-demo-dialog-actions,
.rodm-tour-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.rodm-tour-progress {
    margin-bottom: 4px;
    color: var(--rodm-demo-accent) !important;
    font-size: 12px !important;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.rodm-tour-primary,
.rodm-tour-secondary {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.rodm-tour-primary {
    background: var(--rodm-demo-accent);
    color: var(--rodm-demo-accent-text);
}

.rodm-tour-secondary {
    border: 1px solid var(--rodm-demo-border);
    color: var(--rodm-demo-text);
}

.rodm-tour-skip {
    margin-right: auto;
    color: var(--rodm-demo-muted);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.rodm-tour {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
}

.rodm-tour-spotlight {
    position: fixed;
    border-radius: 10px;
    box-shadow: 0 0 0 3px var(--rodm-demo-accent);
    transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.rodm-tour-backdrop {
    position: fixed;
    inset: 0;
    background: var(--rodm-demo-backdrop);
}

.rodm-tour-waiting .rodm-tour-spotlight {
    animation: rodm-tour-pulse 1.6s ease-in-out infinite;
}

@keyframes rodm-tour-pulse {
    50% {
        box-shadow: 0 0 0 6px var(--rodm-demo-accent);
    }
}

.rodm-tour-card {
    position: fixed;
    pointer-events: auto;
}

.rodm-tour-card-centered {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
}

.fi-no {
    z-index: 55;
}

.rodm-demo-new-row {
    animation: rodm-demo-highlight 2.4s ease-out;
}

@keyframes rodm-demo-highlight {
    from {
        background: var(--rodm-demo-accent-soft);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rodm-tour-spotlight,
    .rodm-tour-waiting .rodm-tour-spotlight,
    .rodm-demo-new-row {
        transition: none;
        animation: none;
    }
}
