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

body {
    font-family: "Arial", sans-serif;
    background: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.05vh 0;
    overflow: hidden;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.banner-content {
    display: flex;
    white-space: nowrap;
    animation: scroll-banner 20s linear infinite;
}

.banner-content span {
    color: white;
    font-size: 2.5vmin;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0 5vw;
}

@keyframes scroll-banner {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.container {
    text-align: center;
    padding: 20px;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.magic-8-ball {
    margin-bottom: 3vh;
    perspective: 1500px;
    perspective-origin: center center;
    width: 75vmin;
    height: 75vmin;
}

.ball {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: none;
}

.ball.flipped {
    animation: spin-ball 2s ease-in-out forwards;
}

@keyframes spin-ball {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(180deg);
    }
}

.ball-front,
.ball-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at 36% 36%, #333, #000);
    box-shadow:
        0 0 60px rgba(255, 255, 255, 0.3),
        0 0 120px rgba(255, 255, 255, 0.15),
        inset -15px -15px 30px rgba(0, 0, 0, 0.5),
        inset 15px 15px 30px rgba(255, 255, 255, 0.1);
}

.ball-back {
    transform: rotateY(180deg);
    overflow: hidden;
}

.ball:hover {
    transform: scale(1.05);
}

.ball.flipped:hover {
    transform: rotateY(180deg) scale(1.05);
}

.eight-circle {
    width: 40%;
    height: 40%;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.eight-number {
    font-size: 20vmin;
    font-weight: bold;
    color: #000;
    font-family: Arial, sans-serif;
}

.window {
    width: 50%;
    height: 50%;
    background: #0a0a1f;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.9);
    position: relative;
    overflow: hidden;
}

.window::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle,
        rgba(100, 150, 200, 0.4) 0%,
        transparent 70%
    );
    opacity: 0;
    animation: none;
}

.window.fog-effect::before {
    animation: fog 2s ease-out forwards;
}

@keyframes fog {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
    100% {
        opacity: 0;
        transform: scale(2);
    }
}

.triangle {
    width: 0;
    height: 0;
    border-left: 12vmin solid transparent;
    border-right: 12vmin solid transparent;
    border-bottom: 20.8vmin solid #0f3460;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 15px rgba(15, 52, 96, 0.7));
    opacity: 0;
    transform: scale(0.3);
    transition: none;
}

.triangle.emerge {
    animation: emerge 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes emerge {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(30px);
    }
    60% {
        opacity: 0.8;
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.answer {
    position: absolute;
    top: 10.7vmin;
    left: 50%;
    transform: translateX(-50%);
    width: 12vmin;
    color: white;
    font-size: 1.4vmin;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    opacity: 0;
    line-height: 1.4;
    letter-spacing: 0.5px;
    word-break: keep-all;
    overflow-wrap: normal;
}

.answer.show {
    animation: fadeInAnswer 0.8s ease-out forwards;
    animation-delay: 1.5s;
}

@keyframes fadeInAnswer {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.roll-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 2.5vmin 6vmin;
    font-size: 3vmin;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.roll-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.roll-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.roll-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.share-button {
    background: #1da1f2;
    color: white;
    border: none;
    padding: 2vmin 5vmin;
    font-size: 2.5vmin;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2vh;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(29, 161, 242, 0.4);
    background: #1a8cd8;
}

.share-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(29, 161, 242, 0.3);
}

@keyframes shake {
    0%,
    100% {
        transform: rotateZ(0deg);
    }
    10% {
        transform: rotateZ(-10deg);
    }
    20% {
        transform: rotateZ(10deg);
    }
    30% {
        transform: rotateZ(-10deg);
    }
    40% {
        transform: rotateZ(10deg);
    }
    50% {
        transform: rotateZ(-10deg);
    }
    60% {
        transform: rotateZ(10deg);
    }
    70% {
        transform: rotateZ(-10deg);
    }
    80% {
        transform: rotateZ(10deg);
    }
    90% {
        transform: rotateZ(-5deg);
    }
}

.ball.shaking {
    animation: shake 1s ease-in-out;
}

.ball.shaking.flipped {
    animation: shake 1s ease-in-out;
}

.social-section {
    position: fixed;
    bottom: 3vh;
    left: 3vh;
    display: flex;
    flex-direction: column;
    gap: 2vh;
    z-index: 1000;
}

.social-icon {
    width: 6vmin;
    height: 6vmin;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.social-icon svg {
    width: 60%;
    height: 60%;
}

.twitter-icon:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.token-icon:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}
