/* =====================================================================
   STREET MELTS — design system
   Dark grungy street-cyberpunk: acid green + rust + bone on near-black,
   Bebas Neue display, grain / grid / scanline overlays.
   ===================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #050505;
    --panel: #0c0c0c;
    --panel-2: #12110f;
    --text: #efebe1;
    --muted: #8e877a;
    --acid: #d7ff3f;
    --rust: #b9441f;
    --bone: #d8c7a3;
    --red: #e0653f;
    --cyan: #5fe6d0;
    --line: rgba(255, 255, 255, .12);
    --shadow: rgba(215, 255, 63, .16);
    --display: 'Bebas Neue', Arial, sans-serif;
    --body: 'Inter', Arial, sans-serif;
    /* full-bleed horizontal gutter — content uses the whole screen width */
    --pad: clamp(20px, 4vw, 72px);
    /* max content column; bars/dividers stay full-bleed, content centres.
       Teaser content is sparse, so this is kept comfortable — widen it
       (toward full-bleed) as content-rich sections get built. */
    --maxw: 1120px;
    /* gutter that grows on ultrawide so content never sprawls */
    --gutter: max(var(--pad), calc((100% - var(--maxw)) / 2));
}

html { scroll-behavior: smooth; }

/* ---- custom scrollbars (cyberpunk) ---- */
* { scrollbar-width: thin; scrollbar-color: rgba(215, 255, 63, .35) rgba(255, 255, 255, .03); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, .025); }
::-webkit-scrollbar-thumb { background: rgba(215, 255, 63, .28); border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(215, 255, 63, .5); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }

body {
    font-family: var(--body);
    background:
        radial-gradient(circle at 20% 5%, rgba(185, 68, 31, .22), transparent 34%),
        radial-gradient(circle at 85% 20%, rgba(215, 255, 63, .12), transparent 28%),
        linear-gradient(180deg, #080808 0%, #030303 55%, #0b0907 100%);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* faint blueprint grid */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .15;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
    z-index: 1;
}

/* scanlines */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg,
        rgba(255, 255, 255, .03) 0,
        rgba(255, 255, 255, .03) 1px,
        transparent 1px,
        transparent 4px);
    mix-blend-mode: overlay;
    opacity: .28;
    z-index: 2;
}

/* film grain */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .06;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* keep real content above the overlays */
.site-header,
main,
.site-footer { position: relative; z-index: 3; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; }

/* =========================== HEADER / NAV =========================== */
.site-header {
    width: 100%;
    padding: 26px var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
}
.logo {
    font-family: var(--display);
    font-size: clamp(32px, 3.2vw, 46px);
    letter-spacing: -.03em;
    text-transform: uppercase;
}
.logo span { color: var(--acid); text-shadow: 0 0 22px var(--shadow); }
.logo-img {
    display: block;
    height: clamp(46px, 5.5vw, 68px);
    width: auto;
    filter: drop-shadow(0 0 18px rgba(215, 255, 63, .12));
}

