:root {
    --rich-black: #0B0E11;
    --deep-teal: #053B44;
    --flash-green: #41AD49;
    --gold: #F6C453;
    --sea-gray: #7C8A92;
    --white: #FFFFFF;
}

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

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden; /* Prevent scrolling */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--rich-black);
    color: var(--white);
    line-height: 1.6;
}

.game-status {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.game-online .status-dot {
    background: var(--flash-green);
    box-shadow: 0 0 10px var(--flash-green), 0 0 20px var(--flash-green);
}

.game-online .status-text {
    color: var(--flash-green);
}

.game-offline .status-dot {
    background: #ff4444;
    box-shadow: 0 0 10px #ff4444, 0 0 20px #ff4444;
}

.game-offline .status-text {
    color: #ff4444;
}

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

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.75;
}

.container {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero {
    width: 100%;
    padding: 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Anton', sans-serif;
    font-size: clamp(3rem, 12vw, 8rem);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.title-accent {
    color: var(--flash-green);
    text-shadow: 0 0 40px rgba(65, 173, 73, 0.5);
}

.hero-tagline {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--sea-gray);
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

.hero-cta {
    margin-bottom: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--flash-green);
    color: var(--rich-black);
    box-shadow: 0 0 20px rgba(65, 173, 73, 0.4);
}

.btn-primary:hover {
    background: var(--gold);
    box-shadow: 0 0 30px rgba(246, 196, 83, 0.5);
    transform: translateY(-2px);
}

.btn-icon {
    font-size: 1.2em;
}

.hero-subtitle {
    font-size: 0.9rem;
    color: var(--sea-gray);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 48px;
}

.mini-footer {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: inline-block;
    width: 100%;
    max-width: 300px;
}

.footer-legal {
    color: var(--sea-gray);
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-legal a {
    color: var(--flash-green);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--gold);
}

/* ===== Trailer Section ===== */
.trailer-section {
    margin-bottom: 32px;
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.trailer-video {
    width: 100%;
    border-radius: 4px;
    display: block;
    cursor: pointer;
    border: 1px solid rgba(65, 173, 73, 0.3);
    box-shadow: 0 0 30px rgba(65, 173, 73, 0.15);
    transition: all 0.3s ease;
}

.trailer-video:hover {
    border-color: var(--flash-green);
    box-shadow: 0 0 40px rgba(65, 173, 73, 0.25);
}

/* Play button overlay */
.trailer-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(11, 14, 17, 0.8);
    border: 1px solid var(--flash-green);
    color: var(--flash-green);
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.trailer-play-btn:hover {
    background: var(--flash-green);
    color: var(--rich-black);
    box-shadow: 0 0 20px rgba(65, 173, 73, 0.4);
}

.trailer-play-btn.playing {
    opacity: 0;
    pointer-events: none;
}

/* ===== Terminal ===== */
#mini-terminal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 400px;
    height: 250px;
    background: rgba(11, 14, 17, 0.95);
    border: 1px solid var(--flash-green);
    box-shadow: 0 0 20px rgba(65, 173, 73, 0.3);
    z-index: 100;
    display: flex;
    flex-direction: column;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--flash-green);
    padding: 12px;
}

#terminal-output {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 8px;
    line-height: 1.4;
}

#terminal-output::-webkit-scrollbar {
    width: 6px;
}

#terminal-output::-webkit-scrollbar-track {
    background: rgba(65, 173, 73, 0.1);
}

#terminal-output::-webkit-scrollbar-thumb {
    background: rgba(65, 173, 73, 0.3);
    border-radius: 3px;
}

#terminal-input-line {
    display: flex;
    align-items: center;
}

.terminal-prompt {
    color: var(--flash-green);
    margin-right: 4px;
    flex-shrink: 0;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--flash-green);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

.command-echo {
    color: var(--sea-gray);
    margin-bottom: 4px;
}

.boot-text {
    color: var(--flash-green);
    margin-bottom: 2px;
}

.hint-text {
    color: var(--gold);
    margin-bottom: 4px;
}

.error-text {
    color: #ff6b6b;
    margin-bottom: 4px;
}

.system-text {
    color: var(--flash-green);
    margin-bottom: 4px;
}

