:root {
    --cor-1:       #ffffff;
    --cor-2:       #667eea;
    --cor-6:       #764ba2;
    --cor-7:       #174d7f;
    --cor-warning: #ff9800;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html, body {
    overflow: hidden;
    position: fixed;
    inset: 0;
}

body {
    font-family: Arial, sans-serif;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--cor-1);
    background-color: var(--cor-7);
    background-image: url('/imagens/blue-and-white.webp');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.container {
    width: 100%;
    min-height: 100dvh;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.screen {
    display: none;
    width: 100%;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.screen.active { display: flex; }

.btn {
    color: var(--cor-1);
    border: 2px solid var(--cor-1);
    background: transparent;
    padding: 20px 40px;
    font-size: 2rem;
    border-radius: 40px;
    cursor: pointer;
    margin: 15px;
    width: 100%;
    max-width: 700px;
    min-height: 120px;
    letter-spacing: 1px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover  { transform: translateY(-3px); background: rgba(255,255,255,.08); }
.btn:active { transform: translateY(-1px); background: rgba(255,255,255,.15); }

#screen3 h1 { font-size: 2.5rem; margin-bottom: 20px; }
#screen3 p  { font-size: 1.1rem; margin-top: 1.5rem; opacity: .85; }

.timer-container {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timer {
    width: 90px;
    height: 90px;
    font-size: 3rem;
    line-height: 1;
    border: 2px solid var(--cor-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img img { max-height: 80px; }

#loading-overlay {
    position: fixed;
    inset: 0;
    backdrop-filter: blur(6px);
    background: rgba(0,0,0,.45);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
}

.offline-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--cor-7), var(--cor-6));
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.offline-content {
    text-align: center;
    padding: 48px 40px;
    background: rgba(255,255,255,.1);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

.offline-icon    { font-size: 4rem; display: block; margin-bottom: 16px; }
.offline-content h2 { font-size: 2.5rem; color: var(--cor-warning); margin-bottom: 12px; }
.offline-content p  { font-size: 1.3rem; opacity: .9; margin-bottom: 24px; }

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,.3);
    border-top-color: var(--cor-1);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 700px) {
    .container { padding: 20px; }
    .btn { font-size: 1.5rem; border-radius: 20px; min-height: 80px; max-width: 70dvw; padding: 10px 20px; margin: 10px; }
    .loading-spinner { width: 40px; height: 40px; }
}

@media (max-height: 600px) {
    .btn { min-height: 60px; max-width: 45%; font-size: 1.25rem; margin: .3rem; }
    #screen2 { flex-direction: row; flex-wrap: wrap; }
}