.main-nav {
    display: flex;
    gap: 22px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.main-nav a:hover { color: var(--acid); }

/* =============================== BUTTONS ============================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid var(--acid);
    background: var(--acid);
    color: #080808;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 12px;
    box-shadow: 0 0 32px var(--shadow);
    transform: skew(-8deg);
    transition: filter .15s ease, transform .15s ease;
}
.btn span { transform: skew(8deg); }
.btn:hover { filter: brightness(1.08); transform: skew(-8deg) translateY(-1px); }
.btn.secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
    box-shadow: none;
}
.btn.secondary:hover { border-color: var(--acid); color: var(--acid); }

/* =============================== HERO =============================== */
/* Day-1 teaser hero: one screen, centred, transmission as centrepiece */
.hero {
    width: 100%;
    padding: 56px var(--gutter) 72px;
    min-height: calc(100vh - 122px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-top: 0;
}
.hero .eyebrow { margin-bottom: 8px; }
.hero h1 { max-width: 18ch; }
.hero .lead { max-width: 60ch; margin: 22px auto 0; text-align: center; }
.hero .hero-actions { justify-content: center; margin-top: 36px; }

/* transmission terminal card */
.transmission {
    width: 100%;
    max-width: 600px;
    margin-top: 40px;
    text-align: left;
    border: 1px solid var(--line);
    background: rgba(0, 0, 0, .45);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02), 0 24px 60px rgba(0, 0, 0, .45);
    padding: 20px 24px 24px;
    position: relative;
}
.transmission-head {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--body);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.transmission-head .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 10px var(--acid);
    animation: sm-pulse 1.6s ease-in-out infinite;
}
.eyebrow {
    display: inline-block;
    color: var(--acid);
    border: 1px solid rgba(215, 255, 63, .4);
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-bottom: 22px;
    background: rgba(215, 255, 63, .05);
}
h1 {
    font-size: clamp(64px, 11vw, 154px);
    line-height: .78;
    letter-spacing: -.035em;
    text-transform: uppercase;
    max-width: 850px;
    text-shadow: 2px 2px 0 #000, -2px 0 0 rgba(185, 68, 31, .75);
}
h1 em {
    display: block;
    font-style: normal;
    color: transparent;
    -webkit-text-stroke: 1px var(--bone);
    opacity: .86;
}
.lead {
    max-width: 610px;
    margin-top: 30px;
    color: #c8c0b4;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-card {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 36%),
        linear-gradient(180deg, rgba(185, 68, 31, .14), rgba(215, 255, 63, .04)),
        var(--panel);
    border: 1px solid var(--line);
    min-height: 530px;
    padding: 26px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02), 0 28px 80px rgba(0, 0, 0, .5);
}
.hero-card::before {
    content: "VANDULS NEVER DIED / SIGNAL FOUND / DO NOT ADJUST";
    position: absolute;
    left: -70px;
    top: 58%;
    width: 680px;
    padding: 14px;
    transform: rotate(-19deg);
    background: var(--acid);
    color: #090909;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .2em;
    text-align: center;
    opacity: .92;
}
.hero-card::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(255, 255, 255, .16);
}
.tag-stack { position: relative; z-index: 2; display: grid; gap: 14px; }
.tag {
    width: fit-content;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(0, 0, 0, .58);
    color: var(--bone);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.tag:nth-child(2) { margin-left: 60px; color: var(--acid); }
.tag:nth-child(3) { margin-left: 20px; color: #fff; }

/* ============================= SECTIONS ============================= */
section {
    width: 100%;
    padding: 76px var(--gutter);
    border-top: 1px solid var(--line);
}
.hero { border-top: 0; }
.section-title {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    margin-bottom: 34px;
}
.section-title .num {
    color: var(--rust);
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: 12px;
    font-family: var(--body);
}
h2 {
    font-size: clamp(42px, 6vw, 86px);
    line-height: .88;
    letter-spacing: -.035em;
    text-transform: uppercase;
}

/* project panels */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
    border: 1px solid var(--line);
    padding: 24px;
    min-height: 250px;
    position: relative;
    overflow: hidden;
}
.panel::after {
    content: "";
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 140px;
    height: 140px;
    border: 1px solid rgba(215, 255, 63, .2);
    transform: rotate(28deg);
}
.panel h3 { font-size: 34px; letter-spacing: -.02em; margin-bottom: 14px; text-transform: uppercase; }
.panel p { color: var(--muted); line-height: 1.65; font-size: 15px; }

/* story */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.lore-box {
    background: var(--panel-2);
    border: 1px solid var(--line);
    padding: 30px;
    min-height: 420px;
    position: relative;
}
.lore-box p { color: #bdb4a6; line-height: 1.8; font-size: 16px; margin-bottom: 18px; }
.redacted, .inline-redacted {
    background: #050505;
    color: transparent;
    padding: 0 8px;
    box-shadow: inset 0 -1px 0 rgba(215, 255, 63, .22);
    user-select: none;
}
.inline-redacted { display: inline-block; padding: 0 10px; transform: translateY(2px); }

/* signals / roadmap */
.roadmap-intro {
    max-width: 720px;
    margin: -12px 0 28px 252px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 15px;
}
.roadmap { display: grid; gap: 12px; }
.road-item {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .035);
    padding: 20px;
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 20px;
    align-items: start;
    position: relative;
    overflow: hidden;
}
.road-item.locked::after {
    content: "PARTIAL SIGNAL";
    position: absolute;
    right: 18px;
    top: 18px;
    color: rgba(215, 255, 63, .42);
    font-weight: 900;
    font-size: 10px;
    letter-spacing: .18em;
}
.road-item strong { color: var(--acid); font-size: 12px; letter-spacing: .18em; }
.road-item h3 { font-size: 30px; letter-spacing: -.02em; text-transform: uppercase; margin-bottom: 6px; }
.road-item p { color: var(--muted); line-height: 1.55; max-width: 650px; }
.glitch-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--acid), transparent);
    opacity: .55;
}
.heavy-redact {
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 8px, transparent 8px 16px),
        rgba(255, 255, 255, .028);
}

