/*
 * Fluxer.Music - the whole site's styles. One stylesheet, no build step.
 * Copyright (c) 2026 Fluxer Music. All Rights Reserved.
 *
 * Always dark: the brand is white on deep purple, over the moving music pattern (.bg-pattern).
 */

@font-face {
    font-family: "Fredoka";
    src: url("/static/fonts/fredoka.woff2") format("woff2");
    font-weight: 300 700;
    font-display: swap;
}
@font-face {
    font-family: "IBM Plex Sans";
    src: url("/static/fonts/ibm-plex-sans.woff2") format("woff2");
    font-weight: 100 700;
    font-display: swap;
}

:root {
    --bg: #2a0645;
    --bg-deep: #1a032c;
    --surface: rgba(28, 3, 48, 0.74);
    --surface-strong: rgba(22, 2, 38, 0.88);
    --border: rgba(255, 255, 255, 0.13);
    --text: #ffffff;
    --muted: #d6c4ee;
    --faint: #a991c8;
    --accent: #c79bff;
    --accent-strong: #8f4dff;
    --focus: #c79bff; /* the brand lavender, for keyboard focus rings */
    --radius: 18px;
    --radius-small: 10px;
    --display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
    --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    /* The pattern: pattern.webp is the full 1024px artwork tile (two repeats each way), drawn --tile wide and moved one
     * --tile per --bg-speed, so the loop lines up exactly. It's a lossless WebP with an 8-colour palette (the JPEG
     * speckle smoothed out first): lossy WebP's 4px blocks show as faint stripes over these flat colours. At the
     * default BACKGROUND_SPEED of 2 it matches the "Fast" animated banner: two repeats of the artwork every 10.8s. */
    --tile: 512px;
    --bg-speed: calc(21.6s / var(--bg-rate, 2)); /* --bg-rate: BACKGROUND_SPEED in config.php, 2 by default */
    color-scheme: dark;
}
@media (max-width: 640px) {
    :root { --tile: 320px; --bg-speed: calc(13.5s / var(--bg-rate, 2)); } /* same speed on screen, smaller icons */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font: 400 1.0625rem/1.65 var(--body);
    overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: 0.005em; }
code { font-family: ui-monospace, "JetBrains Mono", Consolas, monospace; font-size: 0.9em; background: rgba(255, 255, 255, 0.1); padding: 0.1em 0.35em; border-radius: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: #fff; color: var(--bg); padding: 8px 14px; border-radius: var(--radius-small); font-weight: 600; }
.skip:focus { top: 12px; }

/* ---- The moving background -------------------------------------------------------------------------------------
 * As in the reference animation: the pattern drifts diagonally up and to the right at a steady speed, forever.
 * The layer is one tile bigger than the screen to the left and below, and moves exactly one tile, so the end of each
 * loop lines up with its start and the seam never shows. A transform (not background-position) keeps it on the GPU.
 */
.bg-pattern {
    position: fixed;
    top: 0;
    right: 0;
    bottom: calc(var(--tile) * -1);
    left: calc(var(--tile) * -1);
    z-index: -2;
    background: var(--bg) url("/static/img/pattern.webp") 0 0 / var(--tile) var(--tile) repeat;
    animation: bg-drift var(--bg-speed) linear infinite;
    will-change: transform;
    pointer-events: none;
}
@keyframes bg-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(var(--tile), calc(var(--tile) * -1), 0); }
}
/* A flat, even tint over the pattern, so text on it stays easy to read. Deliberately not a vignette: any fade (a
 * gradient or a blurred shadow) has to step through the screen's 8-bit colour levels, and with the pattern moving
 * underneath, those steps showed as a fixed grid (gradients, which browsers dither) or faint vertical stripes
 * (shadows). An even tint has no steps. */
.bg-shade {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: rgba(26, 3, 44, 0.22);
}
.motion-off .bg-pattern { animation-play-state: paused; }
/* Held still while the "Welcome :)" music overlay waits for a choice (set in <head> on a first visit, and by site.js). */
.bg-held .bg-pattern { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .bg-pattern { animation: none; }
    .motion-toggle:not(.sound-toggle) { display: none !important; }
    html { scroll-behavior: auto; }
}