/* ===== Responsive: Short Viewports (netbook, landscape phone) ===== */
@media (max-height: 700px) {
    .hero-title {
        font-size: clamp(1.8rem, 8vw, 4rem);
        margin-bottom: 10px;
    }
    .hero-tagline {
        font-size: clamp(0.85rem, 2.5vw, 1.1rem);
        margin-bottom: 16px;
    }
    .trailer-section {
        margin-bottom: 16px;
    }
    .trailer-video {
        max-height: 30vh;
        width: auto;
        aspect-ratio: 16/9;
    }
    .trailer-play-btn {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    .hero-subtitle {
        margin-bottom: 20px;
        font-size: 0.75rem;
    }
    .mini-footer {
        padding-top: 12px;
    }
    #mini-terminal {
        height: 160px;
        width: 320px;
        bottom: 10px;
        right: 10px;
    }
}

/* ===== Responsive: Tablets & Small Screens ===== */
@media (max-width: 768px) {
    html, body {
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .game-status {
        top: 12px;
        left: 12px;
        font-size: 10px;
    }

    .hero {
        padding: 16px;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 4px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
        margin-bottom: 12px;
    }

    .hero-tagline {
        font-size: clamp(0.8rem, 3vw, 1rem);
        margin-bottom: 20px;
        letter-spacing: 0.03em;
    }

    .trailer-section {
        margin-bottom: 20px;
        max-width: 100%;
        width: 100%;
    }

    .trailer-video {
        width: 100%;
        max-width: 100%;
        max-height: 35vh;
        aspect-ratio: 16/9;
        object-fit: contain;
        margin: 0 auto;
    }

    .trailer-play-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .hero-subtitle {
        font-size: 0.75rem;
        margin-bottom: 24px;
        letter-spacing: 0.15em;
    }

    /* Content padding so footer isn't covered by terminal */
    .hero-content {
        padding-bottom: 195px;
    }

    .mini-footer {
        max-width: 260px;
        padding-top: 16px;
    }

    .footer-legal {
        font-size: 0.7rem;
    }

    #mini-terminal {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 180px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        font-size: 12px;
        padding: 10px;
    }

    #terminal-input {
        font-size: 16px;
    }

    .terminal-prompt {
        font-size: 16px;
    }
}

/* ===== Responsive: Small Phones ===== */
@media (max-width: 480px) {
    .game-status {
        top: 10px;
        left: 10px;
        font-size: 9px;
        gap: 5px;
    }

    .status-dot {
        width: 7px;
        height: 7px;
    }

    .hero {
        padding: 12px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
        margin-bottom: 8px;
    }

    .hero-tagline {
        font-size: clamp(0.7rem, 2.8vw, 0.85rem);
        margin-bottom: 16px;
    }

    .trailer-section {
        margin-bottom: 16px;
    }

    .trailer-video {
        max-height: 30vh;
        border-radius: 3px;
    }

    .trailer-play-btn {
        padding: 8px 14px;
        font-size: 0.7rem;
        gap: 6px;
    }

    .trailer-play-btn svg {
        width: 16px;
        height: 16px;
    }

    .hero-subtitle {
        font-size: 0.65rem;
        margin-bottom: 16px;
    }

    /* More bottom padding for smaller terminal on small phones */
    .hero-content {
        padding-bottom: 165px;
    }

    .mini-footer {
        max-width: 220px;
        padding-top: 12px;
    }

    .footer-legal {
        font-size: 0.6rem;
    }

    #mini-terminal {
        height: 150px;
        font-size: 11px;
        padding: 8px;
    }

    #terminal-input {
        font-size: 16px;
    }

    .terminal-prompt {
        font-size: 16px;
    }
}

/* ===== Responsive: Very Short + Small Screens ===== */
@media (max-height: 600px) and (max-width: 768px) {
    .hero-title {
        font-size: clamp(1.4rem, 7vw, 2.2rem);
        margin-bottom: 4px;
    }
    .hero-tagline {
        font-size: clamp(0.6rem, 2.5vw, 0.8rem);
        margin-bottom: 8px;
    }
    .trailer-section {
        margin-bottom: 8px;
    }
    .trailer-video {
        max-height: 25vh;
    }
    .trailer-play-btn {
        padding: 6px 12px;
        font-size: 0.6rem;
    }
    .trailer-play-btn svg {
        width: 14px;
        height: 14px;
    }
    .hero-subtitle {
        margin-bottom: 8px;
        font-size: 0.55rem;
    }
    .mini-footer {
        padding-top: 8px;
    }

    .hero-content {
        padding-bottom: 115px;
    }

    #mini-terminal {
        height: 100px;
        font-size: 10px;
        padding: 6px;
    }

    #terminal-input {
        font-size: 16px;
    }

    .terminal-prompt {
        font-size: 16px;
    }
}
