:root {
    --bg: #000000;
    --green: #00ff66;
    --green-dim: rgba(0,255,102,0.35);
    --green-dimmer: rgba(0,255,102,0.18);
    --text: rgba(0,255,102,0.92);
    --mono: 'IBM Plex Mono', 'Courier New', monospace;
    --terminal: 'VT323', 'IBM Plex Mono', monospace;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--terminal);
    font-size: 18px;
}

.hidden {
    display: none !important;
}

/* Boot Screen Logo */
.boot-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: block;
    filter: drop-shadow(0 0 20px rgba(0,255,102,0.6));
    animation: boot-spin 3s ease-in-out infinite;
}

@keyframes boot-spin {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(360deg); }
    100% { transform: rotate(360deg); }
}

/* Navbar Logo */
.nav-logo {
    width: 35px;
    height: 35px;
    margin-right: 12px;
    vertical-align: middle;
    filter: drop-shadow(0 0 8px rgba(0,255,102,0.4));
    animation: nav-spin 6s ease-in-out infinite;
}

@keyframes nav-spin {
    0% { transform: rotate(0deg); }
    12% { transform: rotate(360deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 2px solid var(--green);
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,255,102,0.3);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.navbar.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-family: var(--terminal);
    font-size: 1.8rem;
    color: var(--green);
    text-decoration: none;
    letter-spacing: 0.1em;
    text-shadow: 0 0 20px rgba(0,255,102,0.4);
    transition: text-shadow 0.3s ease;
}

.nav-brand:hover {
    text-shadow: 0 0 30px rgba(0,255,102,0.6);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-family: var(--terminal);
    color: rgba(0,255,102,0.8);
    text-decoration: none;
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    padding: 8px 16px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--green);
    border: 1px solid var(--green-dimmer);
    background: rgba(0,255,102,0.05);
    box-shadow: 0 0 15px rgba(0,255,102,0.2);
}

.nav-links a.active {
    color: var(--green);
    border: 1px solid var(--green-dim);
    background: rgba(0,255,102,0.08);
}

/* Subtle terminal glow + scanlines */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 50% 40%, rgba(0,255,102,0.08), transparent 55%), repeating-linear-gradient( to bottom, rgba(255,255,255,0.03), rgba(255,255,255,0.03) 1px, transparent 1px, transparent 3px );
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.45;
}

/* BOOT SCREEN */
.boot {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.boot-inner {
    width: min(720px, 92vw);
    border: 1px solid var(--green-dimmer);
    border-radius: 16px;
    padding: 22px 18px;
    box-shadow: 0 0 24px rgba(0,255,102,0.10);
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    /* max-height: 30vh; */
    overflow: visible;
}

.status {
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.95;
}

.bar {
    height: 14px;
    border-radius: 999px;
    border: 1px solid var(--green-dimmer);
    background: rgba(0,0,0,0.65);
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,255,102,0.08);
}

.bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(0,255,102,0.35), var(--green));
    box-shadow: 0 0 18px rgba(0,255,102,0.25);
}

.granted {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 14px;
    letter-spacing: 0.12em;
}

    .granted.flash {
        animation: grantedFlash 1s ease-in-out 3;
    }

@keyframes grantedFlash {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.warn-icon {
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-block;
}

.triangle {
    position: absolute;
    inset: 0;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 16px solid var(--green);
    top: 1px;
    left: 0;
    filter: drop-shadow(0 0 8px rgba(0,255,102,0.35));
}

.bang {
    position: absolute;
    left: 7px;
    top: 3px;
    color: #000;
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
}

.code {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(0,255,102,0.78);
    white-space: pre-wrap;
    min-height: 160px;
}

/* FINAL SCREEN */
.final {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 90px 24px 24px 24px;
    gap: 48px;
}

.final-title {
    margin: 0;
    text-align: center;
    font-family: var(--terminal);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--green);
    text-shadow: 0 0 28px rgba(0,255,102,0.3);
    opacity: 1;
    font-size: clamp(3rem, 8vw, 5.5rem);
    position: relative;
    line-height: 1.15;
    white-space: pre-line;
}

.event-details {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    border: 1px solid var(--green-dimmer);
    border-radius: 12px;
    padding: 32px 40px;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(2px);
    box-shadow: 0 0 32px rgba(0,255,102,0.12), inset 0 0 24px rgba(0,255,102,0.04);
    max-width: 600px;
    width: 100%;
}

.event-details.visible {
    opacity: 1;
    transform: translateY(0);
}

.detail-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 20px;
    font-family: var(--mono);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

.detail-line:last-child {
    margin-bottom: 0;
}

.detail-line .label {
    color: var(--green);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.85;
    flex-shrink: 0;
}

.detail-line .value {
    color: rgba(0,255,102,0.95);
    text-align: right;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-shadow: 0 0 12px rgba(0,255,102,0.2);
}

.map-container {
    margin-top: 28px;
    border: 1px solid var(--green-dimmer);
    border-radius: 8px;
    overflow: hidden;
    height: 350px;
    position: relative;
    box-shadow: 0 0 24px rgba(0,255,102,0.15), inset 0 0 16px rgba(0,255,102,0.06);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.event-details.visible .map-container {
    opacity: 1;
    transform: translateY(0);
}

#map {
    width: 100%;
    height: 100%;
    filter: hue-rotate(90deg) saturate(0.7) brightness(0.8);
    cursor: pointer;
    transition: filter 0.3s ease;
}

#map:hover {
    filter: hue-rotate(90deg) saturate(0.85) brightness(0.9);
}

