/* ─────────────────────────────────────────────────────────────────────────
   Reno's World — home page
   Dark neon Midgar: hero art on the right, copy on the left, the materia
   loadout and the party below it. Standalone — this sheet does not touch
   style.css, which still serves resume.html, moving*.html and flhome.html.
   ───────────────────────────────────────────────────────────────────────── */

:root {
    --void:      #07070f;
    --void-2:    #0a0a14;
    --panel:     #0e0e1d;
    --panel-2:   #12122a;
    --line:      rgba(168, 85, 247, 0.20);
    --line-2:    rgba(168, 85, 247, 0.44);
    --purple:    #a855f7;
    --mako:      #39ff8f;
    --gold:      #ffcc33;
    --red:       #ff5a4d;
    --text:      #e9e9f4;
    --body:      #c6c6db;
    --dim:       #9a9ab6;
    --faint:     #6d6d8a;
    --display:   'Rajdhani', system-ui, sans-serif;
    --mono:      'Share Tech Mono', ui-monospace, monospace;
    --gut:       clamp(1.15rem, 4vw, 4.5rem);
    --chamfer:   polygon(0 0, calc(100% - 13px) 0, 100% 13px, 100% 100%, 0 100%);
}

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

html { scroll-behavior: smooth; }

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

img { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--mako);
    outline-offset: 3px;
}

/* ── BAR ──────────────────────────────────────────────────────────────── */

.bar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.9rem var(--gut);
    background: rgba(7, 7, 15, 0.72);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    flex: 0 0 auto;
}

.brand-orb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 28%, #e9d5ff 0%, var(--purple) 45%, #2a0a4e 100%);
    box-shadow: 0 0 12px -1px var(--purple), inset 0 -3px 5px rgba(0, 0, 0, 0.6);
}

.brand-name {
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.22em;
}

.bar-nav {
    display: flex;
    gap: 1.6rem;
    margin-left: auto;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.bar-nav a {
    text-decoration: none;
    color: var(--dim);
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.bar-nav a:hover { color: var(--text); border-bottom-color: var(--line-2); }

.bar-state {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: var(--dim);
    flex: 0 0 auto;
}

.state-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--faint);
}
.state-dot.is-up { background: var(--mako); box-shadow: 0 0 9px var(--mako); }
.state-dot.is-down { background: var(--red); box-shadow: 0 0 9px var(--red); }

/* ── HERO ─────────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
    min-height: min(84vh, 760px);
    padding: 4rem 0 3rem;
    overflow: hidden;
}

.hero-art {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(66%, 1020px);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 45%;
}

.hero-fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--void) 0%, rgba(7, 7, 15, 0.94) 24%, rgba(7, 7, 15, 0.22) 60%, rgba(7, 7, 15, 0) 100%),
        linear-gradient(0deg, var(--void) 0%, rgba(7, 7, 15, 0.35) 22%, transparent 48%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    grid-column: 1;
    padding: 0 var(--gut);
    max-width: 42rem;
}

.hero-status {
    margin: 0 0 1rem;
    font-family: var(--mono);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    color: var(--mako);
    text-transform: uppercase;
}

.hero-title {
    margin: 0 0 1.1rem;
    font-size: clamp(3.1rem, 10vw, 8.2rem);
    font-weight: 700;
    line-height: 0.82;
    letter-spacing: -0.015em;
    text-shadow: 0 6px 40px rgba(0, 0, 0, 0.65);
}

.hero-lede {
    max-width: 33rem;
    margin: 0 0 1.7rem;
    color: var(--body);
    font-size: 1.06rem;
    line-height: 1.62;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1.3rem;
    font-family: var(--display);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
    transition: background 0.15s, box-shadow 0.15s, border-color 0.15s, color 0.15s;
}

.btn-solid {
    background: var(--mako);
    color: #04120a;
    box-shadow: 0 0 22px -6px var(--mako);
}
.btn-solid:hover { background: #6dffb0; box-shadow: 0 0 30px -4px var(--mako); }

.btn-line {
    border-color: var(--line-2);
    color: var(--text);
    background: rgba(168, 85, 247, 0.05);
}
.btn-line:hover { border-color: var(--purple); background: rgba(168, 85, 247, 0.13); }

.hero-addr {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--dim);
}

.addr-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--faint);
}

.hero-addr code {
    font-family: var(--mono);
    font-size: 0.95rem;
    color: var(--text);
    letter-spacing: 0.03em;
}

.addr-copy {
    padding: 0.12rem 0.45rem;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    color: var(--dim);
    background: transparent;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.addr-copy:hover { color: var(--mako); border-color: rgba(57, 255, 143, 0.5); }

/* ── SECTION SCAFFOLD ─────────────────────────────────────────────────── */

