/* Touch controls and feedback also apply to tablets and touch laptops. */
input[type=text], select, button { font-family: 'Inter', Arial, sans-serif; }
h1, .card h2, .placar-grande, .crono { font-family: 'Montserrat', Arial, sans-serif; }
button, .doc-button, summary { touch-action: manipulation; }
button:disabled { opacity: .5; cursor: wait; }
button:focus-visible, summary:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.time-identidade summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.aviso { position: fixed; bottom: max(16px, env(safe-area-inset-bottom)); left: 12px; right: 12px; z-index: 100; margin: 0 auto; max-width: 600px; box-shadow: 0 4px 24px #000b; }
.aviso.ok { background: #163b21; }
.aviso.err { background: #461515; color: #fff; }
@media (pointer: coarse), (max-width: 900px) {
    button, .doc-button, summary { min-height: 48px; }
    input[type=text], input[type=number], select { min-height: 48px; font-size: 16px; }
    .toggle-row { min-height: 56px; gap: 12px; }
    .switch { width: 50px; height: 44px; }
    .slider { inset: 8px 0; }
    .slider::before { width: 22px; height: 22px; }
    .switch input:checked + .slider::before { transform: translateX(22px); }
    .switch input:focus-visible + .slider { outline: 2px solid white; }
    .uniforme-controles input[type=color] { height: 48px; }
    button:hover { transform: none; }
    .patrocinadores-info summary { width: 48px; height: 48px; }
    .patrocinadores-info .info-conteudo { top: 52px; }
}
@media (max-width: 640px) {
    body { padding: 12px 12px calc(100px + env(safe-area-inset-bottom)); }
    h1 { font-size: 18px; }
    .header-title { gap: 8px; }
    .header-title h1 { width: 100%; }
    .status { flex: 1; }
    .painel-layout { display: flex; flex-direction: column; }
    .times-group, .controle-group { display: contents; }
    .painel-layout .card, .monitor-group { width: 100%; }
    .time-card { order: -3; }
    .controle-group > .card { order: -2; }
    .monitor-group { order: 1; }
    .placar-grande { font-size: 40px; }
    .time-card .btn-gol { flex: 2; font-size: 18px; }
    .btn-row > button { flex-grow: 1; }
}
