@font-face {
    font-family: "Proxima Nova";
    src: url("../fonts/ProximaNova-Regular.365ec3de6ae3.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Proxima Nova";
    src: url("../fonts/ProximaNova-Semibold.77f2e4a1f023.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "Proxima Nova";
    src: url("../fonts/ProximaNova-ExtraBold.b215f876a0d6.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: "Proxima Nova";
    src: url("../fonts/ProximaNova-Black.cf99ebdc194e.ttf") format("truetype");
    font-weight: 900;
    font-style: normal;
}

:root {
    --color-ink: #050506;
    --color-ink-2: #0d0f12;
    --color-panel: rgba(12, 14, 16, 0.88);
    --color-panel-soft: rgba(255, 255, 255, 0.055);
    --color-panel-strong: rgba(0, 0, 0, 0.78);
    --color-line: rgba(255, 255, 255, 0.14);
    --color-line-strong: rgba(216, 185, 90, 0.72);
    --color-text: #ffffff;
    --color-muted: #cfd3d8;
    --color-dim: #969da6;
    --color-gold: #d8b95a;
    --color-gold-bright: #f2d56b;
    --color-red: #d71920;
    --color-red-dark: #960016;
    --color-good: #7ee08a;
    --color-blue: #4a84ff;
    --shadow-panel: 0 18px 42px rgba(0, 0, 0, 0.38);
    --shadow-tight: 0 8px 22px rgba(0, 0, 0, 0.3);
    --radius-xs: 3px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --page-width: 1200px;
    --wide-width: 1440px;
    --header-height: 78px;
    --space-1: 0.35rem;
    --space-2: 0.55rem;
    --space-3: 0.8rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 2rem;
    --space-8: 3rem;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--color-ink);
    color: var(--color-text);
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--color-text);
    background: linear-gradient(135deg, rgba(216, 185, 90, 0.08), transparent 24rem),
    linear-gradient(180deg, #111419 0%, #050506 42%, #0b0d10 100%);
    font-family: "Proxima Nova", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

img,
svg,
video {
    max-width: 100%;
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    left: 1rem;
    top: 1rem;
    z-index: 2000;
    transform: translateY(-160%);
    padding: 0.65rem 0.9rem;
    color: #000;
    background: var(--color-gold);
    border-radius: var(--radius-sm);
    font-weight: 900;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: hidden;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--space-5);
    align-items: center;
    min-height: var(--header-height);
    padding: 0.85rem clamp(1rem, 3vw, 2rem);
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 3px solid var(--color-gold);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.44);
    backdrop-filter: blur(12px);
}

.site-header::after {
    content: "";
    position: absolute;
    left: -38%;
    bottom: -3px;
    width: 38%;
    height: 6px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-gold-bright) 44%,
        var(--color-red) 70%,
        transparent
    );
    filter: blur(0.4px);
    pointer-events: none;
    animation: header-accent-travel 9s ease-in-out infinite;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    min-width: 136px;
    text-decoration: none;
}

.navbar-brand img {
    display: block;
    height: 46px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(216, 185, 90, 0.28));
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.site-header nav a,
.site-header > a:not(.navbar-brand),
.site-header button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.58rem 0.8rem;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
.site-header > a:not(.navbar-brand):hover,
.site-header > a:not(.navbar-brand):focus-visible,
.site-header button:hover,
.site-header button:focus-visible {
    color: #000;
    background: var(--color-gold);
    border-color: var(--color-gold);
    outline: none;
    transform: translateY(-1px);
}

.site-header form {
    margin: 0;
}

.site-header > a:not(.navbar-brand),
.site-header button {
    color: #000;
    background: var(--color-gold);
    border-color: var(--color-gold);
}

.site-header > a:not(.navbar-brand),
.site-header form {
    grid-column: 3 / 4;
    justify-self: end;
    width: auto;
}

