body {
    margin: 0;
    overflow: hidden;
    background: #000;
    font-family: 'Orbitron', sans-serif;
    color: #800080;
}

canvas {
    width: 100vw;
    height: 100vh;
    display: block;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #800080;
    color: #800080;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    z-index: 1000;
    text-decoration: none;
    border-radius: 4px;
    text-shadow: 0 0 10px #800080;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(128, 0, 128, 0.2);
}

.inventory {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #800080;
    border-radius: 15px;
    z-index: 1000;
    text-align: center;
    min-width: 250px;
    box-shadow: 0 0 20px rgba(128, 0, 128, 0.2);
}

.inventory-title {
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #800080;
    letter-spacing: 2px;
}

.crystal-count {
    font-size: 48px;
    font-weight: bold;
    margin: 20px 0;
    text-shadow: 0 0 20px #800080;
    letter-spacing: 3px;
}

.send-button {
    padding: 15px 30px;
    background: rgba(128, 0, 128, 0.2);
    border: 2px solid #800080;
    color: #800080;
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    cursor: pointer;
    border-radius: 8px;
    text-shadow: 0 0 10px #800080;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    width: 100%;
    box-sizing: border-box;
}

.send-button:hover:not(:disabled) {
    background: rgba(128, 0, 128, 0.3);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(128, 0, 128, 0.3);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sending-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    flex-direction: column;
}

.sending-text {
    color: #800080;
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #800080;
}

.twitter-text {
    color: #800080;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-shadow: 0 0 10px #800080;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40%, 60% { content: '..'; }
    80%, 100% { content: '...'; }
}

.sending-text::after {
    content: '';
    animation: dots 1.5s infinite;
}
