* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Animated Background */
.hero {
    min-height: 100vh;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0px 20px;
    padding-top: 60px;
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 50%, #fbbf24 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(239, 68, 68, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(96, 165, 250, 0.25) 0%, transparent 50%);
    animation: backgroundShift 10s ease infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, 20px) scale(1.1); }
}

/* Floating tears background */
.tear {
    position: absolute;
    font-size: 60px;
    opacity: 0.3;
    animation: fallTear 8s linear infinite;
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.6));
}

@keyframes fallTear {
    0% { transform: translateY(-100px) rotate(0deg); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.sob-emoji {
    position: absolute;
    font-size: 80px;
    opacity: 0.25;
    animation: fallSob 6s linear infinite;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.8));
}

@keyframes fallSob {
    0% { transform: translateY(-150px) rotate(0deg); opacity: 0; }
    15% { opacity: 0.35; }
    85% { opacity: 0.35; }
    100% { transform: translateY(100vh) rotate(180deg); opacity: 0; }
}

.hero-emoji {
    font-size: 200px;
    margin-bottom: 30px;
    animation: cry 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
    position: relative;
    z-index: 10;
}

@keyframes cry {
    0%, 100% { transform: translateY(0px) scale(1); }
    25% { transform: translateY(-10px) scale(1.05); }
    50% { transform: translateY(0px) scale(1); }
    75% { transform: translateY(-5px) scale(0.98); }
}

.hero h1 {
    font-size: 90px;
    margin-bottom: 20px;
    text-shadow:
        4px 4px 0px rgba(0,0,0,0.3),
        -2px -2px 0px rgba(255,255,255,0.3);
    color: #1a1a2e;
    font-weight: 900;
    position: relative;
    z-index: 10;
    letter-spacing: 5px;
}

.hero-description {
    font-size: 24px;
    margin-bottom: 40px;
    max-width: 900px;
    line-height: 1.6;
    color: #1a1a2e;
    font-weight: 600;
    position: relative;
    z-index: 10;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
    padding: 0 20px;
}

.ca-container {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 25px;
    margin: 0 20px 30px;
    border: 3px solid rgba(251, 191, 36, 0.5);
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 800px;
}

.ca-label {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: #fbbf24;
    font-weight: bold;
}

.ca-address {
    font-size: 18px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    background: rgba(251, 191, 36, 0.2);
    padding: 20px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.ca-address:hover {
    background: rgba(251, 191, 36, 0.3);
    transform: scale(1.02);
    border-color: #fbbf24;
}

/* Button group for CA section */
.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Sobvival button with pulsing animation */
.sobvival-btn {
    padding: 15px 40px;
    font-size: 18px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 900;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 20px rgba(239, 68, 68, 0.6);
    text-decoration: none;
    display: inline-block;
    animation: pulse-sobvival 2s ease-in-out infinite;
    position: relative;
}

.sobvival-btn::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 30px;
    z-index: -1;
    opacity: 0;
    animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-sobvival {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(239, 68, 68, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 40px rgba(239, 68, 68, 0.9);
    }
}

@keyframes pulse-ring {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

.sobvival-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(239, 68, 68, 0.8);
    animation: none;
}

.copy-btn {
    padding: 15px 40px;
    font-size: 18px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1a1a2e;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 900;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

.copy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.6);
}

/* Sections - FULL WIDTH FORCED */
section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

section h2 {
    font-size: 56px;
    margin-bottom: 40px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    color: #fbbf24;
}

