/* PDR Trainer page background — option A: night road.
   Restore the plain navy background by changing --page-backdrop to none. */
:root {
    --page-backdrop: linear-gradient(rgba(8, 15, 29, 0.50), rgba(8, 15, 29, 0.64)), url("images/night-road-bg.jpg");
}
html {
    min-height: 100%;
    background: #101827;
}
body {
    position: relative;
    isolation: isolate;
    background: transparent;
}
body::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: 0;
    background-color: var(--site-bg, #0b1220);
    background-image: var(--page-backdrop);
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
}
/* Keep rule cards readable while letting the road show through softly. */
.hero {
    background-image: linear-gradient(135deg, rgba(23, 37, 59, 0.86), rgba(18, 29, 48, 0.86));
    backdrop-filter: blur(3px);
}
.rule {
    background-color: rgba(18, 29, 48, 0.86);
    backdrop-filter: blur(3px);
}
header,
.tools,
.rule li,
.no-results {
    background-color: rgba(18, 29, 48, 0.88);
}
@media (max-width: 640px) {
    body::before {
        background-position: center center;
    }
}
