html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ─────────────────────────────────────────────────────────────────────────────
   WP230 · SEAMLESS PAGE TRANSITIONS

   This sheet is linked from App.razor on EVERY response, so its rules are live in the
   server-prerendered HTML — before the WebAssembly runtime activates and long before any page's
   own JS-injected stylesheet exists. That is the whole point: everything below has to be true in
   the first frame after an enhanced-navigation DOM patch, which is the frame that used to be
   white.
   ───────────────────────────────────────────────────────────────────────────── */

/* §2.1 — Bootstrap paints `body { background-color: var(--bs-body-bg) }` = #fff, which would sit
   on top of the dark canvas set inline on <html> in App.razor. Make the body transparent and let
   the root show through. MainLayout — the app's only light surface (Weather/Counter/Error/404) —
   paints its own white in MainLayout.razor.css. */
body {
    background-color: transparent;
}

/* §2.2 — THE BOOT SHELL. Every JS-hosted page renders one empty container div and builds its whole
   UI from a JS module that cannot start until after the first render (JS interop is illegal
   earlier). `.tl-host` gives that container a ground in the prerender; `.tl-booting` puts a
   wordmark in it.

   The shell is a ::after PSEUDO-ELEMENT on purpose — it is not in the DOM, so neither Blazor's
   render-tree diff nor the modules' `host.innerHTML = …` writes can collide with it, and there is
   no teardown to forget. The module drops `.tl-booting` via shellReady() (tanklands-pageshell.js)
   the moment it paints. */
.tl-host {
    position: absolute;
    inset: 0;
    background-color: #0c110b;
}

.tl-host.tl-booting::after {
    content: 'TANKLANDS';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 15px/1 'Arial Narrow', system-ui, sans-serif;
    /* the trailing letter-space would shift the word off-centre; text-indent puts it back */
    letter-spacing: .42em;
    text-indent: .42em;
    color: #e8a33d;
    animation: tl-boot-pulse 1.15s ease-in-out infinite;
}

@keyframes tl-boot-pulse {
    0%, 100% { opacity: .20; }
    50% { opacity: .70; }
}

@media (prefers-reduced-motion: reduce) {
    .tl-host.tl-booting::after {
        animation: none;
        opacity: .45;
    }
}

/* Arrival. Applied by shellReady(host) on the DOM pages only — the game page passes fade=false
   because it owns its own curtain fade (WP209/WP215) and must not get a second one on its canvas. */
.tl-host.tl-ready > * {
    animation: tl-host-in .18s ease-out both;
}

@keyframes tl-host-in {
    from { opacity: 0; }
    to { opacity: 1; }
}