main {
    position: relative;
    min-height: calc(100vh - var(--header-height) - 52px);
    overflow: clip;
    padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2rem);
}

main::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url("../img/mk-lightning-logo.244533ee9821.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: min(760px, 92vw);
    opacity: 0.055;
    pointer-events: none;
    animation: background-mark-breathe 14s ease-in-out infinite alternate;
}

main::after {
    content: "";
    position: fixed;
    inset: -18%;
    z-index: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(216, 185, 90, 0.07), transparent 23%),
        radial-gradient(circle at 82% 74%, rgba(215, 25, 32, 0.045), transparent 25%);
    opacity: 0.65;
    pointer-events: none;
    will-change: transform, opacity;
    animation: site-ambient-drift 22s ease-in-out infinite alternate;
}

main > * {
    position: relative;
    z-index: 1;
}

main > .dashboard-page,
main > .live-control-page,
main > .fan-match-centre,
main > .engagement-page,
main > .auth-shell,
main > .changelog-page,
main > h2,
main > form,
main > table,
main > ul {
    animation: content-arrive 0.55s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.message-stack,
main > h2,
main > h3,
main > p,
main > ul,
main > form,
main > table,
main > #shot-review-queue {
    width: min(var(--page-width), 100%);
    margin-left: auto;
    margin-right: auto;
}

main > h2,
.page-heading h2,
.hero h1,
.hero h2 {
    margin: 0;
    color: var(--color-text);
    font-size: 4.6rem;
    font-weight: 900;
    line-height: 0.92;
    text-transform: uppercase;
}

main > h2 {
    margin-bottom: var(--space-6);
}

.page-heading h2,
.fan-hero h2,
.engagement-heading h2,
.judge-header h2,
.auth-panel-copy h2,
main > h2 {
    position: relative;
}

.page-heading h2::after,
.fan-hero h2::after,
.engagement-heading h2::after,
.judge-header h2::after,
.auth-panel-copy h2::after,
main > h2::after {
    content: "";
    display: block;
    width: clamp(3.5rem, 10vw, 7rem);
    height: 3px;
    margin-top: 0.55rem;
    background: linear-gradient(90deg, var(--color-gold-bright), var(--color-red), transparent);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(216, 185, 90, 0.2);
    transform-origin: left;
    animation: heading-accent-breathe 4.2s ease-in-out infinite alternate;
}

main > h3 {
    margin-top: var(--space-7);
    margin-bottom: var(--space-4);
    color: var(--color-gold);
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
}

main > p {
    color: var(--color-muted);
    font-weight: 700;
}

.eyebrow {
    margin: 0 0 var(--space-2);
    color: var(--color-gold);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1.2;
    text-transform: uppercase;
}

.site-footer {
    position: relative;
    z-index: 2;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    color: var(--color-dim);
    background: rgba(0, 0, 0, 0.72);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.76rem;
    font-weight: 700;
}

.site-footer a {
    text-decoration-color: rgba(255, 255, 255, 0.25);
    text-underline-offset: 0.2rem;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--color-gold);
    text-decoration-color: currentColor;
}

.changelog-page {
    width: min(960px, 100%);
    margin: 0 auto;
}

.changelog-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-4) var(--space-7);
    align-items: end;
    margin-bottom: var(--space-8);
}

.changelog-heading .eyebrow,
.changelog-heading h1,
.changelog-intro {
    grid-column: 1;
}

.changelog-heading h1 {
    position: relative;
    margin: 0;
    color: var(--color-text);
    font-size: clamp(3rem, 9vw, 5.8rem);
    font-weight: 900;
    line-height: 0.92;
    text-transform: uppercase;
}

.changelog-heading h1::after {
    content: "";
    display: block;
    width: clamp(3.5rem, 10vw, 7rem);
    height: 3px;
    margin-top: 0.55rem;
    background: linear-gradient(90deg, var(--color-gold-bright), var(--color-red), transparent);
    border-radius: 999px;
    box-shadow: 0 0 10px rgba(216, 185, 90, 0.2);
}

