:root {
    color-scheme: dark;
    --bg: #060709;
    --wall: #090b0f;
    --frame-matte: #0e1015;
    --glass: rgba(10, 12, 16, 0.72);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.22);
    --text: #f0f2f5;
    --text-soft: rgba(240, 242, 245, 0.80);
    --text-muted: rgba(164, 172, 186, 0.70);
    --accent: #d8b27c;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

body.mode-spatial {
    overflow: hidden;
    user-select: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------------- HUD MUSÉAL ULTRA-DISCRET ---------------- */
.hud-bar {
    position: fixed;
    top: 18px;
    left: 24px;
    right: 24px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    pointer-events: none;
    opacity: 0.78;
    transition: opacity 0.3s ease;
}

.hud-bar:hover {
    opacity: 1;
}

.hud-brand, .hud-clusters, .hud-actions {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(8, 10, 14, 0.56);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    padding: 7px 16px;
}

.hud-clusters:empty {
    display: none;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: lowercase;
    color: var(--text);
}

.brand-author-whisper {
    appearance: none;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 300;
    letter-spacing: 0.08em;
    color: rgba(164, 172, 186, 0.44);
    padding: 2px 0 2px 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: color 0.3s ease;
}

.hud-brand:hover .brand-author-whisper,
.brand-author-whisper:hover {
    color: rgba(216, 178, 124, 0.92);
}

.brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(216, 178, 124, 0.8);
}

.hud-sep {
    color: var(--text-muted);
    opacity: 0.35;
    font-size: 12px;
}

.hud-link {
    appearance: none;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.03em;
    padding: 3px 6px;
    cursor: pointer;
    transition: color 0.22s ease;
    white-space: nowrap;
}

.hud-link:hover {
    color: var(--text);
}

.hud-link-accent {
    color: var(--accent);
}

/* Bonus discret en haut à gauche : filtrer par appareil & optique */
.gear-menu-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.brand-gear-btn {
    appearance: none;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(164, 172, 186, 0.45);
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 300;
    letter-spacing: 0.06em;
    padding: 2px 0 2px 10px;
    cursor: pointer;
    transition: color 0.25s ease;
    white-space: nowrap;
}

.brand-gear-btn:hover,
.brand-gear-btn.is-active {
    color: var(--accent);
}

.gear-popover {
    position: absolute;
    left: 0;
    top: calc(100% + 14px);
    width: 248px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(10, 12, 17, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 45;
}

.gear-popover[hidden],
.gear-popover:not(.is-open) {
    display: none !important;
}

.gear-popover.is-open {
    display: flex;
}

.gear-popover label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.gear-popover select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-soft);
    border-radius: 6px;
    padding: 6px 8px;
    font-family: inherit;
    font-size: 12px;
}

.gear-reset-btn {
    appearance: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 6px;
    padding: 6px;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    margin-top: 4px;
}

.gear-reset-btn:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

.spatial-card.is-filtered-out,
.linear-card.is-filtered-out {
    display: none !important;
}

