* {
    box-sizing: border-box;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Tela inicial ---------- */

.tela-inicial {
    display: flex;
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 24px;
    background: #1b1b2f;
    color: #f5f5f5;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
}

.escondido {
    display: none !important;
}

.tela-inicial h1 {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.instrucoes {
    line-height: 1.5;
    color: #d0d0e0;
    margin-bottom: 12px;
}

.instrucoes-dica {
    color: #ffd166;
    margin-bottom: 32px;
}

.botao-principal {
    display: block;
    width: 100%;
    padding: 18px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    background: #ff6b6b;
    color: #fff;
    cursor: pointer;
}

.botao-principal:active {
    transform: scale(0.98);
}

/* ---------- Tela do jogo (palco) ---------- */

.palco {
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    overflow: hidden;
}

.conteudo-palco {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease;
}

.conteudo-palco.girado {
    transform: rotate(180deg);
}

.categoria-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: clamp(0.9rem, 2.5vw, 1.4rem);
    opacity: 0.75;
    font-weight: 600;
}

.palavra {
    font-size: clamp(2.5rem, 12vw, 7rem);
    font-weight: 800;
    line-height: 1.1;
    word-break: break-word;
}

.barra-controles {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 10px calc(14px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.35);
    flex-wrap: wrap;
}

.dica-controle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    text-align: center;
    max-width: 320px;
}

#btn-girar {
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    cursor: pointer;
}
