* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    background: radial-gradient(circle at top, #1e1b4b, #020617);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

/* Main card */
.game-card {
    width: 90%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    padding: 32px;
    border-radius: 26px;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

/* Title */
.game-card h1 {
    font-size: 30px;
    margin-bottom: 8px;
}

.game-card p {
    opacity: 0.85;
    margin-bottom: 22px;
}

/* Button */
button {
    background: linear-gradient(135deg, #22c55e, #4ade80);
    border: none;
    padding: 14px 26px;
    font-size: 16px;
    font-weight: 600;
    color: #022c22;
    border-radius: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

button:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.6);
}

/* Output */
.output {
    margin-top: 26px;
    font-size: 20px;
    min-height: 40px;
    animation: fadeIn 0.4s ease;
}

/* Dice number */
.dice {
    font-size: 48px;
    display: inline-block;
    animation: roll 0.4s ease;
}

/* Animations */
@keyframes roll {
    0% { transform: rotate(0deg) scale(0.6); opacity: 0; }
    100% { transform: rotate(360deg) scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}