/* CTA */
.cta {
    margin-bottom: 60px;
    background:
        linear-gradient(135deg, rgba(215, 255, 63, .16), transparent 38%),
        linear-gradient(180deg, rgba(185, 68, 31, .16), rgba(0, 0, 0, .2)),
        #090909;
    border: 1px solid rgba(215, 255, 63, .28);
    padding: clamp(30px, 6vw, 70px);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 36px;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: "ENTER / CONNECT / WAKE THE NETWORK";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px;
    background: rgba(215, 255, 63, .9);
    color: #050505;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .22em;
    white-space: nowrap;
    text-align: center;
}
.cta h2 { margin-bottom: 18px; }
.cta p { color: #c8c0b4; line-height: 1.7; font-size: 17px; max-width: 640px; }
.cta-actions { display: grid; gap: 14px; justify-items: start; }

/* footer */
.site-footer {
    width: 100%;
    padding: 26px var(--gutter) 40px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ===================== DAY-1 TEASER: SIGNAL ======================== */
.signal-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-family: var(--body);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.signal-status .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--acid);
    box-shadow: 0 0 10px var(--acid);
    animation: sm-pulse 1.6s ease-in-out infinite;
}
.signal-status .freq { color: var(--rust); }
@keyframes sm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }

.signal-log {
    font-family: var(--body);
    font-size: 14px;
    line-height: 1.95;
    letter-spacing: 1px;
    color: var(--muted);
    min-height: 168px;
}
.signal-log .l { opacity: 0; white-space: pre-wrap; }
.signal-log .l.show { opacity: .9; }
.signal-log .ok { color: var(--acid); }
.signal-log .warn { color: var(--rust); }
.signal-log .cursor {
    display: inline-block;
    width: 9px;
    height: 16px;
    background: var(--acid);
    margin-left: 4px;
    vertical-align: -2px;
    box-shadow: 0 0 8px var(--acid);
    animation: sm-blink 1s steps(1) infinite;
}
@keyframes sm-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }

