:root {
    --md-sys-color-primary: #D0BCFF;
    --md-sys-color-on-primary: #381E72;
    --md-sys-color-primary-container: #4F378B;
    --md-sys-color-on-primary-container: #EADDFF;
    --md-sys-color-secondary: #CCC2DC;
    --md-sys-color-on-secondary: #332D41;
    --md-sys-color-secondary-container: #4A4458;
    --md-sys-color-on-secondary-container: #E8DEF8;
    --md-sys-color-surface: #141218;
    --md-sys-color-on-surface: #E6E1E5;
    --md-sys-color-surface-container: #211F26;
    --md-sys-color-surface-container-high: #2B2930;
    --md-sys-color-outline: #938F99;
    --md-sys-color-outline-variant: #49454F;
    --md-sys-color-error: #F2B8B5;

    --md-sys-typescale-h1-font: 'Roboto', sans-serif;
    --md-sys-typescale-body-large-font: 'Roboto', sans-serif;
}

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

body {
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    font-family: var(--md-sys-typescale-body-large-font);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Background decorative element */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, var(--md-sys-color-primary-container) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, var(--md-sys-color-secondary-container) 0%, transparent 50%);
    opacity: 0.15;
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 600px;
    height: auto;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    background-color: var(--md-sys-color-surface-container);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.container__conteudo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 2rem;
    z-index: 1;
}

.container__informacoes {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--md-sys-color-primary);
    margin-bottom: 0.5rem;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.win-anim {
    animation: scaleUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleUp {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1.05);
    }
}

.container__texto-azul {
    color: var(--md-sys-color-primary);
    font-weight: 900;
}

.texto__paragrafo {
    font-size: 1.5rem;
    color: var(--md-sys-color-on-surface-variant);
    font-weight: 400;
}

/* MD3 Filled Text Field style for Input */
.container__input {
    width: 100%;
    max-width: 320px;
    height: 64px;
    border-radius: 4px 4px 0 0;
    background-color: var(--md-sys-color-surface-container-high);
    border: none;
    border-bottom: 1px solid var(--md-sys-color-outline);
    color: var(--md-sys-color-on-surface);
    padding: 0 1rem;
    font-size: 1.75rem;
    text-align: center;
    transition: all 0.2s ease;
    font-family: inherit;
}

.container__input:focus {
    outline: none;
    border-bottom: 2px solid var(--md-sys-color-primary);
    background-color: var(--md-sys-color-surface-container-high);
}

.container__botoes {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

/* MD3 Button styles */
.container__botao {
    min-width: 160px;
    height: 56px;
    border-radius: 28px;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.1px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: capitalize;
}

/* Primary Filled Button */
.container__botao:not(#reiniciar) {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
}

.container__botao:not(#reiniciar):hover:not(:disabled) {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background-color: #e5d9ff;
}

/* Outlined/Tonal Button for "Novo Jogo" */
#reiniciar {
    background-color: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}

#reiniciar:hover:not(:disabled) {
    background-color: #5b546a;
}

.container__botao:disabled {
    background-color: rgba(230, 225, 229, 0.12);
    color: rgba(230, 225, 229, 0.38);
    cursor: not-allowed;
    box-shadow: none;
    transform: scale(0.98);
    filter: grayscale(0.5);
}

@media screen and (max-width: 600px) {
    .container {
        width: 95%;
        padding: 2rem 1.5rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .container__botao {
        width: 100%;
    }
}