:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#102b4d;background:#f4f7fb;line-height:1.5}*{box-sizing:border-box}body{margin:0}a{color:inherit}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #f4bd3e;outline-offset:3px}.skip{position:absolute;top:-100px;left:12px;padding:8px;background:#fff;z-index:10}.skip:focus{top:8px}.header{background:#0b2546;color:white;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px max(20px,calc((100vw - 1100px)/2));min-height:84px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0}.brand img{object-fit:contain;flex:none}.brand span{display:grid}.brand strong{font-size:1rem;letter-spacing:.04em}.brand small{font-size:.64rem;letter-spacing:.16em}.header nav{display:flex;gap:22px;font-size:.9rem}.header nav a{text-decoration:none}.header nav a:hover{text-decoration:underline}main{max-width:1100px;margin:auto;padding:0 20px 60px}.hero{padding:60px 0 42px}.eyebrow{color:#1b5b8e;letter-spacing:.14em;font-size:.76rem;font-weight:800;margin:0 0 8px}.hero h1{font-size:clamp(2rem,5vw,3.6rem);letter-spacing:-.045em;line-height:1.12;margin:0;color:#0b2546}.hero h1 em{font-style:normal;color:#1a6199}.hero>p:last-child{color:#506985;font-size:1.06rem;max-width:680px}.notice{background:#fff7dc;border:1px solid #e6ce7e;border-radius:12px;padding:13px 16px;margin-bottom:20px;color:#604d19}.panel{background:white;border:1px solid #d9e4ee;border-radius:18px;padding:22px;box-shadow:0 6px 20px #0b25460a}.filters,.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.filters label,.form-grid label{display:grid;gap:6px;font-size:.84rem;font-weight:700}.filters input,.filters select,.form-grid input,.form-grid select{width:100%;min-height:44px;border:1px solid #c0d0e0;border-radius:9px;padding:9px 11px;color:#102b4d;background:#fff}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin:34px 0 18px}.section-heading h2{font-size:1.65rem;margin:0;line-height:1.2}.section-heading #resultCount{color:#60778d;font-size:.86rem}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:16px}.card{background:white;border:1px solid #d9e4ee;border-radius:17px;padding:20px;box-shadow:0 6px 20px #0b25460a;display:flex;flex-direction:column;gap:11px}.card h3{font-size:1.2rem;line-height:1.3;margin:0}.card p{margin:0;color:#5c7288;font-size:.91rem}.card .tag{display:inline-flex;width:max-content;background:#eaf2fa;border-radius:20px;color:#1a5687;font-size:.73rem;padding:5px 10px;font-weight:800}.tags{display:flex;flex-wrap:wrap;gap:7px}.tags span{background:#f2f6fa;border:1px solid #dce6ef;padding:5px 9px;border-radius:20px;font-size:.78rem}.card button,.actions button,.secondary,#addGame{border:0;border-radius:10px;padding:11px 15px;background:#12568e;color:white;font-weight:700}.card button{margin-top:auto}.secondary,#addGame{background:#edf3f9!important;color:#194a74!important;border:1px solid #c9d9e8!important}.empty{padding:26px;text-align:center;color:#61788d}.details{margin-top:24px}.back{background:none;border:0;color:#165b91;font-weight:700;padding:5px 0 16px}.detail-heading h2{margin:0;font-size:1.6rem}.detail-heading p{color:#526b82}.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:14px}.detail-section{padding:15px;background:#f6f9fc;border-radius:12px}.detail-section h3{margin:0 0 10px}.detail-section ul{margin:0;padding-left:20px}.detail-section li{margin:7px 0}.award{font-weight:750;color:#926a08}.admin-preview{margin-top:55px;border-top:1px solid #cddce9;padding-top:8px}.admin-preview>p{color:#506985}.admin-preview details{background:white;border:1px solid #d8e5ef;border-radius:15px;padding:17px}.admin-preview summary{font-weight:750;color:#155489;cursor:pointer}fieldset{margin:22px 0 0;padding:18px;border:1px solid #dce6ef;border-radius:12px}legend{font-weight:800;color:#153e63;padding:0 8px}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid label.check{display:flex;align-items:center;gap:8px}.form-grid label.check input{width:auto;min-height:auto}.hint{font-size:.82rem;color:#60778d}.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.draft-list{padding-left:20px}.draft-list li{margin:7px 0}footer{text-align:center;background:#0b2546;color:#e4edf6;padding:24px;font-size:.86rem}@media(max-width:620px){.header{padding:12px 16px;flex-wrap:wrap;gap:10px}.header nav{width:100%;justify-content:space-between;font-size:.83rem;gap:10px}.hero{padding:38px 0 24px}.filters,.form-grid{grid-template-columns:1fr}.panel{padding:17px}.section-heading{align-items:start;flex-direction:column}.card{padding:17px}main{padding:0 14px 40px}fieldset{padding:13px}}
/* Apresentação pública inicial: sem dados de demonstração ou cadastro. */
.public-intro h2{margin:0 0 10px;font-size:clamp(1.35rem,3vw,1.9rem);line-height:1.25}
.public-intro>p:not(.eyebrow){color:#536c84;max-width:760px}
.overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:22px}
.overview-grid article{background:#f3f7fb;border:1px solid #dbe7f1;border-radius:13px;padding:18px}
.overview-grid article span{font-size:1.6rem}
.overview-grid article h3{font-size:1rem;margin:8px 0 4px}
.overview-grid article p{font-size:.89rem;color:#546f86;margin:0}
.empty-history{text-align:center;padding:58px 20px 72px}
.empty-history h2{font-size:clamp(1.5rem,3vw,2.1rem);margin:0}
.empty-history>p:not(.eyebrow){color:#587188;max-width:580px;margin:14px auto 24px}
.button-link{display:inline-flex;align-items:center;gap:12px;background:#12568e;color:white;border-radius:10px;padding:12px 18px;font-weight:750;text-decoration:none}
.button-link:hover{background:#0b3d67}
@media(max-width:620px){.overview-grid{grid-template-columns:1fr}.empty-history{padding:42px 8px 60px}}

/* Histórico público e prévia: elementos iniciais ocultos e leitura móvel. */
.empty-history [hidden]{display:none!important}
.empty-history .history-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:18px;margin:24px auto;max-width:960px;text-align:left}
.empty-history .history-cards .card{width:100%;min-width:0;padding:22px;border:1px solid #d9e4ee;border-radius:18px;background:#fff}
.empty-history .history-cards h3{margin:0 0 8px;line-height:1.3;overflow-wrap:anywhere}
.empty-history .history-cards details{margin-top:16px;padding:14px 0 0;border-top:1px solid #e2eaf1}
.empty-history .history-cards summary{cursor:pointer;color:#174c76;font-weight:750;line-height:1.5}
.empty-history .history-cards details p{margin:10px 0;color:#526b82}
.empty-history .history-cards h4{margin:20px 0 8px;font-size:1rem}
.empty-history .history-cards ul{padding-left:22px;margin:8px 0 16px}
.empty-history .history-cards li{padding-left:2px;margin:10px 0;line-height:1.55;overflow-wrap:anywhere}
@media(max-width:620px){.empty-history .history-cards .card{padding:18px}.empty-history .history-cards{gap:14px}}

/* Gerenciamento administrativo em grid */
#admin .admin-grid{grid-template-columns:1fr!important}
#admin .admin-grid>section{min-width:0}
#admin .record-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}
#admin .record-toolbar input{flex:1;min-width:170px;padding:11px;border:1px solid #b8cadb;border-radius:8px}
#admin .records-scroll{overflow-x:auto;width:100%;border:1px solid #d9e4ee;border-radius:10px}
#admin .records-table{width:100%;border-collapse:collapse;min-width:560px;text-align:left;font-size:.92rem}
#admin .records-table th,#admin .records-table td{padding:12px;border-bottom:1px solid #e3eaf1;vertical-align:middle}
#admin .records-table th{background:#f0f5fa;color:#153f65}
#admin .record-actions{white-space:nowrap}
#admin .record-actions button{padding:8px 10px;margin-right:6px;font-size:.84rem}
#admin .record-actions .grid-delete{background:#9c2424;color:white}
#admin .grid-status{font-size:.85rem;color:#526b82;margin:8px 0}
#admin .admin-editor[open]{margin-top:20px;border-top:1px solid #d9e4ee}
#admin .delete-record{background:#991b1b!important;color:white!important}
@media(max-width:620px){#admin .record-toolbar{align-items:stretch}#admin .record-toolbar>*{width:100%}}

/* Placar esportivo: equipe da associação sempre à esquerda. */
.empty-history .history-cards .match-list{list-style:none;margin:10px 0 16px;padding:0}
.empty-history .history-cards .match-card{list-style:none;padding:14px;margin:12px 0;background:#f7fafd;border:1px solid #d9e5ef;border-radius:13px;overflow-wrap:anywhere}
.empty-history .history-cards .match-phase{font-size:.78rem;font-weight:750;letter-spacing:.03em;color:#55738c;margin-bottom:12px}
.empty-history .history-cards .match-score{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);align-items:center;gap:8px}
.empty-history .history-cards .match-team{display:flex;flex-direction:column;align-items:center;gap:7px;text-align:center;min-width:0}
.empty-history .history-cards .match-team span{font-size:.85rem;font-weight:650;line-height:1.3;overflow-wrap:anywhere}
.empty-history .history-cards .match-team strong{font-size:2rem;font-weight:800;line-height:1;color:#123e63;font-variant-numeric:tabular-nums}
.empty-history .history-cards .match-cross{text-align:center;color:#698096;font-weight:700}
.empty-history .history-cards .match-result{text-align:center;border-top:1px solid #dce6ef;margin-top:12px;padding-top:10px;color:#47677f;font-size:.8rem;font-weight:650}
.empty-history .history-cards .match-sets{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin-top:9px;font-size:.75rem;color:#58718a}
.empty-history .history-cards .match-sets span{background:#e9f1f8;padding:3px 8px;border-radius:20px}
@media(max-width:620px){.empty-history .history-cards .match-card{padding:12px}.empty-history .history-cards .match-team strong{font-size:1.8rem}}
