* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(135deg, #87CEEB 0%, #98D8E8 50%, #87CEEB 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Animated Cloud Background */
.clouds-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.cloud {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 50px;
    opacity: 0.6;
    filter: blur(1px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    animation-timing-function: ease-in-out;
}

.cloud:before,
.cloud:after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2);
}

.cloud:before {
    width: 50px;
    height: 50px;
    top: -25px;
    left: 10px;
    transform: scale(1.2);
}

.cloud:after {
    width: 60px;
    height: 60px;
    top: -35px;
    right: 15px;
    transform: scale(1.3);
}

/* Individual Cloud Styles */
.cloud-1 {
    width: 100px;
    height: 40px;
    top: 20%;
    left: -100px;
    animation: float-cloud-1 25s infinite linear;
    opacity: 0.7;
}

.cloud-2 {
    width: 80px;
    height: 35px;
    top: 35%;
    left: -80px;
    animation: float-cloud-2 30s infinite linear;
    animation-delay: -5s;
    opacity: 0.5;
}

.cloud-3 {
    width: 120px;
    height: 45px;
    top: 15%;
    left: -120px;
    animation: float-cloud-3 35s infinite linear;
    animation-delay: -10s;
    opacity: 0.8;
}

.cloud-4 {
    width: 90px;
    height: 38px;
    top: 50%;
    left: -90px;
    animation: float-cloud-4 28s infinite linear;
    animation-delay: -15s;
    opacity: 0.6;
}

.cloud-5 {
    width: 110px;
    height: 42px;
    top: 10%;
    left: -110px;
    animation: float-cloud-5 32s infinite linear;
    animation-delay: -20s;
    opacity: 0.7;
}

.cloud-6 {
    width: 85px;
    height: 36px;
    top: 60%;
    left: -85px;
    animation: float-cloud-6 26s infinite linear;
    animation-delay: -8s;
    opacity: 0.5;
}

.cloud-7 {
    width: 95px;
    height: 40px;
    top: 25%;
    left: -95px;
    animation: float-cloud-7 29s infinite linear;
    animation-delay: -12s;
    opacity: 0.6;
}

.cloud-8 {
    width: 105px;
    height: 43px;
    top: 45%;
    left: -105px;
    animation: float-cloud-8 31s infinite linear;
    animation-delay: -18s;
    opacity: 0.7;
}

.cloud-9 {
    width: 75px;
    height: 32px;
    top: 70%;
    left: -75px;
    animation: float-cloud-9 24s infinite linear;
    animation-delay: -3s;
    opacity: 0.4;
}

.cloud-10 {
    width: 130px;
    height: 48px;
    top: 5%;
    left: -130px;
    animation: float-cloud-10 36s infinite linear;
    animation-delay: -25s;
    opacity: 0.8;
}

.cloud-11 {
    width: 88px;
    height: 37px;
    top: 80%;
    left: -88px;
    animation: float-cloud-11 27s infinite linear;
    animation-delay: -7s;
    opacity: 0.5;
}

.cloud-12 {
    width: 115px;
    height: 44px;
    top: 30%;
    left: -115px;
    animation: float-cloud-12 33s infinite linear;
    animation-delay: -22s;
    opacity: 0.6;
}

/* Cloud Animation Keyframes */
@keyframes float-cloud-1 {
    0% { transform: translateX(-100px) translateY(0px); }
    100% { transform: translateX(calc(100vw + 100px)) translateY(-20px); }
}

@keyframes float-cloud-2 {
    0% { transform: translateX(-80px) translateY(0px); }
    100% { transform: translateX(calc(100vw + 80px)) translateY(15px); }
}

@keyframes float-cloud-3 {
    0% { transform: translateX(-120px) translateY(0px); }
    100% { transform: translateX(calc(100vw + 120px)) translateY(-10px); }
}

@keyframes float-cloud-4 {
    0% { transform: translateX(-90px) translateY(0px); }
    100% { transform: translateX(calc(100vw + 90px)) translateY(25px); }
}

@keyframes float-cloud-5 {
    0% { transform: translateX(-110px) translateY(0px); }
    100% { transform: translateX(calc(100vw + 110px)) translateY(-15px); }
}

@keyframes float-cloud-6 {
    0% { transform: translateX(-85px) translateY(0px); }
    100% { transform: translateX(calc(100vw + 85px)) translateY(20px); }
}

