/* War Robots: Frontiers theme. Loaded after the shared styles, before light mode.
   Colors from the official key art: deep navy, violet and magenta energy, cyan light, logo orange. */
:root {
    --wrf-night: #070614;
    --wrf-deep: #0d0b24;
    --wrf-panel: #141130;
    --wrf-panel-2: #1c1740;
    --wrf-violet: #9b5cff;
    --wrf-magenta: #e83ff0;
    --wrf-cyan: #3fd8ff;
    --wrf-orange: #f7931e;
    --wrf-text: #f5f2ff;
    --wrf-muted: #b3abd6;
    --wrf-line: rgba(155, 92, 255, .24);

    --bg: var(--wrf-night);
    --top: var(--wrf-deep);
    --panel: var(--wrf-panel);
    --panel2: var(--wrf-panel-2);
    --card: var(--wrf-panel-2);
    --text: var(--wrf-text);
    --muted: var(--wrf-muted);
    --line: var(--wrf-line);
    --accent: var(--wrf-violet);
    --accent2: var(--wrf-magenta);
    --gold: var(--wrf-orange);

    --rail-bg: rgba(9, 7, 26, .92);
    --rail-line: rgba(155, 92, 255, .22);
    --rail-card: #120f2c;
    --rail-soft: #1b163c;
    --rail-muted: #b3abd6;
    --rail-accent: var(--wrf-violet);
    --rail-gold: var(--wrf-orange);

    --eco-surface: #110e2a;
    --eco-surface-2: #19143a;
    --eco-edge: rgba(155, 92, 255, .24);
    --eco-blue: #8b6cff;
    --eco-cyan: var(--wrf-cyan);
    --eco-gold: var(--wrf-orange);
    --eco-violet: #d07bff;
}

html:not([data-theme="light"]) body {
    background:
        radial-gradient(ellipse 70% 45% at 85% -5%, rgba(232, 63, 240, .16), transparent 70%),
        radial-gradient(ellipse 60% 40% at 0% 10%, rgba(63, 216, 255, .10), transparent 70%),
        radial-gradient(ellipse 90% 60% at 50% 120%, rgba(155, 92, 255, .14), transparent 70%),
        var(--wrf-night);
    background-attachment: fixed;
}

/* Header: official wordmark in place of the WRUniverse logo. */
.rail-brand-logo { width: auto; height: 46px; object-fit: contain; filter: drop-shadow(0 0 14px rgba(155, 92, 255, .35)); }
.site-header.command-rail { border-bottom: 1px solid rgba(155, 92, 255, .28); box-shadow: 0 1px 0 rgba(63, 216, 255, .08), 0 10px 30px rgba(7, 6, 20, .55); }
.rail-links a:hover, .rail-links a:focus-visible { color: var(--wrf-cyan); }

/* Buttons: magenta to violet energy, orange focus. */
.button, a.button {
    background: linear-gradient(135deg, var(--wrf-magenta), var(--wrf-violet)) !important;
    border-color: rgba(232, 63, 240, .6) !important;
    color: #fff !important;
    box-shadow: 0 6px 22px rgba(155, 92, 255, .28);
}
.button:hover, a.button:hover { box-shadow: 0 8px 28px rgba(232, 63, 240, .42); filter: brightness(1.08); }
.button.secondary, a.button.secondary {
    background: rgba(20, 17, 48, .78) !important;
    border: 1px solid rgba(63, 216, 255, .42) !important;
    color: var(--wrf-text) !important;
    box-shadow: none;
}
.button.secondary:hover, a.button.secondary:hover { border-color: var(--wrf-cyan) !important; color: var(--wrf-cyan) !important; }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--wrf-orange); outline-offset: 3px; }

/* Form buttons: an older shared rule paints these blue with !important. */
html body .card form button, html body .card form .button, html body form button[type="submit"], html body .card form input[type="submit"] {
    background: linear-gradient(135deg, var(--wrf-magenta), var(--wrf-violet)) !important;
    border-color: rgba(232, 63, 240, .6) !important;
    color: #fff !important;
}
html body .card form button:hover, html body form button[type="submit"]:hover { filter: brightness(1.08); box-shadow: 0 8px 26px rgba(232, 63, 240, .38); }
html body .card form :is(input, select, textarea):focus { border-color: var(--wrf-cyan) !important; box-shadow: 0 0 0 3px rgba(63, 216, 255, .18) !important; }