.sec-head { margin-bottom: 2rem; }

.sec-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0.01em;
}

.sec-sub {
    margin: 0;
    max-width: 46rem;
    color: var(--dim);
    font-size: 0.99rem;
}

.servers,
.party,
.loadout { padding: 4.5rem var(--gut); }

/* ── MATERIA LOADOUT ──────────────────────────────────────────────────── */

.mat-stage { display: grid; gap: 1.1rem; }

/* the sword the materia is socketed into */
.weapon {
    --blade-h: clamp(104px, 11.5vw, 156px);
    position: relative;
    display: flex;
    align-items: center;
    padding: 1.9rem 1.2rem 2.5rem;
    background: linear-gradient(180deg, rgba(18, 18, 42, 0.85), rgba(8, 8, 18, 0.9));
    border: 1px solid var(--line);
    clip-path: var(--chamfer);
    overflow: hidden;
}

.weapon::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.055) 1px, transparent 1px);
    background-size: 34px 34px;
    pointer-events: none;
    mask-image: radial-gradient(120% 100% at 50% 50%, #000 30%, transparent 85%);
}

.blade-wrap {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    min-width: 0;
    z-index: 1;
}

/* Buster Sword. Drawn in SVG (index.html) so the chisel tip and the bevel are real
   geometry rather than a clipped rectangle — the shape stretches with the panel but
   the strokes use non-scaling-stroke, so the edges stay crisp at every width. */
.blade {
    flex: 1 1 auto;
    display: block;
    width: 100%;
    height: var(--blade-h);
    overflow: visible;
    filter: drop-shadow(0 7px 16px rgba(0, 0, 0, 0.6));
}

/* the guard: a stack of chamfered plates around the base of the blade, the way the
   Buster Sword's collar reads from behind */
