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

:root {
    --purple-primary: #8A2BE2;
    --purple-light: #9D4EDD;
    --purple-dark: #4A148C;
    --blue-deep: #1A0B2E;
    --blue-purple: #16213E;
    --orange-accent: #FF8C42;
    --salmon-accent: #FF6B6B;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.18);
    --white: #FFFFFF;
}

body {
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(180deg, #0A0E27 0%, #1A0B2E 25%, #16213E 50%, #1E3A5F 75%, #2D5F7E 100%);
    background-attachment: fixed;
    color: var(--white);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.bubble {
    position: fixed;
    bottom: -100px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4), rgba(157, 78, 221, 0.2));
    border-radius: 50%;
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
    animation: rise linear infinite;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

@keyframes rise {
    0% {
        bottom: -100px;
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: 110vh;
        opacity: 0;
    }
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(3rem, 12vw, 8rem);
    color: var(--white);
    text-shadow: 
        4px 4px 0px var(--orange-accent),
        8px 8px 0px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(138, 43, 226, 0.6);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 
            4px 4px 0px var(--orange-accent),
            8px 8px 0px rgba(0, 0, 0, 0.2),
            0 0 40px rgba(138, 43, 226, 0.6);
    }
    50% {
        text-shadow: 
            4px 4px 0px var(--salmon-accent),
            8px 8px 0px rgba(0, 0, 0, 0.2),
            0 0 60px rgba(157, 78, 221, 0.8);
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 4vw, 2rem);
    color: var(--white);
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 2rem auto;
    filter: drop-shadow(0 10px 30px rgba(138, 43, 226, 0.5));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.buy-button {
    display: inline-block;
    padding: 1.5rem 3rem;
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--purple-dark);
    background: linear-gradient(135deg, var(--orange-accent) 0%, var(--salmon-accent) 100%);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 140, 66, 0.5);
    animation: bounce 2s ease-in-out infinite;
}

.buy-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.6);
}

.community-button {
    display: inline-block;
    padding: 1.5rem 3rem;
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 3px solid var(--purple-accent);
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.3);
}

.community-button:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(138, 43, 226, 0.3);
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.6);
    border-color: var(--salmon-accent);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-8px);
    }
}

.lore-section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.lore-container {
    max-width: 1000px;
    margin: 0 auto;
}

.lore-card {
    border-radius: 20px;
    padding: 3rem;
    position: relative;
}

.lore-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--white);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.8);
}

.lore-content {
    display: grid;
    gap: 2rem;
}

.lore-item {
    text-align: center;
}

.lore-item h3 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    color: var(--orange-accent);
    margin-bottom: 0.5rem;
}

.lore-item p {
    color: var(--white);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.6;
}

.lore-item strong {
    color: var(--salmon-accent);
}

/* Announcement Section */
.announcement-section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.announcement-container {
    max-width: 700px;
    margin: 0 auto;
}

.announcement-card {
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
}

.announcement-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.8);
    background: linear-gradient(135deg, var(--purple-primary), var(--salmon-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.announcement-subtitle {
    font-family: 'Comic Neue', cursive;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.announcement-button {
    display: inline-block;
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--white);
    background: linear-gradient(135deg, var(--purple-primary), var(--orange-accent));
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 0 20px rgba(138, 43, 226, 0.5),
        0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.announcement-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 0 30px rgba(138, 43, 226, 0.7),
        0 6px 20px rgba(0, 0, 0, 0.4);
}

.announcement-button.pulse {
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 20px rgba(138, 43, 226, 0.5),
            0 4px 15px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 
            0 0 35px rgba(138, 43, 226, 0.8),
            0 6px 25px rgba(0, 0, 0, 0.4);
    }
}

.contract-section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.contract-container {
    max-width: 800px;
    margin: 0 auto;
}

.contract-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid var(--purple-primary);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(138, 43, 226, 0.3);
    position: relative;
}

.contract-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.8);
}