.hud-pill {
    appearance: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.hud-pill:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

/* ---------------- TOILE SPATIALE (SALLE OBSCURE D'EXPOSITION) ---------------- */
.spatial-viewport {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    cursor: grab;
    outline: none;
    /* Éclairage de salle muséale feutrée */
    background:
        radial-gradient(ellipse 75% 65% at 50% 42%, rgba(28, 34, 46, 0.28), transparent 72%),
        radial-gradient(circle at 20% 75%, rgba(164, 122, 74, 0.06), transparent 45%),
        var(--bg);
}

.spatial-viewport.is-dragging {
    cursor: grabbing;
}

.spatial-world {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform-origin: 0 0;
    will-change: transform;
}

.world-grid {
    position: absolute;
    left: -5000px;
    top: -5000px;
    width: 10000px;
    height: 10000px;
    /* Repères architecturaux quasi imperceptibles */
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 110px 110px;
    pointer-events: none;
}

.cluster-anchor {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 280px;
}

.cluster-title {
    font-family: var(--font-serif);
    font-size: 30px;
    font-style: italic;
    font-weight: 400;
    color: rgba(240, 242, 245, 0.42);
    letter-spacing: 0.02em;
}

.cluster-sub {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(164, 172, 186, 0.34);
}

/* Cadre tirage d'art + apparition progressive dans la balade */
.spatial-card {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: center center;
    transition: opacity 0.55s ease;
}

.spatial-card.is-far {
    opacity: 0.22;
}

.spatial-card.is-culled {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.card-frame {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 7px;
    border-radius: 3px;
    background: var(--frame-matte);
    border: 1px solid rgba(255, 255, 255, 0.075);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.90),
        0 0 0 1px rgba(0, 0, 0, 0.6);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.card-frame::before {
    content: '';
    position: absolute;
    inset: -24px;
    z-index: -1;
    border-radius: 16px;
    background: radial-gradient(circle, var(--dom-color, #2a3240) 0%, transparent 70%);
    opacity: 0.16;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.card-frame:hover {
    border-color: rgba(216, 178, 124, 0.42);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.96),
        0 0 42px rgba(216, 178, 124, 0.08);
}

.card-frame:hover::before {
    opacity: 0.36;
}

.card-frame picture,
.card-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1px;
}

/* Cartel flottant SOUS le cadre (jamais par-dessus l'image) */
.card-caption {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.card-caption-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.spatial-card.is-current-cell .card-caption,
.card-frame:hover .card-caption {
    opacity: 0.94;
    transform: translateY(0);
}

.card-story {
    margin: 0;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.45;
    color: rgba(218, 222, 232, 0.72);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-weight: 400;
    color: var(--text-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-place {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ---------------- MINI-CARTE RADAR ---------------- */
.minimap {
    position: fixed;
    right: 22px;
    bottom: 20px;
    z-index: 35;
    background: rgba(8, 10, 14, 0.56);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 7px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0.72;
    transition: opacity 0.25s ease;
}

.minimap:hover {
    opacity: 1;
}

#minimap-canvas {
    display: block;
    border-radius: 6px;
    background: rgba(4, 5, 7, 0.65);
    cursor: crosshair;
}

.minimap-controls {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}

.minimap-controls button {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    border-radius: 6px;
    font-size: 12px;
    padding: 2px 0;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.minimap-controls button:hover {
    color: var(--text);
    border-color: var(--border-hover);
}

/* Barre discrète de balade chronologique entre les cellules */
.stroll-bar {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 32;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--glass);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.stroll-btn {
    appearance: none;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 11.5px;
    padding: 2px 6px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.stroll-btn:hover,
.stroll-btn.is-active {
    color: var(--accent);
    background: rgba(216, 178, 124, 0.10);
}

.stroll-label {
    font-size: 11.5px;
    color: var(--text-soft);
    letter-spacing: 0.02em;
    max-width: 340px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------------- SALLE DE CONTEMPLATION (FOCUS VIEW) ---------------- */
.focus-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: stretch;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s ease, visibility 0.32s ease;
}

.focus-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.focus-backdrop {
    position: absolute;
    inset: 0;
    /* Éclairage focal doux centré sur l'œuvre */
    background:
        radial-gradient(ellipse 65% 58% at 50% 42%, rgba(28, 32, 42, 0.42), rgba(5, 6, 8, 0.97) 75%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.focus-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    max-width: 1360px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 18px 28px 22px;
    gap: 16px;
}

.focus-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.72;
    transition: opacity 0.35s ease;
}

.focus-topbar:hover {
    opacity: 1;
}

.focus-nav-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.focus-stage {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
}

.focus-figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.focus-picture-mount {
    padding: 9px;
    background: var(--frame-matte);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    box-shadow:
        0 38px 110px rgba(0, 0, 0, 0.92),
        0 0 80px rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition: transform 0.35s ease;
}

.focus-picture-mount picture,
.focus-picture-mount img {
    display: block;
    max-width: 90vw;
    max-height: 78vh;
    width: auto;
    height: auto;
    border-radius: 1px;
}

/* Zoom jusqu'à 100% pleine résolution native + rendu tuilé sans tuile noire GPU mobile */
.focus-overlay.is-zoomed .focus-backdrop {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #060709;
}

.focus-overlay.is-zoomed .focus-shell {
    max-width: none;
    padding: 14px 20px;
}

.focus-overlay.is-zoomed .focus-stage {
    position: relative;
    overflow: auto;
    align-items: flex-start;
    justify-content: flex-start;
    cursor: grab;
    touch-action: pan-x pan-y pinch-zoom;
    scrollbar-width: thin;
    scrollbar-color: rgba(216, 178, 124, 0.35) transparent;
}

.focus-overlay.is-zoomed.is-canvas-zoom .focus-stage {
    overflow: hidden;
    touch-action: none;
}

.focus-overlay.is-zoomed.is-canvas-zoom .focus-figure {
    display: none;
}

.focus-zoom-canvas {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: grab;
}

.focus-overlay.is-zoomed.is-canvas-zoom .focus-zoom-canvas {
    display: block;
}

.focus-overlay.is-zoomed .focus-stage.is-panning,
.focus-overlay.is-zoomed.is-canvas-zoom .focus-stage.is-panning .focus-zoom-canvas {
    cursor: grabbing;
}

.focus-overlay.is-zoomed .focus-figure {
    max-width: none;
    max-height: none;
    margin: auto;
}

.focus-overlay.is-zoomed .focus-picture-mount {
    box-shadow: none;
    transition: none;
    border: none;
    padding: 0;
    background: transparent;
}

.focus-overlay.is-zoomed .focus-picture-mount picture,
.focus-overlay.is-zoomed .focus-picture-mount img {
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
}

/* Murmure minimal sous l'image : Titre, Lieu et Le texte d'Alex */
.focus-whisper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 2px 0;
}

.focus-whisper-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.focus-whisper-narrative {
    margin: 0;
    max-width: 680px;
    text-align: center;
    font-size: 13.5px;
    font-weight: 300;
    line-height: 1.55;
    color: var(--text-soft);
}

.focus-whisper-title {
    font-family: var(--font-serif);
    font-size: 17px;
    color: var(--text-soft);
}

.focus-whisper-place {
    font-size: 11.5px;
    color: rgba(216, 178, 124, 0.78);
}

.focus-whisper-toggle {
    appearance: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 3px 10px;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.focus-whisper-toggle:hover {
    color: var(--accent);
    border-color: rgba(216, 178, 124, 0.45);
}

/* Cartel repliable non-intrusif : ouvert uniquement sur demande */
.focus-cartel {
    display: none;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 28px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(12, 14, 20, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.focus-overlay.has-drawer .focus-cartel {
    display: grid;
}

.focus-overlay.has-drawer .focus-picture-mount picture,
.focus-overlay.has-drawer .focus-picture-mount img {
    max-height: 60vh;
}

.cartel-main {
    min-width: 0;
    max-width: 680px;
}

.focus-title {
    margin: 0 0 6px;
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--text);
}

.focus-narrative {
    margin: 0 0 10px;
    font-size: 14.5px;
    font-weight: 300;
    line-height: 1.62;
    color: var(--text-soft);
}

.cartel-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.meta-dot {
    opacity: 0.35;
}

.sig-pill {
    font-size: 10px;
    letter-spacing: 0.04em;
    color: rgba(216, 178, 124, 0.72);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 8px;
}

.cartel-geo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cartel-geo-text {
    text-align: right;
}

.focus-place {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-soft);
}

.focus-region {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.focus-osm-map {
    width: 168px;
    height: 86px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    background: #0a0c10;
    opacity: 0.78;
    transition: opacity 0.25s ease, border-color 0.25s ease;
}

.focus-osm-map:hover {
    opacity: 1;
    border-color: rgba(216, 178, 124, 0.4);
}

/* Masque attribution Leaflet sur la micro-vignette uniquement? Non, on la garde discrète en tout petit */
.focus-osm-map .leaflet-control-attribution {
    font-size: 7px !important;
    background: rgba(6, 7, 9, 0.65) !important;
    color: rgba(255, 255, 255, 0.45) !important;
    padding: 0 4px !important;
}

.focus-osm-map .leaflet-control-attribution a {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* ---------------- MODALE CARTE OSM GLOBALE ---------------- */
.world-map-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(5, 6, 8, 0.88);
    backdrop-filter: blur(18px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.world-map-modal.is-open {
    display: flex;
}

.world-map-card {
    width: min(980px, 94vw);
    height: min(640px, 84vh);
    background: #0d0f14;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 36px 100px rgba(0, 0, 0, 0.85);
}

.world-map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

.global-osm-map {
    flex: 1;
    width: 100%;
    background: #090b0e;
}

/* Modale À propos d'Alexandre MODESTO */
.about-card {
    width: min(680px, 94vw);
    height: auto;
    max-height: 86vh;
}

.about-body {
    padding: 24px 26px 28px;
    overflow-y: auto;
}

.about-headline {
    margin: 0 0 6px;
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--text);
}

.about-location {
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.about-bio {
    margin: 0 0 20px;
    font-size: 14.5px;
    line-height: 1.72;
    color: var(--text-soft);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.about-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.about-item-full {
    grid-column: 1 / -1;
}

.about-k {
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.about-v {
    font-size: 13px;
    color: var(--text-soft);
    word-break: break-word;
}

a.about-v:hover {
    color: var(--accent);
}

.about-key {
    font-size: 11px;
    color: rgba(216, 178, 124, 0.85);
}

/* ---------------- CATALOGUE LINÉAIRE (/galerie) ---------------- */
.linear-main {
    max-width: 1260px;
    margin: 0 auto;
    padding: 108px 32px 84px;
}

.linear-header {
    margin-bottom: 52px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
}

.linear-header h1 {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 400;
    margin: 0 0 8px;
    letter-spacing: 0.01em;
}

.linear-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

.linear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 44px 34px;
}

.linear-card {
    background: transparent;
    transition: transform 0.3s ease;
}

.linear-card:hover {
    transform: translateY(-3px);
}

.linear-card picture {
    display: block;
    padding: 7px;
    background: var(--frame-matte);
    border: 1px solid var(--border);
    border-radius: 3px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
    transition: border-color 0.3s ease;
}

.linear-card:hover picture {
    border-color: rgba(216, 178, 124, 0.42);
}

.linear-card img {
    display: block;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.linear-card-meta {
    padding: 14px 2px 0;
}

.linear-card-meta h2 {
    margin: 0 0 4px;
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
}

.linear-place {
    margin: 0 0 6px;
    font-size: 11.5px;
    color: var(--accent);
    letter-spacing: 0.03em;
}

.linear-story {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--text-muted);
}

.empty-floating, .empty-state {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-muted);
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 24px 32px;
    border-radius: 12px;
}

.empty-state {
    position: static;
    transform: none;
}

.empty-hint code {
    color: var(--accent);
}

.linear-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 34px auto 8px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

/* ---------------- RESPONSIVE (CHROME PC & ANDROID MOBILE) ---------------- */
@media (max-width: 920px) {
    .hud-bar {
        top: 10px;
        left: 10px;
        right: 10px;
        gap: 8px;
    }
    .hud-brand, .hud-actions {
        padding: 6px 11px;
        gap: 8px;
    }
    .brand-author-whisper {
        display: none;
    }
    .brand-gear-btn {
        max-width: 125px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .gear-popover {
        width: min(260px, calc(100vw - 24px));
    }
    .hud-clusters {
        display: none;
    }
    .focus-overlay {
        height: 100dvh;
    }
    .focus-shell {
        padding: 12px 12px max(14px, env(safe-area-inset-bottom));
        gap: 10px;
    }
    .focus-picture-mount picture,
    .focus-picture-mount img {
        max-height: 62dvh;
        max-width: 94vw;
    }
    .focus-overlay.is-zoomed .focus-picture-mount picture,
    .focus-overlay.is-zoomed .focus-picture-mount img {
        max-height: none;
        max-width: none;
    }
    .focus-cartel {
        grid-template-columns: 1fr;
        gap: 14px;
        max-height: 42dvh;
        overflow-y: auto;
    }
    .cartel-geo {
        justify-content: space-between;
    }
    .cartel-geo-text {
        text-align: left;
    }
    .minimap {
        right: 12px;
        bottom: calc(68px + env(safe-area-inset-bottom));
        width: 124px;
        padding: 6px;
    }
    .minimap canvas {
        width: 112px;
        height: 74px;
    }
    .stroll-bar {
        width: calc(100vw - 20px);
        max-width: 440px;
        bottom: max(12px, env(safe-area-inset-bottom));
        justify-content: space-between;
        padding: 7px 12px;
    }
    .stroll-label {
        max-width: 46vw;
        font-size: 11px;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
}
