.bg {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    z-index: -1;
    overflow: hidden;
    background: #fafafa;
}

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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    user-select: none
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 380px;
    height: 420px;
    padding: 25px;
    background-color: #f2f2f2;
    border-radius: 20px;
    box-shadow: 12px 12px 16px #bfbfbf,
        -12px -12px 16px #ffffff;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.card:hover,
.card:focus-visible {
    box-shadow:
        inset 4px 4px 8px #bfbfbf,
        inset -4px -4px 8px #ffffff;

    background: #f2f2f2;
    filter: none;
}

.timer-title {
    color: #541e1e;
    margin-bottom: 2px;
    font-size: 20px;
    font-family: "Chonburi", sans-serif;
    text-align: center;
}

.timer {
    position: relative;
    width: 100%;
    max-width: 260px;
    margin: 20px auto 20px;
}

.timer-content {
    display: flex;
    flex-direction: column;
    align-items: center;

    color: #541e1e;
    font-family: "Domine", serif;
}

#timer-time {
    margin-top: 5px;

    font-size: 45px;
    font-weight: 300;
}

.timer-content span {
    margin-top: 10px;
    font-size: 18px;
}

#timer-play {
    width: 58px;
    height: 58px;

    margin-top: 15px;

    border: none;
    border-radius: 50%;

    font-size: 20px;
    color: #541e1e;

    cursor: default;

    background: #f0f0f0;

    box-shadow:
        -8px -8px 16px white,
        8px 8px 16px rgba(163, 177, 198, .45);
}

#timer-play:active {
    box-shadow:
        inset -5px -5px 10px white,
        inset 5px 5px 10px rgba(163, 177, 198, .35);
}

.progress-wrapper {
    width: 100%;
    margin-top: 40px;
}

.progress-bar {
    position: relative;

    width: 100%;
    height: 12px;

    border-radius: 10px;

    background: #e1e1e1;

    box-shadow:
        inset 3px 3px 6px rgba(191, 191, 191, .65),
        inset -3px -3px 6px #ffffff;
}

.progress-bar-fill {
    position: relative;

    width: 0%;
    height: 100%;

    border-radius: 10px;

    background: #541e1e;

    box-shadow:
        0 2px 5px rgba(84, 30, 30, .25);

    transition: width .2s linear;
}

.progress-bar-fill::after {
    content: "";

    position: absolute;

    right: -8px;
    top: 50%;

    width: 14px;
    height: 14px;

    transform: translateY(-50%);

    border-radius: 50%;

    background: #541e1e;

    box-shadow:
        -3px -3px 6px #ffffff,
        3px 3px 6px rgba(163, 177, 198, .45);
}

.progress-labels {
    display: flex;
    justify-content: space-between;

    margin-top: 7px;

    font-family: "Domine", serif;
    font-size: 9px;

    color: #541e1e;
}

.reset {
    width: 80%;
    height: 40px;
    display: block;
    align-self: center;
    border: none;
    padding: 12px;
    border-radius: 20px;
    cursor: default;
    background: #f0f0f0;
    box-shadow:
        -8px -8px 15px white,
        8px 8px 15px rgba(163, 177, 198, .35);

    font-family: "Domine", serif;
    font-size: 16px;
    color: #541e1e;
    text-align: center;
}

.reset:active {
    box-shadow:
        inset -5px -5px 10px white,
        inset 5px 5px 10px rgba(163, 177, 198, .35);
}

footer {
    margin-bottom: 10px;
    font-family: "Domine", serif;
    color: #541e1e;
    line-height: 1;
    font-size: 0.7em;
    position: fixed;
    bottom: 0;
    height: 30px;
    width: 100%;
    text-align: center;
    padding: 10px 0;
}

.botao-flutuante {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.botao-flutuante .lista {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

.botao-flutuante .lista.aberto {
    display: flex;
}

.icon {
    color: #541e1e;
}

.item {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
    background-color: rgba(242, 242, 242, 0.95);
    box-shadow: -8px -8px 15px white, 8px 8px 15px rgba(163, 177, 198, .35);
    padding: 12px 15px;
    border-radius: 5px;
}

a {
    text-decoration: none;
    color: #541e1e;
    font-family: "Domine", serif;
}

.botao {
    display: flex;
}

button {
    border: none;
    cursor: pointer;
    border-radius: 30px;
    background: #f2f2f2;
    box-shadow: -8px -8px 15px white, 8px 8px 15px rgba(163, 177, 198, .35);
    transition: filter 0.8s ease, transform 0.2s ease;
    position: relative;
    padding: 5px;
}

button .icon {
    padding: 3px;
    display: flex;
    align-items: center;
}

#butao:active {
    box-shadow: inset -5px -5px 10px white, inset 5px 5px 10px rgba(163, 177, 198, .35);
}

/* ---------------- BLOQUEIO DE ACESSO ---------------- */

.bloqueio-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(242, 242, 242, 0.65);
    backdrop-filter: blur(8px);
}

.bloqueio-card {
    width: 50%;
    max-width: 420px;
    min-width: 300px;

    padding: 35px 30px;

    background: #f2f2f2;
    border-radius: 20px;

    box-shadow:
        12px 12px 20px #bfbfbf,
        -12px -12px 20px #ffffff;

    text-align: center;
    color: #541e1e;
    font-family: "Domine", serif;
}

.bloqueio-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.bloqueio-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.bloqueio-card p {
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 1.5;
}

.bloqueio-card label {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    text-align: left;
}

#codigoAcesso {
    width: 100%;
    padding: 12px;

    border: none;
    border-radius: 8px;

    background: #eeeeee;

    color: #541e1e;
    font-family: "Domine", serif;
    font-size: 13px;

    outline: none;

    box-shadow:
        inset 3px 3px 6px #cfcfcf,
        inset -3px -3px 6px #ffffff;
}

#codigoAcesso:focus {
    box-shadow:
        inset 3px 3px 6px #cfcfcf,
        inset -3px -3px 6px #ffffff,
        0 0 0 2px rgba(84, 30, 30, 0.15);
}

#btnDesbloquear {
    margin-top: 18px;

    padding: 11px 22px;

    border-radius: 8px;

    background: #f2f2f2;
    color: #541e1e;

    font-family: "Domine", serif;
    font-size: 12px;

    box-shadow:
        -5px -5px 10px #ffffff,
        5px 5px 10px rgba(163, 177, 198, 0.35);
}

#btnDesbloquear:active {
    box-shadow:
        inset -3px -3px 6px #ffffff,
        inset 3px 3px 6px rgba(163, 177, 198, 0.35);
}

.mensagem-acesso {
    min-height: 18px;
    margin-top: 14px !important;
    margin-bottom: 0 !important;

    font-size: 11px !important;
}