/* ============================================================
   UNGODLY GFX — Installation Guide for Lorn's Lure
   by StixsworldHD (StixsmasterHD4k)

   Design language, derived from the game itself:
   · location-card page titles (serif word / lit rule / serif word)
   · concrete-and-void surfaces with a faint PSX dither grain
   · signal-orange accents (the crosshair, the hazard stripes)
   · mono utility type for anything you can type or press
   ============================================================ */

/* ------------------------------------------------ tokens */
:root {
    --void:       #0a0d12;   /* page background            */
    --pit:        #07090d;   /* deepest surfaces           */
    --concrete:   #141a22;   /* panels                     */
    --concrete-2: #1a212c;   /* raised / hover panels      */
    --ink:        #0c1016;   /* code slabs                 */
    --seam:       #232c39;   /* borders — concrete seams   */
    --seam-soft:  #1b222d;
    --dust:       #9aa4b5;   /* body text                  */
    --dust-dim:   #677283;   /* captions, meta             */
    --bone:       #ece7db;   /* headings — title-card white*/
    --signal:     #f6931d;   /* crosshair orange           */
    --signal-hi:  #ffb14e;
    --ok:         #6fd39a;
    --warn:       #e2593f;

    --font-display: "Cormorant Garamond", "Times New Roman", serif;
    --font-body:    "Archivo", "Segoe UI", system-ui, sans-serif;
    --font-mono:    "IBM Plex Mono", "Consolas", monospace;

    --wrap: 1060px;
    --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--void);
    color: var(--dust);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

::selection { background: var(--signal); color: #10131a; }

:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 2px;
    border-radius: 2px;
}

/* faint static dither over everything below the chrome —
   the megastructure's film of dust */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 30;
    pointer-events: none;
    opacity: .045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: clamp(18px, 4vw, 32px);
}

.skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--signal);
    color: #10131a;
    font: 600 13px var(--font-mono);
    text-decoration: none;
    border-radius: var(--radius);
    transition: top .15s ease;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------ links & type */
a { color: var(--signal-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(246, 147, 29, .35); }
a:hover { text-decoration-color: var(--signal-hi); }

p { margin: 0 0 1.05em; }

h3 {
    margin: 2.1em 0 .55em;
    font: 600 1.06rem/1.35 var(--font-body);
    color: var(--bone);
    letter-spacing: .01em;
}

ul, ol { padding-left: 1.35em; margin: 0 0 1.1em; }
li { margin-bottom: .45em; }
li::marker { color: var(--signal); }

hr {
    border: 0;
    border-top: 1px solid var(--seam-soft);
    margin: 2.6rem 0;
}

kbd {
    display: inline-block;
    padding: 1px 8px 2px;
    font: 500 12.5px var(--font-mono);
    color: var(--bone);
    background: var(--concrete-2);
    border: 1px solid var(--seam);
    border-bottom-width: 2px;
    border-radius: 5px;
}

code {
    font: 500 .85em var(--font-mono);
    color: #d9e0ea;
    background: var(--ink);
    border: 1px solid var(--seam-soft);
    border-radius: 3px;
    padding: 1px 6px 2px;
    overflow-wrap: anywhere;
}

/* section header in the style of the plugin menu's own
   orange smallcaps strips ("CLIP PLANES ───────────") */
.sec {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 3.1rem 0 1.1rem;
    font: 600 12.5px var(--font-mono);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--signal);
}
.sec::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--seam), transparent);
}

.lede {
    font-size: 1.06rem;
    color: #b4bdcb;
    max-width: 72ch;
}

.prose { max-width: 76ch; }

/* ------------------------------------------------ site header */
.site-head {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(10, 13, 18, .86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--seam-soft);
}

.site-head-in {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 62px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    width: 30px;
    height: 30px;
    flex: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='6' fill='%2307090d'/%3E%3Cpath d='M7 9h5M7 9v5M25 9h-5M25 9v5M7 23h5M7 23v-5M25 23h-5M25 23v-5' stroke='%23f6931d' stroke-width='2' fill='none' opacity='.55'/%3E%3Crect x='11' y='15' width='10' height='2.6' fill='%23f6931d'/%3E%3C/svg%3E") center/contain no-repeat;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font: 700 14px var(--font-body); letter-spacing: .22em; color: var(--bone); }
.brand-sub  { font: 400 10.5px var(--font-mono); letter-spacing: .12em; color: var(--dust-dim); }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
    display: inline-block;
    padding: 6px 2px;
    font: 500 12px var(--font-mono);
    letter-spacing: .09em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--dust);
    border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--bone); }
