html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #000 0%, #0f3460 50%, #ff00ff 100%);
    color: #00ffff;
    overflow: hidden;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    z-index: 1000;
}

.splash-image {
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.enter-button {
    position: absolute;
    bottom: 50px;
    background: rgba(0, 255, 255, 0.8);
    color: #000;
    border: 2px solid #00ffff;
    padding: 15px 30px;
    font-size: 18px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.enter-button:hover {
    background: #00ffff;
    box-shadow: 0 0 20px #00ffff;
    transform: scale(1.05);
}

/* Game Container */
.game-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

h1 {
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.puzzle {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2px;
    width: 400px;
    height: 400px;
    border: 2px solid #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    background: #000;
    margin-bottom: 20px;
}

.tile {
    background-size: cover;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.tile:hover {
    filter: brightness(1.2);
    border-color: #ff00ff;
    box-shadow: 0 0 10px #ff00ff;
}

.tile.selected {
    border: 3px solid #00ffff;
    box-shadow: 0 0 15px #00ffff;
    filter: brightness(1.3);
}

#message {
    color: #00ffff;
    font-size: 1.2em;
    text-align: center;
    margin-top: 20px;
    text-shadow: 0 0 10px #00ffff;
}

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

.modal.hidden {
    display: none !important;
}

.modal-content {
    background: linear-gradient(135deg, #000 0%, #0f3460 50%, #ff00ff 100%);
    padding: 30px;
    border: 2px solid #00ffff;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.modal-content h2 {
    color: #00ffff;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ffff;
}



.wallet-input {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #00ffff;
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    box-sizing: border-box;
}

.wallet-input::placeholder {
    color: rgba(0, 255, 255, 0.7);
}

.claim-button {
    background: rgba(0, 255, 255, 0.8);
    color: #000;
    border: 2px solid #00ffff;
    padding: 12px 25px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.claim-button:hover {
    background: #00ffff;
    box-shadow: 0 0 15px #00ffff;
}

.claim-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#walletMessage {
    margin-top: 15px;
    font-size: 14px;
    color: #ff00ff;
}

@media (max-width: 480px) {
    .puzzle {
        width: 300px;
        height: 300px;
    }

    .tile {
        background-size: cover;
    }

    h1 {
        font-size: 1.8em;
    }

    .modal {
        padding: 10px;
    }

    .modal-content {
        padding: 20px;
        width: 95%;
        max-width: none;
    }

    .modal-content h2 {
        font-size: 1.5em;
        margin-bottom: 15px;
    }

    .otp-code {
        font-size: 1.2em;
        padding: 12px;
        letter-spacing: 2px;
    }

    .wallet-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}