.motion-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 999px;
    padding: 5px 9px;
    cursor: pointer;
    font: inherit;
    line-height: 1;
}
.motion-toggle:hover { color: #fff; background: rgba(255, 255, 255, 0.16); }
.motion-toggle .icon { width: 16px; height: 16px; }
.motion-toggle .icon-play, .motion-off .motion-toggle .icon-pause { display: none; }
.motion-off .motion-toggle .icon-play { display: block; }

/* The music's on/off button (same look as the pause button) and the "Welcome :)" overlay, as on fluxer.name/ziad. */
.sound-toggle .icon-sound, .sound-toggle.is-on .icon-muted { display: none; }
.sound-toggle.is-on .icon-sound { display: block; }
.sound-toggle.is-on { color: #fff; background: rgba(199, 155, 255, 0.24); }
.footer-motion { display: inline-flex; align-items: center; gap: 8px; } /* a <div>: the music picker's menu can't sit in a <p> */
/* The music picker: a pill like the sound and pause buttons, opening a menu card above it. */
.track-picker { position: relative; display: inline-flex; }
.track-picker[hidden] { display: none; }
.track-picker-button { display: inline-flex; align-items: center; gap: 7px; max-width: min(240px, 52vw); padding: 5px 9px 5px 10px; border-radius: 999px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.08); color: var(--muted); font: inherit; font-size: 0.82rem; font-weight: 600; line-height: 1; cursor: pointer; }
.track-picker-button:hover, .track-picker-button[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, 0.16); }
.track-picker-button .icon { width: 15px; height: 15px; flex: none; }
.track-picker-current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-picker-chevron { opacity: 0.7; transition: transform 0.2s; }
.track-picker-button[aria-expanded="false"] .track-picker-chevron { transform: rotate(180deg); }
.track-menu { position: absolute; z-index: 50; right: 0; bottom: calc(100% + 10px); width: 270px; padding: 8px; border-radius: 14px; border: 1px solid rgba(199, 155, 255, 0.28); background: rgba(34, 6, 56, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 18px 44px rgba(8, 0, 16, 0.55); text-align: left; animation: menu-in 0.16s ease-out; }
.track-menu[hidden] { display: none; }
.holding .track-menu { right: auto; left: 50%; transform: translateX(-50%); animation: none; }
/* On narrow screens the footer's buttons sit on the left, so the menu opens from the picker's left edge. */
@media (max-width: 760px) { .site-footer .track-menu { right: auto; left: 0; } }
.track-menu-title { margin: 2px 8px 6px; color: var(--faint); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.track-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.track-option { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--muted); cursor: pointer; outline: none; }
.track-option:hover, .track-option:focus-visible { background: rgba(255, 255, 255, 0.08); color: #fff; }
.track-option[aria-selected="true"] { background: rgba(199, 155, 255, 0.16); color: #fff; }
.track-option img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; background: rgba(255, 255, 255, 0.06); flex: none; }
.track-option-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; line-height: 1.2; }
.track-option-text strong { color: #fff; font-size: 0.9rem; font-weight: 600; }
.track-option-text span { color: var(--faint); font-size: 0.8rem; }
.track-option-check { width: 16px; height: 16px; flex: none; color: var(--accent); visibility: hidden; }
.track-option[aria-selected="true"] .track-option-check { visibility: visible; }
.track-menu-more { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; padding: 8px 8px 2px; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.78rem; font-style: italic; }
.track-menu-more .icon { width: 14px; height: 14px; flex: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .track-menu { animation: none; } .track-picker-chevron { transition: none; } }
.sound-gate {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(10, 0, 18, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: gate-in 0.3s ease-out;
}
.sound-gate[hidden] { display: none; }
.sound-gate-open body { overflow: hidden; }
.sound-gate-inner { text-align: center; }
.sound-gate-play {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}
.sound-gate-play:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.06); }
/* The overlay focuses its play button when it opens (for keyboards): a soft glow round the circle, not an outline. */
.sound-gate-play:focus-visible { outline: none; border-color: rgba(255, 255, 255, 0.7); box-shadow: 0 0 0 6px rgba(199, 155, 255, 0.28); }
.sound-gate-play .icon { width: 26px; height: 26px; margin-left: 3px; }
.sound-gate-title { font-family: var(--display); font-weight: 600; font-size: 1.35rem; margin: 14px 0 2px; }
/* The overlay's track choices: one row per track, the chosen one lit up, and a note that more are coming. */
.track-choices { display: grid; gap: 6px; border: 0; margin: 14px auto 0; padding: 0; min-width: 0; width: min(300px, 100%); text-align: left; }
.track-choice { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.05); color: var(--muted); font-size: 0.92rem; cursor: pointer; }
.track-choice:hover { background: rgba(255, 255, 255, 0.1); }
.track-choice:has(input:checked) { color: #fff; border-color: rgba(199, 155, 255, 0.6); background: rgba(199, 155, 255, 0.16); }
.track-choice input { accent-color: var(--accent); margin: 0; flex: none; }
.track-choice strong { color: #fff; font-weight: 600; }
.track-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.3; }
.track-by { color: var(--faint); font-size: 0.85rem; }
.track-more { margin: 2px 0 0; color: var(--faint); font-size: 0.82rem; font-style: italic; text-align: center; }
.sound-gate-skip { margin-top: 18px; background: none; border: 0; color: var(--faint); font: inherit; font-size: 0.88rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sound-gate-skip:hover { color: #fff; }
@keyframes gate-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sound-gate { animation: none; } .sound-gate-play { transition: none; } .sound-gate-play:hover { transform: none; } }

/* ---- Layout --------------------------------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 800px; }
main { flex: 1; }
main:focus { outline: none; }
/* While a page change is loading (site.js), a thin bar along the top. */
.is-loading body::after { content: ""; position: fixed; top: 0; left: 0; height: 3px; width: 40%; z-index: 200; background: var(--accent); animation: loading-bar 1s ease-in-out infinite; }
@keyframes loading-bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .is-loading body::after { animation: none; width: 100%; opacity: 0.6; } }
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(10, 0, 20, 0.35);
}