section p {
    font-size: 22px;
    line-height: 1.8;
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.community {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* Game Section */
.game-section {
    background: linear-gradient(135deg, #16213e 0%, #0f172a 100%);
    padding: 100px 20px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.game-container {
    max-width: 850px;
    margin: 50px auto 0;
    background: rgba(26, 26, 46, 0.8);
    padding: 30px;
    border-radius: 20px;
    border: 3px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.game-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 10px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 14px;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
}

.game-canvas-wrapper {
    position: relative;
    width: 100%;
}

#gameCanvas {
    width: 100%;
    height: auto;
    background: linear-gradient(180deg, #d4a017 0%, #b8860b 100%);
    border-radius: 15px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    display: block;
    margin: 0 auto;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    z-index: 10;
}

.game-overlay.hidden {
    display: none;
}

.overlay-content {
    text-align: center;
    padding: 40px;
    background: rgba(26, 26, 46, 0.9);
    border-radius: 20px;
    border: 3px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.overlay-emoji {
    font-size: 80px;
    margin-bottom: 20px;
    animation: cry 2s ease-in-out infinite;
}

.overlay-content h3 {
    font-size: 36px;
    color: #fbbf24;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.overlay-content p {
    font-size: 18px;
    color: #fff;
    margin: 10px 0;
}

.final-score {
    font-size: 28px !important;
    font-weight: 900;
    color: #fbbf24 !important;
    margin: 20px 0 !important;
}

.new-high-score {
    font-size: 24px !important;
    color: #f59e0b !important;
    font-weight: 900;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.game-btn {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 20px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1a1a2e;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 900;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

.game-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.6);
}

.game-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.game-instructions {
    margin-top: 20px;
    padding: 15px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 10px;
    text-align: center;
}

.game-instructions p {
    font-size: 16px;
    margin: 5px 0;
    color: #fbbf24;
}

/* Username input in overlay */
.overlay-username-input {
    margin: 20px 0;
    width: 100%;
}

.overlay-username-input input {
    width: 100%;
    max-width: 300px;
    padding: 15px 20px;
    font-size: 18px;
    border: 3px solid rgba(251, 191, 36, 0.5);
    border-radius: 15px;
    background: rgba(26, 26, 46, 0.7);
    color: #fff;
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    text-align: center;
    transition: all 0.3s;
}

.overlay-username-input input:focus {
    outline: none;
    border-color: #fbbf24;
    background: rgba(26, 26, 46, 0.9);
}

.overlay-username-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Leaderboard button */
.leaderboard-btn {
    background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
    border: none !important;
    margin-top: 15px !important;
}

.leaderboard-btn:hover {
    background: linear-gradient(135deg, #f59e0b, #fbbf24) !important;
}

/* Leaderboard overlay content */
.leaderboard-overlay-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.leaderboard-list-overlay {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 20px 0;
    max-height: 50vh;
    overflow-y: auto;
}

/* Player name display */
.player-name-display {
    font-size: 20px !important;
    color: #fbbf24 !important;
    font-weight: 700;
    margin: 10px 0 !important;
}

/* Score saved message */
.score-saved {
    font-size: 18px !important;
    color: #10b981 !important;
    font-weight: 700;
    margin: 15px 0 !important;
}

/* Scrollbar styling for leaderboard */
.leaderboard-list-overlay::-webkit-scrollbar {
    width: 8px;
}

.leaderboard-list-overlay::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.5);
    border-radius: 10px;
}

.leaderboard-list-overlay::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.5);
    border-radius: 10px;
}

.leaderboard-list-overlay::-webkit-scrollbar-thumb:hover {
    background: #fbbf24;
}

/* Leaderboard */
.leaderboard-container {
    max-width: 850px;
    margin: 50px auto 0;
    background: rgba(26, 26, 46, 0.8);
    padding: 30px;
    border-radius: 20px;
    border: 3px solid rgba(251, 191, 36, 0.5);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.leaderboard-container h3 {
    font-size: 32px;
    color: #fbbf24;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.leaderboard-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

#playerName {
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    background: rgba(26, 26, 46, 0.5);
    color: #fff;
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    width: 250px;
}

#playerName:focus {
    outline: none;
    border-color: #fbbf24;
}

.submit-score-btn {
    padding: 12px 30px;
    font-size: 16px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 900;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-score-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.5);
}

.submit-score-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 10px;
    border: 2px solid rgba(251, 191, 36, 0.2);
    transition: all 0.3s;
}

.leaderboard-entry:hover {
    border-color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
}

.leaderboard-rank {
    font-size: 24px;
    font-weight: 900;
    color: #fbbf24;
    min-width: 40px;
}

.leaderboard-name {
    flex: 1;
    font-size: 20px;
    color: #fff;
    font-weight: 600;
}

.leaderboard-score {
    font-size: 24px;
    font-weight: 900;
    color: #fbbf24;
}

.leaderboard-entry.top-1 {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(251, 191, 36, 0.3));
    border-color: #fbbf24;
}

.leaderboard-entry.top-1 .leaderboard-rank::before {
    content: '🏆 ';
}

.leaderboard-entry.top-2 .leaderboard-rank::before {
    content: '🥈 ';
}

.leaderboard-entry.top-3 .leaderboard-rank::before {
    content: '🥉 ';
}

.no-scores {
    text-align: center;
    padding: 40px;
    color: #fbbf24;
    font-size: 18px;
    opacity: 0.7;
}

/* Chart Section */
.chart-section {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    padding: 100px 20px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

#dexscreener-embed {
    position: relative;
    width: 100%;
    padding-bottom: 125%;
    max-width: 1400px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

@media(min-width:1400px) {
    #dexscreener-embed {
        padding-bottom: 65%;
    }
}

#dexscreener-embed iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: 0;
}

/* Carousel Section */
.memes-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f172a 100%);
    padding: 100px 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.carousel-container {
    width: 100%;
    margin: 50px 0 0;
    position: relative;
    overflow: hidden;
}

.carousel {
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    padding: 0 20px;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-item {
    min-width: calc(33.333% - 13.333px);
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(251, 191, 36, 0.3);
    transition: all 0.3s;
}

.carousel-item:hover {
    border-color: #fbbf24;
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(251, 191, 36, 0.4);
}

.carousel-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.vibes {
    background: linear-gradient(135deg, #0f172a 0%, #1a1a2e 100%);
}

.social-links {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.social-btn {
    padding: 18px 45px;
    font-size: 20px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1a1a2e;
    border: 3px solid #fbbf24;
    border-radius: 35px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.3);
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
}

footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 50px 20px;
    text-align: center;
    opacity: 0.8;
    font-size: 14px;
    background: #0f172a;
}

/* Mobile */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 60px;
    }

    .hero-emoji {
        font-size: 140px;
    }

    .hero-description {
        font-size: 18px;
    }

    section h2 {
        font-size: 40px;
    }

    section p {
        font-size: 18px;
    }

    .ca-address {
        font-size: 14px;
    }

    .button-group {
        flex-direction: column;
        gap: 15px;
    }

    .sobvival-btn,
    .copy-btn {
        width: 100%;
        max-width: 300px;
    }

    .carousel-item {
        min-width: calc(100% - 20px);
        height: 300px;
    }

    .carousel-item img {
        height: 300px;
    }
}