:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#123a2e;background:#f4f4ea;font-synthesis:none}*{box-sizing:border-box}body{margin:0}.app-shell{min-height:100dvh;max-width:780px;margin:auto;background:#f7f6ed;padding-bottom:100px;box-shadow:0 0 30px #001a1112}.topbar{height:80px;background:#06422d;color:white;display:flex;align-items:center;justify-content:space-between;padding:13px 22px}.brand{display:flex;align-items:center;gap:11px;letter-spacing:.13em}.brand img{border:1px solid #cde5d5;border-radius:9px}.brand strong{display:block;font-size:14px;font-weight:900}.brand small{display:block;font-size:9px;letter-spacing:.22em;color:#b8dfc7;margin-top:3px}.icon-button{background:#ffffff19;border:1px solid #ffffff29;color:white;border-radius:12px;width:43px;height:43px;font-size:23px;cursor:pointer}main{padding:28px 18px 20px}.eyebrow{color:#b2873e;font-size:11px;font-weight:900;letter-spacing:.17em}h1{font-size:clamp(30px,7vw,40px);letter-spacing:-.045em;margin:5px 0 20px}.mode-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;background:#e6e8db;border-radius:14px;padding:5px;margin-bottom:18px}.mode-tabs button{border:0;background:transparent;color:#557165;padding:12px 5px;font-size:13px;font-weight:800;border-radius:10px;cursor:pointer}.mode-tabs .selected{background:#fff;color:#06442e;box-shadow:0 2px 7px #001c151a}.scoreboards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.team-card{background:white;border:1px solid #e5e7d8;border-radius:20px;min-height:340px;display:flex;flex-direction:column;align-items:center;padding:18px 9px 15px;box-shadow:0 6px 20px #19432a0a}.team-card.leading{border-color:#bad7bd}.team-name{font-size:14px;font-weight:900;text-align:center;overflow-wrap:anywhere;min-height:38px;display:grid;place-items:center}.score{font-size:49px;font-weight:900;line-height:1;letter-spacing:-.055em;margin:6px 0 15px}.score small{font-size:16px;color:#80978a;letter-spacing:0}.marks{flex:1;width:100%;min-height:150px;display:flex;align-content:flex-start;align-items:flex-start;justify-content:center;flex-wrap:wrap;gap:7px;padding:4px 2px 10px}.marks.numeric{align-items:center}.big-number{font-size:94px;font-weight:900;color:#0a5739;line-height:1}.mark{width:53px;height:53px}.mark.carmelo{width:58px;height:67px;border-radius:7px;background:#06442e}.mark.complete{object-fit:cover;object-position:center;width:58px;height:67px;border-radius:7px}.empty-mark{color:#a1b2a6;font-size:12px;text-align:center;margin:auto;max-width:110px}.score-button{border:0;background:#0a583b;color:white;width:100%;border-radius:14px;padding:14px 5px;font-size:15px;font-weight:850;cursor:pointer;touch-action:manipulation}.score-button:disabled{opacity:.5;cursor:not-allowed}.score-button:active{transform:scale(.98)}.score-button span{font-size:22px;vertical-align:-1px;margin-right:3px}.game-actions{display:flex;justify-content:space-between;gap:8px;margin:17px 3px}.text-button{border:0;background:none;color:#295943;font-size:13px;font-weight:750;padding:8px 0;cursor:pointer}.text-button:disabled{opacity:.4}.danger{color:#9b4c3c}.game-hint,.muted{color:#728b7c;font-size:13px;line-height:1.5}.game-hint{text-align:center}.winning-banner{background:#e6efdc;color:#0a5637;padding:13px;border-radius:12px;text-align:center;font-weight:800;margin-bottom:14px}.bottom-nav{height:78px;padding-bottom:env(safe-area-inset-bottom);position:fixed;bottom:0;left:50%;transform:translateX(-50%);max-width:780px;width:100%;display:grid;grid-template-columns:1fr 1fr;background:white;border-top:1px solid #e7e8dd}.bottom-nav button{border:0;background:none;color:#84968a;font-size:11px;font-weight:800;cursor:pointer}.bottom-nav .selected{color:#0b583c}.nav-icon{display:block;font-size:22px;margin-bottom:3px}.intro{margin-top:-9px;margin-bottom:24px}.info-card{background:#fff;border:1px solid #e3e8dc;border-radius:18px;padding:18px;margin:13px 0;min-height:117px}.card-heading{display:flex;align-items:center;justify-content:space-between;color:#a17e3d;font-size:11px;letter-spacing:.13em;font-weight:900;margin-bottom:13px}.edit-button{border:0;background:#eaf2e8;color:#146346;border-radius:8px;padding:8px 10px;font-size:12px;font-weight:800;letter-spacing:0;cursor:pointer}.info-main{font-size:18px;font-weight:850;margin-bottom:5px}.info-sub{color:#617c6b;font-size:13px}.empty-state{font-size:13px;color:#81968a;line-height:1.5}.standings{width:100%;border-collapse:collapse;font-size:13px}.standings th{text-align:left;color:#809487;font-size:11px}.standings td,.standings th{padding:8px 4px;border-bottom:1px solid #edf0e9}.standings td:last-child,.standings th:last-child{text-align:right}.standings tr.club-row{font-weight:900;color:#0c6542;background:#edf6eb}dialog{border:0;border-radius:20px;padding:22px;width:min(92vw,430px);box-shadow:0 25px 80px #032b2066;color:#123a2e}dialog::backdrop{background:#052b2180}.dialog-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.dialog-header h2{margin:0;font-size:22px}.close{font-size:27px;background:none;border:0;color:#567564;cursor:pointer}label{display:block;font-weight:750;font-size:13px;margin:13px 0}input,select,textarea{display:block;width:100%;font:inherit;border:1px solid #cddacf;border-radius:10px;padding:11px;margin-top:5px;background:white;color:#123a2e}textarea{resize:vertical;min-height:110px}.small{font-size:12px}.primary{width:100%;padding:13px;border:0;border-radius:12px;background:#09583b;color:white;font-weight:900;cursor:pointer;margin-top:10px}@media(max-width:380px){main{padding:24px 11px}.scoreboards{gap:7px}.team-card{padding:15px 5px}.mark{width:45px;height:45px}.mark.carmelo,.mark.complete{width:47px;height:55px}.score{font-size:43px}}

