@import url("https://fonts.googleapis.com/css2?family=VT323&family=Share+Tech+Mono&display=swap");

:root {
    --green: #00ff41;
    --dim-green: #00aa2a;
    --dark: #0a0a0a;
    --darker: #050505;
    --orange: #ff6600;
    --yellow: #ffff00;
    --pink: #ff00ff;
    --blue: #00ffff;
}

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

body {
    background-color: var(--darker);
    color: var(--green);
    font-family: "Share Tech Mono", monospace;
    font-size: 14px;
    overflow-x: hidden;
    cursor: crosshair;
    padding-left: 20px;
    padding-bottom: 22px;
}

/* ─── BACKGROUND CRITTERS ───────────────────────────────── */
.bg-critters {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-critters pre {
    position: absolute;
    font-family: "Share Tech Mono", monospace;
    font-size: 10px;
    line-height: 1.4;
    color: var(--dim-green);
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    animation: critter-drift 20s ease-in-out infinite;
}

.bg-critters pre:nth-child(odd) {
    animation-direction: alternate;
}

.bg-critters pre:nth-child(3n) {
    animation-duration: 28s;
}

.bg-critters pre:nth-child(4n) {
    animation-duration: 15s;
}

@keyframes critter-drift {
    0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
    50% { transform: translateY(-8px) rotate(var(--r, 0deg)); }
}

/* scanline effect */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.07) 2px,
        rgba(0, 0, 0, 0.07) 4px
    );
    pointer-events: none;
    z-index: 9999;
}

a {
    color: var(--orange);
    text-decoration: none;
}
a:hover {
    color: var(--yellow);
    text-shadow: 0 0 8px var(--yellow);
}

/* ─── HEADER / HERO ─────────────────────────────── */
header {
    text-align: center;
    padding: 40px 20px 20px;
    position: relative;
}

header::after {
    content: "";
    display: block;
    height: 2px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: repeating-linear-gradient(
        90deg,
        var(--pink) 0px,
        var(--pink) 6px,
        var(--yellow) 6px,
        var(--yellow) 12px,
        var(--orange) 12px,
        var(--orange) 18px,
        var(--blue) 18px,
        var(--blue) 24px
    );
    opacity: 0.55;
}

h1 {
    font-family: "VT323", monospace;
    font-size: clamp(48px, 10vw, 96px);
    letter-spacing: 4px;
    animation: flicker 8s infinite;
    line-height: 1;
}

h1 .l1 {
    color: #ff00ff;
    text-shadow:
        0 0 10px #ff00ff,
        0 0 30px rgba(255, 0, 255, 0.4);
}
h1 .l2 {
    color: #ff6600;
    text-shadow:
        0 0 10px #ff6600,
        0 0 30px rgba(255, 102, 0, 0.4);
}
h1 .l3 {
    color: #ffff00;
    text-shadow:
        0 0 10px #ffff00,
        0 0 30px rgba(255, 255, 0, 0.4);
}
h1 .l4 {
    color: #00ff41;
    text-shadow:
        0 0 10px #00ff41,
        0 0 30px rgba(0, 255, 65, 0.4);
}
h1 .l5 {
    color: #00ffff;
    text-shadow:
        0 0 10px #00ffff,
        0 0 30px rgba(0, 255, 255, 0.4);
}
h1 .l6 {
    color: #ff44aa;
    text-shadow:
        0 0 10px #ff44aa,
        0 0 30px rgba(255, 68, 170, 0.4);
}
h1 .dot {
    color: #555;
}

@keyframes signal-pulse {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 1; }
}

