:root {
    --black: #000000;
    --green: #3ac04a;
    --green-bright: #57ed70;
    --green-dim: #2e9b24;
    --green-dark: #194d20;
    --footer: #1b1b1b;
    --muted: #7abf7f;
    --content: 850px;
    --header: 862px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--black);
    color: var(--green);
    font-family: "Courier New", Courier, monospace;
    font-size: 16px;
    line-height: 1.55;
}

::selection { background: var(--green); color: #000; }
a { color: var(--green-dim); }
a:hover, a:focus { color: var(--green-bright); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }

.skip-link {
    position: fixed;
    z-index: 2000;
    top: .5rem;
    left: .5rem;
    transform: translateY(-150%);
    padding: .55rem .8rem;
    background: #fff;
    color: #000;
}
.skip-link:focus { transform: none; }

/* The desktop header follows the proportions of the public WordPress site. */
.site-header {
    height: 126px;
    background: #000;
}
.header-inner {
    position: relative;
    width: min(calc(100% - 40px), var(--header));
    height: 126px;
    margin: 0 auto;
}
.site-logo {
    position: absolute;
    top: 10px;
    right: 0;
    width: 155px;
    height: 72px;
    overflow: hidden;
    text-decoration: none;
}
.site-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    image-rendering: auto;
}
.site-title {
    position: absolute;
    right: 0;
    bottom: 10px;
    color: var(--green-dim);
    font-size: 16px;
    letter-spacing: .05em;
    text-decoration: none;
    white-space: nowrap;
}
.main-menu {
    position: absolute;
    left: 0;
    top: 60px;
    display: flex;
    align-items: center;
    gap: 26px;
}
.main-menu a {
    color: var(--green-dim);
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}
.main-menu a:hover,
.main-menu a:focus,
.main-menu a[aria-current="page"] { color: #d8d8d8; }
.menu-toggle { display: none; }

.site-main { min-height: 50vh; background: #000; }
.content-width { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/*
 * Public WordPress pages used a full-width Elementor hero with a separate
 * background image on each section. These local images were recovered from
 * the pre-cutover site snapshot.
 */
.page-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 600px;
    overflow: hidden;
    background-color: #000;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    background-attachment: fixed;
}
.page-hero-overlay {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: #000;
    opacity: .4;
}
.page-hero-content {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    text-align: center;
}
.page-hero h1 {
    margin: 0;
    color: #75f887;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: .035em;
    text-shadow: 0 2px 5px rgba(0,0,0,.95);
}
.page-home .page-hero-home {
    background-image: url("../images/home-background.jpg");
    background-position: top center;
}
.page-home .page-hero-overlay {
    background: #040219;
    opacity: .55;
}
.page-networks .page-hero-networks {
    background-image: url("../images/networks-background.jpg");
    background-position: bottom center;
}
.page-files .page-hero-files {
    background-image: url("../images/files-background.jpg");
    background-position: bottom center;
}
.page-games .page-hero-games {
    background-image: url("../images/games-background.jpg");
    background-position: bottom center;
}
.page-ansi .page-hero-ansi {
    background-image: url("../images/ansi-background.jpg");
    background-position: center center;
    background-size: cover;
}
.page-hardware .page-hero-hardware {
    background-image: url("../images/hardware-background.jpg");
    background-position: bottom center;
}
.page-contact .page-hero-contact {
    background-image: url("../images/contact-background.jpg");
    background-position: center center;
}
.home-intro {
    padding: 4px 0 18px;
    text-align: center;
}
.home-intro p,
.prose p,
.feature-copy p,
.game-copy p {
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 1.62;
}

.section-title,
.page-header h1,
.prose h2,
.feature-copy h2,
.game-copy h2,
.area-card h2,
.gallery-card h2,
.contact-layout h2,
.integration-note h2 {
    color: var(--green-bright);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.section-title,
.page-header h1 {
    margin: 0 0 29px;
    padding-top: 0;
    font-size: clamp(1.55rem, 2.4vw, 1.9rem);
    line-height: 1.25;
}
.section-title::after,
.page-header h1::after {
    content: "";
    display: block;
    width: 94px;
    height: 2px;
    margin: 21px auto 0;
    background: var(--green-bright);
}

.page-header {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    padding: 35px 0 18px;
    text-align: center;
}
.page-header .eyebrow { display: none; }
.page-header .lede {
    margin: -8px auto 0;
    max-width: 700px;
    color: var(--muted);
    font-size: 13px;
}

.prose,
.hardware-panel,
.bbs-panel,
.integration-note {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
    text-align: center;
}
.prose h2,
.feature-copy h2,
.game-copy h2,
.area-card h2,
.gallery-card h2,
.contact-layout h2,
.integration-note h2 {
    margin: 34px 0 19px;
    font-size: 1.18rem;
    line-height: 1.3;
}
.prose h2::after,
.feature-copy h2::after,
.game-copy h2::after,
.area-card h2::after,
.gallery-card h2::after,
.contact-layout h2::after {
    content: "";
    display: block;
    width: 62px;
    height: 1px;
    margin: 12px auto 0;
    background: var(--green-dark);
}
.signoff { color: var(--green-bright); }
.facts { color: var(--muted); }
.facts strong { color: var(--green); }

/* Content blocks are deliberately flat and centered, like the original site. */
.feature-grid,
.game-list,
.area-grid,
.gallery-grid {
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto;
}
.feature-card,
.game-card,
.area-card,
.gallery-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 42px auto 58px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
}
.feature-copy,
.game-copy { width: 100%; }

.image-button {
    display: block;
    width: 100%;
    max-width: 820px;
    margin: 13px auto 0;
    padding: 0;
    border: 1px solid #18351b;
    background: #000;
    cursor: zoom-in;
}
.image-button img { width: 100%; }
.image-button:hover,
.image-button:focus { border-color: var(--green-bright); outline: none; }

.area-card { margin-bottom: 64px; }
.terminal-list {
    display: inline-block;
    max-width: 760px;
    margin: 0 auto 10px;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 46px;
    text-align: left;
    color: var(--green);
    font-size: 13px;
    line-height: 1.55;
}
.terminal-list li { break-inside: avoid; margin: 0 0 3px; }

.gallery-card { margin-bottom: 50px; }
.gallery-card figcaption { order: -1; width: 100%; padding: 0; }
.gallery-card figcaption p { margin: 0 0 17px; font-size: 13px; }
.gallery-card .image-button { margin-top: 0; }

.callout {
    width: min(calc(100% - 40px), var(--content));
    margin: 10px auto 60px;
    text-align: center;
}
.callout p { margin: 0 0 14px; }
.button {
    display: inline-block;
    padding: 9px 17px;
    border: 1px solid var(--green);
    background: transparent;
    color: var(--green-bright);
    text-decoration: none;
    cursor: pointer;
}
.button:hover,
.button:focus { background: var(--green); color: #000; }

.terminal-window,
.terminal-placeholder {
    margin: 12px auto 60px;
    border: 1px solid var(--green-dark);
    background: #020202;
    text-align: left;
}
.terminal-bar {
    min-height: 36px;
    padding: 8px 11px;
    border-bottom: 1px solid var(--green-dark);
    color: var(--muted);
    font-size: 12px;
}
.terminal-bar span { display: none; }
.terminal-window pre {
    margin: 0;
    padding: 24px;
    overflow-x: auto;
    color: var(--green);
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    line-height: 1.7;
}
.prompt { color: var(--green-bright); }
.cursor { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.note,
.small-note,
.terminal-fallback { color: var(--muted); font-size: 12px; }

.bbs-panel { margin-bottom: 36px; }
.bbs-frame {
    display: block;
    width: 100%;
    min-height: 720px;
    border: 1px solid var(--green-dark);
    background: #000;
}
.terminal-fallback { margin: 8px 0 0; }
.terminal-body { min-height: 260px; padding: 25px; }

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(240px, .75fr);
    gap: 46px;
    width: min(calc(100% - 40px), var(--content));
    margin: 0 auto 60px;
    align-items: start;
}
.contact-form-panel,
.contact-info { text-align: center; }
.contact-form { display: grid; gap: 16px; text-align: left; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--green-dark);
    border-radius: 0;
    background: #050505;
    color: var(--green-bright);
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 1px solid var(--green-bright); }
.contact-form .button { justify-self: start; }
.honeypot { position: absolute; left: -10000px; }
.notice { margin: 0 0 16px; padding: 10px; border: 1px solid var(--green-dark); font-size: 13px; }
.notice.error { border-color: #983737; color: #ff8c8c; }
.contact-info dl { margin: 0; }
.contact-info dl div { margin-bottom: 24px; }
.contact-info dt { color: var(--green-bright); text-transform: uppercase; }
.contact-info dd { margin: 4px 0 0; font-size: 13px; }
code { color: var(--green-bright); font-family: inherit; }

.site-footer {
    margin-top: 0;
    padding: 36px 20px 43px;
    background: var(--footer);
    color: var(--green-dim);
    text-align: center;
}
.footer-inner { width: min(100%, var(--content)); margin: 0 auto; }
.site-footer p { margin: 0 0 17px; font-size: 13px; }
.site-footer p:last-child { margin-bottom: 0; }
.site-footer a { color: var(--green-dim); text-decoration: none; }

.lightbox[hidden] { display: none; }
.lightbox {
    position: fixed;
    z-index: 1500;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 55px 20px 20px;
    background: rgba(0,0,0,.96);
}
.lightbox img { max-width: 96vw; max-height: 88vh; border: 1px solid var(--green-dark); }
.lightbox-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--green);
    background: #000;
    color: var(--green-bright);
    font-size: 26px;
    cursor: pointer;
}
.lightbox-open { overflow: hidden; }

@media (max-width: 900px) {
    .site-header { height: auto; border-bottom: 1px solid #102514; }
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 12px;
        width: min(calc(100% - 28px), var(--header));
        height: auto;
        min-height: 94px;
        padding: 10px 0;
    }
    .site-logo { position: static; width: 135px; height: 70px; grid-column: 1; grid-row: 1; }
    .site-title { position: static; grid-column: 1; grid-row: 2; justify-self: start; font-size: 14px; }
    .menu-toggle {
        display: block;
        grid-column: 2;
        grid-row: 1 / span 2;
        padding: 8px 10px;
        border: 1px solid var(--green-dark);
        background: #000;
        color: var(--green);
    }
    .main-menu {
        position: static;
        display: none;
        grid-column: 1 / -1;
        grid-row: 3;
        width: 100%;
        gap: 0;
        border-top: 1px solid var(--green-dark);
    }
    .main-menu.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .main-menu a { padding: 10px 5px; border-bottom: 1px solid #102514; font-size: 13px; }
    .page-hero {
        min-height: 390px;
        background-attachment: scroll;
    }
    .home-intro { padding-top: 23px; }
    .contact-layout { grid-template-columns: 1fr; gap: 20px; }
    .bbs-frame { min-height: 620px; }
}

@media (max-width: 520px) {
    .page-hero {
        min-height: 230px;
        background-attachment: scroll;
    }
    .page-hero h1 {
        font-size: clamp(1.75rem, 9vw, 2.65rem);
    }
    .terminal-list { columns: 1; }
    .page-header { padding-top: 28px; }
    .feature-card,
    .game-card,
    .area-card,
    .gallery-card { margin-bottom: 45px; }
    .bbs-frame { min-height: 560px; }
}

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