* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 0.5rem;
}

.dice {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem 3rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    flex-wrap: wrap;
}

.dice-tas {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: #ffd966;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.dice-tas-active {
    opacity: 1;
    transform: scale(1.1);
}

.button {
    background: #ffd966;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e3c72;
    border-radius: 3rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    max-width: 100%;
    white-space: nowrap;
    height: 150px;
}

.button:hover {
    background: #ffe78c;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 480px) {
    .dice {
        font-size: 6rem;
        padding: 1.5rem 2rem;
        border-radius: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .dice {
        font-size: 4rem;
        padding: 1rem 1.5rem;
        border-radius: 1rem;
    }
    
    .button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
        white-space: normal;
        word-break: keep-all;
    }
}

@media (max-width: 300px) {
    .dice {
        font-size: 2.5rem;
        padding: 0.5rem 0.8rem;
        border-radius: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .button {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
        white-space: normal;
        word-break: break-word;
        width: 100%;
        max-width: 280px;
    }
}