:root {
    --bg: #030705;
    --panel: rgba(5, 12, 8, .76);
    --panel-strong: rgba(4, 10, 7, .92);
    --green: #58f14e;
    --green-soft: #2e9d35;
    --green-dark: #143f1c;
    --text: #d9dfda;
    --muted: #8f9a91;
    --line: rgba(104, 187, 111, .28);
    --glow: rgba(88, 241, 78, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 45% 35%, rgba(15, 77, 29, .13), transparent 30%),
        linear-gradient(180deg, #020503 0%, #030805 100%);
    font-family: "IBM Plex Mono", monospace;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(88,241,78,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88,241,78,.018) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 90%);
}

.noise, .scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 20;
}
.noise {
    opacity: .035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}
.scanlines {
    opacity: .045;
    background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, #000 4px);
}

a { color: inherit; text-decoration: none; }
.terminal-shell {
    width: min(1500px, calc(100% - 42px));
    margin: 24px auto;
    border: 1px solid var(--line);
    background: rgba(0, 5, 3, .45);
    box-shadow: 0 0 70px rgba(0,0,0,.6), inset 0 0 80px rgba(34, 96, 42, .025);
}

.topbar {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(4,10,7,.78);
    position: sticky;
    top: 0;
    z-index: 15;
    backdrop-filter: blur(12px);
}
.terminal-brand { color: var(--green); font-size: .95rem; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: #c1c8c3; font-size: .88rem; transition: .2s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--green); text-shadow: 0 0 10px var(--glow); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--green); font: inherit; }

.hero-grid {
    min-height: 690px;
    padding: 36px 40px 28px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr) 365px;
    gap: 34px;
    align-items: stretch;
}
.intro-column { display: flex; flex-direction: column; }
.system-status { color: #c7cec9; font-size: .9rem; letter-spacing: .02em; }
.system-status span { color: var(--green); }
.system-status i { display: inline-block; width: 12px; height: 12px; margin-left: 8px; background: var(--green); box-shadow: 0 0 16px var(--glow); animation: blink 1.3s steps(1) infinite; }
.hero-copy { margin-top: 95px; }
.eyebrow { color: var(--green-soft); text-transform: uppercase; font-size: .78rem; letter-spacing: .12em; }
h1 {
    margin: 10px 0 22px;
    font-family: "Space Mono", monospace;
    font-size: clamp(3rem, 5.6vw, 6.3rem);
    line-height: .98;
    font-weight: 400;
    letter-spacing: -.06em;
}
h1 span { color: var(--green); text-shadow: 0 0 24px rgba(88,241,78,.1); }
.hero-rule { width: 280px; max-width: 70%; height: 1px; background: linear-gradient(90deg, #9fa7a1, transparent); margin: 34px 0; }
.lead { max-width: 620px; color: #c7cec9; line-height: 1.7; font-size: .98rem; }
.terminal-button {
    display: inline-flex;
    margin-top: 28px;
    border: 1px solid rgba(88,241,78,.75);
    color: var(--green);
    padding: 16px 28px;
    transition: .2s ease;
}
.terminal-button:hover { background: rgba(88,241,78,.08); box-shadow: 0 0 22px var(--glow); transform: translateY(-1px); }

.globe-column { position: relative; min-height: 610px; display: grid; place-items: center; overflow: hidden; }
.ascii-globe {
    margin: 0;
    color: rgba(88,241,78,.36);
    font-size: clamp(7px, .62vw, 10px);
    line-height: .9;
    letter-spacing: .03em;
    text-shadow: 0 0 10px rgba(88,241,78,.1);
    transform: scale(1.03);
    user-select: none;
}
.radar-ring { position: absolute; border: 1px solid rgba(88,241,78,.07); border-radius: 50%; animation: pulse 6s ease-in-out infinite; }
.ring-1 { width: 430px; height: 430px; }
.ring-2 { width: 520px; height: 520px; animation-delay: -2s; }
.ring-3 { width: 600px; height: 600px; animation-delay: -4s; }
.coordinate { position: absolute; color: var(--green); font-size: .7rem; }
.c1 { top: 29%; right: 14%; }
.c2 { top: 56%; right: 17%; }
.c3 { bottom: 19%; right: 21%; }

.sidebar { display: grid; align-content: start; gap: 22px; }
.terminal-card { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(6,14,9,.72), rgba(3,8,5,.86)); }
.card-title, .projects-head {
    min-height: 42px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    color: var(--green);
    font-size: .86rem;
}
.card-body { padding: 17px 18px; }
.info-list p { margin: 0 0 8px; font-size: .88rem; }
.info-list b { color: var(--green); font-weight: 400; }
.blocks { margin-top: 16px; height: 10px; width: 72%; background: repeating-linear-gradient(90deg, var(--green-soft) 0 8px, transparent 8px 11px); }
.skill-list { display: grid; gap: 14px; }
.skill { display: grid; grid-template-columns: 120px 1fr 42px; gap: 10px; align-items: center; font-size: .82rem; }
.skill b { color: var(--green); font-weight: 400; text-align: right; }
.bar { height: 8px; background: rgba(88,241,78,.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: var(--value); background: linear-gradient(90deg, var(--green-soft), var(--green)); box-shadow: 0 0 16px var(--glow); }
.activity-list p { margin: 0 0 8px; color: #c9d0cb; font-size: .83rem; }
.activity-list p::first-letter, .activity-list span { color: var(--green); }
.cursor-block { display: inline-block; width: 9px; height: 18px; margin-top: 8px; background: var(--green); animation: blink 1s steps(1) infinite; }

.projects-section { margin: 0 40px 28px; }
.projects-head { min-height: 48px; }
.projects-head a { font-size: .78rem; }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 12px; }
.project-card { border: 1px solid var(--line); padding: 16px; min-height: 96px; transition: .2s ease; background: rgba(3,9,5,.55); }
.project-card:hover { transform: translateY(-3px); border-color: rgba(88,241,78,.55); box-shadow: 0 0 20px rgba(88,241,78,.06); }
.project-card > div { display: flex; justify-content: space-between; align-items: center; }
.project-card h3 { margin: 0; font-size: .9rem; font-weight: 500; }
.project-card p { margin: 14px 0 0; color: var(--muted); font-size: .78rem; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--glow); }
.contact-strip { display: flex; justify-content: space-between; gap: 20px; padding: 18px 40px 24px; color: var(--muted); font-size: .8rem; }
.contact-strip a { color: var(--green); }

@keyframes blink { 50% { opacity: .15; } }
@keyframes pulse { 0%,100% { transform: scale(.97); opacity: .4; } 50% { transform: scale(1.02); opacity: .8; } }

@media (max-width: 1180px) {
    .hero-grid { grid-template-columns: 1fr 1fr; }
    .sidebar { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    .terminal-shell { width: calc(100% - 16px); margin: 8px auto; }
    .topbar { padding: 0 14px; }
    .menu-toggle { display: block; }
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; padding: 18px; background: #040a07; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 18px; }
    .nav-links.open { display: flex; }
    .hero-grid { padding: 26px 20px; grid-template-columns: 1fr; }
    .hero-copy { margin-top: 55px; }
    .globe-column { min-height: 420px; }
    .sidebar { grid-template-columns: 1fr; }
    .projects-section { margin: 0 20px 20px; }
    .project-grid { grid-template-columns: 1fr; }
    .contact-strip { padding: 18px 20px 22px; flex-direction: column; }
}
@media (max-width: 520px) {
    h1 { font-size: 3rem; }
    .hero-grid { gap: 18px; }
    .globe-column { min-height: 330px; }
    .ascii-globe { font-size: 6px; }
    .skill { grid-template-columns: 90px 1fr 38px; }
}

@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* v1.4 boot sequence */
body.is-booting { overflow: hidden; }
.boot-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #010302;
    transition: opacity .6s ease, visibility .6s ease;
}
.boot-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(88,241,78,.08), transparent 38%),
        repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0,0,0,.35) 4px);
    pointer-events: none;
}
.boot-screen.finished { opacity: 0; visibility: hidden; }
.boot-terminal {
    position: relative;
    width: min(780px, 100%);
    min-height: 430px;
    border: 1px solid rgba(88,241,78,.45);
    background: rgba(2,8,4,.94);
    box-shadow: 0 0 70px rgba(88,241,78,.08), inset 0 0 60px rgba(88,241,78,.025);
    padding: 22px;
}
.boot-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    color: var(--green);
    font-size: .82rem;
}
.boot-output { min-height: 300px; padding: 22px 0; font-size: .9rem; line-height: 1.8; }
.boot-line { margin: 0; color: #bec7c0; }
.boot-line .prompt, .boot-line .ok { color: var(--green); }
.boot-line .warn { color: #d9c66a; }
.boot-progress { height: 8px; background: rgba(88,241,78,.08); overflow: hidden; }
.boot-progress i { display: block; width: 0; height: 100%; background: var(--green); box-shadow: 0 0 18px var(--glow); transition: width .25s ease; }
.boot-skip { margin-top: 18px; padding: 0; border: 0; background: transparent; color: var(--green-soft); font: inherit; cursor: pointer; }
.boot-skip:hover { color: var(--green); }
.scan-row span { transition: color .25s ease, text-shadow .25s ease; }
.scan-row.detected span { color: var(--green); text-shadow: 0 0 10px var(--glow); }
@media (max-width: 520px) {
    .boot-terminal { min-height: 400px; padding: 16px; }
    .boot-output { min-height: 285px; font-size: .76rem; }
}

/* v2.0 cinematic boot sequence */
.boot-terminal { width: min(1040px, 100%); min-height: 570px; overflow: hidden; }
.boot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; min-height: 405px; }
.boot-main { min-width: 0; display: flex; flex-direction: column; }
.boot-output { min-height: 340px; max-height: 340px; overflow: hidden auto; scrollbar-width: none; }
.boot-output::-webkit-scrollbar { display: none; }
.boot-status { margin-top: auto; padding: 12px 0 4px; color: var(--green); letter-spacing: .08em; font-size: .8rem; }
.boot-cursor { animation: blink .8s steps(1) infinite; }
.boot-metrics { margin: 22px 0 14px; padding: 16px; border: 1px solid var(--line); background: rgba(88,241,78,.018); align-self: stretch; }
.boot-metrics::before { content: "LIVE SYSTEM LOG"; display: block; margin-bottom: 18px; color: var(--green); font-size: .72rem; letter-spacing: .1em; }
.boot-metrics p { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 16px; font-size: .72rem; }
.boot-metrics b { color: #8f9a92; font-weight: 400; }
.boot-metrics span { color: var(--green); text-align: right; }
.boot-progress-wrap { display: grid; grid-template-columns: 1fr auto; gap: 15px; align-items: center; }
.boot-progress-wrap > span { min-width: 170px; color: var(--green-soft); text-align: right; font-size: .72rem; }
.boot-line { opacity: 0; transform: translateY(5px); animation: bootLineIn .28s ease forwards; }
.boot-line.access-line { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--green); font-size: 1rem; text-shadow: 0 0 14px var(--glow); }
.boot-line .fail { color: #ff6b6b; }
.boot-screen.boot-complete .boot-terminal { animation: terminalConfirm .8s ease both; }
.boot-screen.finished .boot-terminal { transform: translateY(-60px) scale(.98); opacity: 0; transition: transform .7s ease, opacity .7s ease; }
@keyframes bootLineIn { to { opacity: 1; transform: translateY(0); } }
@keyframes terminalConfirm { 0%,100% { box-shadow: 0 0 70px rgba(88,241,78,.08), inset 0 0 60px rgba(88,241,78,.025); } 50% { box-shadow: 0 0 110px rgba(88,241,78,.22), inset 0 0 80px rgba(88,241,78,.06); } }
@media (max-width: 760px) {
    .boot-layout { grid-template-columns: 1fr; }
    .boot-metrics { display: none; }
    .boot-output { min-height: 330px; max-height: 330px; }
    .boot-progress-wrap { grid-template-columns: 1fr; }
    .boot-progress-wrap > span { text-align: left; }
}

/* v2.2 Travels authentication + protected archive */
.project-card-link { display: block; color: inherit; position: relative; }
.project-card-link:hover { color: inherit; }
.project-access { display: inline-block; margin-top: 12px; color: var(--green-soft); font-size: .66rem; letter-spacing: .08em; }

.auth-page, .travels-page { min-height: 100vh; background: #010302; }
.auth-shell, .travels-shell { min-height: calc(100vh - 32px); }
.auth-nav { margin-left: auto; }
.auth-stage { min-height: calc(100vh - 90px); display: grid; grid-template-columns: minmax(0, 760px) 310px; gap: 28px; align-items: center; justify-content: center; padding: 48px 40px; }
.auth-console { box-shadow: 0 0 70px rgba(88,241,78,.05); }
.auth-console-body { padding: 36px; }
.auth-kicker { color: var(--green-soft); text-transform: uppercase; font-size: .76rem; letter-spacing: .12em; }
.auth-title { margin: 12px 0 28px; font-size: clamp(2.6rem, 6vw, 5.3rem); line-height: 1; }
.auth-log { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin: 0 0 28px; }
.auth-log p { margin: 7px 0; color: #aeb8b0; font-size: .82rem; }
.auth-log span { color: var(--green); }
.auth-error { margin-bottom: 22px; padding: 13px 15px; border: 1px solid rgba(255,107,107,.5); color: #ff8585; background: rgba(255,107,107,.04); font-size: .82rem; }
.auth-form label { display: block; margin-bottom: 10px; color: var(--green); font-size: .76rem; letter-spacing: .1em; }
.auth-input-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1px solid rgba(88,241,78,.5); background: rgba(88,241,78,.02); padding: 0 15px; }
.auth-input-row > span { color: var(--green); }
.auth-input-row input { width: 100%; min-height: 54px; border: 0; outline: 0; background: transparent; color: var(--green); font: 1rem "IBM Plex Mono", monospace; letter-spacing: .08em; caret-color: var(--green); }
.auth-input-row .cursor-block { width: 7px; height: 18px; margin: 0; }
.auth-hint { color: var(--muted); font-size: .72rem; margin: 10px 0 0; }
.auth-submit { appearance: none; background: transparent; font: inherit; cursor: pointer; }
.auth-led { animation: blink 1.1s steps(1) infinite; }
.auth-side { align-self: center; }

.travels-hero { display: grid; grid-template-columns: 1fr 330px; gap: 36px; align-items: end; padding: 72px 40px 44px; }
.travels-hero h1 { font-size: clamp(3.6rem, 7vw, 7.4rem); margin-bottom: 20px; }
.travels-status { margin-bottom: 6px; }
.travel-browser { margin: 0 40px 28px; }
.travel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 14px; }
.travel-album { border: 1px solid var(--line); background: rgba(3,9,5,.55); min-height: 320px; transition: .2s ease; overflow: hidden; }
.travel-album:hover { transform: translateY(-4px); border-color: rgba(88,241,78,.55); box-shadow: 0 0 25px rgba(88,241,78,.06); }
.travel-cover { min-height: 205px; position: relative; display: grid; place-items: center; border-bottom: 1px solid var(--line); background: radial-gradient(circle at center, rgba(88,241,78,.07), transparent 58%), repeating-linear-gradient(0deg, transparent 0 11px, rgba(88,241,78,.025) 12px), repeating-linear-gradient(90deg, transparent 0 11px, rgba(88,241,78,.025) 12px); }
.travel-cover::before, .travel-cover::after { content: ""; position: absolute; background: rgba(88,241,78,.12); }
.travel-cover::before { width: 62%; height: 1px; }
.travel-cover::after { width: 1px; height: 62%; }
.travel-cover span { color: var(--green); font-family: "Space Mono", monospace; font-size: 2.8rem; text-shadow: 0 0 18px var(--glow); z-index: 1; }
.travel-cover i { position: absolute; right: 12px; bottom: 10px; color: var(--green-soft); font-style: normal; font-size: .68rem; }
.travel-meta { padding: 18px; }
.travel-meta h2 { margin: 0 0 8px; color: var(--green); font: 500 .96rem "IBM Plex Mono", monospace; }
.travel-meta p { margin: 0 0 15px; color: var(--muted); font-size: .78rem; }
.travel-meta small { color: var(--green-soft); font-size: .65rem; letter-spacing: .08em; }
.travel-album-add { border-style: dashed; }
.travels-footer { border-top: 1px solid var(--line); }

@media (max-width: 1080px) {
    .auth-stage { grid-template-columns: 1fr; }
    .auth-side { display: none; }
    .travels-hero { grid-template-columns: 1fr; }
    .travel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
    .auth-stage { padding: 30px 20px; }
    .auth-console-body { padding: 24px 20px; }
    .travels-hero { padding: 48px 20px 28px; }
    .travel-browser { margin: 0 20px 20px; }
}
@media (max-width: 560px) {
    .auth-title { font-size: 2.5rem; }
    .travel-grid { grid-template-columns: 1fr; }
    .travel-album { min-height: 290px; }
}

/* v2.3 Travels map */
.map-general-link {
    color: var(--green);
    font-size: .76rem;
    letter-spacing: .06em;
    transition: .2s ease;
}
.map-general-link:hover {
    color: #d9ffd6;
    text-shadow: 0 0 12px var(--glow);
}
.travel-map-intro {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 36px;
    align-items: end;
    padding: 64px 40px 34px;
}
.travel-map-intro h1 {
    margin: 8px 0 18px;
    font-size: clamp(3.2rem, 6.5vw, 6.7rem);
    line-height: .95;
}
.travel-map-intro h1 span { color: var(--green); }
.travel-map-panel { margin: 0 40px 28px; }
.travel-map-head a { color: var(--green); font-size: .74rem; }
.google-map-wrap {
    position: relative;
    min-height: 620px;
    margin: 14px;
    border: 1px solid rgba(88,241,78,.25);
    overflow: hidden;
    background: #020603;
}
.google-map-wrap iframe {
    display: block;
    width: 100%;
    height: 620px;
    border: 0;
    filter: grayscale(1) invert(.92) contrast(1.04) brightness(.82) sepia(.15) hue-rotate(70deg) saturate(1.35);
}
.google-map-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 55px rgba(0,0,0,.55);
}
.map-corners { position: absolute; inset: 0; pointer-events: none; }
.map-corners i { position: absolute; width: 26px; height: 26px; border-color: var(--green); opacity: .8; }
.map-corners i:nth-child(1) { top: 10px; left: 10px; border-top: 1px solid; border-left: 1px solid; }
.map-corners i:nth-child(2) { top: 10px; right: 10px; border-top: 1px solid; border-right: 1px solid; }
.map-corners i:nth-child(3) { bottom: 10px; left: 10px; border-bottom: 1px solid; border-left: 1px solid; }
.map-corners i:nth-child(4) { bottom: 10px; right: 10px; border-bottom: 1px solid; border-right: 1px solid; }
.map-console-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    padding: 0 14px 16px;
    color: var(--green-soft);
    font-size: .69rem;
    letter-spacing: .06em;
}
@media (max-width: 1080px) {
    .travel-map-intro { grid-template-columns: 1fr; }
    .map-status-card { max-width: 420px; }
}
@media (max-width: 820px) {
    .travel-map-intro { padding: 46px 20px 26px; }
    .travel-map-panel { margin: 0 20px 20px; }
    .google-map-wrap, .google-map-wrap iframe { min-height: 520px; height: 520px; }
}
@media (max-width: 560px) {
    .travel-map-head { align-items: flex-start; gap: 8px; flex-direction: column; padding-top: 12px; padding-bottom: 12px; }
    .google-map-wrap, .google-map-wrap iframe { min-height: 460px; height: 460px; }
}

/* v2.4 immersive full-screen travel map */
.immersive-map-page {
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    background: #010302;
}
.immersive-map-shell {
    position: relative;
    z-index: 2;
    width: 100vw;
    height: 100vh;
    padding: 18px;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
    box-sizing: border-box;
}
.immersive-map-topline {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 4px;
    font-family: "IBM Plex Mono", monospace;
    font-size: .78rem;
    letter-spacing: .08em;
    color: var(--green-soft);
}
.map-timestamp {
    color: var(--green);
    text-shadow: 0 0 10px var(--glow);
    white-space: nowrap;
}
.map-back-link {
    color: var(--green);
    text-decoration: none;
    white-space: nowrap;
    transition: .2s ease;
}
.map-back-link:hover {
    color: #d9ffd6;
    text-shadow: 0 0 12px var(--glow);
}
.immersive-map-frame {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(88,241,78,.42);
    background: #020603;
    box-shadow: 0 0 28px rgba(88,241,78,.04), inset 0 0 26px rgba(0,0,0,.45);
}
.immersive-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(1) invert(.92) contrast(1.04) brightness(.82) sepia(.15) hue-rotate(70deg) saturate(1.35);
}
.immersive-map-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 52px rgba(0,0,0,.42);
}
.immersive-map-frame .map-corners i { opacity: .7; }