.changelog-intro {
    max-width: 650px;
    margin: 0;
    color: var(--color-muted);
    font-size: 1.05rem;
    font-weight: 700;
}

.current-version {
    grid-column: 2;
    grid-row: 1 / 4;
    min-width: 150px;
    margin: 0;
    padding: var(--space-4) var(--space-5);
    color: var(--color-muted);
    background: var(--color-panel);
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-tight);
    text-align: right;
}

.current-version span,
.current-version strong {
    display: block;
}

.current-version span {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.current-version strong {
    margin-top: var(--space-1);
    color: var(--color-gold-bright);
    font-size: 1.65rem;
    line-height: 1;
}

.release-timeline {
    position: relative;
    display: grid;
    gap: var(--space-5);
    margin: 0;
    padding: 0 0 var(--space-6) 1.65rem;
    list-style: none;
}

.release-timeline::before {
    content: "";
    position: absolute;
    left: 0.28rem;
    top: 0.8rem;
    bottom: 0;
    width: 2px;
    background: linear-gradient(var(--color-gold), rgba(216, 185, 90, 0.08));
}

.release-entry {
    position: relative;
}

.release-entry::before {
    content: "";
    position: absolute;
    left: -1.65rem;
    top: 1.8rem;
    width: 0.65rem;
    height: 0.65rem;
    background: var(--color-gold);
    border: 3px solid var(--color-ink-2);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--color-gold), 0 0 12px rgba(216, 185, 90, 0.32);
}

.release-entry article {
    padding: clamp(1rem, 3vw, 1.5rem);
    background: var(--color-panel);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-panel);
}

.release-header {
    display: flex;
    gap: var(--space-5);
    align-items: start;
    justify-content: space-between;
}

.release-version {
    margin: 0 0 var(--space-1);
    color: var(--color-gold);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.release-header h2 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(1.35rem, 4vw, 2rem);
    font-weight: 900;
    line-height: 1.05;
}

.release-meta {
    flex: 0 0 auto;
    display: grid;
    gap: 0.2rem;
    color: var(--color-dim);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: right;
}

.release-meta a {
    color: var(--color-muted);
    text-decoration-color: rgba(255, 255, 255, 0.25);
    text-underline-offset: 0.18rem;
}

.release-meta a:hover,
.release-meta a:focus-visible {
    color: var(--color-gold);
}

.release-changes {
    display: grid;
    gap: var(--space-2);
    margin: var(--space-5) 0 0;
    padding-left: 1.1rem;
    color: #edf0f3;
}

.release-changes li::marker {
    color: var(--color-gold);
}