.contract-content {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

.contract-address {
    font-family: 'Courier New', monospace;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    color: var(--white);
    background: rgba(138, 43, 226, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 2px dashed var(--purple-primary);
    word-break: break-all;
    flex: 1;
    min-width: 250px;
    max-width: 500px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-family: 'Fredoka One', cursive;
    font-size: 1rem;
    color: var(--purple-dark);
    background: linear-gradient(135deg, var(--orange-accent), var(--salmon-accent));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 140, 66, 0.3);
}

.copy-button:hover {
    background: linear-gradient(135deg, var(--salmon-accent), var(--orange-accent));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-feedback {
    text-align: center;
    margin-top: 1rem;
    font-weight: 700;
    color: var(--orange-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-feedback.show {
    opacity: 1;
}

.simulator-section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.simulator-container {
    max-width: 600px;
    margin: 0 auto;
}

.simulator-card {
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
}

.simulator-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2rem, 6vw, 2.8rem);
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.8);
}

.simulator-description {
    color: var(--white);
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-bottom: 2rem;
    font-weight: 700;
}

.salmopost-button {
    display: inline-block;
    padding: 1.5rem 3rem;
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--white);
    background: linear-gradient(135deg, var(--purple-primary), var(--purple-light));
    border: 3px solid var(--orange-accent);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.5);
    animation: buttonBounce 1.5s ease-in-out infinite;
}

@keyframes buttonBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.salmopost-button:hover {
    background: linear-gradient(135deg, var(--purple-light), var(--purple-primary));
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.7);
}

.salmopost-button:active {
    transform: scale(0.95);
}

.salmopost-counter {
    margin-top: 2rem;
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--white);
}

.counter-label {
    font-weight: 700;
    margin-right: 0.5rem;
}

.counter-value {
    font-family: 'Fredoka One', cursive;
    color: var(--orange-accent);
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    text-shadow: 0 0 10px rgba(255, 140, 66, 0.8);
}

.floating-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    font-weight: bold;
    color: var(--white);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.8);
    animation: floatUp 3s ease-out forwards;
}

@keyframes floatUp {
    0% {
        bottom: 0;
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(20px) scale(1.2);
    }
    100% {
        bottom: 100vh;
        opacity: 0;
        transform: translateX(-20px) scale(0.8);
    }
}

.gallery-section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
}

.gallery-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2rem, 6vw, 3.5rem);
    color: var(--white);
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.8);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 15px 40px rgba(138, 43, 226, 0.5),
        0 0 30px rgba(138, 43, 226, 0.8),
        inset 0 0 20px rgba(138, 43, 226, 0.3);
    border: 3px solid var(--purple-primary);
    animation: glowPulse 1.5s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 
            0 15px 40px rgba(138, 43, 226, 0.5),
            0 0 30px rgba(138, 43, 226, 0.8),
            inset 0 0 20px rgba(138, 43, 226, 0.3);
    }
    50% {
        box-shadow: 
            0 15px 50px rgba(157, 78, 221, 0.7),
            0 0 50px rgba(157, 78, 221, 1),
            inset 0 0 30px rgba(157, 78, 221, 0.5);
    }
}

.gallery-item:hover img {
    transform: scale(1.1) rotate(2deg);
}

.gallery-item:nth-child(odd):hover img {
    transform: scale(1.1) rotate(-2deg);
}

.footer {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-primary) 100%);
    color: var(--white);
    padding: 0;
    text-align: center;
    position: relative;
    z-index: 2;
}

.marquee-container {
    background: var(--purple-dark);
    padding: 1rem 0;
    overflow: hidden;
    border-top: 2px solid var(--purple-primary);
    border-bottom: 2px solid var(--purple-primary);
}

.marquee {
    display: flex;
    animation: scroll 15s linear infinite;
}

.marquee span {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--orange-accent);
    white-space: nowrap;
    padding-right: 100%;
    text-shadow: 0 0 10px rgba(255, 140, 66, 0.5);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 1.5rem;
}

.chart-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
    color: var(--purple-dark);
    background: linear-gradient(135deg, var(--orange-accent) 0%, var(--salmon-accent) 100%);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(255, 140, 66, 0.5);
}

.chart-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.6);
}

.x-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid var(--purple-accent);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
}

.x-button:hover {
    transform: translateY(-3px) scale(1.1);
    background: rgba(138, 43, 226, 0.3);
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.6);
    border-color: var(--salmon-accent);
}

.x-button svg {
    width: 24px;
    height: 24px;
}

