/* 3rt1 -- site stylesheet.
 *
 * The identity is an arcade cabinet: near-black violet, a volt-green primary
 * and an ember-pink secondary, hard 4px corners, and a wide geometric display
 * face used only in uppercase. The palette deliberately matches the embedded
 * games in static/games/ so the shell and the games read as one product rather
 * than a site with games pasted into it.
 *
 * Dark is the default and the real identity. Light is a supported override
 * rather than the base, which is why the media query below is `light`.
 */

/* --- Brand tokens (dark, default) --- */
:root {
    --void: #0a0812;
    --panel: #16112b;
    --panel-lift: #1e1838;
    --edge: #2d2650;
    --edge-bright: #473c80;

    --volt: #39ff14;
    --volt-dim: #2bcc0f;
    --ember: #ff3d81;

    --text: #ece9f5;
    --text-muted: #9b95b0;
    --text-faint: #6b6684;

    /* Accent that is safe as text on the page background. */
    --accent-text: #4dff2b;
    /* Text that sits on a volt fill. */
    --on-accent: #05040a;

    --danger: #ff4d5e;
    --success: #39ff14;
    --warning: #ffd43b;

    --canvas: #0d0a1a;

    --radius: 4px;
    --radius-lg: 6px;
    --radius-sm: 2px;

    --glow: 0 0 0 1px rgba(57, 255, 20, 0.35), 0 6px 28px rgba(57, 255, 20, 0.14);
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    --shadow-lift: 0 12px 32px rgba(0, 0, 0, 0.55);

    --font-display: 'Orbitron', 'Inter', system-ui, sans-serif;
    --font-ui: 'Inter', system-ui, -apple-system, sans-serif;

    color-scheme: dark;
}

/* --- Light mode --- */
@media (prefers-color-scheme: light) {
    :root {
        --void: #f6f5fa;
        --panel: #ffffff;
        --panel-lift: #ffffff;
        --edge: #ddd8ea;
        --edge-bright: #b9b0d6;

        --volt: #2bcc0f;
        --volt-dim: #1f9a0b;
        --ember: #d81b60;

        --text: #16112b;
        --text-muted: #5c5670;
        --text-faint: #857e99;

        --accent-text: #14791f;
        --on-accent: #05040a;

        --danger: #c62828;
        --success: #1f9a0b;
        --warning: #a67c00;

        --glow: 0 0 0 1px rgba(43, 204, 15, 0.3), 0 6px 22px rgba(43, 204, 15, 0.16);
        --shadow: 0 1px 3px rgba(22, 17, 43, 0.1);
        --shadow-lift: 0 10px 26px rgba(22, 17, 43, 0.14);

        color-scheme: light;
    }
}

/* --- Compatibility aliases --------------------------------------------------
 * display.css, controller.css and game.css were written against the previous
 * token names. Mapping them here keeps those files working unchanged.
 */
:root {
    --color-bg: var(--void);
    --color-surface: var(--panel);
    --color-text: var(--text);
    --color-text-muted: var(--text-muted);
    --color-border: var(--edge);
    --color-primary: var(--volt);
    --color-primary-hover: var(--volt-dim);
    --color-danger: var(--danger);
    --color-success: var(--success);
    --color-warning: var(--warning);
    --color-card-bg: var(--panel);
    --color-input-bg: var(--void);
    --color-canvas-bg: var(--canvas);
}

/* --- Base reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-ui);
    background-color: var(--void);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-tap-highlight-color: transparent;
    background-image:
        radial-gradient(ellipse at 12% -10%, rgba(57, 255, 20, 0.07), transparent 55%),
        radial-gradient(ellipse at 88% 108%, rgba(255, 61, 129, 0.06), transparent 55%);
    background-attachment: fixed;
}

@media (prefers-color-scheme: light) {
    body {
        background-image:
            radial-gradient(ellipse at 12% -10%, rgba(43, 204, 15, 0.08), transparent 55%),
            radial-gradient(ellipse at 88% 108%, rgba(216, 27, 96, 0.05), transparent 55%);
    }
}

/* Scanline wash. Fixed and click-through, so it can sit above everything
 * without ever intercepting a pointer event. Skipped on the fullscreen and
 * controller surfaces, where the game owns the whole viewport. */
body:not(.fullscreen):not(.controller)::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.02) 0 1px,
        transparent 1px 3px
    );
}

@media (prefers-color-scheme: light) {
    body:not(.fullscreen):not(.controller)::after {
        background-image: repeating-linear-gradient(
            0deg,
            rgba(22, 17, 43, 0.014) 0 1px,
            transparent 1px 3px
        );
    }
}

body.fullscreen {
    margin: 0;
    overflow: hidden;
    background: var(--canvas);
    color: var(--text);
    display: block;
}

body.controller {
    margin: 0;
    overflow: hidden;
    height: 100vh;
    background: var(--canvas);
    color: var(--text);
    touch-action: manipulation;
    -webkit-touch-callout: none;
    user-select: none;
    display: block;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.15;
    margin-bottom: 0.5em;
    font-weight: 600;
}