.hero {
    position: relative;
    isolation: isolate;
    width: min(1180px, 100%);
    min-height: min(700px, calc(100vh - var(--header-height) - 5rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.hero-public::before,
.hero-public::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: clamp(16rem, 34vw, 29rem);
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(24px);
    pointer-events: none;
    will-change: transform, opacity;
}

.hero-public::before {
    left: -12%;
    top: 4%;
    background: radial-gradient(circle, rgba(216, 185, 90, 0.11), transparent 68%);
    animation: hero-ambient-gold 12s ease-in-out infinite alternate;
}

.hero-public::after {
    right: -9%;
    bottom: -12%;
    background: radial-gradient(circle, rgba(215, 25, 32, 0.075), transparent 70%);
    animation: hero-ambient-red 15s ease-in-out infinite alternate;
}

.hero-content {
    position: relative;
    padding-left: 1.35rem;
}

.hero-content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 5px;
    height: min(180px, 72%);
    background: linear-gradient(180deg, var(--color-gold), var(--color-red));
    border-radius: var(--radius-xs);
}

.hero-public .hero-content::before {
    background: linear-gradient(
        180deg,
        var(--color-gold) 0%,
        var(--color-gold-bright) 22%,
        var(--color-red) 72%,
        var(--color-red-dark) 100%
    );
    background-size: 100% 220%;
    box-shadow: 0 0 12px rgba(216, 185, 90, 0.28);
    animation: hero-accent-flow 4.8s ease-in-out infinite alternate;
}

@keyframes hero-accent-flow {
    0% {
        background-position: 50% 0%;
        box-shadow: 0 0 8px rgba(216, 185, 90, 0.2);
        transform: scaleY(0.94);
        transform-origin: top;
    }

    100% {
        background-position: 50% 100%;
        box-shadow: 0 0 16px rgba(215, 25, 32, 0.3);
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

@keyframes hero-ambient-gold {
    0% {
        opacity: 0.45;
        transform: translate3d(-2%, -1%, 0) scale(0.92);
    }

    100% {
        opacity: 0.8;
        transform: translate3d(8%, 6%, 0) scale(1.08);
    }
}

@keyframes hero-ambient-red {
    0% {
        opacity: 0.35;
        transform: translate3d(3%, 4%, 0) scale(0.95);
    }

    100% {
        opacity: 0.7;
        transform: translate3d(-8%, -5%, 0) scale(1.06);
    }
}

.hero h1,
.hero h2 {
    max-width: 780px;
    font-size: 6.6rem;
}

.hero-text {
    max-width: 720px;
    margin: var(--space-5) 0 0;
    color: #edf0f3;
    font-size: 1.15rem;
    font-weight: 700;
}

.hero-actions,
.quick-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    margin-top: var(--space-6);
}

.btn,
button,
input[type="submit"],
main > p a,
main > ul a,
td a,
td form button,
main > form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.68rem 0.95rem;
    color: #000;
    background: var(--color-gold);
    border: 2px solid var(--color-gold);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn:hover,
.btn:focus-visible,
button:hover,
button:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible,
main > p a:hover,
main > p a:focus-visible,
main > ul a:hover,
main > ul a:focus-visible,
td a:hover,
td a:focus-visible,
td form button:hover,
td form button:focus-visible,
main > form button:hover,
main > form button:focus-visible {
    color: #000;
    background: #fff;
    border-color: #fff;
    outline: none;
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.38);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    color: #000;
    background: #fff;
    border-color: #fff;
}

.btn-danger,
button[value="invalid"],
button[value="clip_failed"] {
    color: #fff;
    background: var(--color-red-dark);
    border-color: var(--color-red-dark);
}

.access-card,
.auth-panel,
main > form,
table,
main > ul li,
.message {
    background: var(--color-panel);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-panel);
    backdrop-filter: blur(10px);
}

.access-card,
.auth-panel {
    padding: clamp(1.25rem, 3vw, 2rem);
    border-color: var(--color-line-strong);
}

.access-card,
.auth-panel,
.dashboard-card,
.control-panel,
.fan-layer-card,
.engagement-card,
.shot-map-card,
.external-stat-grid article {
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        box-shadow 0.28s ease;
}

.access-card:hover,
.auth-panel:hover,
.dashboard-card:hover,
.control-panel:hover,
.fan-layer-card:hover,
.engagement-card:hover,
.shot-map-card:hover,
.external-stat-grid article:hover {
    border-color: rgba(242, 213, 107, 0.82);
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.42), 0 0 18px rgba(216, 185, 90, 0.07);
    transform: translateY(-2px);
}

.access-card h3,
.auth-panel h2 {
    margin-top: 0;
}

.access-card h3 {
    margin-bottom: var(--space-5);
    color: var(--color-gold);
    font-size: 1.35rem;
    font-weight: 900;
    text-transform: uppercase;
}

.access-card ol,
.auth-checklist {
    margin: 0;
    padding-left: 1.2rem;
}

.access-card li,
.auth-checklist li {
    margin-bottom: var(--space-3);
    color: #edf0f3;
    font-weight: 800;
}