/* ============================ AUTH (login) ======================== */
.back-link { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.back-link:hover { color: var(--acid); }
.auth-wrap {
    min-height: calc(100vh - 122px);
    display: flex; align-items: center; justify-content: center;
    padding: 48px var(--gutter); position: relative; z-index: 3;
}
.auth-card {
    width: 100%; max-width: 520px; text-align: center;
    border: 1px solid var(--line); background: rgba(0, 0, 0, .5);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .02);
    padding: 40px;
}
.auth-card h1 { font-size: clamp(48px, 8vw, 86px); line-height: .82; text-transform: uppercase; letter-spacing: -.03em; margin-top: 14px; }
.auth-card h1 em { display: block; font-style: normal; color: transparent; -webkit-text-stroke: 1px var(--bone); opacity: .86; }
.auth-lead { color: #c8c0b4; line-height: 1.6; font-size: 15px; margin: 22px auto 28px; max-width: 420px; }
.auth-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.auth-actions .btn { min-width: 250px; }
.auth-status { min-height: 20px; margin-top: 18px; font-size: 13px; letter-spacing: .04em; color: var(--muted); }
.auth-status.ok { color: var(--acid); }
.auth-status.err { color: var(--rust); }
.auth-fine { margin-top: 24px; font-size: 12px; color: var(--muted); }
.auth-fine a { color: var(--acid); }
.auth-alt { display: inline-block; font-size: 12px; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid transparent; }
.auth-alt:hover { color: var(--acid); border-bottom-color: rgba(215, 255, 63, .4); }

/* ============================ APP (dashboard) ===================== */
.app-header {
    position: relative; z-index: 3; display: flex; align-items: center; gap: 28px;
    padding: 20px var(--gutter); border-bottom: 1px solid var(--line);
}
.app-nav { display: flex; gap: 22px; flex: 1; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.app-nav a { color: var(--muted); }
.app-nav a.active { color: var(--acid); }
.app-nav a.soon { color: #4a463e; cursor: default; }
.app-nav a.soon span { color: var(--rust); font-size: 9px; margin-left: 5px; letter-spacing: .1em; border: 1px solid rgba(207, 90, 42, .4); padding: 1px 5px; }
.app-user { display: flex; align-items: center; gap: 14px; }
.app-user .addr { font-family: 'Share Tech Mono', monospace; font-size: 13px; color: var(--bone); letter-spacing: 1px; }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 11px; }
.app-main { position: relative; z-index: 3; padding: 54px var(--gutter) 80px; max-width: 1180px; margin: 0 auto; }
.app-hero h1 { font-size: clamp(46px, 7vw, 92px); line-height: .82; text-transform: uppercase; letter-spacing: -.03em; margin-top: 10px; }
.app-hero h1 em { display: block; font-style: normal; color: transparent; -webkit-text-stroke: 1px var(--bone); opacity: .86; }
.addr-full { font-family: 'Share Tech Mono', monospace; font-size: 13px; color: var(--muted); margin-top: 18px; letter-spacing: 1px; word-break: break-all; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 44px 0; }
.stat { border: 1px solid var(--line); background: rgba(255, 255, 255, .03); padding: 22px; }
.stat .k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stat .v { font-family: var(--display); font-size: 46px; line-height: 1; margin-top: 10px; color: var(--bone); }
.panel-row { display: grid; grid-template-columns: 1.4fr .9fr; gap: 16px; }
.big-panel, .side-panel { border: 1px solid var(--line); padding: 30px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)); }
.big-panel h2 { font-size: clamp(34px, 5vw, 60px); text-transform: uppercase; letter-spacing: -.02em; margin: 8px 0 14px; }
.big-panel p, .side-panel p { color: var(--muted); line-height: 1.7; font-size: 15px; margin-bottom: 20px; }
.big-panel .btn[disabled] { opacity: .4; cursor: not-allowed; filter: grayscale(.4); }
.pill { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; padding: 7px 12px; border: 1px solid var(--line); margin: 8px 0 16px; }
.pill.warn { color: var(--rust); border-color: rgba(207, 90, 42, .5); background: rgba(207, 90, 42, .08); }
.meta-line { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.meta-line b { color: var(--bone); }
@media (max-width: 760px) {
    .app-header { flex-wrap: wrap; gap: 14px; }
    .app-nav { order: 3; flex-basis: 100%; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .panel-row { grid-template-columns: 1fr; }
}

/* ===================== CONSOLE (dashboard app shell) ============= */
.console { position: relative; z-index: 3; display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.sidebar { display: flex; flex-direction: column; padding: 22px 16px; border-right: 1px solid var(--line); background: rgba(0, 0, 0, .5); position: sticky; top: 0; height: 100vh; }
.side-logo { display: block; margin: 4px 8px 24px; }
.side-logo .logo-img { height: 40px; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-left: 2px solid transparent; }
.side-nav a i { font-size: 17px; opacity: .9; }
.side-nav a:hover { color: var(--bone); background: rgba(255, 255, 255, .03); }
.side-nav a.active { color: var(--acid); border-left-color: var(--acid); background: rgba(215, 255, 63, .06); }
.side-nav a.soon { color: #4a463e; cursor: default; }
.side-nav a.soon:hover { background: none; color: #4a463e; }
.side-nav a .tag { margin-left: auto; font-size: 8px; letter-spacing: .1em; color: var(--rust); border: 1px solid rgba(207, 90, 42, .4); padding: 1px 5px; }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; }
.side-foot .who { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.side-foot .addr { font-family: 'Share Tech Mono', monospace; font-size: 12px; color: var(--bone); letter-spacing: 1px; }
.side-foot .btn { width: 100%; }
.dotonline { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 8px var(--acid); flex: none; }

.main-col { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 30px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(5, 5, 5, .72); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); z-index: 4; }
.topbar h1 { font-family: var(--body); font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--bone); }
.topbar .pills { display: flex; gap: 10px; }
.spill { display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 6px 11px; }

.content { padding: 28px 30px 60px; display: grid; gap: 16px; align-content: start; width: 100%; max-width: 1320px; margin-inline: auto; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tile { border: 1px solid var(--line); background: rgba(255, 255, 255, .025); padding: 18px; }
.tile .k { display: flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tile .k i { font-size: 14px; color: var(--rust); }
.tile .v { font-family: var(--display); font-size: 42px; line-height: 1; margin-top: 10px; color: var(--bone); }

.cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.card { border: 1px solid var(--line); background: rgba(255, 255, 255, .025); padding: 24px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.card-h .lab { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card-h .lab b { color: var(--acid); font-weight: 800; }
.card-note { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 8px 0 18px; }

.descent-card h2 { font-family: var(--display); font-size: clamp(34px, 4vw, 48px); text-transform: uppercase; letter-spacing: -.01em; color: var(--bone); margin-bottom: 10px; }
.descent-card p { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 520px; margin-bottom: 22px; }
.status-strip { display: flex; gap: 26px; margin-bottom: 24px; flex-wrap: wrap; }
.status-strip .s { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.status-strip .s b { display: block; font-family: 'Share Tech Mono', monospace; font-weight: 400; color: var(--bone); font-size: 16px; margin-top: 5px; letter-spacing: 1px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; filter: grayscale(.4); }
.mono { font-family: 'Share Tech Mono', monospace; }

.empty { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px dashed var(--line); padding: 28px; text-align: center; color: #5b564c; font-size: 13px; letter-spacing: .03em; }
.empty i { font-size: 18px; }

@media (max-width: 900px) {
    .console { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
    .side-logo { margin: 0 10px 0 0; }
    .side-logo .logo-img { height: 34px; }
    .side-nav { flex-direction: row; flex-wrap: wrap; gap: 2px; }
    .side-nav a { border-left: 0; border-bottom: 2px solid transparent; padding: 8px 10px; }
    .side-nav a .tag { display: none; }
    .side-nav a.active { border-left: 0; border-bottom-color: var(--acid); }
    .side-foot { margin-top: 0; border-top: 0; padding-top: 0; margin-left: auto; display: flex; align-items: center; gap: 12px; }
    .side-foot .who { margin-bottom: 0; }
    .side-foot .btn { width: auto; }
    .topbar { padding: 14px 18px; }
    .content { padding: 20px 16px 50px; }
    .stat-row { grid-template-columns: repeat(2, 1fr); }
    .cols { grid-template-columns: 1fr; }
}

/* desktop app-shell: header + footer fixed on screen, only .content scrolls */
@media (min-width: 901px) {
    body:has(.console) { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
    body:has(.console) .console { flex: 1 1 auto; min-height: 0; height: auto; }
    body:has(.console) .sidebar { position: static; height: 100%; overflow-y: auto; }
    body:has(.console) .main-col { height: 100%; min-height: 0; overflow: hidden; }
    body:has(.console) .topbar { position: static; flex: none; }
    body:has(.console) .content { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
    body:has(.console) .site-footer { flex: none; padding-top: 16px; padding-bottom: 16px; }
}

/* ============================ DESCENT (play) ===================== */
.play { position: relative; z-index: 3; min-height: 100vh; display: flex; flex-direction: column; }
.hud { display: flex; align-items: center; gap: 20px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: rgba(5, 5, 5, .72); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); position: sticky; top: 0; z-index: 5; }
.hud-logo .logo-img { height: 34px; display: block; }
.hud-stats { display: flex; align-items: center; gap: 24px; flex: 1; }
.hud-hp { display: flex; gap: 5px; }
.pip { width: 14px; height: 16px; border: 1px solid rgba(207, 90, 42, .6); transform: skew(-10deg); }
.pip.on { background: var(--rust); box-shadow: 0 0 8px rgba(207, 90, 42, .55); }
.hud-stat { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hud-stat b { display: block; font-family: var(--display); font-size: 24px; color: var(--bone); line-height: 1; margin-top: 2px; }

.map-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 30px; overflow: auto; }
.map { --cell: 48px; display: grid; gap: 0; }
.cell { width: var(--cell); height: var(--cell); }
.room { display: flex; align-items: center; justify-content: center; position: relative; background: rgba(255, 255, 255, .02); }
.room .g { font-size: 20px; line-height: 1; }
.room.wN { border-top: 2px solid var(--line); }
.room.wE { border-right: 2px solid var(--line); }
.room.wS { border-bottom: 2px solid var(--line); }
.room.wW { border-left: 2px solid var(--line); }
.r-start .g { color: var(--cyan); }
.r-exit .g { color: var(--bone); }
.r-enemy .g { color: var(--red); }
.r-chest .g { color: var(--acid); }
.r-key .g { color: var(--cyan); }
.r-trap .g { color: var(--rust); }
.r-empty .g { color: #36342e; }
.room.scouted { opacity: .5; }
.room.done { opacity: .72; }
.room.done .g { opacity: .4; }
.room.cur { background: rgba(215, 255, 63, .1); box-shadow: inset 0 0 0 2px var(--acid); }
.room.cur .g { color: var(--acid) !important; }
.room.canmove { cursor: pointer; }
.room.canmove::after { content: ""; position: absolute; inset: 4px; border: 1px dashed rgba(215, 255, 63, .6); animation: mpulse 1.4s ease-in-out infinite; }
.room.canmove:hover { background: rgba(215, 255, 63, .08); }
@keyframes mpulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.rail { height: 116px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .4); padding: 12px 22px; overflow: auto; font-size: 12px; line-height: 1.95; font-family: 'Share Tech Mono', monospace; }
.logl::before { content: "> "; color: #3b3b38; }
.logl.sys { color: var(--muted); }
.logl.dim { color: #5b564c; }
.logl.floor { color: var(--bone); }
.logl.bad { color: var(--red); }
.logl.good { color: var(--acid); }
.logl.key { color: var(--cyan); }
.logl.death { color: var(--rust); font-weight: 700; }

/* combat overlay */
.combat-overlay { position: fixed; inset: 0; z-index: 18; background: rgba(3, 3, 3, .82); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; }
.combat-overlay[hidden] { display: none; }
.combat-card { border: 1px solid rgba(207, 90, 42, .4); background: #0a0807; padding: 34px; text-align: center; max-width: 440px; width: 90%; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.c-tag { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--rust); margin-bottom: 8px; }
.c-name { font-family: var(--display); font-size: clamp(34px, 7vw, 52px); line-height: .95; color: var(--red); text-transform: uppercase; letter-spacing: 1px; }
.c-sub { font-size: 12px; color: var(--muted); margin: 6px 0 18px; letter-spacing: 1px; text-transform: uppercase; }
.c-bar { height: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.c-bar-fill { height: 100%; background: linear-gradient(90deg, var(--rust), var(--red)); transition: width .18s ease; }
.c-you { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 20px 0 22px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.c-pips { display: flex; gap: 5px; }
.c-actions { display: flex; gap: 12px; justify-content: center; }
.c-actions .btn { min-width: 130px; }

.death-overlay { position: fixed; inset: 0; z-index: 20; background: rgba(3, 3, 3, .86); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; }
.death-overlay[hidden] { display: none; }
.death-card { border: 1px solid rgba(207, 90, 42, .4); background: #0a0807; padding: 40px; text-align: center; max-width: 480px; width: 90%; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.verdict { font-family: var(--display); font-size: clamp(42px, 11vw, 58px); line-height: .92; color: var(--rust); letter-spacing: 1px; }
.death-cause { color: var(--muted); font-size: 13px; margin: 8px 0 18px; }

/* death salvage summary */
.haul { text-align: left; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; margin-bottom: 18px; }
.haul-h { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--acid); margin-bottom: 10px; }
.haul-list { display: grid; gap: 6px; max-height: 168px; overflow: auto; }
.haul-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; align-items: baseline; }
.haul-row .grade { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.g-common { color: var(--muted); }
.g-rare { color: var(--bone); }
.g-vault { color: var(--acid); }
.haul-row .amt { color: var(--bone); font-family: 'Share Tech Mono', monospace; font-size: 12px; }
.haul-row .drops { color: var(--cyan); }
.haul-empty { color: #5b564c; font-size: 13px; text-align: center; padding: 6px 0; }
.haul-tot { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.haul-tot .cr { color: var(--acid); }
.death-nums { display: flex; justify-content: center; gap: 30px; margin-bottom: 28px; }
.death-nums .k { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.death-nums .v { font-family: var(--display); font-size: 40px; color: var(--bone); line-height: 1; }
@media (max-width: 700px) { .map { --cell: 40px; } .hud { gap: 12px; flex-wrap: wrap; } .hud-stats { gap: 14px; } }

/* ===================== BACKLOG + LEADERBOARD ===================== */
.backlog { display: grid; gap: 6px; }
.bl-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); font-size: 13px; }
.bl-row.today { border-color: rgba(215, 255, 63, .3); background: rgba(215, 255, 63, .04); }
.bl-day { font-family: 'Share Tech Mono', monospace; color: var(--bone); letter-spacing: .5px; }
.bl-best { color: var(--muted); }
.bl-go { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--acid); }
.bl-go.dim { color: #4a463e; }

.you-card .you-row { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.you-rank { font-family: var(--display); font-size: 48px; color: var(--acid); line-height: 1; }
.you-pts { font-family: var(--display); font-size: 32px; color: var(--bone); }
.you-pts small { font-family: var(--body); font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.lb { display: grid; gap: 2px; }
.lb-head, .lb-row { display: grid; grid-template-columns: 44px 1fr 70px 90px; gap: 10px; align-items: center; padding: 10px 12px; }
.lb-head { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.lb-head span:last-child, .lb-head span:nth-child(3) { text-align: right; }
.lb-row { border: 1px solid transparent; border-bottom: 1px solid rgba(255, 255, 255, .05); font-size: 13px; }
.lb-row.you { border: 1px solid rgba(215, 255, 63, .35); background: rgba(215, 255, 63, .05); }
.lb-rank { font-family: var(--display); font-size: 20px; color: var(--rust); }
.lb-addr { color: var(--bone); font-size: 12px; }
.lb-depth { color: var(--muted); text-align: right; font-size: 12px; }
.lb-pts { font-family: var(--display); font-size: 22px; color: var(--acid); text-align: right; }

.death-actions { display: flex; gap: 12px; justify-content: center; }
.play-notice { text-align: center; color: var(--muted); max-width: 320px; line-height: 1.7; font-size: 14px; }
@media (max-width: 700px) {
    .bl-row { grid-template-columns: 1fr auto; }
    .bl-best { display: none; }
    .lb-head, .lb-row { grid-template-columns: 36px 1fr 54px 70px; }
}

/* ============================ ADMIN ============================== */
.admin-msg { border: 1px solid rgba(215, 255, 63, .4); background: rgba(215, 255, 63, .06); color: var(--acid); padding: 12px 16px; font-size: 13px; letter-spacing: .04em; }
.op-find { display: flex; gap: 10px; margin-bottom: 8px; }
.op-find input { flex: 1; background: #0a0a0a; border: 1px solid var(--line); color: var(--bone); font-family: 'Share Tech Mono', monospace; font-size: 13px; padding: 10px 12px; }
.op-grant { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.op-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.op-meta { font-size: 11px; color: var(--muted); margin-bottom: 14px; word-break: break-all; }
.op-fields label, .tg-grid label { display: flex; flex-direction: column; gap: 5px; }
.op-fields label span, .tg-grid label span { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.op-fields input, .tg-grid input { background: #0a0a0a; border: 1px solid var(--line); color: var(--bone); font-family: 'Share Tech Mono', monospace; font-size: 13px; padding: 9px 10px; }
.tg-section { margin-bottom: 24px; }
.tg-title { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--acid); border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 14px; }
.tg-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.tg-field { display: flex; flex-direction: column; gap: 6px; }
.tg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tg-top label { font-size: 13px; color: var(--bone); font-weight: 600; }
.tg-def { font-size: 10px; color: #5b564c; letter-spacing: .04em; white-space: nowrap; }
.tg-field input { background: #0a0a0a; border: 1px solid var(--line); color: var(--bone); font-family: 'Share Tech Mono', monospace; font-size: 13px; padding: 9px 10px; }
.tg-help { font-size: 11px; color: var(--muted); line-height: 1.45; }
@media (max-width: 600px) { .op-fields { grid-template-columns: 1fr 1fr; } }

/* ============================ RESPONSIVE =========================== */
@media (max-width: 900px) {
    .main-nav { display: none; }
    .hero, .split, .cta { grid-template-columns: 1fr; }
    .hero { padding-top: 60px; }
    .hero-card { min-height: 420px; }
    .section-title { grid-template-columns: 1fr; gap: 12px; }
    .grid-3 { grid-template-columns: 1fr; }
    .roadmap-intro { margin-left: 0; }
    .road-item { grid-template-columns: 1fr; }
    .road-item.locked::after { position: static; margin-bottom: 10px; display: block; }
    .site-footer { flex-direction: column; }
}