.guard {
    flex: 0 0 auto;
    display: block;
    position: relative;
    width: clamp(34px, 4.4vw, 60px);
    height: calc(var(--blade-h) * 0.92);
    margin-right: -5px;
    background:
        /* the raised outer plate */
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1.5px, transparent 1.5px),
        linear-gradient(90deg, #05070c 0%, #202737 12%, #39425c 32%, #6a7595 46%,
                        #4a5472 54%, #262d40 70%, #3b4460 86%, #1b2130 94%, #04060b 100%),
        #0a0d16;
    clip-path: polygon(10% 0, 100% 4%, 100% 96%, 10% 100%, 0 86%, 0 14%);
    box-shadow: 0 0 26px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

/* two grooves cutting the plate into a stack */
.guard::before,
.guard::after {
    content: '';
    position: absolute;
    left: 8%;
    right: 6%;
    height: 2px;
    background: #04060b;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16);
}

.guard::before { top: 30%; }
.guard::after  { top: 70%; }

/* long wrapped grip, with a pommel cap on the end */
.grip {
    flex: 0 0 auto;
    display: block;
    position: relative;
    width: clamp(108px, 13vw, 184px);
    height: calc(var(--blade-h) * 0.26);
    background:
        /* specular down the middle, shadow at both rails */
        linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0 2px,
                        rgba(255, 255, 255, 0.05) 3px, transparent 22%,
                        transparent 74%, rgba(0, 0, 0, 0.45) 88%, rgba(0, 0, 0, 0.75) 100%),
        /* cord wrap */
        repeating-linear-gradient(122deg,
            #080b13 0 4px, #171d2c 4px 7px, #2b3349 7px 9px, #171d2c 9px 12px, #080b13 12px 14px);
    border-top: 1px solid rgba(160, 174, 208, 0.42);
    border-bottom: 1px solid #04060b;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.75);
}

/* pommel: a chamfered steel cap turning out of the end of the grip */
.grip::before {
    content: '';
    position: absolute;
    left: -17px;
    top: -9px;
    bottom: -9px;
    width: 22px;
    background: linear-gradient(90deg, #03050a, #333c56 24%, #8e9ab8 44%, #c3ccdf 52%,
                                        #5a6484 68%, #1b2233 88%, #03050a);
    clip-path: polygon(30% 0, 100% 16%, 100% 84%, 30% 100%, 0 70%, 0 30%);
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.75);
}

/* sockets sit along the blade */
.sockets {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    /* the right padding keeps the last materia clear of the tip's diagonal; the
       bottom padding lifts the labels off the blade's bright edge */
    padding: 0 11% 10px 4%;
    z-index: 3;
}

.socket {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: clamp(46px, 5.4vw, 64px);
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: default;
}

/* a round hole punched through the slab, with a raised polished rim */
.socket-well {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 42%,
        #434c68 0 54%,
        #8d98b6 68%,
        #b9c3db 78%,
        #4a5470 90%,
        #1b2030 100%);
    box-shadow:
        inset 0 3px 7px rgba(0, 0, 0, 0.7),
        inset 0 -2px 5px rgba(255, 255, 255, 0.14);
    display: grid;
    place-items: center;
    transition: filter 0.2s, background 0.2s;
}

.socket-inner {
    width: 76%;
    height: 76%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 36%, #0e1220, #03050a 78%);
    box-shadow: inset 0 0 9px rgba(0, 0, 0, 0.9);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.socket-inner.empty::after {
    content: '';
    width: 54%;
    height: 54%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, rgba(126, 136, 166, 0.26), rgba(6, 7, 13, 0.94) 72%);
}

.socket.armed { cursor: pointer; }
.socket.armed:hover .socket-well { filter: brightness(1.5); }
.socket.hot .socket-well {
    background: radial-gradient(circle at 50% 42%,
        color-mix(in srgb, var(--c, #fff) 70%, #fff) 0 54%,
        var(--c, #fff) 72%,
        color-mix(in srgb, var(--c, #fff) 55%, #000) 100%);
    filter: drop-shadow(0 0 9px var(--c, #fff));
}

.socket-label {
    display: block;
    min-height: 15px;
    padding: 2px 5px;
    font-family: var(--mono);
    font-size: 0.56rem;
    letter-spacing: 0.04em;
    line-height: 1;
    color: color-mix(in srgb, var(--c, var(--faint)) 62%, #fff);
    text-shadow: 0 0 9px color-mix(in srgb, var(--c, #000) 65%, transparent);
    background: rgba(3, 4, 9, 0.8);
    white-space: nowrap;
    pointer-events: none;
}
.socket:not(.armed) .socket-label { background: transparent; }

.orb {
    width: 72%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 34% 27%, #ffffffcc 0%, var(--c) 46%, color-mix(in srgb, var(--c) 32%, #000) 100%);
    box-shadow:
        0 0 16px -2px var(--c),
        inset 0 -6px 10px rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

/* the chain between All and the materia it is boosting */
.links {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: visible;
    pointer-events: none;
}

.link-line {
    stroke: var(--mako);
    stroke-width: 2;
    stroke-dasharray: 5 4;
    opacity: 0;
    transition: opacity 0.25s;
    filter: drop-shadow(0 0 5px var(--mako));
}
.link-line.on { opacity: 0.9; }

/* ── inventory ────────────────────────────────────────────────────────── */

.tray-box { display: grid; gap: 0.7rem; }
.tray-box.is-empty { display: none; }

.tray-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.tray-title {
    margin: 0;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--faint);
}

.tray {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.9rem;
    background: linear-gradient(180deg, var(--panel), var(--void-2));
    border: 1px solid var(--line);
    clip-path: var(--chamfer);
}

.mat {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 0.85rem 0.42rem 0.42rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    clip-path: var(--chamfer);
    transition: background 0.16s, border-color 0.16s, transform 0.16s;
}
.mat .orb { width: 26px; flex: 0 0 26px; }
.mat:hover, .mat:focus-visible {
    background: color-mix(in srgb, var(--c) 10%, transparent);
    border-color: color-mix(in srgb, var(--c) 55%, transparent);
    transform: translateY(-1px);
}

.mat .school {
    display: block;
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c);
    line-height: 1.2;
}

/* ── readout ──────────────────────────────────────────────────────────── */

.readout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.4rem;
    align-items: center;
    padding: 1.1rem 1.3rem;
    background: linear-gradient(180deg, var(--panel), var(--void-2));
    border: 1px solid var(--line);
    border-left: 2px solid var(--c, var(--line-2));
    clip-path: var(--chamfer);
    min-height: 96px;
}

.readout-school {
    margin: 0 0 0.3rem;
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c, var(--faint));
}

.readout-name {
    margin: 0;
    font-size: 1.16rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.readout-line {
    margin: 0;
    max-width: 62ch;
    font-size: 0.94rem;
    line-height: 1.45;
    color: var(--dim);
}
.readout-line b { color: var(--text); font-weight: 600; }

.readout-ctrl { display: flex; gap: 0.5rem; align-items: center; }

.mat-ghost {
    font: inherit;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dim);
    background: transparent;
    border: 1px solid var(--line);
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    clip-path: var(--chamfer);
    transition: color 0.16s, border-color 0.16s;
}
/* only rendered when scripting is off — the blade stays empty, so the loadout
   still has to make sense as plain text */
.mat-plain {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.mat-plain li {
    padding: 0.85rem 1rem;
    background: linear-gradient(180deg, var(--panel) 0%, var(--void-2) 100%);
    border: 1px solid var(--line);
    clip-path: var(--chamfer);
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--dim);
}
.mat-plain b { color: var(--text); font-weight: 600; }

.mat-ghost:hover { color: var(--text); border-color: var(--line-2); }
.mat-ghost[aria-pressed="true"] { color: var(--mako); border-color: color-mix(in srgb, var(--mako) 45%, transparent); }

@media (prefers-reduced-motion: no-preference) {
    .socket {
        animation: ignite 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
        animation-delay: calc(var(--i, 0) * 80ms + 120ms);
    }
}

@keyframes ignite {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: none; }
}

/* ── PARTY ────────────────────────────────────────────────────────────── */

.roster-group + .roster-group { margin-top: 2.6rem; }

.roster-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--purple);
}

.roster-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.roster {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.unit {
    background: var(--panel);
    border: 1px solid var(--line);
    clip-path: var(--chamfer);
    overflow: hidden;
    transition: border-color 0.18s;
}

.unit:hover { border-color: var(--line-2); }

.unit-art {
    margin: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #05050c;
}

.unit-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
    filter: saturate(0.88) contrast(1.03);
}

.unit-plate {
    padding: 0.75rem 0.85rem 0.95rem;
    border-top: 1px solid var(--line);
}

.unit-name {
    display: block;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.unit-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0.1rem 0 0;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    color: var(--gold);
}

.unit-meta em {
    font-style: normal;
    color: var(--faint);
}

.unit-note {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.86rem;
    line-height: 1.4;
    color: var(--dim);
}

.unit-rival { border-color: rgba(255, 90, 77, 0.3); }
.unit-rival:hover { border-color: rgba(255, 90, 77, 0.6); }
.unit-rival .unit-name { color: #ff9489; }

/* ── LIVE PARTY PRESENCE ──────────────────────────────────────────────── */

.presence {
    display: grid;
    gap: 0.85rem;
    margin-bottom: 2.7rem;
    padding: 1.15rem 1.3rem 1.05rem;
    background: linear-gradient(140deg, var(--panel-2) 0%, var(--void-2) 100%);
    border: 1px solid var(--line-2);
    clip-path: var(--chamfer);
}

.presence-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.presence-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mako);
}

.presence-count {
    font-family: var(--mono);
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--text);
}

.presence-count b { font-weight: 400; color: var(--mako); }
.presence-slash { margin: 0 0.32rem; color: var(--faint); }

.presence-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.p-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.28rem 0.65rem;
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--text);
    background: var(--void);
    border: 1px solid var(--line);
}

.p-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mako);
    box-shadow: 0 0 8px var(--mako);
}

