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

body {
    min-height: 100vh;
    padding: 0 1rem;
    background: linear-gradient(135deg, #ffe6f0 0%, #fff0f5 100%);
    position: relative;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
}

header {
    position: fixed;
    top: 0;
    right: 0;
    padding: 1rem;
    z-index: 100;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #ff69b4;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.2);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
}

.title {
    font-size: 4rem;
    text-align: center;
    color: #ff69b4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    font-family: 'Comic Sans MS', cursive;
}

.tiktok-container {
    max-width: 600px;
    margin: 2rem auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tiktok-video {
    width: 100%;
    height: 600px;
    border: none;
}

.contract-section {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contract-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.contract-address:hover {
    background: #f0f0f0;
}

.copied-text {
    color: #28a745;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    display: none;
}

.buy-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #ff69b4;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.buy-button:hover {
    transform: scale(1.05);
}

.description {
    text-align: center;
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.description h2 {
    color: #ff69b4;
    margin-bottom: 1rem;
}

.memes {
    padding: 2rem 0;
}

.memes h2 {
    text-align: center;
    color: #ff69b4;
    margin-bottom: 2rem;
}

.meme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.meme-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.meme-item:hover {
    transform: scale(1.05);
}

.meme-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.fun-section {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    margin: 3rem auto;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fun-section h2 {
    color: #ff69b4;
    text-align: center;
    margin-bottom: 1.5rem;
}

.fun-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.fun-content p {
    text-align: center;
    line-height: 1.6;
}

.fun-image img {
    max-width: 100%;
    height: auto;
}

.floating-dog {
    position: fixed;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 1;
    pointer-events: auto;
    width: 100px;
    height: 100px;
}

.floating-dog img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.floating-dog:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }

    .tiktok-video {
        height: 600px;
    }

    .meme-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .fun-content {
        flex-direction: column;
    }
}

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

    .tiktok-video {
        height: 500px;
    }

    .contract-address {
        font-size: 0.9rem;
    }
}

/* Game Styles */
.game-section {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    margin: 3rem auto;
    max-width: 800px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    touch-action: none; /* Prevent default touch actions */
}

.game-section h2 {
    color: #ff69b4;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.game-stats {
    display: flex;
    justify-content: space-around;
    margin: 1rem 0;
    font-size: 1.2rem;
    color: #ff69b4;
}

.game-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(to bottom, #87CEEB, #E0F6FF);
    border-radius: 15px;
    overflow: hidden;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    touch-action: none;
    /* Hardware acceleration */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.game-character {
    position: absolute;
    width: 60px;
    height: 60px;
    transition: transform 0.1s ease;
    z-index: 10;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
    transform-origin: center;
    border-radius: 50%;
    overflow: hidden;
}

.game-character img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(0.9); /* Make the image slightly smaller within the container */
}

.game-pipe {
    position: absolute;
    width: 60px;
    background: #2E8B57;
    border: 2px solid #1B4D3E;
    border-radius: 5px;
    z-index: 5;
}

.game-pipe-top {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.game-pipe-bottom {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.game-treat {
    position: absolute;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    animation: float 1s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
    z-index: 6;
}

.game-obstacle {
    position: absolute;
    width: 40px;
    height: 40px;
    font-size: 2rem;
    animation: rotate 2s linear infinite;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
    z-index: 6;
}

.cloud {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    z-index: 1;
}

.cloud::before,
.cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.score-animation {
    position: absolute;
    color: #ff69b4;
    font-size: 1.5rem;
    font-weight: bold;
    animation: scoreFloat 1s ease-out forwards;
    pointer-events: none;
    z-index: 20;
}

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

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

@keyframes scoreFloat {
    0% { 
        transform: translateY(0);
        opacity: 1;
    }
    100% { 
        transform: translateY(-50px);
        opacity: 0;
    }
}

@keyframes hit {
    0% { transform: scale(1); }
    50% { transform: scale(0.8); }
    100% { transform: scale(1); }
}

@keyframes fly {
    0% { transform: rotate(-20deg); }
    50% { transform: rotate(20deg); }
    100% { transform: rotate(-20deg); }
}

.game-score, .high-score-top {
    font-size: 1.5rem;
    color: #ff69b4;
    margin: 1rem 0;
    font-weight: bold;
}

.high-score-top {
    color: #ff8c00; /* Different color for high score to stand out */
}

.game-timer {
    font-size: 1.2rem;
    color: #ff69b4;
    margin-bottom: 1rem;
}

.start-game-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #ff69b4;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.start-game-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 105, 180, 0.4);
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.game-over h3 {
    color: #ff69b4;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.game-over p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.high-score {
    color: #ff69b4;
    font-weight: bold;
}

.game-controls {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff0f5;
    border-radius: 10px;
    touch-action: none; /* Prevent default touch actions */
}

.control-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
}

.control-info p {
    margin: 0;
    color: #ff69b4;
    font-size: 1.1rem;
}

/* Mobile Controls */
.mobile-controls {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    z-index: 1000;
    touch-action: none;
}

.mobile-controls::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 105, 180, 0.3);
    border-radius: 50%;
    pointer-events: none;
}

.mobile-controls::after {
    content: '👆';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    pointer-events: none;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .game-container {
        height: 400px;
        margin-bottom: 120px;
        /* Simplify background for better performance */
        background: #9EDCFE;
    }
    
    .mobile-controls {
        display: block;
    }
    
    .game-section {
        padding-bottom: 120px;
        padding: 1rem;
    }
    
    .game-character {
        width: 50px;
        height: 50px;
        /* Optimize rendering */
        will-change: transform;
    }
    
    .game-pipe {
        width: 50px;
        /* Simplify border */
        border-width: 1px;
    }
    
    .game-treat, .game-obstacle {
        width: 30px;
        height: 30px;
        font-size: 1.5rem;
        /* Disable animations on mobile for better performance */
        animation: none !important;
    }
    
    .cloud {
        opacity: 0.5; /* Reduce opacity for better performance */
    }
    
    /* Hide some elements on very small screens */
    .control-info p:last-child {
        display: none;
    }
}

@media (max-width: 480px) {
    .game-container {
        height: 300px;
        /* Even simpler background */
        background: #B0E0FF;
    }
    
    .game-section h2 {
        font-size: 1.8rem;
    }
    
    .game-character {
        width: 40px;
        height: 40px;
    }
    
    .game-pipe {
        width: 40px;
    }
    
    .game-treat, .game-obstacle {
        width: 25px;
        height: 25px;
        font-size: 1.2rem;
    }
    
    .game-stats {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.9rem;
    }
    
    .score-animation {
        font-size: 1.2rem;
        /* Disable for very small screens */
        display: none;
    }
    
    /* Hide instructions on very small screens */
    .control-info p {
        font-size: 0.9rem;
    }
    
    .control-info p:nth-child(2) {
        display: none;
    }
} 