:root {
    --verde: #06A02E;
    --verde-escuro: #00802A;
    --laranja: #FF9F1E;
    --texto: #263238;
    --muted: #67737A;
    --fundo: #FFFFFF;
    --bege: #F6F1E8;
    --linha: #E9E3D8;
    --sombra: 0 12px 30px rgba(0, 0, 0, .08);
}

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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--fundo);
    color: var(--texto);
}

a { color: inherit; text-decoration: none; }

main {
    width: min(1180px, 92%);
    margin: 0 auto;
}

.site-header {
    background: var(--verde);
    color: white;
}

.header-inner {
    width: min(1180px, 92%);
    min-height: 92px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.school-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.school-logo {
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.school-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.school-brand span, .school-brand small {
    display: block;
    font-weight: 700;
    font-size: .82rem;
    opacity: .9;
    text-transform: uppercase;
}

.school-brand strong {
    display: block;
    font-size: 1.75rem;
    line-height: 1;
    text-transform: uppercase;
}

.nav {
    display: flex;
    gap: 22px;
    align-items: center;
    font-weight: 800;
    text-transform: uppercase;
    font-size: .86rem;
    flex-wrap: wrap;
}

.nav a {
    border-bottom: 3px solid transparent;
    padding-bottom: 6px;
}

.nav a:hover { border-color: var(--laranja); }

.login-link {
    background: var(--laranja);
    padding: 10px 14px !important;
    border-radius: 4px;
    border: none !important;
    color: white;
}

.menu-button {
    display: none;
    border: 0;
    background: white;
    color: var(--verde);
    font-size: 1.4rem;
    padding: 8px 12px;
    border-radius: 8px;
}

.hero-school {
    margin: 0 calc(50% - 50vw);
    min-height: 540px;
    background:
        linear-gradient(90deg, rgba(0, 128, 42, .94), rgba(0, 128, 42, .74), rgba(255, 159, 30, .78)),
        url("../img/banner-interclasse.jpg");
    background-size: cover;
    background-position: center;
    display: grid;
    align-items: center;
}

.hero-overlay {
    width: min(1180px, 92%);
    margin: 0 auto;
    color: white;
}

.eyebrow {
    color: var(--verde);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.eyebrow.white {
    color: white;
    background: var(--laranja);
    display: inline-block;
    padding: 8px 14px;
    border-radius: 4px;
}

.eyebrow.orange { color: var(--laranja); }

.hero-overlay h1 {
    font-size: clamp(3rem, 8vw, 6.6rem);
    line-height: .92;
    margin: 18px 0;
    max-width: 760px;
}

.hero-overlay p {
    font-size: 1.25rem;
    max-width: 620px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    padding: 14px 20px;
    border-radius: 4px;
    font-weight: 900;
    text-transform: uppercase;
    border: 0;
    cursor: pointer;
    display: inline-block;
    font-size: .9rem;
}

.btn.primary {
    background: var(--laranja);
    color: white;
}

.btn.outline {
    background: white;
    color: var(--verde);
}

.quick-area {
    margin-top: -52px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    position: relative;
    z-index: 2;
}

.quick-area.admin-quick {
    margin-top: 0;
    grid-template-columns: repeat(4, 1fr);
}

.quick-card {
    background: white;
    padding: 28px;
    border-radius: 6px;
    box-shadow: var(--sombra);
    border-bottom: 6px solid var(--verde);
    transition: .2s;
}

.quick-card:hover {
    transform: translateY(-5px);
    border-color: var(--laranja);
}

.quick-card span { font-size: 2.2rem; }

.quick-card strong {
    display: block;
    margin: 14px 0 8px;
    font-size: 1.25rem;
    color: var(--verde);
    text-transform: uppercase;
}

.quick-card p {
    color: var(--muted);
    line-height: 1.5;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 26px;
    margin: 54px 0;
}

.content-grid.admin-grid {
    grid-template-columns: 1fr 1fr;
}

.panel {
    background: white;
    border: 1px solid var(--linha);
    border-radius: 6px;
    box-shadow: var(--sombra);
    padding: 28px;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 12px;
}

.panel-title h2 {
    color: var(--verde);
    font-size: 1.65rem;
    text-transform: uppercase;
}

.panel-title a {
    color: var(--laranja);
    font-weight: 900;
}

.mini-list {
    display: grid;
    gap: 14px;
}

.mini-match {
    border-left: 6px solid var(--laranja);
    background: var(--bege);
    padding: 16px;
    border-radius: 4px;
}

.mini-match span, .modality {
    color: var(--verde);
    font-weight: 900;
    text-transform: uppercase;
    font-size: .82rem;
}

.mini-match strong {
    display: block;
    margin: 8px 0;
    font-size: 1.08rem;
}

.mini-match small { color: var(--muted); }

.big-result { text-align: center; }

.big-result strong {
    display: block;
    font-size: 1.1rem;
}

.big-result div {
    color: var(--laranja);
    font-size: 3.4rem;
    font-weight: 900;
    margin: 18px 0;
}

.big-result small {
    color: var(--muted);
    font-weight: 700;
}

.page-title {
    padding: 56px 0 26px;
}

.page-title h1 {
    color: var(--verde);
    font-size: clamp(2.2rem, 5vw, 4rem);
    text-transform: uppercase;
    margin: 8px 0;
}

.page-title p:last-child {
    color: var(--muted);
    font-size: 1.1rem;
}

.tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 26px;
}

.tabs a {
    padding: 12px 18px;
    border-radius: 4px;
    border: 2px solid var(--verde);
    color: var(--verde);
    font-weight: 900;
    text-transform: uppercase;
}

.tabs a.active, .tabs a:hover {
    background: var(--verde);
    color: white;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 52px;
}

.team-card {
    background: white;
    border: 1px solid var(--linha);
    box-shadow: var(--sombra);
    border-radius: 6px;
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: center;
    border-top: 6px solid var(--verde);
    transition: .2s;
}

.team-card:hover {
    transform: translateY(-4px);
    border-top-color: var(--laranja);
}

.team-card img {
    width: 82px;
    height: 82px;
    object-fit: contain;
    background: var(--bege);
    border-radius: 4px;
    padding: 8px;
}

.team-card span, .team-card small {
    color: var(--laranja);
    font-weight: 900;
    text-transform: uppercase;
    font-size: .8rem;
}

.team-card h3 {
    color: var(--verde);
    margin: 6px 0;
    font-size: 1.3rem;
}

.team-card p {
    color: var(--muted);
    margin-bottom: 6px;
}

.team-banner {
    margin: 42px 0 28px;
    color: white;
    border-radius: 6px;
    padding: 34px;
    display: flex;
    align-items: center;
    gap: 24px;
    background-image: linear-gradient(90deg, var(--verde), var(--verde-escuro));
}

.team-banner img {
    width: 130px;
    height: 130px;
    object-fit: contain;
    background: white;
    border-radius: 6px;
    padding: 10px;
}

.team-banner h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
}

.players-list {
    display: grid;
    gap: 14px;
}

.player-row {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 18px;
    align-items: center;
    background: var(--bege);
    border-left: 6px solid var(--verde);
    border-radius: 4px;
    padding: 14px;
}

.player-row img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 6px;
    background: white;
}

