/* Base Reset & Variables */
:root {
    /* Happy Builder Neon Palette */
    --primary-pink: #f72585;
    /* Bright Neon Pink */
    --deep-rose: #7209b7;
    /* Deep Purple */
    --builder-blue: #4cc9f0;
    /* Cyan/Blue */
    --neon-glow: #4cc9f0;
    /* Cyan Glow */

    --dark-bg: #240046;
    /* Deep Indigo Background */
    --card-bg: rgba(60, 9, 108, 0.4);
    /* Glass Purple */

    --text-light: #ffffff;
    --text-dim: #e0aaff;
    --accent-gold: #ffd60a;

    --font-heading: 'Orbitron', sans-serif;
    /* Cyber/Tech */
    --font-body: 'Cinzel', serif;
    /* Elegant/Dark highlight */
    --font-ui: 'Orbitron', sans-serif;
    /* For buttons */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    /* Happy Cyber Gradient: Purple -> Pink -> Blue overlay */
    background: radial-gradient(circle at 50% 0%, #7209b7 0%, #240046 100%),
        linear-gradient(180deg, rgba(76, 201, 240, 0.05) 0%, transparent 100%);
    background-attachment: fixed;
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    letter-spacing: 0.5px;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-shadow: 0 0 10px var(--primary-pink);
}

h1 {
    font-size: 3.5rem;
    color: var(--primary-pink);
    text-shadow: 0 0 20px var(--primary-pink), 0 0 40px var(--deep-rose);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(36, 0, 70, 0.95);
    border-bottom: 3px solid var(--outline-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 0px rgba(0, 0, 0, 0.5);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--builder-blue);
    text-shadow: 2px 2px 0px var(--outline-color);
    -webkit-text-stroke: 1px var(--outline-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a:hover {
    color: var(--builder-blue);
    text-shadow: 0 0 5px var(--builder-blue);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-ui);
    letter-spacing: 2px;
    transition: all 0.2s ease;
    border: 2px solid var(--outline-color);
    box-shadow: 4px 4px 0px var(--outline-color);
}

.btn-primary {
    background-color: var(--primary-pink);
    color: white;
}

.btn-primary:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--outline-color);
    background-color: #ff479c;
}

.btn-danger {
    background-color: var(--builder-blue);
    color: var(--dark-bg);
}

.btn-danger:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--outline-color);
    background-color: #70d6ff;
}

.btn-huge {
    padding: 1.2rem 2.5rem;
    font-size: 1.4rem;
    border-width: 3px;
    box-shadow: 6px 6px 0px var(--outline-color);
}

.btn-huge:hover {
    transform: translate(-3px, -3px);
    box-shadow: 9px 9px 0px var(--outline-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
    box-shadow: none;
}

.btn-outline:hover {
    background-color: var(--text-light);
    color: var(--dark-bg);
    border-color: var(--outline-color);
    box-shadow: 4px 4px 0px var(--outline-color);
}

.btn-large {
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    min-height: 80vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1,
.hero h2,
.hero p,
.hero .cta-group {
    width: 100%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero p {
    font-size: 1.5rem;
    /* Increased size */
    color: var(--text-dim);
    margin-bottom: 2rem;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    font-weight: 700;
}

.hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.hero .highlight {
    font-size: 1.4rem;
    color: var(--builder-blue);
    margin: 0 auto 2rem auto;
    display: block;
    margin-bottom: 2rem;
    font-weight: bold;
    text-shadow: 0 0 10px var(--builder-blue);
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 3rem;
}

/* Images - Tech/Holographic Style */
.hero-img,
.token-img,
.vibes-img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    border: 2px solid var(--builder-blue);
    box-shadow: 0 0 20px rgba(76, 201, 240, 0.4), inset 0 0 20px rgba(76, 201, 240, 0.4);
}

.hero-img {
    max-height: 500px;
    object-fit: cover;
}

.token-img {
    max-height: 600px;
    width: auto;
    max-width: 90%;
    margin: 1rem auto;
    display: block;
    object-fit: contain;
    box-shadow: 0 0 25px rgba(76, 201, 240, 0.6);
}

.vibes-image-container {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.vibes-img {
    max-height: 600px;
    width: 100%;
    max-width: 800px;
    object-fit: cover;
}

/* Feature Cards - Glassmorphism */
.feature-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: rgba(60, 9, 108, 0.6);
    padding: 2rem;
    border-radius: 15px;
    border: 3px solid var(--outline-color);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    flex: 0 1 350px;
    width: 100%;
}

.feature-card:hover {
    transform: translate(-3px, -3px);
    border-color: var(--builder-blue);
    box-shadow: 10px 10px 0px var(--builder-blue);
    background: rgba(60, 9, 108, 0.8);
}

.feature-card h3 {
    color: var(--primary-pink);
    text-shadow: 1px 1px 0px #000;
}

/* Sections */
.section {
    padding: 5rem 2rem;
    text-align: center;
}

.dark-section {
    background-color: rgba(0, 0, 0, 0.2);
}

.vibes-section {
    background: linear-gradient(180deg, transparent 0%, var(--dark-bg) 100%);
}

.vibes-section em {
    color: var(--builder-blue);
    font-style: normal;
    text-shadow: 0 0 5px var(--builder-blue);
}

/* Tokenomics */
.token-list ul {
    list-style: none;
    margin: 1.5rem 0;
    text-align: left;
    display: inline-block;
}

.token-list li {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--text-dim);
}

/* Contract Address */
.contract-address-container {
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--builder-blue);
    display: inline-block;
    max-width: 100%;
    margin-top: 2rem;
    box-shadow: 0 0 15px rgba(76, 201, 240, 0.2);
}

