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

body {
    font-family: 'Courier New', monospace;
    background: url('crash-twinsanity-custom-map-v0-zw27wgg286te1.jpg') center/cover no-repeat fixed;
    color: #000;
    overflow: hidden;
    height: 100vh;
}

.mute-button {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000;
    color: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    padding: 12px;
    border-radius: 8px;
}

.mute-button:hover {
    color: rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.05);
}

.mute-button.muted .sound-waves {
    display: none;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content {
    text-align: center;
    z-index: 10;
    position: relative;
}

.crash-title {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: normal;
    color: #ffffff;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 1%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-shadow: 3px 3px 0px #ff6600;
    letter-spacing: 0.05em;
    font-family: 'Bangers', cursive;
}

.title {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: bold;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    background: linear-gradient(45deg, #ff6b35, #f7931e, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.5));
    }
    to {
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.8));
    }
}

#wumpa-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    height: 300px;
    z-index: 100;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#wumpa-container:hover {
    transform: scale(1.05);
}

#wumpa-container:active {
    transform: scale(0.95);
}

#canvas-container {
    width: 900px;
    height: 600px;
    max-width: calc(100vw - 40px);
    margin: 3rem auto 0;
    position: relative;
    overflow: visible;
}

#canvas-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.contract-section {
    margin-top: 2rem;
    padding: 0 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

#contract-address {
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    color: #ffffff;
    word-break: break-all;
    padding: 0.5rem 0;
    margin-right: -20px;
    font-weight: bold;
}

#crystal-container {
    width: 120px;
    height: 120px;
    cursor: pointer;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

#crystal-container:hover {
    transform: scale(1.1);
}

#crystal-container:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .title {
        margin-bottom: 1rem;
    }
    
    #canvas-container {
        height: 50vh;
    }
    
    .contract-box {
        flex-direction: column;
        gap: 0.8rem;
    }
}

.decor-element {
    position: fixed;
    z-index: 1;
    pointer-events: auto;
    overflow: hidden;
}

#crate1 { 
    width: 300px;
    height: 300px;
    cursor: pointer;
    bottom: 20px;
    left: 20px;
}

#aku1 {
    width: 400px;
    height: 400px;
    cursor: pointer;
    top: 20px;
    left: 20px;
}

#wumpa-container {
    position: fixed;
    width: 300px;
    height: 300px;
    z-index: 100;
    cursor: pointer;
    top: 20px;
    right: 20px;
}

#gocart1 {
    width: 500px;
    height: 500px;
    bottom: -50px;
    right: -20px;
}

#palm1 {
    display: none;
}

/* Story Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffd700 100%);
    margin: 5% auto;
    padding: 30px;
    border: 5px solid #ff6600;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 0 50px rgba(255, 102, 0, 0.8), inset 0 0 30px rgba(255, 255, 255, 0.2);
    position: relative;
    animation: slideDown 0.4s ease;
    font-family: 'Bangers', cursive;
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    font-family: 'Bangers', cursive;
    font-size: 2.5rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0px #ff6600, -1px -1px 0px #000;
    letter-spacing: 0.05em;
}

.modal-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Courier New', monospace;
}

.close-modal {
    color: #ffffff;
    float: right;
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: #ff6600;
    transform: scale(1.2) rotate(90deg);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 10% auto;
    }
    
    .modal-content h2 {
        font-size: 1.8rem;
    }
    
    .modal-content p {
        font-size: 0.95rem;
    }
}