.page-kicker { color: var(--wrf-orange); }
h1, h2 { text-shadow: 0 0 24px rgba(155, 92, 255, .22); }

/* Page banners: violet glow over the night sky. */
.page-hero {
    border: 1px solid rgba(155, 92, 255, .26);
    background: linear-gradient(135deg, rgba(28, 23, 64, .92), rgba(13, 11, 36, .92));
}
.page-hero::before { background: linear-gradient(100deg, rgba(7, 6, 20, .3), rgba(155, 92, 255, .14) 50%, rgba(63, 216, 255, .1)); }
.page-hero::after { opacity: .3; filter: drop-shadow(0 0 26px rgba(155, 92, 255, .45)) drop-shadow(0 28px 44px rgba(0, 0, 0, .6)); }

/* Home banner: the Season 1 key art, with a slow energy sweep. */
.home-join-hero {
    min-height: 360px;
    background:
        linear-gradient(90deg, rgba(7, 6, 20, .92) 0%, rgba(7, 6, 20, .72) 42%, rgba(7, 6, 20, .15) 100%),
        url("/assets/images/frontiers/hero-home.webp") center / cover no-repeat;
}
.home-join-hero::after { display: none; }
.home-join-hero::before {
    background: linear-gradient(115deg, transparent 35%, rgba(232, 63, 240, .14) 48%, rgba(63, 216, 255, .12) 54%, transparent 66%);
    background-size: 260% 100%;
    animation: wrf-energy 9s ease-in-out infinite;
}
@keyframes wrf-energy { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

.card, .info-card, .eco-panel, .wru-store-section, .wru-store-product {
    border-color: rgba(155, 92, 255, .22);
}
.info-card:hover, .wru-store-product:hover { border-color: rgba(63, 216, 255, .5); box-shadow: 0 0 0 1px rgba(63, 216, 255, .18), 0 14px 30px rgba(7, 6, 20, .5); }

/* Hangar: Frontiers machines. Cutouts float; scenes fill the card. */
.wru-hangar-card { border-color: rgba(155, 92, 255, .3); background: linear-gradient(180deg, rgba(28, 23, 64, .6), rgba(232, 63, 240, .08)); }
.wru-hangar-glow { background: radial-gradient(closest-side, rgba(232, 63, 240, .6), transparent); }
.wru-hangar-card:hover, .wru-hangar-card:focus-visible { border-color: rgba(63, 216, 255, .8); box-shadow: 0 18px 34px rgba(0, 0, 0, .45), 0 0 0 1px rgba(63, 216, 255, .35), 0 0 24px rgba(155, 92, 255, .3); }
.wru-hangar-card.is-scene { overflow: hidden; }
.wru-hangar-card.is-scene img {
    inset: 0; left: 0; bottom: 0; width: 100%; height: 100%;
    object-fit: cover; transform: none; filter: saturate(1.1);
    animation: none; border-radius: 11px;
}
.wru-hangar-card.is-scene:hover img, .wru-hangar-card.is-scene:focus-visible img { transform: scale(1.06); filter: saturate(1.2); }
.wru-hangar-card.is-scene .wru-hangar-glow { display: none; }
.wru-hangar-card.is-scene .wru-hangar-name {
    width: 100%; padding: 6px 4px; border-radius: 6px;
    background: linear-gradient(90deg, rgba(7, 6, 20, .82), rgba(28, 23, 64, .82));
}

/* Guide art. */
.wrf-guide-art {
    display: block; width: 100%; max-width: 960px; height: auto; margin: 16px 0 4px;
    border-radius: 12px; border: 1px solid rgba(155, 92, 255, .3);
    box-shadow: 0 16px 40px rgba(7, 6, 20, .55), 0 0 30px rgba(155, 92, 255, .14);
}
.wrf-art-credit { display: block; margin-top: 10px; color: var(--wrf-muted); font-size: 12px; }

/* Light mode keeps the brand accents on light surfaces. */
html[data-theme="light"] .home-join-hero {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .78) 45%, rgba(255, 255, 255, .12) 100%),
        url("/assets/images/frontiers/hero-home.webp") center / cover no-repeat;
}
html[data-theme="light"] .page-kicker { color: #b25d00; }
html[data-theme="light"] h1, html[data-theme="light"] h2 { text-shadow: none; }
html[data-theme="light"] .rail-brand-logo { filter: drop-shadow(0 0 1px rgba(0, 0, 0, .9)) drop-shadow(0 1px 3px rgba(0, 0, 0, .55)); }

@media (prefers-reduced-motion: reduce) {
    .home-join-hero::before { animation: none; }
    .wru-hangar-card.is-scene:hover img, .wru-hangar-card.is-scene:focus-visible img { transform: none; }
}
@media (max-width: 760px) {
    .home-join-hero { min-height: 0; background-position: 70% center; }
    .rail-brand-logo { height: 34px; }
}

/* Frontiers hangar (owner, November 9, 2026: "do the same for frontiers but keep its theme"). The same hangar
   build as WRUniverse's cards (grid lines, edge, glow under the panel, lift on hover) in Frontiers' own
   colours: violet lines and edges, a magenta glow, a cyan hover. */
html body :is(.card, .wru-empty-state) {
    background:
        linear-gradient(transparent 96%, rgba(155, 92, 255, .09) 96%) 0 0 / 100% 26px,
        linear-gradient(90deg, transparent 96%, rgba(155, 92, 255, .06) 96%) 0 0 / 26px 100%,
        radial-gradient(ellipse 80% 60% at 50% 110%, rgba(232, 63, 240, .16), transparent 70%),
        var(--wrf-panel) !important;
    border: 1px solid rgba(155, 92, 255, .26) !important;
}
html body :is(.card .card, .mini-card, .info-card, .list > article, .creator-card, .milestone-card) {
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(155, 92, 255, .12)), var(--wrf-panel) !important;
    border: 1px solid rgba(155, 92, 255, .24) !important;
}
html body :is(.card .card, .mini-card, .info-card, .list > article, .creator-card, .milestone-card):is(:hover, :focus-within) {
    border-color: rgba(63, 216, 255, .6) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .4), 0 0 0 1px rgba(63, 216, 255, .28), 0 0 22px rgba(155, 92, 255, .22);
}
.page-hero {
    background:
        linear-gradient(transparent 96%, rgba(155, 92, 255, .09) 96%) 0 0 / 100% 26px,
        linear-gradient(90deg, transparent 96%, rgba(155, 92, 255, .06) 96%) 0 0 / 26px 100%,
        linear-gradient(135deg, rgba(28, 23, 64, .92), rgba(13, 11, 36, .92));
    border-color: rgba(155, 92, 255, .26);
}
/* Daylight: the same build on white with a violet tint. */
html[data-theme="light"] body :is(.card, .wru-empty-state) {
    background:
        linear-gradient(transparent 96%, rgba(155, 92, 255, .07) 96%) 0 0 / 100% 26px,
        linear-gradient(90deg, transparent 96%, rgba(155, 92, 255, .05) 96%) 0 0 / 26px 100%,
        radial-gradient(ellipse 80% 60% at 50% 110%, rgba(155, 92, 255, .12), transparent 70%),
        #fff !important;
    border-color: var(--line) !important;
}
html[data-theme="light"] body :is(.card .card, .mini-card, .info-card, .list > article, .creator-card, .milestone-card) {
    background: linear-gradient(180deg, #fff, #f1ecff) !important;
    border-color: var(--line) !important;
}
html[data-theme="light"] body :is(.card .card, .mini-card, .info-card, .list > article, .creator-card, .milestone-card):is(:hover, :focus-within) {
    border-color: #9b5cff !important;
    box-shadow: 0 12px 26px rgba(20, 35, 50, .12), 0 0 0 1px rgba(155, 92, 255, .35);
}html[data-theme="light"] body .page-hero {
    background:
        linear-gradient(transparent 96%, rgba(155, 92, 255, .09) 96%) 0 0 / 100% 26px,
        linear-gradient(90deg, transparent 96%, rgba(155, 92, 255, .06) 96%) 0 0 / 26px 100%,
        linear-gradient(135deg, rgba(28, 23, 64, .92), rgba(13, 11, 36, .92)) !important;
}