@media (max-width: 700px) {
    .immersive-map-shell { padding: 10px; gap: 8px; }
    .immersive-map-topline {
        font-size: .66rem;
        letter-spacing: .04em;
    }
}


/* v2.5 force Google Maps iframe to fill the entire framed viewport */
.immersive-map-frame {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
}
.immersive-map-frame > iframe {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    border: 0 !important;
}


/* v3.1 integrated SECURITY GATEWAY */
body.is-booting .terminal-shell { pointer-events: none; user-select: none; }
.boot-auth-gate {
    margin: 14px 0 18px;
    padding: 18px;
    border: 1px solid rgba(88,241,78,.42);
    background: rgba(88,241,78,.025);
    box-shadow: inset 0 0 26px rgba(88,241,78,.025);
}
.boot-auth-gate[hidden] { display: none !important; }
.boot-auth-title {
    color: var(--green);
    font: 700 .94rem "Space Mono", monospace;
    letter-spacing: .12em;
    text-shadow: 0 0 14px var(--glow);
}
.boot-auth-subtitle { margin: 7px 0 16px; color: #8f9a92; font-size: .75rem; }

.boot-client-identity {
    margin: 0 0 16px;
    padding: 10px 12px;
    border: 1px solid rgba(93, 255, 147, .22);
    background: rgba(4, 16, 8, .46);
    font-family: "IBM Plex Mono", monospace;
}
.boot-client-identity p {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 12px;
    margin: 5px 0;
    font-size: .73rem;
}
.boot-client-identity b {
    color: #7d8b80;
    font-weight: 500;
    letter-spacing: .08em;
}
.boot-client-identity span {
    color: var(--green);
    overflow-wrap: anywhere;
}
@media (max-width: 640px) {
    .boot-client-identity p { grid-template-columns: 1fr; gap: 2px; }
}
.boot-auth-gate label { display: block; margin-bottom: 8px; color: var(--green-soft); font-size: .7rem; letter-spacing: .1em; }
.boot-auth-input {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    border: 1px solid rgba(88,241,78,.55);
    background: rgba(0,0,0,.28);
}
.boot-auth-input > span { color: var(--green); }
.boot-auth-input input {
    width: 100%;
    height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--green);
    caret-color: var(--green);
    font: .92rem "IBM Plex Mono", monospace;
    letter-spacing: .08em;
}
.boot-auth-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.boot-auth-actions .terminal-button { margin: 0; cursor: pointer; }
#bootAuthMessage { color: var(--green-soft); font-size: .72rem; }
#bootAuthMessage.is-error { color: #ff8585; }
#bootAuthMessage.is-ok { color: var(--green); }
.boot-screen.waiting-auth .boot-status { color: #d9c66a; }
.boot-screen.waiting-auth .boot-terminal { box-shadow: 0 0 85px rgba(88,241,78,.10), inset 0 0 60px rgba(88,241,78,.025); }
@media (max-width: 760px) {
    .boot-auth-gate { padding: 14px; }
    .boot-auth-actions { align-items: flex-start; flex-direction: column; }
}


/* v3.3 - clearer Security Gateway metadata layout */
.gateway-meta p,
.security-meta p,
.auth-meta p {
    display: grid !important;
    grid-template-columns: 190px minmax(0, 1fr) !important;
    column-gap: 18px !important;
    align-items: baseline !important;
}
.gateway-meta p b,
.security-meta p b,
.auth-meta p b {
    display: block !important;
    margin-right: 0 !important;
}
