/* Torneo de la Marte: composición independiente con la identidad de la Liga. */
.marte-page { background:#f3f5f2; overflow-anchor:none; }
.marte-detail-open { overflow:hidden; }
[data-detail] { cursor:pointer; }
[data-detail] [tabindex="0"]:focus-visible,[data-detail][tabindex="0"]:focus-visible { outline:3px solid var(--gold-500); outline-offset:-3px; }
.marte-detail { width:min(1100px,calc(100vw - 40px)); max-height:calc(100dvh - 48px); margin:auto; padding:0; border:1px solid #dce4d7; border-radius:20px; color:var(--green-950); background:#fff; box-shadow:0 24px 80px #071d1640; }
.marte-detail[open] { display:flex; flex-direction:column; animation:marte-enter .2s ease both; }
.marte-detail::backdrop { background:rgb(7 29 22 / 65%); backdrop-filter:blur(5px); }
.marte-detail-heading { display:flex; flex:none; align-items:center; justify-content:space-between; gap:20px; padding:18px 24px; background:#edf3e8; border-bottom:1px solid #dce4d7; }
.marte-detail-heading h2 { margin:0; font-size:20px; }
.marte-detail-close { display:grid; place-items:center; width:40px; height:40px; flex:none; border:1px solid #cbd9c5; border-radius:50%; background:white; color:var(--green-800); font-size:28px; cursor:pointer; }
.marte-detail-close:hover { background:#dce9d4; }
.marte-detail-close:focus-visible { outline:3px solid var(--gold-500); outline-offset:2px; }
#marte-detail-body { padding:24px; overflow:auto; min-height:0; }
.marte-detail[data-kind="team"],.marte-detail[data-kind="group"] { width:min(620px,calc(100vw - 40px)); }
.marte-detail-team { display:flex; flex-direction:column; align-items:center; gap:24px; padding:20px; text-align:center; }
.marte-detail-team > .marte-crest { width:clamp(140px,25vh,240px); height:clamp(140px,25vh,240px); }
.marte-detail-team h3 { margin:0; font-size:clamp(20px,3vw,30px); line-height:1.25; }
.marte-detail .marte-group li { min-height:80px; }
.marte-detail .marte-group li strong { font-size:14px; }
.marte-detail .marte-group .marte-crest { width:48px; height:48px; }
.marte-detail[data-kind="match"] .marte-match { min-height:280px; border:0; gap:20px; }
.marte-detail[data-kind="match"] .marte-match-team { font-size:18px; gap:24px; align-self:center; }
.marte-detail[data-kind="match"] .marte-crest { width:120px; height:120px; }
.marte-detail[data-kind="match"] .marte-vs { font-size:18px; }
.marte-detail .marte-round { box-shadow:none; }
.marte-detail .marte-match-team { font-size:12px; }
.marte-detail-group-tabs { display:none; }
.marte-detail[data-kind="round"] { width:min(1300px,calc(100vw - 32px)); height:min(820px,calc(100dvh - 32px)); max-height:calc(100dvh - 32px); }
.marte-detail[data-kind="round"] .marte-detail-heading { padding:10px 20px; }
.marte-detail[data-kind="round"] #marte-detail-body { display:flex; flex:1; padding:14px; overflow:hidden; }
.marte-detail[data-kind="round"] .marte-round { flex:1; min-height:0; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); gap:12px; border:0; border-radius:0; overflow:visible; }
.marte-detail[data-kind="round"] .marte-matches { display:grid; grid-template-rows:32px repeat(2,minmax(0,1fr)); min-height:0; padding:0 10px 6px; border:1px solid #dce4d7; border-radius:10px; overflow:hidden; }
.marte-detail[data-kind="round"] .marte-matches h4 { margin:0 -10px; padding:8px 12px; font-size:11px; }
.marte-detail[data-kind="round"] .marte-match { min-height:0; padding:5px 0; gap:6px; }
.marte-detail[data-kind="round"] .marte-match-team { align-self:center; gap:5px; font-size:clamp(10px,1vw,12px); line-height:1.2; }
.marte-detail[data-kind="round"] .marte-crest { width:clamp(26px,5.5dvh,44px); height:clamp(26px,5.5dvh,44px); }
@media(max-width:680px) {
  .marte-detail-heading { padding:12px 16px; }
  #marte-detail-body { padding:14px; }
  .marte-detail[data-kind="match"] .marte-match-team { font-size:13px; }
  .marte-detail[data-kind="match"] .marte-crest { width:76px; height:76px; }
}
@media(prefers-reduced-motion:reduce) { .marte-detail[open] { animation:none; } }
.marte-wrap { padding-top:30px; padding-bottom:40px; color:var(--green-950); }
.marte-wrap [hidden] { display:none !important; }
.marte-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px; }
.marte-back { color:var(--green-800); font-size:13px; font-weight:650; text-decoration:none; }
.marte-edition { display:flex; align-items:center; gap:12px; font-size:12px; font-weight:800; letter-spacing:2px; }
.marte-edition i { width:24px; height:3px; background:var(--gold-500); }
.marte-hero { display:grid; grid-template-columns:1fr 1fr; min-height:380px; overflow:hidden; position:relative; background:linear-gradient(125deg,#fff 0%,#fff 53%,#f1f4ef 53%,#f1f4ef 70%,#e5eddf 70%); border:1px solid #e0e6dd; border-radius:22px; }
.marte-hero::after { content:""; position:absolute; bottom:0; left:0; right:0; height:8px; background:linear-gradient(90deg,var(--green-800) 0 62%,var(--gold-500) 62% 79%,#86bc25 79%); }
.marte-light-sweep { position:absolute; z-index:2; top:-38%; left:-42%; width:24%; height:176%; pointer-events:none; background:linear-gradient(90deg,transparent,rgb(255 255 255 / 10%) 25%,rgb(255 255 255 / 42%) 50%,rgb(255 255 255 / 10%) 75%,transparent); filter:blur(8px); transform:translateX(0) rotate(40deg); animation:marte-light-sweep 11.7s ease-in-out infinite; }
@keyframes marte-light-sweep {
  0% { transform:translateX(0) rotate(40deg); opacity:0; }
  7% { opacity:.65; }
  42% { transform:translateX(610%) rotate(40deg); opacity:.65; }
  49%,100% { transform:translateX(610%) rotate(40deg); opacity:0; }
}
.marte-hero-copy { padding:48px 42px; position:relative; z-index:1; }
.marte-eyebrow { display:block; font-size:10px; line-height:1.6; font-weight:800; letter-spacing:2px; color:var(--green-700); }
.marte-hero h1 { margin:16px 0; font-size:clamp(42px,5vw,72px); line-height:1.02; letter-spacing:-3px; font-weight:900; }
.marte-hero h1 em { color:var(--green-700); font-style:normal; }
.marte-hero p { color:#5b6b60; font-size:15px; line-height:1.7; margin:0; }
.marte-facts { display:flex; margin-top:28px; gap:28px; }
.marte-facts span { display:flex; flex-direction:column; gap:3px; font-size:9px; letter-spacing:2px; font-weight:700; }
.marte-facts b { font-size:25px; letter-spacing:-1px; line-height:1.2; }
.marte-tournament-logo { display:flex; align-items:center; justify-content:center; padding:35px; }
.marte-tournament-logo img { width:100%; height:310px; object-fit:contain; filter:drop-shadow(0 14px 14px #133e151a); }
.marte-draw { margin-top:44px; scroll-margin-top:100px; }
.marte-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:22px; }
.marte-section-heading h2 { margin:4px 0 0; font-size:32px; letter-spacing:-1px; font-weight:850; scroll-margin-top:110px; }
.marte-status { border:1px solid #d7e1d4; border-radius:30px; color:var(--green-800); font-size:10px; font-weight:800; letter-spacing:1px; padding:9px 14px; background:#fff; white-space:nowrap; }
#draw-stage { border:1px solid #dfe6db; border-radius:20px; padding:32px; background:white; box-shadow:0 8px 32px #17351b05; }
.marte-welcome { display:grid; grid-template-columns:1fr 1fr; gap:40px; align-items:center; padding:12px; }
.marte-welcome h3,.marte-group-reveal h3 { font-size:clamp(26px,3vw,40px); line-height:1.15; letter-spacing:-1.3px; margin:15px 0; }
.marte-welcome p,.marte-result-heading p,.marte-group-reveal p { color:#677268; font-size:14px; line-height:1.7; max-width:430px; }
.marte-button { border:1px solid transparent; background:var(--green-800); color:#fff; border-radius:10px; padding:14px 23px; font-family:inherit; font-size:14px; font-weight:750; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:24px; min-height:48px; transition:background .2s,transform .2s; }
.marte-button:hover { background:var(--green-700); transform:translateY(-1px); }
a.marte-button { text-decoration:none; }
.marte-button:focus-visible,.marte-options button:focus-visible { outline:3px solid #efb900; outline-offset:4px; }
.marte-button-quiet { color:var(--green-800); background:#fff; border-color:#dbe3d8; }
.marte-button-quiet:hover { background:#f0f5ed; }
.marte-button:disabled { opacity:.4; cursor:not-allowed; transform:none; }
.marte-welcome .marte-button { margin-top:12px; }
.marte-waiting { display:inline-flex; align-items:center; gap:9px; font-size:12px; font-weight:700; color:#57715d; margin-top:18px; }
.marte-waiting i { width:7px; height:7px; border-radius:50%; background:#8cb535; }
.marte-crest-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.marte-crest-grid>div { display:flex; justify-content:center; align-items:center; aspect-ratio:1; background:#f4f6f1; border:1px solid #e5ebdf; border-radius:12px; padding:9px; }
.marte-crest { display:inline-flex; justify-content:center; align-items:center; width:72px; height:72px; flex:none; }
.marte-crest img { width:100%; height:100%; object-fit:contain; }
.marte-crest-dark { background:#0155BB; border-radius:8px; padding:5px; }
.marte-crest-grid .marte-crest { width:100%; height:100%; }
.marte-progress { display:flex; align-items:center; justify-content:space-between; color:#6b7c6e; font-size:10px; letter-spacing:2px; padding-bottom:18px; border-bottom:1px solid #e4e9e0; }
.marte-progress b { font-size:23px; color:var(--green-800); letter-spacing:-1px; }
.marte-progress small { font-size:13px; color:#829080; font-weight:500; }
.marte-team-stage { display:grid; grid-template-columns:1.2fr 1fr; align-items:center; gap:40px; min-height:365px; padding:30px 14px; }
.marte-team-copy { animation:marte-enter .4s ease both; }
.marte-team-copy h3 { font-size:clamp(28px,3.8vw,48px); line-height:1.08; letter-spacing:-1.6px; margin:12px 0 22px; overflow-wrap:anywhere; }
.marte-team-emblem { display:flex; justify-content:center; align-items:center; }
.marte-team-emblem .marte-crest { width:250px; height:250px; padding:15px; filter:drop-shadow(0 12px 8px #183a1314); }
.marte-team-emblem .marte-crest-dark { padding:25px; }
.marte-present-hint { color:#758270; font-size:14px; }
.marte-countdown { display:block; height:3px; background:var(--gold-500); width:100%; margin-top:30px; transform-origin:left; animation:marte-countdown 5s linear both; }
.marte-picker p { font-size:12px; font-weight:650; color:#5a6d5e; margin:18px 0 9px; }
.marte-options { display:flex; flex-wrap:wrap; gap:10px; }
.marte-options button { border:1px solid #dce5d5; border-radius:10px; width:64px; height:52px; background:#f5f8f1; color:var(--green-800); font-family:inherit; font-size:20px; font-weight:800; cursor:pointer; }
.marte-options button:hover { border-color:var(--green-700); }
.marte-options button.is-selected { color:white; border-color:var(--green-800); background:var(--green-800); box-shadow:0 0 0 3px #e0eecf; }
.marte-actions { display:flex; justify-content:space-between; gap:14px; border-top:1px solid #e4e9e0; padding-top:22px; margin-top:12px; }
.marte-group-reveal { display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; padding:15px 10px 30px; animation:marte-enter .45s ease both; }
.marte-group { border:1px solid #dce4d7; border-radius:14px; overflow:hidden; background:white; min-width:0; }
.marte-group header { display:flex; align-items:center; gap:10px; background:var(--green-800); color:white; padding:16px 18px; border-bottom:4px solid var(--gold-500); }
.marte-group header span { font-size:10px; letter-spacing:2px; font-weight:700; }
.marte-group header h3 { font-size:32px; line-height:1; margin:0; color:white; }
.marte-group header b { font-size:11px; margin-left:auto; font-weight:500; color:#cde4cf; }
.marte-group ol { list-style:none; padding:0; margin:0; }
.marte-group li { display:flex; align-items:center; gap:10px; padding:13px 12px; min-height:92px; border-bottom:1px solid #ebefe7; }
.marte-group li:last-child { border-bottom:0; }
.marte-group .marte-crest { width:40px; height:40px; }
.marte-group li strong { font-size:11px; line-height:1.4; font-weight:750; overflow-wrap:anywhere; }
.marte-position { font-size:10px; font-weight:750; color:#77856f; flex:none; }
.marte-slot-empty { font-size:12px; color:#8d9886; }
.marte-group li.is-new { background:#f1f7e6; box-shadow:inset 3px 0 #84b835; animation:marte-enter .5s ease both; }
.marte-group { transition:border-color .25s ease,box-shadow .25s ease; }
.marte-group li { transition:background-color .25s ease,box-shadow .25s ease; }
.marte-group .marte-crest { transition:transform .25s ease,filter .25s ease; }
@media(hover:hover) and (pointer:fine) {
  .marte-group:hover { border-color:var(--group-color,var(--green-800)); box-shadow:0 5px 14px rgb(7 29 22 / 12%); }
  .marte-group li:hover { background:#f0f5ec; box-shadow:inset 3px 0 var(--group-color,var(--green-800)); }
  .marte-group li:hover .marte-crest { transform:scale(1.12); filter:drop-shadow(0 3px 3px rgb(7 29 22 / 15%)); }
}
.marte-result-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin-bottom:25px; }
.marte-result-heading h3 { font-size:24px; letter-spacing:-.7px; margin:0 0 6px; }
.marte-result-heading p { margin:0; }
.marte-save-actions { display:flex; flex-wrap:wrap; gap:10px; flex:none; }
.marte-groups { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.marte-published { font-size:10px; color:var(--green-700); font-weight:800; letter-spacing:1px; }
.marte-message { padding:14px 18px; border:1px solid #d8dfb0; background:#f7f9e9; border-radius:10px; color:#36532c; font-size:14px; }
.marte-access { text-align:right; font-size:12px; margin:14px 0 0; }
.marte-access a { color:var(--green-800); text-decoration:none; }
.marte-restart { display:flex; justify-content:flex-end; margin-bottom:18px; }
.marte-seed-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.marte-seed-card { display:flex; flex-direction:column; align-items:center; gap:18px; padding:24px 14px; border:1px solid #dce5d5; border-radius:14px; background:#f5f8f1; color:var(--green-800); font-family:inherit; cursor:pointer; }
.marte-seed-card .marte-crest { width:130px; height:130px; }
.marte-seed-card strong { font-size:12px; line-height:1.5; min-height:54px; display:flex; align-items:center; justify-content:center; text-align:center; }
.marte-seed-card:hover { border-color:var(--green-700); background:#edf4e6; }
.marte-seed-card:focus-visible { outline:3px solid var(--gold-500); outline-offset:3px; }
@media(max-width:680px) { .marte-seed-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; } .marte-seed-card { padding:18px 10px; } .marte-seed-card .marte-crest { width:90px; height:90px; } .marte-seed-card strong { font-size:10px; min-height:60px; } }
.marte-calendar { margin-top:42px; }
#calendar-title { display:flex; align-items:center; gap:12px; }
.marte-calendar-icon { width:1em; height:1em; flex:none; color:var(--green-700); }
.marte-calendar-note { font-size:13px; color:#64755d; margin-top:-8px; margin-bottom:24px; }
.marte-rounds { display:grid; grid-template-columns:1fr; gap:32px; }
.marte-round { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); background:white; border:1px solid #dce4d7; border-radius:15px; overflow:hidden; }
.marte-round>h3 { grid-column:1 / -1; display:flex; align-items:center; gap:16px; margin:0; padding:18px 22px; font-size:18px; background:#e9efe3; color:var(--green-800); }
.marte-round>h3>span { font-size:24px; color:#849e6e; }
.marte-matches { min-width:0; padding:20px 24px 12px; border-bottom:1px solid #e9eee3; }
.marte-matches:nth-child(even) { border-right:1px solid #e9eee3; }
.marte-matches .marte-match:last-child { border-bottom:0; }
.marte-matches h4 { margin:-20px -24px 12px; padding:12px 24px; font-size:12px; letter-spacing:2px; color:#fff; background:var(--group-color,var(--green-800)); }
[data-group-letter="A"] { --group-color:#0f4b34; }
[data-group-letter="B"] { --group-color:#185a86; }
[data-group-letter="C"] { --group-color:#804323; }
[data-group-letter="D"] { --group-color:#63467f; }
.marte-group[data-group-letter] header { background:var(--group-color); }
.marte-group[data-group-letter] header b { color:#fff; }
.marte-match { display:grid; grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr); gap:6px; align-items:center; padding:12px 0; border-bottom:1px solid #e9eee3; min-height:120px; }
.marte-match-team { display:flex; flex-direction:column; align-items:center; text-align:center; align-self:start; gap:8px; font-size:10px; line-height:1.4; font-weight:700; }
.marte-match .marte-crest { width:42px; height:42px; }
.marte-round { transition:box-shadow .25s ease,border-color .25s ease; }
.marte-matches { transition:background-color .25s ease; }
.marte-match { transition:background-color .25s ease,box-shadow .25s ease; }
.marte-match .marte-crest { transition:transform .25s ease,filter .25s ease; }
@media(hover:hover) and (pointer:fine) {
  .marte-round:hover { border-color:#a9bea4; box-shadow:0 8px 24px rgb(7 29 22 / 9%); }
  .marte-matches:hover { background-color:#f8faf6; }
  .marte-match:hover { background-color:#eef4e9; box-shadow:inset 3px 0 var(--group-color,var(--green-800)); }
  .marte-match-team:hover .marte-crest { transform:translateY(-2px) scale(1.1); filter:drop-shadow(0 4px 4px rgb(7 29 22 / 16%)); }
}
.marte-vs { font-size:9px; font-weight:800; color:#98a28e; text-align:center; }
.marte-partners { display:flex; flex-direction:column; align-items:center; gap:18px; margin-top:46px; padding:32px; text-align:center; border-top:1px solid #dce4d6; }
.marte-partners img { width:320px; max-width:100%; height:130px; object-fit:contain; }
@keyframes marte-enter { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@keyframes marte-countdown { from { transform:scaleX(0); } to { transform:scaleX(1); } }
@media(max-width:1000px) {
 .marte-hero-copy { padding:32px; } .marte-tournament-logo { padding:24px; }
 .marte-groups { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .marte-result-heading { align-items:flex-start; flex-direction:column; }
 .marte-team-emblem .marte-crest { width:210px; height:210px; }
 .marte-welcome { gap:24px; padding:0; }
}
@media(max-width:680px) {
 .marte-wrap { padding-top:22px; } .marte-edition { font-size:9px; gap:8px; letter-spacing:1px; }
 .marte-hero { grid-template-columns:1fr; }
 .marte-hero-copy { padding:30px 25px 12px; }
 .marte-hero h1 { letter-spacing:-2px; font-size:48px; }
 .marte-eyebrow { font-size:9px; letter-spacing:1.4px; }
 .marte-tournament-logo { padding:8px 30px 24px; } .marte-tournament-logo img { height:200px; }
 .marte-facts { gap:30px; margin-top:22px; }
 .marte-section-heading { align-items:flex-start; } .marte-section-heading h2 { font-size:26px; }
 .marte-status { font-size:8px; letter-spacing:.4px; padding:8px 10px; }
 #draw-stage { padding:20px 16px; }
 .marte-welcome { grid-template-columns:1fr; gap:28px; }
 .marte-crest-grid { gap:8px; } .marte-crest-grid>div { padding:9px; }
 .marte-team-stage { grid-template-columns:1fr; gap:18px; padding:25px 0; }
 .marte-team-emblem { grid-row:1; } .marte-team-emblem .marte-crest { width:150px; height:150px; }
 .marte-team-copy h3 { font-size:30px; } .marte-options button { width:54px; }
 .marte-actions { gap:8px; } .marte-button { font-size:12px; padding:12px 14px; gap:10px; }
 .marte-group-reveal { grid-template-columns:1fr; gap:20px; padding:0 0 20px; }
 .marte-groups { grid-template-columns:1fr; gap:18px; }
 .marte-group li { min-height:76px; } .marte-group li strong { font-size:12px; }
 .marte-round { grid-template-columns:1fr; } .marte-matches:nth-child(even) { border-right:0; } .marte-match-team { font-size:12px; }
 .marte-match { min-height:125px; } .marte-match .marte-crest { width:48px; height:48px; }
 .marte-partners { padding:26px 5px; }
}
@media(prefers-reduced-motion:reduce) {
 .marte-wrap *, .marte-wrap *::before, .marte-wrap *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
}

/* Presentación unificada: identidad, patrocinadores, acceso y equipos. */
.marte-hero { --marte-card-height:min(760px,calc(100svh - 180px)); }
.marte-edition { position:absolute; top:18px; right:28px; z-index:3; }
.marte-chevron { display:inline-block; width:9px; height:9px; border-top:2px solid currentColor; border-right:2px solid currentColor; transform:rotate(45deg); flex:none; }
.marte-access-link { display:inline-flex; align-items:center; gap:12px; }
.marte-wrap { width:min(1240px,calc(100% - 48px)); padding:20px 0 28px; }
.marte-heading { margin-bottom:16px; }
.marte-hero { min-height:0; height:var(--marte-card-height); overflow:clip; padding-top:34px; grid-template-columns:1fr 1fr; grid-template-rows:minmax(0,1fr) auto; }
.marte-hero-copy { padding:20px 44px; display:flex; flex-direction:column; justify-content:center; }
.marte-hero h1 { font-size:clamp(48px,calc(10svh - 8px),68px); margin:16px 0; }
.marte-brand { padding:22px 30px 18px; display:flex; flex-direction:column; justify-content:center; align-items:center; }
.marte-tournament-logo { width:100%; padding:0; }
.marte-tournament-logo img { height:clamp(160px,calc(40svh - 70px),260px); }
.marte-partners { border:0; padding:0; margin:12px 0 0; gap:6px; }
.marte-partners .marte-eyebrow { font-size:10px; letter-spacing:1.4px; }
.marte-partners img { width:260px; height:90px; }
.marte-hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin-top:24px; }
.marte-hero-actions .marte-waiting { margin:0; }
.marte-access-link { color:var(--green-800); font-size:12px; font-weight:700; text-decoration:underline; text-underline-offset:4px; }
.marte-team-strip { grid-column:1 / -1; display:grid; grid-template-columns:repeat(16,minmax(0,1fr)); gap:6px; padding:14px 20px 20px; background:rgb(255 255 255 / 22%); border-top:1px solid rgb(255 255 255 / 55%); backdrop-filter:blur(5px); -webkit-backdrop-filter:blur(5px); box-shadow:inset 0 1px 0 rgb(255 255 255 / 30%); }
.marte-strip-team { display:flex; align-items:center; justify-content:center; min-width:0; aspect-ratio:1; }
.marte-team-strip .marte-crest { width:100%; height:100%; max-width:64px; max-height:64px; transition:transform .3s ease,filter .3s ease; }
.marte-strip-team.is-spotlight .marte-crest { animation:marte-crest-wave 1.5s ease-in-out both; }
.marte-strip-team.is-hovered .marte-crest { transform:scale(1.09); filter:drop-shadow(0 4px 4px rgb(7 29 22 / 14%)); }
@keyframes marte-crest-wave {
  0%,100% { transform:scale(1); filter:drop-shadow(0 0 0 transparent); }
  40%,60% { transform:scale(1.09); filter:drop-shadow(0 4px 4px rgb(7 29 22 / 14%)); }
}
@media(hover:hover) { .marte-strip-team:hover .marte-crest { transform:scale(1.09); filter:drop-shadow(0 4px 4px rgb(7 29 22 / 14%)); } }
.marte-partner-art { --partner-height:clamp(70px,12svh,100px); position:relative; max-width:100%; width:calc(var(--partner-height) * 919 / 443); height:var(--partner-height); }
.marte-wrap .marte-hero .marte-partners .marte-partner-art img { display:block; width:100%; height:100%; transition:transform .3s ease,filter .3s ease; }
@media(hover:hover) { .marte-partner-art:hover img { transform:scale(1.06); filter:drop-shadow(0 4px 4px rgb(7 29 22 / 14%)); } }
.marte-partner-art:focus-within img { transform:scale(1.06); filter:drop-shadow(0 4px 4px rgb(7 29 22 / 14%)); }
.marte-wrap:not([data-phase="welcome"]) .marte-partner-art { --partner-height:60px; }
.marte-victoria-link { position:absolute; top:0; bottom:0; left:0; width:55%; border-radius:8px; }
.marte-victoria-link:focus-visible { outline:3px solid var(--gold-500); outline-offset:3px; }
@media(min-width:681px) and (max-height:700px) {
  .marte-hero .marte-message { padding:5px 10px; font-size:11px; }
  .marte-hero-copy { padding:12px 44px; }
  .marte-hero h1 { margin:12px 0; }
  .marte-hero-actions { margin-top:14px; }
  .marte-brand { padding:12px 30px; }
}
.marte-wrap[data-phase="welcome"] .marte-draw { display:none; }
.marte-wrap:not([data-phase="welcome"]) .marte-hero-copy,
.marte-wrap:not([data-phase="welcome"]) .marte-team-strip { display:none; }
.marte-wrap:not([data-phase="welcome"]) .marte-hero { grid-template-rows:76px minmax(0,1fr); padding-top:30px; }
.marte-wrap:not([data-phase="welcome"]) .marte-brand { grid-column:1 / -1; flex-direction:row; justify-content:space-between; gap:24px; padding:0 28px 8px; }
.marte-wrap:not([data-phase="welcome"]) .marte-tournament-logo { width:150px; }
.marte-wrap:not([data-phase="welcome"]) .marte-tournament-logo img { height:68px; }
.marte-wrap:not([data-phase="welcome"]) .marte-partners { margin:0; gap:3px; }
.marte-wrap:not([data-phase="welcome"]) .marte-partners .marte-eyebrow { font-size:8px; letter-spacing:1px; }
.marte-wrap:not([data-phase="welcome"]) .marte-partner-art { --partner-height:44px; }
.marte-wrap:not([data-phase="welcome"]) .marte-draw { grid-column:1 / -1; margin:0; padding:0 24px 18px; min-height:0; display:flex; flex-direction:column; }
.marte-hero .marte-section-heading { margin-bottom:10px; min-height:34px; }
.marte-hero .marte-section-heading .marte-eyebrow { display:none; }
.marte-hero .marte-section-heading h2 { font-size:22px; margin:0; }
.marte-hero #draw-stage { padding:16px 20px; min-height:0; flex:1; overflow:auto; display:flex; flex-direction:column; container-type:size; background:rgb(255 255 255 / 65%); }
.marte-hero .marte-result-heading { flex:none; margin-bottom:12px; gap:16px; }
.marte-hero .marte-result-heading h3 { font-size:clamp(20px,7cqh,28px); }
.marte-hero .marte-result-heading p { font-size:12px; max-width:none; }
.marte-hero .marte-seed-grid { display:flex; flex-wrap:wrap; justify-content:center; flex:1; min-height:0; gap:16px; }
.marte-hero .marte-seed-card { flex:0 0 calc((100% - 48px) / 4); min-width:0; justify-content:center; min-height:0; padding:12px; gap:12px; }
.marte-hero .marte-seed-card .marte-crest { width:clamp(60px,33cqh,140px); height:clamp(60px,33cqh,140px); }
.marte-hero .marte-seed-card strong { min-height:34px; font-size:12px; }
.marte-hero .marte-team-stage { flex:1; min-height:0; grid-template-columns:1.5fr 1fr; padding:8px 16px; gap:28px; }
.marte-hero .marte-team-copy h3 { font-size:clamp(22px,8cqh,38px); margin:8px 0 12px; letter-spacing:-.8px; }
.marte-hero .marte-team-emblem .marte-crest { width:clamp(120px,62cqh,250px); height:clamp(120px,62cqh,250px); }
.marte-hero .marte-progress { padding-bottom:6px; flex:none; }
.marte-hero .marte-progress b { font-size:18px; }
.marte-hero .marte-picker p { margin:8px 0; font-size:12px; }
.marte-hero .marte-options { gap:8px; }
.marte-hero .marte-options button { width:48px; height:42px; font-size:18px; }
.marte-wrap[data-phase="choose"] .marte-picker { display:grid; grid-template-columns:1fr 1fr; column-gap:20px; }
.marte-wrap[data-phase="choose"] .marte-picker > :nth-child(3) { grid-column:2; grid-row:1; }
.marte-wrap[data-phase="choose"] .marte-picker > :nth-child(4) { grid-column:2; grid-row:2; }
.marte-hero .marte-actions { flex:none; align-items:center; padding-top:10px; margin-top:12px; gap:12px; }
.marte-hero .marte-actions > button { order:1; }
.marte-hero .marte-actions > button[data-action="next"] { order:3; }
.marte-hero .marte-actions .marte-button { min-height:36px; padding:8px 16px; font-size:12px; }
.marte-hero .marte-restart { order:2; position:static; margin:0 auto; }
.marte-hero .marte-restart .marte-button { background:transparent; border-color:transparent; font-size:11px; }
.marte-hero .marte-group-reveal { flex:1; min-height:0; padding:0 12px; gap:36px; }
.marte-hero .marte-group-reveal > .marte-group { height:100%; }
.marte-hero .marte-group-reveal > div > h3 { font-size:clamp(22px,8cqh,38px); }
.marte-hero .marte-groups { flex:1; min-height:0; gap:12px; }
.marte-hero .marte-group { display:flex; flex-direction:column; }
.marte-hero .marte-group ol { flex:1; min-height:0; display:grid; grid-template-rows:repeat(4,minmax(0,1fr)); }
.marte-hero .marte-group li { min-height:0; padding:6px 8px; gap:7px; }
.marte-hero .marte-group .marte-crest { width:30px; height:30px; }
.marte-hero .marte-group li strong { font-size:10px; line-height:1.2; }
.marte-hero .marte-group header { flex:none; padding:8px 12px; }
.marte-hero .marte-group header h3 { font-size:24px; }
.marte-hero .marte-save-actions .marte-button { min-height:36px; padding:8px 14px; font-size:12px; }
.marte-wrap:is([data-phase="summary"],[data-phase="published"]) #draw-stage { padding:12px 20px; }
.marte-wrap:is([data-phase="summary"],[data-phase="published"]) .marte-hero .marte-section-heading { display:none; }
.marte-wrap:is([data-phase="summary"],[data-phase="published"]) .marte-result-heading { margin-bottom:8px; }
.marte-hero .marte-groups .marte-group ol { grid-template-rows:repeat(4,minmax(48px,1fr)); }
.marte-hero .marte-groups { min-height:236px; }
.marte-wrap:is([data-phase="summary"],[data-phase="published"]) .marte-actions { margin-top:8px; }
.marte-hero .marte-groups .marte-group li { padding:6px 7px; }
.marte-hero .marte-groups .marte-group header { padding:6px 12px; }
@media(min-width:1001px) and (max-height:700px) {
  .marte-wrap:is([data-phase="summary"],[data-phase="published"]) .marte-hero { grid-template-rows:60px minmax(0,1fr); }
  .marte-wrap:is([data-phase="summary"],[data-phase="published"]) .marte-tournament-logo img { height:52px; }
  .marte-wrap:is([data-phase="summary"],[data-phase="published"]) .marte-partner-art { --partner-height:34px; }
  .marte-wrap:is([data-phase="summary"],[data-phase="published"]) #draw-stage { padding:8px 20px; }
  .marte-wrap:is([data-phase="summary"],[data-phase="published"]) .marte-result-heading { margin-bottom:4px; }
  .marte-wrap:is([data-phase="summary"],[data-phase="published"]) .marte-result-heading p { display:none; }
}
@media(min-width:681px) and (max-width:1000px) {
  .marte-wrap:is([data-phase="summary"],[data-phase="published"]) .marte-hero { height:auto; }
  .marte-wrap:is([data-phase="summary"],[data-phase="published"]) #draw-stage { container-type:normal; overflow:visible; flex:none; }
  .marte-wrap:is([data-phase="summary"],[data-phase="published"]) .marte-groups { flex:none; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .marte-wrap:is([data-phase="summary"],[data-phase="published"]) .marte-group { min-height:280px; }
}
@media(max-width:680px) {
  .marte-wrap { width:calc(100% - 24px); padding:12px 0 68px; }
  .marte-hero,.marte-wrap:not([data-phase="welcome"]) .marte-hero { height:auto; min-height:0; grid-template-columns:minmax(0,1fr); grid-template-rows:auto; padding-top:32px; border-radius:20px; }
  .marte-edition { top:12px; left:16px; right:16px; justify-content:center; font-size:9px; }
  .marte-hero-copy { padding:14px 20px 8px; text-align:center; }
  .marte-hero-copy .marte-eyebrow { font-size:9px; letter-spacing:1px; }
  .marte-hero h1 { font-size:38px; margin:10px 0; letter-spacing:-1.5px; }
  .marte-hero p { font-size:13px; }
  .marte-hero-actions { margin-top:14px; justify-content:center; }
  .marte-hero-actions .marte-button { width:100%; min-height:46px; }
  .marte-brand { padding:10px 20px 14px; }
  .marte-tournament-logo img { height:120px; }
  .marte-partners { margin-top:6px; }
  .marte-partners .marte-eyebrow { font-size:8px; letter-spacing:1px; }
  .marte-partner-art { --partner-height:48px; }
  .marte-team-strip { grid-template-columns:repeat(8,minmax(0,1fr)); gap:8px 5px; padding:12px 12px 18px; }
  .marte-team-strip .marte-crest-dark { padding:1px; border-radius:3px; }
  .marte-wrap:not([data-phase="welcome"]) .marte-brand { padding:4px 16px 12px; gap:10px; }
  .marte-wrap:not([data-phase="welcome"]) .marte-tournament-logo { width:88px; flex:none; }
  .marte-wrap:not([data-phase="welcome"]) .marte-tournament-logo img { height:58px; }
  .marte-wrap:not([data-phase="welcome"]) .marte-partner-art { --partner-height:36px; }
  .marte-wrap:not([data-phase="welcome"]) .marte-partners .marte-eyebrow { font-size:7px; letter-spacing:.4px; }
  .marte-wrap:not([data-phase="welcome"]) .marte-draw { padding:0 10px 16px; }
  .marte-hero .marte-section-heading { align-items:center; padding:0 4px; gap:8px; }
  .marte-hero .marte-section-heading h2 { font-size:21px; }
  .marte-status { font-size:8px; padding:8px 9px; letter-spacing:.4px; white-space:normal; text-align:center; }
  .marte-hero #draw-stage,.marte-wrap:is([data-phase="summary"],[data-phase="published"]) #draw-stage { container-type:normal; flex:none; overflow:visible; padding:14px 12px; border-radius:16px; }
  .marte-hero .marte-result-heading { align-items:stretch; flex-direction:column; gap:12px; margin-bottom:14px; }
  .marte-hero .marte-result-heading h3 { font-size:22px; line-height:1.2; }
  .marte-hero .marte-result-heading p { font-size:12px; line-height:1.5; }
  .marte-hero .marte-seed-grid { flex:none; min-height:0; gap:10px; }
  .marte-hero .marte-seed-card { flex-basis:calc((100% - 10px) / 2); min-height:150px; padding:12px 6px; gap:10px; }
  .marte-hero .marte-seed-card .marte-crest { width:76px; height:76px; }
  .marte-hero .marte-seed-card strong { font-size:10px; min-height:42px; overflow-wrap:anywhere; }
  .marte-hero .marte-team-stage { flex:none; grid-template-columns:minmax(0,1fr); min-height:0; padding:8px 2px; gap:14px; }
  .marte-hero .marte-team-emblem { grid-row:1; }
  .marte-hero .marte-team-emblem .marte-crest { width:108px; height:108px; padding:8px; }
  .marte-hero .marte-team-copy { text-align:center; min-width:0; }
  .marte-hero .marte-team-copy h3 { font-size:22px; line-height:1.2; margin:8px 0 14px; overflow-wrap:normal; }
  .marte-hero .marte-countdown { margin-top:16px; }
  .marte-wrap[data-phase="choose"] .marte-picker { display:block; }
  .marte-hero .marte-picker p { font-size:12px; margin:12px 0 8px; }
  .marte-hero .marte-options { justify-content:center; gap:8px; }
  .marte-hero .marte-options button { width:52px; height:46px; }
  .marte-hero .marte-actions { display:flex; flex-wrap:wrap; gap:8px; padding-top:12px; margin-top:14px; }
  .marte-hero .marte-actions > button { flex:1; }
  .marte-hero .marte-actions .marte-button,.marte-hero .marte-save-actions .marte-button { min-height:44px; padding:10px; font-size:12px; gap:8px; }
  .marte-hero .marte-restart { order:4; width:100%; justify-content:center; }
  .marte-hero .marte-restart .marte-button { min-height:44px; }
  .marte-hero .marte-save-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
  .marte-hero .marte-group-reveal { flex:none; grid-template-columns:minmax(0,1fr); min-height:0; padding:0; gap:18px; }
  .marte-hero .marte-group-reveal > div { text-align:center; }
  .marte-hero .marte-group-reveal > div > h3 { font-size:23px; line-height:1.2; }
  .marte-hero .marte-group-reveal > .marte-group { height:auto; }
  .marte-hero .marte-groups { flex:none; grid-template-columns:minmax(0,1fr); min-height:0; gap:16px; }
  .marte-hero .marte-group ol,.marte-hero .marte-groups .marte-group ol { grid-template-rows:repeat(4,minmax(64px,auto)); }
  .marte-hero .marte-group li,.marte-hero .marte-groups .marte-group li { padding:10px; gap:9px; }
  .marte-hero .marte-group li strong { font-size:12px; line-height:1.35; }
  .marte-hero .marte-group .marte-crest { width:36px; height:36px; }
  .marte-hero .marte-group header,.marte-hero .marte-groups .marte-group header { padding:12px; }
  .marte-calendar { margin-top:28px; }
  #calendar-title { font-size:23px; line-height:1.2; letter-spacing:-.5px; gap:9px; }
  .marte-rounds { gap:24px; }
  .marte-round>h3 { padding:14px 16px; font-size:18px; }
  .marte-matches { padding:18px 14px 8px; }
  .marte-matches h4 { margin:-18px -14px 8px; padding:12px 14px; }
  .marte-match { min-height:142px; gap:8px; }
  .marte-match-team { font-size:11px; line-height:1.35; }
  .marte-detail { width:calc(100vw - 24px); max-height:calc(100dvh - 24px); border-radius:18px; }
  .marte-detail[data-kind="team"],.marte-detail[data-kind="group"] { width:calc(100vw - 24px); }
  .marte-detail-heading { padding:10px 14px; gap:10px; }
  .marte-detail-heading h2 { font-size:17px; }
  .marte-detail-close { width:44px; height:44px; }
  #marte-detail-body { padding:12px; }
  .marte-detail-team { padding:10px 4px; gap:16px; }
  .marte-detail-team h3 { font-size:21px; }
  .marte-detail-team > .marte-crest { width:min(170px,24dvh); height:min(170px,24dvh); }
  .marte-detail .marte-group li { min-height:68px; padding:8px; gap:8px; }
  .marte-detail .marte-group li strong { font-size:12px; line-height:1.3; }
  .marte-detail .marte-group .marte-crest { width:36px; height:36px; }
  .marte-detail[data-kind="match"] .marte-match { min-height:240px; gap:8px; }
  .marte-detail[data-kind="match"] .marte-match-team { font-size:13px; line-height:1.3; gap:16px; }
  .marte-detail[data-kind="match"] .marte-crest { width:76px; height:76px; }
  .marte-detail[data-kind="round"] { width:calc(100vw - 24px); height:min(680px,calc(100dvh - 24px)); max-height:calc(100dvh - 24px); }
  .marte-detail[data-kind="round"] #marte-detail-body { flex-direction:column; padding:10px; gap:10px; }
  .marte-detail-group-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; flex:none; }
  .marte-detail-group-tabs button { min-height:44px; border:1px solid #dce4d7; border-radius:8px; font:inherit; font-size:12px; font-weight:700; color:var(--green-800); background:#f5f8f1; cursor:pointer; }
  .marte-detail-group-tabs button[aria-pressed="true"] { color:white; background:var(--green-800); }
  .marte-detail[data-kind="round"] .marte-round { display:flex; }
  .marte-detail[data-kind="round"] .marte-matches { display:none; flex:1; padding:0 8px 6px; }
  .marte-detail[data-kind="round"] .marte-matches[data-mobile-selected="true"] { display:grid; }
  .marte-detail[data-kind="round"] .marte-matches h4 { margin:0 -8px; }
  .marte-detail[data-kind="round"] .marte-match-team { font-size:12px; line-height:1.3; gap:10px; }
  .marte-detail[data-kind="round"] .marte-crest { width:44px; height:44px; }
}
