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

body {
    font-family: 'Space Mono', monospace;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

.space-mono-regular {
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: normal;
}

.space-mono-bold {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-style: normal;
}

.space-mono-regular-italic {
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: italic;
}

.space-mono-bold-italic {
    font-family: "Space Mono", monospace;
    font-weight: 700;
    font-style: italic;
}

/* Background Image */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('images/BG.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
}

.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

/* Accessibility - Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Semantic structure styling */
.game-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.email-signup {
    width: 100%;
    max-width: 500px;
    margin-bottom: 3rem;
}

.game-symbol {
    margin-top: auto;
}

/* Turncloak Icon Styling */
.turncloak-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
    opacity: 0.9;
}

/* Logo Image Styling */
.logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.8));
}

.tagline {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: #e8e8e8;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    /* H1 specific styling */
    margin-top: 0;
}

.game-description {
    font-family: 'Space Mono', monospace;
    font-size: clamp(1.1rem, 2.8vw, 1.6rem);
    color: #d4d4d4;
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.coming-soon {
    font-family: 'Space Mono', monospace;
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: #b8b8b8;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Email Form Container */
.email-form-container {
    max-width: 500px;
    width: 100%;
    margin-bottom: 3rem;
}

.email-input {
    width: 100%;
    padding: 1rem;
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    border: 2px solid #444;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: #d4af37;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.email-input::placeholder {
    color: #aaa;
}

.submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    font-family: 'Space Mono', monospace;
    font-size: 1.4rem;
    font-weight: 600;
    background: #9B7C58;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background: #B8956A;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(155, 124, 88, 0.6);
}

.submit-btn:active {
    transform: translateY(0);
}

.privacy-notice {
    display: block;
    color: #888;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Social Links Section */
.social-links {
    margin: 2rem 0;
    text-align: center;
}

.social-intro {
    font-family: 'Space Mono', monospace;
    color: #b8b8b8;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-icons a {
    color: #d4d4d4;
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #444;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #9B7C58;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(155, 124, 88, 0.3);
}

.social-icon {
    font-size: 1.2rem;
}

/* Rook Icon */
.rook-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    opacity: 0.8;
}

.rook-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

/* ConvertKit Form Overrides */
.formkit-form[data-uid="5e04907eb0"] {
    background: transparent !important;
    border: none !important;
    max-width: none !important;
    padding: 0 !important;
}

.formkit-form[data-uid="5e04907eb0"] .formkit-background {
    display: none !important;
}

.formkit-form[data-uid="5e04907eb0"] [data-style="minimal"] {
    padding: 0 !important;
}

.formkit-form[data-uid="5e04907eb0"] .formkit-header,
.formkit-form[data-uid="5e04907eb0"] .formkit-subheader,
.formkit-form[data-uid="5e04907eb0"] .formkit-guarantee {
    display: none !important;
}

.formkit-form[data-uid="5e04907eb0"] .formkit-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid #444 !important;
    color: #fff !important;
    padding: 1rem !important;
    font-family: 'Space Mono', monospace !important;
    font-size: 1.1rem !important;
    border-radius: 4px !important;
    margin-bottom: 1rem !important;
}

.formkit-form[data-uid="5e04907eb0"] .formkit-input:focus {
    border-color: #d4af37 !important;
    background: rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2) !important;
}

.formkit-form[data-uid="5e04907eb0"] .formkit-submit {
    background: #9B7C58 !important;
    color: #fff !important;
    border: none !important;
    padding: 1rem 2rem !important;
    font-family: 'Space Mono', monospace !important;
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
}

.formkit-form[data-uid="5e04907eb0"] .formkit-submit:hover {
    background: #B8956A !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 0 25px rgba(155, 124, 88, 0.6) !important;
}

.formkit-form[data-uid="5e04907eb0"] .formkit-powered-by-convertkit-container {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .email-form-container {
        margin-bottom: 2rem;
    }

    .turncloak-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .logo {
        max-width: 400px;
    }

    .rook-icon {
        width: 60px;
        height: 60px;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-icons a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .turncloak-icon {
        width: 50px;
        height: 50px;
    }

    .logo {
        max-width: 300px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes buttonGlow {
    from {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    }
    to {
        box-shadow: 0 0 30px rgba(212, 175, 55, 0.7);
    }
}

.turncloak-icon, .logo, .tagline, .game-description, .coming-soon, .email-form-container, .social-links, .rook-icon {
    animation: fadeInUp 0.8s ease-out forwards;
}

.turncloak-icon {
    animation-delay: 0.1s;
}

.logo {
    animation-delay: 0.15s;
}

.tagline {
    animation-delay: 0.2s;
}

.game-description {
    animation-delay: 0.3s;
}

.coming-soon {
    animation-delay: 0.4s;
}

.email-form-container {
    animation-delay: 0.6s;
}

.social-links {
    animation-delay: 0.8s;
}

.rook-icon {
    animation-delay: 1.0s;
}