.antenna-flag {
    vertical-align: top;
    margin-top: -6px;
    filter: drop-shadow(0 0 5px #ff44aa);
}
.antenna-flag .sig {
    animation: signal-pulse 1.8s ease-in-out infinite;
}
.antenna-flag .sig2 {
    animation: signal-pulse 1.8s ease-in-out infinite 0.4s;
}
.antenna-flag .sig3 {
    animation: signal-pulse 1.8s ease-in-out infinite 0.8s;
}

h1 .l7 {
    color: #ff6600;
    text-shadow:
        0 0 10px #ff6600,
        0 0 30px rgba(255, 102, 0, 0.4);
}
h1 .l8 {
    color: #ffff00;
    text-shadow:
        0 0 10px #ffff00,
        0 0 30px rgba(255, 255, 0, 0.4);
}
h1 .l9 {
    color: #00ff41;
    text-shadow:
        0 0 10px #00ff41,
        0 0 30px rgba(0, 255, 65, 0.4);
}
h1 .l10 {
    color: #00ffff;
    text-shadow:
        0 0 10px #00ffff,
        0 0 30px rgba(0, 255, 255, 0.4);
}

@keyframes flicker {
    0%, 95%, 100% { opacity: 1; }
    96% { opacity: 0.7; }
    97% { opacity: 1; }
    98% { opacity: 0.4; }
    99% { opacity: 1; }
}

.tagline {
    font-size: 12px;
    color: var(--dim-green);
    margin-top: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.status-bar {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    border: 1px solid var(--orange);
    color: var(--orange);
    font-size: 11px;
    animation: blink-border 2s infinite;
}

@keyframes blink-border {
    0%, 100% { border-color: var(--orange); }
    50% { border-color: transparent; }
}

/* placeholder boxes for gifs/images */
.gif-placeholder {
    width: 88px;
    height: 31px;
    background: var(--dark);
    border: 1px solid var(--dim-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--dim-green);
    opacity: 0.6;
    font-family: "VT323", monospace;
}

.gif-placeholder.tall {
    width: 64px;
    height: 64px;
}

/* ─── MAP SECTION ────────────────────────────────── */
.map-section {
    margin: 24px 0 8px;
    position: relative;
    display: flex;
    justify-content: center;
}

.map-wrap {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: center;
}

.map-ascii {
    flex: 1;
    min-width: 280px;
    border: 1px solid #1a3a1a;
    background: var(--dark);
    padding: 14px 16px;
    font-size: 11px;
    line-height: 1.55;
    color: #2a6a2a;
    overflow-x: auto;
    position: relative;
    font-family: "Share Tech Mono", monospace;
    margin: 0;
}

.map-ascii .zone-friends { color: var(--blue); }
.map-ascii .zone-blog    { color: var(--orange); }
.map-ascii .zone-projects { color: var(--pink); }
.map-ascii .zone-square  { color: var(--yellow); }
.map-ascii .zone-void    { color: #444; }
.map-ascii .zone-you     { color: var(--green); }
.map-ascii .zone-label   { color: #2a6a2a; }

.map-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 130px;
}

.compass {
    text-align: center;
    font-family: "VT323", monospace;
    font-size: 15px;
    color: #2a6a2a;
    line-height: 1.3;
    border: 1px solid #1a3a1a;
    background: var(--dark);
    padding: 10px;
}

.compass .n { color: var(--green); }

.coords {
    border: 1px solid #1a3a1a;
    background: var(--dark);
    padding: 8px 10px;
    font-size: 10px;
    color: #2a6a2a;
    line-height: 1.7;
}

.coords span { color: var(--dim-green); }

.map-pin {
    display: inline-block;
    font-size: 16px;
    animation: pin-pulse 2s ease-in-out infinite;
}

@keyframes pin-pulse {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.2) translateY(-2px); }
}

/* ─── MAIN CONTENT ───────────────────────────────── */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.panel {
    border: 1px solid var(--dim-green);
    background: var(--dark);
    padding: 0;
    position: relative;
}

.panel:hover {
    border-color: var(--green);
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.15);
}

.panel-orange { border-color: var(--orange); }
.panel-orange .panel-title { background: var(--orange); }
.panel-orange:hover {
    border-color: var(--yellow);
    box-shadow: 0 0 12px rgba(255, 102, 0, 0.2);
}