.copyright {
    font-size: 1.1rem;
    font-weight: 700;
    opacity: 0.9;
    text-align: center;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 3rem 1rem;
    }

    .lore-card,
    .contract-card,
    .simulator-card {
        padding: 2rem 1.5rem;
    }

    .contract-content {
        flex-direction: column;
        align-items: center;
    }

    .contract-address {
        width: 100%;
        max-width: 100%;
        font-size: 0.8rem;
    }

    .copy-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .marquee span {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .lore-card,
    .contract-card,
    .simulator-card {
        padding: 1.5rem;
    }
}

/* Game Section Styles */
.game-section {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--bg-light) 0%, rgba(255, 255, 255, 0.05) 100%);
    position: relative;
    z-index: 2;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.game-title {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--purple-accent);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

.game-subtitle {
    font-family: 'Comic Neue', sans-serif;
    font-size: 1.2rem;
    color: var(--orange-accent);
    margin-bottom: 2rem;
}

.game-layout {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

.game-canvas-wrapper {
    position: relative;
    background: rgba(26, 77, 122, 0.3);
    border: 4px solid var(--purple-accent);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.4);
}

#gameCanvas {
    display: block;
    border-radius: 10px;
    background: #1a4d7a;
    cursor: pointer;
}

.start-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 2rem 3rem;
    border-radius: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.start-screen h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: var(--orange-accent);
    margin: 0;
}

.start-screen p {
    font-family: 'Comic Neue', sans-serif;
    font-size: 1rem;
    color: var(--white);
    margin: 0;
}

.score-display {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    pointer-events: none;
}

/* Leaderboard Styles */
.leaderboard-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 3px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    min-width: 300px;
    max-width: 350px;
}

.leaderboard-title {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--orange-accent);
    margin: 0 0 1rem 0;
}

.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.leaderboard-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 140, 66, 0.1);
    border-radius: 10px;
    font-family: 'Comic Neue', sans-serif;
    transition: all 0.3s ease;
}

.leaderboard-entry:hover {
    background: rgba(255, 140, 66, 0.2);
    transform: translateX(5px);
}

.leaderboard-entry .rank {
    font-weight: 700;
    color: var(--purple-accent);
    min-width: 25px;
}

.leaderboard-entry .name {
    flex: 1;
    color: var(--white);
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-entry .score {
    font-weight: 700;
    color: var(--orange-accent);
    min-width: 40px;
    text-align: right;
}

.loading, .no-scores, .error {
    color: var(--white);
    padding: 2rem;
    font-family: 'Comic Neue', sans-serif;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, var(--purple-accent) 0%, rgba(138, 43, 226, 0.8) 100%);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 50px rgba(255, 140, 66, 0.5);
}

.modal-content h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: var(--white);
    margin: 0 0 1rem 0;
}

.modal-content p {
    font-family: 'Comic Neue', sans-serif;
    font-size: 1.5rem;
    color: var(--white);
    margin: 1rem 0 1.5rem 0;
}

.modal-content input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 3px solid var(--orange-accent);
    border-radius: 10px;
    font-family: 'Comic Neue', sans-serif;
    font-size: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--purple-accent);
    font-weight: 700;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--white);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.modal-content button {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.submit-btn {
    background: var(--orange-accent);
    color: var(--white);
}

.submit-btn:hover:not(:disabled) {
    background: var(--salmon-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.play-again-btn {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid var(--white);
}

.play-again-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* Responsive Game Styles */
@media (max-width: 768px) {
    .game-layout {
        flex-direction: column;
        align-items: center;
    }

    .leaderboard-wrapper {
        width: 100%;
        max-width: 400px;
    }

    #gameCanvas {
        width: 100%;
        max-width: 400px;
        height: auto;
    }

    .start-screen {
        padding: 1.5rem 2rem;
    }

    .start-screen h3 {
        font-size: 1.5rem;
    }
}

/* Navigation Header Styles */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--purple-accent) 0%, rgba(138, 43, 226, 0.95) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.4);
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-link {
    text-decoration: none;
}

.nav-logo-link:hover .nav-logo {
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(255, 140, 66, 0.9);
}