.player-main span {
    color: var(--laranja);
    font-weight: 900;
    text-transform: uppercase;
    font-size: .82rem;
}

.player-main h3 {
    color: var(--verde);
    margin: 6px 0;
    font-size: 1.3rem;
}

.player-main p { color: var(--muted); }

.player-stats {
    display: flex;
    gap: 12px;
}

.player-stats div {
    background: white;
    border-radius: 4px;
    padding: 12px 16px;
    text-align: center;
    min-width: 84px;
}

.player-stats strong {
    display: block;
    color: var(--laranja);
    font-size: 1.4rem;
}

.player-stats span {
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.matches-table {
    display: grid;
    gap: 12px;
}

.match-row {
    display: grid;
    grid-template-columns: .9fr 1.4fr .45fr;
    gap: 20px;
    align-items: center;
    padding: 18px;
    background: var(--bege);
    border-radius: 4px;
    border-left: 6px solid var(--verde);
}

.match-row small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.match-score {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    text-align: center;
}

.match-score b {
    color: var(--laranja);
    font-size: 1.8rem;
}

.status {
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    font-weight: 900;
    background: white;
    color: var(--verde);
}

.status.ao-vivo { color: var(--laranja); }

.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 860px;
}

th {
    background: var(--verde);
    color: white;
    text-transform: uppercase;
    font-size: .84rem;
}

th, td {
    padding: 14px;
    border-bottom: 1px solid var(--linha);
    text-align: left;
}