.panel-red { border-color: #cc2200; }
.panel-red .panel-title { background: #cc2200; }
.panel-red:hover {
    border-color: #ff4422;
    box-shadow: 0 0 12px rgba(204, 34, 0, 0.2);
}

.panel-title {
    background: var(--dim-green);
    color: var(--darker);
    padding: 4px 10px;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: bold;
}

.panel-body { padding: 14px; }

.panel-body p {
    color: #888;
    font-size: 12px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.panel-body p:last-child { margin-bottom: 0; }

/* progress bar */
.progress-wrap { margin: 20px 0; }

.progress-label {
    font-size: 11px;
    color: var(--dim-green);
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.progress-bar {
    height: 14px;
    background: var(--dark);
    border: 1px solid var(--dim-green);
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        #ff00ff 0px,
        #ff00ff 6px,
        #ff6600 6px,
        #ff6600 12px,
        #ffff00 12px,
        #ffff00 18px,
        #00ff41 18px,
        #00ff41 24px,
        #00ffff 24px,
        #00ffff 30px,
        #ff44aa 30px,
        #ff44aa 36px
    );
    background-size: 36px 100%;
    animation: progress-anim 1.2s linear infinite;
    box-shadow:
        0 0 8px rgba(255, 0, 255, 0.4),
        0 0 16px rgba(0, 255, 65, 0.2);
}

@keyframes progress-anim {
    0% { background-position: 0 0; }
    100% { background-position: 36px 0; }
}

/* ─── RSS LINK ───────────────────────────────────── */
.rss-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--orange);
    background: rgba(255, 102, 0, 0.05);
    margin: 20px 0;
    font-size: 12px;
}

.rss-icon {
    font-size: 18px;
    color: var(--orange);
}

.rss-bar a { color: var(--orange); }

/* ─── SUBSCRIBE FORM ─────────────────────────────── */
.subscribe-panel {
    border: 2px solid var(--pink);
    background: var(--dark);
    padding: 0;
    margin: 20px 0;
    position: relative;
}

.subscribe-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 30px rgba(255, 0, 255, 0.05);
    pointer-events: none;
}

.subscribe-panel .panel-title {
    background: var(--pink);
    color: var(--darker);
}

.subscribe-panel .panel-body { padding: 20px; }

.subscribe-panel p {
    font-size: 12px;
    color: #888;
    margin-bottom: 16px;
    line-height: 1.7;
}

.form-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.form-row input[type="email"] {
    flex: 1;
    min-width: 180px;
    background: var(--darker);
    border: 1px solid var(--pink);
    color: var(--pink);
    padding: 8px 12px;
    font-family: "Share Tech Mono", monospace;
    font-size: 13px;
    outline: none;
}

.form-row input[type="email"]::placeholder {
    color: rgba(255, 0, 255, 0.3);
}

.form-row input[type="email"]:focus {
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.3);
}

.btn {
    background: transparent;
    border: 1px solid var(--pink);
    color: var(--pink);
    padding: 8px 20px;
    font-family: "Share Tech Mono", monospace;
    font-size: 13px;
    cursor: pointer;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.15s;
}

.btn:hover {
    background: var(--pink);
    color: var(--darker);
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.4);
}

.form-note {
    font-size: 10px;
    color: #555;
    margin-top: 10px;
}

/* ─── SUPPORT / ABOUT ────────────────────────────── */
.support-panel {
    border: 2px solid var(--blue);
    background: var(--dark);
    padding: 0;
    margin: 20px 0;
    position: relative;
}

.support-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 30px rgba(0, 255, 255, 0.04);
    pointer-events: none;
}

.support-panel .panel-title {
    background: var(--blue);
    color: var(--darker);
}

.support-panel .panel-body { padding: 20px; }

.support-panel .support-tagline {
    font-size: 11px;
    color: var(--blue);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px !important;
}

.support-panel p {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 12px;
    line-height: 1.8;
}

.bmc-btn {
    display: inline-block;
    margin-top: 8px;
    border: 1px solid var(--orange);
    color: var(--darker);
    background: var(--orange);
    padding: 8px 20px;
    font-family: "Share Tech Mono", monospace;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.15s;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

.bmc-btn:hover {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--darker);
    box-shadow: 0 0 16px rgba(255, 255, 0, 0.4);
    text-shadow: none;
}