/* El verde del club ocupa toda la pantalla, incluidos los paneles del tanteador. */
:root{color:#f5fff4;background:#06442e}
body,.app-shell{background:#06442e;color:#f5fff4}
.app-shell{box-shadow:none}
.topbar{background:#043724;border-bottom:1px solid #ffffff22}
.eyebrow{color:#d6e9aa}
.mode-tabs{background:#023521}
.mode-tabs button{color:#b7d6c1}
.mode-tabs .selected{background:#f3fff1;color:#06442e}
.team-card{background:#0b5a3e;border-color:#6ea88a;color:#fff;box-shadow:0 7px 20px #00281937;min-height:370px}
.team-card.leading{border-color:#e9e8aa}
.score small{color:#b5d8c1}
.score-section{width:100%;padding:8px 0 5px;border-top:1px solid #ffffff30}
.phase-heading{display:flex;justify-content:space-between;font-size:12px;font-weight:800;color:#d4ead7;margin:0 5px 6px}
.phase-track{height:4px;margin:0 5px 7px;background:#ffffff30;border-radius:4px;overflow:hidden}
.phase-track span{display:block;height:100%;background:#e8e59b}
.marks{min-height:57px;max-height:none;flex:none;gap:2px;padding:0 0 5px}
.mark{width:38px;height:38px}
.mark.carmelo{width:35px;height:43px;background:transparent}
.empty-mark{color:#a5c9b2;font-size:16px}
.score-button{background:#f2fff0;color:#085037;margin-top:auto}
.game-actions{margin-bottom:5px}
.text-button{color:#e4f7e7}
.danger{color:#e5d99a}
.game-hint,.muted{color:#c6dfcc}
.winning-banner{background:#e3edbd;color:#06442e}
.new-game-button{display:block;width:100%;border:1px solid #d1e7d6;background:#ffffff12;border-radius:12px;color:#fff;padding:13px;font-weight:850;cursor:pointer}
.bottom-nav{background:#043724;border-color:#ffffff22}
.bottom-nav button{color:#a3c4ae}
.bottom-nav .selected{color:#fff}
.info-card{background:#0b5a3e;border-color:#6ea88a;color:#fff}
.card-heading{color:#e9e8aa}
.info-sub,.empty-state{color:#cee4d3}
.intro a{color:#fff;text-underline-offset:3px}
.standings th{color:#c9e5d1}
.standings td,.standings th{border-color:#ffffff26}
.standings tr.club-row{background:#ffffff22;color:#fff}
.dialog-actions{display:flex;gap:10px}
.dialog-actions button{flex:1}
.secondary{border:1px solid #b9d2c0;background:#fff;color:#0c5036;padding:12px;border-radius:12px;font-weight:800;cursor:pointer;margin-top:10px}
@media(max-width:380px){.mark{width:33px;height:33px}.mark.carmelo{width:31px;height:38px}.team-card{min-height:360px}}

.topbar{min-height:86px;height:auto}
.brand{min-width:0;gap:10px}
.brand img{width:52px;height:62px;object-fit:cover;object-position:center;flex:none;border:1px solid #d4e5d7;border-radius:6px}
.brand strong{font-size:13px;line-height:1.2;letter-spacing:.08em}
.brand small{font-size:9px;letter-spacing:.14em}
.menu-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;flex:none}
.menu-button span{display:block;width:21px;height:2px;border-radius:2px;background:#fff}
.mode-tabs{grid-template-columns:repeat(2,1fr)}
@media(max-width:380px){.topbar{padding:10px 12px}.brand img{width:45px;height:54px}.brand strong{font-size:12px}.brand small{font-size:8px}.brand{gap:8px}}

[hidden]{display:none!important}
#coverageView:target{display:block!important}
body:has(#coverageView:target) #homeView{display:none!important}
.app-shell{padding-bottom:30px}
.topbar{position:relative;z-index:20}
.site-menu{position:absolute;top:100%;right:12px;width:min(310px,calc(100vw - 24px));background:#083e2c;border:1px solid #9ac8a4;border-radius:0 0 18px 18px;box-shadow:0 18px 35px #00251788;padding:8px;display:grid;gap:3px}
.site-menu button{display:block;width:100%;border:0;border-radius:9px;background:transparent;color:#e8f8eb;text-align:left;padding:13px 15px;font:inherit;font-size:15px;font-weight:750;cursor:pointer}
.site-menu button.selected,.site-menu button:hover{background:#ffffff21}
.site-menu button.selected{border-left:3px solid #e7e9a1}
.menu-backdrop{position:fixed;inset:0;z-index:15;border:0;background:#001a1399;cursor:pointer}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px}
.section-title h1{margin:5px 0 0}
.score-settings{width:43px;height:43px;flex:none;display:grid;place-items:center;border:1px solid #b7d7c1;border-radius:11px;background:#ffffff16;color:white;font-size:26px;line-height:1;cursor:pointer}
.section-placeholder{background:#0b5a3e;border:1px solid #6ea88a;border-radius:18px;padding:22px;color:#e9f8eb;line-height:1.55;min-height:130px}
.section-placeholder p{margin-bottom:0;color:#c6dfcc}

.app-shell{display:flex;flex-direction:column;padding-bottom:0}
main{flex:1}
.brand img{border:0;border-radius:0}
.site-footer{display:flex;justify-content:center;align-items:center;min-height:70px;border-top:1px solid #ffffff24;background:#043724}
.site-footer a{display:grid;place-items:center;width:48px;height:48px;color:#fff;border-radius:12px}
.site-footer a:hover,.site-footer a:focus-visible{background:#ffffff1a}
.site-footer svg{display:block;width:28px;height:28px}

/* Portada del club */
main:has(.home-view:not([hidden])){padding:0;display:flex;flex-direction:column}
.home-view{position:relative;isolation:isolate;flex:1;min-height:calc(100dvh - 156px);display:flex;align-items:center;justify-content:center;overflow:hidden;padding:40px 20px 52px;background:#012b22 url('guarda.webp') center center/cover no-repeat}
.home-view:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#002d228c 0%,#001b18bd 52%,#002a239e 100%)}
.home-content{width:min(100%,600px);text-align:center}
.home-kicker{font-size:12px;font-weight:900;letter-spacing:.25em;color:#d8f3db;margin-bottom:10px}
.home-view h1{font-size:clamp(30px,7vw,48px);text-transform:uppercase;letter-spacing:.045em;margin:0 0 25px;text-shadow:0 2px 20px #001a15}
.match-card{border:1px solid #ffffff78;background:#002c2ad9;box-shadow:0 18px 60px #00130fb3,inset 0 1px #ffffff2c;border-radius:20px;padding:28px 20px 24px;backdrop-filter:blur(7px)}
.match-teams{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}
.match-team{min-width:0;display:flex;flex-direction:column;align-items:center;gap:13px}
.match-crest,.rival-crest{width:clamp(72px,20vw,118px);height:clamp(84px,24vw,132px);object-fit:contain}
.rival-crest{border:1px dashed #bedbc9;border-radius:12px;display:grid;place-items:center;color:#c6decf;background:#ffffff0d;font-size:11px;font-weight:800;letter-spacing:.07em;line-height:1.4}
.match-team strong{font-size:clamp(13px,3.6vw,18px);line-height:1.2;overflow-wrap:anywhere}
.match-score{white-space:nowrap;font-size:clamp(32px,9vw,58px);font-weight:950;letter-spacing:-.055em;font-variant-numeric:tabular-nums;line-height:1}
.match-score span{font-size:.65em;color:#d6efcf;vertical-align:8%}
.match-date{color:#d0e9d8;font-size:14px;margin:22px 0 0}
.home-edit{margin-top:15px;border:1px solid #cde9d5;border-radius:10px;background:#ffffff17;color:#fff;padding:10px 14px;font-size:14px;font-weight:750;cursor:pointer}
.result-link{display:inline-flex;gap:8px;align-items:center;margin-top:25px;border:0;border-bottom:1px solid #e5f6e8;background:transparent;color:#fff;padding:5px 0;font:inherit;font-size:15px;font-weight:800;cursor:pointer}
.mode-tabs{grid-template-columns:repeat(3,1fr)}
.phase-number{font-size:37px;font-weight:900;line-height:1.1;color:#f5fff4}
@media(max-width:420px){.match-card{padding:24px 10px}.match-teams{gap:5px}.home-view{padding-inline:14px}.match-team{gap:10px}}
.match-teams{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:20px}
.match-team-name{font-size:clamp(16px,4vw,25px);line-height:1.15;overflow-wrap:anywhere;text-align:center;text-transform:uppercase;letter-spacing:.025em}
.match-date{margin:22px 0 8px}
.home-source{display:inline-block;color:#d6f2dd;font-size:13px;text-underline-offset:3px}
.source-link{color:#e9e8aa;text-decoration:none;font-size:12px;letter-spacing:0;text-transform:none}
@media(max-width:420px){.match-teams{gap:8px}.match-team-name{font-size:16px}.match-score{font-size:38px}}
.truco-shortcut{display:flex;align-items:center;gap:10px;width:min(100%,324px);min-height:66px;margin:25px auto 0;padding:8px 9px 8px 10px;border:0;border-radius:17px;background:#88e8d8;color:#063d2b;text-align:left;box-shadow:0 9px 0 #157667,0 16px 28px #001b18a6;font:inherit;cursor:pointer;transform:rotate(-1deg);transition:transform .18s ease,box-shadow .18s ease}
.truco-shortcut:hover,.truco-shortcut:focus-visible{transform:rotate(0) translateY(-3px);box-shadow:0 11px 0 #157667,0 21px 32px #001b18b8}
.truco-shortcut:active{transform:rotate(0) translateY(4px);box-shadow:0 4px 0 #157667,0 9px 16px #001b1880}
.truco-shortcut:focus-visible{outline:3px solid white;outline-offset:5px}
.shortcut-mark{display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:13px;background:#e6fffa;transform:rotate(-10deg)}
.shortcut-mark svg{width:28px;height:33px;fill:none;stroke:#0a5c43;stroke-width:2.7;stroke-linecap:round;stroke-linejoin:round}
.shortcut-copy{display:grid;gap:1px;flex:1;min-width:0}
.shortcut-copy strong{font-size:16px;line-height:1.12;font-weight:900;letter-spacing:-.025em}
.shortcut-copy small{font-size:13px;font-weight:800;color:#196c5d}
.shortcut-arrow{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:50%;background:#0a644f;color:#eafff8;font-size:19px;line-height:1}
@media(max-width:420px){.truco-shortcut{width:min(100%,300px);min-height:62px}.shortcut-mark{width:43px;height:43px}.shortcut-copy strong{font-size:15px}}

/* La guarda enmarca arriba y abajo; el centro queda verde. */
.brand{border:0;background:transparent;color:inherit;padding:0;text-align:left;font:inherit;cursor:pointer}
.brand:focus-visible{outline:3px solid #88e8d8;outline-offset:5px;border-radius:8px}
.home-view{background:#06442e;padding-bottom:110px}
.home-view::before{background:linear-gradient(180deg,#002a2280,transparent 28% 72%,#002a2280)}
.home-view::after{content:"";position:absolute;inset:0;z-index:-2;background:url('guarda.webp') center center/cover no-repeat;mask-image:linear-gradient(to bottom,#000 0%,#000 15%,transparent 31%,transparent 69%,#000 85%,#000 100%)}
.truco-shortcut{position:absolute;z-index:1;right:clamp(14px,4vw,28px);bottom:clamp(18px,3vw,28px);width:min(228px,calc(100% - 28px));min-height:53px;margin:0;padding:9px 42px 9px 15px;border-radius:15px;box-shadow:0 5px 0 #157667,0 12px 22px #001b1880;transform:rotate(-2deg)}
.truco-shortcut:hover,.truco-shortcut:focus-visible{box-shadow:0 7px 0 #157667,0 16px 26px #001b18a6}
.truco-shortcut:active{box-shadow:0 2px 0 #157667,0 6px 12px #001b1880}
.shortcut-copy strong{font-size:14px}
.shortcut-copy small{font-size:11px}
.shortcut-mark{position:absolute;right:9px;bottom:8px;width:27px;height:28px;border-radius:9px;transform:rotate(-9deg)}
.shortcut-mark svg{width:18px;height:22px;stroke-width:3}
@media(max-width:420px){.truco-shortcut{width:min(216px,calc(100% - 28px));min-height:52px}.shortcut-copy strong{font-size:14px}.shortcut-mark{width:27px;height:28px}}

/* El tanteador recupera el turquesa del primer escudo. */
#scoreView{font-family:ui-rounded,"Avenir Next","SF Pro Rounded",Inter,system-ui,sans-serif}
#scoreView .eyebrow{color:#88e8d8;font-size:12px;letter-spacing:.16em}
#scoreView h1{font-weight:900;letter-spacing:-.055em}
#scoreView .score-settings{border-color:#88e8d8;background:#88e8d822;color:#a4f9ec}
#scoreView .team-card{background:linear-gradient(155deg,#0b5649,#084235);border:1.5px solid #68d7c5;box-shadow:0 9px 26px #00251965;border-radius:22px}
#scoreView .team-card.leading{border-color:#b7fff0;box-shadow:0 0 0 2px #88e8d833,0 9px 26px #00251965}
#scoreView .team-name{color:#d9fff6;font-size:16px;letter-spacing:-.02em}
#scoreView .score{color:#88e8d8;font-weight:950}
#scoreView .score small{color:#9cd9c9}
#scoreView .score-section{border-top-color:#88e8d844}
#scoreView .phase-heading{color:#d3f9ed;font-size:13px}
#scoreView .phase-track{background:#052b27}
#scoreView .phase-track span{background:#88e8d8}
#scoreView .score-button{background:#88e8d8;color:#073d36;border-radius:12px;font-weight:900;box-shadow:0 4px 0 #3a9b8d}
#scoreView .score-button:active{transform:translateY(3px);box-shadow:0 1px 0 #3a9b8d}
#scoreView .mark.carmelo{filter:drop-shadow(0 0 3px #88e8d866)}
#scoreView .new-game-button{border-color:#88e8d8;color:#dbfff7;background:#88e8d81c}
#scoreView .text-button{color:#a4f2e1}
#scoreView .text-button.danger{color:#ffe1ae}
#scoreView .game-hint{color:#bee9dc;font-size:14px}
#settingsDialog,#clearDialog{font-family:ui-rounded,"Avenir Next","SF Pro Rounded",Inter,system-ui,sans-serif}
#settingsDialog .primary,#clearDialog .primary{background:#0b6654}
#settingsDialog input:focus,#settingsDialog select:focus{outline:2px solid #67d9c5;outline-offset:1px}

/* Vivos turquesa compartidos por todas las secciones del club. */
:root{--club-turquoise:#88e8d8;--club-turquoise-line:#68d7c5;--club-turquoise-soft:#88e8d822}
.topbar{border-bottom:2px solid var(--club-turquoise-line)}
.brand small{color:#b8eee2}
.menu-button{border-color:#88e8d877;background:var(--club-turquoise-soft)}
.menu-button span{background:var(--club-turquoise)}
.site-menu{border-color:var(--club-turquoise-line)}
.site-menu button.selected,.site-menu button:hover{background:var(--club-turquoise-soft)}
.site-menu button.selected{border-left-color:var(--club-turquoise);color:#b7fff0}
.eyebrow,.home-kicker,.card-heading{color:var(--club-turquoise)}
.home-view h1::after{content:"";display:block;width:52px;height:3px;margin:16px auto 0;border-radius:3px;background:var(--club-turquoise)}
.match-card{border-color:var(--club-turquoise-line);box-shadow:0 18px 60px #00130fb3,inset 0 3px var(--club-turquoise)}
.match-score{color:var(--club-turquoise)}
.match-score span{color:#b8eee2}
.home-source,.source-link,.intro a{color:var(--club-turquoise);text-underline-offset:4px}
.result-link{border-bottom-color:var(--club-turquoise);color:var(--club-turquoise)}
.info-card,.section-placeholder{border-color:#68d7c588;border-top:3px solid var(--club-turquoise-line)}
.edit-button{background:var(--club-turquoise);color:#073d36}
.home-edit{border-color:var(--club-turquoise);background:var(--club-turquoise-soft)}
.standings th{color:var(--club-turquoise)}
.standings td,.standings th{border-bottom-color:#88e8d830}
.standings tr.club-row{background:#88e8d822;color:#c7fff2;box-shadow:inset 3px 0 var(--club-turquoise)}
.mode-tabs{border:1px solid #88e8d855}
.mode-tabs .selected{background:var(--club-turquoise);color:#073d36}
.winning-banner{background:var(--club-turquoise);color:#073d36}
.site-footer{border-top:2px solid var(--club-turquoise-line)}
.site-footer a:hover,.site-footer a:focus-visible{background:var(--club-turquoise-soft)}
dialog{border-top:4px solid #36ac99}
dialog .muted{color:#496f60}
dialog .primary{background:#0b6654}
input:focus,select:focus,textarea:focus{outline:2px solid #36ac99;outline-offset:2px}
button:focus-visible,a:focus-visible{outline:3px solid var(--club-turquoise);outline-offset:4px}

/* Franja de sponsors al pie de todas las secciones. */
.sponsors{padding:24px 18px 23px;background:#043724;border-top:2px solid var(--club-turquoise-line);text-align:center}
.sponsors h2{margin:0 0 17px;color:#a6ede0;font-size:12px;line-height:1.3;letter-spacing:.2em;text-transform:uppercase;font-weight:900}
.sponsors-featured{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:580px;margin:0 auto}
.sponsor-featured{min-width:0;min-height:95px;display:flex;align-items:center;justify-content:center;gap:10px;padding:16px;background:#ffffff0d;border:1px solid #88e8d866;border-radius:15px;color:#fff}
.sponsor-featured>span:first-child:not(.umbro-diamond){font-size:clamp(30px,7vw,45px);font-weight:950;letter-spacing:-.055em;line-height:1}
.sponsor-umbro>span:last-child{font-size:clamp(25px,6vw,40px);font-weight:850;letter-spacing:-.055em;line-height:1}
.umbro-diamond{width:29px;height:29px;flex:none;transform:rotate(45deg);border:6px solid currentColor;position:relative}
.umbro-diamond::after{content:"";position:absolute;inset:3px;border:3px solid currentColor}
.sponsors-row{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin:19px auto 0;max-width:700px}
.sponsors-row[hidden]{display:none}
.sponsors-row .sponsor{min-width:110px;padding:12px 18px;border:1px solid #88e8d84d;border-radius:10px;color:#dcfff6;font-size:14px;font-weight:800}
.site-footer{min-height:60px;border-top:1px solid #88e8d844}
@media(max-width:420px){.sponsors{padding:22px 13px}.sponsors-featured{gap:8px}.sponsor-featured{min-height:77px;padding:10px;gap:7px}.umbro-diamond{width:20px;height:20px;border-width:4px}.umbro-diamond::after{inset:2px;border-width:2px}}

/* Logos oficiales aportados por el club, con jerarquía compacta. */
.sponsors{padding:18px 18px 20px}
.sponsors-featured{max-width:350px;gap:10px}
.sponsor-featured{min-height:0;height:82px;padding:7px;border-radius:11px;background:#050505;border-color:#88e8d84d;overflow:hidden}
.sponsor-featured:first-child{background:#fff}
.sponsor-featured img{display:block;width:100%;height:100%;object-fit:contain}
.sponsors-row{max-width:740px;margin:12px auto 0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}
.sponsors-row .sponsor{min-width:0;height:59px;padding:4px;border-radius:8px;background:#050505;border:1px solid #88e8d83d;overflow:hidden}
.sponsors-row .sponsor:first-child{background:#050505}
.sponsors-row .sponsor:last-child{background:#fff}
.sponsor img{display:block;width:100%;height:100%;object-fit:contain}
.sponsors-in-view{border:1px solid #68d7c588;border-radius:16px;margin-top:20px;padding:24px 14px;background:#083d2d}
@media(max-width:600px){.sponsors-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.sponsors-row .sponsor{height:55px}.sponsors-featured{max-width:310px}.sponsor-featured{height:76px}}
@media(max-width:360px){.sponsors-row .sponsor{height:48px}}

/* Marcas más discretas, blancas y fundidas sobre el verde del club. */
.sponsors{background:#043724;padding:15px 14px 16px;border-top:1px solid #88e8d84d}
.sponsors-featured{max-width:250px;gap:14px}
.sponsor-featured,.sponsor-featured:first-child{height:58px;min-height:0;padding:0;background:transparent;border:0;border-radius:0;overflow:hidden}
.sponsor-featured img,.sponsor img{width:100%;height:100%;object-fit:contain;mix-blend-mode:screen;filter:grayscale(1) contrast(5)}
.sponsor-featured:first-child img,.sponsors-row .sponsor:last-child img{filter:invert(1) grayscale(1) contrast(5)}
.sponsors-row{max-width:610px;gap:11px;margin:10px auto 0}
.sponsors-row .sponsor,.sponsors-row .sponsor:first-child,.sponsors-row .sponsor:last-child{height:35px;padding:0;background:transparent;border:0;border-radius:0;overflow:hidden}
.sponsors-in-view{background:#083d2d;border:1px solid #68d7c588;padding:22px 16px}
.sponsors-in-view .sponsor-featured,.sponsors-in-view .sponsor-featured:first-child,.sponsors-in-view .sponsors-row .sponsor,.sponsors-in-view .sponsors-row .sponsor:last-child{background:transparent}
@media(max-width:600px){.sponsors-featured{max-width:220px;gap:12px}.sponsor-featured{height:51px}.sponsors-row{grid-template-columns:repeat(3,minmax(0,1fr));max-width:330px;gap:8px 13px}.sponsors-row .sponsor{height:30px}}
@media(max-width:360px){.sponsors-row .sponsor{height:28px}}

/* Fondo negro continuo para el bloque de sponsors. */
.sponsors,.sponsors-in-view{background:#000}

/* Sponsors integrados al verde oscuro del encabezado. */
.sponsors,.sponsors-in-view{background:#043724}
.sponsors{padding:11px 12px 12px}
.sponsors-featured{max-width:210px;gap:10px}
.sponsor-featured,.sponsor-featured:first-child{height:47px;background:#043724}
.sponsors-row{max-width:530px;gap:8px;margin-top:7px}
.sponsors-row .sponsor,.sponsors-row .sponsor:first-child,.sponsors-row .sponsor:last-child{height:27px;background:#043724}
.sponsors-in-view{padding:18px 12px}
@media(max-width:600px){.sponsors-featured{max-width:190px;gap:9px}.sponsor-featured,.sponsor-featured:first-child{height:43px}.sponsors-row{max-width:300px;gap:6px 10px}.sponsors-row .sponsor,.sponsors-row .sponsor:first-child,.sponsors-row .sponsor:last-child{height:25px}}

/* Convertimos el blanco del logo en opacidad real; el fondo de cada JPEG desaparece. */
.sponsor-featured img,.sponsor img{mix-blend-mode:normal;filter:url(#logo-white-from-black)}
.sponsor-featured:first-child img,.sponsors-row .sponsor:last-child img{filter:url(#logo-white-from-white)}

/* Umbro: mostrar únicamente el símbolo de doble rombo. */
.sponsor-featured:first-child img{clip-path:inset(0 0 33% 0);transform:translateY(7px) scale(1.12)}

/* Ajuste fino de proporciones entre marcas. */
.sponsor-featured:first-child img{transform:translateY(7px) scale(.94)}
.sponsors-row .sponsor:nth-child(5){overflow:visible;position:relative;z-index:1}
.sponsors-row .sponsor:nth-child(5) img{transform:scale(1.17)}

/* Portada: guarda continua detrás del resultado, sin mancha ni sombra difusa. */
.home-view::before{display:none}
.home-view::after{mask-image:none;-webkit-mask-image:none}
.match-card{box-shadow:inset 0 3px var(--club-turquoise);backdrop-filter:none}

/* Próximo partido dentro del recuadro de resultado. */
.match-next{display:grid;justify-items:center;gap:5px;margin-top:18px;padding-top:16px;border-top:1px solid #88e8d866;text-align:center;color:#e7fff6;font-size:14px;line-height:1.35}
.match-next-label{font-size:11px;font-weight:900;letter-spacing:.17em;color:#88e8d8}
.match-next strong{font-size:16px;font-weight:850}
.match-next a,.match-next button{color:#9af5e7;font:inherit;font-size:12px;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.match-next a{margin-top:3px}
.match-next button{border:0;background:none;cursor:pointer;padding:3px}

/* Rótulos del resultado y del próximo partido dentro de la tarjeta. */
.home-kicker{max-width:560px;margin:0 auto 18px;font-size:12px;line-height:1.5;letter-spacing:.12em}
.home-view .match-section-label{margin:0 0 17px;color:#88e8d8;font-size:11px;line-height:1.3;font-weight:900;letter-spacing:.17em;text-transform:uppercase;text-shadow:none}
.home-view .match-section-label::after{display:none}

/* Acento dorado para el acceso rápido al tanteador. */
.truco-shortcut{background:#d9b765;color:#183b2e;box-shadow:0 5px 0 #8b692b,0 12px 22px #001b1880}
.truco-shortcut:hover,.truco-shortcut:focus-visible{box-shadow:0 7px 0 #8b692b,0 16px 26px #001b18a6}
.truco-shortcut:active{box-shadow:0 2px 0 #8b692b,0 6px 12px #001b1880}
.shortcut-copy small{color:#43512e}
.shortcut-mark{background:#f8e8bc}
.shortcut-mark svg{stroke:#174132}

/* Acceso compacto y juguetón al tanteador. */
.truco-shortcut{width:min(188px,calc(100% - 28px));min-height:47px;padding:8px 36px 8px 12px;border:2px solid #f6df9b;border-radius:14px;background:linear-gradient(145deg,#f1d687 0%,#d5a449 100%);box-shadow:0 4px 0 #785723,0 10px 18px #001b1880;transform:rotate(-3deg)}
.truco-shortcut:hover,.truco-shortcut:focus-visible{transform:rotate(1deg) translateY(-3px);box-shadow:0 6px 0 #785723,0 14px 22px #001b18a6}
.truco-shortcut:active{transform:rotate(0) translateY(3px);box-shadow:0 1px 0 #785723,0 5px 10px #001b1880}
.shortcut-copy strong{font-size:12px;letter-spacing:-.01em}
.shortcut-copy small{font-size:10px}
.shortcut-mark{right:8px;bottom:8px;width:24px;height:25px;border:1px solid #bd8c39;border-radius:7px;transform:rotate(11deg);box-shadow:1px 2px 0 #9c7537}
.shortcut-mark svg{width:16px;height:19px}
@media(max-width:420px){.truco-shortcut{width:min(182px,calc(100% - 28px));min-height:45px}.shortcut-copy strong{font-size:12px}.shortcut-mark{width:24px;height:25px}}

.table-actions{display:flex;align-items:center;gap:10px;white-space:nowrap}

.table-asof{font-size:12px;color:#c2ddcf;margin:0 0 10px}
.standings-scroll{overflow-x:auto;max-width:100%;scrollbar-color:#77cbb4 #0b5a3e}
.standings{min-width:550px;font-variant-numeric:tabular-nums}
.standings th,.standings td{white-space:nowrap}
.standings th:not(:first-child),.standings td{text-align:center}
.standings th:first-child{min-width:170px;text-align:left}
.standings tbody th{font-weight:600}
.standings .club-row th{font-weight:900}
.standings-scroll:focus-visible{outline:2px solid var(--club-turquoise);outline-offset:3px}

/* Guarda de la portada en los menús del club; el tanteador conserva su fondo. */
main:has(#resultsView:not([hidden]),#galleryView:not([hidden]),#historyView:not([hidden]),#partnersView:not([hidden]),#contactView:not([hidden])){background:#06442e url('guarda.webp') center center/cover no-repeat;color:#fff}
.standings-scroll{overflow:visible}
.standings{min-width:0;width:100%;table-layout:fixed;font-size:12px}
.standings th:first-child{min-width:0;width:58%;overflow-wrap:anywhere;white-space:normal}
.standings th:not(:first-child),.standings td{width:14%;padding-inline:2px}
@media(max-width:380px){.standings{font-size:11px}.standings td,.standings th{padding-block:9px}}

.match-coverage{display:inline-block;margin-top:12px;color:var(--club-turquoise);font-size:13px;font-weight:850;text-decoration:underline;text-underline-offset:4px}
.match-coverage:hover,.match-coverage:focus-visible{color:#fff}

.match-result-link{display:block;color:inherit;text-decoration:none;border-radius:8px}
.match-result-link:hover .match-score,.match-result-link:focus-visible .match-score{color:#d6fff4}
.match-result-link:hover .info-main,.match-result-link:focus-visible .info-main{text-decoration:underline;text-underline-offset:3px}

.match-card-link{display:block;color:#fff;text-decoration:none;cursor:pointer}
.match-card-link:hover,.match-card-link:focus-visible{border-color:#baffee}

.match-card-link{width:100%;font:inherit;text-align:inherit;cursor:pointer}
.coverage-result-button{width:100%;border:0;background:transparent;font:inherit;text-align:left;cursor:pointer}
.coverage-result-button .info-main{color:#fff}
.coverage-card{background:#073b2edd;border:1px solid var(--club-turquoise-line);border-radius:18px;padding:20px;color:#fff;line-height:1.65}
.coverage-meta,.coverage-credit{color:#b6e9db;font-size:13px}
.coverage-back{margin-top:20px;border:1px solid var(--club-turquoise-line);border-radius:10px;background:#073b2e;color:#fff;padding:11px 15px;font:inherit;cursor:pointer}
main:has(#coverageView:not([hidden])){background:#06442e url('guarda.webp') center center/cover no-repeat;color:#fff}

.coverage-figure{margin:18px 0 22px}
.coverage-figure img{display:block;width:100%;height:auto;border-radius:12px}
.coverage-figure figcaption{text-align:right;color:#b6e9db;font-size:11px;margin-top:6px}
.coverage-card h2{font-size:clamp(25px,6vw,38px);line-height:1.1;letter-spacing:.02em;margin:8px 0 5px}
.coverage-byline{font-size:13px;color:var(--club-turquoise);font-weight:850;margin:0 0 20px}
#coverageArticle>p:not(.coverage-byline){margin:0 0 17px;font-size:15px;line-height:1.75}
@media(max-width:420px){.coverage-card{padding:15px}#coverageArticle>p:not(.coverage-byline){font-size:14px}}

main:has(#scorersView:not([hidden]),#membershipView:not([hidden])){background:#06442e url('guarda.webp') center center/cover no-repeat;color:#fff}

/* El menú sigue siendo usable en pantallas bajas y con texto ampliado. */
.site-menu{max-height:calc(100dvh - 105px);overflow-y:auto;overscroll-behavior:contain}

.statistics-options{display:grid;gap:14px}.statistics-options button{min-height:72px;padding:20px;text-align:left;font:inherit;font-size:18px;font-weight:800;color:#fff;background:#0b5a3e;border:1px solid var(--club-turquoise-line);border-radius:14px;cursor:pointer}.statistics-options button:hover{background:#10684a}.statistics-options button:focus-visible{outline:3px solid var(--club-turquoise);outline-offset:3px}

.statistics-table-card{padding:8px 16px;background:#0b5a3e;border:1px solid var(--club-turquoise-line);border-radius:14px}.statistics-table{width:100%;border-collapse:collapse;color:#fff;font-size:16px}.statistics-table th,.statistics-table td{padding:16px 4px;border-bottom:1px solid #ffffff22}.statistics-table thead th{font-size:14px;color:#b7fff0;text-align:left}.statistics-table tbody th{text-align:left;font-weight:600;overflow-wrap:anywhere}.statistics-table td,.statistics-table thead th:last-child{text-align:right}.statistics-table td{font-weight:900;font-size:20px}.statistics-table tbody tr:last-child th,.statistics-table tbody tr:last-child td{border-bottom:0}

main:has(#statisticsView:not([hidden]),#cleanSheetsView:not([hidden])){background:#06442e url('guarda.webp') center center/cover no-repeat;color:#fff}

main section > .coverage-back{display:block;width:fit-content;margin:0 auto 18px 0;text-align:left}

/* Teléfonos: ancho fluido y áreas seguras de iOS, incluido iPhone 14. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.app-shell{width:100%;min-height:100svh;min-height:100dvh}
.topbar{padding-top:calc(12px + env(safe-area-inset-top));padding-left:max(14px,env(safe-area-inset-left));padding-right:max(14px,env(safe-area-inset-right));gap:10px}
.brand{flex:1;min-width:0}.brand>span{min-width:0}.brand strong,.brand small{overflow-wrap:anywhere}
.menu-button,.score-settings{width:44px;height:44px}
.site-footer{padding-bottom:env(safe-area-inset-bottom);min-height:calc(60px + env(safe-area-inset-bottom))}
main,main>section,.home-content,.info-card,.coverage-card{min-width:0}
input,select,textarea{font-size:16px}
dialog{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 32px);overflow-y:auto}
@media(max-width:430px){
 .topbar{min-height:78px}
 .brand{gap:9px}.brand img{width:43px;height:52px}
 .brand strong{font-size:14px;letter-spacing:.015em;line-height:1.3}
 .brand small{font-size:12px;letter-spacing:0;line-height:1.35}
 main{padding:20px 14px}
 .home-view{min-height:0;flex:1;padding:26px 14px 86px}
 .home-kicker{font-size:12px;letter-spacing:.08em;margin-bottom:16px}
 .match-card{padding:20px 12px;border-radius:16px}
 .match-teams{gap:8px}.match-team-name{font-size:16px}
 .match-date{margin-top:16px}.match-next{margin-top:14px;padding-top:12px}
 .truco-shortcut{right:16px;bottom:20px;min-height:48px}
 .card-heading{flex-wrap:wrap;gap:8px;font-size:12px;letter-spacing:.07em}
 .info-card{padding:16px}.info-main{font-size:17px;line-height:1.4;overflow-wrap:anywhere}
 .info-sub,.muted,.game-hint{font-size:14px;line-height:1.5}
 .standings{font-size:14px}.standings thead th{font-size:12px}
 .standings th:first-child{width:58%}
 .coverage-card{padding:16px}#coverageArticle>p:not(.coverage-byline){font-size:16px;line-height:1.65}
 .coverage-meta,.coverage-byline,.coverage-credit{font-size:14px}
 .scoreboards{gap:10px}.team-card{padding:14px 8px;min-height:330px}
 .team-name{font-size:16px}.score{font-size:44px}
 .game-actions{flex-wrap:wrap;gap:4px 10px}.text-button{font-size:14px;min-height:44px}
 .statistics-table-card{padding-inline:12px}.statistics-table{table-layout:fixed}
 .statistics-table th:first-child{width:80%}.statistics-table td{width:20%}
}

.match-navigation{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 18px;width:100%}.match-navigation .coverage-back{margin:0;text-decoration:none;text-align:center;padding:10px 12px;font-size:14px}.match-navigation>:last-child{margin-left:auto}

/* Diseño adaptable para Android, iOS y ventanas con texto ampliado. */
.app-shell{max-width:780px;min-height:100vh;min-height:100svh;min-height:100dvh}
main{padding-left:max(18px,env(safe-area-inset-left));padding-right:max(18px,env(safe-area-inset-right))}
main>section{max-width:100%;overflow-wrap:anywhere}
.brand{text-align:left}.brand strong{line-height:1.35}.brand small{letter-spacing:.04em;line-height:1.4}
.topbar{height:auto;flex-shrink:0;padding-bottom:12px}
.site-menu{max-height:calc(100vh - var(--menu-top,110px) - 12px);max-height:calc(100dvh - var(--menu-top,110px) - env(safe-area-inset-bottom) - 12px);width:min(340px,calc(100% - 24px));-webkit-overflow-scrolling:touch}
.site-menu button{min-height:48px;white-space:normal;overflow-wrap:anywhere}
img,svg,video{max-width:100%}
.home-view{min-height:0;padding:clamp(24px,5vw,40px) max(14px,env(safe-area-inset-left)) 90px max(14px,env(safe-area-inset-right))}
.match-teams{gap:clamp(6px,2vw,20px)}
.match-score{font-size:clamp(30px,9vw,58px)}
.match-crest,.rival-crest{max-width:100%}
.match-next strong,.match-next span,.info-main,.info-sub{overflow-wrap:anywhere}
.card-heading{flex-wrap:wrap;gap:8px}.table-actions{white-space:normal;flex-wrap:wrap}
.standings-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.standings{width:100%;min-width:0}.standings th,.standings td{white-space:normal;overflow-wrap:anywhere}
.statistics-table{table-layout:fixed}.statistics-table th:first-child{width:80%}.statistics-table td{width:20%}
.match-navigation{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.match-navigation .coverage-back{display:flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:10px 8px;line-height:1.35}
.match-navigation>:last-child{margin-left:0}
.coverage-card p{font-size:16px;line-height:1.65}
.game-actions,.dialog-actions{flex-wrap:wrap}.dialog-actions button{min-width:100px}
button,a,input,select,textarea{touch-action:manipulation}
.score-button,.new-game-button,.primary,.secondary,.close,.coverage-back{min-height:44px}
dialog{width:min(430px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100vh - 32px);max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);padding:clamp(16px,4vw,22px);overscroll-behavior:contain}
.dialog-header{gap:10px}.dialog-header h2{min-width:0;overflow-wrap:anywhere}.close{flex-shrink:0;min-width:44px}
@media(max-width:600px){
 main{padding:22px max(14px,env(safe-area-inset-right)) 20px max(14px,env(safe-area-inset-left))}
 .brand strong{font-size:clamp(12px,3.4vw,16px);letter-spacing:.015em}
 .brand small{font-size:clamp(10px,2.7vw,12px);letter-spacing:0}
 .brand img{width:43px;height:52px}
 .home-view{padding-bottom:90px}
 .game-actions{gap:6px 14px}.text-button{min-height:44px}
 .info-card,.coverage-card,.section-placeholder{padding:16px}
}
@media(max-width:360px){
 .topbar{gap:8px}.brand{gap:7px}.brand img{width:36px;height:44px}
 h1{font-size:28px}.match-card{padding:18px 10px}.match-team-name{font-size:14px}
 .team-card{padding:12px 6px}.scoreboards{gap:8px}
 .phase-heading{margin-inline:0;font-size:11px}.score-button{font-size:13px}
 .statistics-table-card{padding-inline:8px}.statistics-table{font-size:14px}
 .match-navigation .coverage-back{font-size:13px}
}
@media(orientation:landscape) and (max-height:500px){
 .topbar{padding-top:max(8px,env(safe-area-inset-top));padding-bottom:8px;min-height:64px}
 .brand img{width:36px;height:44px}.home-view{padding-top:20px}
 .site-menu button{padding-block:10px;min-height:44px}
}

/* El tanteador usa el alto disponible; los controles quedan junto a los puntos. */
body.playing-truco .app-shell{height:var(--game-viewport,100dvh);min-height:0}
body.playing-truco .sponsors,body.playing-truco .site-footer{display:none}
body.playing-truco .topbar{min-height:62px;padding-top:max(6px,env(safe-area-inset-top));padding-bottom:6px}
body.playing-truco .brand img{width:34px;height:41px}
body.playing-truco .brand small{font-size:10px}
body.playing-truco main{display:flex;flex:1;min-height:0;padding:8px max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
#scoreView:not([hidden]){display:grid;flex:1;min-width:0;min-height:0;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto minmax(210px,1fr) auto;gap:8px}
#scoreView>.coverage-back{grid-column:1;grid-row:1;margin:0;min-height:44px;font-size:13px;padding:8px 10px;align-self:center}
#scoreView>.eyebrow,#scoreView>.game-hint{display:none}
#scoreView .section-title{grid-column:2;grid-row:1;margin:0;gap:8px}
#scoreView .section-title h1{font-size:24px;margin:0}
#scoreView .winning-banner{grid-column:1/-1;grid-row:2;margin:0;padding:6px;font-size:14px}
#scoreView .scoreboards{grid-column:1/-1;grid-row:3;min-height:0;gap:10px}
#scoreView .team-card{min-height:0;padding:10px 8px;display:grid;grid-template-rows:auto auto minmax(0,1fr) minmax(0,1fr) auto;gap:4px;align-items:stretch;justify-items:stretch}
#scoreView .team-name{min-height:0;font-size:15px;line-height:1.2}
#scoreView .score{font-size:clamp(30px,6vh,48px);text-align:center;margin:0;line-height:1.1}
#scoreView .score-section{min-height:0;padding:5px 0 0;display:flex;flex-direction:column}
#scoreView .phase-heading{flex:none;margin:0 0 3px;font-size:12px}
#scoreView .phase-track{flex:none;margin:0 0 3px;height:3px}
#scoreView .marks{flex:1;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;align-content:center;gap:2px;padding:0}
#scoreView .mark.carmelo{width:100%;height:100%;min-height:0;max-height:60px;aspect-ratio:66/80;object-fit:contain;justify-self:center}
#scoreView .empty-mark{grid-column:1/-1}
#scoreView .score-button{min-height:44px;margin:0;padding:6px;font-size:15px}
#scoreView .game-actions{grid-column:1;grid-row:4;display:flex;flex-wrap:wrap;margin:0;gap:0 12px;align-items:center;justify-content:flex-start}
#scoreView .game-actions .text-button{min-height:44px;font-size:12px;padding:6px 0}
#scoreView .new-game-button{grid-column:2;grid-row:4;min-height:44px;padding:8px;font-size:12px;align-self:center}
@media(max-height:550px) and (orientation:landscape){
 body.playing-truco .topbar{min-height:50px}.playing-truco .brand img{width:28px;height:34px}.playing-truco .brand small{display:none}
 #scoreView:not([hidden]){grid-template-rows:auto auto minmax(165px,1fr) auto;gap:3px}
 #scoreView .team-card{padding:5px 8px;gap:1px;grid-template-columns:1fr 1fr;grid-template-rows:auto minmax(0,1fr) 44px}
 #scoreView .team-name{grid-column:1;grid-row:1;font-size:13px}#scoreView .score{grid-column:2;grid-row:1;font-size:26px}
 #scoreView .score-section{grid-row:2}#scoreView .score-button{grid-column:1/-1;grid-row:3}
 #scoreView .section-title h1{font-size:20px}
}

@media(max-width:360px){#scoreView .section-title h1{font-size:20px}#scoreView .section-title{gap:5px}#scoreView .game-actions{gap:0 8px}#scoreView .game-actions .text-button{font-size:11px}}

/* Acciones alineadas con el mismo tamaño y acento amarillo. */
#scoreView:not([hidden]){grid-template-columns:repeat(3,minmax(0,1fr))}
#scoreView>.coverage-back{grid-column:1/3;justify-self:start}
#scoreView .section-title{grid-column:2/-1;justify-self:end}
#scoreView .game-actions{grid-column:1/3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:stretch}
#scoreView .game-actions .text-button{width:100%;height:48px;min-height:48px;margin:0;padding:6px;border:1px solid #f6df9b;border-radius:10px;background:#f1d687;color:#183b2e;font-size:12px;font-weight:800;line-height:1.2;text-align:center;display:flex;align-items:center;justify-content:center}
#scoreView .game-actions .text-button:disabled{opacity:1;background:#c6b878;border-color:#c6b878;color:#394d37;cursor:default}
#scoreView .new-game-button{grid-column:3;height:48px;min-height:48px;margin:0;align-self:stretch}

#scoreView .team-heading{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0}
#scoreView .team-heading .team-name{min-width:0}
#scoreView .edit-team-name{flex:none;display:grid;place-items:center;width:32px;height:32px;padding:9px;border:0;border-radius:8px;background:transparent;color:#f1d687;cursor:pointer}
#scoreView .edit-team-name:hover,#scoreView .edit-team-name:focus-visible{background:#f1d68722}
@media(max-height:550px) and (orientation:landscape){#scoreView .team-heading{grid-column:1;grid-row:1}}

/* Contact form */
.contact-card{padding:22px;border:1px solid #88e8d855;border-radius:18px;background:#043724;max-width:620px;margin:0 auto}
.contact-card h2{margin:0 0 8px;font-size:23px}.contact-card p{line-height:1.55}
.contact-card label{font-size:15px;margin-top:20px}.contact-card input,.contact-card textarea{font-size:16px;min-height:48px}.contact-card textarea{min-height:160px}
.contact-card input:focus-visible,.contact-card textarea:focus-visible{outline:3px solid #e4d58b;outline-offset:2px}
.contact-note,.contact-direct{font-size:13px;color:#c6dfcc}.contact-direct a{color:#fff;overflow-wrap:anywhere}
.contact-success{padding:14px;border:1px solid #88e8d8;border-radius:10px;background:#0b5a3e}.contact-honeypot{display:none}
.contact-card button:disabled{opacity:.65;cursor:wait}
@media(max-width:380px){.contact-card{padding:16px}}

/* Main welcome menu */
body.welcome-active .topbar,body.welcome-active .sponsors,body.welcome-active .site-footer{display:none}
body.welcome-active .app-shell{padding-bottom:0}
body.welcome-active main{padding:0}
.welcome-view{min-height:100svh;padding:48px 26px 30px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:radial-gradient(ellipse at 50% 0%,#14755b77,transparent 65%),#043d2b}
.welcome-view[hidden]{display:none}
.welcome-crest{width:86px;height:104px;object-fit:contain;margin-bottom:24px;border-radius:8px;box-shadow:0 12px 35px #001d1633}
.welcome-view .eyebrow{font-size:10px;color:#b6ded0;letter-spacing:.18em}
.welcome-view h1{max-width:550px;margin:16px 0 30px;font-size:clamp(30px,6vw,46px);line-height:1.12;letter-spacing:-.035em;color:#fff}
.welcome-view h1 span{display:block;font-size:17px;line-height:1.5;font-weight:500;letter-spacing:0;color:#d7e9e1;margin-bottom:8px}
.welcome-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;width:100%;max-width:640px}
.welcome-option{position:relative;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:12px;padding:26px 22px 24px;min-height:235px;border:1px solid #88e8d866;border-radius:22px;text-decoration:none;color:#fff;background:linear-gradient(145deg,#14654a,#06422f);box-shadow:0 14px 30px #001e1829;transition:transform .15s,border-color .15s}
.welcome-option:nth-child(2){border-color:#d6c17b88;background:linear-gradient(145deg,#43563a,#183e2a)}
.welcome-option:hover{transform:translateY(-3px);border-color:#fff}.welcome-option:focus-visible{outline:3px solid #ead28c;outline-offset:4px}
.welcome-icon{display:grid;place-items:center;width:62px;height:62px;border-radius:17px;background:#ffffff0d;color:#eedb9c;margin-bottom:6px}.welcome-icon svg{width:44px;height:44px;fill:#194b35;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.welcome-option strong{font-size:23px;line-height:1.1;letter-spacing:-.025em}.welcome-option-detail{max-width:220px;font-size:13px;line-height:1.5;color:#cbe1d3}.welcome-arrow{position:absolute;right:20px;top:24px;font-size:25px;color:#e9dfba}.welcome-founded{font-size:9px;letter-spacing:.17em;color:#a8cbbd;margin:30px 0 0}
@media(max-width:520px){.welcome-view{padding:30px 20px 24px}.welcome-crest{width:70px;height:85px;margin-bottom:19px}.welcome-view h1{margin-bottom:24px}.welcome-view h1 span{font-size:15px}.welcome-options{grid-template-columns:1fr;gap:13px}.welcome-option{min-height:135px;padding:23px 52px 23px 103px;justify-content:center;gap:8px}.welcome-icon{position:absolute;left:22px;top:50%;transform:translateY(-50%);width:59px;height:65px;margin:0}.welcome-option strong{font-size:23px}.welcome-arrow{top:25px;right:19px}.welcome-founded{margin-top:24px}}
@media(prefers-reduced-motion:reduce){.welcome-option{transition:none}}

.welcome-crest{filter:url(#welcome-crest-white);border-radius:0;box-shadow:none;background:transparent}