.presence-note {
    font-size: 0.92rem;
    color: var(--dim);
}

.presence-note a { color: var(--mako); text-underline-offset: 3px; }

.presence-hint {
    margin: 0;
    font-size: 0.79rem;
    color: var(--faint);
}

.presence-hint a { color: var(--dim); text-underline-offset: 3px; }

.cast-label {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin: 0 0 1rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--dim);
}

.cast-label span {
    font-family: var(--display);
    font-size: 0.79rem;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--faint);
}

/* ── SERVERS ──────────────────────────────────────────────────────────── */

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.server-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.05rem 1.15rem 1rem;
    background: var(--panel);
    border: 1px solid var(--line);
    clip-path: var(--chamfer);
}

.server-name {
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.server-desc {
    font-size: 0.86rem;
    color: var(--dim);
    line-height: 1.4;
    min-height: 2.4em;
}

.server-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 0.5rem;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(168, 85, 247, 0.12);
}

.server-state {
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    color: var(--faint);
}
.server-state-running { color: var(--mako); }
.server-state-stopped { color: var(--red); }
.server-state-starting,
.server-state-stopping { color: var(--gold); }

.server-link {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--dim);
    text-decoration: none;
}
.server-link:hover { color: var(--purple); }

.server-empty {
    grid-column: 1 / -1;
    padding: 1.2rem 0;
    color: var(--dim);
    font-size: 0.94rem;
}