@keyframes float-cloud-7 {
    0% { transform: translateX(-95px) translateY(0px); }
    100% { transform: translateX(calc(100vw + 95px)) translateY(-5px); }
}

@keyframes float-cloud-8 {
    0% { transform: translateX(-105px) translateY(0px); }
    100% { transform: translateX(calc(100vw + 105px)) translateY(10px); }
}

@keyframes float-cloud-9 {
    0% { transform: translateX(-75px) translateY(0px); }
    100% { transform: translateX(calc(100vw + 75px)) translateY(-8px); }
}

@keyframes float-cloud-10 {
    0% { transform: translateX(-130px) translateY(0px); }
    100% { transform: translateX(calc(100vw + 130px)) translateY(30px); }
}

@keyframes float-cloud-11 {
    0% { transform: translateX(-88px) translateY(0px); }
    100% { transform: translateX(calc(100vw + 88px)) translateY(-12px); }
}

@keyframes float-cloud-12 {
    0% { transform: translateX(-115px) translateY(0px); }
    100% { transform: translateX(calc(100vw + 115px)) translateY(18px); }
}

.game-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.game-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100vw;
    max-height: 100vh;
}

/* Contract Address Section below game */
.game-contract-address {
    margin-top: 20px;
    max-width: 400px;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 15px 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        0 4px 15px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.contract-info {
    text-align: center;
    margin-bottom: 10px;
}

.contract-label {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    display: block;
}

.contract-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(52, 152, 219, 0.1);
    padding: 8px;
    border-radius: 10px;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.game-contract-input {
    flex: 1;
    font-family: 'Orbitron', monospace;
    font-size: 0.85em;
    padding: 8px 10px;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    background: white;
    color: #2c3e50;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-align: center;
}

.game-contract-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.game-copy-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.1em;
}

.game-copy-btn:hover {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    transform: scale(1.05);
}

.game-copy-btn:active {
    transform: scale(0.98);
}