.support-panel .panel-body a:not(.bmc-btn) {
    color: #7a9999;
    text-decoration: underline;
    text-decoration-color: rgba(122, 153, 153, 0.4);
    text-underline-offset: 3px;
}

.support-panel .panel-body a:not(.bmc-btn):hover {
    color: #aacccc;
    text-decoration-color: rgba(170, 204, 204, 0.6);
    text-shadow: none;
}

/* ─── LINKS / FRIENDS ────────────────────────────── */
.link-list { list-style: none; }

.link-list li {
    padding: 6px 0;
    border-bottom: 1px dashed rgba(0, 255, 65, 0.1);
    font-size: 12px;
}

.link-list li:last-child { border-bottom: none; }

.link-list li::before {
    content: "> ";
    color: var(--dim-green);
}

.link-list a { color: var(--blue); }
.link-list a:hover { color: var(--yellow); }

/* ─── BOTTOM STRIP ───────────────────────────────── */
.gif-strip {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-top: 1px dashed var(--dim-green);
    border-bottom: 1px dashed var(--dim-green);
    margin: 24px 0;
}

/* ─── FOOTER ─────────────────────────────────────── */
footer {
    text-align: center;
    padding: 20px;
    font-size: 10px;
    color: #333;
    letter-spacing: 2px;
    border-top: 1px solid #111;
}

footer span { color: var(--dim-green); }

/* ─── CIRCUS ELEMENTS ───────────────────────────── */
.circus-flags {
    font-size: 22px;
    letter-spacing: 4px;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.circus-flags .fi {
    display: inline-block;
    animation: wave-bob 1.6s ease-in-out infinite;
}

.circus-flags .fi:nth-child(1) { animation-delay: 0s; }
.circus-flags .fi:nth-child(2) { animation-delay: 0.2s; }
.circus-flags .fi:nth-child(3) { animation-delay: 0.4s; }
.circus-flags .fi:nth-child(4) { animation-delay: 0.6s; }
.circus-flags .fi:nth-child(5) { animation-delay: 0.8s; }

@keyframes wave-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.circus-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    font-size: 18px;
}

.circus-divider .div-line {
    flex: 1;
    height: 1px;
    background: repeating-linear-gradient(
        90deg,
        var(--pink) 0px,
        var(--pink) 6px,
        var(--yellow) 6px,
        var(--yellow) 12px,
        var(--orange) 12px,
        var(--orange) 18px,
        var(--blue) 18px,
        var(--blue) 24px
    );
    opacity: 0.5;
}

/* ─── MARQUEE — L SHAPE ─────────────────────────── */
.marquee-inner {
    display: inline-block;
    white-space: nowrap;
    font-size: 10px;
    color: var(--dim-green);
    letter-spacing: 2px;
}

.marquee-left {
    position: fixed;
    left: 0;
    top: 0;
    width: 18px;
    height: calc(100vh - 18px);
    overflow: hidden;
    background: var(--dark);
    border-right: 1px dashed var(--dim-green);
    z-index: 100;
    writing-mode: vertical-rl;
}

.marquee-left .marquee-inner {
    animation: scroll-down 50s linear infinite;
    padding: 0 2px;
}

@keyframes scroll-down {
    from { transform: translateY(-50%); }
    to { transform: translateY(0); }
}

.marquee-bottom {
    position: fixed;
    bottom: 0;
    left: 18px;
    width: calc(100vw - 18px);
    height: 18px;
    overflow: hidden;
    background: var(--dark);
    border-top: 1px dashed var(--dim-green);
    z-index: 100;
    display: flex;
    align-items: center;
}

.marquee-bottom .marquee-inner {
    animation: scroll-right 50s linear infinite;
    animation-delay: -20s;
    padding: 0 4px;
}