.site-nav a.is-active { color: var(--signal); border-bottom-color: var(--signal); }
.nav-num { color: var(--dust-dim); }
.site-nav a.is-active .nav-num { color: var(--signal); }

.nav-toggle {
    display: none;
    margin-left: auto;
    align-items: center;
    gap: 10px;
    background: none;
    border: 1px solid var(--seam);
    border-radius: var(--radius);
    padding: 8px 14px;
    color: var(--bone);
    font: 500 12px var(--font-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
}
.nav-toggle-bar {
    width: 16px; height: 2px; background: var(--signal);
    box-shadow: 0 -5px 0 var(--signal), 0 5px 0 var(--signal);
}

@media (max-width: 1080px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 100%;
        background: rgba(9, 12, 17, .98);
        border-bottom: 1px solid var(--seam);
        padding: 10px clamp(18px, 4vw, 32px) 18px;
    }
    .nav-open .site-nav { display: block; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav a { display: block; padding: 11px 2px; border-bottom: 1px solid var(--seam-soft); font-size: 13px; }
    .site-nav a.is-active { border-bottom-color: var(--signal); }
}

/* ------------------------------------------------ title cards
   The signature: every chapter opens like one of the game's
   area cards — serif word, lit rule, serif word.             */
.tcard-zone {
    background:
        radial-gradient(60% 120% at 50% 0%, rgba(246, 147, 29, .05), transparent 60%),
        linear-gradient(180deg, var(--pit), var(--void) 85%);
    border-bottom: 1px solid var(--seam-soft);
    padding: clamp(48px, 8vw, 84px) 0 clamp(30px, 5vw, 46px);
    text-align: center;
}

.tcard-eyebrow {
    margin: 0 0 1.6rem;
    font: 500 11px var(--font-mono);
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--dust-dim);
    animation: rise .7s ease .05s backwards;
}

.tcard-title { margin: 0; font-family: var(--font-display); color: var(--bone); }

.tcard-top {
    display: block;
    font-size: clamp(1.7rem, 4.5vw, 2.9rem);
    font-weight: 300;
    letter-spacing: .42em;
    text-indent: .42em; /* recenter tracked caps */
    animation: rise .7s ease .12s backwards;
}

.tcard-rule {
    display: block;
    width: min(460px, 72%);
    height: 2px;
    margin: 14px auto 12px;
    background: linear-gradient(90deg, transparent, #fdfbf5 18%, #fdfbf5 82%, transparent);
    box-shadow: 0 0 16px rgba(253, 251, 245, .55), 0 0 42px rgba(246, 147, 29, .25);
    transform: rotate(-1.3deg);
    animation: ignite .8s cubic-bezier(.2, .7, .2, 1) .18s backwards;
}

.tcard-bottom {
    display: block;
    font-size: clamp(2.7rem, 8vw, 5.4rem);
    font-weight: 500;
    letter-spacing: .16em;
    text-indent: .16em;
    line-height: 1.05;
    text-shadow: 0 0 34px rgba(236, 231, 219, .16);
    animation: rise .7s ease .22s backwards;
}

.tcard-sub {
    max-width: 64ch;
    margin: 1.5rem auto 0;
    color: var(--dust);
    font-size: 1.02rem;
    animation: rise .7s ease .32s backwards;
}

@keyframes rise   { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ignite { from { opacity: 0; transform: rotate(-1.3deg) scaleX(.1); } to { opacity: 1; transform: rotate(-1.3deg) scaleX(1); } }

.route-chips { margin-top: clamp(22px, 4vw, 34px); }
.route-chips ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0; padding: 0;
    list-style: none;
}
.route-chips a {
    display: inline-block;
    padding: 7px 13px;
    font: 500 11.5px var(--font-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--dust);
    border: 1px solid var(--seam);
    border-radius: 999px;
    background: rgba(20, 26, 34, .5);
    transition: border-color .15s, color .15s;
}
.route-chips a:hover { border-color: var(--signal); color: var(--signal-hi); }

/* ------------------------------------------------ index hero */
.hero {
    position: relative;
    text-align: center;
    padding: clamp(72px, 12vw, 150px) 0 clamp(56px, 9vw, 108px);
    border-bottom: 1px solid var(--seam-soft);
    background:
        linear-gradient(180deg, rgba(7, 9, 13, .72), rgba(10, 13, 18, .94) 72%, var(--void)),
        url("../img/thumb/wall-title-card.jpg") center 32% / cover no-repeat;
}

.hero .tcard-bottom { font-size: clamp(3.4rem, 10vw, 6.6rem); }

.hero-micro {
    margin: 1.9rem 0 0;
    font: 500 12px var(--font-mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dust-dim);
}
.hero-micro b { color: var(--signal); font-weight: 600; }

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 2.1rem;
}