/* ── JOIN ─────────────────────────────────────────────────────────────── */

.join {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 2rem;
    padding: 4.5rem var(--gut);
    overflow: hidden;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--void-2);
}

.join-art {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(52%, 780px);
}

.join-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 55% 50%;
}

.join-fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, var(--void-2) 0%, rgba(10, 10, 20, 0.9) 22%, rgba(10, 10, 20, 0.18) 62%, transparent 100%),
        linear-gradient(0deg, var(--void-2) 0%, transparent 40%);
}

.join-copy {
    position: relative;
    z-index: 2;
    max-width: 38rem;
}

.join-lede {
    margin: 0.5rem 0 1.5rem;
    color: var(--body);
    font-size: 1rem;
}

.join-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(168, 85, 247, 0.14);
}

.join-row:last-of-type { border-bottom: 1px solid rgba(168, 85, 247, 0.14); }

.join-label {
    flex: 0 0 8.5rem;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--faint);
}

.join-addr {
    font-family: var(--mono);
    font-size: 1rem;
    color: var(--text);
}

.join-port { color: var(--mako); }

.join-row .addr-copy { margin-left: auto; }

.join-note {
    margin: 1.2rem 0 0;
    font-size: 0.88rem;
    color: var(--dim);
}

/* ── FORUMS ───────────────────────────────────────────────────────────── */

.forums { padding: 4rem var(--gut) 5rem; }