h1, h2 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h2 {
    font-size: clamp(1.15rem, 2.4vw, 1.4rem);
    letter-spacing: 0.14em;
    color: var(--text);
}

h3 {
    font-family: var(--font-ui);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Section heading with the volt rule underneath it. */
.section-title {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    margin-bottom: 0.35rem;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--edge-bright), transparent);
}

.eyebrow {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--accent-text);
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-text);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

hr {
    border: none;
    border-top: 1px solid var(--edge);
    margin: 1.5rem 0;
}

ul, ol {
    padding-left: 1.5em;
}

strong {
    font-weight: 600;
    color: var(--text);
}

small {
    font-size: 0.875rem;
}

code, .mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Keyboard focus. Always visible, always volt -- never removed. */
:focus-visible {
    outline: 2px solid var(--volt);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    width: 100%;
}

main.container {
    flex: 1;
    padding-bottom: 4rem;
}

.stack {
    margin-bottom: 3.5rem;
}

/* --- Navigation --- */
.site-header {
    border-bottom: 1px solid var(--edge);
    background: color-mix(in srgb, var(--void) 82%, transparent);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    min-height: 60px;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text);
    text-decoration: none;
    text-transform: uppercase;
}

.nav-brand:hover {
    color: var(--text);
    text-decoration: none;
}

.nav-brand .mark {
    width: 26px;
    height: 26px;
    color: var(--volt);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.nav-brand:hover .mark {
    transform: rotate(-90deg);
}

.nav-links {
    display: flex;
    gap: 0.35rem;
    list-style: none;
    align-items: center;
    padding: 0;
    flex-wrap: wrap;
}

.nav-links a {
    display: inline-block;
    padding: 0.4rem 0.7rem;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--panel);
    text-decoration: none;
}

.nav-links a.is-active {
    color: var(--accent-text);
}

.nav-user {
    color: var(--text-faint);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0 0.4rem;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--edge);
    padding: 2rem 0 2.5rem;
    margin-top: auto;
    text-align: center;
    color: var(--text-faint);
    font-size: 0.85rem;
}

.site-footer small {
    display: block;
    margin-top: 0.4rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.app-version {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--text-faint);
}

/* --- Hero --- */
.hero {
    text-align: center;
    padding: clamp(3rem, 9vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.hero .eyebrow {
    display: block;
    margin-bottom: 1.1rem;
}

.hero h1 {
    font-size: clamp(2.75rem, 11vw, 6rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
    font-weight: 900;
}

.hero h1 .accent {
    color: var(--volt);
    text-shadow: 0 0 32px rgba(57, 255, 20, 0.4);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 46ch;
    margin: 0 auto 1.75rem;
}

.hero-actions {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.25rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--edge);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

/* Media variant: the art tile runs to the card edge, so padding moves inside
 * to .card-body. Without this opt-out the two would compound. */
.card-media {
    padding: 0;
    margin-bottom: 0;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card-media:hover {
    transform: translateY(-3px);
    border-color: var(--edge-bright);
    box-shadow: var(--shadow-lift);
}

.card-body {
    padding: 1.15rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.card-header h3 {
    margin: 0;
}

.card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
}

.card-footer {
    margin-top: auto;
    padding-top: 1rem;
}

/* Game thumbnail. Falls back to a generated glyph tile when a game has no
 * uploaded art, so the grid never shows a ragged mix of image and no-image
 * cards. */
/* The art tile stands in for a game screen, so it stays dark in both colour
 * schemes -- a screen that turns white in light mode reads as a broken image.
 * Everything drawn on it therefore uses fixed light values rather than the
 * theme tokens, which would invert underneath it. */
.card-art {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #0d0a1a;
    border-bottom: 1px solid var(--edge);
    overflow: hidden;
}

.card-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.card-media:hover .card-art img {
    transform: scale(1.04);
}

.card-art-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image:
        linear-gradient(135deg, rgba(57, 255, 20, 0.09), transparent 45%),
        linear-gradient(315deg, rgba(255, 61, 129, 0.09), transparent 45%);
}

.card-art-fallback::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 78%);
}

.card-art-fallback .initials {
    position: relative;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #ece9f5;
    opacity: 0.42;
    text-transform: uppercase;
    transition: opacity 0.25s ease;
}

.card-media:hover .card-art-fallback .initials {
    opacity: 0.6;
}

/* One line, ellipsised at the card edge. Wrapping this to a second line made
 * the grid rows ragged, and truncating in the template cut mid-word. */
.card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.76rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
}

.card-meta > span:not(.dot) {
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta > span:first-child {
    flex-shrink: 0;
}

.card-meta .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-faint);
    flex-shrink: 0;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem 1.15rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease,
                color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background-color: var(--volt);
    border-color: var(--volt);
    color: var(--on-accent);
}

.btn-primary:hover {
    background-color: var(--volt-dim);
    border-color: var(--volt-dim);
    color: var(--on-accent);
    box-shadow: var(--glow);
}