.dev-banner {
    background: #ffd966;
    color: #2a0645;
    padding: 8px 20px;
    font-size: 0.9rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.dev-banner a { color: inherit; font-weight: 600; }
.dev-banner code { background: rgba(42, 6, 69, 0.12); }
.speed-control { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-right: 6px; }
.speed-control input { width: 140px; accent-color: #2a0645; }
.disclaimer-control { display: inline-flex; margin-right: 6px; border: 1px solid rgba(42, 6, 69, 0.45); border-radius: 999px; overflow: hidden; vertical-align: middle; }
.disclaimer-control button { border: 0; background: transparent; color: #2a0645; font: inherit; font-weight: 600; font-size: 0.8rem; padding: 2px 10px; cursor: pointer; }
.disclaimer-control button[aria-pressed="true"] { background: #2a0645; color: #ffd966; }
.disclaimer[hidden], .disclaimer-banner[hidden] { display: none; }
.speed-control output { min-width: 3.2em; text-align: left; font-variant-numeric: tabular-nums; }
.dev-banner strong { text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; margin-right: 6px; background: #2a0645; color: #ffd966; padding: 2px 7px; border-radius: 4px; }

/* ---- Header ----------------------------------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(26, 3, 44, 0.72);
    border-bottom: 1px solid var(--border);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.brand:hover { color: #fff; }
.brand img { height: 36px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.button) { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 500; }
.site-nav a:not(.button):hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.site-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.12); }
.site-nav .button { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: #fff; border-radius: var(--radius-small); padding: 8px; cursor: pointer; }
.nav-toggle .icon-close, .nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 760px) {
    .js .nav-toggle { display: inline-flex; }
    .js .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 20px 18px;
        background: var(--surface-strong);
        border-bottom: 1px solid var(--border);
    }
    .js .nav-open .site-nav { display: flex; }
    .site-nav .button { margin: 8px 0 0; justify-content: center; }
    html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: 10px; }
    html:not(.js) .site-nav { flex-wrap: wrap; }
}

/* ---- Buttons ---------------------------------------------------------------------------------------------------- */
.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--display);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}
.button:hover { color: #fff; background: rgba(255, 255, 255, 0.18); transform: translateY(-1px); }
.button.primary { background: #fff; color: var(--bg); border-color: #fff; box-shadow: 0 8px 24px rgba(10, 0, 20, 0.35); }
.button.primary:hover { color: var(--bg); background: #f1e6ff; }
.button.small { padding: 7px 14px; font-size: 0.95rem; }
.button .icon { width: 18px; height: 18px; }
.button.is-pending { opacity: 0.75; cursor: default; transform: none; box-shadow: none; }
.button.primary.is-pending { background: rgba(255, 255, 255, 0.85); }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button:hover { transform: none; } }

/* ---- Hero (home) -------------------------------------------------------------------------------------------- */
.hero { padding: 72px 0 40px; text-align: center; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-mark { width: clamp(150px, 26vw, 240px); height: auto; filter: drop-shadow(0 12px 30px rgba(10, 0, 20, 0.5)); }
.hero-wordmark { margin: 22px 0 30px; } /* room for the logo's hover above the tagline */
.hero-wordmark img { width: clamp(260px, 60vw, 560px); height: auto; display: block; filter: drop-shadow(0 8px 24px rgba(10, 0, 20, 0.5)); }
/* With LOGO_HOVER on (the logo-hover class), the logo hovers, as in the animated banner: from its own place it eases down and back up, two bobs to every repeat of
 * the background's artwork. It holds still with the background (the motion button, the music overlay, reduced motion). */
.logo-hover :is(.hero-mark, .hero-wordmark img, .holding-mark, .holding-wordmark img) { animation: logo-hover 5.4s ease-in-out infinite; }
@keyframes logo-hover { 50% { transform: translateY(var(--logo-drop, 14px)); } }
.motion-off :is(.hero-mark, .hero-wordmark img, .holding-mark, .holding-wordmark img),
.bg-held :is(.hero-mark, .hero-wordmark img, .holding-mark, .holding-wordmark img) { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .logo-hover :is(.hero-mark, .hero-wordmark img, .holding-mark, .holding-wordmark img) { animation: none; } }
.hero-tagline { font-family: var(--display); font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 500; color: var(--accent); margin: 0 0 12px; text-shadow: 0 2px 12px rgba(10, 0, 20, 0.6); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 1em; text-shadow: 0 1px 8px rgba(10, 0, 20, 0.5); }
.hero .lead { color: #efe4fb; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }

/* ---- Sections ------------------------------------------------------------------------------------------------ */
.section { padding: 36px 0; }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); text-align: center; text-shadow: 0 2px 14px rgba(10, 0, 20, 0.6); }
.section-lead { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 22px; }
.chips { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 860px; }
.chips li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px; font-family: var(--display); font-weight: 500; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 10px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.feature h3 { font-size: 1.3rem; margin: 12px 0 6px; }
.feature p { margin: 0; color: var(--muted); }
.feature-icon { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: rgba(199, 155, 255, 0.16); color: var(--accent); }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 30px; }
.cta > div:first-child { flex: 1 1 380px; }
.cta h2 { font-size: 1.8rem; }
.cta p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Prose pages ------------------------------------------------------------------------------------------------ */
.page-head { padding: 56px 0 14px; text-align: center; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3rem); text-shadow: 0 2px 16px rgba(10, 0, 20, 0.6); }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; margin-bottom: 14px; font-size: 0.95rem; }
.crumb .icon { width: 16px; height: 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.82rem; font-weight: 600; color: var(--accent); margin: 0 0 8px; }
.prose-section { padding-top: 10px; }
.prose { padding: 28px 32px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #eadff7; }
.prose ul { padding-left: 1.3em; }
.prose .updated { color: var(--faint); font-size: 0.9rem; margin-top: 2em; }
@media (max-width: 640px) { .prose { padding: 22px 18px; } }

.legal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 1.4em; }
.legal-grid a { display: block; padding: 16px 18px; border-radius: var(--radius-small); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.05); text-decoration: none; color: #fff; }
.legal-grid a:hover { background: rgba(255, 255, 255, 0.1); }
.legal-grid strong { display: block; font-family: var(--display); font-size: 1.1rem; font-weight: 600; }
.legal-grid span { color: var(--muted); font-size: 0.93rem; }

.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.15rem; padding: 12px 0; list-style-position: outside; }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0 0 14px; }