.auth-shell {
    width: min(1040px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
    gap: var(--space-6);
    align-items: start;
}

.auth-panel-copy h2 {
    margin-bottom: var(--space-4);
}

.auth-panel-copy p {
    color: var(--color-muted);
    font-size: 1.02rem;
    font-weight: 700;
}

.auth-panel-copy .auth-confirmation {
    padding: var(--space-4);
    color: #061006;
    background: var(--color-good);
    border-radius: var(--radius-md);
    font-weight: 900;
}

.auth-switch a {
    color: var(--color-gold);
    font-weight: 900;
}

.auth-form {
    display: grid;
    gap: var(--space-4);
}

main > form,
.auth-form {
    padding: clamp(1rem, 3vw, 1.5rem);
}

form p {
    margin: 0 0 var(--space-4);
}

label {
    display: inline-block;
    margin-bottom: var(--space-1);
    color: var(--color-gold);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.8rem;
    font: inherit;
    font-weight: 700;
}

textarea {
    min-height: 112px;
    resize: vertical;
}

select {
    color-scheme: dark;
}

select option,
select optgroup {
    /* Native dropdown menus do not consistently honour `color-scheme` or
       custom backgrounds. Keep their foreground/background paired so options
       cannot become white text on the browser's white menu surface. */
    color: #171717;
    background-color: #ffffff;
    font-style: normal;
    font-weight: 700;
}

select option:checked {
    color: HighlightText;
    background-color: Highlight;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(216, 185, 90, 0.18);
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-height: 0;
    accent-color: var(--color-gold);
}

.helptext {
    display: block;
    margin-top: var(--space-1);
    color: var(--color-dim);
    font-size: 0.86rem;
    font-weight: 700;
}

.errorlist {
    margin: 0 0 var(--space-3);
    padding: 0;
    color: #ff9aa4;
    list-style: none;
    font-weight: 900;
}

.message-stack {
    display: grid;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.message {
    margin: 0;
    padding: var(--space-4);
    color: var(--color-text);
    border-left: 4px solid var(--color-gold);
    font-weight: 800;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin-bottom: var(--space-7);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    scrollbar-gutter: stable;
}

.table-scroll:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
}

.table-scroll table {
    width: 100%;
    min-width: 720px;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.table-scroll td {
    overflow-wrap: anywhere;
}

table {
    border-spacing: 0;
    margin-bottom: var(--space-7);
}

thead,
tbody,
tr {
    width: 100%;
}

th,
td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--color-line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--color-gold);
    background: rgba(0, 0, 0, 0.82);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

td {
    min-width: 118px;
    color: #eef1f4;
    font-weight: 700;
}

tr:last-child td {
    border-bottom: 0;
}

tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.035);
}

td form {
    display: inline-flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
    margin: 0.2rem 0.4rem 0.2rem 0;
}

td select {
    min-width: 160px;
}

td a,
td form button,
main > ul a {
    min-height: 36px;
    padding: 0.5rem 0.68rem;
    font-size: 0.76rem;
}

main > ul {
    display: grid;
    gap: var(--space-3);
    padding: 0;
    list-style: none;
}

main > ul li {
    padding: var(--space-4);
    color: #f3f5f7;
    border-left: 4px solid var(--color-gold);
    font-weight: 800;
}

main > ul li a {
    margin: 0.25rem 0.25rem 0.25rem 0;
}

.live-connection-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-4);
    padding: 0.65rem 0.8rem;
    color: #f6f7f9;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    font-size: 0.86rem;
    font-weight: 900;
}

.live-connection-status::before {
    content: "";
    width: 0.7rem;
    height: 0.7rem;
    flex: 0 0 auto;
    background: var(--color-dim);
    border-radius: 50%;
}

.live-connection-status[data-state="connected"]::before {
    color: var(--color-good);
    background: var(--color-good);
    animation: live-status-pulse 2.4s ease-out infinite;
}