/* ------------------------------------------------ buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 21px;
    font: 600 12.5px var(--font-mono);
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s, border-color .15s, color .15s;
}
.btn--solid { background: var(--signal); color: #10131a; }
.btn--solid:hover { background: var(--signal-hi); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(246, 147, 29, .28); }
.btn--ghost { border-color: var(--seam); color: var(--bone); }
.btn--ghost:hover { border-color: var(--signal); color: var(--signal-hi); }
.btn--wide { width: 100%; justify-content: center; }

/* ------------------------------------------------ steps */
.step { margin: 3.4rem 0; }

.step-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--seam-soft);
}

.step-num {
    font: 500 2rem/1 var(--font-display);
    color: var(--signal);
    min-width: 1.6ch;
    text-align: right;
}

.step-title { margin: 0; font: 600 clamp(1.22rem, 2.4vw, 1.45rem)/1.3 var(--font-body); color: var(--bone); }
.step-anchor { color: inherit; text-decoration: none; }
.step-anchor:hover { text-decoration: underline; text-decoration-color: var(--signal); text-underline-offset: 5px; }

.step-body { max-width: 76ch; }
.step-body > :last-child { margin-bottom: 0; }

/* ------------------------------------------------ callouts */
.callout {
    position: relative;
    margin: 1.6rem 0;
    padding: 17px 20px 15px 24px;
    background: var(--concrete);
    border: 1px solid var(--seam);
    border-radius: var(--radius);
    overflow: hidden;
}
.callout::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: var(--seam);
}
.callout--warn::before {
    width: 7px;
    background: repeating-linear-gradient(135deg, var(--signal) 0 7px, #0b0e13 7px 14px);
}
.callout--ok::before { background: var(--ok); }

.callout-tag {
    margin: 0 0 2px;
    font: 600 10.5px var(--font-mono);
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--dust-dim);
}
.callout--warn .callout-tag { color: var(--signal); }
.callout--ok .callout-tag { color: var(--ok); }

.callout-title { margin: 0 0 .45em; font: 600 15.5px var(--font-body); color: var(--bone); }
.callout-body { font-size: 14.5px; }
.callout-body > :last-child { margin-bottom: 0; }

/* ------------------------------------------------ code slabs */
.code {
    position: relative;
    margin: 1.4rem 0;
    background: var(--ink);
    border: 1px solid var(--seam);
    border-radius: var(--radius);
}
.code pre {
    margin: 0;
    padding: 38px 18px 16px;
    overflow-x: auto;
    font: 400 13px/1.7 var(--font-mono);
    color: #ccd5e2;
}
.code pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }

.code-label {
    position: absolute;
    top: 0; left: 0;
    padding: 6px 12px;
    font: 600 10px var(--font-mono);
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dust-dim);
    border-right: 1px solid var(--seam-soft);
    border-bottom: 1px solid var(--seam-soft);
    border-radius: var(--radius) 0 var(--radius) 0;
}

.code-copy, .chip-copy {
    font: 600 10.5px var(--font-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dust);
    background: var(--concrete);
    border: 1px solid var(--seam);
    border-radius: 3px;
    padding: 5px 10px;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}