.btn-outline {
    background: transparent;
    border-color: var(--edge-bright);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--volt);
    color: var(--accent-text);
    background: color-mix(in srgb, var(--volt) 8%, transparent);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: var(--text);
    background: var(--panel-lift);
}

.btn-full {
    display: flex;
    width: 100%;
}

.btn-lg {
    padding: 0.85rem 1.9rem;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-external {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.external-icon {
    flex-shrink: 0;
    opacity: 0.8;
}

/* --- Badges --- */
.badge-list {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-sm);
    border: 1px solid currentColor;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Play-mode badges. Co-op and competitive are deliberately different colours:
 * they used to share one "Couch Co-op" label, which mislabelled head-to-head
 * games as cooperative. */
.badge-couch {
    color: var(--ember);
}

.badge-versus {
    color: var(--warning);
}

.badge-solo {
    color: var(--accent-text);
}

/* --- Game mode buttons --- */
.game-modes {
    display: flex;
    gap: 0.6rem;
}

.game-modes .btn {
    flex: 1;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    background: var(--void);
    color: var(--text);
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--volt);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--volt) 22%, transparent);
}

.form-hint {
    display: block;
    font-size: 0.82rem;
    color: var(--text-faint);
    margin-top: 0.3rem;
}

/* --- Messages --- */
.error-message {
    background: color-mix(in srgb, var(--danger) 14%, transparent);
    border: 1px solid var(--danger);
    color: var(--text);
    padding: 0.7rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.closed-beta-notice {
    text-align: center;
    padding: 0.5rem 0 1rem;
}

.closed-beta-notice h2 {
    margin-bottom: 0.75rem;
    color: var(--accent-text);
}

/* --- Auth --- */
.auth-container {
    max-width: 400px;
    margin: 0 auto;
    padding-top: 5vh;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- How to play --- */
.how-to-play {
    background: var(--panel);
    border: 1px solid var(--edge);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-top: 3rem;
}

.how-to-play ol {
    counter-reset: step;
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.how-to-play li {
    counter-increment: step;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    color: var(--text-muted);
    font-size: 0.94rem;
}

.how-to-play li::before {
    content: counter(step);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--edge-bright);
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-text);
}

/* --- Cross-promo banner --- */
.learn-banner {
    border-top: 1px solid var(--edge);
    border-bottom: 1px solid var(--edge);
    background: var(--panel);
    margin-top: 3rem;
}

.learn-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.learn-banner__text {
    margin: 0;
    font-weight: 500;
    color: var(--text-muted);
}

.learn-banner__cta {
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .learn-banner__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

.footer-copyright { display: block; margin-top: 0.5rem; }
.footer-copyright a { color: var(--text-muted); }
.footer-copyright a:hover { color: var(--accent-text); }

/* --- Legal documents --- */
.legal-content { max-width: 44rem; }

.legal-content h2 {
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    margin: 2.25rem 0 0.6rem;
}

.legal-content h3 { font-size: 1rem; margin: 1.25rem 0 0.4rem; }
.legal-content p, .legal-content ul { color: var(--text-muted); }
.legal-content p + p { margin-top: 0.75rem; }
.legal-content ul { margin: 0.6rem 0 0.6rem 1.25rem; }
.legal-content li { margin-bottom: 0.3rem; }

/* --- Contact form --- */
.contact-card { max-width: 38rem; }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    margin: 1.5rem 0;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field label {
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    font: inherit;
    font-family: var(--font-ui);
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--edge);
    border-radius: var(--radius);
    background: var(--void);
    color: var(--text);
    width: 100%;
    min-height: 2.75rem;
}

.contact-form textarea { resize: vertical; }

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
    outline: 2px solid var(--volt);
    outline-offset: 2px;
}

.field-error { color: var(--danger); font-size: 0.85rem; }

.form-error {
    color: var(--text);
    border: 1px solid var(--danger);
    background: color-mix(in srgb, var(--danger) 12%, transparent);
    border-radius: var(--radius);
    padding: 0.7rem 0.85rem;
}

/* Honeypot. Hidden from people, filled by form-spraying bots -- a submission
 * with it set is discarded. It must stay off-screen rather than
 * display:none, which some bots detect and skip. Losing this rule silently
 * turns real submissions into discarded ones, so it is covered by a test. */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* --- Utilities --- */
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.text-center { text-align: center; }
.lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 62ch;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Skip link -- first tab stop on every page. */
.skip-link {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -120%);
    z-index: 10000;
    background: var(--volt);
    color: var(--on-accent);
    padding: 0.6rem 1.1rem;
    border-radius: 0 0 var(--radius) var(--radius);
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: transform 0.15s ease;
}

.skip-link:focus {
    transform: translate(-50%, 0);
    text-decoration: none;
}

/* --- Motion preferences --------------------------------------------------
 * Honour the OS setting. Everything above uses transitions for feedback only,
 * never to convey information, so removing them costs nothing.
 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .card:hover {
        transform: none;
    }

    .card-media:hover .card-art img {
        transform: none;
    }

    .nav-brand:hover .mark {
        transform: none;
    }
}