tr:nth-child(even) { background: var(--bege); }

.form-grid {
    display: grid;
    gap: 16px;
}

.form-grid label {
    display: grid;
    gap: 8px;
    color: var(--verde);
    font-weight: 900;
    text-transform: uppercase;
    font-size: .86rem;
}

input, select {
    width: 100%;
    padding: 13px;
    border: 1px solid var(--linha);
    border-radius: 4px;
    font-size: 1rem;
    background: white;
    color: var(--texto);
}

.alert {
    background: #eaffef;
    border-left: 6px solid var(--verde);
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 800;
    color: var(--verde);
}

.empty { color: var(--muted); }

footer {
    background: var(--verde);
    color: white;
    text-align: center;
    padding: 22px;
    margin-top: 40px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .header-inner {
        min-height: 92px;
        padding: 16px 0;
        align-items: flex-start;
    }

    .school-brand strong { font-size: 1.2rem; }

    .menu-button { display: block; }

    .nav {
        display: none;
        position: absolute;
        top: 92px;
        left: 0;
        right: 0;
        background: var(--verde);
        flex-direction: column;
        padding: 20px;
        gap: 18px;
        z-index: 99;
    }

    .nav.active { display: flex; }

    .quick-area,
    .quick-area.admin-quick,
    .content-grid,
    .content-grid.admin-grid,
    .teams-grid,
    .match-row,
    .match-score,
    .player-row {
        grid-template-columns: 1fr;
    }

    .quick-area { margin-top: 24px; }

    .hero-school { min-height: 440px; }

    .team-banner {
        flex-direction: column;
        text-align: center;
    }

    .player-stats {
        width: 100%;
    }

    .player-stats div {
        flex: 1;
    }
}


.login-area {
    min-height: calc(100vh - 140px);
    display: grid;
    place-items: center;
    padding: 54px 0;
}

.login-card {
    width: min(460px, 100%);
    background: white;
    border: 1px solid var(--linha);
    box-shadow: var(--sombra);
    border-top: 8px solid var(--verde);
    border-radius: 6px;
    padding: 34px;
}

.login-card h1 {
    color: var(--verde);
    text-transform: uppercase;
    margin: 8px 0 10px;
    font-size: 2.2rem;
}

.login-text {
    color: var(--muted);
    line-height: 1.5;
    margin-bottom: 22px;
}

.login-help {
    margin-top: 18px;
    background: var(--bege);
    border-left: 5px solid var(--laranja);
    padding: 14px;
    border-radius: 4px;
    color: var(--texto);
    line-height: 1.5;
}

.alert.error {
    background: #fff1f1;
    color: #b42318;
    border-left-color: #b42318;
}


.filter-form {
    display: grid;
    grid-template-columns: 220px 1fr auto auto;
    gap: 14px;
    align-items: end;
}

.filter-form label {
    display: grid;
    gap: 8px;
    color: var(--verde);
    font-weight: 900;
    text-transform: uppercase;
    font-size: .86rem;
}

.btn.light {
    background: var(--bege);
    color: var(--verde);
}

.btn.small {
    padding: 10px 13px;
    font-size: .78rem;
}

.btn.edit {
    background: var(--verde);
    color: white;
}

.btn.danger {
    background: #d92d20;
    color: white;
}

.admin-list {
    display: grid;
    gap: 14px;
}

.admin-player-row {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    gap: 16px;
    align-items: center;
    background: var(--bege);
    border-left: 6px solid var(--verde);
    border-radius: 4px;
    padding: 14px;
}

.admin-player-row img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    border-radius: 6px;
    background: white;
}

.admin-player-row span {
    color: var(--laranja);
    font-weight: 900;
    text-transform: uppercase;
    font-size: .78rem;
}

.admin-player-row h3 {
    color: var(--verde);
    margin: 6px 0;
}

.admin-player-row p {
    color: var(--muted);
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.current-photo img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    background: var(--bege);
    border: 1px solid var(--linha);
}

.admin-player-preview {
    text-align: center;
    background: var(--bege);
    border-radius: 6px;
    padding: 24px;
}

.admin-player-preview img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    background: white;
    margin-bottom: 16px;
}