.code-copy { position: absolute; top: 8px; right: 8px; }
.code-copy:hover, .chip-copy:hover { color: var(--signal-hi); border-color: var(--signal); }
.code-copy.copied, .chip-copy.copied { color: var(--ok); border-color: var(--ok); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0;
    max-width: 100%;
}
.chip code { font-size: 12.5px; padding: 4px 9px; }
.chip-copy { padding: 4px 9px; flex: none; }

/* ------------------------------------------------ screenshots */
.shot { margin: 1.8rem 0; }
.shot .lb {
    position: relative;
    display: block;
    border: 1px solid var(--seam);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--pit);
    transition: border-color .15s ease;
}
.shot .lb:hover, .shot .lb:focus-visible { border-color: rgba(246, 147, 29, .65); }
.shot img { display: block; width: 100%; height: auto; }

.shot-zoom {
    position: absolute;
    right: 10px; bottom: 10px;
    padding: 6px 11px;
    font: 600 10.5px var(--font-mono);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bone);
    background: rgba(9, 12, 17, .85);
    border: 1px solid var(--seam);
    border-radius: 3px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease;
    pointer-events: none;
}
.shot .lb:hover .shot-zoom, .shot .lb:focus-visible .shot-zoom { opacity: 1; transform: none; }

.shot figcaption {
    margin-top: 9px;
    font-size: 13.5px;
    color: var(--dust-dim);
    max-width: 80ch;
}
.shot figcaption code { font-size: 12px; }

/* ------------------------------------------------ tables */
.tbl { width: 100%; border-collapse: collapse; margin: 1.4rem 0 1.8rem; font-size: 14.5px; }
.tbl th {
    padding: 9px 12px;
    text-align: left;
    font: 600 11px var(--font-mono);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dust-dim);
    border-bottom: 1px solid var(--seam);
}
.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--seam-soft); vertical-align: top; }
.tbl td:first-child { white-space: nowrap; }
@media (max-width: 640px) { .tbl td:first-child { white-space: normal; } }

/* ------------------------------------------------ card grids */
.grid { display: grid; gap: 16px; margin: 1.6rem 0; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }

.panel {
    background: var(--concrete);
    border: 1px solid var(--seam);
    border-radius: 6px;
    padding: 20px 20px 18px;
}
.panel h3 { margin: 0 0 .5em; font-size: 1rem; }
.panel p { font-size: 14px; margin-bottom: .5em; }
.panel > :last-child { margin-bottom: 0; }

.panel-kicker {
    display: block;
    margin-bottom: 10px;
    font: 600 10.5px var(--font-mono);
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--signal);
}

/* route map cards on the index */
.route-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--concrete);
    border: 1px solid var(--seam);
    border-radius: 6px;
    padding: 20px;
    transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.route-card:hover { border-color: var(--signal); transform: translateY(-2px); background: var(--concrete-2); }
.route-card .rc-num { font: 500 1.9rem/1 var(--font-display); color: var(--signal); }
.route-card .rc-name { display: block; margin: 10px 0 6px; font: 600 15.5px var(--font-body); color: var(--bone); }
.route-card .rc-desc { display: block; font-size: 13.5px; color: var(--dust); }
.route-card .rc-go { display: block; margin-top: 14px; font: 600 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--signal-hi); }

/* config tab cards */
.tab-card { position: relative; }
.tab-card .tc-num { position: absolute; top: 14px; right: 18px; font: 500 2.1rem/1 var(--font-display); color: rgba(246, 147, 29, .3); }

/* ------------------------------------------------ download cards */
.dlc { display: flex; flex-direction: column; gap: 14px; }
.dlc-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dlc-head h3 { margin: 0; font-size: 1.08rem; }
.dlc-ver {
    font: 600 10.5px var(--font-mono);
    letter-spacing: .12em;
    color: var(--signal);
    border: 1px solid rgba(246, 147, 29, .4);
    border-radius: 999px;
    padding: 2px 9px;
}
.dlc-meta { display: grid; grid-template-columns: auto 1fr; gap: 5px 16px; margin: 0; font-size: 13px; }
.dlc-meta dt { font: 600 10.5px/2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dust-dim); }
.dlc-meta dd { margin: 0; font-family: var(--font-mono); font-size: 12.5px; color: #c7cfdc; overflow-wrap: anywhere; align-self: center; }
.dlc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.dlc-note { font-size: 13px; color: var(--dust-dim); }

blockquote.mirror-note {
    margin: 1.2rem 0 0;
    padding: 14px 16px;
    border-left: 3px solid var(--signal);
    background: rgba(246, 147, 29, .06);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 14px;
    color: #c3b9a4;
}
blockquote.mirror-note cite { display: block; margin-top: 8px; font: 600 10.5px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--signal); font-style: normal; }