.map-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.85);
    border: 1px solid var(--green-dimmer);
    border-radius: 6px;
    padding: 8px 14px;
    font-family: var(--mono);
    font-size: 0.75rem;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 0 16px rgba(0,255,102,0.2);
}

.map-label {
    color: var(--green);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
    opacity: 0.9;
}

.map-coords {
    color: rgba(0,255,102,0.85);
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    font-family: var(--mono);
}

.map-hint {
    color: rgba(0,255,102,0.7);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    margin-top: 6px;
    font-style: italic;
    opacity: 0.8;
}

/* Sign Up Button */
.signup-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
    padding: 20px 40px;
    background: transparent;
    border: 2px solid var(--green);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    box-shadow: 0 0 20px rgba(0,255,102,0.15);
}

.event-details.visible .signup-btn {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s, background 0.3s ease, box-shadow 0.3s ease;
}

.signup-btn:hover {
    background: var(--green);
    box-shadow: 0 0 35px rgba(0,255,102,0.5);
}

.btn-text {
    font-family: var(--terminal);
    font-size: 1.6rem;
    color: var(--green);
    letter-spacing: 0.15em;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-btn:hover .btn-text {
    color: var(--bg);
}

.btn-subtext {
    font-family: var(--terminal);
    font-size: 1rem;
    color: rgba(0,255,102,0.8);
    letter-spacing: 0.08em;
    margin-top: 4px;
    transition: color 0.3s ease;
}

.signup-btn:hover .btn-subtext {
    color: rgba(0,0,0,0.8);
}

.ellipsis {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    font-family: var(--mono);
    color: var(--green);
    font-size: 2rem;
    letter-spacing: 0.3em;
    text-shadow: 0 0 18px rgba(0,255,102,0.25);
}

.boot-ellipsis {
    margin: 8px 0 14px;
    font-size: 18px;
    letter-spacing: 0.35em;
    color: var(--green);
    text-shadow: 0 0 14px rgba(0,255,102,0.18);
    min-height: 24px;
}

.cursor {
    display: inline-block;
    margin-left: 0.15em;
    animation: blink 0.9s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes microGlitch {
    0% {
        filter: none;
        transform: translateY(0);
    }

    12% {
        transform: translate(1px, -2px) skewX(-3deg);
    }

    18% {
        transform: translate(-2px, 1px) skewX(3deg);
    }

    26% {
        transform: translate(0px, 0px);
    }

    45% {
        filter: brightness(0.50);
        transform: translate(1px, -2px) skewX(-3deg);
    }

    50% {
        filter: none;
        transform: translate(-2px, 1px) skewX(3deg);
    }

    65% {
        filter: brightness(0);
    }

    80% {
        filter: brightness(1.5);
        transform: translate(1px, -2px) skewX(-3deg);
    }

    90% {
        filter: none;
        transform: translate(-2px, 1px) skewX(3deg);
    }

    100% {
        filter: none;
    }
}

/* Only glitch when JS adds this class */
.final-title.glitch {
    animation: fadeIn 1200ms ease forwards, microGlitch 1200ms ease 1;
}


/* Tablet/mobile layout */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .nav-brand {
        font-size: 1.5rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 6px 10px;
    }

    .final {
        position: relative;
        inset: auto;
        min-height: 100vh;
        padding: 190px 16px 32px;
        gap: 28px;
    }

    .final-title {
        letter-spacing: 0.1em;
        font-size: clamp(2rem, 9vw, 3.6rem);
        max-width: 92vw;
        margin-top: 6px;
    }

    .event-details {
        max-width: 100%;
    }

    .map-container {
        height: 260px;
    }

    .signup-btn {
        width: 100%;
        max-width: 360px;
    }
}


/* Mobile tweaks */
@media (max-width: 480px) {
  .boot-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
  }

  .nav-logo {
    width: 28px;
    height: 28px;
    margin-right: 8px;
  }

  .boot {
    padding: 16px;
  }

  .boot-inner {
    width: 100%;
    padding: 18px 14px;
    border-radius: 14px;
  }

  .status {
    font-size: 12px;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
  }

  .boot-ellipsis {
    font-size: 16px;
    margin: 6px 0 12px;
  }

  .bar {
    height: 12px;
  }

  .granted {
    font-size: 12px;
    letter-spacing: 0.1em;
    gap: 8px;
  }

  .code {
    font-size: 12px;
    line-height: 1.4;
    min-height: 160px;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .final {
        padding: 160px 16px 28px;
    gap: 32px;
  }

  .final-title {
        letter-spacing: 0.1em;
        font-size: clamp(1.8rem, 9vw, 2.8rem);
    line-height: 1.25;
    padding: 0 6px;
  }

  .event-details {
    padding: 24px 20px;
    border-radius: 10px;
    max-width: 100%;
  }

  .detail-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 0.9rem;
  }

  .detail-line .value {
    text-align: left;
    padding-left: 12px;
  }

  .map-container {
    height: 280px;
    margin-top: 20px;
  }

  .map-overlay {
    top: 8px;
    left: 8px;
    padding: 6px 10px;
    font-size: 0.65rem;
  }

  .map-coords {
    font-size: 0.6rem;
  }

  .map-hint {
    font-size: 0.58rem;
    margin-top: 4px;
  }

  .signup-btn {
    margin-top: 24px;
    padding: 16px 30px;
  }

  .btn-text {
    font-size: 1.3rem;
  }

  .btn-subtext {
    font-size: 0.9rem;
  }

  .ellipsis {
    font-size: 1.6rem;
    letter-spacing: 0.25em;
  }
}