.live-connection-status[data-state="reconnecting"] {
    border-color: rgba(215, 25, 32, 0.65);
}

.live-connection-status[data-state="reconnecting"]::before {
    color: var(--color-red);
    background: var(--color-red);
    animation: live-status-pulse 1.25s ease-out infinite;
}

.status-pill::before,
.status-badge::before {
    animation: status-dot-breathe 2.8s ease-in-out infinite;
}

@keyframes header-accent-travel {
    0%,
    12% {
        opacity: 0;
        transform: translateX(0);
    }

    20%,
    72% {
        opacity: 0.85;
    }

    82%,
    100% {
        opacity: 0;
        transform: translateX(365%);
    }
}

@keyframes background-mark-breathe {
    0% {
        opacity: 0.04;
        transform: scale(0.985);
    }

    100% {
        opacity: 0.068;
        transform: scale(1.02);
    }
}

@keyframes site-ambient-drift {
    0% {
        opacity: 0.48;
        transform: translate3d(-2%, -1%, 0) rotate(-1deg) scale(0.98);
    }

    100% {
        opacity: 0.78;
        transform: translate3d(3%, 2%, 0) rotate(1deg) scale(1.03);
    }
}

@keyframes content-arrive {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heading-accent-breathe {
    0% {
        opacity: 0.58;
        transform: scaleX(0.72);
    }

    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes live-status-pulse {
    0% {
        box-shadow: 0 0 0 0 currentColor;
        transform: scale(0.9);
    }

    65%,
    100% {
        box-shadow: 0 0 0 7px transparent;
        transform: scale(1);
    }
}

@keyframes status-dot-breathe {
    0%,
    100% {
        opacity: 0.48;
        transform: scale(0.85);
    }

    50% {
        opacity: 0.86;
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 980px) {
    :root {
        --header-height: 188px;
    }

    .site-header {
        grid-template-columns: 1fr;
        gap: var(--space-3);
        justify-items: center;
    }

    .site-header nav {
        justify-content: center;
    }

    .site-header > a:not(.navbar-brand),
    .site-header form {
        grid-column: auto;
        justify-self: center;
    }

    .hero,
    .auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    main > h2,
    .page-heading h2 {
        font-size: 3.6rem;
    }

    .hero h1,
    .hero h2 {
        font-size: 5rem;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 15px;
    }

    .site-header {
        position: relative;
        padding: 0.9rem 0.75rem;
    }

    .navbar-brand img {
        height: 40px;
    }

    .site-header nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-header nav a,
    .site-header > a:not(.navbar-brand),
    .site-header button {
        width: 100%;
        min-height: 38px;
        padding: 0.55rem 0.6rem;
        font-size: 0.76rem;
    }

    main {
        padding: 1.5rem 0.85rem 2rem;
    }

    .changelog-heading {
        grid-template-columns: 1fr;
    }

    .current-version {
        grid-column: 1;
        grid-row: auto;
        width: fit-content;
        text-align: left;
    }

    .release-header {
        display: grid;
    }

    .release-meta {
        text-align: left;
    }

    .hero-content {
        padding-left: 1rem;
    }

    .hero h1,
    .hero h2 {
        font-size: 3.4rem;
    }

    main > h2,
    .page-heading h2 {
        font-size: 2.6rem;
    }

    .hero-actions,
    .quick-actions,
    .button-row {
        align-items: stretch;
        flex-direction: column;
    }

    .btn,
    button,
    input[type="submit"],
    main > p a,
    main > ul a,
    td a,
    td form button,
    main > form button {
        width: 100%;
    }

    th,
    td {
        padding: 0.75rem;
    }
}
.list-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: end;
    margin: 1rem 0 1.5rem;
}

.list-filters label {
    display: grid;
    gap: 0.3rem;
    min-width: 10rem;
}

.list-filters input,
.list-filters select {
    min-height: 2.75rem;
}

.pagination {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
}