.team { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.team li { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius-small); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); }
.team img { border-radius: 50%; flex: none; }
.team strong { display: block; font-family: var(--display); font-size: 1.1rem; }
.team strong a { color: #fff; }
.team span { display: block; color: var(--muted); font-size: 0.93rem; }
.team-artist { margin-top: 2px; }
.team-artist a { font-weight: 600; }
.team-artist img { display: inline-block; width: 18px; height: 18px; margin: 0 4px 0 2px; vertical-align: -4px; border-radius: 0; object-fit: contain; }

/* Changelog: badges in the fixed order and colours (Added, Changed, Fixed, Removed, Security, Deprecated). */
.cl-badge { display: inline-block; font-family: var(--body); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 10px; border-radius: 999px; color: #fff; background: #6b5a80; }
.cl-badge.cl-added { background: #2ecc71; color: #08210f; }
.cl-badge.cl-changed { background: #3ba7ff; color: #04213a; }
.cl-badge.cl-fixed { background: #ffa64d; color: #3a1d00; }
.cl-badge.cl-removed { background: #ff4d4d; color: #3a0000; }
.cl-badge.cl-security { background: #b06bff; color: #1e0538; }
.cl-badge.cl-deprecated { background: #8a8a94; color: #15151a; }
.prose h3 { margin: 1em 0 0.4em; }

.error-page { padding-bottom: 60px; }

/* ---- Footer ----------------------------------------------------------------------------------------------------- */
.site-footer { margin-top: 48px; background: rgba(22, 2, 38, 0.86); border-top: 1px solid var(--border); padding: 40px 0 26px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.footer-brand { max-width: 340px; }
.footer-brand p { color: var(--muted); margin: 10px 0 14px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { display: inline-flex; padding: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.footer-social a:hover { color: #fff; background: rgba(255, 255, 255, 0.16); }
.footer-links { display: flex; flex-wrap: wrap; gap: 40px; }
.footer-links h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 10px; }
.footer-links a { display: block; color: var(--muted); text-decoration: none; padding: 3px 0; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--faint); font-size: 0.92rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--muted); }

/* "logo | A [pic] Ziad Agamy & [pic] StuxieDev Project": every picture muted until hovered, as on the StuxieDev sites. */
.footer-mark { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.footer-mark-logo { display: inline-flex; }
.footer-mark img { display: block; border-radius: 50%; filter: grayscale(1); opacity: 0.7; transition: filter 0.2s, opacity 0.2s; }
.footer-mark-logo:hover img, .footer-mark-logo:focus-visible img,
.footer-person:hover img, .footer-person:focus-visible img { filter: grayscale(0); opacity: 1; }
.footer-mark-sep { opacity: 0.5; }
/* One row, every part (the words and each picture-and-name) centred on the same line, so the names sit level with
 * "A", "&" and "Project" whatever the screen. */
.footer-credit { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; line-height: 20px; }
.footer-person { display: inline-flex; align-items: center; gap: 5px; line-height: 20px; color: var(--muted); text-decoration: none; }
a.footer-person:hover { color: #fff; }
.footer-person img { width: 20px; height: 20px; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .footer-mark img { transition: none; } }

/* "Powered by Stuxedo · Partnered with FluxerHost", with the same muted-until-hover logos. */
.partners { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; margin: 18px 0 0; color: var(--faint); font-size: 0.88rem; }
.partners > span { display: inline-flex; align-items: center; gap: 5px; line-height: 18px; } /* label and name level, as in .footer-credit */
.partner { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-weight: 600; text-decoration: none; }
a.partner:hover { color: #fff; }
.partner img { display: block; width: 18px; height: 18px; object-fit: contain; filter: grayscale(1); opacity: 0.7; transition: filter 0.2s, opacity 0.2s; }
a.partner:hover img, a.partner:focus-visible img, .partner:hover img { filter: grayscale(0); opacity: 1; }
.partners-sep { opacity: 0.5; }
.holding .partners { margin-top: 10px; }
.holding-credit { justify-content: center; margin: 0; color: var(--faint); font-size: 0.9rem; } /* "A Ziad Agamy & StuxieDev Project" */
@media (prefers-reduced-motion: reduce) { .partner img { transition: none; } }

/* ---- Holding pages (coming soon / maintenance) ------------------------------------------------------------- */
.holding-main { flex: 1; display: grid; place-items: center; padding: 40px 20px; }
.holding-card { text-align: center; max-width: 640px; }
.holding-mark { width: clamp(130px, 30vw, 200px); height: auto; filter: drop-shadow(0 12px 30px rgba(10, 0, 20, 0.55)); }
.holding-wordmark { margin: 20px 0 36px; } /* room for the logo's hover */
.holding-wordmark img { width: clamp(240px, 70vw, 420px); height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 8px 24px rgba(10, 0, 20, 0.55)); }
.holding-card h2 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); text-shadow: 0 2px 16px rgba(10, 0, 20, 0.6); }
.holding-card .eyebrow { display: inline-block; background: rgba(255, 255, 255, 0.12); border: 1px solid var(--border); color: #fff; padding: 5px 14px; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.holding-contact { color: var(--muted); margin-top: 20px; }
/* A <div>, not a <p>: the music picker's menu can't sit inside a paragraph. On phones the buttons wrap under the
 * copyright line as one group. */
.holding-foot { color: var(--faint); font-size: 0.9rem; margin: 28px 0 1em; display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.holding-copy { white-space: nowrap; }
.holding-controls { display: inline-flex; align-items: center; gap: 10px; }

/* ---- The invite page (/invite, invite.fluxer.music), after robo.st's: a tile per place to join -------------------- */
.invite-page { text-align: center; padding-top: 64px; }
.invite-page h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 10px; }
.invite-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 30px 0 26px; }
.invite-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; width: min(300px, 100%); padding: 30px 24px 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--muted); text-decoration: none; transition: transform 0.15s, border-color 0.15s, background 0.15s; }
a.invite-tile:hover, a.invite-tile:focus-visible { transform: translateY(-3px); border-color: rgba(199, 155, 255, 0.6); background: rgba(199, 155, 255, 0.12); }
.invite-tile-icon { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 12px; border-radius: 22px; background: rgba(199, 155, 255, 0.16); color: #fff; }
.invite-tile-icon .icon { width: 52px; height: 52px; }
.invite-tile-brand { color: var(--faint); font-size: 0.9rem; font-weight: 600; }
.invite-tile-name { font-family: var(--display); font-size: 1.8rem; font-weight: 600; color: #fff; line-height: 1.1; }
.invite-tile-about { margin-top: 6px; }
.invite-tile-url { margin-top: 12px; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.invite-tile-soon { margin-top: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: var(--faint); font-size: 0.82rem; font-weight: 600; }
.invite-tile.is-pending { opacity: 0.85; }
.invite-help { color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .invite-tile { transition: none; } a.invite-tile:hover { transform: none; } }

/* ---- The disclaimer: along the bottom of every page, or a strip across the top (DISCLAIMER_POSITION) ------------- */
.disclaimer { margin: 14px auto 0; max-width: 720px; text-align: center; color: var(--faint); font-size: 0.8rem; line-height: 1.5; }
.disclaimer a { color: var(--muted); }
.holding .disclaimer { margin-top: 12px; }
.disclaimer-banner { padding: 8px 20px; text-align: center; font-size: 0.86rem; color: #efe4fb; background: rgba(42, 6, 69, 0.92); border-bottom: 1px solid rgba(199, 155, 255, 0.28); }
.disclaimer-banner a { color: var(--accent); font-weight: 600; }