.nav-logo {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: var(--white);
    text-shadow: 0 0 20px rgba(255, 140, 66, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: 'Comic Neue', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--orange-accent);
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.5);
}

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

    .nav-logo {
        font-size: 1.5rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-menu {
        gap: 0.3rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Chatbot Widget Styles */
.chat-toggle-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--purple-accent) 0%, rgba(138, 43, 226, 0.9) 100%);
    border: 3px solid var(--orange-accent);
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.7);
}

.oracle-fish-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-notification-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #ff3333;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.chat-window {
    position: fixed;
    bottom: 110px;
    right: 2rem;
    width: 380px;
    height: 550px;
    background: rgba(20, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    border: 3px solid var(--purple-accent);
    border-radius: 20px;
    box-shadow: 0 10px 50px rgba(138, 43, 226, 0.4);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
}

.chat-header {
    background: linear-gradient(135deg, var(--purple-accent) 0%, rgba(138, 43, 226, 0.8) 100%);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--orange-accent);
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-header-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--orange-accent);
}

.chat-header h3 {
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    color: var(--white);
    margin: 0;
}

.chat-status {
    font-family: 'Comic Neue', sans-serif;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.chat-close-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.chat-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.chat-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--purple-accent);
    border-radius: 3px;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.oracle-message {
    align-self: flex-start;
}

.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--orange-accent);
    flex-shrink: 0;
}

.message-bubble {
    max-width: 75%;
    padding: 0.75rem 1rem;
    border-radius: 15px;
    font-family: 'Comic Neue', sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
}

.oracle-message .message-bubble {
    background: rgba(138, 43, 226, 0.3);
    border: 2px solid var(--purple-accent);
    color: var(--white);
    border-bottom-left-radius: 5px;
}

.user-message .message-bubble {
    background: rgba(255, 140, 66, 0.3);
    border: 2px solid var(--orange-accent);
    color: var(--white);
    border-bottom-right-radius: 5px;
}

.message-bubble p {
    margin: 0;
}

.typing-indicator .message-bubble {
    padding: 1rem 1.5rem;
}

.typing-dots {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.7; }
    30% { transform: translateY(-10px); opacity: 1; }
}