.ca-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

#ca-text {
    font-family: monospace;
    color: var(--builder-blue);
    font-size: 1.1rem;
    text-shadow: 0 0 5px var(--builder-blue);
    word-break: break-all;
    max-width: 100%;
    display: block;
}

@media (max-width: 600px) {
    #ca-text {
        font-size: 0.85rem;
    }

    .ca-box {
        padding: 0.5rem;
    }
}

.btn-blue {
    background-color: var(--builder-blue);
    color: var(--dark-bg);
}

.btn-blue:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px var(--outline-color);
    background-color: #70d6ff;
}

/* Footer */
.footer {
    padding: 5rem 2rem;
    text-align: center;
    background: #0a0508;
    border-top: 2px solid var(--primary-pink);
}

.footer h2 {
    color: var(--text-light);
}

.socials {
    margin: 2rem 0;
    color: var(--text-dim);
}

.disclaimer {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #666;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 201, 240, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(76, 201, 240, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 201, 240, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
        gap: 0.8rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links li:last-child {
        width: 100%;
        text-align: center;
        margin-top: 0.5rem;
    }

    .nav-links .btn-sm {
        display: inline-block;
        width: auto;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 10px;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }

    .cta-group .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-img {
        max-height: 300px;
    }

    .feature-card {
        flex: 1 1 100%;
        padding: 1.5rem;
    }

    .token-info {
        flex-direction: column;
    }

    .token-img {
        max-height: 300px;
        width: 100%;
    }

    .modal-content {
        width: 95%;
        padding: 2rem 1rem;
    }

    .game-result {
        font-size: 1rem;
    }
}

/* Modal & Interactive Games */
.interactive-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.interactive-card::before {
    content: "PLAY";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    background: var(--primary-pink);
    color: white;
    border-radius: 5px;
    opacity: 0.7;
}

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Black w/ opacity */
    backdrop-filter: blur(5px);
    overflow: auto;
    /* Enable scroll if needed */
}

/* Show modal when active */
.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: radial-gradient(circle at 50% 0%, #3c096c 0%, #10002b 100%);
    border: 3px solid var(--primary-pink);
    box-shadow: 0 0 30px var(--primary-pink), inset 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    padding: 3rem 2rem;
    width: 90%;
    max-width: 600px;
    position: relative;
    text-align: center;
    color: var(--text-light);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    color: var(--text-dim);
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--primary-pink);
}

/* Feature specific styles */
.game-title {
    color: var(--builder-blue);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px var(--builder-blue);
    font-family: var(--font-heading);
}

.game-desc {
    color: var(--text-dim);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.game-input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.game-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-pink);
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.game-input {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 2px solid var(--text-dim);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1.1rem;
    font-family: var(--font-ui);
    transition: 0.3s;
}

.game-input:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 15px rgba(247, 37, 133, 0.3);
}

.game-result {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 3px solid var(--primary-pink);
    border-radius: 15px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 120px;
    box-shadow: 0 0 30px rgba(247, 37, 133, 0.5), inset 0 0 15px rgba(247, 37, 133, 0.2);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.cookie-visual {
    font-size: 6rem;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin: 1rem 0;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
    user-select: none;
}

.cookie-visual:hover {
    transform: scale(1.15) rotate(5deg);
}

.cookie-visual.cracking {
    animation: intenseShake 0.5s infinite;
}

@keyframes intenseShake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-2deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(2deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(2deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-2deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-2deg);
    }
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.emoji-burst {
    position: absolute;
    font-size: 2rem;
    pointer-events: none;
    z-index: 1000;
}

/* Match UI Styling */
.match-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    transition: 0.3s;
}

.tab-btn.active {
    background: var(--primary-pink);
    border-color: var(--primary-pink);
    color: white;
    box-shadow: 0 0 15px var(--primary-pink);
}

.match-ui-box {
    display: none;
    animation: fadeIn 0.3s ease;
}

.match-ui-box.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}