/* ------------------------------------------------ gallery */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 20px; margin: 2rem 0; }
.gal .shot { margin: 0; }

/* ------------------------------------------------ descent (prev/next) */
.descent {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 4.5rem;
    padding-top: 26px;
    padding-bottom: 8px;
    border-top: 1px solid var(--seam-soft);
}
.descent-link { text-decoration: none; max-width: 46%; }
.descent-next { margin-left: auto; text-align: right; }
.descent-dir { display: block; font: 600 10.5px var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dust-dim); margin-bottom: 5px; }
.descent-name { display: block; font: 600 15px var(--font-body); color: var(--bone); transition: color .15s; }
.descent-link:hover .descent-name { color: var(--signal-hi); }
.descent-spacer { flex: 1; }

/* ------------------------------------------------ footer */
.site-foot { margin-top: 4.5rem; background: var(--pit); border-top: 1px solid var(--seam-soft); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 42px; padding-block: 46px 38px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: 30px; } }

.foot-name { margin: 0 0 10px; font: 700 15px var(--font-body); letter-spacing: .2em; color: var(--bone); }
.foot-name span { color: var(--signal); font: 600 11px var(--font-mono); letter-spacing: .1em; margin-left: 6px; }
.foot-line { font-size: 13.5px; color: var(--dust-dim); margin-bottom: .5em; }

.foot-head { margin: 0 0 12px; font: 600 10.5px var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dust-dim); }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 7px; }
.foot-col a { font-size: 13.5px; color: var(--dust); text-decoration: none; }
.foot-col a:hover { color: var(--signal-hi); }

.foot-legal { border-top: 1px solid var(--seam-soft); padding-block: 18px 30px; }
.foot-legal p { margin: 0; font-size: 12.5px; color: var(--dust-dim); }

/* ------------------------------------------------ lightbox */
.lbx { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lbx[hidden] { display: none; }

.lbx-backdrop { position: absolute; inset: 0; background: rgba(4, 6, 9, .93); cursor: zoom-out; }

.lbx-stage {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: min(1720px, 96vw);
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    animation: lbxin .18s ease;
}
@keyframes lbxin { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }

.lbx-img {
    display: block;
    max-width: 100%;
    max-height: calc(94vh - 62px);
    width: auto; height: auto;
    margin-inline: auto;
    border: 1px solid var(--seam);
    border-radius: var(--radius);
    background: var(--pit);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .7);
}

.lbx-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 4px 0;
}
.lbx-caption { font-size: 13.5px; color: var(--dust); min-width: 0; }
.lbx-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.lbx-count { font: 500 11.5px var(--font-mono); letter-spacing: .1em; color: var(--dust-dim); margin-right: 4px; }
.lbx-original { font: 600 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--signal-hi); text-decoration: none; margin-right: 6px; white-space: nowrap; }
.lbx-original:hover { text-decoration: underline; }

.lbx-btn {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--concrete);
    border: 1px solid var(--seam);
    border-radius: var(--radius);
    color: var(--bone);
    font-size: 17px;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.lbx-btn:hover { border-color: var(--signal); color: var(--signal-hi); }

@media (max-width: 640px) {
    .lbx { padding: 10px; }
    .lbx-bar { flex-wrap: wrap; }
    .lbx-caption { order: 2; width: 100%; }
}

body.lbx-open { overflow: hidden; }

/* ------------------------------------------------ misc */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2rem 0; }
.pill {
    font: 500 11.5px var(--font-mono);
    letter-spacing: .08em;
    color: var(--dust);
    border: 1px solid var(--seam);
    border-radius: 999px;
    padding: 5px 12px;
}
.pill b { color: var(--bone); font-weight: 600; }

.log-line { color: var(--ok); }
.log-warn { color: var(--signal-hi); }
.log-err  { color: var(--warn); }

.center { text-align: center; }
.mt-0 { margin-top: 0; }

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