@keyframes scroll-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.marquee-corner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 18px;
    height: 18px;
    background: var(--dark);
    border-right: 1px dashed var(--dim-green);
    border-top: 1px dashed var(--dim-green);
    z-index: 101;
}

/* ─── TERMINAL CURSOR ────────────────────────────── */
.cursor {
    display: inline-block;
    width: 10px;
    height: 14px;
    background: var(--green);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ─── MOBILE OVERLAY ─────────────────────────────── */
#mobile-notice {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--darker);
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    padding: 1rem 0.75rem;
    overflow: hidden;
    box-sizing: border-box;
}

.mobile-logo {
    font-family: "VT323", monospace;
    font-size: clamp(36px, 12vw, 60px);
    letter-spacing: 3px;
    animation: flicker 8s infinite;
    flex-shrink: 0;
}

.mobile-rotated-wrap {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.mobile-rotated-content {
    transform: rotate(90deg);
    width: calc(100vh - 3rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

#mobile-notice p {
    font-family: "VT323", monospace;
    font-size: 26px;
    color: var(--green);
    text-shadow: 0 0 10px var(--green);
    margin: 0;
    line-height: 1.3;
}

#mobile-notice .mobile-sub {
    font-size: 15px;
    color: var(--dim-green);
    text-shadow: none;
}

#mobile-notice .mobile-msg {
    font-family: "Share Tech Mono", monospace;
    font-size: 12px !important;
    color: #888 !important;
    text-shadow: none !important;
    margin-top: 0.75rem !important;
    line-height: 1.7 !important;
}

#mobile-notice .mobile-msg span { color: var(--orange); }

.mobile-form-wrap {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 320px;
    border: 1px dashed var(--dim-green);
    padding: 0.9rem 1rem;
    background: var(--dark);
}

.mobile-form-label {
    font-family: "Share Tech Mono", monospace !important;
    font-size: 10px !important;
    color: var(--dim-green) !important;
    text-shadow: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.6rem !important;
}

.mobile-form {
    display: flex;
    gap: 6px;
}

.mobile-input {
    flex: 1;
    background: var(--darker);
    border: 1px solid var(--pink);
    color: var(--pink);
    font-family: "Share Tech Mono", monospace;
    font-size: 12px;
    padding: 6px 10px;
    outline: none;
    min-width: 0;
}

.mobile-input::placeholder { color: rgba(255, 0, 255, 0.3); }

.mobile-submit-btn {
    background: transparent;
    border: 1px solid var(--pink);
    color: var(--pink);
    font-family: "Share Tech Mono", monospace;
    font-size: 11px;
    padding: 6px 12px;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 1px;
}

.mobile-submit-btn:hover {
    background: var(--pink);
    color: var(--darker);
}

.mobile-form-msg {
    font-family: "Share Tech Mono", monospace !important;
    font-size: 10px !important;
    color: var(--dim-green) !important;
    text-shadow: none !important;
    margin-top: 0.4rem !important;
    min-height: 14px;
}

.mobile-dismiss {
    margin-top: 0;
    flex-shrink: 0;
    background: transparent;
    border: 1px solid #333;
    color: #444;
    font-family: "Share Tech Mono", monospace;
    font-size: 10px;
    padding: 8px 14px;
    cursor: pointer;
    letter-spacing: 1px;
}

.mobile-dismiss:hover {
    border-color: var(--dim-green);
    color: var(--dim-green);
}

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {
    body {
        padding-left: 0;
        padding-bottom: 0;
    }
    .marquee-left,
    .marquee-bottom,
    .marquee-corner {
        display: none;
    }
    .container { padding: 12px; }
    .grid { grid-template-columns: 1fr; }
    .map-ascii {
        font-size: 9px;
        white-space: pre;
        overflow-x: auto;
        max-width: 100%;
    }
    .map-wrap { flex-direction: column; }
    header { padding: 20px 12px 12px; }
    h1 { font-size: clamp(36px, 12vw, 64px); }
    .circus-flags { font-size: 18px; }
    .form-row { flex-direction: column; }
    #mobile-notice { display: flex; }
}