.chat-input-container {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-top: 2px solid rgba(138, 43, 226, 0.3);
    display: flex;
    gap: 0.75rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 25px;
    color: var(--white);
    font-family: 'Comic Neue', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--purple-accent);
    background: rgba(255, 255, 255, 0.15);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-send-btn {
    width: 45px;
    height: 45px;
    background: var(--orange-accent);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-send-btn:hover {
    background: var(--salmon-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.5);
}

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

/* Responsive Chatbot Styles */
@media (max-width: 768px) {
    .chat-window {
        bottom: 90px;
        right: 1rem;
        left: 1rem;
        width: auto;
        height: 500px;
    }

    .chat-toggle-btn {
        bottom: 1rem;
        right: 1rem;
        width: 60px;
        height: 60px;
    }

    .oracle-fish-icon {
        width: 50px;
        height: 50px;
    }
}

/* Full Page Chatbot Styles */
.chatbot-page-section {
    min-height: calc(100vh - 80px - 200px);
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chatbot-page-container {
    max-width: 900px;
    width: 100%;
    background: rgba(20, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    border: 3px solid var(--purple-accent);
    border-radius: 30px;
    box-shadow: 0 15px 60px rgba(138, 43, 226, 0.4);
    overflow: hidden;
}

.chatbot-page-header {
    background: linear-gradient(135deg, var(--purple-accent) 0%, rgba(138, 43, 226, 0.8) 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 3px solid var(--orange-accent);
}

.chatbot-page-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--orange-accent);
    box-shadow: 0 5px 20px rgba(255, 140, 66, 0.4);
}

.chatbot-page-title h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: var(--white);
    margin: 0;
}

.chatbot-subtitle {
    font-family: 'Comic Neue', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0.5rem 0 0 0;
}

.chatbot-page-chat {
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chatbot-page-messages {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.chatbot-page-messages::-webkit-scrollbar {
    width: 8px;
}

.chatbot-page-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.chatbot-page-messages::-webkit-scrollbar-thumb {
    background: var(--purple-accent);
    border-radius: 4px;
}

.chatbot-page-input-container {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-top: 2px solid rgba(138, 43, 226, 0.3);
    display: flex;
    gap: 1rem;
}

.chatbot-page-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 30px;
    color: var(--white);
    font-family: 'Comic Neue', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.chatbot-page-input:focus {
    outline: none;
    border-color: var(--purple-accent);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.chatbot-page-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chatbot-page-send-btn {
    width: 60px;
    height: 60px;
    background: var(--orange-accent);
    border: none;
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.chatbot-page-send-btn:hover {
    background: var(--salmon-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.chatbot-page-send-btn:active {
    transform: translateY(0);
}

/* Responsive Full Page Chatbot */
@media (max-width: 768px) {
    .chatbot-page-section {
        padding: 1rem;
        min-height: calc(100vh - 70px - 180px);
    }

    .chatbot-page-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .chatbot-page-icon {
        width: 60px;
        height: 60px;
    }

    .chatbot-page-title h1 {
        font-size: 1.5rem;
    }

    .chatbot-subtitle {
        font-size: 0.9rem;
    }

    .chatbot-page-chat {
        height: 500px;
    }

    .chatbot-page-messages {
        padding: 1rem;
    }

    .chatbot-page-input-container {
        padding: 1rem;
    }

    .chatbot-page-send-btn {
        width: 50px;
        height: 50px;
    }
}

/* Image Generator Page Styles */
.generator-page-section {
    min-height: calc(100vh - 80px - 200px);
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
}

.generator-page-container {
    max-width: 1000px;
    width: 100%;
    background: rgba(20, 15, 35, 0.8);
    backdrop-filter: blur(20px);
    border: 3px solid var(--purple-accent);
    border-radius: 30px;
    box-shadow: 0 15px 60px rgba(138, 43, 226, 0.4);
    overflow: hidden;
    padding: 2rem;
}

.generator-page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.generator-page-header h1 {
    font-family: 'Fredoka One', cursive;
    font-size: 2.5rem;
    color: var(--white);
    text-shadow: 3px 3px 0px var(--orange-accent);
    margin-bottom: 0.5rem;
}

.generator-subtitle {
    font-family: 'Comic Neue', sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

.generator-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.generator-input-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.generator-label {
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    color: var(--orange-accent);
}

.generator-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 15px;
    color: var(--white);
    font-family: 'Comic Neue', sans-serif;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
}

.generator-textarea:focus {
    outline: none;
    border-color: var(--purple-accent);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.generator-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.generator-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--purple-accent) 0%, var(--orange-accent) 100%);
    border: none;
    border-radius: 30px;
    color: var(--white);
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.generator-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.5);
}

.generator-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.generator-button.loading {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--salmon-accent) 100%);
}

.button-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.generator-output-area {
    display: flex;
    flex-direction: column;
}

.generated-image-container {
    background: rgba(255, 255, 255, 0.05);
    border: 2px dashed rgba(138, 43, 226, 0.5);
    border-radius: 20px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.placeholder-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.placeholder-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.generated-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.download-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--orange-accent);
    border: none;
    border-radius: 20px;
    color: var(--white);
    font-family: 'Comic Neue', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--salmon-accent);
    transform: translateY(-2px);
}

.error-message {
    text-align: center;
    color: var(--salmon-accent);
    padding: 2rem;
}

.error-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.generator-tips {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(138, 43, 226, 0.2);
    border-radius: 15px;
    border: 2px solid rgba(138, 43, 226, 0.3);
}

.generator-tips h3 {
    font-family: 'Fredoka One', cursive;
    color: var(--orange-accent);
    margin-bottom: 0.75rem;
}

.generator-tips ul {
    list-style: none;
    padding: 0;
}

.generator-tips li {
    font-family: 'Comic Neue', sans-serif;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.generator-tips li::before {
    content: '🐟';
    position: absolute;
    left: 0;
}

/* Responsive Generator Styles */
@media (max-width: 768px) {
    .generator-page-section {
        padding: 1rem;
        padding-top: 80px;
    }

    .generator-page-container {
        padding: 1.5rem;
    }

    .generator-page-header h1 {
        font-size: 1.8rem;
    }

    .generator-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .generated-image-container {
        min-height: 250px;
    }

    .generator-tips {
        padding: 1rem;
    }
}
