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

body {
    font-family: system-ui, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    gap: 0.7rem;
}

.game {
    background: #020617;
    padding: 2rem;
    border-radius: 16px;
    width: 320px;
    box-shadow: 0 20px 40px rgba(0,0,0,.4);
}

h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.dice {
    font-size: 5rem;
    text-align: center;
    margin: 1rem 0;
}

.score {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

button {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    border: none;
    background: #38bdf8;
    color: #020617;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.replay-btn {
    display: none;
    background: palevioletred;
    margin-block-start: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.replay-btn:hover {
    background-color: rgb(209, 22, 84);
    transform: scale(1.05);
}

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

.message {
    margin-top: 1rem;
    text-align: center;
    min-height: 1.5em;
}

.footer a {
    color:  hsl(198, 93%, 60%);
    text-underline-offset: 0.35rem;
    text-decoration-thickness: 0.1rem;
}