.admin-player-preview h3 {
    color: var(--verde);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.admin-player-preview p {
    color: var(--muted);
    margin-bottom: 8px;
}

.admin-player-preview span {
    color: var(--laranja);
    font-weight: 900;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .filter-form,
    .admin-player-row {
        grid-template-columns: 1fr;
    }

    .actions {
        width: 100%;
    }

    .actions .btn {
        flex: 1;
        text-align: center;
    }
}


/* Página de artilharia */
.scorers-list {
    display: grid;
    gap: 14px;
}

.scorer-row {
    display: grid;
    grid-template-columns: 64px 82px 1fr 120px;
    gap: 18px;
    align-items: center;
    background: var(--bege);
    border-left: 6px solid var(--verde);
    border-radius: 4px;
    padding: 16px;
}

.scorer-row.leader {
    border-left-color: var(--laranja);
    background: #fff8ed;
}

.scorer-position {
    width: 52px;
    height: 52px;
    background: var(--verde);
    color: white;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1.1rem;
}

.scorer-row.leader .scorer-position {
    background: var(--laranja);
}

.scorer-row img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 6px;
    background: white;
}

.scorer-info span {
    color: var(--laranja);
    font-weight: 900;
    text-transform: uppercase;
    font-size: .78rem;
}

.scorer-info h3 {
    color: var(--verde);
    margin: 6px 0;
    font-size: 1.35rem;
}

.scorer-info p {
    color: var(--muted);
}

.scorer-goals {
    background: white;
    border-radius: 4px;
    padding: 14px;
    text-align: center;
}

.scorer-goals strong {
    display: block;
    color: var(--laranja);
    font-size: 2rem;
    line-height: 1;
}

.scorer-goals span {
    color: var(--muted);
    font-weight: 900;
    text-transform: uppercase;
    font-size: .78rem;
}

@media (max-width: 800px) {
    .scorer-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .scorer-position,
    .scorer-row img {
        margin: 0 auto;
    }
}

/* =========================================================
   RESPONSIVIDADE GLOBAL - INTERCLASSE
   Cole esta parte no FINAL do seu style.css
   ========================================================= */

html, body {
    width: 100%;
    max-width: 100%;
    /* clip recorta o excesso horizontal SEM criar container de scroll.
       Evita o bug do iOS em que overflow-x:hidden trava o scroll vertical
       e ainda preserva o position: sticky do header. */
    overflow-x: clip;
}

/* Garante que a pagina sempre possa rolar na vertical */
html {
    height: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}

img, video, iframe {
    max-width: 100%;
}

button, input, select, textarea {
    max-width: 100%;
}

