/* --- Global Styles & Variables --- */
:root {
    --primary-bg: #0f0f18;
    --secondary-bg: #1a1a2b;
    --accent-gold: #ffc400;
    --accent-purple: #9e8aff;
    --text-color: #e0e0e0;
    --glow-color: rgba(255, 196, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    overflow-x: hidden;
    /* ADDED: Disable text selection */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* --- Animated Starfield Background --- */
#starfield-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: -1;
}

/* --- Main Content Container (Layout Unchanged) --- */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
}

/* --- Profile Header --- */
.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}

.pfp {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--accent-gold);
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px var(--glow-color);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
}

/* --- ADDED: Social Button Container --- */
.social-buttons-container {
    display: flex;
    flex-wrap: wrap; /* Allows buttons to stack on smaller screens if needed */
    justify-content: center;
    gap: 1rem; /* Space between buttons */
}

/* --- Sleek Kick Button --- */
.kick-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8em 2.5em;
    border-radius: 50px;
    color: #fff;
    background: linear-gradient(45deg, #4CAF50, #2E7D32);
    border: 2px solid #66BB6A;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(80, 250, 123, 0.25);
}

.kick-icon {
    height: 1.2em;
    margin-right: 0.75em;
}

.kick-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(80, 250, 123, 0.4);
}

.kick-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(80, 250, 123, 0.25);
}

/* --- ADDED: Discord Button Color Overrides --- */
.discord-button {
    background: linear-gradient(45deg, #5865F2, #404EED);
    border: 2px solid #7289da;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.25);
}

.discord-button:hover {
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.4);
}

.discord-button:active {
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.25);
}


/* --- Subtitle --- */
.subtitle {
    margin-top: 3rem;
    margin-bottom: 2rem;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-purple);
}

/* --- Interactive 3D Cards --- */
.card-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    perspective: 1000px;
}

.card {
    --card-accent-color: var(--accent-gold); 
    --card-background-image: none;
    
    background: var(--secondary-bg);
    border: 1px solid color-mix(in srgb, var(--card-accent-color) 20%, transparent);
    border-radius: 15px;
    width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    transition: all 0.3s ease-out;
    transform-style: preserve-3d;
    overflow: hidden;
    
    /* **MODIFIED** Make card a flex container */
    display: flex;
    flex-direction: column;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: var(--card-background-image);
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.5;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--secondary-bg);
    z-index: 2;
    opacity: 0.8;
}

.card:hover::before {
    opacity: 0.8;
    transform: scale(1.05);
}

.card-header, .card-body {
    position: relative;
    z-index: 3;
}

.card-header {
    background: var(--card-accent-color);
    border-radius: 14px 14px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    height: 70px;
    flex-shrink: 0; /* Prevents header from shrinking */
}

.casino-logo {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
}

.card-body {
    padding: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.6;
    background: transparent;

    /* **MODIFIED** for button positioning */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* Pushes description up and button down */
    flex-grow: 1; /* Makes this section fill available space */
    gap: 1rem; /* Adds space between description and button */
}

.card-cta {
    display: inline-block;
    text-decoration: none;
    color: var(--card-accent-color);
    background-color: transparent;
    border: 2px solid var(--card-accent-color);
    padding: 0.5em 1.5em;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-cta:hover {
    background-color: var(--card-accent-color);
    color: var(--primary-bg);
    box-shadow: 0 0 15px color-mix(in srgb, var(--card-accent-color) 50%, transparent);
}

/* --- Contact/Footer Section --- */
.contact-section {
    text-align: center;
    padding: 2rem 1rem 4rem; /* Added more padding to the bottom */
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 196, 0, 0.2);
    width: 100%;
}

.contact-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.contact-info {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
}

.contact-info a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.contact-info a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-purple);
}

/* --- Responsive Design for Mobile --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    .pfp {
        width: 60px;
        height: 60px;
    }
    .card-container {
        flex-direction: column;
        align-items: center;
    }
    .card {
        transform: none;
    }
    .card:hover {
        transform: translateY(-5px);
    }
    .card:hover::before {
        transform: scale(1);
    }
    .contact-section {
        margin-top: 2rem;
        padding: 1.5rem 1rem 3rem;
    }
    .contact-title {
        font-size: 1.1rem;
    }
    .contact-info {
        font-size: 0.9rem;
    }
}

/* --- ADDED: Disable image dragging --- */
img {
    pointer-events: none;
}

/* --- ADDED: Age Verification Overlay --- */
#age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 15, 24, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 1;
    visibility: visible;
    /* This transition is for the background blur fade-out */
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

#age-verification-overlay.overlay-hidden {
    opacity: 0;
    visibility: hidden;
}

.age-card {
    background: var(--secondary-bg);
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 196, 0, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    
    /* MODIFIED: Set initial state for the animation */
    opacity: 1;
    transform: scale(1);
    /* MODIFIED: Define the card's animation */
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

/* MODIFIED: Define the card's final state when the overlay is hidden */
#age-verification-overlay.overlay-hidden .age-card {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
}

.age-card-icon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background-color: rgba(255, 196, 0, 0.15);
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
}

.age-card-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-gold);
}

.age-card-content {
    margin-bottom: 2rem;
}

.age-card-message {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.age-card-submessage {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #a0a0b0; /* Lighter text color */
}

.age-card-actions #age-confirm-button {
    width: 100%;
    padding: 0.8em 1.5em;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    background-color: var(--accent-gold);
    color: var(--primary-bg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.age-card-actions #age-confirm-button:hover {
    box-shadow: 0 0 20px var(--glow-color);
    transform: translateY(-2px);
}