/* M14.4: identidad de juego compartida por detalle, archivo y proyector. */
.wf-tournament,
.wf-tournament-list,
.wf-tournament-projector {
  --wf-game-accent: #9c1e46;
  --wf-game-accent-soft: #f1d582;
  --wf-game-hero-start: #380b25;
  --wf-game-hero-end: #831e41;
}
.wf-tournament[data-game="crema_infantil"],
.wf-tournament-projector[data-game="crema_infantil"] {
  --wf-game-accent: #ae4f08;
  --wf-game-accent-soft: #ffe08a;
  --wf-game-hero-start: #66300b;
  --wf-game-hero-end: #c46319;
}
html[data-bs-theme="dark"] .wf-tournament,
html[data-bs-theme="dark"] .wf-tournament-list {
  --wf-game-accent: #f1a2bd;
}
html[data-bs-theme="dark"] .wf-tournament[data-game="crema_infantil"] {
  --wf-game-accent: #ffcb87;
}
.wf-tournament,
.wf-tournament-list { max-width: 1600px; margin-inline: auto; }
.wf-tournament-breadcrumb a { font-weight: 600; }
.wf-tournament-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 3.5rem);
  padding: clamp(1.25rem, 3.5vw, 3rem);
  border-radius: 1.5rem;
  background: linear-gradient(115deg, var(--wf-game-hero-start), var(--wf-game-hero-end));
  color: #fff;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, .18);
}
.wf-tournament-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 32rem;
  aspect-ratio: 1;
  right: -10rem;
  top: -15rem;
  border: 3rem solid rgba(255, 255, 255, .06);
  border-radius: 50%;
}
.wf-tournament-hero__logo {
  min-height: 12rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 1.25rem;
  background: #fff8e9;
}
.wf-tournament-hero__logo img { display: block; max-width: 88%; max-height: 13.5rem; object-fit: contain; }
.wf-tournament-eyebrow { letter-spacing: .09em; text-transform: uppercase; font-size: .8rem; font-weight: 800; color: var(--wf-game-accent-soft); }
.wf-tournament-hero h1 { margin: 0; max-width: 50rem; font-size: clamp(2rem, 4vw, 4rem); line-height: 1.08; overflow-wrap: anywhere; }
.wf-tournament-hero__meta,
.wf-tournament-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; margin-top: 1.15rem; }
.wf-tournament-hero__meta > * { color: rgba(255,255,255,.9); }
.wf-tournament-phase {
  display: inline-flex;
  padding: .4rem .8rem;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  font-weight: 700;
}
.wf-tournament-live { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: #fff; }
.wf-tournament-live__dot { width: .65rem; height: .65rem; border-radius: 50%; background: #92efb4; box-shadow: 0 0 0 .25rem rgba(146,239,180,.22); }
.wf-tournament-clock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.2rem;
  border: 1px solid var(--wf-border);
  border-left: .4rem solid var(--wf-game-accent);
  border-radius: .85rem;
  background: var(--wf-surface);
  font-weight: 600;
}
.wf-tournament-clock strong { font-size: clamp(1.75rem, 4vw, 2.7rem); line-height: 1; }
.wf-tournament-section {
  padding: clamp(1rem, 2.5vw, 1.65rem);
  border: 1px solid var(--wf-border);
  border-radius: 1rem;
  background: var(--wf-surface);
  box-shadow: 0 .35rem 1.1rem rgba(0,0,0,.06);
}
.wf-tournament-section h2 { font-weight: 750; }
.wf-tournament-section__heading { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.wf-tournament-section__tag { color: var(--wf-game-accent); font-weight: 700; }
.wf-tournament-registered,
.wf-tournament-finalists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .65rem; padding: 0; list-style: none; }
.wf-tournament-registered li,
.wf-tournament-finalists li { padding: .7rem .9rem; border: 1px solid var(--wf-border); border-radius: .65rem; background: var(--wf-background); overflow-wrap: anywhere; }
.wf-tournament-tables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.wf-tournament-table { min-width: 0; overflow: hidden; border: 1px solid var(--wf-border); border-radius: .85rem; background: var(--wf-background); }
.wf-tournament-table h3 { margin: 0; padding: .75rem 1rem; background: color-mix(in srgb, var(--wf-game-accent) 14%, var(--wf-surface)); color: var(--wf-text); font-size: 1rem; font-weight: 750; }
.wf-tournament-table ol { margin: 0; padding: .75rem 1rem .8rem 2.2rem; }
.wf-tournament-table li { padding: .25rem .15rem; overflow-wrap: anywhere; }
.wf-tournament-table-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.wf-tournament-table .wf-tournament-table-heading { padding: .65rem 1rem; background: color-mix(in srgb, var(--wf-game-accent) 14%, var(--wf-surface)); }
.wf-tournament-table .wf-tournament-table-heading h3 { padding: 0; background: none; }
.wf-tournament-table-heading h3 { flex: 1 0 auto; }
.wf-tournament-table-status { font-size: .72rem; font-weight: 700; white-space: nowrap; opacity: .8; }
.wf-tournament-table.is-finished { border-color: var(--wf-game-accent); }
.wf-tournament-live-players { margin: 0; }
ul.wf-tournament-live-players { padding: .75rem 1rem; list-style: none; }
.wf-tournament-table-results { width: 100%; border: 0; border-collapse: collapse; color: inherit; }
.wf-tournament-table-results th,
.wf-tournament-table-results td { padding: .2rem .3rem; border: 0; background: none; box-shadow: none; }
.wf-tournament-table-results thead th { font-size: .72em; font-weight: 700; }
.wf-tournament-table-results th:first-child { text-align: left; }
.wf-tournament-table-results tbody th { font-weight: 400; }
.wf-tournament-table-results th:not(:first-child),
.wf-tournament-table-results td { width: 1%; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wf-tournament-table > .wf-tournament-table-results { width: calc(100% - 1.5rem); margin: .5rem .75rem .7rem; }
.wf-tournament-live-player-score,
.wf-tournament-live-player-treasures { font-weight: 700; }
.wf-tournament-live-player-name { overflow-wrap: anywhere; }
.wf-tournament-table li::marker { color: var(--wf-game-accent); font-weight: 700; }
.wf-tournament-podium { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: 0; padding: 0; list-style: none; }
.wf-tournament-podium li { display: flex; flex-direction: column; gap: .4rem; min-width: 0; padding: 1rem; border: 1px solid var(--wf-border); border-radius: .8rem; background: var(--wf-background); }
.wf-tournament-podium li:first-child { border-color: var(--wf-game-accent-soft); box-shadow: inset 0 .3rem 0 var(--wf-game-accent-soft); }
.wf-tournament-podium li span { font-size: .85rem; color: var(--wf-game-accent); font-weight: 800; }
.wf-tournament-podium li strong { font-size: 1.1rem; overflow-wrap: anywhere; }
.wf-tournament-draw-winners { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.wf-tournament-ranking thead th { --bs-table-bg: color-mix(in srgb, var(--wf-game-accent) 13%, var(--wf-surface)); color: var(--wf-text); border-bottom: 2px solid var(--wf-game-accent); white-space: nowrap; }
.wf-tournament-ranking tbody tr:nth-child(even) { --bs-table-accent-bg: color-mix(in srgb, var(--wf-game-accent) 5%, var(--wf-surface)); }
.wf-tournament-section .accordion-button { color: var(--wf-text); background: var(--wf-surface); }
.wf-tournament-section .accordion-button:not(.collapsed) { color: var(--wf-text); background: color-mix(in srgb, var(--wf-game-accent) 10%, var(--wf-surface)); }
.wf-tournament-list__card { height: 100%; border: 1px solid var(--wf-border); border-radius: 1rem; overflow: hidden; background: var(--wf-surface); box-shadow: 0 .35rem 1rem rgba(0,0,0,.06); }
.wf-tournament-list__card[data-game="fallera_calavera"] { border-top: .3rem solid #9c1e46; }
.wf-tournament-list__card[data-game="crema_infantil"] { border-top: .3rem solid #c46319; }
.wf-tournament-list__card img { width: 5.5rem; height: 6rem; object-fit: contain; }
.wf-tournament-list__card h3 { overflow-wrap: anywhere; }

/* La proyección usa la misma paleta del juego, sin navegación ni datos privados. */
.wf-tournament-projector { min-height: 100vh; min-height: var(--wf-projector-height, 100vh); display: grid; padding: .25rem; box-sizing: border-box; background: var(--wf-background); color: var(--wf-text); }
.wf-tournament-projector[data-projector-expanded="window"] { position: fixed; top: 0; left: 0; width: 100%; height: var(--wf-projector-height, 100vh); z-index: 1080; }
.wf-tournament-projector__toolbar { display: grid; grid-template-columns: 7rem minmax(0, 1fr) 7rem; align-items: center; gap: .35rem; }
.wf-tournament-projector__toolbar-group { display: flex; align-items: center; justify-content: end; gap: .2rem; }
.wf-tournament-projector__refresh { text-align: center; font-size: clamp(.65rem, .9vw, .85rem); color: rgba(255,255,255,.8); }
.wf-tournament-projector__refresh [data-projector-network] { display: block; color: #ffe08a; }
.wf-tournament-projector__refresh [data-projector-fullscreen-status] { display: block; font-size: .7rem; }
.wf-tournament-projector__refresh [data-projector-fullscreen-status][hidden] { display: none; }
.wf-tournament-projector__refresh strong { font-variant-numeric: tabular-nums; }
.wf-projector-overall { display: block; max-width: 100%; margin: .2rem auto 0; padding: .12rem .5rem; border: 1px solid rgba(255,255,255,.4); border-radius: .3rem; background: rgba(255,255,255,.1); color: #fff; font: inherit; cursor: pointer; }
.wf-projector-overall[hidden] { display: none; }
.wf-projector-overall:hover,
.wf-projector-overall:focus-visible { background: rgba(255,255,255,.2); outline: 2px solid var(--wf-game-accent-soft); outline-offset: 1px; }
.wf-projector-icon { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; flex: 0 0 auto; padding: .3rem; border: 1px solid transparent; border-radius: .35rem; background: transparent; color: #fff; cursor: pointer; text-decoration: none; }
.wf-projector-icon svg { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; }
.wf-projector-icon:hover, .wf-projector-icon:focus-visible, .wf-projector-icon[aria-pressed="true"] { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); color: #fff; }
.wf-projector-icon:focus-visible { outline: 2px solid var(--wf-game-accent-soft); outline-offset: 2px; }
.wf-projector-icon:disabled { opacity: .3; cursor: default; }
.wf-tournament-projector__stage { min-height: 0; display: grid; place-items: center; }
.wf-tournament-projector__frame { width: 100%; width: min(100%, calc((100vh - .5rem) * 16 / 9)); height: calc((100vw - .5rem) * 9 / 16); height: min(calc((100vw - .5rem) * 9 / 16), calc(100vh - .5rem)); box-sizing: border-box; overflow: hidden; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: clamp(.35rem, .8vw, .75rem); padding: clamp(.55rem, 1vw, 1rem); border-radius: .65rem; background: linear-gradient(125deg, var(--wf-game-hero-start), var(--wf-game-hero-end)); color: #fff; }
.wf-tournament-projector[data-ratio="4:3"] .wf-tournament-projector__frame { width: min(100%, calc((100vh - .5rem) * 4 / 3)); height: min(calc((100vw - .5rem) * 3 / 4), calc(100vh - .5rem)); }
.wf-tournament-projector__frame { grid-template-columns: minmax(0, 1fr); }
.wf-tournament-projector__slides { min-height: 0; min-width: 0; }
.wf-tournament-projector__slide { height: 100%; }
.wf-tournament-projector__slide[hidden] { display: none !important; }
.wf-tournament-projector__heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: center; }
.wf-tournament-projector__heading img { width: clamp(2.5rem, 4vw, 4rem); height: clamp(2.5rem, 4vw, 4rem); padding: .25rem; border-radius: .5rem; background: #fff8e9; object-fit: contain; }
.wf-tournament-projector__heading h1 { margin: 0; font-size: clamp(1.15rem, 2vw, 2.25rem); line-height: 1.08; overflow-wrap: anywhere; }
.wf-tournament-projector__heading p { margin: 0 0 .25rem; font-size: clamp(.7rem, 1vw, 1rem); color: var(--wf-game-accent-soft); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.wf-tournament-projector__clock { display: grid; text-align: end; font-weight: 700; white-space: nowrap; }
.wf-tournament-projector__clock span { font-size: .8rem; }
.wf-tournament-projector__clock strong { font-size: clamp(1.5rem, 3vw, 3rem); line-height: 1; }
.wf-tournament-projector__content { height: 100%; min-height: 0; min-width: 0; overflow: auto; scrollbar-color: rgba(255,255,255,.45) transparent; }
.wf-tournament-projector__content[data-fitted] { overflow: hidden; }
[data-projector-content-body] { transform-origin: top left; display: flow-root; }
.wf-tournament-projector__content h2 { margin: 0 0 .55rem; font-size: clamp(1.15rem, 1.9vw, 2.2rem); }
.wf-tournament-projector__content p { margin-bottom: .65rem; font-size: clamp(.85rem, 1.1vw, 1.1rem); }
.wf-tournament-projector__tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.wf-tournament-projector__tables[data-table-count="1"] { grid-template-columns: minmax(0, 1fr); max-width: 32rem; }
.wf-tournament-projector__tables[data-table-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wf-tournament-projector__tables[data-table-count="4"],
.wf-tournament-projector__tables[data-table-count="7"],
.wf-tournament-projector__tables[data-table-count="8"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wf-tournament-projector__tables[data-table-count="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wf-tournament-projector__tables[data-table-count="5"],
.wf-tournament-projector__tables[data-table-count="9"],
.wf-tournament-projector__tables[data-table-count="10"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.wf-tournament-projector__table { min-width: 0; padding: .65rem .85rem; border: 1px solid rgba(255,255,255,.32); border-radius: .5rem; background: rgba(0,0,0,.18); }
.wf-tournament-projector__table h3 { margin: 0 0 .35rem; color: var(--wf-game-accent-soft); font-size: clamp(1rem, 1.4vw, 1.5rem); }
.wf-tournament-projector__table ol,
.wf-tournament-projector__table ul { margin: 0; padding-left: 1.4rem; font-size: clamp(.95rem, 1.3vw, 1.4rem); line-height: 1.35; }
.wf-tournament-projector__table li + li { margin-top: .15rem; }
.wf-tournament-projector__table li { overflow-wrap: anywhere; }
.wf-tournament-projector__table.is-finished { border-color: var(--wf-game-accent-soft); background: rgba(255,255,255,.1); }
.wf-tournament-projector__table .wf-tournament-table-heading { margin-bottom: .35rem; }
.wf-tournament-projector__table .wf-tournament-table-heading h3 { margin: 0; }
.wf-tournament-projector__table .wf-tournament-table-status { color: var(--wf-game-accent-soft); font-size: clamp(.58rem, .7vw, .8rem); }
.wf-tournament-projector__table .wf-tournament-table-results { font-size: clamp(.95rem, 1.3vw, 1.4rem); line-height: 1.35; }
.wf-tournament-projector__table .wf-tournament-live-player-score,
.wf-tournament-projector__table .wf-tournament-live-player-treasures { color: var(--wf-game-accent-soft); }
.wf-tournament-projector__table ul.wf-tournament-live-players { padding-left: 0; }
.wf-tournament-projector__registered { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0; padding: 0; list-style: none; }
.wf-tournament-projector__registered li { padding: .6rem .85rem; border: 1px solid rgba(255,255,255,.25); border-radius: .5rem; background: rgba(0,0,0,.15); font-size: clamp(.95rem, 1.35vw, 1.4rem); overflow-wrap: anywhere; }
.wf-tournament-projector__ranking { width: 100%; border-collapse: collapse; font-size: clamp(.88rem, 1.32vw, 1.4rem); }
.wf-tournament-projector__ranking-groups { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.wf-tournament-projector__ranking-groups[data-ranking-columns="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wf-tournament-projector__ranking-groups[data-ranking-columns="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 650px) {
  .wf-tournament-projector__ranking-groups[data-ranking-columns] { grid-template-columns: minmax(0, 1fr); }
}
.wf-tournament-projector__ranking th,
.wf-tournament-projector__ranking td { padding: .35rem .65rem; border-bottom: 1px solid rgba(255,255,255,.23); text-align: left; }
.wf-tournament-projector__ranking th { font-weight: 750; }
.wf-tournament-projector__ranking tbody tr:nth-child(even) { background: rgba(255,255,255,.09); }
.wf-tournament-projector[data-ratio="4:3"] .wf-tournament-projector__ranking { font-size: clamp(.8rem, 1.05vw, 1.1rem); }
.wf-tournament-projector[data-ratio="4:3"] .wf-tournament-projector__ranking th,
.wf-tournament-projector[data-ratio="4:3"] .wf-tournament-projector__ranking td { padding-block: .22rem; }
.wf-tournament-projector__podium { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 0; padding: 0; list-style: none; }
.wf-tournament-projector__podium li { padding: clamp(.7rem, 1.5vw, 1.5rem); border: 1px solid rgba(255,255,255,.32); border-radius: .7rem; background: rgba(0,0,0,.18); overflow-wrap: anywhere; }
.wf-tournament-projector__podium li:first-child { border-color: var(--wf-game-accent-soft); }
.wf-tournament-projector__podium span { display: block; color: var(--wf-game-accent-soft); font-weight: 800; }
.wf-tournament-projector__podium strong { font-size: clamp(1.15rem, 2vw, 2.2rem); }
.wf-tournament-projector__draws { margin-top: .8rem; }
.wf-tournament-projector__draws h3 { margin: 0 0 .4rem; font-size: clamp(1rem, 1.5vw, 1.6rem); color: var(--wf-game-accent-soft); }
.wf-tournament-projector__draw-winners { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .5rem; padding: 0; margin: 0; list-style: none; }
.wf-tournament-projector__draw-winners li { min-width: 0; padding: .45rem .7rem; border: 1px solid rgba(255,255,255,.3); border-radius: .5rem; background: rgba(0,0,0,.15); overflow-wrap: anywhere; }
.wf-tournament-projector__draw-winners span { display: block; color: var(--wf-game-accent-soft); font-size: clamp(.7rem, .9vw, .95rem); }
.wf-tournament-projector__draw-winners strong { font-size: clamp(.95rem, 1.3vw, 1.4rem); }
.wf-tournament-projector__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: .5rem; color: rgba(255,255,255,.74); font-size: clamp(.6rem, .8vw, .85rem); }
.wf-tournament-projector__attribution { text-align: end; }
.wf-tournament-projector__status { font-weight: 750; color: var(--wf-game-accent-soft); }
.wf-tournament-projector__navigation { display: flex; align-items: center; justify-content: center; gap: .15rem; }
.wf-projector-screen-picker { position: relative; }
.wf-projector-screen-picker summary { width: auto; gap: .4rem; list-style: none; }
.wf-projector-screen-picker summary::-webkit-details-marker { display: none; }
.wf-projector-screen-picker [data-projector-counter] { min-width: 2rem; font-size: .75rem; white-space: nowrap; }
.wf-projector-screen-picker:not([open]) [data-projector-screen-list] { display: none; }
.wf-projector-screen-picker [data-projector-screen-list] { position: absolute; z-index: 5; bottom: calc(100% + .4rem); left: 50%; transform: translateX(-50%); width: min(20rem, calc(100vw - 2rem)); max-height: 45vh; max-height: calc(var(--wf-projector-height, 100vh) * .45); overflow: auto; padding: .3rem; border: 1px solid rgba(255,255,255,.4); border-radius: .5rem; background: var(--wf-game-hero-start); box-shadow: 0 .4rem 1.2rem #0005; }
.wf-projector-screen-picker [data-projector-screen-list] button { display: block; width: 100%; padding: .4rem .6rem; text-align: start; border: 0; border-radius: .25rem; color: #fff; background: transparent; font-size: .85rem; }
.wf-projector-screen-picker [data-projector-screen-list] button:hover, .wf-projector-screen-picker [aria-current="true"] { background: #ffffff24; }
@media (max-width: 900px) {
  .wf-tournament-tables { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf-tournament-podium { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .wf-tournament-projector:not([data-projector-expanded]) { min-height: 0; }
  .wf-tournament-hero { grid-template-columns: 1fr; text-align: center; }
  .wf-tournament-hero__logo { min-height: 8rem; }
  .wf-tournament-hero__logo img { max-height: 8rem; }
  .wf-tournament-hero__meta, .wf-tournament-hero__actions { justify-content: center; }
  .wf-tournament-tables { grid-template-columns: 1fr; }
  .wf-tournament-projector:not([data-projector-expanded]) .wf-tournament-projector__stage { display: block; flex: 0 0 auto; }
  .wf-tournament-projector:not([data-projector-expanded]) .wf-tournament-projector__frame { width: 100%; height: auto; min-height: 0; display: block; }
  .wf-tournament-projector:not([data-projector-expanded]) .wf-tournament-projector__slides { margin-block: 1.2rem; }
  .wf-tournament-projector:not([data-projector-expanded]) .wf-tournament-projector__slide { height: auto; }
  .wf-tournament-projector:not([data-projector-expanded]) .wf-tournament-projector__content { height: auto; overflow-x: auto; }
  .wf-tournament-projector:not([data-projector-expanded]) .wf-tournament-projector__heading { grid-template-columns: auto minmax(0, 1fr); }
  .wf-tournament-projector:not([data-projector-expanded]) .wf-tournament-projector__heading h1 { font-size: 1.25rem; }
  .wf-tournament-projector:not([data-projector-expanded]) .wf-tournament-projector__toolbar { margin-bottom: .6rem; grid-template-columns: 2rem minmax(0, 1fr) 7rem; }
  .wf-tournament-projector:not([data-projector-expanded]) .wf-tournament-projector__clock { grid-column: 1 / -1; text-align: center; margin-top: .5rem; }
  .wf-tournament-projector:not([data-projector-expanded]) .wf-tournament-projector__tables, .wf-tournament-projector:not([data-projector-expanded]) .wf-tournament-projector__tables[data-table-count], .wf-tournament-projector:not([data-projector-expanded]) .wf-tournament-projector__podium { grid-template-columns: 1fr; }
  .wf-tournament-projector:not([data-projector-expanded]) .wf-tournament-projector__registered { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf-tournament-projector__ranking,
  .wf-tournament-projector[data-ratio="4:3"] .wf-tournament-projector__ranking { min-width: 0; table-layout: fixed; font-size: .75rem; overflow-wrap: anywhere; }
  .wf-tournament-projector__ranking th, .wf-tournament-projector__ranking td { padding: .25rem; }
  .wf-tournament-projector__ranking-groups .wf-rank-position { width: 1.3rem; }
  .wf-tournament-projector__ranking-groups .wf-rank-score { width: 2.8rem; }
  .wf-tournament-projector__ranking-groups .wf-rank-treasures { width: 3.3rem; }
  .wf-tournament-projector__ranking-groups .wf-rank-wins { width: 4rem; }
  .wf-tournament-projector__ranking-groups td { white-space: nowrap; }
  .wf-tournament-projector__ranking-groups thead th { font-size: .9em; overflow-wrap: normal; }
  .wf-tournament-projector:not([data-projector-expanded]) .wf-tournament-projector__foot { grid-template-columns: 1fr; text-align: center; }
  .wf-tournament-projector:not([data-projector-expanded]) .wf-tournament-projector__attribution { grid-column: 1 / -1; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .wf-tournament-live__dot { box-shadow: none; }
}
[data-tournament-simulator] [hidden] { display: none !important; }

/* Selector agrupado: carga miniaturas solo al desplegar la carpeta. */
.wf-tournament-logo-picker { position: relative; }
.wf-tournament-logo-picker > summary { cursor: pointer; list-style: none; overflow-wrap: anywhere; }
.wf-tournament-logo-picker > summary::-webkit-details-marker { display: none; }
.wf-tournament-logo-picker__panel { position: absolute; z-index: 20; top: calc(100% + .25rem); width: 100%; max-height: min(25rem, 55vh); overflow: auto; padding: .65rem; background: var(--wf-surface); border: 1px solid var(--wf-border); border-radius: .5rem; box-shadow: 0 .5rem 1.5rem #0003; }
.wf-tournament-logo-picker[data-open-up] .wf-tournament-logo-picker__panel { top: auto; bottom: calc(100% + .25rem); }
.wf-tournament-logo-picker__default { width: 100%; text-align: start; margin-block: .4rem; }
.wf-tournament-logo-picker [data-logo-folder] > summary { padding: .45rem .3rem; font-weight: 600; cursor: pointer; }
.wf-tournament-logo-picker__image { display: flex; align-items: center; gap: .6rem; width: 100%; border: 0; border-radius: .3rem; padding: .35rem .5rem; background: transparent; color: var(--wf-text); text-align: start; overflow-wrap: anywhere; }
.wf-tournament-logo-picker__image:hover, .wf-tournament-logo-picker__image[aria-pressed="true"] { background: color-mix(in srgb, var(--wf-primary) 12%, var(--wf-surface)); }
.wf-tournament-logo-picker__image img { object-fit: contain; flex: 0 0 auto; background: var(--wf-background); }