@media (max-width: 1200px) {
    main,
    .header-inner,
    .hero-overlay {
        width: min(1000px, 94%);
    }

    .nav {
        gap: 14px;
        font-size: .78rem;
    }

    .quick-area.admin-quick {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    main,
    .header-inner,
    .hero-overlay {
        width: 92%;
    }

    .header-inner {
        position: relative;
        min-height: auto;
        padding: 16px 0;
    }

    .school-logo {
        width: 78px;
        height: 78px;
    }

    .school-brand {
        gap: 10px;
        max-width: calc(100% - 64px);
    }

    .school-brand strong {
        font-size: 1.25rem;
        line-height: 1.05;
    }

    .school-brand span,
    .school-brand small {
        font-size: .7rem;
    }

    .menu-button {
        display: block;
        flex-shrink: 0;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--verde);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px;
        z-index: 999;
        box-shadow: 0 14px 30px rgba(0,0,0,.16);
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        padding: 14px;
        border-bottom: 1px solid rgba(255,255,255,.18);
    }

    .login-link {
        text-align: center;
        margin-top: 8px;
    }

    .hero-school {
        min-height: 430px;
        background-position: center;
    }

    .hero-overlay h1 {
        font-size: clamp(2.4rem, 10vw, 4.8rem);
    }

    .hero-overlay p {
        font-size: 1.05rem;
    }

    .quick-area,
    .quick-area.admin-quick {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 24px;
    }

    .content-grid,
    .content-grid.admin-grid {
        grid-template-columns: 1fr;
        margin: 34px 0;
    }

    .teams-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .panel {
        padding: 22px;
    }

    .filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .match-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .match-score {
        grid-template-columns: 1fr auto 1fr;
    }

    .player-row,
    .admin-player-row {
        grid-template-columns: 82px 1fr;
    }

    .player-stats,
    .actions {
        grid-column: 1 / -1;
        width: 100%;
        justify-content: stretch;
    }

    .player-stats div,
    .actions .btn {
        flex: 1;
    }

    .team-banner {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    main {
        width: 92%;
    }

    .hero-school {
        min-height: 380px;
        text-align: left;
    }

    .hero-overlay h1 {
        font-size: clamp(2.2rem, 13vw, 3.8rem);
        line-height: 1;
    }

    .hero-overlay p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .quick-area,
    .quick-area.admin-quick,
    .teams-grid {
        grid-template-columns: 1fr;
    }

    .quick-card {
        padding: 22px;
    }

    .page-title {
        padding: 34px 0 20px;
    }

    .page-title h1 {
        font-size: clamp(1.9rem, 10vw, 3rem);
        overflow-wrap: anywhere;
    }

    .page-title p:last-child {
        font-size: 1rem;
    }

    .panel-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .panel-title h2 {
        font-size: 1.35rem;
    }

    .tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .tabs a {
        text-align: center;
        padding: 11px;
        font-size: .78rem;
    }

    .team-card {
        align-items: flex-start;
    }

    .team-banner {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 24px;
    }

    .team-banner img {
        width: 110px;
        height: 110px;
    }

    .team-banner h1 {
        font-size: 2rem;
    }

    .player-row,
    .admin-player-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .player-row img,
    .admin-player-row img {
        margin: 0 auto;
    }

    .player-stats,
    .actions {
        flex-direction: column;
    }

    .match-score {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .match-score b {
        font-size: 1.6rem;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }

    table {
        min-width: 760px;
        font-size: .86rem;
    }

    th, td {
        padding: 12px;
    }

    .login-area {
        padding: 32px 0;
    }

    .login-card {
        padding: 24px;
    }

    .login-card h1 {
        font-size: 1.8rem;
    }

    .scorer-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .scorer-position,
    .scorer-row img {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    main,
    .header-inner,
    .hero-overlay {
        width: 94%;
    }

    .site-header {
        position: relative;
    }

    .school-logo {
        width: 62px;
        height: 62px;
    }

    .school-brand {
        gap: 8px;
    }

    .school-brand strong {
        font-size: 1rem;
    }

    .school-brand span,
    .school-brand small {
        font-size: .62rem;
    }

    .menu-button {
        font-size: 1.1rem;
        padding: 7px 10px;
    }

    .hero-school {
        min-height: 340px;
    }

    .eyebrow.white {
        font-size: .72rem;
        padding: 7px 10px;
    }

    .hero-overlay h1 {
        font-size: clamp(2rem, 15vw, 3rem);
    }

    .hero-overlay p {
        font-size: .95rem;
    }

    .quick-card,
    .panel {
        padding: 18px;
    }

    .quick-card strong {
        font-size: 1.05rem;
    }

    .page-title h1 {
        font-size: 2rem;
    }

    .tabs {
        grid-template-columns: 1fr;
    }

    .team-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .team-card img {
        width: 96px;
        height: 96px;
    }

    .player-stats div {
        min-width: unset;
    }

    .big-result div {
        font-size: 2.5rem;
    }

    .current-photo img,
    .admin-player-preview img {
        width: 130px;
        height: 130px;
    }

    .scorer-goals strong {
        font-size: 1.7rem;
    }

    footer {
        font-size: .85rem;
        padding: 18px 12px;
    }
}

@media (max-width: 360px) {
    .school-brand strong {
        font-size: .88rem;
    }

    .school-logo {
        width: 54px;
        height: 54px;
    }

    .hero-overlay h1,
    .page-title h1 {
        word-break: break-word;
    }

    .btn {
        padding: 12px 14px;
        font-size: .78rem;
    }
}

/* =========================================================
   PEGADA DE APP NATIVO - MOBILE / TABLET
   (barra inferior, safe-areas, header fixo, toque)
   Cole no FINAL do style.css
   ========================================================= */

/* A barra inferior so aparece em telas pequenas */
.app-tabbar { display: none; }

@media (max-width: 992px) {

    /* --- Sensacao de toque nativo --- */
    * { -webkit-tap-highlight-color: transparent; }

    body {
        -webkit-text-size-adjust: 100%;
        overscroll-behavior-x: none;
    }

    a, button, .quick-card, .team-card, .tabs a, .btn {
        touch-action: manipulation;
    }

    .table-wrap {
        -webkit-overflow-scrolling: touch;
    }

    /* --- Header fixo e compacto (respeitando o notch) --- */
    .site-header {
        position: sticky;
        top: 0;
        z-index: 900;
        padding-top: env(safe-area-inset-top);
        transition: box-shadow .25s ease;
    }

    .site-header.scrolled {
        box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
    }

    /* O menu suspenso desce logo abaixo do header */
    .nav {
        top: 100%;
        padding-bottom: max(14px, env(safe-area-inset-bottom));
    }

    /* --- Barra de navegacao inferior estilo app --- */
    .app-tabbar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1000;
        gap: 2px;
        padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .9);
        -webkit-backdrop-filter: saturate(180%) blur(16px);
        backdrop-filter: saturate(180%) blur(16px);
        border-top: 1px solid var(--linha);
        box-shadow: 0 -8px 26px rgba(0, 0, 0, .08);
    }

    .app-tabbar a {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 4px 2px;
        color: var(--muted);
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .2px;
        border-radius: 14px;
        transition: color .2s ease, transform .12s ease;
    }

    .app-tabbar .tab-ico {
        display: grid;
        place-items: center;
        width: 56px;
        max-width: 100%;
        height: 30px;
        border-radius: 999px;
        transition: background .22s ease;
    }

    .app-tabbar svg {
        width: 23px;
        height: 23px;
        display: block;
    }

    .app-tabbar .tab-txt {
        font-size: .6rem;
        line-height: 1;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .app-tabbar a.active {
        color: var(--verde);
    }

    .app-tabbar a.active .tab-ico {
        background: rgba(6, 160, 46, .14);
    }

    .app-tabbar a:active {
        transform: scale(.9);
    }

    /* Espaco para o conteudo nao ficar escondido atras da barra */
    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }

    footer {
        margin-top: 28px;
    }

    /* Botao de pressionar com retorno tatil */
    .btn:active,
    .quick-card:active,
    .team-card:active,
    .mini-match:active,
    .scorer-row:active,
    .tabs a:active {
        transform: scale(.985);
    }
}

/* Ajustes finos da barra em telas bem estreitas */
@media (max-width: 360px) {
    .app-tabbar .tab-txt { font-size: .54rem; }
    .app-tabbar .tab-ico { width: 46px; }
    .app-tabbar svg { width: 21px; height: 21px; }
}

/* Quando instalado como app (tela cheia / standalone) */
@media (display-mode: standalone) {
    .site-header { position: sticky; top: 0; }
    /* O link de login fica menos util dentro do app, mas continua acessivel */
}

/* Quem prefere menos animacao */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}