.forum-card {
    display: grid;
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.6rem 2.4rem;
    padding: 2rem 2.1rem;
    background: linear-gradient(140deg, var(--panel-2) 0%, var(--void-2) 100%);
    border: 1px solid var(--line-2);
    clip-path: var(--chamfer);
}

.forum-card .sec-title { margin: 0; }
.forum-card .btn { justify-self: end; white-space: nowrap; }

.forum-card p {
    margin: 0;
    color: var(--body);
    max-width: 38rem;
}

/* ── FOOT ─────────────────────────────────────────────────────────────── */

.foot {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1rem 2rem;
    padding: 1.6rem var(--gut) 2.4rem;
    border-top: 1px solid var(--line);
}

.foot-brand {
    font-weight: 700;
    font-size: 0.86rem;
    letter-spacing: 0.24em;
}

.foot-nav { display: flex; gap: 1.3rem; font-size: 0.88rem; }
.foot-nav a { color: var(--dim); text-decoration: none; }
.foot-nav a:hover { color: var(--text); }

.foot-legal {
    flex: 1 1 100%;
    margin: 0;
    font-size: 0.74rem;
    line-height: 1.5;
    color: var(--faint);
    max-width: 52rem;
}

/* ── NARROW ───────────────────────────────────────────────────────────── */

@media (max-width: 1080px) {
    .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .bar { gap: 1rem; }
    .bar-nav { gap: 1rem; font-size: 0.86rem; }
    .bar-state { display: none; }

    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 3rem 0 2.5rem;
    }

    .hero-art {
        position: relative;
        inset: auto;
        width: 100%;
        height: clamp(240px, 38vh, 360px);
        clip-path: none;
        order: -1;
    }

    .hero-art img { object-position: 63% 48%; }

    .hero-fade {
        background:
            linear-gradient(0deg, var(--void) 0%, rgba(7, 7, 15, 0.55) 45%, transparent 100%),
            linear-gradient(180deg, rgba(7, 7, 15, 0.7) 0%, transparent 35%);
    }

    .hero-copy { padding: 0 var(--gut); margin-top: -3rem; }

    .join { grid-template-columns: 1fr; }
    .join-art { position: relative; width: 100%; height: 32vh; min-height: 200px; inset: auto; order: -1; }
    .join-fade { background: linear-gradient(0deg, var(--void-2) 0%, rgba(10, 10, 20, 0.5) 55%, transparent 100%); }
    .join { padding-top: 0; }
    .join-copy { padding: 0 var(--gut); }
    .join { padding-left: 0; padding-right: 0; }

    .forum-card {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 1.6rem 1.4rem;
    }
    .forum-card .btn { justify-self: start; margin-top: 0.4rem; }
}

@media (max-width: 620px) {
    body { font-size: 16px; }

    .bar { flex-wrap: wrap; padding: 0.7rem var(--gut); }
    .bar-nav { order: 3; width: 100%; margin-left: 0; gap: 1.1rem; overflow-x: auto; padding-bottom: 2px; }
    .bar-nav a { white-space: nowrap; }

    .weapon { --blade-h: 92px; padding: 1.2rem 0.5rem 1.6rem; }
    .guard { width: clamp(22px, 6vw, 30px); height: calc(var(--blade-h) * 0.86); }
    .grip { width: clamp(70px, 18vw, 110px); }
    .sockets { padding: 0 14% 8px 2%; }
    .socket { width: clamp(28px, 7.4vw, 48px); gap: 4px; }
    .socket-label { font-size: 0.44rem; letter-spacing: 0; padding: 1px 2px; }
    .readout { grid-template-columns: 1fr; gap: 0.9rem; }

    .roster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }

    .unit-plate { padding: 0.6rem 0.6rem 0.8rem; }
    .unit-name { font-size: 0.98rem; }
    .unit-meta { font-size: 0.6rem; }
    .unit-note { font-size: 0.8rem; }

    .join-row { flex-wrap: wrap; }
    .join-label { flex: 1 1 100%; }
    .join-row .addr-copy { margin-left: 0; }
}