.game-copy-feedback {
    text-align: center;
    margin-top: 8px;
    padding: 4px 8px;
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 6px;
    color: #27ae60;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.8em;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.game-copy-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

#gameCanvas {
    border: 3px solid #333;
    border-radius: 10px;
    background: linear-gradient(to bottom, #87CEEB 0%, #98D8E8 70%, #90EE90 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.game-ui {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

/* Score Section */
.score-section {
    position: relative;
    width: 100%;
    height: auto;
}

.score {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', monospace;
    font-size: 2.8em;
    font-weight: 900;
    color: #fff;
    text-shadow: 
        3px 3px 0px #2c3e50,
        4px 4px 8px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(255, 255, 255, 0.3);
    pointer-events: none;
    letter-spacing: 2px;
}

.high-score {
    position: absolute;
    top: 25px;
    right: 20px;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2em;
    font-weight: 500;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.start-screen, .game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.98);
    padding: 40px 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.screen-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.game-title {
    font-family: 'Fredoka', sans-serif;
    color: #2c3e50;
    margin: 0;
    font-size: 3em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.game-subtitle {
    font-family: 'Fredoka', sans-serif;
    color: #7f8c8d;
    margin: 0;
    font-size: 1.3em;
    font-weight: 400;
}

.game-over-title {
    font-family: 'Fredoka', sans-serif;
    color: #e74c3c;
    margin: 0;
    font-size: 2.5em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.score-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.score-summary p {
    font-family: 'Fredoka', sans-serif;
    color: #2c3e50;
    margin: 0;
    font-size: 1.2em;
    font-weight: 500;
}

.score-value {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    color: #3498db;
}

/* Button Styles */
.primary-btn, button {
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 6px 20px rgba(52, 152, 219, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn:hover, button:hover {
    background: linear-gradient(45deg, #2980b9, #1f618d);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(52, 152, 219, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.primary-btn:active, button:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 15px rgba(52, 152, 219, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Game Over Buttons Container */
.game-over-buttons {
    display: flex;
    gap: 15px;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

/* Share Button Styles */
.share-btn {
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(45deg, #1DA1F2, #0d8bd9);
    color: white;
    border: none;
    padding: 12px 25px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(29, 161, 242, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: none;
    letter-spacing: 0.5px;
}

.share-btn:hover {
    background: linear-gradient(45deg, #0d8bd9, #0a7bc4);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(29, 161, 242, 0.4),
        0 3px 8px rgba(0, 0, 0, 0.3);
}

.share-btn:active {
    transform: translateY(-1px);
    box-shadow: 
        0 3px 12px rgba(29, 161, 242, 0.3),
        0 1px 4px rgba(0, 0, 0, 0.2);
}

.share-icon {
    font-size: 1.2em;
    font-weight: bold;
}

.share-text {
    font-weight: 600;
}

.instructions {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
    display: flex;
    gap: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 20px;
    border-radius: 25px;
    backdrop-filter: blur(5px);
}

.instruction-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.device {
    font-family: 'Fredoka', sans-serif;
    color: #ecf0f1;
    font-size: 0.9em;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.control {
    font-family: 'Orbitron', monospace;
    color: #f39c12;
    font-size: 0.8em;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    background: rgba(243, 156, 18, 0.2);
    padding: 4px 8px;
    border-radius: 10px;
}

.mobile-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: none;
}

.jump-btn, #jumpBtn {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.3em;
    font-weight: 700;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    box-shadow: 
        0 8px 25px rgba(231, 76, 60, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.4);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.jump-btn:hover, #jumpBtn:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 
        0 10px 30px rgba(231, 76, 60, 0.5),
        0 6px 15px rgba(0, 0, 0, 0.4);
}

.jump-btn:active, #jumpBtn:active {
    transform: translateX(-50%) scale(0.95);
    box-shadow: 
        0 4px 15px rgba(231, 76, 60, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    #gameCanvas {
        width: 95vw;
        height: calc(95vw * 1.5);
        max-height: 85vh;
        max-width: calc(85vh / 1.5);
    }
    
    .mobile-controls {
        display: block;
    }
    
    .instructions {
        display: none;
    }
    
    .score {
        font-size: 2.2em;
        top: 15px;
    }
    
    .high-score {
        font-size: 1em;
        top: 20px;
        right: 15px;
        padding: 6px 10px;
    }
    
    .start-screen, .game-over {
        padding: 25px 20px;
        margin: 10px;
        max-width: 85vw;
        border-radius: 15px;
    }
    
    .game-title {
        font-size: 2.5em;
    }
    
    .game-over-title {
        font-size: 2em;
    }
    
    .primary-btn, button {
        padding: 12px 25px;
        font-size: 1.1em;
    }
    
    .game-over-buttons {
        gap: 12px;
    }
    
    .share-btn {
        padding: 10px 20px;
        font-size: 1em;
    }
    
    .jump-btn, #jumpBtn {
        width: 80px;
        height: 80px;
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    #gameCanvas {
        width: 98vw;
        height: calc(98vw * 1.5);
        border-radius: 5px;
        border-width: 2px;
    }
    
    .score {
        font-size: 2em;
        top: 10px;
    }
    
    .high-score {
        font-size: 0.9em;
        top: 15px;
        right: 10px;
        padding: 5px 8px;
    }
    
    .start-screen, .game-over {
        padding: 20px 15px;
        margin: 5px;
        max-width: 90vw;
    }
    
    .game-title {
        font-size: 2.2em;
    }
    
    .game-subtitle, .score-summary p {
        font-size: 1.1em;
    }
    
    .game-over-title {
        font-size: 1.8em;
    }
    
    .primary-btn, button {
        padding: 10px 20px;
        font-size: 1em;
    }
    
    .game-over-buttons {
        gap: 10px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .share-btn {
        padding: 8px 16px;
        font-size: 0.9em;
        flex: 1;
        min-width: 120px;
        max-width: 150px;
    }
    
    .jump-btn, #jumpBtn {
        width: 70px;
        height: 70px;
        font-size: 1.1em;
    }
}

/* Landscape mobile orientation */
@media (max-height: 500px) and (orientation: landscape) {
    #gameCanvas {
        height: 90vh;
        width: calc(90vh / 1.5);
        max-width: 60vw;
    }
    
    .mobile-controls {
        right: 20px;
        bottom: 50%;
        left: auto;
        transform: translateY(50%);
    }
    
    .start-screen, .game-over {
        padding: 15px;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .instructions {
        bottom: 10px;
        font-size: 0.8em;
    }
}

/* Animation for bird and pipes */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.floating {
    animation: float 2s ease-in-out infinite;
}

/* Smooth transitions */
.start-screen, .game-over {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.start-screen.fade-out, .game-over.fade-out {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
}

/* Game Information Section */
.game-info {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.game-info.show {
    display: flex;
    opacity: 1;
}

.info-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: 0;
    max-width: 90vw;
    max-height: 90vh;
    width: 600px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.game-info.show .info-container {
    transform: scale(1);
}

.info-header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.close-info {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-info:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.info-content {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-section {
    background: rgba(248, 249, 250, 0.8);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #3498db;
}

.info-section h3 {
    font-family: 'Fredoka', sans-serif;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.info-section p {
    font-family: 'Fredoka', sans-serif;
    color: #5a6c7d;
    font-size: 1em;
    line-height: 1.6;
    margin: 0;
}

.info-section ul {
    margin: 0;
    padding-left: 20px;
}

.info-section li {
    font-family: 'Fredoka', sans-serif;
    color: #5a6c7d;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 8px;
}

.info-section li strong {
    color: #2c3e50;
    font-weight: 600;
}

.info-footer {
    text-align: center;
    padding: 20px 0 10px 0;
    border-top: 2px solid #ecf0f1;
    margin-top: 10px;
}

.version {
    font-family: 'Fredoka', sans-serif;
    color: #95a5a6;
    font-size: 0.9em;
    margin: 0 0 15px 0;
}

/* Info Toggle Button */
.info-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3498db, #2980b9);
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 6px 20px rgba(52, 152, 219, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.info-toggle:hover {
    background: linear-gradient(45deg, #2980b9, #1f618d);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(52, 152, 219, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.info-toggle:active {
    transform: translateY(0) scale(1);
}

.info-icon {
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

/* X Profile Button */
.x-profile-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #000000, #1a1a1a);
    border: none;
    color: white;
    font-size: 1.4em;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
}

.x-profile-toggle:hover {
    background: linear-gradient(45deg, #1a1a1a, #333333);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.x-profile-toggle:active {
    transform: translateY(0) scale(1);
}

.x-icon {
    filter: drop-shadow(1px 1px 2px rgba(255, 255, 255, 0.1));
}

/* Pump.fun Button */
.pf-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    border: none;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 6px 20px rgba(255, 107, 53, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    padding: 8px;
}

.pf-toggle:hover {
    background: linear-gradient(45deg, #ff8c42, #ffa552);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(255, 107, 53, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.pf-toggle:active {
    transform: translateY(-1px) scale(1);
}

.pf-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Dexscreener Button */
.dex-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(45deg, #00d4aa, #00c29a);
    border: none;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 6px 20px rgba(0, 212, 170, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    padding: 8px;
}

.dex-toggle:hover {
    background: linear-gradient(45deg, #00c29a, #00b088);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0, 212, 170, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.dex-toggle:active {
    transform: translateY(-1px) scale(1);
}

.dex-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Social Links Styling */
.social-links, .community-links {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link, .community-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(45deg, #1da1f2, #0d8bd9);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

.social-link.x-link {
    background: linear-gradient(45deg, #000000, #1a1a1a);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.community-link {
    background: linear-gradient(45deg, #7289da, #5b6eae);
    box-shadow: 0 4px 15px rgba(114, 137, 218, 0.3);
}

.social-link:hover, .community-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

.social-link.x-link:hover {
    background: linear-gradient(45deg, #1a1a1a, #333333);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.community-link:hover {
    background: linear-gradient(45deg, #5b6eae, #4f5d87);
    box-shadow: 0 6px 20px rgba(114, 137, 218, 0.4);
}

.social-icon, .community-icon {
    font-size: 1.2em;
    font-weight: bold;
}

.social-text, .community-text {
    font-size: 1em;
}

.community-note {
    font-size: 0.9em;
    color: #7f8c8d;
    font-style: italic;
    margin: 8px 0 0 0;
}

/* Contract Address Styling */
.contract-address-container {
    margin-top: 15px;
}

.contract-address-wrapper {
    display: flex;
    gap: 8px;
    align-items: center;
    background: rgba(52, 152, 219, 0.1);
    padding: 12px;
    border-radius: 12px;
    border: 2px solid rgba(52, 152, 219, 0.2);
}

.contract-address-input {
    flex: 1;
    font-family: 'Orbitron', monospace;
    font-size: 0.9em;
    padding: 8px 12px;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    background: white;
    color: #2c3e50;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.contract-address-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.98);
}

.copy-icon {
    font-size: 1em;
}

.copy-text {
    font-size: 0.9em;
}

.copy-feedback {
    margin-top: 8px;
    padding: 6px 12px;
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 6px;
    color: #27ae60;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.85em;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.copy-feedback.show {
    opacity: 1;
    transform: translateY(0);
}

.contract-warning {
    margin-top: 12px;
    font-size: 0.85em;
    color: #e67e22;
    background: rgba(230, 126, 34, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 4px solid #e67e22;
}

/* Contract Address Toggle Button */
.contract-toggle {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: linear-gradient(45deg, #f39c12, #e67e22);
    border: none;
    color: white;
    font-size: 1.8em;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 6px 20px rgba(243, 156, 18, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.contract-toggle:hover {
    background: linear-gradient(45deg, #e67e22, #d35400);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 8px 25px rgba(243, 156, 18, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.contract-toggle:active {
    transform: translateY(-1px) scale(1);
}

.contract-icon {
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
}

/* Responsive for Info Section */
@media (max-width: 768px) {
    .info-container {
        width: 95vw;
        max-height: 95vh;
    }
    
    .info-header {
        padding: 15px 20px;
    }
    
    .info-title {
        font-size: 1.5em;
    }
    
    .info-content {
        padding: 20px;
        gap: 15px;
    }
    
    .info-section {
        padding: 15px;
    }
    
    .info-section h3 {
        font-size: 1.2em;
    }
    
    .info-toggle {
        width: 45px;
        height: 45px;
        top: 15px;
        left: 15px;
        font-size: 1.3em;
    }
    
    .x-profile-toggle {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
        font-size: 1.2em;
    }
    
    .pf-toggle, .dex-toggle {
        width: 50px;
        height: 50px;
        bottom: 15px;
    }
    
    .pf-toggle {
        left: 15px;
    }
    
    .dex-toggle {
        right: 15px;
    }
    
    .contract-toggle {
        width: 50px;
        height: 50px;
        bottom: 75px;
        left: 15px;
        font-size: 1.6em;
    }
    
    /* Game Contract Address Mobile */
    .game-contract-address {
        margin-top: 15px;
        max-width: 95vw;
        padding: 12px 15px;
    }
    
    .contract-label {
        font-size: 1em;
    }
    
    .game-contract-input {
        font-size: 0.75em;
        padding: 6px 8px;
    }
    
    .game-copy-btn {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .info-container {
        width: 98vw;
        max-height: 98vh;
    }
    
    .info-header {
        padding: 12px 15px;
    }
    
    .info-title {
        font-size: 1.3em;
    }
    
    .info-content {
        padding: 15px;
        gap: 12px;
    }
    
    .info-section {
        padding: 12px;
    }
    
    .info-section h3 {
        font-size: 1.1em;
    }
    
    .info-section p, .info-section li {
        font-size: 0.9em;
    }
    
    .info-toggle {
        width: 40px;
        height: 40px;
        top: 10px;
        left: 10px;
        font-size: 1.2em;
    }
    
    .x-profile-toggle {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
        font-size: 1.1em;
    }
    
    .pf-toggle, .dex-toggle {
        width: 45px;
        height: 45px;
        bottom: 10px;
    }
    
    .pf-toggle {
        left: 10px;
    }
    
    .dex-toggle {
        right: 10px;
    }
    
    .contract-toggle {
        width: 45px;
        height: 45px;
        bottom: 65px;
        left: 10px;
        font-size: 1.4em;
    }
    
    /* Contract Address Mobile Responsive */
    .contract-address-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .contract-address-input {
        font-size: 0.8em;
        text-align: center;
    }
    
    .copy-btn {
        align-self: center;
        padding: 10px 20px;
    }
    
    /* Game Contract Address Mobile Small */
    .game-contract-address {
        margin-top: 10px;
        max-width: 98vw;
        padding: 10px 12px;
    }
    
    .contract-label {
        font-size: 0.9em;
    }
    
    .game-contract-input {
        font-size: 0.7em;
        padding: 5px 6px;
    }
    
    .game-copy-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9em;
    }
    
    /* Cloud Responsive - Mobile */
    .cloud {
        opacity: 0.4;
        filter: blur(1.5px);
    }
    
    .cloud-1, .cloud-3, .cloud-5 {
        transform: scale(0.8);
    }
    
    .cloud-2, .cloud-4, .cloud-6, .cloud-7, .cloud-8 {
        transform: scale(0.7);
    }
}