/* Gerenciar eventos e status dos times */
.event-admin-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 16px;
    align-items: center;
    background: var(--bege);
    border-left: 6px solid var(--verde);
    border-radius: 4px;
    padding: 14px;
}

.event-type {
    background: white;
    border-radius: 4px;
    padding: 12px;
    text-align: center;
}

.event-type strong {
    display: block;
    color: var(--verde);
    font-size: .95rem;
    text-transform: uppercase;
}

.event-type span {
    display: block;
    margin-top: 6px;
    color: var(--laranja);
    font-weight: 900;
}

.btn.warning {
    background: var(--laranja);
    color: white;
}

.check-label {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
    color: var(--verde);
    font-weight: 900;
    text-transform: uppercase;
}

.check-label input {
    width: auto;
    transform: scale(1.2);
}

@media (max-width: 900px) {
    .event-admin-row {
        grid-template-columns: 1fr;
        text-align: center;
    }
}


/* Gerenciar jogos */
.game-admin-row {
    display: grid;
    grid-template-columns: 96px 1fr auto;
    gap: 16px;
    align-items: center;
    background: var(--bege);
    border-left: 6px solid var(--verde);
    border-radius: 4px;
    padding: 14px;
}

.game-date {
    background: white;
    border-radius: 4px;
    text-align: center;
    padding: 12px;
}

.game-date strong {
    display: block;
    color: var(--verde);
    font-size: 1.35rem;
}

.game-date span {
    display: block;
    color: var(--laranja);
    font-weight: 900;
    margin-top: 4px;
}

.game-admin-row span {
    color: var(--laranja);
    font-weight: 900;
    text-transform: uppercase;
    font-size: .78rem;
}

.game-admin-row h3 {
    color: var(--verde);
    margin: 6px 0;
}

.game-admin-row p {
    color: var(--muted);
}

@media (max-width: 900px) {
    .game-admin-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .game-date {
        width: 100%;
    }
}
